Selaa lähdekoodia

查询条件样式调整

zhonghuizhen 10 kuukautta sitten
vanhempi
sitoutus
e0a3703763
1 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  1. 8 2
      src/views/component/trainingManage/index.vue

+ 8 - 2
src/views/component/trainingManage/index.vue

@@ -167,8 +167,6 @@ export default {
                 ],
                 // 查询条件
                 searchForm: {
-                    labelWidth: 60,
-                    itemWidth: 200,
                     forms: [
                         { prop: '', label: '姓名', fieldType: 'slot', slotName: 'user' },
                         { prop: '', label: '部门', fieldType: 'slot', slotName: 'position' },
@@ -309,4 +307,12 @@ export default {
     }
 }
 </script>
+<style lang="scss" scoped>
 
+/* 可选:调整表单标签宽度 */
+::v-deep .el-form-item__label {
+  width: auto !important;
+ // min-width: 40px !important; /* 固定标签宽度使内容对齐 */
+  text-align: left;
+}
+</style>