vft 0.0.150 → 0.0.153
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/app-components/form/form-label-wrap.d.ts +1 -1
- package/es/components/affix/affix.vue.d.ts +13 -13
- package/es/components/affix/affix.vue2.js +33 -33
- package/es/components/affix/index.d.ts +61 -132
- package/es/components/alert/alert.vue.d.ts +11 -52
- package/es/components/alert/alert.vue2.js +19 -19
- package/es/components/alert/index.d.ts +65 -122
- package/es/components/autocomplete/autocomplete.vue.d.ts +188 -170
- package/es/components/autocomplete/autocomplete.vue2.js +69 -69
- package/es/components/autocomplete/index.d.ts +1006 -729
- package/es/components/avatar/avatar.vue.d.ts +19 -40
- package/es/components/avatar/avatar.vue2.js +23 -23
- package/es/components/avatar/index.d.ts +53 -114
- package/es/components/backtop/backtop.vue.d.ts +11 -40
- package/es/components/backtop/backtop.vue2.js +20 -20
- package/es/components/backtop/index.d.ts +53 -114
- package/es/components/button/button-group.vue.d.ts +11 -15
- package/es/components/button/button.vue.d.ts +29 -138
- package/es/components/button/button.vue2.js +19 -19
- package/es/components/button/index.d.ts +210 -372
- package/es/components/button/use-button.js +1 -1
- package/es/components/card/card.vue.d.ts +15 -21
- package/es/components/card/index.d.ts +27 -95
- package/es/components/carousel/carousel-item.vue.d.ts +10 -15
- package/es/components/carousel/carousel.vue.d.ts +43 -92
- package/es/components/carousel/carousel.vue2.js +37 -37
- package/es/components/carousel/index.d.ts +176 -344
- package/es/components/check-tag/check-tag.vue.d.ts +11 -10
- package/es/components/check-tag/check-tag.vue2.js +16 -16
- package/es/components/check-tag/index.d.ts +24 -95
- package/es/components/checkbox/checkbox-button.vue.d.ts +12 -94
- package/es/components/checkbox/checkbox-group.vue.d.ts +27 -82
- package/es/components/checkbox/checkbox-group.vue2.js +37 -37
- package/es/components/checkbox/checkbox.vue.d.ts +24 -96
- package/es/components/checkbox/index.d.ts +576 -786
- package/es/components/clamp/clamp.vue.d.ts +25 -48
- package/es/components/clamp/clamp.vue2.js +35 -35
- package/es/components/clamp/index.d.ts +64 -122
- package/es/components/clamp-toggle/clamp-toggle.vue.d.ts +23 -76
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +8 -8
- package/es/components/clamp-toggle/index.d.ts +1 -1
- package/es/components/col/col.vue.d.ts +30 -73
- package/es/components/col/index.d.ts +93 -136
- package/es/components/collapse-transition/index.d.ts +16 -166
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
- package/es/components/collection/collection-item.vue.d.ts +1 -1
- package/es/components/collection/collection.vue.d.ts +1 -1
- package/es/components/color-picker/color-picker.vue.d.ts +25 -74
- package/es/components/color-picker/color-picker.vue2.js +67 -67
- package/es/components/color-picker/components/alpha-slider.vue.d.ts +10 -17
- package/es/components/color-picker/components/hue-slider.vue.d.ts +1 -1
- package/es/components/color-picker/components/predefine.vue.d.ts +1 -1
- package/es/components/color-picker/components/sv-panel.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +7 -7
- package/es/components/config-provider/config-provider.vue.d.ts +10 -69
- package/es/components/config-provider/index.d.ts +77 -129
- package/es/components/container/aside.vue.d.ts +10 -9
- package/es/components/container/container.vue.d.ts +10 -9
- package/es/components/container/footer.vue.d.ts +10 -9
- package/es/components/container/header.vue.d.ts +10 -9
- package/es/components/container/index.d.ts +121 -775
- package/es/components/container/main.vue.d.ts +1 -1
- package/es/components/context-menu/context-menu.vue.d.ts +16 -27
- package/es/components/context-menu/context-menu.vue2.js +16 -16
- package/es/components/date-picker/composables/use-range-picker.d.ts +6 -6
- package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +1 -3
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +22 -22
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +61 -61
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +1 -1
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +32 -32
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +1 -1
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +29 -29
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +11 -11
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +170 -170
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +9 -9
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +59 -59
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -6
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +34 -34
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/date-picker/panel-utils.d.ts +167 -351
- package/es/components/date-time-select/date-time-select.vue.d.ts +11 -18
- package/es/components/date-time-select/date-time-select.vue2.js +27 -27
- package/es/components/date-time-select/index.d.ts +1 -1
- package/es/components/descriptions/description-item.vue.d.ts +20 -51
- package/es/components/descriptions/description.vue.d.ts +18 -39
- package/es/components/descriptions/descriptions-cell.d.ts +1 -1
- package/es/components/descriptions/descriptions-row.vue.d.ts +13 -9
- package/es/components/descriptions/index.d.ts +161 -339
- package/es/components/dialog/dialog-content.vue.d.ts +11 -52
- package/es/components/dialog/dialog.vue.d.ts +12 -144
- package/es/components/dialog/dialog.vue2.js +0 -1
- package/es/components/dialog/index.d.ts +178 -205
- package/es/components/divider/divider.vue.d.ts +10 -39
- package/es/components/divider/index.d.ts +47 -109
- package/es/components/drawer/drawer.vue.d.ts +12 -167
- package/es/components/drawer/index.d.ts +201 -220
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +2 -2
- package/es/components/dropdown/dropdown-item.vue.d.ts +3 -3
- package/es/components/dropdown/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue.d.ts +47 -144
- package/es/components/dropdown/dropdown.vue2.js +65 -65
- package/es/components/dropdown/index.d.ts +207 -215
- package/es/components/empty/empty.vue.d.ts +10 -27
- package/es/components/empty/index.d.ts +31 -97
- package/es/components/exception/exception.vue.d.ts +15 -21
- package/es/components/exception/index.d.ts +1 -1
- package/es/components/focus-trap/focus-trap.vue.d.ts +1 -1
- package/es/components/footer-layout/footer-layout.vue.d.ts +1 -1
- package/es/components/footer-layout/index.d.ts +8 -83
- package/es/components/form/form-item.vue.d.ts +29 -78
- package/es/components/form/form-item.vue2.js +58 -58
- package/es/components/form/form-label-wrap.d.ts +1 -1
- package/es/components/form/form.vue.d.ts +11 -94
- package/es/components/form/form.vue2.js +47 -47
- package/es/components/form/index.d.ts +338 -465
- package/es/components/full-screen/full-screen.vue.d.ts +11 -63
- package/es/components/full-screen/index.d.ts +1 -1
- package/es/components/header-layout/header-layout.vue.d.ts +10 -11
- package/es/components/header-layout/index.d.ts +17 -88
- package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +11 -78
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +40 -40
- package/es/components/horizontal-menu/index.d.ts +1 -1
- package/es/components/icon/icon.vue.d.ts +9 -46
- package/es/components/icon/index.d.ts +1 -1
- package/es/components/icon-text/icon-text.vue.d.ts +9 -64
- package/es/components/icon-text/index.d.ts +1 -1
- package/es/components/iframe-layout/iframe-layout.vue.d.ts +12 -10
- package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
- package/es/components/iframe-layout/iframe-page.vue.d.ts +12 -10
- package/es/components/iframe-layout/index.d.ts +1 -1
- package/es/components/image/image.vue.d.ts +14 -79
- package/es/components/image/image.vue2.js +53 -52
- package/es/components/image/index.d.ts +106 -155
- package/es/components/image/p-image.vue.d.ts +21 -47
- package/es/components/image/p-image.vue2.js +18 -18
- package/es/components/image-viewer/image-viewer.vue.d.ts +11 -52
- package/es/components/image-viewer/image-viewer.vue2.js +60 -60
- package/es/components/image-viewer/index.d.ts +71 -128
- package/es/components/input/index.d.ts +228 -253
- package/es/components/input/input.vue.d.ts +14 -157
- package/es/components/input/input.vue2.js +124 -124
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/input-number.vue.d.ts +13 -108
- package/es/components/input-number/input-number.vue2.js +86 -86
- package/es/components/link/index.d.ts +53 -114
- package/es/components/link/link.vue.d.ts +19 -40
- package/es/components/link/link.vue2.js +26 -26
- package/es/components/list-cell/index.d.ts +1 -1
- package/es/components/list-cell/list-cell.vue.d.ts +11 -30
- package/es/components/list-cell/list-cell.vue2.js +37 -37
- package/es/components/logo/index.d.ts +1 -1
- package/es/components/logo/logo.vue.d.ts +9 -24
- package/es/components/md-code-demo/index.d.ts +1 -1
- package/es/components/md-code-demo/md-code-demo.d.ts +1 -1
- package/es/components/md-code-tabs/index.d.ts +1 -1
- package/es/components/md-code-tabs/md-code-tabs.d.ts +1 -1
- 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 +11 -86
- package/es/components/md-container/md-container.vue.d.ts +1 -1
- package/es/components/md-container/toc.d.ts +1 -1
- package/es/components/md-tabs/index.d.ts +1 -1
- package/es/components/md-tabs/md-tabs.d.ts +1 -1
- package/es/components/md-vue-playground/index.d.ts +1 -1
- package/es/components/md-vue-playground/md-vue-playground.vue.d.ts +14 -26
- package/es/components/menu/index.d.ts +203 -343
- package/es/components/menu/menu-collapse-transition.vue.d.ts +1 -1
- package/es/components/menu/menu-item-group.vue.d.ts +13 -9
- package/es/components/menu/menu-item.vue.d.ts +11 -64
- package/es/components/menu/menu-item.vue2.js +31 -31
- package/es/components/menu/menu.vue.d.ts +11 -64
- package/es/components/menu/menu.vue2.js +60 -60
- package/es/components/menu/sub-menu.vue.d.ts +11 -90
- package/es/components/menu/sub-menu.vue2.js +41 -41
- package/es/components/message/message.vue.d.ts +11 -104
- package/es/components/message/message.vue2.js +31 -31
- package/es/components/modal/index.d.ts +280 -253
- package/es/components/modal/modal-footer-action.vue.d.ts +11 -33
- package/es/components/modal/modal.vue.d.ts +63 -225
- package/es/components/modal/modal.vue2.js +32 -32
- package/es/components/multiple-tabs/index.d.ts +1 -1
- package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +11 -33
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +70 -100
- package/es/components/multiple-tabs/multiple-tabs.vue3.js +1 -4
- package/es/components/multiple-tabs/tab-content.vue.d.ts +17 -33
- package/es/components/multiple-tabs/tab-content.vue2.js +6 -6
- package/es/components/overlay/index.d.ts +1 -1
- package/es/components/overlay/overlay.vue.d.ts +18 -34
- package/es/components/overlay/overlay.vue2.js +18 -18
- package/es/components/page-wrapper/index.d.ts +15 -87
- package/es/components/page-wrapper/page-wrapper.vue.d.ts +13 -9
- package/es/components/pagination/components/jumper.vue.d.ts +12 -10
- package/es/components/pagination/components/next.vue.d.ts +17 -28
- package/es/components/pagination/components/pager.vue.d.ts +17 -30
- package/es/components/pagination/components/pager.vue2.js +29 -29
- package/es/components/pagination/components/prev.vue.d.ts +16 -22
- package/es/components/pagination/components/prev.vue2.js +9 -9
- package/es/components/pagination/components/sizes.vue.d.ts +18 -34
- package/es/components/pagination/components/sizes.vue2.js +17 -17
- package/es/components/pagination/components/total.vue.d.ts +12 -10
- package/es/components/pagination/index.d.ts +1 -1
- package/es/components/pagination/pagination.vue.d.ts +11 -112
- package/es/components/pagination/pagination.vue2.js +41 -41
- package/es/components/popconfirm/index.d.ts +127 -159
- package/es/components/popconfirm/popconfirm.vue.d.ts +52 -93
- package/es/components/popconfirm/popconfirm.vue2.js +26 -26
- package/es/components/popover/index.d.ts +161 -192
- package/es/components/popover/popover.vue2.js +31 -31
- package/es/components/popper/arrow.vue.d.ts +14 -10
- package/es/components/popper/content.vue2.js +55 -55
- package/es/components/popper/index.d.ts +22 -94
- package/es/components/popper/popper.vue.d.ts +14 -10
- package/es/components/popper/trigger.vue.d.ts +24 -70
- package/es/components/progress/index.d.ts +95 -141
- package/es/components/progress/progress.vue.d.ts +10 -87
- 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 +1 -1
- package/es/components/qrcode/qrcode.vue.d.ts +24 -35
- package/es/components/qrcode/qrcode.vue2.js +33 -33
- package/es/components/radio/index.d.ts +328 -611
- package/es/components/radio/radio-button.vue.d.ts +10 -33
- package/es/components/radio/radio-button.vue2.js +1 -1
- package/es/components/radio/radio-group.vue.d.ts +23 -72
- package/es/components/radio/radio-group.vue2.js +33 -33
- package/es/components/radio/radio.vue.d.ts +11 -46
- package/es/components/radio/radio.vue2.js +30 -30
- package/es/components/result/index.d.ts +1 -1
- package/es/components/result/result.vue.d.ts +15 -21
- package/es/components/router-view-content/index.d.ts +1 -1
- package/es/components/router-view-content/router-view-content.vue.d.ts +17 -42
- package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +1 -1
- package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +1 -1
- package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
- package/es/components/row/index.d.ts +31 -97
- package/es/components/row/row.vue.d.ts +10 -27
- package/es/components/scrollbar/bar.vue.d.ts +11 -34
- package/es/components/scrollbar/index.d.ts +104 -158
- package/es/components/scrollbar/scrollbar.vue.d.ts +11 -70
- package/es/components/scrollbar/scrollbar.vue2.js +53 -52
- package/es/components/scrollbar/thumb.vue.d.ts +9 -34
- package/es/components/search/index.d.ts +116 -169
- package/es/components/search/search.vue.d.ts +15 -66
- package/es/components/search/search.vue2.js +78 -78
- package/es/components/select/group-item.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +356 -144
- package/es/components/select/option-item.vue.d.ts +1 -1
- package/es/components/select/select-dropdown.d.ts +1 -1
- package/es/components/select/select.vue.d.ts +178 -72
- package/es/components/select/useSelect.d.ts +175 -69
- package/es/components/side-menu/index.d.ts +1 -1
- package/es/components/side-menu/side-menu.vue.d.ts +47 -156
- package/es/components/side-menu/side-menu.vue2.js +76 -76
- package/es/components/skeleton/index.d.ts +44 -108
- package/es/components/skeleton/skeleton-item.vue.d.ts +13 -9
- package/es/components/skeleton/skeleton.vue.d.ts +18 -34
- package/es/components/slider/button.vue.d.ts +11 -28
- package/es/components/slider/button.vue2.js +33 -33
- package/es/components/slider/composables/use-slide.d.ts +88 -219
- package/es/components/slider/index.d.ts +1 -1
- package/es/components/slider/marker.d.ts +1 -1
- package/es/components/slider/slider.vue.d.ts +11 -160
- package/es/components/slider/slider.vue2.js +60 -60
- package/es/components/slot/only-child.d.ts +1 -1
- package/es/components/space/index.d.ts +3 -3
- package/es/components/space/item.d.ts +1 -1
- package/es/components/space/space.d.ts +4 -4
- package/es/components/super-form/index.d.ts +372 -322
- package/es/components/super-form/super-form-action.vue.d.ts +11 -46
- package/es/components/super-form/super-form-item.vue.d.ts +9 -54
- package/es/components/super-form/super-form.vue.d.ts +63 -294
- package/es/components/super-form/super-form.vue2.js +89 -89
- package/es/components/super-form/types.d.ts +2 -2
- package/es/components/switch/index.d.ts +7 -7
- package/es/components/switch/switch.vue.d.ts +37 -146
- package/es/components/switch/switch.vue2.js +86 -86
- package/es/components/table/field.d.ts +2 -2
- package/es/components/table/index.d.ts +1127 -945
- package/es/components/table/table.vue.d.ts +77 -686
- package/es/components/table/table.vue2.js +79 -79
- package/es/components/table/use/use-columns.d.ts +30 -30
- package/es/components/table/use/use-data-source.js +3 -3
- package/es/components/tabs/index.d.ts +77 -205
- package/es/components/tabs/tab-bar.vue.d.ts +14 -45
- package/es/components/tabs/tab-nav.vue.d.ts +29 -106
- package/es/components/tabs/tab-nav.vue2.js +32 -32
- package/es/components/tabs/tab-pane.vue.d.ts +22 -33
- package/es/components/tabs/tabs.vue.d.ts +13 -90
- package/es/components/tabs/tabs.vue2.js +47 -47
- package/es/components/tag/index.d.ts +1 -1
- package/es/components/tag/tag.vue.d.ts +11 -52
- package/es/components/tag/tag.vue2.js +18 -18
- package/es/components/time-picker/common/picker.vue.d.ts +89 -89
- package/es/components/time-picker/common/picker.vue2.js +83 -83
- package/es/components/time-picker/composables/use-time-picker.d.ts +12 -12
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +20 -20
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +44 -44
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +14 -14
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +55 -55
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +12 -12
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +93 -93
- package/es/components/time-picker/time-picker.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +43 -43
- package/es/components/time-select/time-select.vue2.js +1 -2
- package/es/components/tooltip/content.vue2.js +22 -22
- package/es/components/tooltip/index.d.ts +329 -307
- package/es/components/tooltip/tooltip.vue.d.ts +13 -288
- package/es/components/tooltip/tooltip.vue2.js +43 -42
- package/es/components/tooltip/trigger.vue.d.ts +18 -34
- package/es/components/tree/index.d.ts +538 -546
- package/es/components/tree/tree-node-content.vue.d.ts +1 -1
- package/es/components/tree/tree-node.vue.d.ts +3 -3
- package/es/components/tree/tree.vue.d.ts +37 -176
- package/es/components/tree/tree.vue2.js +72 -72
- package/es/components/upload/index.d.ts +236 -233
- package/es/components/upload/upload-content.vue.d.ts +46 -173
- package/es/components/upload/upload-dragger.vue.d.ts +12 -10
- package/es/components/upload/upload-dragger.vue2.js +26 -26
- package/es/components/upload/upload-list.vue.d.ts +29 -36
- package/es/components/upload/upload-list.vue2.js +34 -34
- package/es/components/upload/upload.vue.d.ts +47 -185
- package/es/components/upload/use-handlers.d.ts +14 -3
- package/es/components/verify-code/index.d.ts +1 -1
- package/es/components/verify-code/useImageVerify.js +1 -1
- package/es/components/verify-code/verify-code.vue.d.ts +16 -22
- package/es/components/verify-code/verify-code.vue2.js +16 -16
- package/es/components/virtual-list/builders/build-grid.d.ts +3 -3
- package/es/components/virtual-list/builders/build-list.d.ts +5 -5
- package/es/components/virtual-list/components/dynamic-size-grid.d.ts +3 -3
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +5 -5
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +3 -3
- package/es/components/virtual-list/components/fixed-size-list.d.ts +5 -5
- package/es/components/virtual-list/components/scrollbar.d.ts +1 -1
- package/es/components/virtual-list/props.d.ts +3 -3
- package/es/package.json.d.ts +11 -11
- package/es/package.json.js +1 -1
- package/lib/app-components/form/form-label-wrap.d.ts +1 -1
- package/lib/components/affix/affix.vue.d.ts +13 -13
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/affix/index.d.ts +61 -132
- package/lib/components/alert/alert.vue.d.ts +11 -52
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/alert/index.d.ts +65 -122
- package/lib/components/autocomplete/autocomplete.vue.d.ts +188 -170
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +1006 -729
- package/lib/components/avatar/avatar.vue.d.ts +19 -40
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar/index.d.ts +53 -114
- package/lib/components/backtop/backtop.vue.d.ts +11 -40
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/index.d.ts +53 -114
- package/lib/components/button/button-group.vue.d.ts +11 -15
- package/lib/components/button/button.vue.d.ts +29 -138
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.d.ts +210 -372
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/card/card.vue.d.ts +15 -21
- package/lib/components/card/index.d.ts +27 -95
- package/lib/components/carousel/carousel-item.vue.d.ts +10 -15
- package/lib/components/carousel/carousel.vue.d.ts +43 -92
- package/lib/components/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/carousel/index.d.ts +176 -344
- package/lib/components/check-tag/check-tag.vue.d.ts +11 -10
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/check-tag/index.d.ts +24 -95
- package/lib/components/checkbox/checkbox-button.vue.d.ts +12 -94
- package/lib/components/checkbox/checkbox-group.vue.d.ts +27 -82
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +24 -96
- package/lib/components/checkbox/index.d.ts +576 -786
- package/lib/components/clamp/clamp.vue.d.ts +25 -48
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.d.ts +64 -122
- package/lib/components/clamp-toggle/clamp-toggle.vue.d.ts +23 -76
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/index.d.ts +1 -1
- package/lib/components/col/col.vue.d.ts +30 -73
- package/lib/components/col/index.d.ts +93 -136
- package/lib/components/collapse-transition/index.d.ts +16 -166
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
- package/lib/components/collection/collection-item.vue.d.ts +1 -1
- package/lib/components/collection/collection.vue.d.ts +1 -1
- package/lib/components/color-picker/color-picker.vue.d.ts +25 -74
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue.d.ts +10 -17
- package/lib/components/color-picker/components/hue-slider.vue.d.ts +1 -1
- package/lib/components/color-picker/components/predefine.vue.d.ts +1 -1
- package/lib/components/color-picker/components/sv-panel.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +7 -7
- package/lib/components/config-provider/config-provider.vue.d.ts +10 -69
- package/lib/components/config-provider/index.d.ts +77 -129
- package/lib/components/container/aside.vue.d.ts +10 -9
- package/lib/components/container/container.vue.d.ts +10 -9
- package/lib/components/container/footer.vue.d.ts +10 -9
- package/lib/components/container/header.vue.d.ts +10 -9
- package/lib/components/container/index.d.ts +121 -775
- package/lib/components/container/main.vue.d.ts +1 -1
- package/lib/components/context-menu/context-menu.vue.d.ts +16 -27
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-range-picker.d.ts +6 -6
- package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +1 -3
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +22 -22
- 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 +1 -1
- 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 +1 -1
- 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 +11 -11
- 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 +9 -9
- 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 +6 -6
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/date-picker/panel-utils.d.ts +167 -351
- package/lib/components/date-time-select/date-time-select.vue.d.ts +11 -18
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/index.d.ts +1 -1
- package/lib/components/descriptions/description-item.vue.d.ts +20 -51
- package/lib/components/descriptions/description.vue.d.ts +18 -39
- package/lib/components/descriptions/descriptions-cell.d.ts +1 -1
- package/lib/components/descriptions/descriptions-row.vue.d.ts +13 -9
- package/lib/components/descriptions/index.d.ts +161 -339
- package/lib/components/dialog/dialog-content.vue.d.ts +11 -52
- package/lib/components/dialog/dialog.vue.d.ts +12 -144
- package/lib/components/dialog/index.d.ts +178 -205
- package/lib/components/divider/divider.vue.d.ts +10 -39
- package/lib/components/divider/index.d.ts +47 -109
- package/lib/components/drawer/drawer.vue.d.ts +12 -167
- package/lib/components/drawer/index.d.ts +201 -220
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +2 -2
- package/lib/components/dropdown/dropdown-item.vue.d.ts +3 -3
- package/lib/components/dropdown/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +47 -144
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +207 -215
- package/lib/components/empty/empty.vue.d.ts +10 -27
- package/lib/components/empty/index.d.ts +31 -97
- package/lib/components/exception/exception.vue.d.ts +15 -21
- package/lib/components/exception/index.d.ts +1 -1
- package/lib/components/focus-trap/focus-trap.vue.d.ts +1 -1
- package/lib/components/footer-layout/footer-layout.vue.d.ts +1 -1
- package/lib/components/footer-layout/index.d.ts +8 -83
- package/lib/components/form/form-item.vue.d.ts +29 -78
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form-label-wrap.d.ts +1 -1
- package/lib/components/form/form.vue.d.ts +11 -94
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/form/index.d.ts +338 -465
- package/lib/components/full-screen/full-screen.vue.d.ts +11 -63
- package/lib/components/full-screen/index.d.ts +1 -1
- package/lib/components/header-layout/header-layout.vue.d.ts +10 -11
- package/lib/components/header-layout/index.d.ts +17 -88
- package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +11 -78
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.d.ts +1 -1
- package/lib/components/icon/icon.vue.d.ts +9 -46
- package/lib/components/icon/index.d.ts +1 -1
- package/lib/components/icon-text/icon-text.vue.d.ts +9 -64
- package/lib/components/icon-text/index.d.ts +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue.d.ts +12 -10
- package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue.d.ts +12 -10
- package/lib/components/iframe-layout/index.d.ts +1 -1
- package/lib/components/image/image.vue.d.ts +14 -79
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image/index.d.ts +106 -155
- package/lib/components/image/p-image.vue.d.ts +21 -47
- package/lib/components/image/p-image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue.d.ts +11 -52
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.d.ts +71 -128
- package/lib/components/input/index.d.ts +228 -253
- package/lib/components/input/input.vue.d.ts +14 -157
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/input-number.vue.d.ts +13 -108
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/link/index.d.ts +53 -114
- package/lib/components/link/link.vue.d.ts +19 -40
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/index.d.ts +1 -1
- package/lib/components/list-cell/list-cell.vue.d.ts +11 -30
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/logo/index.d.ts +1 -1
- package/lib/components/logo/logo.vue.d.ts +9 -24
- package/lib/components/md-code-demo/index.d.ts +1 -1
- package/lib/components/md-code-demo/md-code-demo.d.ts +1 -1
- package/lib/components/md-code-tabs/index.d.ts +1 -1
- package/lib/components/md-code-tabs/md-code-tabs.d.ts +1 -1
- 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 +11 -86
- package/lib/components/md-container/md-container.vue.d.ts +1 -1
- package/lib/components/md-container/toc.d.ts +1 -1
- package/lib/components/md-tabs/index.d.ts +1 -1
- package/lib/components/md-tabs/md-tabs.d.ts +1 -1
- package/lib/components/md-vue-playground/index.d.ts +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue.d.ts +14 -26
- package/lib/components/menu/index.d.ts +203 -343
- package/lib/components/menu/menu-collapse-transition.vue.d.ts +1 -1
- package/lib/components/menu/menu-item-group.vue.d.ts +13 -9
- package/lib/components/menu/menu-item.vue.d.ts +11 -64
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue.d.ts +11 -64
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue.d.ts +11 -90
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/message/message.vue.d.ts +11 -104
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/modal/index.d.ts +280 -253
- package/lib/components/modal/modal-footer-action.vue.d.ts +11 -33
- package/lib/components/modal/modal.vue.d.ts +63 -225
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/index.d.ts +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +11 -33
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue3.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +17 -33
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/overlay/index.d.ts +1 -1
- package/lib/components/overlay/overlay.vue.d.ts +18 -34
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/index.d.ts +15 -87
- package/lib/components/page-wrapper/page-wrapper.vue.d.ts +13 -9
- package/lib/components/pagination/components/jumper.vue.d.ts +12 -10
- package/lib/components/pagination/components/next.vue.d.ts +17 -28
- package/lib/components/pagination/components/pager.vue.d.ts +17 -30
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.vue.d.ts +16 -22
- package/lib/components/pagination/components/prev.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue.d.ts +18 -34
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue.d.ts +12 -10
- package/lib/components/pagination/index.d.ts +1 -1
- package/lib/components/pagination/pagination.vue.d.ts +11 -112
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +127 -159
- package/lib/components/popconfirm/popconfirm.vue.d.ts +52 -93
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/index.d.ts +161 -192
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue.d.ts +14 -10
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/index.d.ts +22 -94
- package/lib/components/popper/popper.vue.d.ts +14 -10
- package/lib/components/popper/trigger.vue.d.ts +24 -70
- package/lib/components/progress/index.d.ts +95 -141
- package/lib/components/progress/progress.vue.d.ts +10 -87
- 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 +1 -1
- package/lib/components/qrcode/qrcode.vue.d.ts +24 -35
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/index.d.ts +328 -611
- package/lib/components/radio/radio-button.vue.d.ts +10 -33
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue.d.ts +23 -72
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue.d.ts +11 -46
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/result/index.d.ts +1 -1
- package/lib/components/result/result.vue.d.ts +15 -21
- package/lib/components/router-view-content/index.d.ts +1 -1
- package/lib/components/router-view-content/router-view-content.vue.d.ts +17 -42
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/row/index.d.ts +31 -97
- package/lib/components/row/row.vue.d.ts +10 -27
- package/lib/components/scrollbar/bar.vue.d.ts +11 -34
- package/lib/components/scrollbar/index.d.ts +104 -158
- package/lib/components/scrollbar/scrollbar.vue.d.ts +11 -70
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue.d.ts +9 -34
- package/lib/components/search/index.d.ts +116 -169
- package/lib/components/search/search.vue.d.ts +15 -66
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/group-item.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +356 -144
- package/lib/components/select/option-item.vue.d.ts +1 -1
- package/lib/components/select/select-dropdown.d.ts +1 -1
- package/lib/components/select/select.vue.d.ts +178 -72
- package/lib/components/select/useSelect.d.ts +175 -69
- package/lib/components/side-menu/index.d.ts +1 -1
- package/lib/components/side-menu/side-menu.vue.d.ts +47 -156
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/index.d.ts +44 -108
- package/lib/components/skeleton/skeleton-item.vue.d.ts +13 -9
- package/lib/components/skeleton/skeleton.vue.d.ts +18 -34
- package/lib/components/slider/button.vue.d.ts +11 -28
- package/lib/components/slider/button.vue2.cjs +1 -1
- package/lib/components/slider/composables/use-slide.d.ts +88 -219
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/marker.d.ts +1 -1
- package/lib/components/slider/slider.vue.d.ts +11 -160
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/slot/only-child.d.ts +1 -1
- package/lib/components/space/index.d.ts +3 -3
- package/lib/components/space/item.d.ts +1 -1
- package/lib/components/space/space.d.ts +4 -4
- package/lib/components/super-form/index.d.ts +372 -322
- package/lib/components/super-form/super-form-action.vue.d.ts +11 -46
- package/lib/components/super-form/super-form-item.vue.d.ts +9 -54
- package/lib/components/super-form/super-form.vue.d.ts +63 -294
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +2 -2
- package/lib/components/switch/index.d.ts +7 -7
- package/lib/components/switch/switch.vue.d.ts +37 -146
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/field.d.ts +2 -2
- package/lib/components/table/index.d.ts +1127 -945
- package/lib/components/table/table.vue.d.ts +77 -686
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-columns.d.ts +30 -30
- package/lib/components/tabs/index.d.ts +77 -205
- package/lib/components/tabs/tab-bar.vue.d.ts +14 -45
- package/lib/components/tabs/tab-nav.vue.d.ts +29 -106
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue.d.ts +22 -33
- package/lib/components/tabs/tabs.vue.d.ts +13 -90
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/tag.vue.d.ts +11 -52
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +89 -89
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/composables/use-time-picker.d.ts +12 -12
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +20 -20
- 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 +14 -14
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +12 -12
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +43 -43
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +329 -307
- package/lib/components/tooltip/tooltip.vue.d.ts +13 -288
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue.d.ts +18 -34
- package/lib/components/tree/index.d.ts +538 -546
- package/lib/components/tree/tree-node-content.vue.d.ts +1 -1
- package/lib/components/tree/tree-node.vue.d.ts +3 -3
- package/lib/components/tree/tree.vue.d.ts +37 -176
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/index.d.ts +236 -233
- package/lib/components/upload/upload-content.vue.d.ts +46 -173
- package/lib/components/upload/upload-dragger.vue.d.ts +12 -10
- package/lib/components/upload/upload-dragger.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue.d.ts +29 -36
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue.d.ts +47 -185
- package/lib/components/upload/use-handlers.d.ts +14 -3
- package/lib/components/verify-code/index.d.ts +1 -1
- package/lib/components/verify-code/useImageVerify.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue.d.ts +16 -22
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/components/virtual-list/builders/build-grid.d.ts +3 -3
- package/lib/components/virtual-list/builders/build-list.d.ts +5 -5
- package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +3 -3
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +5 -5
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +3 -3
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +5 -5
- package/lib/components/virtual-list/components/scrollbar.d.ts +1 -1
- package/lib/components/virtual-list/props.d.ts +3 -3
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +11 -11
- package/package.json +14 -14
- package/web-types.json +1 -1
- package/es/app-components/super-form/types.d.ts +0 -177
- package/es/components/collection/collection.d.ts +0 -243
- package/es/components/popover/popover.vue.d.ts +0 -158
- package/es/components/popper/content.vue.d.ts +0 -184
- package/es/components/roving-focus-group/types.d.ts +0 -236
- package/es/components/tooltip/content.vue.d.ts +0 -210
- package/lib/app-components/super-form/types.d.ts +0 -177
- package/lib/components/collection/collection.d.ts +0 -243
- package/lib/components/popover/popover.vue.d.ts +0 -158
- package/lib/components/popper/content.vue.d.ts +0 -184
- package/lib/components/roving-focus-group/types.d.ts +0 -236
- package/lib/components/tooltip/content.vue.d.ts +0 -210
|
@@ -1,57 +1,23 @@
|
|
|
1
1
|
import { type IconProps } from 'vft/es/components';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}[]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
editable: {
|
|
25
|
-
type: globalThis.PropType<boolean>;
|
|
26
|
-
};
|
|
27
|
-
addable: {
|
|
28
|
-
type: globalThis.PropType<boolean>;
|
|
29
|
-
};
|
|
30
|
-
stretch: {
|
|
31
|
-
type: globalThis.PropType<boolean>;
|
|
32
|
-
};
|
|
33
|
-
showBar: {
|
|
34
|
-
type: globalThis.PropType<boolean>;
|
|
35
|
-
};
|
|
36
|
-
closeIconCfg: {
|
|
37
|
-
type: globalThis.PropType<IconProps>;
|
|
38
|
-
};
|
|
39
|
-
addIconCfg: {
|
|
40
|
-
type: globalThis.PropType<IconProps>;
|
|
41
|
-
};
|
|
42
|
-
arrowLeftIconCfg: {
|
|
43
|
-
type: globalThis.PropType<IconProps>;
|
|
44
|
-
};
|
|
45
|
-
arrowRightIconCfg: {
|
|
46
|
-
type: globalThis.PropType<IconProps>;
|
|
47
|
-
};
|
|
48
|
-
fixTabCount: {
|
|
49
|
-
type: globalThis.PropType<number>;
|
|
50
|
-
};
|
|
51
|
-
fixExtraScrollWidth: {
|
|
52
|
-
type: globalThis.PropType<number>;
|
|
53
|
-
};
|
|
54
|
-
}, {
|
|
2
|
+
import type { TabsPaneContext } from './types';
|
|
3
|
+
interface TabNavProps {
|
|
4
|
+
panes: TabsPaneContext[];
|
|
5
|
+
/** 标签是否同时可增加和关闭 */
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
/** 标签是否可增加 */
|
|
8
|
+
addable?: boolean;
|
|
9
|
+
/** tab 类型 */
|
|
10
|
+
stretch?: boolean;
|
|
11
|
+
showBar?: boolean;
|
|
12
|
+
/** 图标配置 */
|
|
13
|
+
closeIconCfg?: IconProps;
|
|
14
|
+
addIconCfg?: IconProps;
|
|
15
|
+
arrowLeftIconCfg?: IconProps;
|
|
16
|
+
arrowRightIconCfg?: IconProps;
|
|
17
|
+
fixTabCount?: number;
|
|
18
|
+
fixExtraScrollWidth?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabNavProps>, {
|
|
55
21
|
scrollToActiveTab: () => Promise<void>;
|
|
56
22
|
removeFocus: () => boolean;
|
|
57
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -59,62 +25,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
25
|
tabRemove: (...args: any[]) => void;
|
|
60
26
|
tabAdd: (...args: any[]) => void;
|
|
61
27
|
tabContextmenu: (...args: any[]) => void;
|
|
62
|
-
}, string, import("vue").
|
|
63
|
-
panes: {
|
|
64
|
-
type: globalThis.PropType<{
|
|
65
|
-
uid: number;
|
|
66
|
-
slots: Readonly<{
|
|
67
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
props: {
|
|
70
|
-
label: string;
|
|
71
|
-
name: string | number;
|
|
72
|
-
closable: boolean;
|
|
73
|
-
disabled: boolean;
|
|
74
|
-
lazy: boolean;
|
|
75
|
-
};
|
|
76
|
-
paneName: string | number | undefined;
|
|
77
|
-
active: boolean;
|
|
78
|
-
index: string | undefined;
|
|
79
|
-
isClosable: boolean;
|
|
80
|
-
attrs: Record<string, any>;
|
|
81
|
-
}[]>;
|
|
82
|
-
required: true;
|
|
83
|
-
};
|
|
84
|
-
editable: {
|
|
85
|
-
type: globalThis.PropType<boolean>;
|
|
86
|
-
};
|
|
87
|
-
addable: {
|
|
88
|
-
type: globalThis.PropType<boolean>;
|
|
89
|
-
};
|
|
90
|
-
stretch: {
|
|
91
|
-
type: globalThis.PropType<boolean>;
|
|
92
|
-
};
|
|
93
|
-
showBar: {
|
|
94
|
-
type: globalThis.PropType<boolean>;
|
|
95
|
-
};
|
|
96
|
-
closeIconCfg: {
|
|
97
|
-
type: globalThis.PropType<IconProps>;
|
|
98
|
-
};
|
|
99
|
-
addIconCfg: {
|
|
100
|
-
type: globalThis.PropType<IconProps>;
|
|
101
|
-
};
|
|
102
|
-
arrowLeftIconCfg: {
|
|
103
|
-
type: globalThis.PropType<IconProps>;
|
|
104
|
-
};
|
|
105
|
-
arrowRightIconCfg: {
|
|
106
|
-
type: globalThis.PropType<IconProps>;
|
|
107
|
-
};
|
|
108
|
-
fixTabCount: {
|
|
109
|
-
type: globalThis.PropType<number>;
|
|
110
|
-
};
|
|
111
|
-
fixExtraScrollWidth: {
|
|
112
|
-
type: globalThis.PropType<number>;
|
|
113
|
-
};
|
|
114
|
-
}>> & {
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TabNavProps>>> & {
|
|
115
29
|
onTabClick?: ((...args: any[]) => any) | undefined;
|
|
116
30
|
onTabRemove?: ((...args: any[]) => any) | undefined;
|
|
117
31
|
onTabAdd?: ((...args: any[]) => any) | undefined;
|
|
118
32
|
onTabContextmenu?: ((...args: any[]) => any) | undefined;
|
|
119
33
|
}, {}, {}>;
|
|
120
34
|
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),E=require("@vueuse/core"),T=require("@vft/utils"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),E=require("@vueuse/core"),T=require("@vft/utils"),_=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");require("lodash");require("../alert/index.cjs");require("../avatar/index.cjs");require("../backtop/index.cjs");require("../button/index.cjs");require("../card/index.cjs");require("../check-tag/index.cjs");require("../checkbox/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../col/index.cjs");require("../collapse-transition/index.cjs");require("../color-picker/index.cjs");require("../config-provider/index.cjs");require("../container/index.cjs");require("../context-menu/context-menu.vue2.cjs");require("../date-picker/index.cjs");require("../date-time-select/index.cjs");require("../descriptions/index.cjs");require("../dialog/index.cjs");require("../divider/index.cjs");require("../drawer/index.cjs");require("../dropdown/index.cjs");require("../empty/index.cjs");require("../exception/index.cjs");require("../footer-layout/index.cjs");require("../form/index.cjs");require("../full-screen/index.cjs");require("../header-layout/index.cjs");require("../horizontal-menu/index.cjs");const p=require("../icon/index.cjs");require("../icon-text/index.cjs");require("../iframe-layout/index.cjs");require("../image/index.cjs");require("../image-viewer/index.cjs");require("../input/index.cjs");require("../input-number/index.cjs");require("../link/index.cjs");require("../list-cell/index.cjs");require("../logo/index.cjs");require("../menu/index.cjs");require("../multiple-tabs/index.cjs");require("../overlay/index.cjs");require("../page-wrapper/index.cjs");require("../pagination/index.cjs");require("../popconfirm/index.cjs");require("../popover/index.cjs");require("../popper/index.cjs");require("../qrcode/index.cjs");require("../radio/index.cjs");require("../result/index.cjs");require("../router-view-content/index.cjs");require("../row/index.cjs");require("../scrollbar/index.cjs");require("../search/index.cjs");require("../select/index.cjs");require("../side-menu/index.cjs");require("../skeleton/index.cjs");require("../slider/index.cjs");require("../space/index.cjs");require("../switch/index.cjs");require("../table/index.cjs");require("./index.cjs");require("../tag/index.cjs");require("../time-picker/index.cjs");require("../tooltip/index.cjs");require("../tree/index.cjs");require("../verify-code/index.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/props.cjs");require("../autocomplete/index.cjs");require("../modal/index.cjs");require("../progress/index.cjs");require("../super-form/index.cjs");require("../upload/index.cjs");require("../carousel/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");require("../md-comment/index.cjs");require("../md-container/index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");const F=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("../message/index.cjs");require("../infinite-scroll/index.cjs");require("../progress-i/index.cjs");const y=require("@vft/constants"),ee=require("./types.cjs"),te=require("./tab-bar.vue2.cjs"),W=F.useNamespace("tab-nav"),re=t.defineComponent({name:W.b()}),ie=t.defineComponent({...re,props:{panes:{},editable:{type:Boolean},addable:{type:Boolean},stretch:{type:Boolean},showBar:{type:Boolean,default:!1},closeIconCfg:{},addIconCfg:{},arrowLeftIconCfg:{},arrowRightIconCfg:{},fixTabCount:{default:0},fixExtraScrollWidth:{default:0}},emits:["tabClick","tabRemove","tabAdd","tabContextmenu"],setup(o,{expose:L,emit:M}){var R;const g=M,K=t.getCurrentInstance(),m=t.inject(ee.TabsRootContextKey);m||_.throwError(W.b(),"<vft-tabs><tab-nav /></vft-tabs>");const u=F.useNamespace("tabs"),j=E.useDocumentVisibility(),H=E.useWindowFocus(),N=t.ref(),q=t.ref(),h=t.ref(),S=t.ref(),l=t.ref(!1),c=t.ref(0),I=t.ref(!1),w=t.ref(!0),x=t.computed(()=>["top","bottom"].includes(m.props.tabPosition)?"width":"height"),U=t.computed(()=>({transform:`translate${x.value==="width"?"X":"Y"}(-${c.value}px)`})),X=()=>{if(!q.value)return;const e=q.value[`offset${T.capitalize(x.value)}`],i=c.value;i&&(c.value=i>e?i-e:0)},Y=()=>{if(!q.value||!h.value)return;const e=h.value[`offset${T.capitalize(x.value)}`],i=q.value[`offset${T.capitalize(x.value)}`],r=c.value;e-r<=i||(c.value=e-r>i*2?r+i:e-i)},B=async()=>{const e=h.value,i=S.value;if(!l.value||!N.value||!q.value||!e)return;await t.nextTick();const r=N.value.querySelector(".is-active");if(!r)return;const C=q.value,b=["top","bottom"].includes(m.props.tabPosition),n=r.getBoundingClientRect(),a=C.getBoundingClientRect(),f=b?e.offsetWidth-a.width:e.offsetHeight-a.height,s=c.value;let v=s;const V=o.fixTabCount?((i==null?void 0:i.offsetWidth)||0)+o.fixExtraScrollWidth:0;b?(n.left-V<a.left&&(v=s-(a.left-n.left+V)),n.right>a.right&&(v=s+n.right-a.right)):(n.top<a.top&&(v=s-(a.top-n.top)),n.bottom>a.bottom&&(v=s+(n.bottom-a.bottom))),v=Math.max(v,0),c.value=Math.min(v,f)},O=()=>{if(!h.value||!q.value)return;const e=h.value[`offset${T.capitalize(x.value)}`],i=q.value[`offset${T.capitalize(x.value)}`],r=c.value;i<e?(l.value=l.value||{},l.value.prev=r,l.value.next=r+i<e,e-r<i&&(c.value=e-i)):(l.value=!1,r>0&&(c.value=0))},G=e=>{const i=e.code,{up:r,down:C,left:b,right:n}=y.EVENT_CODE;if(![r,C,b,n].includes(i))return;const a=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),f=a.indexOf(e.target);let s;i===b||i===r?f===0?s=a.length-1:s=f-1:f<a.length-1?s=f+1:s=0,a[s].focus(),a[s].click(),z()},z=()=>{w.value&&(I.value=!0)},$=()=>I.value=!1;t.watch(j,e=>{e==="hidden"?w.value=!1:e==="visible"&&setTimeout(()=>w.value=!0,50)}),t.watch(H,e=>{e?setTimeout(()=>w.value=!0,50):w.value=!1}),E.useResizeObserver(N,O),t.onMounted(()=>setTimeout(()=>B(),0)),t.onUpdated(()=>O()),L({scrollToActiveTab:B,removeFocus:$}),t.watch(()=>o.panes,()=>K.update(),{flush:"post"});const J=t.computed(()=>{var e,i;return l.value?[t.createVNode("span",{class:[u.e("nav-prev"),u.is("disabled",!l.value.prev)],onClick:X},[(e=o.arrowLeftIconCfg)!=null&&e.icon?t.createVNode(p.VftIcon,o.arrowLeftIconCfg,null):null]),t.createVNode("span",{class:[u.e("nav-next"),u.is("disabled",!l.value.next)],onClick:Y},[(i=o.arrowRightIconCfg)!=null&&i.icon?t.createVNode(p.VftIcon,o.arrowRightIconCfg,null):null])]:null}),Q=t.computed(()=>e=>{var i;return(i=o.panes.slice(0,e))==null?void 0:i.map((r,C)=>{var P,A,D;const b=r.uid,n=r.props.disabled,a=r.props.name??r.index??`${C}`,f=!n&&(r.isClosable||o.editable);r.index=`${C}`;const s=f?t.createVNode("span",{class:"is-icon-close",onClick:d=>g("tabRemove",r,d)},[(P=o.closeIconCfg)!=null&&P.icon?t.createVNode(p.VftIcon,o.closeIconCfg,null):null]):null,v=((D=(A=r.slots).label)==null?void 0:D.call(A))||r.props.label,V=!n&&r.active?0:-1;return t.createVNode("div",{ref:`tab-${b}`,class:[u.e("item"),u.is(m.props.tabPosition),u.is("active",r.active),u.is("disabled",n),u.is("closable",f),u.is("focus",I.value)],id:`tab-${a}`,key:`tab-${b}`,"aria-controls":`pane-${a}`,role:"tab","aria-selected":r.active,tabindex:V,onFocus:()=>z(),onBlur:()=>$(),onClick:d=>{$(),g("tabClick",r,a,d)},onContextmenu:d=>{d.preventDefault(),g("tabContextmenu",{pane:r,index:C,event:d})},onKeydown:d=>{f&&(d.code===y.EVENT_CODE.delete||d.code===y.EVENT_CODE.backspace)&&g("tabRemove",r,d)}},[v,s])})}),Z=o.editable||o.addable?t.createVNode("span",{class:u.e("new-tab"),tabindex:"0",onClick:()=>g("tabAdd"),onKeydown:e=>{e.code===y.EVENT_CODE.enter&&g("tabAdd")}},[(R=o.addIconCfg)!=null&&R.icon?t.createVNode(p.VftIcon,o.addIconCfg,null):null]):null,k=(e=!1)=>t.createVNode("div",{class:[u.e("nav"),u.is(m.props.tabPosition),u.is("fixed-nav",e),u.is("stretch",o.stretch&&["top","bottom"].includes(m.props.tabPosition))],ref:e?S:h,style:e?{}:U.value,role:"tablist",onKeydown:G},[o.showBar?t.createVNode(te.default,{tabs:[...o.panes]},null):null,Q.value(e?o.fixTabCount:void 0)]);return()=>t.createVNode("div",{ref:N,class:[u.e("nav-wrap"),u.is("scrollable",!!l.value),u.is(m.props.tabPosition)]},[J.value,t.createVNode("div",{class:[u.e("nav-scroll"),u.is("have-fixed-tab",!!o.fixTabCount)],ref:q},[k(),o.fixTabCount?k(!0):null,Z])])}});exports.default=ie;
|
|
@@ -1,39 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
name
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
lazy: {
|
|
15
|
-
type: globalThis.PropType<boolean>;
|
|
16
|
-
};
|
|
17
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
|
-
label: {
|
|
19
|
-
type: globalThis.PropType<string>;
|
|
20
|
-
};
|
|
21
|
-
name: {
|
|
22
|
-
type: globalThis.PropType<string | number>;
|
|
23
|
-
};
|
|
24
|
-
closable: {
|
|
25
|
-
type: globalThis.PropType<boolean>;
|
|
26
|
-
};
|
|
27
|
-
disabled: {
|
|
28
|
-
type: globalThis.PropType<boolean>;
|
|
29
|
-
};
|
|
30
|
-
lazy: {
|
|
31
|
-
type: globalThis.PropType<boolean>;
|
|
32
|
-
};
|
|
33
|
-
}>>, {}, {}>, {
|
|
1
|
+
interface TabPaneProps {
|
|
2
|
+
/** 选项卡标题 */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** 与选项卡绑定值 value 对应的标识符,表示选项卡别名 */
|
|
5
|
+
name?: string | number;
|
|
6
|
+
/** 标签是否可关闭 */
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
/** 是否禁用 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 标签是否延迟渲染 */
|
|
11
|
+
lazy?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabPaneProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TabPaneProps>>>, {}, {}>, {
|
|
34
14
|
default?(_: {}): any;
|
|
35
15
|
}>;
|
|
36
16
|
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
37
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
27
|
new (): {
|
|
39
28
|
$slots: S;
|
|
@@ -23,50 +23,7 @@ export interface TabsProps {
|
|
|
23
23
|
fixTabCount?: number;
|
|
24
24
|
fixExtraScrollWidth?: number;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: import("vue").DefineComponent<{
|
|
27
|
-
closable: {
|
|
28
|
-
type: globalThis.PropType<boolean>;
|
|
29
|
-
};
|
|
30
|
-
addable: {
|
|
31
|
-
type: globalThis.PropType<boolean>;
|
|
32
|
-
};
|
|
33
|
-
modelValue: {
|
|
34
|
-
type: globalThis.PropType<string | number>;
|
|
35
|
-
};
|
|
36
|
-
editable: {
|
|
37
|
-
type: globalThis.PropType<boolean>;
|
|
38
|
-
};
|
|
39
|
-
tabPosition: {
|
|
40
|
-
type: globalThis.PropType<"left" | "right" | "bottom" | "top">;
|
|
41
|
-
};
|
|
42
|
-
beforeLeave: {
|
|
43
|
-
type: globalThis.PropType<Function>;
|
|
44
|
-
};
|
|
45
|
-
stretch: {
|
|
46
|
-
type: globalThis.PropType<boolean>;
|
|
47
|
-
};
|
|
48
|
-
showBar: {
|
|
49
|
-
type: globalThis.PropType<boolean>;
|
|
50
|
-
};
|
|
51
|
-
closeIconCfg: {
|
|
52
|
-
type: globalThis.PropType<IconProps>;
|
|
53
|
-
};
|
|
54
|
-
addIconCfg: {
|
|
55
|
-
type: globalThis.PropType<IconProps>;
|
|
56
|
-
};
|
|
57
|
-
arrowLeftIconCfg: {
|
|
58
|
-
type: globalThis.PropType<IconProps>;
|
|
59
|
-
};
|
|
60
|
-
arrowRightIconCfg: {
|
|
61
|
-
type: globalThis.PropType<IconProps>;
|
|
62
|
-
};
|
|
63
|
-
fixTabCount: {
|
|
64
|
-
type: globalThis.PropType<number>;
|
|
65
|
-
};
|
|
66
|
-
fixExtraScrollWidth: {
|
|
67
|
-
type: globalThis.PropType<number>;
|
|
68
|
-
};
|
|
69
|
-
}, {
|
|
26
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabsProps>, {
|
|
70
27
|
currentName: globalThis.Ref<string | number>;
|
|
71
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
72
29
|
"update:modelValue": (name: string | number) => void;
|
|
@@ -109,51 +66,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
66
|
tabChange: (name: string | number) => void;
|
|
110
67
|
tabRemove: (name: string | number) => void;
|
|
111
68
|
tabAdd: () => void;
|
|
112
|
-
edit: (paneName: string | number | undefined, action: "
|
|
113
|
-
}, string, import("vue").
|
|
114
|
-
closable: {
|
|
115
|
-
type: globalThis.PropType<boolean>;
|
|
116
|
-
};
|
|
117
|
-
addable: {
|
|
118
|
-
type: globalThis.PropType<boolean>;
|
|
119
|
-
};
|
|
120
|
-
modelValue: {
|
|
121
|
-
type: globalThis.PropType<string | number>;
|
|
122
|
-
};
|
|
123
|
-
editable: {
|
|
124
|
-
type: globalThis.PropType<boolean>;
|
|
125
|
-
};
|
|
126
|
-
tabPosition: {
|
|
127
|
-
type: globalThis.PropType<"left" | "right" | "bottom" | "top">;
|
|
128
|
-
};
|
|
129
|
-
beforeLeave: {
|
|
130
|
-
type: globalThis.PropType<Function>;
|
|
131
|
-
};
|
|
132
|
-
stretch: {
|
|
133
|
-
type: globalThis.PropType<boolean>;
|
|
134
|
-
};
|
|
135
|
-
showBar: {
|
|
136
|
-
type: globalThis.PropType<boolean>;
|
|
137
|
-
};
|
|
138
|
-
closeIconCfg: {
|
|
139
|
-
type: globalThis.PropType<IconProps>;
|
|
140
|
-
};
|
|
141
|
-
addIconCfg: {
|
|
142
|
-
type: globalThis.PropType<IconProps>;
|
|
143
|
-
};
|
|
144
|
-
arrowLeftIconCfg: {
|
|
145
|
-
type: globalThis.PropType<IconProps>;
|
|
146
|
-
};
|
|
147
|
-
arrowRightIconCfg: {
|
|
148
|
-
type: globalThis.PropType<IconProps>;
|
|
149
|
-
};
|
|
150
|
-
fixTabCount: {
|
|
151
|
-
type: globalThis.PropType<number>;
|
|
152
|
-
};
|
|
153
|
-
fixExtraScrollWidth: {
|
|
154
|
-
type: globalThis.PropType<number>;
|
|
155
|
-
};
|
|
156
|
-
}>> & {
|
|
69
|
+
edit: (paneName: string | number | undefined, action: "add" | "remove") => void;
|
|
70
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TabsProps>>> & {
|
|
157
71
|
"onUpdate:modelValue"?: ((name: string | number) => any) | undefined;
|
|
158
72
|
onTabClick?: ((pane: {
|
|
159
73
|
uid: number;
|
|
@@ -194,6 +108,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
108
|
attrs: Record<string, any>;
|
|
195
109
|
}, index: number, ev: Event) => any) | undefined;
|
|
196
110
|
onTabChange?: ((name: string | number) => any) | undefined;
|
|
197
|
-
onEdit?: ((paneName: string | number | undefined, action: "
|
|
111
|
+
onEdit?: ((paneName: string | number | undefined, action: "add" | "remove") => any) | undefined;
|
|
198
112
|
}, {}, {}>;
|
|
199
113
|
export default _default;
|
|
114
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
115
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
116
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
117
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
118
|
+
} : {
|
|
119
|
+
type: import('vue').PropType<T[K]>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("@vueuse/core");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("@vueuse/core");const m=require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const B=require("../../hooks/use-namespace/index.cjs"),E=require("../../hooks/use-ordered-children/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const p=require("@vft/constants"),A=require("./tab-nav.vue2.cjs"),S=require("./types.cjs"),d=B.useNamespace("tabs"),k=t.defineComponent({name:d.b()}),M=t.defineComponent({...k,props:{closable:{type:Boolean},addable:{type:Boolean,default:!1},modelValue:{},editable:{type:Boolean},tabPosition:{default:"top"},beforeLeave:{},stretch:{type:Boolean},showBar:{type:Boolean,default:!0},closeIconCfg:{},addIconCfg:{},arrowLeftIconCfg:{},arrowRightIconCfg:{},fixTabCount:{default:0},fixExtraScrollWidth:{default:0}},emits:["update:modelValue","tabClick","tabContextMenu","tabChange","tabRemove","tabAdd","edit"],setup(a,{expose:v,emit:g}){const n=g,h=t.getCurrentInstance(),r=t.useSlots(),l=t.ref(),c=t.ref(a.modelValue??"0"),s=async(e,o=!1)=>{var i,u,C;if(!(c.value===e||m.isUndefined(e)))try{await((i=a.beforeLeave)==null?void 0:i.call(a,e,c.value))!==!1&&(c.value=e,o&&(n(p.UPDATE_MODEL_EVENT,e),n("tabChange",e)),(C=(u=l.value)==null?void 0:u.removeFocus)==null||C.call(u))}catch{}},x=(e,o,i)=>{e.props.disabled||(s(o,!0),n("tabClick",e,i))},I=(e,o)=>{e.props.disabled||m.isUndefined(e.props.name)||(o.stopPropagation(),n("edit",e.props.name,"remove"),n("tabRemove",e.props.name))};t.watch(()=>a.modelValue,e=>s(e)),t.watch(c,async()=>{var e;await t.nextTick(),(e=l.value)==null||e.scrollToActiveTab()});const w=()=>{n("edit",void 0,"add"),n("tabAdd")},T=(e,o,i)=>{n("tabContextMenu",e,o,i)},f=t.computed(()=>{var e;return t.createVNode("div",{class:d.e("content")},[(e=r.default)==null?void 0:e.call(r)])}),{children:q,addChild:y,removeChild:R}=E.useOrderedChildren(t.getCurrentInstance(),"vft-tab-pane");t.provide(S.TabsRootContextKey,{props:h.props,currentName:c,registerPane:y,unregisterPane:R}),v({currentName:c});const L=t.computed(()=>({icon:"icon-plus",size:12,...a.addIconCfg})),N=t.computed(()=>({icon:"icon-close",size:14,...a.closeIconCfg})),P=t.computed(()=>({icon:"icon-arrow-left",size:18,...a.arrowLeftIconCfg})),V=t.computed(()=>({icon:"icon-arrow-right",size:18,...a.arrowRightIconCfg})),b=t.computed(()=>{var e;return t.createVNode("div",{class:[d.e("header"),d.is(a.tabPosition)]},[t.createVNode(A.default,{ref:l,panes:q.value,stretch:a.stretch,showBar:a.showBar,closeIconCfg:N.value,addIconCfg:L.value,arrowRightIconCfg:V.value,arrowLeftIconCfg:P.value,editable:a.editable,fixTabCount:a.fixTabCount,fixExtraScrollWidth:a.fixExtraScrollWidth,addable:a.addable,onTabClick:x,onTabRemove:I,onTabAdd:w,onTabContextmenu:T},null),(e=r.headerRight)==null?void 0:e.call(r)])});return()=>t.createVNode("div",{class:[d.b(),d.m(a.tabPosition)]},[...a.tabPosition!=="bottom"?[b.value,f.value]:[f.value,b.value]])}});exports.default=M;
|
|
@@ -27,7 +27,7 @@ export declare const VftTag: import("vft/es/utils").SFCWithInstall<import("vue")
|
|
|
27
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
click: (...args: any[]) => void;
|
|
29
29
|
close: (...args: any[]) => void;
|
|
30
|
-
}, string, import("vue").
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
31
31
|
closable: {
|
|
32
32
|
type: globalThis.PropType<boolean>;
|
|
33
33
|
};
|
|
@@ -10,61 +10,20 @@ export interface TagProps {
|
|
|
10
10
|
effect?: 'dark' | 'light' | 'plain';
|
|
11
11
|
round?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: import("vue").DefineComponent<{
|
|
14
|
-
closable: {
|
|
15
|
-
type: globalThis.PropType<boolean>;
|
|
16
|
-
};
|
|
17
|
-
type: {
|
|
18
|
-
type: globalThis.PropType<TagType>;
|
|
19
|
-
};
|
|
20
|
-
hit: {
|
|
21
|
-
type: globalThis.PropType<boolean>;
|
|
22
|
-
};
|
|
23
|
-
disableTransitions: {
|
|
24
|
-
type: globalThis.PropType<boolean>;
|
|
25
|
-
};
|
|
26
|
-
color: {
|
|
27
|
-
type: globalThis.PropType<string>;
|
|
28
|
-
};
|
|
29
|
-
size: {
|
|
30
|
-
type: globalThis.PropType<ComponentSize>;
|
|
31
|
-
};
|
|
32
|
-
effect: {
|
|
33
|
-
type: globalThis.PropType<"light" | "dark" | "plain">;
|
|
34
|
-
};
|
|
35
|
-
round: {
|
|
36
|
-
type: globalThis.PropType<boolean>;
|
|
37
|
-
};
|
|
38
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TagProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
14
|
click: (...args: any[]) => void;
|
|
40
15
|
close: (...args: any[]) => void;
|
|
41
|
-
}, string, import("vue").
|
|
42
|
-
closable: {
|
|
43
|
-
type: globalThis.PropType<boolean>;
|
|
44
|
-
};
|
|
45
|
-
type: {
|
|
46
|
-
type: globalThis.PropType<TagType>;
|
|
47
|
-
};
|
|
48
|
-
hit: {
|
|
49
|
-
type: globalThis.PropType<boolean>;
|
|
50
|
-
};
|
|
51
|
-
disableTransitions: {
|
|
52
|
-
type: globalThis.PropType<boolean>;
|
|
53
|
-
};
|
|
54
|
-
color: {
|
|
55
|
-
type: globalThis.PropType<string>;
|
|
56
|
-
};
|
|
57
|
-
size: {
|
|
58
|
-
type: globalThis.PropType<ComponentSize>;
|
|
59
|
-
};
|
|
60
|
-
effect: {
|
|
61
|
-
type: globalThis.PropType<"light" | "dark" | "plain">;
|
|
62
|
-
};
|
|
63
|
-
round: {
|
|
64
|
-
type: globalThis.PropType<boolean>;
|
|
65
|
-
};
|
|
66
|
-
}>> & {
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TagProps>>> & {
|
|
67
17
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
68
18
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
69
19
|
}, {}, {}>;
|
|
70
20
|
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../form/index.cjs");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../form/index.cjs");const m=require("../icon/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const f=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const b=require("../form/hooks/use-form-common-props.cjs");function q(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const y=n.defineComponent({__name:"tag",props:{closable:{type:Boolean},type:{},hit:{type:Boolean},disableTransitions:{type:Boolean,default:!0},color:{},size:{},effect:{default:"light"},round:{type:Boolean}},emits:["close","click"],setup(e,{emit:i}){const r=i,c=n.useSlots(),s=b.useFormSize(),t=f.useNamespace("tag"),a=n.computed(()=>[t.b(),t.is("closable",e.closable),t.m(e.type),t.m(s.value),t.m(e.effect),t.is("hit",e.hit),t.is("round",e.round)]),u=o=>{r("close",o)},d=o=>{r("click",o)},l=()=>{var o;return n.createVNode("span",{class:a.value,style:{backgroundColor:e.color},onClick:d},[n.createVNode("span",{class:t.e("content")},[(o=c.default)==null?void 0:o.call(c)]),e.closable?n.createVNode("div",{class:t.e("close"),onClick:u},[n.createVNode(m.VftIcon,{icon:"icon-close"},null)]):""])};return()=>{let o;return e.disableTransitions?l():n.createVNode(n.Transition,{name:`${t.namespace.value}-zoom-in-center`,appear:!0},q(o=l())?o:{default:()=>[o]})}}});exports.default=y;
|