ソースを参照

输入框禁止输入空格

lxf 2 年 前
コミット
7440c372d2
1 ファイル変更1 行追加1 行削除
  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'"