限制部门选择树高度,避免部门太多时点击确定不便

This commit is contained in:
xshawn 2020-07-02 14:41:14 +08:00
parent 01ac622c0c
commit 152f787103
1 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,7 @@
<a-spin tip="Loading..." :spinning="false">
<a-input-search style="margin-bottom: 1px" placeholder="请输入部门名称按回车进行搜索" @search="onSearch" />
<a-tree
class="my-dept-select-tree"
checkable
:treeData="treeData"
:checkStrictly="true"
@ -236,6 +237,10 @@
</script>
<style scoped>
<style lang="less" scoped>
// 限制部门选择树高度避免部门太多时点击确定不便
.my-dept-select-tree{
height: 350px;
overflow-y: scroll;
}
</style>