From 365bea25e197e8587150e5185c6803f971e3394c Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Mon, 23 Sep 2024 14:22:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8A=95=E7=A5=A8?= =?UTF-8?q?=E9=A2=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/materials/questions/widgets/VoteModule/meta.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/materials/questions/widgets/VoteModule/meta.js b/web/src/materials/questions/widgets/VoteModule/meta.js index ed344dd0..c5a217b1 100644 --- a/web/src/materials/questions/widgets/VoteModule/meta.js +++ b/web/src/materials/questions/widgets/VoteModule/meta.js @@ -74,13 +74,13 @@ const meta = { name: 'minNum', propType: Number, description: '最少选择数', - defaultValue: 1 + defaultValue: 0 }, { name: 'maxNum', propType: Number, description: '最多选择数', - defaultValue: 1 + defaultValue: 0 } ], formConfig: [ @@ -116,7 +116,7 @@ const meta = { label: '至少选择数', type: 'InputNumber', key: 'minNum', - value: '', + value: 0, min: 0, max: (moduleConfig) => { return moduleConfig?.maxNum || 0 @@ -127,7 +127,7 @@ const meta = { label: '最多选择数', type: 'InputNumber', key: 'maxNum', - value: '', + value: 0, min: (moduleConfig) => { return moduleConfig?.minNum || 0 },