Ver Fonte

去除多余下拉框样式

cyy há 2 anos atrás
pai
commit
0e82152c13

+ 23 - 21
src/business/platform/form/formrender/dynamic-form/dynamic-form-field.vue

@@ -9,14 +9,15 @@
                 </div>
                 </div>
             </template>
             </template>
 
 
-            <el-dropdown
+            <!-- <el-dropdown
                 v-else-if="fieldType === 'text' || fieldType === 'textarea'"
                 v-else-if="fieldType === 'text' || fieldType === 'textarea'"
                 :style="{ width: width }"
                 :style="{ width: width }"
                 size="mini"
                 size="mini"
                 placement="top-start"
                 placement="top-start"
                 trigger="click"
                 trigger="click"
                 @command="handleCommand"
                 @command="handleCommand"
-            >
+            > -->
+            <div v-else-if="fieldType === 'text' || fieldType === 'textarea'" :style="{ width: width }">
                 <!-- <el-dropdown
                 <!-- <el-dropdown
                 v-else-if="fieldType==='text'||fieldType==='textarea'"
                 v-else-if="fieldType==='text'||fieldType==='textarea'"
                 :style="{width:width}"
                 :style="{width:width}"
@@ -26,24 +27,24 @@
                 trigger="click"
                 trigger="click"
                 @command="handleCommand"
                 @command="handleCommand"
             > -->
             > -->
-            <el-tooltip effect="dark" :content="dataModel" placement="top" :disabled="isShowTooltip">
-                <el-input
-                    v-model="dataModel"
-                    :placeholder="placeholder"
-                    :type="fieldType"
-                    :name="field.name"
-                    :autosize="autosize"
-                    :rows="fieldOptions.rows || 3"
-                    :readonly="readonly"
-                    unselectable="on"
-                    :style="{ width: width }"
-                    :clearable="clearable && hasFocus"
-                    @focus="() => hasFocus = true"
-                    @blur="() => hasFocus = false"
-                    @mouseover.native="inputOnMouseOver($event)"
-                    v-on="$listeners"
-                />
-            </el-tooltip>
+                <el-tooltip effect="dark" :content="dataModel" placement="top" :disabled="isShowTooltip">
+                    <el-input
+                        v-model="dataModel"
+                        :placeholder="placeholder"
+                        :type="fieldType"
+                        :name="field.name"
+                        :autosize="autosize"
+                        :rows="fieldOptions.rows || 3"
+                        :readonly="readonly"
+                        unselectable="on"
+                        :style="{ width: width }"
+                        :clearable="clearable && hasFocus"
+                        @focus="() => hasFocus = true"
+                        @blur="() => hasFocus = false"
+                        @mouseover.native="inputOnMouseOver($event)"
+                        v-on="$listeners"
+                    />
+                </el-tooltip>
                 
                 
                 <!-- <el-button
                 <!-- <el-button
                     v-if="(!fieldOptions.custom_class || fieldOptions.custom_class>=120) && !dataModel"
                     v-if="(!fieldOptions.custom_class || fieldOptions.custom_class>=120) && !dataModel"
@@ -66,7 +67,8 @@
                         <span style="float: right; margin-left: 50px; color: #eb6709;" @click.stop="deleteDicts(item.uuId, field.label)">删</span>
                         <span style="float: right; margin-left: 50px; color: #eb6709;" @click.stop="deleteDicts(item.uuId, field.label)">删</span>
                     </el-dropdown-item>
                     </el-dropdown-item>
                 </el-dropdown-menu>
                 </el-dropdown-menu>
-            </el-dropdown>
+            <!-- </el-dropdown> -->
+            </div>
 
 
             <el-input
             <el-input
                 v-else
                 v-else