Explorar o código

后台-字典管理-新增字典:排序号格式限制

任一存 %!s(int64=2) %!d(string=hai) anos
pai
achega
68cb4157b4
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      backstage/src/pages/system/dict/componets/detail.vue

+ 10 - 1
backstage/src/pages/system/dict/componets/detail.vue

@@ -15,7 +15,16 @@
         </el-form-item>
 
         <el-form-item label="排序号:" prop="sort">
-          <el-input placeholder="请输入排序号,从0开始" :maxlength="INPUTLENGTH" show-word-limit v-model="form.sort"></el-input>
+          <el-input-number
+            style="width: 100%;"
+            placeholder="请输入排序号,从0开始"
+            :maxlength="INPUTLENGTH"
+            show-word-limit
+            v-model="form.sort"
+            :min="0"
+            :step="1"
+            step-strictly
+          />
         </el-form-item>
 
         <el-form-item label="是否显示:">