mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
feat: 对BaseTree组件新增treeWrapperClassName属性 (#2217)
This commit is contained in:
parent
e47c618b18
commit
5abb0f2b37
@ -437,7 +437,7 @@
|
||||
{extendSlots(slots)}
|
||||
</TreeHeader>
|
||||
)}
|
||||
<Spin spinning={unref(props.loading)} tip="加载中...">
|
||||
<Spin wrapperClassName={unref(props.treeWrapperClassName)} spinning={unref(props.loading)} tip="加载中...">
|
||||
<ScrollContainer style={scrollStyle} v-show={!unref(getNotFound)}>
|
||||
<Tree {...unref(getBindValues)} showIcon={false} treeData={treeData.value} />
|
||||
</ScrollContainer>
|
||||
|
@ -134,6 +134,7 @@ export const treeProps = buildProps({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
treeWrapperClassName: String
|
||||
});
|
||||
|
||||
export type TreeProps = ExtractPropTypes<typeof treeProps>;
|
||||
|
@ -4,6 +4,7 @@
|
||||
title="部门列表"
|
||||
toolbar
|
||||
search
|
||||
treeWrapperClassName="h-[calc(100%-35px)] overflow-auto"
|
||||
:clickRowToExpand="false"
|
||||
:treeData="treeData"
|
||||
:fieldNames="{ key: 'id', title: 'deptName' }"
|
||||
|
Loading…
Reference in New Issue
Block a user