|
@@ -3,7 +3,9 @@
|
|
|
<Row :gutter="[16, 16]">
|
|
|
<Col :span="8">
|
|
|
<BasicTree title="基础示例,默认展开第一层" :treeData="treeData" defaultExpandLevel="1">
|
|
|
- <template #title> 123123 </template>
|
|
|
+ <template #icon><SmileTwoTone /></template>
|
|
|
+ <template #title>666</template>
|
|
|
+ <template #switcherIcon> <CarryOutOutlined /></template>
|
|
|
</BasicTree>
|
|
|
</Col>
|
|
|
<Col :span="8">
|
|
@@ -62,6 +64,7 @@
|
|
|
import { cloneDeep, uniq } from 'lodash-es';
|
|
|
import { isArray } from '/@/utils/is';
|
|
|
import { type Nullable } from '@vben/types';
|
|
|
+ import { SmileTwoTone, CarryOutOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
|
const asyncTreeRef = ref<Nullable<TreeActionType>>(null);
|
|
|
const asyncExpandTreeRef = ref<Nullable<TreeActionType>>(null);
|