bkui-vue 0.0.1-beta.22 → 0.0.1-beta.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +173 -0
- package/dist/index.esm.js +38175 -0
- package/dist/index.umd.js +173 -0
- package/dist/style.css +1 -5090
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +122 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +34 -6
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +37 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -8
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +80 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +87 -49
- package/lib/button/button.d.ts +28 -7
- package/lib/button/button.less +74 -41
- package/lib/button/button.variable.css +116 -52
- package/lib/button/index.d.ts +45 -12
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +125 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +292 -0
- package/lib/cascader/index.d.ts +868 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +23 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +67 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +40 -23
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- package/lib/code-diff/code-diff.css +73 -1
- package/lib/code-diff/code-diff.d.ts +10 -1
- package/lib/code-diff/code-diff.less +95 -1
- package/lib/code-diff/code-diff.variable.css +102 -4
- package/lib/code-diff/index.d.ts +151 -3
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +72 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +11 -52
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +147 -12
- package/lib/collapse/index.d.ts +113 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +121 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +394 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +28 -7
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +210 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +102 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
- package/lib/date-picker/base/time-spinner.d.ts +153 -0
- package/lib/date-picker/date-picker.css +23 -2
- package/lib/date-picker/date-picker.d.ts +39 -12
- package/lib/date-picker/date-picker.less +29 -2
- package/lib/date-picker/date-picker.variable.css +52 -5
- package/lib/date-picker/index.d.ts +95 -34
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +308 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +54 -4
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +132 -22
- package/lib/dialog/dialog.d.ts +272 -56
- package/lib/dialog/dialog.less +77 -23
- package/lib/dialog/dialog.variable.css +132 -22
- package/lib/dialog/index.d.ts +598 -124
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +138 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +29 -3
- package/lib/divider/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +34 -3
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +42 -10
- package/lib/dropdown/index.d.ts +72 -11
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +69 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -3
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +21 -24
- package/lib/form/form.css +103 -10
- package/lib/form/form.d.ts +37 -40
- package/lib/form/form.less +146 -34
- package/lib/form/form.variable.css +222 -10
- package/lib/form/index.d.ts +103 -85
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.js +1 -15
- package/lib/icon/angle-double-left-line.js +1 -15
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.js +1 -15
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.js +1 -15
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.js +1 -15
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -15
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +26 -1
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.js +1 -15
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.js +1 -15
- package/lib/icon/right-shape.js +1 -15
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.js +1 -15
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -15
- package/lib/icon/weixin.js +1 -15
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.css +37 -0
- package/lib/info-box/index.d.ts +26 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/index.less +50 -0
- package/lib/info-box/index.variable.css +37 -0
- package/lib/input/index.d.ts +174 -63
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +216 -18
- package/lib/input/input.d.ts +117 -17
- package/lib/input/input.less +157 -17
- package/lib/input/input.variable.css +242 -17
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +41 -15
- package/lib/loading/index.d.ts +108 -14
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +83 -31
- package/lib/loading/loading.d.ts +74 -5
- package/lib/loading/loading.less +28 -30
- package/lib/loading/loading.variable.css +112 -34
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +80 -3
- package/lib/menu/submenu.variable.css +29 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +53 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +505 -75
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +193 -29
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +82 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +30 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +53 -7
- package/lib/notify/notifyConstructor.d.ts +50 -6
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +16 -6
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +83 -31
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +146 -21
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +67 -8
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +32 -3
- package/lib/popover/props.d.ts +34 -2
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +16 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +545 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +12 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +228 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +144 -0
- package/lib/popover2/props.d.ts +118 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +31 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +22 -0
- package/lib/popover2/use-popper-id.d.ts +6 -0
- package/lib/popover2/utils.d.ts +2 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -15
- package/lib/process/process.css +13 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +17 -0
- package/lib/process/process.variable.css +42 -3
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +80 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +30 -19
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.css +61 -56
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +93 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +177 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +217 -0
- package/lib/resize-layout/resize-layout.variable.css +296 -0
- package/lib/search-select/index.d.ts +681 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +85 -0
- package/lib/search-select/menu.d.ts +83 -0
- package/lib/search-select/search-select.css +423 -0
- package/lib/search-select/search-select.d.ts +273 -0
- package/lib/search-select/search-select.less +375 -0
- package/lib/search-select/search-select.variable.css +542 -0
- package/lib/search-select/selected.d.ts +137 -0
- package/lib/search-select/utils.d.ts +79 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1419 -451
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +265 -80
- package/lib/select/select.d.ts +552 -126
- package/lib/select/select.less +366 -185
- package/lib/select/select.variable.css +295 -84
- package/lib/select/selectTagInput.d.ts +93 -0
- package/lib/select/type.d.ts +39 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +17 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +6 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -4
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +5 -1
- package/lib/sideslider/index.d.ts +388 -73
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +180 -32
- package/lib/sideslider/sideslider.less +72 -13
- package/lib/sideslider/sideslider.variable.css +84 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +5 -0
- package/lib/slider/slider.d.ts +14 -2
- package/lib/slider/slider.variable.css +29 -3
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +43 -6
- package/lib/styles/index.d.ts +12 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +136 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +38 -3
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +34 -11
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +15 -4
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +86 -9
- package/lib/tab/index.d.ts +107 -219
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +17 -41
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +54 -4
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +27 -0
- package/lib/table/components/table-column.d.ts +142 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +103 -1
- package/lib/table/index.d.ts +776 -22
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +40 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +71 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +92 -0
- package/lib/table/plugins/head-filter.variable.css +190 -0
- package/lib/table/plugins/head-sort.css +25 -0
- package/lib/table/plugins/head-sort.d.ts +22 -0
- package/lib/table/plugins/head-sort.less +31 -0
- package/lib/table/plugins/head-sort.variable.css +144 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +248 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +12 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +280 -5
- package/lib/table/render.d.ts +54 -7
- package/lib/table/table.css +1137 -17
- package/lib/table/table.d.ts +193 -10
- package/lib/table/table.less +230 -25
- package/lib/table/table.variable.css +1176 -30
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +96 -0
- package/lib/table/utils.d.ts +65 -9
- package/lib/table-column/index.d.ts +336 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +4 -4
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +57 -18
- package/lib/tag/tag.d.ts +1 -1
- package/lib/tag/tag.less +58 -15
- package/lib/tag/tag.variable.css +86 -21
- package/lib/tag-input/common.d.ts +27 -0
- package/lib/tag-input/index.d.ts +1182 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +44 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +524 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +328 -0
- package/lib/tag-input/tag-props.d.ts +212 -0
- package/lib/tag-input/tag-render.d.ts +35 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +334 -0
- package/lib/timeline/index.d.ts +6 -6
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +5 -5
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +6 -5
- package/lib/timeline/timeline.variable.css +34 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +339 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +45 -64
- package/lib/transfer/transfer.d.ts +70 -95
- package/lib/transfer/transfer.less +54 -81
- package/lib/transfer/transfer.variable.css +74 -67
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +304 -48
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +97 -0
- package/lib/tree/tree.css +183 -11
- package/lib/tree/tree.d.ts +143 -23
- package/lib/tree/tree.less +72 -10
- package/lib/tree/tree.variable.css +302 -11
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +3 -7
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +425 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +464 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +544 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +24 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +13 -2
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +136 -24
- package/lib/volar.components.d.ts +101 -0
- package/package.json +69 -54
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -13557
- package/dist/bkui-vue.esm.js +0 -13506
- package/dist/bkui-vue.umd.js +0 -13560
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- package/lib/use-form.d.ts +0 -3
package/lib/tree/index.d.ts
CHANGED
@@ -4,18 +4,36 @@ declare const BkTree: {
|
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
6
|
data: any[];
|
7
|
+
search: string | number | boolean | import("./props").SearchOption;
|
8
|
+
draggable: boolean;
|
7
9
|
lineHeight: number;
|
10
|
+
selected: string | number | {
|
11
|
+
[key: string]: any;
|
12
|
+
};
|
8
13
|
prefixIcon: any;
|
9
14
|
children: string;
|
15
|
+
emptyText: string;
|
16
|
+
nodeKey: string;
|
10
17
|
indent: number;
|
11
18
|
levelLine: any;
|
12
19
|
virtualRender: boolean;
|
13
20
|
offsetLeft: number;
|
21
|
+
dragSort: boolean;
|
22
|
+
selectable: boolean;
|
23
|
+
showCheckbox: boolean;
|
24
|
+
showNodeTypeIcon: boolean;
|
25
|
+
autoCheckChildren: boolean;
|
26
|
+
autoOpenParentNode: boolean;
|
14
27
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
15
28
|
data: import("vue-types").VueTypeDef<any[]> & {
|
16
29
|
default: () => any[];
|
17
30
|
};
|
18
31
|
label: import("vue-types").VueTypeDef<any>;
|
32
|
+
nodeKey: import("vue-types").VueTypeValidableDef<string> & {
|
33
|
+
default: string;
|
34
|
+
} & {
|
35
|
+
default: string;
|
36
|
+
};
|
19
37
|
children: import("vue-types").VueTypeValidableDef<string> & {
|
20
38
|
default: string;
|
21
39
|
} & {
|
@@ -45,13 +63,71 @@ declare const BkTree: {
|
|
45
63
|
async: import("vue-types").VueTypeShape<{
|
46
64
|
callback: (item: any, cb: any) => Promise<any>;
|
47
65
|
cache: Boolean;
|
66
|
+
deepAutoOpen?: string;
|
48
67
|
}>;
|
49
68
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
50
69
|
default: number;
|
51
70
|
} & {
|
52
71
|
default: number;
|
53
72
|
};
|
54
|
-
|
73
|
+
search: import("vue-types").VueTypeDef<string | number | boolean | import("./props").SearchOption> & {
|
74
|
+
default: string | number | boolean | (() => import("./props").SearchOption);
|
75
|
+
};
|
76
|
+
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
77
|
+
default: string;
|
78
|
+
} & {
|
79
|
+
default: string;
|
80
|
+
};
|
81
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
82
|
+
default: boolean;
|
83
|
+
} & {
|
84
|
+
default: boolean;
|
85
|
+
};
|
86
|
+
disableDrag: FunctionConstructor;
|
87
|
+
disableDrop: FunctionConstructor;
|
88
|
+
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
89
|
+
default: boolean;
|
90
|
+
} & {
|
91
|
+
default: boolean;
|
92
|
+
};
|
93
|
+
selectable: import("vue-types").VueTypeValidableDef<boolean> & {
|
94
|
+
default: boolean;
|
95
|
+
} & {
|
96
|
+
default: boolean;
|
97
|
+
};
|
98
|
+
showCheckbox: import("vue-types").VueTypeValidableDef<boolean> & {
|
99
|
+
default: boolean;
|
100
|
+
} & {
|
101
|
+
default: boolean;
|
102
|
+
};
|
103
|
+
showNodeTypeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
104
|
+
default: boolean;
|
105
|
+
} & {
|
106
|
+
default: boolean;
|
107
|
+
};
|
108
|
+
selected: import("vue-types").VueTypeDef<string | number | {
|
109
|
+
[key: string]: any;
|
110
|
+
}> & {
|
111
|
+
default: string | number | (() => {
|
112
|
+
[key: string]: any;
|
113
|
+
});
|
114
|
+
};
|
115
|
+
autoCheckChildren: import("vue-types").VueTypeValidableDef<boolean> & {
|
116
|
+
default: boolean;
|
117
|
+
} & {
|
118
|
+
default: boolean;
|
119
|
+
};
|
120
|
+
autoOpenParentNode: import("vue-types").VueTypeValidableDef<boolean> & {
|
121
|
+
default: boolean;
|
122
|
+
} & {
|
123
|
+
default: boolean;
|
124
|
+
};
|
125
|
+
}>> & {
|
126
|
+
onNodeClick?: (...args: any[]) => any;
|
127
|
+
onNodeCollapse?: (...args: any[]) => any;
|
128
|
+
onNodeExpand?: (...args: any[]) => any;
|
129
|
+
onNodeChecked?: (...args: any[]) => any;
|
130
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "data" | "search" | "draggable" | "lineHeight" | "selected" | "prefixIcon" | "children" | "emptyText" | "nodeKey" | "indent" | "levelLine" | "virtualRender" | "offsetLeft" | "dragSort" | "selectable" | "showCheckbox" | "showNodeTypeIcon" | "autoCheckChildren" | "autoOpenParentNode">;
|
55
131
|
$attrs: {
|
56
132
|
[x: string]: unknown;
|
57
133
|
};
|
@@ -63,13 +139,18 @@ declare const BkTree: {
|
|
63
139
|
}>;
|
64
140
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
65
141
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
66
|
-
$emit: ((event:
|
142
|
+
$emit: ((event: import("./constant").EVENTS.NODE_CLICK, ...args: any[]) => void) & ((event: import("./constant").EVENTS.NODE_COLLAPSE, ...args: any[]) => void) & ((event: import("./constant").EVENTS.NODE_EXPAND, ...args: any[]) => void) & ((event: import("./constant").EVENTS.NODE_CHECKED, ...args: any[]) => void);
|
67
143
|
$el: any;
|
68
144
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
69
145
|
data: import("vue-types").VueTypeDef<any[]> & {
|
70
146
|
default: () => any[];
|
71
147
|
};
|
72
148
|
label: import("vue-types").VueTypeDef<any>;
|
149
|
+
nodeKey: import("vue-types").VueTypeValidableDef<string> & {
|
150
|
+
default: string;
|
151
|
+
} & {
|
152
|
+
default: string;
|
153
|
+
};
|
73
154
|
children: import("vue-types").VueTypeValidableDef<string> & {
|
74
155
|
default: string;
|
75
156
|
} & {
|
@@ -99,36 +180,97 @@ declare const BkTree: {
|
|
99
180
|
async: import("vue-types").VueTypeShape<{
|
100
181
|
callback: (item: any, cb: any) => Promise<any>;
|
101
182
|
cache: Boolean;
|
183
|
+
deepAutoOpen?: string;
|
102
184
|
}>;
|
103
185
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
104
186
|
default: number;
|
105
187
|
} & {
|
106
188
|
default: number;
|
107
189
|
};
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
190
|
+
search: import("vue-types").VueTypeDef<string | number | boolean | import("./props").SearchOption> & {
|
191
|
+
default: string | number | boolean | (() => import("./props").SearchOption);
|
192
|
+
};
|
193
|
+
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
194
|
+
default: string;
|
195
|
+
} & {
|
196
|
+
default: string;
|
197
|
+
};
|
198
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
199
|
+
default: boolean;
|
200
|
+
} & {
|
201
|
+
default: boolean;
|
202
|
+
};
|
203
|
+
disableDrag: FunctionConstructor;
|
204
|
+
disableDrop: FunctionConstructor;
|
205
|
+
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
206
|
+
default: boolean;
|
207
|
+
} & {
|
208
|
+
default: boolean;
|
209
|
+
};
|
210
|
+
selectable: import("vue-types").VueTypeValidableDef<boolean> & {
|
211
|
+
default: boolean;
|
212
|
+
} & {
|
213
|
+
default: boolean;
|
214
|
+
};
|
215
|
+
showCheckbox: import("vue-types").VueTypeValidableDef<boolean> & {
|
216
|
+
default: boolean;
|
217
|
+
} & {
|
218
|
+
default: boolean;
|
219
|
+
};
|
220
|
+
showNodeTypeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
221
|
+
default: boolean;
|
222
|
+
} & {
|
223
|
+
default: boolean;
|
224
|
+
};
|
225
|
+
selected: import("vue-types").VueTypeDef<string | number | {
|
226
|
+
[key: string]: any;
|
227
|
+
}> & {
|
228
|
+
default: string | number | (() => {
|
229
|
+
[key: string]: any;
|
230
|
+
});
|
231
|
+
};
|
232
|
+
autoCheckChildren: import("vue-types").VueTypeValidableDef<boolean> & {
|
233
|
+
default: boolean;
|
234
|
+
} & {
|
235
|
+
default: boolean;
|
236
|
+
};
|
237
|
+
autoOpenParentNode: import("vue-types").VueTypeValidableDef<boolean> & {
|
238
|
+
default: boolean;
|
239
|
+
} & {
|
240
|
+
default: boolean;
|
241
|
+
};
|
242
|
+
}>> & {
|
243
|
+
onNodeClick?: (...args: any[]) => any;
|
244
|
+
onNodeCollapse?: (...args: any[]) => any;
|
245
|
+
onNodeExpand?: (...args: any[]) => any;
|
246
|
+
onNodeChecked?: (...args: any[]) => any;
|
247
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
248
|
+
nodeClick: (..._args: any[]) => boolean;
|
249
|
+
nodeCollapse: (..._args: any[]) => boolean;
|
250
|
+
nodeExpand: (..._args: any[]) => boolean;
|
251
|
+
nodeChecked: (..._args: any[]) => boolean;
|
252
|
+
}, string, {
|
124
253
|
data: any[];
|
254
|
+
search: string | number | boolean | import("./props").SearchOption;
|
255
|
+
draggable: boolean;
|
125
256
|
lineHeight: number;
|
257
|
+
selected: string | number | {
|
258
|
+
[key: string]: any;
|
259
|
+
};
|
126
260
|
prefixIcon: any;
|
127
261
|
children: string;
|
262
|
+
emptyText: string;
|
263
|
+
nodeKey: string;
|
128
264
|
indent: number;
|
129
265
|
levelLine: any;
|
130
266
|
virtualRender: boolean;
|
131
267
|
offsetLeft: number;
|
268
|
+
dragSort: boolean;
|
269
|
+
selectable: boolean;
|
270
|
+
showCheckbox: boolean;
|
271
|
+
showNodeTypeIcon: boolean;
|
272
|
+
autoCheckChildren: boolean;
|
273
|
+
autoOpenParentNode: boolean;
|
132
274
|
}> & {
|
133
275
|
beforeCreate?: (() => void) | (() => void)[];
|
134
276
|
created?: (() => void) | (() => void)[];
|
@@ -154,6 +296,11 @@ declare const BkTree: {
|
|
154
296
|
default: () => any[];
|
155
297
|
};
|
156
298
|
label: import("vue-types").VueTypeDef<any>;
|
299
|
+
nodeKey: import("vue-types").VueTypeValidableDef<string> & {
|
300
|
+
default: string;
|
301
|
+
} & {
|
302
|
+
default: string;
|
303
|
+
};
|
157
304
|
children: import("vue-types").VueTypeValidableDef<string> & {
|
158
305
|
default: string;
|
159
306
|
} & {
|
@@ -183,28 +330,71 @@ declare const BkTree: {
|
|
183
330
|
async: import("vue-types").VueTypeShape<{
|
184
331
|
callback: (item: any, cb: any) => Promise<any>;
|
185
332
|
cache: Boolean;
|
333
|
+
deepAutoOpen?: string;
|
186
334
|
}>;
|
187
335
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
188
336
|
default: number;
|
189
337
|
} & {
|
190
338
|
default: number;
|
191
339
|
};
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
340
|
+
search: import("vue-types").VueTypeDef<string | number | boolean | import("./props").SearchOption> & {
|
341
|
+
default: string | number | boolean | (() => import("./props").SearchOption);
|
342
|
+
};
|
343
|
+
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
344
|
+
default: string;
|
345
|
+
} & {
|
346
|
+
default: string;
|
347
|
+
};
|
348
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
349
|
+
default: boolean;
|
350
|
+
} & {
|
351
|
+
default: boolean;
|
352
|
+
};
|
353
|
+
disableDrag: FunctionConstructor;
|
354
|
+
disableDrop: FunctionConstructor;
|
355
|
+
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
356
|
+
default: boolean;
|
357
|
+
} & {
|
358
|
+
default: boolean;
|
359
|
+
};
|
360
|
+
selectable: import("vue-types").VueTypeValidableDef<boolean> & {
|
361
|
+
default: boolean;
|
362
|
+
} & {
|
363
|
+
default: boolean;
|
364
|
+
};
|
365
|
+
showCheckbox: import("vue-types").VueTypeValidableDef<boolean> & {
|
366
|
+
default: boolean;
|
367
|
+
} & {
|
368
|
+
default: boolean;
|
369
|
+
};
|
370
|
+
showNodeTypeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
371
|
+
default: boolean;
|
372
|
+
} & {
|
373
|
+
default: boolean;
|
374
|
+
};
|
375
|
+
selected: import("vue-types").VueTypeDef<string | number | {
|
376
|
+
[key: string]: any;
|
377
|
+
}> & {
|
378
|
+
default: string | number | (() => {
|
379
|
+
[key: string]: any;
|
380
|
+
});
|
381
|
+
};
|
382
|
+
autoCheckChildren: import("vue-types").VueTypeValidableDef<boolean> & {
|
383
|
+
default: boolean;
|
384
|
+
} & {
|
385
|
+
default: boolean;
|
386
|
+
};
|
387
|
+
autoOpenParentNode: import("vue-types").VueTypeValidableDef<boolean> & {
|
388
|
+
default: boolean;
|
389
|
+
} & {
|
390
|
+
default: boolean;
|
198
391
|
};
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
getNodePrefixIcon: (item: any) => any;
|
206
|
-
getLoadingIcon: (item: any) => "" | JSX.Element;
|
207
|
-
}> & {} & {} & import("vue").ComponentCustomProperties;
|
392
|
+
}>> & {
|
393
|
+
onNodeClick?: (...args: any[]) => any;
|
394
|
+
onNodeCollapse?: (...args: any[]) => any;
|
395
|
+
onNodeExpand?: (...args: any[]) => any;
|
396
|
+
onNodeChecked?: (...args: any[]) => any;
|
397
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
208
398
|
__isFragment?: never;
|
209
399
|
__isTeleport?: never;
|
210
400
|
__isSuspense?: never;
|
@@ -213,6 +403,11 @@ declare const BkTree: {
|
|
213
403
|
default: () => any[];
|
214
404
|
};
|
215
405
|
label: import("vue-types").VueTypeDef<any>;
|
406
|
+
nodeKey: import("vue-types").VueTypeValidableDef<string> & {
|
407
|
+
default: string;
|
408
|
+
} & {
|
409
|
+
default: string;
|
410
|
+
};
|
216
411
|
children: import("vue-types").VueTypeValidableDef<string> & {
|
217
412
|
default: string;
|
218
413
|
} & {
|
@@ -242,35 +437,96 @@ declare const BkTree: {
|
|
242
437
|
async: import("vue-types").VueTypeShape<{
|
243
438
|
callback: (item: any, cb: any) => Promise<any>;
|
244
439
|
cache: Boolean;
|
440
|
+
deepAutoOpen?: string;
|
245
441
|
}>;
|
246
442
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
247
443
|
default: number;
|
248
444
|
} & {
|
249
445
|
default: number;
|
250
446
|
};
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
447
|
+
search: import("vue-types").VueTypeDef<string | number | boolean | import("./props").SearchOption> & {
|
448
|
+
default: string | number | boolean | (() => import("./props").SearchOption);
|
449
|
+
};
|
450
|
+
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
451
|
+
default: string;
|
452
|
+
} & {
|
453
|
+
default: string;
|
454
|
+
};
|
455
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
456
|
+
default: boolean;
|
457
|
+
} & {
|
458
|
+
default: boolean;
|
459
|
+
};
|
460
|
+
disableDrag: FunctionConstructor;
|
461
|
+
disableDrop: FunctionConstructor;
|
462
|
+
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
463
|
+
default: boolean;
|
464
|
+
} & {
|
465
|
+
default: boolean;
|
466
|
+
};
|
467
|
+
selectable: import("vue-types").VueTypeValidableDef<boolean> & {
|
468
|
+
default: boolean;
|
469
|
+
} & {
|
470
|
+
default: boolean;
|
471
|
+
};
|
472
|
+
showCheckbox: import("vue-types").VueTypeValidableDef<boolean> & {
|
473
|
+
default: boolean;
|
474
|
+
} & {
|
475
|
+
default: boolean;
|
476
|
+
};
|
477
|
+
showNodeTypeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
478
|
+
default: boolean;
|
479
|
+
} & {
|
480
|
+
default: boolean;
|
481
|
+
};
|
482
|
+
selected: import("vue-types").VueTypeDef<string | number | {
|
483
|
+
[key: string]: any;
|
484
|
+
}> & {
|
485
|
+
default: string | number | (() => {
|
486
|
+
[key: string]: any;
|
487
|
+
});
|
257
488
|
};
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
489
|
+
autoCheckChildren: import("vue-types").VueTypeValidableDef<boolean> & {
|
490
|
+
default: boolean;
|
491
|
+
} & {
|
492
|
+
default: boolean;
|
493
|
+
};
|
494
|
+
autoOpenParentNode: import("vue-types").VueTypeValidableDef<boolean> & {
|
495
|
+
default: boolean;
|
496
|
+
} & {
|
497
|
+
default: boolean;
|
498
|
+
};
|
499
|
+
}>> & {
|
500
|
+
onNodeClick?: (...args: any[]) => any;
|
501
|
+
onNodeCollapse?: (...args: any[]) => any;
|
502
|
+
onNodeExpand?: (...args: any[]) => any;
|
503
|
+
onNodeChecked?: (...args: any[]) => any;
|
504
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
505
|
+
nodeClick: (..._args: any[]) => boolean;
|
506
|
+
nodeCollapse: (..._args: any[]) => boolean;
|
507
|
+
nodeExpand: (..._args: any[]) => boolean;
|
508
|
+
nodeChecked: (..._args: any[]) => boolean;
|
509
|
+
}, string, {
|
267
510
|
data: any[];
|
511
|
+
search: string | number | boolean | import("./props").SearchOption;
|
512
|
+
draggable: boolean;
|
268
513
|
lineHeight: number;
|
514
|
+
selected: string | number | {
|
515
|
+
[key: string]: any;
|
516
|
+
};
|
269
517
|
prefixIcon: any;
|
270
518
|
children: string;
|
519
|
+
emptyText: string;
|
520
|
+
nodeKey: string;
|
271
521
|
indent: number;
|
272
522
|
levelLine: any;
|
273
523
|
virtualRender: boolean;
|
274
524
|
offsetLeft: number;
|
525
|
+
dragSort: boolean;
|
526
|
+
selectable: boolean;
|
527
|
+
showCheckbox: boolean;
|
528
|
+
showNodeTypeIcon: boolean;
|
529
|
+
autoCheckChildren: boolean;
|
530
|
+
autoOpenParentNode: boolean;
|
275
531
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
276
532
|
export default BkTree;
|
package/lib/tree/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue"),require("crypto"),require("../icon/"),require("../shared"),require("../virtual-render")):"function"==typeof define&&define.amd?define(["exports","vue","crypto","../icon/","../shared","../virtual-render"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.require$$0,e._,e.Shared,e["@bkui-vue/virtual-render"])}(this,(function(e,n,t,r,o,i){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(t),a=u(i);function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}};!function(e){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s);var f=c(s.exports),d={exports:{}};!function(e){e.exports=function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var p=c(d.exports),v={exports:{}},_={exports:{}},y={exports:{}};!function(e){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(y),function(e){var n=y.exports;e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(_);var h={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(h);var x={exports:{}};!function(e){var n=y.exports;e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(x);var b={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(b),function(e){var n=_.exports,t=h.exports,r=x.exports,o=b.exports;e.exports=function(e){return n(e)||t(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(v);for(var g=c(v.exports),m=l.default,O=function(){return m.randomBytes(16)},T=[],j=0;j<256;++j)T[j]=(j+256).toString(16).substr(1);var k,P,I=function(e,n){var t=n||0,r=T;return[r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")},N=O,w=I,A=0,S=0;var V=function(e,n,t){var r=n&&t||0,o=n||[],i=(e=e||{}).node||k,u=void 0!==e.clockseq?e.clockseq:P;if(null==i||null==u){var l=N();null==i&&(i=k=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==u&&(u=P=16383&(l[6]<<8|l[7]))}var a=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:S+1,s=a-A+(c-S)/1e4;if(s<0&&void 0===e.clockseq&&(u=u+1&16383),(s<0||a>A)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");A=a,S=c,P=u;var f=(1e4*(268435455&(a+=122192928e5))+c)%4294967296;o[r++]=f>>>24&255,o[r++]=f>>>16&255,o[r++]=f>>>8&255,o[r++]=255&f;var d=a/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=u>>>8|128,o[r++]=255&u;for(var p=0;p<6;++p)o[r+p]=i[p];return n||w(o)},C=O,L=I;var M=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||C)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n)for(var i=0;i<16;++i)n[r+i]=o[i];return n||L(o)},q=V,D=M,R=D;R.v1=q,R.v4=D;var H=R,E=void 0,$="1px dashed #c3cdd7",F=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=e.data,o=e.children,i=[],u=0,l=new Map;function a(e){return(t||[]).some((function(n){return n.__uuid===e&&n.__isOpen}))}function c(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=0;s<e.length;s++){var d=e[s];if(Array.isArray(d))c(d,n,t,r);else if("object"===f(d)&&null!==d){var v=d.__uuid||H.v4(),_=a(v),y=null!==r?"".concat(r,"-").concat(s):"".concat(s),h=p({__depth:n,__index:s,__uuid:v,__parentId:t,__parentPath:r,__hasChild:!!(d[o]||[]).length,__path:y,__isRoot:null===t,__order:u,__isOpen:_,__checked:!1},o,null);Object.assign(d,{__uuid:v}),l.set(v,h),u+=1,i.push(Object.assign(Object.assign({},d),p({},o,null))),Object.prototype.hasOwnProperty.call(d,o)&&c(d[o]||[],n+1,v,y)}}}return c(n||r),[i,l]},B=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=e[n];return"boolean"==typeof u?u?r:o:U(t,e,n,i)},U=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=n[t];if("string"==typeof o)return"object"===f(e)&&null!==e?(Object.prototype.hasOwnProperty.call(e,o)||console.error("cannot find node label with key ".concat(o)),e[o]):o;if("function"==typeof o){var i=o.apply(E,[e].concat(g(r)));return"string"==typeof i?i:void console.error("props label with function return value is not string, please check and return string")}},W=function(e,n){return U(e,n,"label")},z=function(e,n){return e.get(n)||{}},G=function(e,n,t){var r;return null===(r=z(e,n))||void 0===r?void 0:r[t]},J=function(e,n){return{"--level-line":B(n,"levelLine",e,$,null,["tree"]),"--lineHeight":"".concat(n.lineHeight,"px"),"--indent":"".concat(n.indent,"px"),"--offset-left":"".concat(n.offsetLeft,"px")}},K=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.schema,o=G(r,e.__uuid,"__depth");return Object.assign({"--depth":o},"function"==typeof n.levelLine?{"--level-line":B(n,"levelLine",e,$,null,["node"])}:{})},Q=function(e,n,t){var r=z(n,e.__uuid)||{};return{"is-root":r.__isRoot,"bk-tree-node":!0,"is-open":r.__isOpen,"is-virtual-render":t.virtualRender,"level-line":t.levelLine}},X=function(e,n){return{"is-checked":(z(n,e.__uuid)||{}).__checked,"bk-node-row":!0}},Y=function(e,n,t,r){var o=e.split("-").reduce((function(e,n){var r=Number(n);return Array.isArray(e)?e[r]:e[t][r]}),n);Object.assign(o,r||{})},Z={data:o.PropTypes.arrayOf(o.PropTypes.any).def([]),label:o.PropTypes.oneOfType([o.PropTypes.func.def(void 0),o.PropTypes.string.def("label")]),children:o.PropTypes.string.def("children"),indent:o.PropTypes.number.def(18),lineHeight:o.PropTypes.number.def(32),levelLine:o.PropTypes.oneOfType([o.PropTypes.bool.def(!1),o.PropTypes.func.def(void 0),o.PropTypes.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:o.PropTypes.bool.def(!1),prefixIcon:o.PropTypes.oneOfType([o.PropTypes.func.def((function(){})),o.PropTypes.bool.def(!1)]).def(!0),async:o.PropTypes.shape({callback:o.PropTypes.func.def(null),cache:o.PropTypes.bool.def(!0)}),offsetLeft:o.PropTypes.number.def(15)},ee=n.defineComponent({name:"Tree",props:Z,setup:function(e,t){var o=F(e),i=[],u=n.reactive({data:o[0],schema:o[1],levelLineSchema:{}});n.watch((function(){return[e.data]}),(function(n){var t=F(e,n,l.value);u.data=t[0],u.schema=t[1]}),{deep:!0});var l=n.computed((function(){return Array.from(u.schema.values())})),a=function(e){return u.schema.get(e)},c=function(e,n){var t;return null===(t=a(e.__uuid))||void 0===t?void 0:t[n]},s=function(e,n,t){return u.schema.set(e.__uuid,Object.assign(Object.assign({},a(e.__uuid)),p({},n,t)))},d=function(e){return c(e,"__path")},v=function(e){return c(e,"__isRoot")},_=function(e){return c(e,"__isOpen")},y=function(e){return c(e,"__hasChild")},h=n.computed((function(){return u.data.filter((function(e){return T(e)}))})),x=function(e){var n;return"object"===f(e)?_(e):"string"==typeof e&&(null===(n=a(e))||void 0===n?void 0:n.__isOpen)},b=function(e){return x(e)?n.createVNode(r.FolderShapeOpen,{class:"bk-tree-icon"},null):n.createVNode(r.Folder,{class:"bk-tree-icon"},null)},g=function(e){if("string"==typeof e)return e;if("object"===f(e)&&null!==e){if(e.__v_isVNode)return e;var t=e.node,r=e.className,o=e.text,i=e.style;return n.h(t,{class:r,style:i},o)}return null},m=function(n,t){if("object"===f(n)&&null!==n){s(t,"__isOpen",!0);var r=Array.isArray(n)?n:[n];!function(e,n,t,r,o){Y(e,n,t,p({},r,o))}(d(t),e.data,e.children,e.children,r)}},O=function(n){if(n.async){var t=e.async||{},r=t.callback,o=void 0===r?null:r,i=t.cache,u=void 0===i||i;"function"!=typeof o||n.cached?console.error("async need to set prop: asyncLoad with function wich will return promise object"):(Object.assign(n,{loading:!0}),o(n,(function(e){return m(e,n)})).then((function(e){return m(e,n)})).catch((function(e){return console.error("load remote data error:",e)})).finally((function(){Y(d(n),e.data,e.children,Object.assign({loading:!1},u?{cached:!0}:{}))})))}y(n)&&function(e){var n=!x(e);s(e,"__isOpen",n),n||h.value.filter((function(n){return String.prototype.startsWith.call(d(n),d(e))})).forEach((function(e){return s(e,"__isOpen",n)}))}(n)},T=function(e){return v(e)||x(e)||x(c(e,"__parentId"))};return{renderData:h,flatData:u,hanldeTreeNodeClick:O,handleNodeContentClick:function(e){i.includes(e.__uuid)||(i.forEach((function(e){return s({__uuid:e},"__checked",!1)})),i.length=0,s(e,"__checked",!0),i.push(e.__uuid),_(e)||O(e),t.emit("check",e,a(e.__uuid)))},handleNodeActionClick:function(e){O(e)},getActionIcon:function(t){var o=null;return"function"==typeof e.prefixIcon&&"default"!==(o=e.prefixIcon(v(t),y(t)||t.async,x(t),"action",t))?g(o):("default"===o||"boolean"==typeof e.prefixIcon&&e.prefixIcon)&&(y(t)||t.async)?x(t)?n.createVNode(r.DownShape,null,null):n.createVNode(r.RightShape,null,null):null},getRootIcon:b,getVirtualLines:function(t){if(!e.levelLine)return null;var r=c(t,"__depth")+1;return new Array(r).fill("").map((function(e,n){return n})).filter((function(e){return function(e,n){if(v(n))return!1;var t=d(n),r="".concat(t).split("-").slice(0,e+1);if(r.join("-")===t)return!0;var o=r.pop(),i=parseInt(o,10);r.push("".concat(i+1));var u=r.join("-");return l.value.some((function(e){return e.__path===u}))}(e,t)})).filter((function(e){return e>0})).map((function(e){return n.createVNode("span",{class:"node-virtual-line",style:(t=r-e,{"--depth":t})},null);var t}))},getNodePrefixIcon:function(t){var o=null;return"function"==typeof e.prefixIcon&&"default"!==(o=e.prefixIcon(v(t),y(t)||t.async,x(t),"node_type",t))?g(o):"default"===o||"boolean"==typeof e.prefixIcon&&e.prefixIcon?v(t)||y(t)?b(t):n.createVNode(r.TextFile,{class:"bk-tree-icon"},null):null},getLoadingIcon:function(e){return e.loading?n.createVNode(r.Spinner,null,null):""}}},render:function(){var e=this,t=this.$props,r=function(r){return n.createVNode("div",{class:X(r,e.flatData.schema)},[n.createVNode("div",{class:Q(r,e.flatData.schema,t),style:K(r,t,e.flatData)},[n.createVNode("span",{class:"node-action",onClick:function(){return e.handleNodeActionClick(r)}},[e.getActionIcon(r)]),n.createVNode("span",{class:"node-content",onClick:function(){return e.handleNodeContentClick(r)}},[[e.getNodePrefixIcon(r),e.getLoadingIcon(r)],n.createVNode("span",null,[W(r,t)])]),e.getVirtualLines(r)])])};return n.createVNode(a.default,{class:"bk-tree",style:J(null,t),list:this.renderData,lineHeight:t.lineHeight,enabled:t.virtualRender,throttleDelay:0},{default:function(e){return(e.data||[]).map(r)}})}}),ne=o.withInstall(ee);e.default=ne,Object.defineProperty(e,"__esModule",{value:!0})}));
|
1
|
+
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"),require("../virtual-render"),require("../exception"),require("../checkbox"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../virtual-render","../exception","../checkbox","../icon"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue"),require("../virtual-render"),require("../exception"),require("../checkbox"),require("../icon")):n(e["../shared"],e.vue,e["../virtual-render"],e["../exception"],e["../checkbox"],e["../icon"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,n,t,r,o,i)=>(()=>{var a={8022:(e,n,t)=>{var r=t(4481),o=t(6426),i=o;i.v1=r,i.v4=o,e.exports=i},8725:e=>{for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},9157:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var r=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r}}},4481:(e,n,t)=>{var r,o,i=t(9157),a=t(8725),l=0,u=0;e.exports=function(e,n,t){var c=n&&t||0,s=n||[],d=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=i();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:u+1,h=v-l+(y-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||v>l)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=v,u=y,o=f;var N=(1e4*(268435455&(v+=122192928e5))+y)%4294967296;s[c++]=N>>>24&255,s[c++]=N>>>16&255,s[c++]=N>>>8&255,s[c++]=255&N;var _=v/4294967296*1e4&268435455;s[c++]=_>>>8&255,s[c++]=255&_,s[c++]=_>>>24&15|16,s[c++]=_>>>16&255,s[c++]=f>>>8|128,s[c++]=255&f;for(var I=0;I<6;++I)s[c+I]=d[I];return n||a(s)}},6426:(e,n,t)=>{var r=t(9157),o=t(8725);e.exports=function(e,n,t){var i=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var l=0;l<16;++l)n[i+l]=a[l];return n||o(a)}},5800:e=>{"use strict";e.exports=o},9911:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=i},4212:n=>{"use strict";n.exports=e},3511:e=>{"use strict";e.exports=t},748:e=>{"use strict";e.exports=n}},l={};function u(e){var n=l[e];if(void 0!==n)return n.exports;var t=l[e]={exports:{}};return a[e](t,t.exports,u),t.exports}u.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return u.d(n,{a:n}),n},u.d=(e,n)=>{for(var t in n)u.o(n,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},u.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";u.r(c),u.d(c,{default:()=>K});var e,n,t,r=u(4212),o=u(748),i=u(3511),a=u.n(i);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}!function(e){e.NODE_CLICK="nodeClick",e.NODE_COLLAPSE="nodeCollapse",e.NODE_EXPAND="nodeExpand",e.NODE_CHECKED="nodeChecked"}(t||(t={}));var s,d=function(){return!0},f=(l(e={},t.NODE_CLICK,d),l(e,t.NODE_COLLAPSE,d),l(e,t.NODE_EXPAND,d),l(e,t.NODE_CHECKED,d),e);!function(e){e.DEPTH="__depth",e.INDEX="__index",e.UUID="__uuid",e.PARENT_ID="__parent_id",e.HAS_CHILD="__has_child",e.PATH="__path",e.IS_ROOT="__is_root",e.ORDER="__order",e.IS_OPEN="__is_open",e.IS_CHECKED="__is_checked",e.IS_SELECTED="__is_selected",e.IS_ASYNC_INIT="__is_async_init",e.IS_MATCH="__is_match",e.IS_NULL="__IS_NULL",e.IS_CACHED="__is_cached",e.IS_ASYNC="__is_async",e.IS_LOADING="__is_loading",e.TREE_NODE_ATTR="__attr__"}(s||(s={}));var p=(l(n={},s.IS_OPEN,"isOpen"),l(n,s.IS_SELECTED,"selected"),l(n,s.IS_MATCH,"isMatch"),l(n,s.HAS_CHILD,"hasChild"),l(n,s.IS_CHECKED,"checked"),l(n,s.IS_ASYNC,"async"),l(n,s.IS_LOADING,"loading"),l(n,s.IS_ROOT,"isRoot"),n),v={data:r.PropTypes.arrayOf(r.PropTypes.any).def([]),label:r.PropTypes.oneOfType([r.PropTypes.func.def(void 0),r.PropTypes.string.def("label")]),nodeKey:r.PropTypes.string.def(void 0),children:r.PropTypes.string.def("children"),indent:r.PropTypes.number.def(18),lineHeight:r.PropTypes.number.def(32),levelLine:r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.func.def(void 0),r.PropTypes.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:r.PropTypes.bool.def(!1),prefixIcon:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){})),r.PropTypes.bool.def(!1)]).def(!0),async:r.PropTypes.shape({callback:r.PropTypes.func.def(void 0),cache:r.PropTypes.bool.def(!0),deepAutoOpen:r.PropTypes.commonType(["once","every"],"columnType").def("once")}),offsetLeft:r.PropTypes.number.def(5),search:r.PropTypes.oneOfType([r.PropTypes.shape({value:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string,r.PropTypes.bool]).def(""),match:r.PropTypes.oneOfType([r.PropTypes.commonType(["fuzzy","full"],"TreeSearchMatchType"),r.PropTypes.func]),resultType:r.PropTypes.commonType(["tree","list"],"TreeSearchResultType").def("tree"),openResultNode:r.PropTypes.bool}),r.PropTypes.string,r.PropTypes.number,r.PropTypes.bool]).def(void 0),emptyText:r.PropTypes.string.def("没有数据"),draggable:r.PropTypes.bool.def(!1),disableDrag:Function,disableDrop:Function,dragSort:r.PropTypes.bool.def(!1),selectable:r.PropTypes.bool.def(!0),showCheckbox:r.PropTypes.bool.def(!1),showNodeTypeIcon:r.PropTypes.bool.def(!0),selected:r.PropTypes.oneOfType([r.PropTypes.string,null,r.PropTypes.number,r.PropTypes.object]).def(null),autoCheckChildren:r.PropTypes.bool.def(!0),autoOpenParentNode:r.PropTypes.bool.def(!0)},y=u(9911),h=u.n(y);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}var _=u(5800),I=u.n(_),S=u(6870);const g=function(e,n){var t=function(n){return e.schema.get(n)},r=function(e,n){var r;return null===(r=t(e[s.UUID]))||void 0===r?void 0:r[n]},o=function(n,r,o){e.schema.set(n[s.UUID],Object.assign(Object.assign({},t(n[s.UUID])),l({},r,o)))},i=function(e){return r(e,s.PATH)},a=function(e){return r(e,s.UUID)},u=function(e){return r(e,s.IS_ROOT)},c=function(e){return r(e,s.IS_OPEN)},d=function(e){return r(e,s.HAS_CHILD)},f=function(e){return r(e,s.IS_MATCH)},v=function(e){return r(e,s.IS_CHECKED)},y=function(e){return r(e,s.PARENT_ID)},h=function(e){return r(l({},s.UUID,e),s.PARENT_ID)},_=function(e){var n;return"object"===N(e)?c(e):"string"==typeof e&&(null===(n=t(e))||void 0===n?void 0:n[s.IS_OPEN])},I=function(e){return e.split("-").reduce((function(e,t){var r=Number(t);return Array.isArray(e)?e[r]:e[n.children][r]}),n.data)},S=function(e){return I(i(l({},s.UUID,e)))},g=function(e){var n;return l(n={},p[s.IS_LOADING],r(e,s.IS_LOADING)),l(n,p[s.HAS_CHILD],d(e)),l(n,p[s.IS_MATCH],f(e)),l(n,p[s.IS_CHECKED],v(e)),l(n,p[s.IS_OPEN],c(e)),l(n,p[s.IS_ROOT],u(e)),l(n,"fullPath",r(e,s.PATH)),l(n,"uuid",a(e)),l(n,"parentId",r(e,s.PARENT_ID)),n};return{getSchemaVal:t,getNodeAttr:r,getNodeId:a,getNodeParentId:y,getNodeParentIdById:h,getParentNodeData:function(e){return u(l({},s.UUID,e))?l({},n.children,n.data):S(h(e))},getParentNode:function(e){return t(y(e))},setNodeAttr:o,getNodePath:i,isRootNode:u,isNodeOpened:c,hasChildNode:d,isItemOpen:_,isNodeChecked:v,isNodeMatched:f,isNodeLoading:function(e){return r(e,s.IS_LOADING)},checkNodeIsOpen:function(e){return u(e)||function(e){return _(r(e,s.PARENT_ID))}(e)},getSourceNodeByPath:I,getSourceNodeByUID:S,deleteNodeSchema:function(n){return e.schema.delete(n)},resolveScopedSlotParam:g,setTreeNodeLoading:function(e,n){o(e,s.IS_LOADING,n)},extendNodeAttr:function(e){return Object.assign(Object.assign({},e),l({},s.TREE_NODE_ATTR,g(e)))},getChildNodes:function(n){var t=e.schema;return Array.prototype.filter.call(Array.from(t.keys()),(function(e){return t.get(e)[s.PARENT_ID]===n[s.UUID]}))}}};function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var T=void 0,C="1px dashed #c3cdd7",D=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=e[n];return"boolean"==typeof a?a?r:o:b(t,e,n,i)},b=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=n[t];if("string"==typeof o)return"object"===N(e)&&null!==e?(Object.prototype.hasOwnProperty.call(e,o)||console.error("cannot find node label with key ".concat(o)),e[o]):o;if("function"==typeof o){var i=o.apply(T,[e].concat(E(r)));return"string"==typeof i?i:void console.error("props label with function return value is not string, please check and return string")}},P=function(e,n){return b(e,n,"label")},A=function(e,n){return e.get(n)||{}},O=function(e,n,t){var r;return null===(r=A(e,n))||void 0===r?void 0:r[t]},L=function(e,n){return{"--level-line":D(n,"levelLine",e,C,null,["tree"]),"--lineHeight":"".concat(n.lineHeight,"px"),"--indent":"".concat(n.indent,"px"),"--offset-left":"".concat(n.offsetLeft,"px")}},U=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.schema,o=O(r,e[s.UUID],s.DEPTH);return Object.assign({"--depth":o},"function"==typeof n.levelLine?{"--level-line":D(n,"levelLine",e,C,null,["node"])}:{})},x=function(e,n,t){var r=A(n,e[s.UUID])||{};return{"is-root":r.__is_root,"bk-tree-node":!0,"is-open":r.__is_open,"is-virtual-render":t.virtualRender,"level-line":t.levelLine}},H=function(e,n){var t=A(n,e[s.UUID])||{};return l({"is-checked":t.__is_checked,"is-selected":t.__is_selected},(0,r.resolveClassName)("node-row"),!0)},k=function(e){return null==e?{__IS_NULL:!0}:"string"==typeof e||"number"==typeof e||"symbol"===N(e)?l({},s.UUID,e):(Object.prototype.hasOwnProperty.call(e,s.UUID)||console.error("setNodeAction Error: node id cannot found"),e)};const R=function(e,n){var t=g(n,e),r=t.setNodeAttr,o=t.getNodePath,i=t.getNodeAttr,a=t.resolveScopedSlotParam,u=t.setTreeNodeLoading,c=function(n,t){if("object"===N(n)&&null!==n){r(t,s.IS_OPEN,!0);var i=Array.isArray(n)?n:[n];return function(e,n,t,r,o){!function(e,n,t,r){var o=e.split("-").reduce((function(e,n){var r=Number(n);return Array.isArray(e)?e[r]:e[t][r]}),n);Object.assign(o,r||{})}(e,n,t,l({},r,o))}(o(t),e.data,e.children,e.children,i),Promise.resolve(n)}return Promise.resolve(n)},d=function(n){var t=e.async||{},o=t.callback,l=void 0===o?null:o,d=t.cache,f=void 0===d||d;if("function"==typeof l&&i(n,s.IS_ASYNC)){if(r(n,s.IS_ASYNC_INIT,!0),!i(n,s.IS_CACHED)){r(n,s.IS_CACHED,f);var p=a(n),v=l(n,(function(e){return c(e,n)}),p);if("object"===N(v)&&null!==v)return u(n,!0),v instanceof Promise?Promise.resolve(v.then((function(e){return c(e,n)})).catch((function(e){return console.error("load remote data error:",e)})).finally((function(){u(n,!1),r(n,s.IS_CACHED,!0)}))):(c(v,n),u(n,!1),Promise.resolve(!0))}return Promise.resolve(!0)}return Promise.resolve(!0)};return{asyncNodeClick:d,deepAutoOpen:function e(){var t=n.data.filter((function(e){return i(e,s.IS_ASYNC)&&e[p[s.IS_OPEN]]&&!i(e,s.IS_ASYNC_INIT)}));t.length&&Promise.all(t.map((function(e){return d(e)}))).then((function(){e()})).catch((function(e){console.warn(e)}))}}},w=function(e,n,i,a,u,c){var d=e.selected,f=g(i,e),p=f.setNodeAttr,v=f.getNodePath,y=f.getSchemaVal,h=f.getNodeAttr,_=f.getNodeId,m=f.getChildNodes,E=f.isRootNode,T=f.hasChildNode,C=f.isItemOpen,D=f.isNodeOpened,b=f.isNodeLoading,A=f.isNodeChecked,O=f.getParentNode,L=f.resolveScopedSlotParam,w=f.extendNodeAttr,j=c.registerNextLoop,V=R(e,i),M=V.asyncNodeClick,K=V.deepAutoOpen,q=function(e){if("string"==typeof e)return e;if("object"===N(e)&&null!==e){if(e.__v_isVNode)return e;var n=e.node,t=e.className,r=e.text,i=e.style;return(0,o.h)(n,{class:t,style:i},r)}return null},Y=function(t){if(n.slots.nodeAction)return n.slots.nodeAction(w(t));var i=null;return b(t)?function(e){var t,r,i;return(null!==(i=null===(r=(t=n.slots).nodeLoading)||void 0===r?void 0:r.call(t,w(e)))&&void 0!==i?i:b(e))?(0,o.createVNode)(S.Spinner,null,null):""}(t):"function"==typeof e.prefixIcon&&"default"!==(i=e.prefixIcon(w(t),"node_action"))?q(i):("default"===i||"boolean"==typeof e.prefixIcon&&e.prefixIcon)&&(T(t)||t.async||!e.autoCheckChildren)?C(t)?(0,o.createVNode)(S.DownShape,{class:(0,r.resolveClassName)("node-prefix")},null):(0,o.createVNode)(S.RightShape,{class:(0,r.resolveClassName)("node-prefix")},null):null},G=function(t){if(!e.showNodeTypeIcon)return null;if(n.slots.nodeType)return n.slots.nodeType(w(t));var i=null;return"function"==typeof e.prefixIcon&&"default"!==(i=e.prefixIcon(w(t),"node_type"))?q(i):"default"===i||"boolean"==typeof e.prefixIcon&&e.prefixIcon?E(t)||T(t)?function(e){return C(e)?(0,o.createVNode)(S.FolderShapeOpen,{class:[(0,r.resolveClassName)("tree-icon"),(0,r.resolveClassName)("node-prefix")]},null):(0,o.createVNode)(S.Folder,{class:[(0,r.resolveClassName)("tree-icon"),(0,r.resolveClassName)("node-prefix")]},null)}(t):(0,o.createVNode)(S.TextFile,{class:[(0,r.resolveClassName)("tree-icon"),(0,r.resolveClassName)("node-prefix")]},null):null},X=function e(n,t){var r=O(n);r&&(p(r,s.IS_CHECKED,t),E(r)||e(r,t))},z=function e(n,t,r){m(n).forEach((function(n){p(l({},s.UUID,n),t,r),e(l({},s.UUID,n),t,r)}))},F=function(e,r){p(e,s.IS_CHECKED,!!r),z(e,s.IS_CHECKED,!!r),X(e,r),n.emit(t.NODE_CHECKED,u.value.filter((function(e){return A(e)})).map((function(e){return e[s.UUID]})))},J=function(e){return A(e)&&!u.value.filter((function(n){var t;return null===(t=v(n))||void 0===t?void 0:t.startsWith(v(e))})).every((function(e){return A(e)}))},B=function(e){return A(e)||u.value.filter((function(n){var t;return null===(t=v(n))||void 0===t?void 0:t.startsWith(v(e))})).some((function(e){return A(e)}))},W=function(n){return e.showCheckbox?(0,o.createVNode)(I(),{size:"small",modelValue:B(n),indeterminate:J(n),onChange:function(e){return F(n,e)}},null):null},$=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=null===r?!C(e):!!r;if(a||z(e,s.IS_OPEN,a),p(e,s.IS_OPEN,a),i){var l=C(e)?t.NODE_EXPAND:t.NODE_COLLAPSE;n.emit(l,e,L(e),y(e[s.UUID]),o)}},Q=function(e,n,t){Array.isArray(e)?e.forEach((function(e){return p(k(e),n,t)})):p(k(e),n,t)},Z=function e(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=k(n);if(!o[s.IS_NULL])if(r)if(t){if(Q(o,s.IS_OPEN,!0),!E(o)){var i=h(o,s.PARENT_ID);e(i,!0,!0)}}else $(o,!1,null,!1);else Q(o,s.IS_OPEN,t)},ee=function(e,n){D(e)?$(e,!1,n):M(e).finally((function(){h(e,s.IS_LOADING)?j("setNodeOpenedAfterLoading",{type:"once",fn:function(){return $(e,!0,n)}}):$(e,!0,n)}))},ne=function n(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Array.isArray(t)?t:[t];if(a.length){var u=k(a[0]);u[s.IS_NULL]||(e.selectable?(null!=d&&p(l({},s.UUID,d),s.IS_SELECTED,!r),e.selected&&e.selected!==d&&p(l({},s.UUID,e.selected),s.IS_SELECTED,!r),p(u,s.IS_SELECTED,r),d=_(u),i&&1===a.length&&Z(u,!0,!0),h(u,s.IS_ASYNC)&&M(u).then((function(){(0,o.nextTick)((function(){a.shift(),n(a,r,i)}))}))):console.warn("props.selectable is false or undefined, please set selectable with true"))}},te=function(n){if(!e.levelLine)return null;var t=h(n,s.DEPTH)+1;return new Array(t).fill("").map((function(e,n){return n})).filter((function(e){return function(e,n){if(E(n))return!1;var t=v(n),r="".concat(t).split("-").slice(0,e+1);if(r.join("-")===t)return!0;var o=r.pop(),i=parseInt(o,10);r.push("".concat(i+1));var a=r.join("-");return u.value.some((function(e){return e[s.PATH]===a}))}(e,n)})).filter((function(e){return e>0})).map((function(e){return(0,o.createVNode)("span",{class:"node-virtual-line",style:(n=t-e,{"--depth":n})},null);var n}))};return{renderTreeNode:function(a){var l,u,c,d,f;return(0,o.createVNode)("div",{"data-tree-node":_(a),key:_(a),class:H(a,i.schema)},[(0,o.createVNode)("div",{class:x(a,i.schema,e),style:U(a,e,i),onClick:function(e){return function(e,r){ne(e,!0,!1),D(e)||ee(e,r);var o=t.NODE_CLICK;n.emit(o,e,L(e),y(e[s.UUID]),r)}(a,e)}},[(0,o.createVNode)("span",{class:[(0,r.resolveClassName)("node-action")],onClick:function(e){return function(e,n){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),ee(n,e)}(e,a)}},[Y(a)]),(0,o.createVNode)("span",{class:(0,r.resolveClassName)("node-content")},[[W(a),G(a)],(0,o.createVNode)("span",{class:(0,r.resolveClassName)("node-text")},[null!==(c=null===(u=(l=n.slots).node)||void 0===u?void 0:u.call(l,w(a)))&&void 0!==c?c:[P(a,e)]]),null===(f=(d=n.slots).nodeAppend)||void 0===f?void 0:f.call(d,w(a))]),te(a)])])},hanldeTreeNodeClick:ee,deepAutoOpen:K,asyncNodeClick:M,setNodeAction:Q,setNodeOpened:$,setSelect:ne,setOpen:Z}};var j=u(8022),V=void 0;const M=(0,o.defineComponent)({name:"Tree",props:v,emits:f,setup:function(e,n){var t=function(e){var n,t=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e.data,i=e.children,a=[],u=[],c=0,d=new Map;function f(e,n,t,r){if(null!=e&&d.has(e)&&![s.UUID,s.PARENT_ID].includes(n)){var o=d.get(e);Object.prototype.hasOwnProperty.call(o,n)&&"function"==typeof r&&Reflect.apply(r,self,[o,n,t])&&(Object.assign(o,l({},n,t)),f(o[s.PARENT_ID],n,t,r))}}function v(n){var t=null;return"string"==typeof e.nodeKey&&(t=n[e.nodeKey]||(0,j.v4)()),t||n[s.UUID]||(0,j.v4)()}var y=(l(n={},s.IS_OPEN,(function(){return!1})),l(n,s.IS_CHECKED,(function(){return!1})),l(n,s.IS_MATCH,(function(){return!0})),l(n,s.IS_SELECTED,(function(n){return e.selected===n})),l(n,s.IS_CACHED,(function(){return!1})),l(n,s.IS_ASYNC,(function(){return null})),l(n,s.IS_LOADING,(function(){return!1})),n);function h(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=o;void 0===o&&"function"==typeof y[t]&&(i=y[t](e,n));var a=p[t];if(Object.prototype.hasOwnProperty.call(n,a))return n[a];var l=(r||[]).find((function(n){return n[s.UUID]===e})),u=void 0;return l&&(u=l[t]),null==u&&(u=i),u}function _(n,t){return!!e.selectable&&h(n,t,s.IS_SELECTED,e.selected===n)}function I(e,n,t){var r,o=h(e,n,s.IS_OPEN),i=!d.has(t)||(null===(r=d.get(t))||void 0===r?void 0:r[s.IS_OPEN]);return o&&i}function S(e){return!e[s.IS_OPEN]}function g(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,p=n.length,y=0;y<p;y++){var m=n[y];if(Array.isArray(m))g(m,t,r,o);else if("object"===N(m)&&null!==m){var E,T,C=null!==o?"".concat(o,"-").concat(y):"".concat(y),D="".concat(v(m)),b=!!(m[i]||[]).length,P=h(D,m,s.IS_OPEN);e.autoOpenParentNode?P&&f(r,s.IS_OPEN,!0,S):P=I(D,m,r),Object.assign(m,l({},s.UUID,D));var A=e.showCheckbox&&h(D,m,s.IS_CHECKED);A&&a.push(D),d.set(D,(l(E={},s.DEPTH,t),l(E,s.INDEX,y),l(E,s.UUID,D),l(E,s.PARENT_ID,r),l(E,s.HAS_CHILD,b),l(E,s.PATH,C),l(E,s.IS_ROOT,null===r),l(E,s.ORDER,c),l(E,s.IS_SELECTED,_(D,m)),l(E,s.IS_MATCH,h(D,m,s.IS_MATCH)),l(E,s.IS_OPEN,P),l(E,s.IS_CHECKED,A),l(E,s.IS_CACHED,h(D,m,s.IS_CACHED)),l(E,s.IS_ASYNC,h(D,m,s.IS_ASYNC)),l(E,s.IS_LOADING,h(D,m,s.IS_LOADING)),l(E,i,null),E)),c+=1,u.push(Object.assign(Object.assign({},JSON.parse(JSON.stringify(m,(function(n,t){return n===e.children?null:t})))),(l(T={},s.IS_OPEN,P),l(T,i,null),T))),Object.prototype.hasOwnProperty.call(m,i)&&g(m[i]||[],t+1,D,C)}}}return g(t||o),e.showCheckbox&&(null==a||a.forEach((function(e){Array.from(d.values()).filter((function(n){var t;return null===(t=n[s.PATH])||void 0===t?void 0:t.startsWith(d.get(e)[s.PATH])})).forEach((function(e){return Object.assign(e,l({},s.IS_CHECKED,!0))})),f(e,s.IS_CHECKED,!0,(function(){return!0}))}))),[u,d]},r=t(e),i=new Map,a=[],u=[],c=(0,o.reactive)({data:r[0],schema:r[1],levelLineSchema:{}}),d=(0,o.computed)((function(){return Array.from(c.schema.values())})),f=R(e,c),v=f.asyncNodeClick,y=f.deepAutoOpen,h=function(e,n){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&i.has(e)&&i.delete(e),i.set(e,n)},_=function(e){var n,t=function(e){return"function"==typeof e?{type:"loop",fn:e}:"object"===N(e)&&"string"==typeof e.type&&"function"==typeof e.fn?e:(console.error("loop event error",e),null)}(e);return null!==t&&Reflect.apply(t.fn,V,[]),null!==(n=null==t?void 0:t.type)&&void 0!==n?n:"once"};return(0,o.watch)((function(){return[e.data]}),(function(n){var r,o,a=t(e,n,d.value);c.data=a[0],c.schema=a[1],(null===(r=e.async)||void 0===r?void 0:r.callback)&&"every"===(null===(o=e.async)||void 0===o?void 0:o.deepAutoOpen)&&y(),Array.from(i.keys()).forEach((function(e){var n=i.get(e);if(Array.isArray(n)){var t=[];n.forEach((function(e,n){"once"===_(e)&&t.unshift(n)})),t.length&&t.forEach((function(e){return n.splice(e,1)})),0===n.length&&i.delete(e)}else"once"===_(n)&&i.delete(e)}))}),{deep:!0}),e.selectable&&(0,o.watch)((function(){return e.selected}),(function(e){u.length=0,a.forEach((function(n){Reflect.apply(n,V,[e]),u.push((function(){return Reflect.apply(n,V,[e])}))})),h("afterSelectWatch",u)}),{immediate:!0}),(null===(n=e.async)||void 0===n?void 0:n.callback)&&y(),{flatData:c,schemaValues:d,asyncNodeClick:v,deepAutoOpen:y,afterDataUpdate:function(e){h("afterDataUpdate",e)},registerNextLoop:h,onSelected:function(e){a.push(e)}}}(e),i=t.flatData,u=t.schemaValues,c=t.onSelected,d=t.registerNextLoop,f=g(i,e),v=f.setNodeAttr,y=f.checkNodeIsOpen,_=f.getNodeAttr,I=f.getNodePath,S=f.isRootNode,m=f.isNodeOpened,E=f.isNodeChecked,T=f.isNodeMatched,C=f.hasChildNode,D=function(e){var n,t=(0,o.toRef)(e,"search"),r=null!==(n=e.search)&&void 0!==n?n:{},i=r.openResultNode,a=void 0!==i&&i,l=r.resultType,u=void 0===l?"tree":l,c=function(e){return["string","number","boolean"].includes(N(e))},s=function(e,n){return e===n},d=function(e,n){return new RegExp("".concat(e),"i").test("".concat(n))},f=function(e,n){return Reflect.apply(e,void 0,n)},p=void 0===t.value||!1===t.value,v=(0,o.computed)((function(){return!1!==t.value&&(c(t.value)?"".concat(t.value).length>0:"object"===N(t.value))}));return{searchFn:function(e,n){if(p)return!0;if(c(t.value))return f(d,[t.value,e,n]);var r=t.value,o=r.value,i=void 0===o?"":o,a=r.match,l=void 0===a?"fuzzy":a,u="function"==typeof l?l:"fuzzy"===l?d:s;return 0==="".concat(i).length||f(u,[i,e,n])},refSearch:t,isSearchActive:v,isSearchDisabled:p,openResultNode:a,resultType:u,isTreeUI:"tree"===u}}(e),b=D.searchFn,A=D.isSearchActive,O=D.refSearch,U=D.openResultNode,x=D.isTreeUI;D.isSearchDisabled||(0,o.watch)([O],(function(){i.data.forEach((function(n){var t=b(P(n,e),n);v(n,s.IS_MATCH,t),U&&G(n,!0,!0)}))}));var H=(0,o.computed)((function(){return i.data.filter((function(e){return y(e)&&function(e){return!A.value||(_(e,s.IS_MATCH)||!!x&&u.value.some((function(n){var t;return(null===(t=n[s.PATH])||void 0===t?void 0:t.startsWith(I(e)))&&n[s.IS_MATCH]})))}(e)}))})),M=w(e,n,i,0,u,{registerNextLoop:d}),K=M.renderTreeNode,q=M.hanldeTreeNodeClick,Y=M.setNodeOpened,G=M.setOpen,X=M.setNodeAction,z=M.setSelect,F=M.asyncNodeClick;c((function(n){z(n,!0,e.autoOpenParentNode)})),n.expose({hanldeTreeNodeClick:q,isNodeChecked:E,isRootNode:S,isNodeOpened:m,isNodeMatched:T,hasChildNode:C,setOpen:G,setChecked:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];X(k(e),s.IS_CHECKED,n)},setNodeAction:X,setNodeOpened:Y,setSelect:z,asyncNodeClick:F,getData:function(){return i}});var J=(0,o.ref)(),B=function(e,n){var t=n.slots;return{renderEmpty:function(n){var r,i;return(0,o.createVNode)(h(),{scene:"part",type:n},{default:function(){return[null!==(i=null===(r=t.default)||void 0===r?void 0:r.call(t))&&void 0!==i?i:e.emptyText]}})}}}(e,n),W=B.renderEmpty;return function(e,n,t){var r=g(t,e),i=r.getSourceNodeByUID,a=r.getNodeParentIdById,u=r.getParentNodeData,c=r.getNodeAttr,d=r.getNodePath,f=r.isRootNode,p=(0,o.computed)((function(){return"function"==typeof e.disableDrag})),v=(0,o.computed)((function(){return"function"==typeof e.disableDrop})),y=function(e){return e.target.closest("[data-tree-node]")},h=function(e){var n,t=null===(n=null==e?void 0:e.dataset)||void 0===n?void 0:n.treeNode;return i(t)},N=function e(n){y(n).removeEventListener("mouseup",e)},_=function(n){var t=y(n),r=h(t);!1===r.draggable||p.value&&e.disableDrag(r)?t.classList.add("bk-tree-drag-disabled"):(t.setAttribute("draggable","true"),t.addEventListener("mouseup",N))},I=function(n){n.preventDefault();var t=y(n),r=h(t);if(v.value&&(null==e?void 0:e.disableDrop(r)))return n.dataTransfer.effectAllowed="move",n.dataTransfer.dropEffect="none",void t.classList.add("bk-tree-drop-disabled");t.classList.add("bk-tree-drop-active");var o=n.dataTransfer.getData("node-id"),i=t.getAttribute("data-tree-node"),a=E(o,i)?"move":"none";n.dataTransfer.effectAllowed=a,n.dataTransfer.dropEffect=a},S=function(e){e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move";var n=y(e);e.dataTransfer.setData("text/plain",""),e.dataTransfer.setData("node-id",n.getAttribute("data-tree-node"))},m=function(n){n.preventDefault(),n.stopPropagation();var t=y(n);t.classList.remove("bk-tree-drop-active","bk-tree-drop-disabled");var r=h(t);if(!v.value||!e.disableDrop(r)){var o=n.dataTransfer.getData("node-id"),i=t.getAttribute("data-tree-node");Reflect.apply(e.dragSort?T:C,void 0,[o,i])}},E=function(e,n){var t=d(l({},s.UUID,e)),r=d(l({},s.UUID,n));return a(e)===a(n)||-1===t.indexOf(r)&&-1===r.indexOf(t)},T=function(n,t){if(E(n,t)){var r=JSON.parse(JSON.stringify(i(n))),o=JSON.parse(JSON.stringify(i(t))),a=u(n),d=u(t),f=c(l({},s.UUID,n),s.INDEX),p=c(l({},s.UUID,t),s.INDEX);null==a||a[e.children].splice(f,1,o),null==d||d[e.children].splice(p,1,r)}},C=function(n,t){var r=i(n),o=i(t),u=null;if(f(l({},s.UUID,n)))u=e.data;else{var d=a(n);if(null!=d){u=i(d);var p=c(l({},s.UUID,n),s.INDEX);null==u||u[e.children].splice(p,1)}}o[e.children]||(o[e.children]=[]),o[e.children].unshift(r)},D=function(e){e.preventDefault(),y(e).classList.remove("bk-tree-drop-active","bk-tree-drop-disabled")};(0,o.onMounted)((function(){if(e.draggable&&n.value){var t=n.value.$el;t.addEventListener("mousedown",_),t.addEventListener("dragstart",S),t.addEventListener("dragover",I),t.addEventListener("dragleave",D),t.addEventListener("drop",m)}})),(0,o.onUnmounted)((function(){if(e.draggable&&n.value){var t=n.value.$el;t.removeEventListener("mousedown",_),t.removeEventListener("dragstart",S),t.removeEventListener("dragover",I),t.removeEventListener("dragleave",D),t.removeEventListener("drop",m)}}))}(e,J,i),function(){return(0,o.createVNode)(a(),{class:(0,r.resolveClassName)("tree"),style:L(null,e),list:H.value,lineHeight:e.lineHeight,enabled:e.virtualRender,contentClassName:(0,r.resolveClassName)("container"),throttleDelay:0,ref:J},{default:function(e){return function(e){if(e.length)return e.map(K);var n=A.value?"search-empty":"empty";return W(n)}(e.data||[])}})}}}),K=(0,r.withInstall)(M)})(),c})()));
|