vft 0.0.239 → 0.0.241
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/es/components/affix/affix.vue.d.ts +11 -9
- package/es/components/affix/index.d.ts +17 -28
- package/es/components/alert/alert.vue.d.ts +8 -6
- package/es/components/alert/index.d.ts +12 -39
- package/es/components/autocomplete/autocomplete.vue.d.ts +355 -83
- package/es/components/autocomplete/autocomplete.vue2.js +35 -39
- package/es/components/autocomplete/index.d.ts +1040 -287
- package/es/components/avatar/avatar.vue.d.ts +7 -5
- package/es/components/avatar/avatar.vue2.js +28 -31
- package/es/components/avatar/index.d.ts +15 -36
- package/es/components/backtop/backtop.vue.d.ts +7 -5
- package/es/components/backtop/backtop.vue2.js +19 -22
- package/es/components/backtop/index.d.ts +15 -36
- package/es/components/backtop/use-backtop.d.ts +1 -1
- package/es/components/backtop/use-backtop.js +12 -12
- package/es/components/button/button-group.vue.d.ts +4 -2
- package/es/components/button/button.vue.d.ts +13 -11
- package/es/components/button/button.vue2.js +33 -36
- package/es/components/button/index.d.ts +50 -134
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/button/use-button.js +30 -34
- package/es/components/card/card.vue.d.ts +4 -2
- package/es/components/card/index.d.ts +7 -17
- package/es/components/carousel/carousel-item.vue.d.ts +4 -2
- package/es/components/carousel/carousel.vue.d.ts +15 -13
- package/es/components/carousel/index.d.ts +44 -105
- package/es/components/carousel/use-carousel-item.d.ts +10 -10
- package/es/components/carousel/use-carousel-item.js +8 -9
- package/es/components/carousel/use-carousel.d.ts +5 -5
- package/es/components/carousel/use-carousel.js +89 -93
- package/es/components/check-tag/check-tag.vue.d.ts +7 -5
- package/es/components/check-tag/index.d.ts +12 -19
- package/es/components/checkbox/checkbox-button.vue.d.ts +8 -6
- package/es/components/checkbox/checkbox-button.vue2.js +44 -45
- package/es/components/checkbox/checkbox-group.vue.d.ts +10 -8
- package/es/components/checkbox/checkbox-group.vue2.js +51 -54
- package/es/components/checkbox/checkbox.vue.d.ts +10 -8
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-disabled.js +14 -15
- package/es/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-event.js +27 -27
- package/es/components/checkbox/composables/use-checkbox-model.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-model.js +13 -15
- package/es/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-status.js +16 -22
- package/es/components/checkbox/composables/use-checkbox.d.ts +4 -4
- package/es/components/checkbox/index.d.ts +94 -328
- package/es/components/clamp/clamp.vue.d.ts +12 -10
- package/es/components/clamp/clamp.vue2.js +4 -6
- package/es/components/clamp/index.d.ts +14 -40
- package/es/components/clamp-toggle/clamp-toggle.vue.d.ts +1 -1
- package/es/components/clamp-toggle/index.d.ts +3 -3
- package/es/components/clamp-tooltip/clamp-tooltip.vue.d.ts +1 -1
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +29 -32
- package/es/components/clamp-tooltip/index.d.ts +5 -5
- package/es/components/col/col.vue.d.ts +8 -6
- package/es/components/col/index.d.ts +9 -45
- package/es/components/collapse-transition/index.d.ts +8 -23
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +4 -2
- package/es/components/collection/collection-item.vue.d.ts +4 -2
- package/es/components/collection/collection.vue.d.ts +4 -2
- package/es/components/color-picker/color-picker.vue.d.ts +8 -8
- package/es/components/color-picker/color-picker.vue2.js +90 -89
- package/es/components/color-picker/components/alpha-slider.vue.d.ts +4 -4
- package/es/components/color-picker/components/hue-slider.vue.d.ts +16 -16
- package/es/components/color-picker/components/predefine.vue.d.ts +12 -12
- package/es/components/color-picker/components/sv-panel.vue.d.ts +14 -14
- package/es/components/color-picker/components/sv-panel.vue.js +15 -16
- package/es/components/color-picker/composables/use-alpha-slider.d.ts +3 -3
- package/es/components/color-picker/index.d.ts +14 -14
- package/es/components/color-picker/utils/color.js +48 -51
- package/es/components/color-picker/utils/draggable.js +12 -15
- package/es/components/config-provider/config-provider.vue.d.ts +4 -2
- package/es/components/config-provider/hooks/use-global-config.d.ts +7 -7
- package/es/components/config-provider/hooks/use-global-config.js +29 -38
- package/es/components/config-provider/index.d.ts +13 -47
- package/es/components/container/aside.vue.d.ts +4 -2
- package/es/components/container/container.vue.d.ts +4 -2
- package/es/components/container/footer.vue.d.ts +4 -2
- package/es/components/container/header.vue.d.ts +4 -2
- package/es/components/container/index.d.ts +61 -89
- package/es/components/container/main.vue.d.ts +4 -2
- package/es/components/context-menu/context-menu.vue.d.ts +1 -1
- package/es/components/context-menu/context-menu.vue2.js +20 -21
- package/es/components/context-menu/createContextMenu.js +6 -6
- package/es/components/context-menu/types.d.ts +23 -0
- package/es/components/context-menu/useContextMenu.js +1 -1
- package/es/components/date-picker/composables/use-range-picker.d.ts +100 -27
- package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -3
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +14 -14
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +16 -16
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +50 -53
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +16 -16
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +73 -78
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +7 -7
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +23 -25
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +20 -18
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +144 -143
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +14 -12
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +80 -78
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +10 -10
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +19 -19
- package/es/components/date-picker/date-picker.d.ts +64 -64
- package/es/components/date-picker/date-picker.js +32 -35
- package/es/components/date-picker/index.d.ts +128 -128
- package/es/components/date-picker/panel-utils.d.ts +56 -111
- package/es/components/date-picker/props/basic-date-table.d.ts +4 -4
- package/es/components/date-picker/props/basic-month-table.d.ts +4 -4
- package/es/components/date-picker/props/basic-year-table.d.ts +1 -1
- package/es/components/date-picker/props/date-picker.d.ts +10 -10
- package/es/components/date-picker/props/panel-date-pick.d.ts +2 -2
- package/es/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker/props/shared.d.ts +5 -5
- package/es/components/date-picker/utils.js +35 -35
- package/es/components/date-time-select/date-time-select.vue.d.ts +3 -3
- package/es/components/date-time-select/date-time-select.vue2.js +16 -19
- package/es/components/date-time-select/index.d.ts +4 -4
- package/es/components/descriptions/description-item.vue.d.ts +4 -2
- package/es/components/descriptions/description.vue.d.ts +4 -2
- package/es/components/descriptions/description.vue2.js +43 -48
- package/es/components/descriptions/descriptions-cell.d.ts +4 -4
- package/es/components/descriptions/descriptions-cell.js +31 -32
- package/es/components/descriptions/descriptions-row.vue.d.ts +1 -1
- package/es/components/descriptions/index.d.ts +21 -90
- package/es/components/dialog/dialog-content.vue.d.ts +8 -6
- package/es/components/dialog/dialog.vue.d.ts +20 -18
- package/es/components/dialog/dialog.vue2.js +111 -107
- package/es/components/dialog/hooks/use-dialog.d.ts +6 -6
- package/es/components/dialog/hooks/use-dialog.js +55 -56
- package/es/components/dialog/index.d.ts +31 -109
- package/es/components/divider/divider.vue.d.ts +4 -2
- package/es/components/divider/index.d.ts +7 -26
- package/es/components/drawer/drawer.vue.d.ts +18 -16
- package/es/components/drawer/drawer.vue2.js +117 -113
- package/es/components/drawer/index.d.ts +25 -115
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +62 -14
- package/es/components/dropdown/dropdown-item.vue2.js +39 -43
- package/es/components/dropdown/dropdown-menu.vue.d.ts +6 -6
- package/es/components/dropdown/dropdown-menu.vue2.js +39 -40
- package/es/components/dropdown/dropdown.vue.d.ts +15 -13
- package/es/components/dropdown/dropdown.vue2.js +133 -142
- package/es/components/dropdown/useDropdown.js +29 -31
- package/es/components/empty/empty.vue.d.ts +4 -2
- package/es/components/empty/empty.vue2.js +54 -57
- package/es/components/empty/index.d.ts +7 -20
- package/es/components/exception/exception.vue.d.ts +1 -1
- package/es/components/exception/index.d.ts +3 -3
- package/es/components/focus-trap/focus-trap.vue.d.ts +8 -8
- package/es/components/focus-trap/focus-trap.vue2.js +60 -61
- package/es/components/focus-trap/utils.d.ts +4 -4
- package/es/components/focus-trap/utils.js +41 -36
- package/es/components/footer-layout/footer-layout.vue.d.ts +4 -2
- package/es/components/footer-layout/index.d.ts +6 -6
- package/es/components/form/form-item.vue.d.ts +19 -17
- package/es/components/form/form-item.vue2.js +171 -175
- package/es/components/form/form-label-wrap.d.ts +4 -4
- package/es/components/form/form-label-wrap.js +41 -46
- package/es/components/form/form.vue.d.ts +12 -10
- package/es/components/form/form.vue2.js +68 -69
- package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/form/hooks/use-form-common-props.js +10 -10
- package/es/components/form/hooks/use-form-item.d.ts +4 -4
- package/es/components/form/hooks/use-form-item.js +27 -30
- package/es/components/form/index.d.ts +74 -202
- package/es/components/full-screen/full-screen.vue.d.ts +1 -1
- package/es/components/full-screen/index.d.ts +7 -7
- package/es/components/header-layout/header-layout.vue.d.ts +4 -2
- package/es/components/header-layout/index.d.ts +10 -14
- package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +4 -4
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +92 -113
- package/es/components/horizontal-menu/index.d.ts +17 -17
- package/es/components/icon/icon.vue.d.ts +1 -1
- package/es/components/icon/icon.vue2.js +25 -30
- package/es/components/icon/index.d.ts +3 -3
- package/es/components/icon-text/icon-text.vue.d.ts +1 -1
- package/es/components/icon-text/icon-text.vue2.js +26 -29
- package/es/components/icon-text/index.d.ts +7 -7
- package/es/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
- package/es/components/iframe-layout/iframe-page.vue.d.ts +1 -1
- package/es/components/iframe-layout/index.d.ts +3 -3
- package/es/components/image/image.vue.d.ts +10 -8
- package/es/components/image/image.vue2.js +37 -37
- package/es/components/image/index.d.ts +22 -65
- package/es/components/image/p-image.vue.d.ts +3 -3
- package/es/components/image-viewer/image-viewer.vue.d.ts +9 -7
- package/es/components/image-viewer/image-viewer.vue2.js +148 -146
- package/es/components/image-viewer/index.d.ts +17 -45
- package/es/components/infinite-scroll/index.d.ts +5 -15
- package/es/components/infinite-scroll/infinite-scroll.js +30 -30
- package/es/components/input/index.d.ts +54 -146
- package/es/components/input/input.vue.d.ts +20 -18
- package/es/components/input/input.vue2.js +291 -302
- package/es/components/input/utils.js +12 -13
- package/es/components/input-number/index.d.ts +8 -8
- package/es/components/input-number/input-number.vue.d.ts +7 -7
- package/es/components/input-number/input-number.vue2.js +122 -129
- package/es/components/link/index.d.ts +15 -36
- package/es/components/link/link.vue.d.ts +7 -5
- package/es/components/link/link.vue2.js +30 -33
- package/es/components/list-cell/index.d.ts +4 -4
- package/es/components/list-cell/list-cell.vue.d.ts +3 -3
- package/es/components/list-cell/list-cell.vue2.js +17 -17
- package/es/components/loading/directive.js +29 -32
- package/es/components/loading/index.d.ts +1 -4
- package/es/components/loading/loading.js +28 -30
- package/es/components/loading/service.js +13 -14
- package/es/components/logo/index.d.ts +3 -3
- package/es/components/logo/logo.vue.d.ts +1 -1
- package/es/components/md-code-demo/code-demo/code.js +38 -43
- package/es/components/md-code-demo/code-demo/utils.js +8 -9
- package/es/components/md-code-demo/index.d.ts +6 -8
- package/es/components/md-code-demo/md-code-demo.d.ts +6 -6
- package/es/components/md-code-demo/md-code-demo.js +155 -158
- package/es/components/md-code-demo/utils.js +1 -2
- package/es/components/md-code-tabs/index.d.ts +6 -8
- package/es/components/md-code-tabs/md-code-tabs.d.ts +4 -4
- package/es/components/md-code-tabs/md-code-tabs.js +44 -45
- package/es/components/md-comment/index.d.ts +1 -1
- package/es/components/md-comment/md-comment.vue.d.ts +1 -1
- package/es/components/md-container/index.d.ts +7 -11
- package/es/components/md-container/md-container.vue.d.ts +4 -2
- package/es/components/md-container/md-container.vue2.js +105 -111
- package/es/components/md-container/toc.d.ts +4 -4
- package/es/components/md-container/toc.js +10 -11
- package/es/components/md-container/use/useActiveHeaderLinks.js +19 -20
- package/es/components/md-tabs/index.d.ts +4 -6
- package/es/components/md-tabs/md-tabs.d.ts +4 -4
- package/es/components/md-tabs/md-tabs.js +32 -33
- package/es/components/md-vue-playground/index.d.ts +3 -3
- package/es/components/md-vue-playground/md-vue-playground.vue.d.ts +1 -1
- package/es/components/menu/index.d.ts +88 -160
- package/es/components/menu/menu-collapse-transition.vue.d.ts +1 -1
- package/es/components/menu/menu-item-group.vue.d.ts +4 -2
- package/es/components/menu/menu-item.vue.d.ts +8 -6
- package/es/components/menu/menu-item.vue2.js +86 -92
- package/es/components/menu/menu.vue.d.ts +12 -11
- package/es/components/menu/menu.vue2.js +111 -112
- package/es/components/menu/sub-menu.vue.d.ts +4 -4
- package/es/components/menu/sub-menu.vue2.js +124 -136
- package/es/components/menu/types.d.ts +0 -1
- package/es/components/menu/utils/menu-item.js +15 -18
- package/es/components/menu/utils/submenu.js +22 -25
- package/es/components/message/message.vue.d.ts +9 -7
- package/es/components/message/message.vue2.js +79 -82
- package/es/components/message/method.js +25 -28
- package/es/components/modal/index.d.ts +32 -153
- package/es/components/modal/modal-footer-action.vue.d.ts +4 -2
- package/es/components/modal/modal.vue.d.ts +9 -9
- package/es/components/modal/modal.vue2.js +1 -1
- package/es/components/modal/use/use-modal.js +48 -57
- package/es/components/multiple-tabs/index.d.ts +1 -33
- package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -11
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +17 -137
- package/es/components/multiple-tabs/tab-content.vue.d.ts +2 -2
- package/es/components/multiple-tabs/tab-content.vue2.js +17 -24
- package/es/components/multiple-tabs/use/use-multiple-tabs.js +30 -36
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +15 -15
- package/es/components/overlay/index.d.ts +4 -4
- package/es/components/overlay/overlay.vue.d.ts +3 -3
- package/es/components/page-wrapper/index.d.ts +7 -11
- package/es/components/page-wrapper/page-wrapper.vue.d.ts +4 -2
- package/es/components/pagination/components/jumper.vue.d.ts +1 -1
- package/es/components/pagination/components/jumper.vue2.js +18 -18
- package/es/components/pagination/components/next.vue.d.ts +3 -3
- package/es/components/pagination/components/pager.vue.d.ts +3 -3
- package/es/components/pagination/components/prev.vue.d.ts +3 -3
- package/es/components/pagination/components/sizes.vue.d.ts +3 -3
- package/es/components/pagination/components/sizes.vue2.js +7 -8
- package/es/components/pagination/components/total.vue.d.ts +1 -1
- package/es/components/pagination/index.d.ts +8 -8
- package/es/components/pagination/pagination.vue.d.ts +3 -3
- package/es/components/pagination/pagination.vue2.js +60 -61
- package/es/components/popconfirm/index.d.ts +37 -85
- package/es/components/popconfirm/popconfirm.vue.d.ts +10 -8
- package/es/components/popconfirm/popconfirm.vue2.js +37 -38
- package/es/components/popover/directive.d.ts +1 -1
- package/es/components/popover/directive.js +11 -11
- package/es/components/popover/index.d.ts +44 -87
- package/es/components/popover/popover.vue.d.ts +9 -9
- package/es/components/popover/popover.vue2.js +44 -43
- package/es/components/popover/types.d.ts +3 -0
- package/es/components/popper/arrow.vue.d.ts +3 -3
- package/es/components/popper/composables/use-content-dom.d.ts +2 -2
- package/es/components/popper/composables/use-content-dom.js +14 -12
- package/es/components/popper/composables/use-content.d.ts +12 -12
- package/es/components/popper/composables/use-content.js +9 -12
- package/es/components/popper/composables/use-focus-trap.d.ts +2 -2
- package/es/components/popper/composables/use-focus-trap.js +5 -6
- package/es/components/popper/constants.d.ts +0 -1
- package/es/components/popper/content.vue.d.ts +9 -7
- package/es/components/popper/content.vue2.js +78 -73
- package/es/components/popper/index.d.ts +9 -13
- package/es/components/popper/popper.vue.d.ts +6 -4
- package/es/components/popper/trigger.vue.d.ts +7 -5
- package/es/components/popper/trigger.vue2.js +55 -57
- package/es/components/popper/utils.js +16 -16
- package/es/components/progress/index.d.ts +10 -53
- package/es/components/progress/progress.vue.d.ts +4 -2
- package/es/components/progress/progress.vue2.js +35 -39
- package/es/components/progress-i/index.d.ts +1 -1
- package/es/components/progress-i/progress-i.vue.d.ts +1 -1
- package/es/components/qrcode/index.d.ts +8 -12
- package/es/components/qrcode/qrcode.vue.d.ts +4 -4
- package/es/components/radio/index.d.ts +80 -230
- package/es/components/radio/radio-button.vue.d.ts +7 -5
- package/es/components/radio/radio-button.vue2.js +49 -52
- package/es/components/radio/radio-group.vue.d.ts +10 -8
- package/es/components/radio/radio-group.vue2.js +49 -52
- package/es/components/radio/radio.vue.d.ts +7 -5
- package/es/components/radio/radio.vue2.js +57 -60
- package/es/components/radio/use-radio.d.ts +3 -3
- package/es/components/radio/use-radio.js +17 -17
- package/es/components/result/index.d.ts +5 -5
- package/es/components/result/result.vue.d.ts +1 -1
- package/es/components/result/result.vue2.js +25 -29
- package/es/components/router-view-content/index.d.ts +3 -3
- package/es/components/router-view-content/router-view-content.vue.d.ts +1 -1
- package/es/components/router-view-content/router-view-content.vue2.js +45 -46
- package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +5 -5
- package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +61 -64
- package/es/components/row/index.d.ts +7 -20
- package/es/components/row/row.vue.d.ts +4 -2
- package/es/components/scrollbar/bar.vue.d.ts +2 -2
- package/es/components/scrollbar/index.d.ts +20 -59
- package/es/components/scrollbar/scrollbar.vue.d.ts +9 -7
- package/es/components/scrollbar/scrollbar.vue2.js +44 -46
- package/es/components/scrollbar/thumb.vue.d.ts +1 -1
- package/es/components/scrollbar/thumb.vue2.js +26 -27
- package/es/components/scrollbar/util.d.ts +1 -1
- package/es/components/search/index.d.ts +44 -91
- package/es/components/search/search.vue.d.ts +18 -16
- package/es/components/search/search.vue2.js +45 -48
- package/es/components/select/defaults.d.ts +5 -4
- package/es/components/select/group-item.vue.d.ts +11 -11
- package/es/components/select/option-item.vue.d.ts +13 -13
- package/es/components/select/select-dropdown.d.ts +3 -3
- package/es/components/select/select-dropdown.js +107 -112
- package/es/components/select/select.vue.js +2 -2
- package/es/components/select/useSelect.d.ts +353 -83
- package/es/components/select/useSelect.js +194 -210
- package/es/components/side-menu/index.d.ts +14 -14
- package/es/components/side-menu/side-menu.vue.d.ts +10 -10
- package/es/components/side-menu/side-menu.vue2.js +145 -160
- package/es/components/side-menu/use-drag-line.js +27 -32
- package/es/components/skeleton/index.d.ts +18 -34
- package/es/components/skeleton/skeleton-item.vue.d.ts +1 -1
- package/es/components/skeleton/skeleton.vue.d.ts +7 -5
- package/es/components/slider/button.vue.d.ts +6 -6
- package/es/components/slider/composables/use-lifecycle.d.ts +1 -1
- package/es/components/slider/composables/use-slide.d.ts +100 -28
- package/es/components/slider/composables/use-slide.js +59 -61
- package/es/components/slider/composables/use-slider-button.d.ts +4 -4
- package/es/components/slider/composables/use-watch.d.ts +1 -1
- package/es/components/slider/composables/use-watch.js +23 -24
- package/es/components/slider/index.d.ts +10 -10
- package/es/components/slider/marker.d.ts +5 -5
- package/es/components/slider/slider.vue.d.ts +10 -10
- package/es/components/slider/slider.vue2.js +162 -165
- package/es/components/slot/only-child.d.ts +1 -1
- package/es/components/slot/only-child.js +32 -33
- package/es/components/space/index.d.ts +20 -14
- package/es/components/space/item.d.ts +4 -4
- package/es/components/space/space.d.ts +25 -17
- package/es/components/space/use-space.d.ts +1 -1
- package/es/components/steps/index.d.ts +42 -96
- package/es/components/steps/item.vue.d.ts +4 -2
- package/es/components/steps/item.vue2.js +59 -62
- package/es/components/steps/steps.vue.d.ts +12 -10
- package/es/components/super-form/index.d.ts +255 -48
- package/es/components/super-form/super-form-action.vue.d.ts +4 -2
- package/es/components/super-form/super-form-item.vue.d.ts +1 -1
- package/es/components/super-form/super-form-item.vue2.js +99 -100
- package/es/components/super-form/super-form.vue.d.ts +23 -11
- package/es/components/super-form/super-form.vue2.js +151 -162
- package/es/components/super-form/use/use-auto-focus.js +9 -9
- package/es/components/super-form/use/use-form-events.js +143 -147
- package/es/components/super-form/use/use-form-values.js +13 -13
- package/es/components/super-form/use/use-form.js +4 -12
- package/es/components/switch/index.d.ts +25 -25
- package/es/components/switch/switch.vue.d.ts +13 -13
- package/es/components/switch/switch.vue2.js +128 -133
- package/es/components/table/field.d.ts +1 -1
- package/es/components/table/field.js +70 -71
- package/es/components/table/index.d.ts +77 -513
- package/es/components/table/table.vue.d.ts +23 -21
- package/es/components/table/table.vue2.js +100 -105
- package/es/components/table/use/use-data-source.d.ts +2 -2
- package/es/components/table/use/use-data-source.js +84 -86
- package/es/components/table/use/use-table.js +9 -12
- package/es/components/table/utils.js +11 -14
- package/es/components/tabs/index.d.ts +44 -80
- package/es/components/tabs/tab-bar.vue.d.ts +4 -3
- package/es/components/tabs/tab-bar.vue2.js +43 -34
- package/es/components/tabs/tab-nav.vue.d.ts +10 -5
- package/es/components/tabs/tab-nav.vue2.js +137 -130
- package/es/components/tabs/tab-pane.vue.d.ts +4 -2
- package/es/components/tabs/tab-pane.vue2.js +33 -27
- package/es/components/tabs/tabs.vue.d.ts +23 -26
- package/es/components/tabs/tabs.vue2.js +82 -67
- package/es/components/tabs/types.d.ts +8 -5
- package/es/components/tag/index.d.ts +4 -4
- package/es/components/tag/tag.vue.d.ts +3 -3
- package/es/components/tag/tag.vue2.js +20 -23
- package/es/components/teleport/index.d.ts +43 -0
- package/es/components/teleport/index.js +12 -0
- package/es/components/teleport/style/css.d.ts +1 -0
- package/es/components/teleport/style/css.js +2 -0
- package/es/components/teleport/style/index.d.ts +1 -0
- package/es/components/teleport/style/index.js +2 -0
- package/es/components/teleport/teleport.vue.d.ts +21 -0
- package/es/components/teleport/teleport.vue.js +4 -0
- package/es/components/teleport/teleport.vue2.js +19 -0
- package/es/components/teleport/types.d.ts +4 -0
- package/es/components/teleport/types.js +1 -0
- package/es/components/time-picker/common/picker.vue.d.ts +54 -52
- package/es/components/time-picker/common/picker.vue2.js +199 -210
- package/es/components/time-picker/common/props.d.ts +9 -9
- package/es/components/time-picker/composables/use-time-panel.js +33 -33
- package/es/components/time-picker/composables/use-time-picker.d.ts +160 -20
- package/es/components/time-picker/composables/use-time-picker.js +21 -21
- package/es/components/time-picker/index.d.ts +120 -120
- package/es/components/time-picker/props/basic-time-spinner.d.ts +1 -1
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +11 -11
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -4
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +10 -10
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +10 -10
- package/es/components/time-picker/time-picker.d.ts +60 -60
- package/es/components/time-picker/time-picker.js +14 -18
- package/es/components/time-picker/utils.js +18 -18
- package/es/components/time-select/time-select.d.ts +3 -3
- package/es/components/time-select/time-select.vue.d.ts +30 -30
- package/es/components/time-select/time-select.vue2.js +2 -4
- package/es/components/timeline/index.d.ts +21 -77
- package/es/components/timeline/timeline-item.vue.d.ts +4 -2
- package/es/components/timeline/timeline.vue.d.ts +1 -1
- package/es/components/tooltip/content.vue.d.ts +8 -5
- package/es/components/tooltip/content.vue2.js +114 -108
- package/es/components/tooltip/index.d.ts +38 -187
- package/es/components/tooltip/tooltip.vue.d.ts +16 -14
- package/es/components/tooltip/tooltip.vue2.js +70 -72
- package/es/components/tooltip/trigger.vue.d.ts +9 -4
- package/es/components/tooltip/types.d.ts +1 -0
- package/es/components/tooltip/utils.d.ts +2 -2
- package/es/components/tree/index.d.ts +74 -722
- package/es/components/tree/model/node.js +73 -76
- package/es/components/tree/model/tree-store.js +49 -52
- package/es/components/tree/model/useDragNode.d.ts +12 -0
- package/es/components/tree/model/useDragNode.js +6 -6
- package/es/components/tree/model/useKeydown.js +20 -21
- package/es/components/tree/model/util.d.ts +1 -1
- package/es/components/tree/tree-node-content.vue.d.ts +3 -3
- package/es/components/tree/tree-node.vue.d.ts +610 -18
- package/es/components/tree/tree.vue.d.ts +26 -24
- package/es/components/upload/ajax.js +32 -36
- package/es/components/upload/index.d.ts +26 -117
- package/es/components/upload/upload-content.vue.d.ts +10 -8
- package/es/components/upload/upload-dragger.vue.d.ts +7 -5
- package/es/components/upload/upload-list.vue.d.ts +13 -11
- package/es/components/upload/upload.vue.d.ts +15 -13
- package/es/components/upload/upload.vue2.js +1 -1
- package/es/components/upload/use-handlers.d.ts +24 -2
- package/es/components/upload/use-handlers.js +58 -69
- package/es/components/verify-code/index.d.ts +6 -6
- package/es/components/verify-code/useImageVerify.d.ts +2 -2
- package/es/components/verify-code/verify-code.vue.d.ts +5 -5
- package/es/components/virtual-list/builders/build-grid.d.ts +21 -21
- package/es/components/virtual-list/builders/build-grid.js +233 -235
- package/es/components/virtual-list/builders/build-list.d.ts +68 -54
- package/es/components/virtual-list/builders/build-list.js +176 -178
- package/es/components/virtual-list/components/dynamic-size-grid.d.ts +21 -21
- package/es/components/virtual-list/components/dynamic-size-grid.js +1 -2
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +39 -25
- package/es/components/virtual-list/components/dynamic-size-list.js +18 -19
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +28 -28
- package/es/components/virtual-list/components/fixed-size-list.d.ts +40 -26
- package/es/components/virtual-list/components/scrollbar.d.ts +6 -6
- package/es/components/virtual-list/props.d.ts +14 -14
- package/es/components/virtual-list/utils.d.ts +2 -2
- package/es/defaults.d.ts +1 -1
- package/es/hooks/index.js +24 -23
- package/es/hooks/use-attrs/index.js +14 -17
- package/es/hooks/use-focus/index.js +3 -4
- package/es/hooks/use-lockscreen/index.js +1 -1
- package/es/hooks/use-namespace/index.d.ts +1 -1
- package/es/hooks/use-ordered-children/index.d.ts +9 -5
- package/es/hooks/use-ordered-children/index.js +41 -23
- package/es/hooks/use-popper/index.d.ts +10 -10
- package/es/hooks/use-popper/index.js +27 -36
- package/es/hooks/use-same-target/index.d.ts +1 -1
- package/es/hooks/use-throttle-render/index.d.ts +1 -1
- package/es/hooks/use-z-index/index.d.ts +4 -0
- package/es/hooks/use-z-index/index.js +25 -14
- package/es/index.d.ts +1 -1
- package/es/index.js +282 -272
- package/es/package.json.d.ts +2 -2
- package/es/package.json.js +1 -1
- package/es/utils/dom/aria.d.ts +30 -0
- package/es/utils/dom/aria.js +42 -0
- package/es/utils/dom/index.d.ts +1 -0
- package/es/utils/dom/index.js +19 -10
- package/es/utils/dom/scroll.js +10 -11
- package/es/utils/event.d.ts +1 -1
- package/es/utils/event.js +7 -7
- package/es/utils/helper.d.ts +1 -1
- package/es/utils/index.js +68 -59
- package/es/utils/ns-cover.d.ts +2 -2
- package/es/utils/typescript.d.ts +1 -1
- package/es/utils/vue/install.d.ts +1 -1
- package/es/utils/vue/props/runtime.d.ts +4 -4
- package/es/utils/vue/props/runtime.js +1 -1
- package/es/utils/vue/vnode.d.ts +1 -1
- package/es/utils/vue/vnode.js +24 -25
- package/lib/components/affix/affix.vue.d.ts +11 -9
- package/lib/components/affix/index.d.ts +17 -28
- package/lib/components/alert/alert.vue.d.ts +8 -6
- package/lib/components/alert/index.d.ts +12 -39
- package/lib/components/autocomplete/autocomplete.vue.d.ts +355 -83
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +1040 -287
- package/lib/components/avatar/avatar.vue.d.ts +7 -5
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar/index.d.ts +15 -36
- package/lib/components/backtop/backtop.vue.d.ts +7 -5
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/index.d.ts +15 -36
- package/lib/components/backtop/use-backtop.cjs +1 -1
- package/lib/components/backtop/use-backtop.d.ts +1 -1
- package/lib/components/button/button-group.vue.d.ts +4 -2
- package/lib/components/button/button.vue.d.ts +13 -11
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.d.ts +50 -134
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/card/card.vue.d.ts +4 -2
- package/lib/components/card/index.d.ts +7 -17
- package/lib/components/carousel/carousel-item.vue.d.ts +4 -2
- package/lib/components/carousel/carousel.vue.d.ts +15 -13
- package/lib/components/carousel/index.d.ts +44 -105
- package/lib/components/carousel/use-carousel-item.cjs +1 -1
- package/lib/components/carousel/use-carousel-item.d.ts +10 -10
- package/lib/components/carousel/use-carousel.cjs +1 -1
- package/lib/components/carousel/use-carousel.d.ts +5 -5
- package/lib/components/check-tag/check-tag.vue.d.ts +7 -5
- package/lib/components/check-tag/index.d.ts +12 -19
- package/lib/components/checkbox/checkbox-button.vue.d.ts +8 -6
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +10 -8
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +10 -8
- package/lib/components/checkbox/composables/use-checkbox-disabled.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-model.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-model.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox-status.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox.d.ts +4 -4
- package/lib/components/checkbox/index.d.ts +94 -328
- package/lib/components/clamp/clamp.vue.d.ts +12 -10
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.d.ts +14 -40
- package/lib/components/clamp-toggle/clamp-toggle.vue.d.ts +1 -1
- package/lib/components/clamp-toggle/index.d.ts +3 -3
- package/lib/components/clamp-tooltip/clamp-tooltip.vue.d.ts +1 -1
- package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -1
- package/lib/components/clamp-tooltip/index.d.ts +5 -5
- package/lib/components/col/col.vue.d.ts +8 -6
- package/lib/components/col/index.d.ts +9 -45
- package/lib/components/collapse-transition/index.d.ts +8 -23
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +4 -2
- package/lib/components/collection/collection-item.vue.d.ts +4 -2
- package/lib/components/collection/collection.vue.d.ts +4 -2
- package/lib/components/color-picker/color-picker.vue.d.ts +8 -8
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue.d.ts +4 -4
- package/lib/components/color-picker/components/hue-slider.vue.d.ts +16 -16
- package/lib/components/color-picker/components/predefine.vue.d.ts +12 -12
- package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
- package/lib/components/color-picker/components/sv-panel.vue.d.ts +14 -14
- package/lib/components/color-picker/composables/use-alpha-slider.d.ts +3 -3
- package/lib/components/color-picker/index.d.ts +14 -14
- package/lib/components/color-picker/utils/color.cjs +1 -1
- package/lib/components/color-picker/utils/draggable.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue.d.ts +4 -2
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/hooks/use-global-config.d.ts +7 -7
- package/lib/components/config-provider/index.d.ts +13 -47
- package/lib/components/container/aside.vue.d.ts +4 -2
- package/lib/components/container/container.vue.d.ts +4 -2
- package/lib/components/container/footer.vue.d.ts +4 -2
- package/lib/components/container/header.vue.d.ts +4 -2
- package/lib/components/container/index.d.ts +61 -89
- package/lib/components/container/main.vue.d.ts +4 -2
- package/lib/components/context-menu/context-menu.vue.d.ts +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/context-menu/createContextMenu.cjs +1 -1
- package/lib/components/context-menu/types.d.ts +23 -0
- package/lib/components/date-picker/composables/use-range-picker.d.ts +100 -27
- package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -3
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +16 -16
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +16 -16
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +7 -7
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +20 -18
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +14 -12
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +10 -10
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +64 -64
- package/lib/components/date-picker/index.d.ts +128 -128
- package/lib/components/date-picker/panel-utils.d.ts +56 -111
- package/lib/components/date-picker/props/basic-date-table.d.ts +4 -4
- package/lib/components/date-picker/props/basic-month-table.d.ts +4 -4
- package/lib/components/date-picker/props/basic-year-table.d.ts +1 -1
- package/lib/components/date-picker/props/date-picker.d.ts +10 -10
- package/lib/components/date-picker/props/panel-date-pick.d.ts +2 -2
- package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker/props/shared.d.ts +5 -5
- package/lib/components/date-picker/utils.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue.d.ts +3 -3
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/index.d.ts +4 -4
- package/lib/components/descriptions/description-item.vue.d.ts +4 -2
- package/lib/components/descriptions/description.vue.d.ts +4 -2
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-cell.cjs +1 -1
- package/lib/components/descriptions/descriptions-cell.d.ts +4 -4
- package/lib/components/descriptions/descriptions-row.vue.d.ts +1 -1
- package/lib/components/descriptions/index.d.ts +21 -90
- package/lib/components/dialog/dialog-content.vue.d.ts +8 -6
- package/lib/components/dialog/dialog.vue.d.ts +20 -18
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.d.ts +6 -6
- package/lib/components/dialog/index.d.ts +31 -109
- package/lib/components/divider/divider.vue.d.ts +4 -2
- package/lib/components/divider/index.d.ts +7 -26
- package/lib/components/drawer/drawer.vue.d.ts +18 -16
- package/lib/components/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/drawer/index.d.ts +25 -115
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +62 -14
- package/lib/components/dropdown/dropdown-item.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-menu.vue.d.ts +6 -6
- package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +15 -13
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/useDropdown.cjs +1 -1
- package/lib/components/empty/empty.vue.d.ts +4 -2
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/empty/index.d.ts +7 -20
- package/lib/components/exception/exception.vue.d.ts +1 -1
- package/lib/components/exception/index.d.ts +3 -3
- package/lib/components/focus-trap/focus-trap.vue.d.ts +8 -8
- package/lib/components/focus-trap/focus-trap.vue2.cjs +1 -1
- package/lib/components/focus-trap/utils.cjs +1 -1
- package/lib/components/focus-trap/utils.d.ts +4 -4
- package/lib/components/footer-layout/footer-layout.vue.d.ts +4 -2
- package/lib/components/footer-layout/index.d.ts +6 -6
- package/lib/components/form/form-item.vue.d.ts +19 -17
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form-label-wrap.cjs +1 -1
- package/lib/components/form/form-label-wrap.d.ts +4 -4
- package/lib/components/form/form.vue.d.ts +12 -10
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/form/hooks/use-form-item.cjs +1 -1
- package/lib/components/form/hooks/use-form-item.d.ts +4 -4
- package/lib/components/form/index.d.ts +74 -202
- package/lib/components/full-screen/full-screen.vue.d.ts +1 -1
- package/lib/components/full-screen/index.d.ts +7 -7
- package/lib/components/header-layout/header-layout.vue.d.ts +4 -2
- package/lib/components/header-layout/index.d.ts +10 -14
- package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +4 -4
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.d.ts +17 -17
- package/lib/components/icon/icon.vue.d.ts +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.d.ts +3 -3
- package/lib/components/icon-text/icon-text.vue.d.ts +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +7 -7
- package/lib/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
- package/lib/components/iframe-layout/iframe-page.vue.d.ts +1 -1
- package/lib/components/iframe-layout/index.d.ts +3 -3
- package/lib/components/image/image.vue.d.ts +10 -8
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image/index.d.ts +22 -65
- package/lib/components/image/p-image.vue.d.ts +3 -3
- package/lib/components/image-viewer/image-viewer.vue.d.ts +9 -7
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.d.ts +17 -45
- package/lib/components/infinite-scroll/index.d.ts +5 -15
- package/lib/components/infinite-scroll/infinite-scroll.cjs +1 -1
- package/lib/components/input/index.d.ts +54 -146
- package/lib/components/input/input.vue.d.ts +20 -18
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input/utils.cjs +2 -2
- package/lib/components/input-number/index.d.ts +8 -8
- package/lib/components/input-number/input-number.vue.d.ts +7 -7
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/link/index.d.ts +15 -36
- package/lib/components/link/link.vue.d.ts +7 -5
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/index.d.ts +4 -4
- package/lib/components/list-cell/list-cell.vue.d.ts +3 -3
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/loading/directive.cjs +1 -1
- package/lib/components/loading/index.d.ts +1 -4
- package/lib/components/loading/loading.cjs +1 -1
- package/lib/components/loading/service.cjs +1 -1
- package/lib/components/logo/index.d.ts +3 -3
- package/lib/components/logo/logo.vue.d.ts +1 -1
- package/lib/components/md-code-demo/code-demo/code.cjs +4 -4
- package/lib/components/md-code-demo/code-demo/utils.cjs +2 -2
- package/lib/components/md-code-demo/index.d.ts +6 -8
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-code-demo/md-code-demo.d.ts +6 -6
- package/lib/components/md-code-demo/utils.cjs +2 -2
- package/lib/components/md-code-tabs/index.d.ts +6 -8
- package/lib/components/md-code-tabs/md-code-tabs.cjs +1 -1
- package/lib/components/md-code-tabs/md-code-tabs.d.ts +4 -4
- package/lib/components/md-comment/index.d.ts +1 -1
- package/lib/components/md-comment/md-comment.vue.d.ts +1 -1
- package/lib/components/md-container/index.d.ts +7 -11
- package/lib/components/md-container/md-container.vue.d.ts +4 -2
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/md-container/toc.d.ts +4 -4
- package/lib/components/md-container/use/useActiveHeaderLinks.cjs +1 -1
- package/lib/components/md-tabs/index.d.ts +4 -6
- package/lib/components/md-tabs/md-tabs.cjs +1 -1
- package/lib/components/md-tabs/md-tabs.d.ts +4 -4
- package/lib/components/md-vue-playground/index.d.ts +3 -3
- package/lib/components/md-vue-playground/md-vue-playground.vue.d.ts +1 -1
- package/lib/components/menu/index.d.ts +88 -160
- package/lib/components/menu/menu-collapse-transition.vue.d.ts +1 -1
- package/lib/components/menu/menu-item-group.vue.d.ts +4 -2
- package/lib/components/menu/menu-item.vue.d.ts +8 -6
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue.d.ts +12 -11
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue.d.ts +4 -4
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/menu/types.d.ts +0 -1
- package/lib/components/menu/utils/menu-item.cjs +1 -1
- package/lib/components/menu/utils/submenu.cjs +1 -1
- package/lib/components/message/message.vue.d.ts +9 -7
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/message/method.cjs +1 -1
- package/lib/components/modal/index.d.ts +32 -153
- package/lib/components/modal/modal-footer-action.vue.d.ts +4 -2
- package/lib/components/modal/modal.vue.d.ts +9 -9
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/modal/use/use-modal.cjs +1 -1
- package/lib/components/multiple-tabs/index.d.ts +1 -33
- package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -11
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +2 -2
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-multiple-tabs.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/overlay/index.d.ts +4 -4
- package/lib/components/overlay/overlay.vue.d.ts +3 -3
- package/lib/components/page-wrapper/index.d.ts +7 -11
- package/lib/components/page-wrapper/page-wrapper.vue.d.ts +4 -2
- package/lib/components/pagination/components/jumper.vue.d.ts +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/next.vue.d.ts +3 -3
- package/lib/components/pagination/components/pager.vue.d.ts +3 -3
- package/lib/components/pagination/components/prev.vue.d.ts +3 -3
- package/lib/components/pagination/components/sizes.vue.d.ts +3 -3
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue.d.ts +1 -1
- package/lib/components/pagination/index.d.ts +8 -8
- package/lib/components/pagination/pagination.vue.d.ts +3 -3
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +37 -85
- package/lib/components/popconfirm/popconfirm.vue.d.ts +10 -8
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/directive.cjs +1 -1
- package/lib/components/popover/directive.d.ts +1 -1
- package/lib/components/popover/index.d.ts +44 -87
- package/lib/components/popover/popover.vue.d.ts +9 -9
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popover/types.d.ts +3 -0
- package/lib/components/popper/arrow.vue.d.ts +3 -3
- package/lib/components/popper/composables/use-content-dom.cjs +1 -1
- package/lib/components/popper/composables/use-content-dom.d.ts +2 -2
- package/lib/components/popper/composables/use-content.cjs +1 -1
- package/lib/components/popper/composables/use-content.d.ts +12 -12
- package/lib/components/popper/composables/use-focus-trap.cjs +1 -1
- package/lib/components/popper/composables/use-focus-trap.d.ts +2 -2
- package/lib/components/popper/constants.d.ts +0 -1
- package/lib/components/popper/content.vue.d.ts +9 -7
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/index.d.ts +9 -13
- package/lib/components/popper/popper.vue.d.ts +6 -4
- package/lib/components/popper/trigger.vue.d.ts +7 -5
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/popper/utils.cjs +1 -1
- package/lib/components/progress/index.d.ts +10 -53
- package/lib/components/progress/progress.vue.d.ts +4 -2
- package/lib/components/progress/progress.vue2.cjs +2 -2
- package/lib/components/progress-i/index.d.ts +1 -1
- package/lib/components/progress-i/progress-i.vue.d.ts +1 -1
- package/lib/components/qrcode/index.d.ts +8 -12
- package/lib/components/qrcode/qrcode.vue.d.ts +4 -4
- package/lib/components/radio/index.d.ts +80 -230
- package/lib/components/radio/radio-button.vue.d.ts +7 -5
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue.d.ts +10 -8
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue.d.ts +7 -5
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/radio/use-radio.cjs +1 -1
- package/lib/components/radio/use-radio.d.ts +3 -3
- package/lib/components/result/index.d.ts +5 -5
- package/lib/components/result/result.vue.d.ts +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.d.ts +3 -3
- package/lib/components/router-view-content/router-view-content.vue.d.ts +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +5 -5
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue2.cjs +1 -1
- package/lib/components/row/index.d.ts +7 -20
- package/lib/components/row/row.vue.d.ts +4 -2
- package/lib/components/scrollbar/bar.vue.d.ts +2 -2
- package/lib/components/scrollbar/index.d.ts +20 -59
- package/lib/components/scrollbar/scrollbar.vue.d.ts +9 -7
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue.d.ts +1 -1
- package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
- package/lib/components/scrollbar/util.d.ts +1 -1
- package/lib/components/search/index.d.ts +44 -91
- package/lib/components/search/search.vue.d.ts +18 -16
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/defaults.d.ts +5 -4
- package/lib/components/select/group-item.vue.d.ts +11 -11
- package/lib/components/select/option-item.vue.d.ts +13 -13
- package/lib/components/select/select-dropdown.cjs +1 -1
- package/lib/components/select/select-dropdown.d.ts +3 -3
- package/lib/components/select/select.vue.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +353 -83
- package/lib/components/side-menu/index.d.ts +14 -14
- package/lib/components/side-menu/side-menu.vue.d.ts +10 -10
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -1
- package/lib/components/skeleton/index.d.ts +18 -34
- package/lib/components/skeleton/skeleton-item.vue.d.ts +1 -1
- package/lib/components/skeleton/skeleton.vue.d.ts +7 -5
- package/lib/components/slider/button.vue.d.ts +6 -6
- package/lib/components/slider/composables/use-lifecycle.d.ts +1 -1
- package/lib/components/slider/composables/use-slide.cjs +1 -1
- package/lib/components/slider/composables/use-slide.d.ts +100 -28
- package/lib/components/slider/composables/use-slider-button.d.ts +4 -4
- package/lib/components/slider/composables/use-watch.cjs +1 -1
- package/lib/components/slider/composables/use-watch.d.ts +1 -1
- package/lib/components/slider/index.d.ts +10 -10
- package/lib/components/slider/marker.d.ts +5 -5
- package/lib/components/slider/slider.vue.d.ts +10 -10
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/slot/only-child.cjs +1 -1
- package/lib/components/slot/only-child.d.ts +1 -1
- package/lib/components/space/index.d.ts +20 -14
- package/lib/components/space/item.d.ts +4 -4
- package/lib/components/space/space.d.ts +25 -17
- package/lib/components/space/use-space.d.ts +1 -1
- package/lib/components/steps/index.d.ts +42 -96
- package/lib/components/steps/item.vue.d.ts +4 -2
- package/lib/components/steps/item.vue2.cjs +1 -1
- package/lib/components/steps/steps.vue.d.ts +12 -10
- package/lib/components/super-form/index.d.ts +255 -48
- package/lib/components/super-form/super-form-action.vue.d.ts +4 -2
- package/lib/components/super-form/super-form-item.vue.d.ts +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +23 -11
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/super-form/use/use-form-values.cjs +1 -1
- package/lib/components/super-form/use/use-form.cjs +1 -1
- package/lib/components/switch/index.d.ts +25 -25
- package/lib/components/switch/switch.vue.d.ts +13 -13
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/field.d.ts +1 -1
- package/lib/components/table/index.d.ts +77 -513
- package/lib/components/table/table.vue.d.ts +23 -21
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-data-source.d.ts +2 -2
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/table/utils.cjs +1 -1
- package/lib/components/tabs/index.d.ts +44 -80
- package/lib/components/tabs/tab-bar.vue.d.ts +4 -3
- package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue.d.ts +10 -5
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue.d.ts +4 -2
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +23 -26
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tabs/types.d.ts +8 -5
- package/lib/components/tag/index.d.ts +4 -4
- package/lib/components/tag/tag.vue.d.ts +3 -3
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/teleport/index.cjs +1 -0
- package/lib/components/teleport/index.d.ts +43 -0
- package/lib/components/teleport/style/css.cjs +1 -0
- package/lib/components/teleport/style/css.d.ts +1 -0
- package/lib/components/teleport/style/index.cjs +1 -0
- package/lib/components/teleport/style/index.d.ts +1 -0
- package/lib/components/teleport/teleport.vue.cjs +1 -0
- package/lib/components/teleport/teleport.vue.d.ts +21 -0
- package/lib/components/teleport/teleport.vue2.cjs +1 -0
- package/lib/components/teleport/types.cjs +1 -0
- package/lib/components/teleport/types.d.ts +4 -0
- package/lib/components/time-picker/common/picker.vue.d.ts +54 -52
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.d.ts +9 -9
- package/lib/components/time-picker/composables/use-time-panel.cjs +1 -1
- package/lib/components/time-picker/composables/use-time-picker.cjs +1 -1
- package/lib/components/time-picker/composables/use-time-picker.d.ts +160 -20
- package/lib/components/time-picker/index.d.ts +120 -120
- package/lib/components/time-picker/props/basic-time-spinner.d.ts +1 -1
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +11 -11
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +10 -10
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +10 -10
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-picker/time-picker.d.ts +60 -60
- package/lib/components/time-picker/utils.cjs +1 -1
- package/lib/components/time-select/time-select.d.ts +3 -3
- package/lib/components/time-select/time-select.vue.d.ts +30 -30
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/timeline/index.d.ts +21 -77
- package/lib/components/timeline/timeline-item.vue.d.ts +4 -2
- package/lib/components/timeline/timeline.vue.d.ts +1 -1
- package/lib/components/tooltip/content.vue.d.ts +8 -5
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +38 -187
- package/lib/components/tooltip/tooltip.vue.d.ts +16 -14
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue.d.ts +9 -4
- package/lib/components/tooltip/types.d.ts +1 -0
- package/lib/components/tooltip/utils.d.ts +2 -2
- package/lib/components/tree/index.d.ts +74 -722
- package/lib/components/tree/model/node.cjs +1 -1
- package/lib/components/tree/model/tree-store.cjs +1 -1
- package/lib/components/tree/model/useDragNode.cjs +1 -1
- package/lib/components/tree/model/useDragNode.d.ts +12 -0
- package/lib/components/tree/model/useKeydown.cjs +1 -1
- package/lib/components/tree/model/util.d.ts +1 -1
- package/lib/components/tree/tree-node-content.vue.d.ts +3 -3
- package/lib/components/tree/tree-node.vue.d.ts +610 -18
- package/lib/components/tree/tree.vue.d.ts +26 -24
- package/lib/components/upload/ajax.cjs +1 -1
- package/lib/components/upload/index.d.ts +26 -117
- package/lib/components/upload/upload-content.vue.d.ts +10 -8
- package/lib/components/upload/upload-dragger.vue.d.ts +7 -5
- package/lib/components/upload/upload-list.vue.d.ts +13 -11
- package/lib/components/upload/upload.vue.d.ts +15 -13
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/upload/use-handlers.cjs +1 -1
- package/lib/components/upload/use-handlers.d.ts +24 -2
- package/lib/components/verify-code/index.d.ts +6 -6
- package/lib/components/verify-code/useImageVerify.d.ts +2 -2
- package/lib/components/verify-code/verify-code.vue.d.ts +5 -5
- package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
- package/lib/components/virtual-list/builders/build-grid.d.ts +21 -21
- package/lib/components/virtual-list/builders/build-list.cjs +1 -1
- package/lib/components/virtual-list/builders/build-list.d.ts +68 -54
- package/lib/components/virtual-list/components/dynamic-size-grid.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +21 -21
- package/lib/components/virtual-list/components/dynamic-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +39 -25
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +28 -28
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +40 -26
- package/lib/components/virtual-list/components/scrollbar.d.ts +6 -6
- package/lib/components/virtual-list/props.d.ts +14 -14
- package/lib/components/virtual-list/utils.d.ts +2 -2
- package/lib/defaults.d.ts +1 -1
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/use-attrs/index.cjs +1 -1
- package/lib/hooks/use-focus/index.cjs +1 -1
- package/lib/hooks/use-lockscreen/index.cjs +1 -1
- package/lib/hooks/use-namespace/index.d.ts +1 -1
- package/lib/hooks/use-ordered-children/index.cjs +1 -1
- package/lib/hooks/use-ordered-children/index.d.ts +9 -5
- package/lib/hooks/use-popper/index.cjs +1 -1
- package/lib/hooks/use-popper/index.d.ts +10 -10
- package/lib/hooks/use-same-target/index.d.ts +1 -1
- package/lib/hooks/use-throttle-render/index.d.ts +1 -1
- package/lib/hooks/use-z-index/index.cjs +2 -1
- package/lib/hooks/use-z-index/index.d.ts +4 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +2 -2
- package/lib/utils/dom/aria.cjs +1 -0
- package/lib/utils/dom/aria.d.ts +30 -0
- package/lib/utils/dom/index.cjs +1 -1
- package/lib/utils/dom/index.d.ts +1 -0
- package/lib/utils/dom/scroll.cjs +1 -1
- package/lib/utils/event.cjs +1 -1
- package/lib/utils/event.d.ts +1 -1
- package/lib/utils/helper.d.ts +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/ns-cover.d.ts +2 -2
- package/lib/utils/typescript.d.ts +1 -1
- package/lib/utils/vue/install.d.ts +1 -1
- package/lib/utils/vue/props/runtime.cjs +1 -1
- package/lib/utils/vue/props/runtime.d.ts +4 -4
- package/lib/utils/vue/vnode.cjs +1 -1
- package/lib/utils/vue/vnode.d.ts +1 -1
- package/package.json +7 -7
- package/web-types.json +1 -1
- package/es/components/dropdown/dropdown-item.vue.d.ts +0 -43
- package/es/components/dropdown/index.d.ts +0 -509
- package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +0 -2
- package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +0 -32
- package/es/components/select/index.d.ts +0 -1875
- package/es/components/select/select.vue.d.ts +0 -937
- package/lib/components/dropdown/dropdown-item.vue.d.ts +0 -43
- package/lib/components/dropdown/index.d.ts +0 -509
- package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +0 -2
- package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +0 -32
- package/lib/components/select/index.d.ts +0 -1875
- package/lib/components/select/select.vue.d.ts +0 -937
|
@@ -1,56 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { reactive as b } from "vue";
|
|
6
|
-
import { markNodeData as x, NODE_KEY as N } from "./util.js";
|
|
7
|
-
const g = (a) => {
|
|
1
|
+
import { hasOwn as m } from "@vft/utils";
|
|
2
|
+
import { reactive as D } from "vue";
|
|
3
|
+
import { markNodeData as C, NODE_KEY as y } from "./util.js";
|
|
4
|
+
const N = (r) => {
|
|
8
5
|
let e = !0, t = !0, i = !0;
|
|
9
|
-
for (let s = 0,
|
|
10
|
-
const
|
|
11
|
-
(
|
|
6
|
+
for (let s = 0, a = r.length; s < a; s++) {
|
|
7
|
+
const h = r[s];
|
|
8
|
+
(h.checked !== !0 || h.indeterminate) && (e = !1, h.disabled || (i = !1)), (h.checked !== !1 || h.indeterminate) && (t = !1);
|
|
12
9
|
}
|
|
13
10
|
return { all: e, none: t, allWithoutDisable: i, half: !e && !t };
|
|
14
|
-
},
|
|
15
|
-
if (
|
|
16
|
-
const { all: e, none: t, half: i } =
|
|
17
|
-
e ? (
|
|
18
|
-
const s =
|
|
19
|
-
!s || s.level === 0 ||
|
|
20
|
-
},
|
|
21
|
-
const t =
|
|
11
|
+
}, o = function(r) {
|
|
12
|
+
if (r.childNodes.length === 0 || r.loading) return;
|
|
13
|
+
const { all: e, none: t, half: i } = N(r.childNodes);
|
|
14
|
+
e ? (r.checked = !0, r.indeterminate = !1) : i ? (r.checked = !1, r.indeterminate = !0) : t && (r.checked = !1, r.indeterminate = !1);
|
|
15
|
+
const s = r.parent;
|
|
16
|
+
!s || s.level === 0 || r.store.checkStrictly || o(s);
|
|
17
|
+
}, l = function(r, e) {
|
|
18
|
+
const t = r.store.props, i = r.data || {}, s = t[e];
|
|
22
19
|
if (typeof s == "function")
|
|
23
|
-
return s(i,
|
|
20
|
+
return s(i, r);
|
|
24
21
|
if (typeof s == "string")
|
|
25
22
|
return i[s];
|
|
26
23
|
if (typeof s > "u") {
|
|
27
|
-
const
|
|
28
|
-
return
|
|
24
|
+
const a = i[e];
|
|
25
|
+
return a === void 0 ? "" : a;
|
|
29
26
|
}
|
|
30
27
|
};
|
|
31
|
-
let
|
|
32
|
-
class
|
|
28
|
+
let L = 0;
|
|
29
|
+
class f {
|
|
30
|
+
id;
|
|
31
|
+
text;
|
|
32
|
+
checked;
|
|
33
|
+
indeterminate;
|
|
34
|
+
data;
|
|
35
|
+
expanded;
|
|
36
|
+
parent;
|
|
37
|
+
visible;
|
|
38
|
+
isCurrent;
|
|
39
|
+
store;
|
|
40
|
+
isLeafByUser;
|
|
41
|
+
isLeaf;
|
|
42
|
+
canFocus;
|
|
43
|
+
level;
|
|
44
|
+
loaded;
|
|
45
|
+
childNodes;
|
|
46
|
+
loading;
|
|
33
47
|
constructor(e) {
|
|
34
|
-
|
|
35
|
-
h(this, "text");
|
|
36
|
-
h(this, "checked");
|
|
37
|
-
h(this, "indeterminate");
|
|
38
|
-
h(this, "data");
|
|
39
|
-
h(this, "expanded");
|
|
40
|
-
h(this, "parent");
|
|
41
|
-
h(this, "visible");
|
|
42
|
-
h(this, "isCurrent");
|
|
43
|
-
h(this, "store");
|
|
44
|
-
h(this, "isLeafByUser");
|
|
45
|
-
h(this, "isLeaf");
|
|
46
|
-
h(this, "canFocus");
|
|
47
|
-
h(this, "level");
|
|
48
|
-
h(this, "loaded");
|
|
49
|
-
h(this, "childNodes");
|
|
50
|
-
h(this, "loading");
|
|
51
|
-
this.id = S++, this.text = null, this.checked = !1, this.indeterminate = !1, this.data = null, this.expanded = !1, this.parent = null, this.visible = !0, this.isCurrent = !1, this.canFocus = !1;
|
|
48
|
+
this.id = L++, this.text = null, this.checked = !1, this.indeterminate = !1, this.data = null, this.expanded = !1, this.parent = null, this.visible = !0, this.isCurrent = !1, this.canFocus = !1;
|
|
52
49
|
for (const t in e)
|
|
53
|
-
|
|
50
|
+
m(e, t) && (this[t] = e[t]);
|
|
54
51
|
this.level = 0, this.loaded = !1, this.childNodes = [], this.loading = !1, this.parent && (this.level = this.parent.level + 1);
|
|
55
52
|
}
|
|
56
53
|
initialize() {
|
|
@@ -60,29 +57,29 @@ class c {
|
|
|
60
57
|
e.registerNode(this);
|
|
61
58
|
const t = e.props;
|
|
62
59
|
if (t && typeof t.isLeaf < "u") {
|
|
63
|
-
const
|
|
64
|
-
typeof
|
|
60
|
+
const a = l(this, "isLeaf");
|
|
61
|
+
typeof a == "boolean" && (this.isLeafByUser = a);
|
|
65
62
|
}
|
|
66
|
-
if (e.lazy !== !0 && this.data ? (this.setData(this.data), e.defaultExpandAll && (this.expanded = !0, this.canFocus = !0)) : this.level > 0 && e.lazy && e.defaultExpandAll && this.expand(), Array.isArray(this.data) ||
|
|
63
|
+
if (e.lazy !== !0 && this.data ? (this.setData(this.data), e.defaultExpandAll && (this.expanded = !0, this.canFocus = !0)) : this.level > 0 && e.lazy && e.defaultExpandAll && this.expand(), Array.isArray(this.data) || C(this, this.data), !this.data) return;
|
|
67
64
|
const i = e.defaultExpandedKeys, s = e.key;
|
|
68
65
|
s && i && i.includes(this.key) && this.expand(null, e.autoExpandParent), s && e.currentNodeKey !== void 0 && this.key === e.currentNodeKey && (e.currentNode = this, e.currentNode.isCurrent = !0), e.lazy && e._initDefaultCheckedNode(this), this.updateLeafState(), this.parent && (this.level === 1 || this.parent.expanded === !0) && (this.canFocus = !0);
|
|
69
66
|
}
|
|
70
67
|
setData(e) {
|
|
71
|
-
Array.isArray(e) ||
|
|
68
|
+
Array.isArray(e) || C(this, e), this.data = e, this.childNodes = [];
|
|
72
69
|
let t;
|
|
73
|
-
this.level === 0 && Array.isArray(this.data) ? t = this.data : t =
|
|
70
|
+
this.level === 0 && Array.isArray(this.data) ? t = this.data : t = l(this, "children") || [];
|
|
74
71
|
for (let i = 0, s = t.length; i < s; i++)
|
|
75
72
|
this.insertChild({ data: t[i] });
|
|
76
73
|
}
|
|
77
74
|
get label() {
|
|
78
|
-
return
|
|
75
|
+
return l(this, "label");
|
|
79
76
|
}
|
|
80
77
|
get key() {
|
|
81
78
|
const e = this.store.key;
|
|
82
79
|
return this.data ? this.data[e] : null;
|
|
83
80
|
}
|
|
84
81
|
get disabled() {
|
|
85
|
-
return
|
|
82
|
+
return l(this, "disabled");
|
|
86
83
|
}
|
|
87
84
|
get nextSibling() {
|
|
88
85
|
const e = this.parent;
|
|
@@ -113,7 +110,7 @@ class c {
|
|
|
113
110
|
}
|
|
114
111
|
insertChild(e, t, i) {
|
|
115
112
|
if (!e) throw new Error("InsertChild error: child is required.");
|
|
116
|
-
if (!(e instanceof
|
|
113
|
+
if (!(e instanceof f)) {
|
|
117
114
|
if (!i) {
|
|
118
115
|
const s = this.getChildren(!0);
|
|
119
116
|
s.includes(e.data) || (typeof t > "u" || t < 0 ? s.push(e.data) : s.splice(t, 0, e.data));
|
|
@@ -121,7 +118,7 @@ class c {
|
|
|
121
118
|
Object.assign(e, {
|
|
122
119
|
parent: this,
|
|
123
120
|
store: this.store
|
|
124
|
-
}), e =
|
|
121
|
+
}), e = D(new f(e)), e instanceof f && e.initialize();
|
|
125
122
|
}
|
|
126
123
|
e.level = this.level + 1, typeof t > "u" || t < 0 ? this.childNodes.push(e) : this.childNodes.splice(t, 0, e), this.updateLeafState();
|
|
127
124
|
}
|
|
@@ -167,7 +164,7 @@ class c {
|
|
|
167
164
|
});
|
|
168
165
|
};
|
|
169
166
|
this.shouldLoadData() ? this.loadData((s) => {
|
|
170
|
-
Array.isArray(s) && (this.checked ? this.setChecked(!0, !0) : this.store.checkStrictly ||
|
|
167
|
+
Array.isArray(s) && (this.checked ? this.setChecked(!0, !0) : this.store.checkStrictly || o(this), i());
|
|
171
168
|
}) : i();
|
|
172
169
|
}
|
|
173
170
|
doCreateChildren(e, t = {}) {
|
|
@@ -202,25 +199,25 @@ class c {
|
|
|
202
199
|
setChecked(e, t, i, s) {
|
|
203
200
|
if (this.indeterminate = e === "half", this.checked = e === !0, this.store.checkStrictly) return;
|
|
204
201
|
if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
|
|
205
|
-
const { all:
|
|
206
|
-
!this.isLeaf && !
|
|
207
|
-
const
|
|
202
|
+
const { all: h, allWithoutDisable: d } = N(this.childNodes);
|
|
203
|
+
!this.isLeaf && !h && d && (this.checked = !1, e = !1);
|
|
204
|
+
const c = () => {
|
|
208
205
|
if (t) {
|
|
209
|
-
const
|
|
210
|
-
for (let
|
|
211
|
-
const
|
|
206
|
+
const n = this.childNodes;
|
|
207
|
+
for (let u = 0, k = n.length; u < k; u++) {
|
|
208
|
+
const p = n[u];
|
|
212
209
|
s = s || e !== !1;
|
|
213
|
-
const
|
|
214
|
-
|
|
210
|
+
const v = p.disabled ? p.checked : s;
|
|
211
|
+
p.setChecked(v, t, !0, s);
|
|
215
212
|
}
|
|
216
|
-
const { half:
|
|
217
|
-
|
|
213
|
+
const { half: x, all: g } = N(n);
|
|
214
|
+
g || (this.checked = g, this.indeterminate = x);
|
|
218
215
|
}
|
|
219
216
|
};
|
|
220
217
|
if (this.shouldLoadData()) {
|
|
221
218
|
this.loadData(
|
|
222
219
|
() => {
|
|
223
|
-
|
|
220
|
+
c(), o(this);
|
|
224
221
|
},
|
|
225
222
|
{
|
|
226
223
|
checked: e !== !1
|
|
@@ -228,10 +225,10 @@ class c {
|
|
|
228
225
|
);
|
|
229
226
|
return;
|
|
230
227
|
} else
|
|
231
|
-
|
|
228
|
+
c();
|
|
232
229
|
}
|
|
233
|
-
const
|
|
234
|
-
!
|
|
230
|
+
const a = this.parent;
|
|
231
|
+
!a || a.level === 0 || i || o(a);
|
|
235
232
|
}
|
|
236
233
|
getChildren(e = !1) {
|
|
237
234
|
if (this.level === 0) return this.data;
|
|
@@ -242,14 +239,14 @@ class c {
|
|
|
242
239
|
return i && (s = i.children || "children"), t[s] === void 0 && (t[s] = null), e && !t[s] && (t[s] = []), t[s];
|
|
243
240
|
}
|
|
244
241
|
updateChildren() {
|
|
245
|
-
const e = this.getChildren() || [], t = this.childNodes.map((
|
|
246
|
-
e.forEach((
|
|
247
|
-
const
|
|
248
|
-
!!
|
|
249
|
-
}), this.store.lazy || t.forEach((
|
|
250
|
-
i[
|
|
251
|
-
}), s.forEach(({ index:
|
|
252
|
-
this.insertChild({ data:
|
|
242
|
+
const e = this.getChildren() || [], t = this.childNodes.map((a) => a.data), i = {}, s = [];
|
|
243
|
+
e.forEach((a, h) => {
|
|
244
|
+
const d = a[y];
|
|
245
|
+
!!d && t.findIndex((n) => n[y] === d) >= 0 ? i[d] = { index: h, data: a } : s.push({ index: h, data: a });
|
|
246
|
+
}), this.store.lazy || t.forEach((a) => {
|
|
247
|
+
i[a[y]] || this.removeChildByData(a);
|
|
248
|
+
}), s.forEach(({ index: a, data: h }) => {
|
|
249
|
+
this.insertChild({ data: h }, a);
|
|
253
250
|
}), this.updateLeafState();
|
|
254
251
|
}
|
|
255
252
|
loadData(e, t = {}) {
|
|
@@ -264,6 +261,6 @@ class c {
|
|
|
264
261
|
}
|
|
265
262
|
}
|
|
266
263
|
export {
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
f as default,
|
|
265
|
+
N as getChildState
|
|
269
266
|
};
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { hasOwn as u, isObject as C } from "@vft/utils";
|
|
2
|
+
import N from "./node.js";
|
|
3
|
+
import { getNodeKey as y } from "./util.js";
|
|
4
|
+
class m {
|
|
5
|
+
currentNode;
|
|
6
|
+
currentNodeKey;
|
|
7
|
+
nodesMap;
|
|
8
|
+
root;
|
|
9
|
+
data;
|
|
10
|
+
lazy;
|
|
11
|
+
load;
|
|
12
|
+
filterNodeMethod;
|
|
13
|
+
key;
|
|
14
|
+
defaultCheckedKeys;
|
|
15
|
+
checkStrictly;
|
|
16
|
+
defaultExpandedKeys;
|
|
17
|
+
autoExpandParent;
|
|
18
|
+
defaultExpandAll;
|
|
19
|
+
checkDescendants;
|
|
20
|
+
props;
|
|
8
21
|
constructor(e) {
|
|
9
|
-
d(this, "currentNode");
|
|
10
|
-
d(this, "currentNodeKey");
|
|
11
|
-
d(this, "nodesMap");
|
|
12
|
-
d(this, "root");
|
|
13
|
-
d(this, "data");
|
|
14
|
-
d(this, "lazy");
|
|
15
|
-
d(this, "load");
|
|
16
|
-
d(this, "filterNodeMethod");
|
|
17
|
-
d(this, "key");
|
|
18
|
-
d(this, "defaultCheckedKeys");
|
|
19
|
-
d(this, "checkStrictly");
|
|
20
|
-
d(this, "defaultExpandedKeys");
|
|
21
|
-
d(this, "autoExpandParent");
|
|
22
|
-
d(this, "defaultExpandAll");
|
|
23
|
-
d(this, "checkDescendants");
|
|
24
|
-
d(this, "props");
|
|
25
22
|
this.currentNode = null, this.currentNodeKey = null;
|
|
26
23
|
for (const t in e)
|
|
27
|
-
|
|
24
|
+
u(e, t) && (this[t] = e[t]);
|
|
28
25
|
this.nodesMap = {};
|
|
29
26
|
}
|
|
30
27
|
initialize() {
|
|
31
|
-
if (this.root = new
|
|
28
|
+
if (this.root = new N({
|
|
32
29
|
data: this.data,
|
|
33
30
|
store: this
|
|
34
31
|
}), this.root.initialize(), this.lazy && this.load) {
|
|
@@ -41,12 +38,12 @@ class b {
|
|
|
41
38
|
}
|
|
42
39
|
filter(e) {
|
|
43
40
|
const t = this.filterNodeMethod, s = this.lazy, i = function(o) {
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
41
|
+
const d = o.root ? o.root.childNodes : o.childNodes;
|
|
42
|
+
if (d.forEach((r) => {
|
|
46
43
|
r.visible = t.call(r, e, r.data, r), i(r);
|
|
47
|
-
}), !o.visible &&
|
|
44
|
+
}), !o.visible && d.length) {
|
|
48
45
|
let r = !0;
|
|
49
|
-
r = !
|
|
46
|
+
r = !d.some((c) => c.visible), o.root ? o.root.visible = r === !1 : o.visible = r === !1;
|
|
50
47
|
}
|
|
51
48
|
e && o.visible && !o.isLeaf && !s && o.expand();
|
|
52
49
|
};
|
|
@@ -56,8 +53,8 @@ class b {
|
|
|
56
53
|
e !== this.root.data ? (this.root.setData(e), this._initDefaultCheckedNodes()) : this.root.updateChildren();
|
|
57
54
|
}
|
|
58
55
|
getNode(e) {
|
|
59
|
-
if (e instanceof
|
|
60
|
-
const t =
|
|
56
|
+
if (e instanceof N) return e;
|
|
57
|
+
const t = C(e) ? y(this.key, e) : e;
|
|
61
58
|
return this.nodesMap[t] || null;
|
|
62
59
|
}
|
|
63
60
|
insertBefore(e, t) {
|
|
@@ -85,10 +82,10 @@ class b {
|
|
|
85
82
|
if (!s) return;
|
|
86
83
|
const i = s.childNodes;
|
|
87
84
|
for (let o = i.length - 1; o >= 0; o--) {
|
|
88
|
-
const
|
|
89
|
-
this.remove(
|
|
85
|
+
const d = i[o];
|
|
86
|
+
this.remove(d.data);
|
|
90
87
|
}
|
|
91
|
-
for (let o = 0,
|
|
88
|
+
for (let o = 0, d = t.length; o < d; o++) {
|
|
92
89
|
const r = t[o];
|
|
93
90
|
this.append(r, s.data);
|
|
94
91
|
}
|
|
@@ -140,33 +137,33 @@ class b {
|
|
|
140
137
|
_getAllNodes() {
|
|
141
138
|
const e = [], t = this.nodesMap;
|
|
142
139
|
for (const s in t)
|
|
143
|
-
|
|
140
|
+
u(t, s) && e.push(t[s]);
|
|
144
141
|
return e;
|
|
145
142
|
}
|
|
146
143
|
_setCheckedKeys(e, t = !1, s) {
|
|
147
|
-
const i = this._getAllNodes().sort((r,
|
|
144
|
+
const i = this._getAllNodes().sort((r, c) => c.level - r.level), o = /* @__PURE__ */ Object.create(null), d = Object.keys(s);
|
|
148
145
|
i.forEach((r) => r.setChecked(!1, !1));
|
|
149
|
-
for (let r = 0,
|
|
150
|
-
const
|
|
151
|
-
if (!
|
|
152
|
-
|
|
146
|
+
for (let r = 0, c = i.length; r < c; r++) {
|
|
147
|
+
const n = i[r], l = n.data[e].toString();
|
|
148
|
+
if (!d.includes(l)) {
|
|
149
|
+
n.checked && !o[l] && n.setChecked(!1, !1);
|
|
153
150
|
continue;
|
|
154
151
|
}
|
|
155
|
-
let
|
|
156
|
-
for (;
|
|
157
|
-
o[
|
|
158
|
-
if (
|
|
159
|
-
|
|
152
|
+
let h = n.parent;
|
|
153
|
+
for (; h && h.level > 0; )
|
|
154
|
+
o[h.data[e]] = !0, h = h.parent;
|
|
155
|
+
if (n.isLeaf || this.checkStrictly) {
|
|
156
|
+
n.setChecked(!0, !1);
|
|
160
157
|
continue;
|
|
161
158
|
}
|
|
162
|
-
if (
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
if (n.setChecked(!0, !0), t) {
|
|
160
|
+
n.setChecked(!1, !1);
|
|
161
|
+
const f = function(k) {
|
|
162
|
+
k.childNodes.forEach((a) => {
|
|
163
|
+
a.isLeaf || a.setChecked(!1, !1), f(a);
|
|
167
164
|
});
|
|
168
165
|
};
|
|
169
|
-
|
|
166
|
+
f(n);
|
|
170
167
|
}
|
|
171
168
|
}
|
|
172
169
|
}
|
|
@@ -214,5 +211,5 @@ class b {
|
|
|
214
211
|
}
|
|
215
212
|
}
|
|
216
213
|
export {
|
|
217
|
-
|
|
214
|
+
m as default
|
|
218
215
|
};
|
|
@@ -27,6 +27,18 @@ export declare function useDragNodeHandler({ props, ctx, el$, dropIndicator$, st
|
|
|
27
27
|
dropNode: null;
|
|
28
28
|
allowDrop: boolean;
|
|
29
29
|
dropType: null;
|
|
30
|
+
}, {
|
|
31
|
+
showDropIndicator: boolean;
|
|
32
|
+
draggingNode: null;
|
|
33
|
+
dropNode: null;
|
|
34
|
+
allowDrop: boolean;
|
|
35
|
+
dropType: null;
|
|
36
|
+
} | {
|
|
37
|
+
showDropIndicator: boolean;
|
|
38
|
+
draggingNode: null;
|
|
39
|
+
dropNode: null;
|
|
40
|
+
allowDrop: boolean;
|
|
41
|
+
dropType: null;
|
|
30
42
|
}>;
|
|
31
43
|
};
|
|
32
44
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeClass as
|
|
1
|
+
import { removeClass as v, addClass as I } from "@vft/utils";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "../../../utils/ns-cover.js";
|
|
4
4
|
import "lodash-es";
|
|
@@ -29,7 +29,7 @@ function G({ props: p, ctx: s, el$: h, dropIndicator$: b, store: T }) {
|
|
|
29
29
|
},
|
|
30
30
|
treeNodeDragOver: ({ event: r, treeNode: t }) => {
|
|
31
31
|
const e = t, o = d.value.dropNode;
|
|
32
|
-
o && o.node.id !== e.node.id &&
|
|
32
|
+
o && o.node.id !== e.node.id && v(o.$el, g.is("drop-inner"));
|
|
33
33
|
const n = d.value.draggingNode;
|
|
34
34
|
if (!n || !e) return;
|
|
35
35
|
let l = !0, i = !0, f = !0, N = !0;
|
|
@@ -37,21 +37,21 @@ function G({ props: p, ctx: s, el$: h, dropIndicator$: b, store: T }) {
|
|
|
37
37
|
n.node,
|
|
38
38
|
e.node,
|
|
39
39
|
"inner"
|
|
40
|
-
), f = p.allowDrop(n.node, e.node, "next")), r.dataTransfer.dropEffect = i || l || f ? "move" : "none", (l || i || f) &&
|
|
40
|
+
), f = p.allowDrop(n.node, e.node, "next")), r.dataTransfer.dropEffect = i || l || f ? "move" : "none", (l || i || f) && o?.node.id !== e.node.id && (o && s.emit("node-drag-leave", n.node, o.node, r), s.emit("node-drag-enter", n.node, e.node, r)), (l || i || f) && (d.value.dropNode = e), e.node.nextSibling === n.node && (f = !1), e.node.previousSibling === n.node && (l = !1), e.node.contains(n.node, !1) && (i = !1), (n.node === e.node || n.node.contains(e.node)) && (l = !1, i = !1, f = !1);
|
|
41
41
|
const u = e.$el.getBoundingClientRect(), c = h.value.getBoundingClientRect();
|
|
42
42
|
let a;
|
|
43
43
|
const $ = l ? i ? 0.25 : f ? 0.45 : 1 : -1, C = f ? i ? 0.75 : l ? 0.55 : 0 : 1;
|
|
44
44
|
let m = -9999;
|
|
45
45
|
const w = r.clientY - u.top;
|
|
46
46
|
w < u.height * $ ? a = "before" : w > u.height * C ? a = "after" : i ? a = "inner" : a = "none";
|
|
47
|
-
const
|
|
48
|
-
a === "before" ? m =
|
|
47
|
+
const D = e.$el.querySelector(`.${g.be("node", "expand-icon")}`).getBoundingClientRect(), y = b.value;
|
|
48
|
+
a === "before" ? m = D.top - c.top : a === "after" && (m = D.bottom - c.top), y.style.top = `${m}px`, y.style.left = `${D.right - c.left}px`, a === "inner" ? I(e.$el, g.is("drop-inner")) : v(e.$el, g.is("drop-inner")), d.value.showDropIndicator = a === "before" || a === "after", d.value.allowDrop = d.value.showDropIndicator || N, d.value.dropType = a, s.emit("node-drag-over", n.node, e.node, r);
|
|
49
49
|
},
|
|
50
50
|
treeNodeDragEnd: (r) => {
|
|
51
51
|
const { draggingNode: t, dropType: e, dropNode: o } = d.value;
|
|
52
52
|
if (r.preventDefault(), r.dataTransfer.dropEffect = "move", t && o) {
|
|
53
53
|
const n = { data: t.node.data };
|
|
54
|
-
e !== "none" && t.node.remove(), e === "before" ? o.node.parent.insertBefore(n, o.node) : e === "after" ? o.node.parent.insertAfter(n, o.node) : e === "inner" && o.node.insertChild(n), e !== "none" && T.value.registerNode(n),
|
|
54
|
+
e !== "none" && t.node.remove(), e === "before" ? o.node.parent.insertBefore(n, o.node) : e === "after" ? o.node.parent.insertAfter(n, o.node) : e === "inner" && o.node.insertChild(n), e !== "none" && T.value.registerNode(n), v(o.$el, g.is("drop-inner")), s.emit(
|
|
55
55
|
"node-drag-end",
|
|
56
56
|
t.node,
|
|
57
57
|
o.node,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EVENT_CODE as
|
|
1
|
+
import { EVENT_CODE as l } from "../../../constants/aria.js";
|
|
2
2
|
import { useEventListener as v } from "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../../utils/ns-cover.js";
|
|
@@ -8,29 +8,29 @@ import { useNamespace as k } from "../../../hooks/use-namespace/index.js";
|
|
|
8
8
|
import "../../../hooks/use-model-toggle/index.js";
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import "../../../hooks/use-z-index/index.js";
|
|
11
|
-
function F({ el$:
|
|
11
|
+
function F({ el$: o }, d) {
|
|
12
12
|
const u = k("tree"), t = m([]), i = m([]);
|
|
13
13
|
y(() => {
|
|
14
14
|
p();
|
|
15
15
|
}), h(() => {
|
|
16
|
-
t.value = Array.from(
|
|
17
|
-
|
|
16
|
+
t.value = Array.from(o.value.querySelectorAll("[role=treeitem]")), i.value = Array.from(
|
|
17
|
+
o.value.querySelectorAll("input[type=checkbox]")
|
|
18
18
|
);
|
|
19
19
|
}), b(i, (r) => {
|
|
20
|
-
r.forEach((
|
|
21
|
-
|
|
20
|
+
r.forEach((a) => {
|
|
21
|
+
a.setAttribute("tabindex", "-1");
|
|
22
22
|
});
|
|
23
|
-
}), v(
|
|
24
|
-
const
|
|
25
|
-
if (!
|
|
23
|
+
}), v(o, "keydown", (r) => {
|
|
24
|
+
const a = r.target;
|
|
25
|
+
if (!a.className.includes(u.b("node"))) return;
|
|
26
26
|
const c = r.code;
|
|
27
27
|
t.value = Array.from(
|
|
28
|
-
|
|
28
|
+
o.value.querySelectorAll(`.${u.is("focusable")}[role=treeitem]`)
|
|
29
29
|
);
|
|
30
|
-
const n = t.value.indexOf(
|
|
30
|
+
const n = t.value.indexOf(a);
|
|
31
31
|
let e;
|
|
32
|
-
if ([
|
|
33
|
-
if (r.preventDefault(), c ===
|
|
32
|
+
if ([l.up, l.down].includes(c)) {
|
|
33
|
+
if (r.preventDefault(), c === l.up) {
|
|
34
34
|
e = n === -1 ? 0 : n !== 0 ? n - 1 : t.value.length - 1;
|
|
35
35
|
const s = e;
|
|
36
36
|
for (; !d.value.getNode(t.value[e].dataset.key).canFocus; ) {
|
|
@@ -53,27 +53,26 @@ function F({ el$: l }, d) {
|
|
|
53
53
|
}
|
|
54
54
|
e !== -1 && t.value[e].focus();
|
|
55
55
|
}
|
|
56
|
-
[
|
|
57
|
-
const f =
|
|
56
|
+
[l.left, l.right].includes(c) && (r.preventDefault(), a.click());
|
|
57
|
+
const f = a.querySelector(
|
|
58
58
|
'[type="checkbox"]'
|
|
59
59
|
);
|
|
60
|
-
[
|
|
60
|
+
[l.enter, l.space].includes(c) && f && (r.preventDefault(), f.click());
|
|
61
61
|
});
|
|
62
62
|
const p = () => {
|
|
63
|
-
var o;
|
|
64
63
|
t.value = Array.from(
|
|
65
|
-
|
|
64
|
+
o.value.querySelectorAll(`.${u.is("focusable")}[role=treeitem]`)
|
|
66
65
|
), i.value = Array.from(
|
|
67
|
-
|
|
66
|
+
o.value.querySelectorAll("input[type=checkbox]")
|
|
68
67
|
);
|
|
69
|
-
const r =
|
|
68
|
+
const r = o.value.querySelectorAll(
|
|
70
69
|
`.${u.is("checked")}[role=treeitem]`
|
|
71
70
|
);
|
|
72
71
|
if (r.length) {
|
|
73
72
|
r[0].setAttribute("tabindex", "0");
|
|
74
73
|
return;
|
|
75
74
|
}
|
|
76
|
-
|
|
75
|
+
t.value[0]?.setAttribute("tabindex", "0");
|
|
77
76
|
};
|
|
78
77
|
}
|
|
79
78
|
export {
|
|
@@ -4,4 +4,4 @@ import type Node from './node';
|
|
|
4
4
|
export declare const NODE_KEY = "$treeNodeId";
|
|
5
5
|
export declare const markNodeData: (node: Node, data: TreeNodeData) => void;
|
|
6
6
|
export declare const getNodeKey: (key: TreeKey, data: TreeNodeData) => any;
|
|
7
|
-
export declare const handleCurrentChange: (store: RootTreeType[
|
|
7
|
+
export declare const handleCurrentChange: (store: RootTreeType["store"], emit: SetupContext["emit"], setCurrent: () => void) => void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
node: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
renderContent: FunctionConstructor;
|
|
7
|
-
}
|
|
7
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
8
|
node: {
|
|
9
9
|
type: ObjectConstructor;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
renderContent: FunctionConstructor;
|
|
13
|
-
}
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|