Commit b6bc0dd3 by yancanhua

feat: 检测表单校验调整

1 parent 1b491e8a
...@@ -233,8 +233,12 @@ defineExpose({ ...@@ -233,8 +233,12 @@ defineExpose({
<!-- 数字输入框 --> <!-- 数字输入框 -->
<div v-if="item.interactionType == 'number_input'"> <div v-if="item.interactionType == 'number_input'">
<van-field v-model="item.value" :label="item.nodeName" clearable <van-field v-model="item.value" :label="item.nodeName" clearable
:maxlength="getValidationRules(item).maxLength || 120" :placeholder="item.placeholder" :maxlength="getValidationRules(item).maxLength || 120"
:required="item.required === 1" type="number" /> :min="getValidationRules(item).min || 0"
:max="getValidationRules(item).max || 100000"
:placeholder="item.placeholder"
:required="item.required === 1" type="number" step="0.01"
@input="(e) => { item.value = parseFloat(item.value)?.toFixed(getValidationRules(item).decimalDigits || 2) || '' }" />
</div> </div>
<!-- 单选框 --> <!-- 单选框 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!