소스 검색

调节日历日程弹窗文本框自适应高度

zhonghuizhen 1 년 전
부모
커밋
c2d8b2ed01
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/views/system/dashboard/templates/scheduleAdd.vue

+ 3 - 3
src/views/system/dashboard/templates/scheduleAdd.vue

@@ -21,7 +21,7 @@
             :model="calendarForm"
             :rules="rules"
             label-width="82px"
-            label-height="300px"
+            label-height="500px"
         >
             <el-col :span="6">
                 <el-tree
@@ -51,7 +51,7 @@
                     <el-input
                         v-model="calendarForm.neiRong"
                         type="textarea"
-                        :rows="5"
+                        :autosize="{ minRows: 5, maxRows: 10}"
                         placeholder="请输入事件内容"
                         clearable
                     />
@@ -314,7 +314,7 @@ export default {
     .el-tree-node__content > .el-tree-node__expand-icon {
         padding: 0px;
     }
-    max-height: 300px;
+    max-height: 500px;
     overflow: auto;
 }
 </style>