Commit 152f78710305a940553c7b73434ce8687e0166e3
1 parent
01ac622c
限制部门选择树高度,避免部门太多时点击确定不便
Showing
1 changed file
with
7 additions
and
2 deletions
ant-design-vue-jeecg/src/components/jeecgbiz/modal/JSelectDepartModal.vue
@@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
10 | <a-spin tip="Loading..." :spinning="false"> | 10 | <a-spin tip="Loading..." :spinning="false"> |
11 | <a-input-search style="margin-bottom: 1px" placeholder="请输入部门名称按回车进行搜索" @search="onSearch" /> | 11 | <a-input-search style="margin-bottom: 1px" placeholder="请输入部门名称按回车进行搜索" @search="onSearch" /> |
12 | <a-tree | 12 | <a-tree |
13 | + class="my-dept-select-tree" | ||
13 | checkable | 14 | checkable |
14 | :treeData="treeData" | 15 | :treeData="treeData" |
15 | :checkStrictly="true" | 16 | :checkStrictly="true" |
@@ -236,6 +237,10 @@ | @@ -236,6 +237,10 @@ | ||
236 | 237 | ||
237 | </script> | 238 | </script> |
238 | 239 | ||
239 | -<style scoped> | ||
240 | - | 240 | +<style lang="less" scoped> |
241 | +// 限制部门选择树高度,避免部门太多时点击确定不便 | ||
242 | +.my-dept-select-tree{ | ||
243 | + height: 350px; | ||
244 | + overflow-y: scroll; | ||
245 | +} | ||
241 | </style> | 246 | </style> |
242 | \ No newline at end of file | 247 | \ No newline at end of file |