Commit e929aac6 by 张立顺

feat 修改值输入限制

1 parent f53e1a41
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
@keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input> @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<input-number-range v-else-if="specsInputVisible && spescEditForm.type == 3" :disabled="false" <input-number-range v-else-if="specsInputVisible && spescEditForm.type == 3" :disabled="false"
:precision="num" :spescInputVal="spescInputVal" @confirm="handleInputConfirmMue" :precision="num" :spescInputVal="spescInputVal" @confirm="handleInputConfirmMue"
@input="spescInputVal = spescInputVal.replace(/^(100|[1-9]?\d)(\.\d{0,4})?.*$/, '$1$2')"></input-number-range> @input="spescInputVal = spescInputVal.replace(/^(200|[1-9]?\d)(\.\d{0,4})?.*$/, '$1$2')"></input-number-range>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!