diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 0cb4941d..4919e2b3 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -11,8 +11,9 @@ - 新增修改密码界面 - 新增部门管理示例界面 - 新增 WebSocket 示例和服务脚本 -- BasicTree 组件新增 `renderIcon` 属性用于控制层级图标显示 -- BasicTree->actionItem 新增 show 属性,用于动态控制按钮显示 +- Tree 组件新增 `renderIcon` 属性用于控制层级图标显示 +- Tree->actionItem 新增 show 属性,用于动态控制按钮显示 +- Tree 新增工具栏/title/搜索功能 ### ⚡ Performance Improvements diff --git a/package.json b/package.json index eea2a248..7958c76f 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "dependencies": { "@iconify/iconify": "^2.0.0-rc.6", "@vueuse/core": "^4.3.1", - "@zxcvbn-ts/core": "^0.2.0", + "@zxcvbn-ts/core": "^0.3.0", "ant-design-vue": "2.0.1", "apexcharts": "^3.25.0", "axios": "^0.21.1", diff --git a/src/components/StrengthMeter/src/index.vue b/src/components/StrengthMeter/src/index.vue index 1f98e372..91e09a8c 100644 --- a/src/components/StrengthMeter/src/index.vue +++ b/src/components/StrengthMeter/src/index.vue @@ -23,7 +23,8 @@ import { Input } from 'ant-design-vue'; - import zxcvbn from '@zxcvbn-ts/core'; + // @ts-ignore + import { zxcvbn } from '@zxcvbn-ts/core'; import { useDesign } from '/@/hooks/web/useDesign'; import { propTypes } from '/@/utils/propTypes'; diff --git a/src/components/Tree/src/TreeHeader.vue b/src/components/Tree/src/TreeHeader.vue new file mode 100644 index 00000000..db3bde74 --- /dev/null +++ b/src/components/Tree/src/TreeHeader.vue @@ -0,0 +1,110 @@ + + diff --git a/src/components/Tree/src/enum.ts b/src/components/Tree/src/enum.ts new file mode 100644 index 00000000..4691fac1 --- /dev/null +++ b/src/components/Tree/src/enum.ts @@ -0,0 +1,8 @@ +export enum ToolbarEnum { + SELECT_ALL, + UN_SELECT_ALL, + EXPAND_ALL, + UN_EXPAND_ALL, + CHECK_STRICTLY, + CHECK_UN_STRICTLY, +} diff --git a/src/components/Tree/src/index.vue b/src/components/Tree/src/index.vue index 194fb4de..41f1abf1 100644 --- a/src/components/Tree/src/index.vue +++ b/src/components/Tree/src/index.vue @@ -1,23 +1,16 @@