提交 5abb0f2b 编写于 作者: M MrAlenZhong 提交者: 蒋琴

feat: 对BaseTree组件新增treeWrapperClassName属性 (#2217)

上级 e47c618b
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
{extendSlots(slots)} {extendSlots(slots)}
</TreeHeader> </TreeHeader>
)} )}
<Spin spinning={unref(props.loading)} tip="加载中..."> <Spin wrapperClassName={unref(props.treeWrapperClassName)} spinning={unref(props.loading)} tip="加载中...">
<ScrollContainer style={scrollStyle} v-show={!unref(getNotFound)}> <ScrollContainer style={scrollStyle} v-show={!unref(getNotFound)}>
<Tree {...unref(getBindValues)} showIcon={false} treeData={treeData.value} /> <Tree {...unref(getBindValues)} showIcon={false} treeData={treeData.value} />
</ScrollContainer> </ScrollContainer>
......
...@@ -134,6 +134,7 @@ export const treeProps = buildProps({ ...@@ -134,6 +134,7 @@ export const treeProps = buildProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
treeWrapperClassName: String
}); });
export type TreeProps = ExtractPropTypes<typeof treeProps>; export type TreeProps = ExtractPropTypes<typeof treeProps>;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
title="部门列表" title="部门列表"
toolbar toolbar
search search
treeWrapperClassName="h-[calc(100%-35px)] overflow-auto"
:clickRowToExpand="false" :clickRowToExpand="false"
:treeData="treeData" :treeData="treeData"
:fieldNames="{ key: 'id', title: 'deptName' }" :fieldNames="{ key: 'id', title: 'deptName' }"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册