Lijy hai 11 meses
pai
achega
ba713bac69

+ 1 - 0
fhKeeper/formulahousekeeper/plugIn/form-design-master/src/design/WidgetFormItem.vue

@@ -156,6 +156,7 @@ const handleDeleteClick = () => {
           :max="element.options.max"
           :min="element.options.min"
           :disabled="element.options.disabled"
+          controls-position="right"
         />
       </template>
 

+ 4 - 3
fhKeeper/formulahousekeeper/plugIn/form-design-master/src/generate/GenerateFormItem.vue

@@ -53,7 +53,7 @@
   >
     <template v-if="element.type === 'input'">
       <el-input
-        v-model="data"
+        v-model.trim="data"
         :style="{ width: element.options.width }"
         :placeholder="element.options.placeholder"
         :maxlength="parseInt(element.options.maxlength)"
@@ -86,7 +86,7 @@
 
     <template v-if="element.type === 'password'">
       <el-input
-        v-model="data"
+        v-model.trim="data"
         :style="{ width: element.options.width }"
         :placeholder="element.options.placeholder"
         :maxlength="parseInt(element.options.maxlength)"
@@ -120,7 +120,7 @@
 
     <template v-if="element.type === 'textarea'">
       <el-input
-        v-model="data"
+        v-model.trim="data"
         type="textarea"
         resize="none"
         :rows="element.options.rows"
@@ -142,6 +142,7 @@
         :max="element.options.max"
         :min="element.options.min"
         :disabled="disabled || element.options.disabled"
+        controls-position="right"
       />
     </template>