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