Explorar o código

输入框禁止输入空格

lxf %!s(int64=2) %!d(string=hai) anos
pai
achega
7440c372d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/byForm/index.vue

+ 1 - 1
src/components/byForm/index.vue

@@ -28,7 +28,7 @@
       >
         <el-input
           v-if="i.type == 'input'"
-          v-model="formData[i.prop]"
+          v-model.trim="formData[i.prop]"
           :placeholder="i.placeholder || '请输入'"
           @input="(e) => commonsEmit(e, i)"
           :type="i.itemType ? i.itemType : 'text'"