vft 0.0.149 → 0.0.151
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/button/button-custom.d.ts +2 -2
- package/es/app-components/button/use-button.d.ts +6 -6
- package/es/app-components/form/form-label-wrap.d.ts +2 -2
- package/es/app-components/form/hooks/use-form-common-props.d.ts +4 -5
- package/es/app-components/form/utils.d.ts +1 -1
- package/es/app-components/hooks/use-id.d.ts +1 -2
- package/es/components/affix/affix.d.ts +3 -3
- package/es/components/affix/affix.vue.d.ts +15 -15
- package/es/components/affix/affix.vue2.js +33 -33
- package/es/components/affix/index.d.ts +64 -135
- 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 +206 -188
- package/es/components/autocomplete/autocomplete.vue2.js +69 -69
- package/es/components/autocomplete/index.d.ts +1038 -761
- 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-custom.d.ts +1 -1
- package/es/components/button/button-group.vue.d.ts +11 -15
- package/es/components/button/button.vue.d.ts +30 -139
- package/es/components/button/button.vue2.js +19 -19
- package/es/components/button/index.d.ts +215 -377
- package/es/components/button/use-button.d.ts +3 -3
- 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 +45 -94
- package/es/components/carousel/carousel.vue2.js +37 -37
- package/es/components/carousel/index.d.ts +186 -354
- package/es/components/carousel/use-carousel.d.ts +2 -2
- 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 +13 -95
- package/es/components/checkbox/checkbox-group.vue.d.ts +28 -83
- package/es/components/checkbox/checkbox-group.vue2.js +37 -37
- package/es/components/checkbox/checkbox.vue.d.ts +25 -97
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +591 -801
- 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 +26 -75
- 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 +8 -8
- package/es/components/config-provider/config-provider.vue.d.ts +10 -69
- package/es/components/config-provider/hooks/use-global-config.d.ts +2 -3
- 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 +10 -10
- 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 +8 -8
- 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 +21 -5
- package/es/components/date-picker/index.d.ts +42 -10
- package/es/components/date-picker/panel-utils.d.ts +163 -347
- package/es/components/date-picker/props/date-picker.d.ts +9 -1
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/date-picker/utils.d.ts +1 -1
- 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 +14 -146
- package/es/components/dialog/dialog.vue2.js +0 -1
- package/es/components/dialog/index.d.ts +180 -207
- 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 +14 -169
- package/es/components/drawer/index.d.ts +203 -222
- 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 +50 -147
- package/es/components/dropdown/dropdown.vue2.js +65 -65
- package/es/components/dropdown/index.d.ts +223 -231
- 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/focus-trap/utils.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 +30 -79
- 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/hooks/use-form-common-props.d.ts +4 -6
- package/es/components/form/index.d.ts +350 -477
- 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 +232 -257
- package/es/components/input/input.vue.d.ts +17 -160
- package/es/components/input/input.vue2.js +124 -124
- package/es/components/input-number/index.d.ts +5 -5
- package/es/components/input-number/input-number.vue.d.ts +15 -110
- 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/loading/index.d.ts +9 -17
- package/es/components/loading/loading.d.ts +9 -17
- 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 +291 -264
- package/es/components/modal/modal-footer-action.vue.d.ts +11 -33
- package/es/components/modal/modal.vue.d.ts +64 -226
- 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 +16 -31
- 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 +134 -166
- package/es/components/popconfirm/popconfirm.vue.d.ts +53 -94
- package/es/components/popconfirm/popconfirm.vue2.js +26 -26
- package/es/components/popover/index.d.ts +165 -196
- package/es/components/popover/popover.vue2.js +31 -31
- package/es/components/popper/arrow.vue.d.ts +14 -10
- package/es/components/popper/composables/use-content-dom.d.ts +1 -3
- package/es/components/popper/composables/use-content.d.ts +6 -70
- package/es/components/popper/content.vue2.js +55 -55
- package/es/components/popper/index.d.ts +24 -96
- package/es/components/popper/popper.vue.d.ts +15 -12
- package/es/components/popper/trigger.vue.d.ts +24 -70
- package/es/components/popper/utils.d.ts +2 -45
- package/es/components/progress/index.d.ts +97 -143
- 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 +336 -619
- 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 +24 -73
- package/es/components/radio/radio-group.vue2.js +33 -33
- package/es/components/radio/radio.vue.d.ts +12 -47
- package/es/components/radio/radio.vue2.js +30 -30
- package/es/components/radio/use-radio.d.ts +1 -1
- 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 +118 -171
- package/es/components/search/search.vue.d.ts +16 -67
- package/es/components/search/search.vue2.js +78 -78
- package/es/components/select/defaults.d.ts +3 -4
- package/es/components/select/group-item.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +406 -194
- 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 +203 -97
- package/es/components/select/useSelect.d.ts +189 -83
- package/es/components/side-menu/index.d.ts +5 -9
- package/es/components/side-menu/side-menu.vue.d.ts +49 -158
- 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 +90 -221
- package/es/components/slider/index.d.ts +4 -4
- package/es/components/slider/marker.d.ts +1 -1
- package/es/components/slider/slider.d.ts +3 -3
- package/es/components/slider/slider.vue.d.ts +12 -161
- 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 +4 -7
- package/es/components/space/item.d.ts +1 -1
- package/es/components/space/space.d.ts +5 -8
- package/es/components/super-form/index.d.ts +377 -327
- 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 +65 -296
- package/es/components/super-form/super-form.vue2.js +89 -89
- package/es/components/switch/index.d.ts +16 -16
- package/es/components/switch/switch.vue.d.ts +40 -149
- 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 +1145 -963
- package/es/components/table/table.vue.d.ts +78 -687
- package/es/components/table/table.vue2.js +79 -79
- package/es/components/table/use/use-columns.d.ts +3 -801
- package/es/components/table/use/use-data-source.js +3 -3
- package/es/components/tabs/index.d.ts +79 -207
- 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 +107 -92
- package/es/components/time-picker/common/picker.vue2.js +83 -83
- package/es/components/time-picker/common/props.d.ts +9 -2
- package/es/components/time-picker/composables/use-time-picker.d.ts +12 -12
- package/es/components/time-picker/index.d.ts +42 -10
- 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 +21 -5
- package/es/components/time-picker/utils.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +44 -44
- 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 +337 -315
- 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/tooltip/utils.d.ts +1 -1
- package/es/components/tree/index.d.ts +727 -735
- 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 +2 -11
- 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/hooks/use-cache.d.ts +1 -1
- package/es/components/virtual-list/props.d.ts +3 -3
- package/es/hooks/use-id/index.d.ts +1 -2
- package/es/hooks/use-model-toggle/index.d.ts +2 -2
- package/es/hooks/use-popper/index.d.ts +7 -70
- package/es/hooks/use-same-target/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.d.ts +1 -1
- package/es/package.json.d.ts +11 -11
- package/es/package.json.js +1 -1
- package/lib/app-components/button/button-custom.d.ts +2 -2
- package/lib/app-components/button/use-button.d.ts +6 -6
- package/lib/app-components/form/form-label-wrap.d.ts +2 -2
- package/lib/app-components/form/hooks/use-form-common-props.d.ts +4 -5
- package/lib/app-components/form/utils.d.ts +1 -1
- package/lib/app-components/hooks/use-id.d.ts +1 -2
- package/lib/components/affix/affix.d.ts +3 -3
- package/lib/components/affix/affix.vue.d.ts +15 -15
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/affix/index.d.ts +64 -135
- 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 +206 -188
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +1038 -761
- 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-custom.d.ts +1 -1
- package/lib/components/button/button-group.vue.d.ts +11 -15
- package/lib/components/button/button.vue.d.ts +30 -139
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.d.ts +215 -377
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +3 -3
- 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 +45 -94
- package/lib/components/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/carousel/index.d.ts +186 -354
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- 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 +13 -95
- package/lib/components/checkbox/checkbox-group.vue.d.ts +28 -83
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +25 -97
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +591 -801
- 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 +26 -75
- 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 +8 -8
- package/lib/components/config-provider/config-provider.vue.d.ts +10 -69
- package/lib/components/config-provider/hooks/use-global-config.d.ts +2 -3
- 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 +10 -10
- 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 +8 -8
- 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 +21 -5
- package/lib/components/date-picker/index.d.ts +42 -10
- package/lib/components/date-picker/panel-utils.d.ts +163 -347
- package/lib/components/date-picker/props/date-picker.d.ts +9 -1
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/date-picker/utils.d.ts +1 -1
- 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 +14 -146
- package/lib/components/dialog/index.d.ts +180 -207
- 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 +14 -169
- package/lib/components/drawer/index.d.ts +203 -222
- 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 +50 -147
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +223 -231
- 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/focus-trap/utils.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 +30 -79
- 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/hooks/use-form-common-props.d.ts +4 -6
- package/lib/components/form/index.d.ts +350 -477
- 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 +232 -257
- package/lib/components/input/input.vue.d.ts +17 -160
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.d.ts +5 -5
- package/lib/components/input-number/input-number.vue.d.ts +15 -110
- 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/loading/index.d.ts +9 -17
- package/lib/components/loading/loading.d.ts +9 -17
- 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 +291 -264
- package/lib/components/modal/modal-footer-action.vue.d.ts +11 -33
- package/lib/components/modal/modal.vue.d.ts +64 -226
- 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 +16 -31
- 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 +134 -166
- package/lib/components/popconfirm/popconfirm.vue.d.ts +53 -94
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/index.d.ts +165 -196
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue.d.ts +14 -10
- package/lib/components/popper/composables/use-content-dom.d.ts +1 -3
- package/lib/components/popper/composables/use-content.d.ts +6 -70
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/index.d.ts +24 -96
- package/lib/components/popper/popper.vue.d.ts +15 -12
- package/lib/components/popper/trigger.vue.d.ts +24 -70
- package/lib/components/popper/utils.d.ts +2 -45
- package/lib/components/progress/index.d.ts +97 -143
- 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 +336 -619
- 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 +24 -73
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue.d.ts +12 -47
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/radio/use-radio.d.ts +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 +118 -171
- package/lib/components/search/search.vue.d.ts +16 -67
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/defaults.d.ts +3 -4
- package/lib/components/select/group-item.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +406 -194
- 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 +203 -97
- package/lib/components/select/useSelect.d.ts +189 -83
- package/lib/components/side-menu/index.d.ts +5 -9
- package/lib/components/side-menu/side-menu.vue.d.ts +49 -158
- 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 +90 -221
- package/lib/components/slider/index.d.ts +4 -4
- package/lib/components/slider/marker.d.ts +1 -1
- package/lib/components/slider/slider.d.ts +3 -3
- package/lib/components/slider/slider.vue.d.ts +12 -161
- 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 +4 -7
- package/lib/components/space/item.d.ts +1 -1
- package/lib/components/space/space.d.ts +5 -8
- package/lib/components/super-form/index.d.ts +377 -327
- 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 +65 -296
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/switch/index.d.ts +16 -16
- package/lib/components/switch/switch.vue.d.ts +40 -149
- 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 +1145 -963
- package/lib/components/table/table.vue.d.ts +78 -687
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-columns.d.ts +3 -801
- package/lib/components/tabs/index.d.ts +79 -207
- 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 +107 -92
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.d.ts +9 -2
- package/lib/components/time-picker/composables/use-time-picker.d.ts +12 -12
- package/lib/components/time-picker/index.d.ts +42 -10
- 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 +21 -5
- package/lib/components/time-picker/utils.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +44 -44
- 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 +337 -315
- 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/tooltip/utils.d.ts +1 -1
- package/lib/components/tree/index.d.ts +727 -735
- 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 +2 -11
- 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/hooks/use-cache.d.ts +1 -1
- package/lib/components/virtual-list/props.d.ts +3 -3
- package/lib/hooks/use-id/index.d.ts +1 -2
- package/lib/hooks/use-model-toggle/index.d.ts +2 -2
- package/lib/hooks/use-popper/index.d.ts +7 -70
- package/lib/hooks/use-same-target/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.d.ts +1 -1
- 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/super-form/types.d.ts +0 -176
- 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/super-form/types.d.ts +0 -176
- package/lib/components/tooltip/content.vue.d.ts +0 -210
|
@@ -29,83 +29,7 @@ export interface InputProps {
|
|
|
29
29
|
validateEvent?: boolean;
|
|
30
30
|
inputStyle?: StyleValue;
|
|
31
31
|
}
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
33
|
-
id: {
|
|
34
|
-
type: globalThis.PropType<string>;
|
|
35
|
-
};
|
|
36
|
-
size: {
|
|
37
|
-
type: globalThis.PropType<"default" | "small" | "large">;
|
|
38
|
-
};
|
|
39
|
-
disabled: {
|
|
40
|
-
type: globalThis.PropType<boolean>;
|
|
41
|
-
};
|
|
42
|
-
modelValue: {
|
|
43
|
-
type: globalThis.PropType<string | number>;
|
|
44
|
-
};
|
|
45
|
-
type: {
|
|
46
|
-
type: globalThis.PropType<string>;
|
|
47
|
-
};
|
|
48
|
-
resize: {
|
|
49
|
-
type: globalThis.PropType<"both" | "none" | "vertical" | "horizontal">;
|
|
50
|
-
};
|
|
51
|
-
autosize: {
|
|
52
|
-
type: globalThis.PropType<boolean | {
|
|
53
|
-
minRows?: number | undefined;
|
|
54
|
-
maxRows?: number | undefined;
|
|
55
|
-
}>;
|
|
56
|
-
};
|
|
57
|
-
autocomplete: {
|
|
58
|
-
type: globalThis.PropType<string>;
|
|
59
|
-
};
|
|
60
|
-
formatter: {
|
|
61
|
-
type: globalThis.PropType<Function>;
|
|
62
|
-
};
|
|
63
|
-
parser: {
|
|
64
|
-
type: globalThis.PropType<Function>;
|
|
65
|
-
};
|
|
66
|
-
placeholder: {
|
|
67
|
-
type: globalThis.PropType<string>;
|
|
68
|
-
};
|
|
69
|
-
form: {
|
|
70
|
-
type: globalThis.PropType<string>;
|
|
71
|
-
};
|
|
72
|
-
readonly: {
|
|
73
|
-
type: globalThis.PropType<boolean>;
|
|
74
|
-
};
|
|
75
|
-
clearable: {
|
|
76
|
-
type: globalThis.PropType<boolean>;
|
|
77
|
-
};
|
|
78
|
-
showPassword: {
|
|
79
|
-
type: globalThis.PropType<boolean>;
|
|
80
|
-
};
|
|
81
|
-
showWordLimit: {
|
|
82
|
-
type: globalThis.PropType<boolean>;
|
|
83
|
-
};
|
|
84
|
-
suffixIcon: {
|
|
85
|
-
type: globalThis.PropType<string | IconProps>;
|
|
86
|
-
};
|
|
87
|
-
prefixIcon: {
|
|
88
|
-
type: globalThis.PropType<string | IconProps>;
|
|
89
|
-
};
|
|
90
|
-
clearIcon: {
|
|
91
|
-
type: globalThis.PropType<string | IconProps>;
|
|
92
|
-
};
|
|
93
|
-
containerRole: {
|
|
94
|
-
type: globalThis.PropType<string>;
|
|
95
|
-
};
|
|
96
|
-
label: {
|
|
97
|
-
type: globalThis.PropType<string>;
|
|
98
|
-
};
|
|
99
|
-
tabindex: {
|
|
100
|
-
type: globalThis.PropType<string | number>;
|
|
101
|
-
};
|
|
102
|
-
validateEvent: {
|
|
103
|
-
type: globalThis.PropType<boolean>;
|
|
104
|
-
};
|
|
105
|
-
inputStyle: {
|
|
106
|
-
type: globalThis.PropType<StyleValue>;
|
|
107
|
-
};
|
|
108
|
-
}, {
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputProps>, {
|
|
109
33
|
/** @description HTML input element */
|
|
110
34
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
111
35
|
/** @description HTML textarea element */
|
|
@@ -130,11 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
130
54
|
/** @description resize textarea. */
|
|
131
55
|
resizeTextarea: () => void;
|
|
132
56
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
133
|
-
"update:modelValue": (value: string) => void;
|
|
134
|
-
change: (value: string) => void;
|
|
135
57
|
input: (value: string) => void;
|
|
136
58
|
clear: () => void;
|
|
137
59
|
blur: (evt: FocusEvent) => void;
|
|
60
|
+
change: (value: string) => void;
|
|
138
61
|
compositionend: (evt: CompositionEvent) => void;
|
|
139
62
|
compositionstart: (evt: CompositionEvent) => void;
|
|
140
63
|
compositionupdate: (evt: CompositionEvent) => void;
|
|
@@ -142,99 +65,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
142
65
|
keydown: (evt: Event | KeyboardEvent) => void;
|
|
143
66
|
mouseenter: (evt: MouseEvent) => void;
|
|
144
67
|
mouseleave: (evt: MouseEvent) => void;
|
|
68
|
+
"update:modelValue": (value: string) => void;
|
|
145
69
|
suffixClick: (value: any) => void;
|
|
146
70
|
prefixClick: (value: any) => void;
|
|
147
71
|
enter: () => void;
|
|
148
|
-
}, string, import("vue").
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
size: {
|
|
153
|
-
type: globalThis.PropType<"default" | "small" | "large">;
|
|
154
|
-
};
|
|
155
|
-
disabled: {
|
|
156
|
-
type: globalThis.PropType<boolean>;
|
|
157
|
-
};
|
|
158
|
-
modelValue: {
|
|
159
|
-
type: globalThis.PropType<string | number>;
|
|
160
|
-
};
|
|
161
|
-
type: {
|
|
162
|
-
type: globalThis.PropType<string>;
|
|
163
|
-
};
|
|
164
|
-
resize: {
|
|
165
|
-
type: globalThis.PropType<"both" | "none" | "vertical" | "horizontal">;
|
|
166
|
-
};
|
|
167
|
-
autosize: {
|
|
168
|
-
type: globalThis.PropType<boolean | {
|
|
169
|
-
minRows?: number | undefined;
|
|
170
|
-
maxRows?: number | undefined;
|
|
171
|
-
}>;
|
|
172
|
-
};
|
|
173
|
-
autocomplete: {
|
|
174
|
-
type: globalThis.PropType<string>;
|
|
175
|
-
};
|
|
176
|
-
formatter: {
|
|
177
|
-
type: globalThis.PropType<Function>;
|
|
178
|
-
};
|
|
179
|
-
parser: {
|
|
180
|
-
type: globalThis.PropType<Function>;
|
|
181
|
-
};
|
|
182
|
-
placeholder: {
|
|
183
|
-
type: globalThis.PropType<string>;
|
|
184
|
-
};
|
|
185
|
-
form: {
|
|
186
|
-
type: globalThis.PropType<string>;
|
|
187
|
-
};
|
|
188
|
-
readonly: {
|
|
189
|
-
type: globalThis.PropType<boolean>;
|
|
190
|
-
};
|
|
191
|
-
clearable: {
|
|
192
|
-
type: globalThis.PropType<boolean>;
|
|
193
|
-
};
|
|
194
|
-
showPassword: {
|
|
195
|
-
type: globalThis.PropType<boolean>;
|
|
196
|
-
};
|
|
197
|
-
showWordLimit: {
|
|
198
|
-
type: globalThis.PropType<boolean>;
|
|
199
|
-
};
|
|
200
|
-
suffixIcon: {
|
|
201
|
-
type: globalThis.PropType<string | IconProps>;
|
|
202
|
-
};
|
|
203
|
-
prefixIcon: {
|
|
204
|
-
type: globalThis.PropType<string | IconProps>;
|
|
205
|
-
};
|
|
206
|
-
clearIcon: {
|
|
207
|
-
type: globalThis.PropType<string | IconProps>;
|
|
208
|
-
};
|
|
209
|
-
containerRole: {
|
|
210
|
-
type: globalThis.PropType<string>;
|
|
211
|
-
};
|
|
212
|
-
label: {
|
|
213
|
-
type: globalThis.PropType<string>;
|
|
214
|
-
};
|
|
215
|
-
tabindex: {
|
|
216
|
-
type: globalThis.PropType<string | number>;
|
|
217
|
-
};
|
|
218
|
-
validateEvent: {
|
|
219
|
-
type: globalThis.PropType<boolean>;
|
|
220
|
-
};
|
|
221
|
-
inputStyle: {
|
|
222
|
-
type: globalThis.PropType<StyleValue>;
|
|
223
|
-
};
|
|
224
|
-
}>> & {
|
|
72
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputProps>>> & {
|
|
73
|
+
onInput?: ((value: string) => any) | undefined;
|
|
74
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
75
|
+
onChange?: ((value: string) => any) | undefined;
|
|
225
76
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
226
77
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
227
78
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
228
79
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
229
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
230
|
-
onChange?: ((value: string) => any) | undefined;
|
|
231
|
-
onInput?: ((value: string) => any) | undefined;
|
|
232
80
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
233
81
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
234
82
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
235
83
|
onEnter?: (() => any) | undefined;
|
|
236
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
237
84
|
onClear?: (() => any) | undefined;
|
|
85
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
238
86
|
onSuffixClick?: ((value: any) => any) | undefined;
|
|
239
87
|
onPrefixClick?: ((value: any) => any) | undefined;
|
|
240
88
|
}, {}, {}>, {
|
|
@@ -244,6 +92,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
244
92
|
append?(_: {}): any;
|
|
245
93
|
}>;
|
|
246
94
|
export default _default;
|
|
95
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
96
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
97
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
98
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
99
|
+
} : {
|
|
100
|
+
type: import('vue').PropType<T[K]>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
247
104
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
248
105
|
new (): {
|
|
249
106
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@vft/constants"),ee=require("@vft/use"),r=require("@vft/utils");require("../form/index.cjs");const w=require("../icon/index.cjs"),ne=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Ve=require("lodash"),te=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-item.cjs"),le=require("../form/hooks/use-form-common-props.cjs"),Se=["role"],ze=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ie=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Ne=e.defineComponent({__name:"input",props:{id:{},size:{default:""},disabled:{type:Boolean},modelValue:{},type:{default:"text"},resize:{},autosize:{type:[Object,Boolean],default:!1},autocomplete:{default:"off"},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{}},emits:{[F.UPDATE_MODEL_EVENT]:t=>r.isString(t),input:t=>r.isString(t),change:t=>r.isString(t),suffixClick:t=>r.isString(t),prefixClick:t=>r.isString(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,enter:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},setup(t,{expose:se,emit:l}){const y=e.useAttrs(),d=e.useSlots(),A=e.computed(()=>{const n={};return t.containerRole==="combobox"&&(n["aria-haspopup"]=y["aria-haspopup"],n["aria-owns"]=y["aria-owns"],n["aria-expanded"]=y["aria-expanded"]),n}),re=e.computed(()=>[t.type==="textarea"?O.b():o.b(),o.m(ie.value),o.is("disabled",f.value),o.is("exceed",ve.value),o.is("focus",v.value),{[o.b("group")]:d.prepend||d.append,[o.bm("group","append")]:d.append,[o.bm("group","prepend")]:d.prepend,[o.m("prefix")]:d.prefix||t.prefixIcon,[o.m("suffix")]:d.suffix||t.suffixIcon||t.clearable||t.showPassword,[o.bm("suffix","password-clear")]:B.value&&P.value},y.class]),ue=e.getCurrentInstance(),ce=e.computed(()=>[o.e("wrapper"),o.is("focus",v.value)]),u=ee.useAttrs({excludeKeys:e.computed(()=>Object.keys(A.value))}),{form:S,formItem:s}=ae.useFormItem(),{inputId:D}=ae.useFormItemInputId(ue.props,{formItemContext:s}),ie=le.useFormSize(),f=le.useFormDisabled(),o=te.useNamespace("input"),O=te.useNamespace("textarea"),x=e.shallowRef(),m=e.shallowRef(),v=e.ref(!1),z=e.ref(!1),h=e.ref(!1),E=e.ref(!1),R=e.ref(),I=e.shallowRef(t.inputStyle),k=e.computed(()=>x.value||m.value),N=e.computed(()=>r.singleAttrToObj(t.prefixIcon,"icon",{size:16})),K=e.computed(()=>r.singleAttrToObj(t.suffixIcon,"icon",{size:16})),de=e.computed(()=>r.singleAttrToObj(t.clearIcon,"icon",{icon:"icon-circle-close",size:16})),$=e.computed(()=>(S==null?void 0:S.statusIcon)??!1),g=e.computed(()=>(s==null?void 0:s.validateState)||""),j=e.computed(()=>g.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[g.value]),fe=e.computed(()=>E.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),me=e.computed(()=>[y.style,t.inputStyle]),L=e.computed(()=>[t.inputStyle,I.value,{resize:t.resize}]),i=e.computed(()=>Ve.isNil(t.modelValue)?"":String(t.modelValue)),B=e.computed(()=>t.clearable&&!f.value&&!t.readonly&&!!i.value&&(v.value||z.value)),P=e.computed(()=>t.showPassword&&!f.value&&!t.readonly&&!!i.value&&(!!i.value||v.value)),p=e.computed(()=>t.showWordLimit&&!!u.value.maxlength&&(t.type==="text"||t.type==="textarea")&&!f.value&&!t.readonly&&!t.showPassword),T=e.computed(()=>Array.from(i.value).length),ve=e.computed(()=>!!p.value&&T.value>Number(u.value.maxlength)),pe=e.computed(()=>!!d.suffix||!!t.suffixIcon||B.value||t.showPassword||p.value||!!g.value&&$.value),[ye,he]=ee.useCursor(x);ne.useResizeObserver(m,n=>{if(!p.value||t.resize!=="both")return;const a=n[0],{width:c}=a.contentRect;R.value={right:`calc(100% - ${c+15+6}px)`}});const V=()=>{if(!(!ne.isClient||t.type!=="textarea"))if(t.autosize){const n=r.isObject(t.autosize)?t.autosize.minRows:void 0,a=r.isObject(t.autosize)?t.autosize.maxRows:void 0;I.value={...oe.calcTextareaHeight(m.value,n,a)}}else I.value={minHeight:oe.calcTextareaHeight(m.value).minHeight}},b=()=>{const n=k.value;!n||n.value===i.value||(n.value=i.value)},q=async n=>{ye();let{value:a}=n.target;if(u.value.maxlength&&a.length>=u.value.maxlength&&(a=a.slice(0,Number(u.value.maxlength))),t.formatter&&(a=t.parser?t.parser(a):a,a=t.formatter(a)),!h.value){if(a===i.value){b();return}l(F.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),b(),he()}},W=n=>{l("change",n.target.value)},ke=()=>{l("suffixClick",t.modelValue)},ge=()=>{l("prefixClick",t.modelValue)},H=n=>{l("compositionstart",n),h.value=!0},be=n=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(n),U=n=>{var C;l("compositionupdate",n);const a=(C=n.target)==null?void 0:C.value,c=a[a.length-1]||"";h.value=!be(c)},G=n=>{l("compositionend",n),h.value&&(h.value=!1,q(n))},Ce=()=>{E.value=!E.value,J()},J=async()=>{var n;await e.nextTick(),(n=k.value)==null||n.focus()},we=()=>{var n;return(n=k.value)==null?void 0:n.blur()},Q=n=>{v.value=!0,l("focus",n)},X=n=>{var a;v.value=!1,l("blur",n),t.validateEvent&&((a=s==null?void 0:s.validate)==null||a.call(s,"blur").catch(c=>M.debugWarn(c)))},xe=n=>{z.value=!1,l("mouseleave",n)},Ee=n=>{z.value=!0,l("mouseenter",n)},Y=n=>{let a=n.key;if(n.target.type==="number"&&["e","+","-0","E"].includes(a))return n.returnValue=!1,!1;l("keydown",n)},Be=()=>{var n;(n=k.value)==null||n.select()},Z=()=>{l(F.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>t.modelValue,()=>{var n;e.nextTick(()=>V()),t.validateEvent&&((n=s==null?void 0:s.validate)==null||n.call(s,"change").catch(a=>M.debugWarn(a)))}),e.watch(i,()=>b()),e.watch(()=>t.type,async()=>{await e.nextTick(),b(),V()}),e.onMounted(()=>{!t.formatter&&t.parser&&M.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),b(),e.nextTick(V)}),se({input:x,textarea:m,ref:k,textareaStyle:L,autosize:t.autosize,focus:J,blur:we,select:Be,clear:Z,resizeTextarea:V}),(n,a)=>{var c,C,_;return e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(A.value,{class:re.value,style:me.value,role:n.containerRole,onMouseenter:Ee,onMouseleave:xe}),[n.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).be("group","prepend"))},[e.renderSlot(n.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ce.value)},[n.$slots.prefix||(c=N.value)!=null&&c.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("prefix-inner")),onClick:ge},[e.renderSlot(n.$slots,"prefix"),(C=N.value)!=null&&C.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0,pointer:""},N.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(D),ref_key:"input",ref:x,class:e.unref(o).e("inner")},e.unref(u),{type:n.showPassword?E.value?"text":"password":n.type,disabled:e.unref(f),formatter:n.formatter,parser:n.parser,readonly:n.readonly,autocomplete:n.autocomplete,tabindex:n.tabindex,"aria-label":n.label,placeholder:n.placeholder,style:n.inputStyle,form:n.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y,onKeyup:a[0]||(a[0]=e.withKeys(Pe=>l("enter"),["enter"]))}),null,16,ze),pe.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("suffix-inner")),onClick:ke},[!B.value||!P.value||!p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(n.$slots,"suffix"),(_=K.value)!=null&&_.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0},K.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(o).e("icon"),e.unref(o).e("clear")]},de.value,{onMousedown:e.withModifiers(e.unref(r.noop),["prevent"]),onClick:e.withModifiers(Z,["stop"])}),null,16,["class","onMousedown","onClick"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:2},fe.value,{class:[e.unref(o).e("icon"),e.unref(o).e("password")],onClick:Ce}),null,16,["class"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(o).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("count-inner"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),3)],2)):e.createCommentVNode("",!0),g.value&&j.value&&$.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),{key:4,icon:j.value,class:e.normalizeClass([e.unref(o).e("icon"),e.unref(o).e("validateIcon"),e.unref(o).is("loading",g.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),n.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).be("group","append"))},[e.renderSlot(n.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(D),ref_key:"textarea",ref:m,class:e.unref(O).e("inner")},e.unref(u),{tabindex:n.tabindex,disabled:e.unref(f),readonly:n.readonly,autocomplete:n.autocomplete,style:L.value,"aria-label":n.label,placeholder:n.placeholder,form:n.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y}),null,16,Ie),p.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(R.value),class:e.normalizeClass(e.unref(o).e("count"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),7)):e.createCommentVNode("",!0)],64))],16,Se)),[[e.vShow,n.type!=="hidden"]])}}});exports.default=Ne;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@vft/constants"),ee=require("@vft/use"),r=require("@vft/utils");require("../form/index.cjs");const w=require("../icon/index.cjs"),te=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Se=require("lodash"),ne=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-item.cjs"),le=require("../form/hooks/use-form-common-props.cjs"),ze=["role"],Ie=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ne=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Pe=e.defineComponent({__name:"input",props:{id:{},size:{default:""},disabled:{type:Boolean},modelValue:{},type:{default:"text"},resize:{},autosize:{type:[Object,Boolean],default:!1},autocomplete:{default:"off"},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Boolean,null,String,Object,Array]}},emits:{[F.UPDATE_MODEL_EVENT]:n=>r.isString(n),input:n=>r.isString(n),change:n=>r.isString(n),suffixClick:n=>r.isString(n),prefixClick:n=>r.isString(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,enter:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},setup(n,{expose:se,emit:re}){const l=re,y=e.useAttrs(),d=e.useSlots(),A=e.computed(()=>{const t={};return n.containerRole==="combobox"&&(t["aria-haspopup"]=y["aria-haspopup"],t["aria-owns"]=y["aria-owns"],t["aria-expanded"]=y["aria-expanded"]),t}),ue=e.computed(()=>[n.type==="textarea"?O.b():o.b(),o.m(de.value),o.is("disabled",m.value),o.is("exceed",ve.value),o.is("focus",p.value),{[o.b("group")]:d.prepend||d.append,[o.bm("group","append")]:d.append,[o.bm("group","prepend")]:d.prepend,[o.m("prefix")]:d.prefix||n.prefixIcon,[o.m("suffix")]:d.suffix||n.suffixIcon||n.clearable||n.showPassword,[o.bm("suffix","password-clear")]:B.value&&P.value},y.class]),ie=e.getCurrentInstance(),ce=e.computed(()=>[o.e("wrapper"),o.is("focus",p.value)]),u=ee.useAttrs({excludeKeys:e.computed(()=>Object.keys(A.value))}),{form:S,formItem:s}=ae.useFormItem(),{inputId:D}=ae.useFormItemInputId(ie.props,{formItemContext:s}),de=le.useFormSize(),m=le.useFormDisabled(),o=ne.useNamespace("input"),O=ne.useNamespace("textarea"),x=e.shallowRef(),f=e.shallowRef(),p=e.ref(!1),z=e.ref(!1),h=e.ref(!1),E=e.ref(!1),R=e.ref(),I=e.shallowRef(n.inputStyle),g=e.computed(()=>x.value||f.value),N=e.computed(()=>r.singleAttrToObj(n.prefixIcon,"icon",{size:16})),K=e.computed(()=>r.singleAttrToObj(n.suffixIcon,"icon",{size:16})),me=e.computed(()=>r.singleAttrToObj(n.clearIcon,"icon",{icon:"icon-circle-close",size:16})),$=e.computed(()=>(S==null?void 0:S.statusIcon)??!1),k=e.computed(()=>(s==null?void 0:s.validateState)||""),j=e.computed(()=>k.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[k.value]),fe=e.computed(()=>E.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),pe=e.computed(()=>[y.style,n.inputStyle]),L=e.computed(()=>[n.inputStyle,I.value,{resize:n.resize}]),c=e.computed(()=>Se.isNil(n.modelValue)?"":String(n.modelValue)),B=e.computed(()=>n.clearable&&!m.value&&!n.readonly&&!!c.value&&(p.value||z.value)),P=e.computed(()=>n.showPassword&&!m.value&&!n.readonly&&!!c.value&&(!!c.value||p.value)),v=e.computed(()=>n.showWordLimit&&!!u.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!m.value&&!n.readonly&&!n.showPassword),T=e.computed(()=>Array.from(c.value).length),ve=e.computed(()=>!!v.value&&T.value>Number(u.value.maxlength)),ye=e.computed(()=>!!d.suffix||!!n.suffixIcon||B.value||n.showPassword||v.value||!!k.value&&$.value),[he,ge]=ee.useCursor(x);te.useResizeObserver(f,t=>{if(!v.value||n.resize!=="both")return;const a=t[0],{width:i}=a.contentRect;R.value={right:`calc(100% - ${i+15+6}px)`}});const V=()=>{if(!(!te.isClient||n.type!=="textarea"))if(n.autosize){const t=r.isObject(n.autosize)?n.autosize.minRows:void 0,a=r.isObject(n.autosize)?n.autosize.maxRows:void 0;I.value={...oe.calcTextareaHeight(f.value,t,a)}}else I.value={minHeight:oe.calcTextareaHeight(f.value).minHeight}},b=()=>{const t=g.value;!t||t.value===c.value||(t.value=c.value)},q=async t=>{he();let{value:a}=t.target;if(u.value.maxlength&&a.length>=u.value.maxlength&&(a=a.slice(0,Number(u.value.maxlength))),n.formatter&&(a=n.parser?n.parser(a):a,a=n.formatter(a)),!h.value){if(a===c.value){b();return}l(F.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),b(),ge()}},W=t=>{l("change",t.target.value)},ke=()=>{l("suffixClick",n.modelValue)},be=()=>{l("prefixClick",n.modelValue)},H=t=>{l("compositionstart",t),h.value=!0},Ce=t=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(t),U=t=>{var C;l("compositionupdate",t);const a=(C=t.target)==null?void 0:C.value,i=a[a.length-1]||"";h.value=!Ce(i)},G=t=>{l("compositionend",t),h.value&&(h.value=!1,q(t))},we=()=>{E.value=!E.value,J()},J=async()=>{var t;await e.nextTick(),(t=g.value)==null||t.focus()},xe=()=>{var t;return(t=g.value)==null?void 0:t.blur()},Q=t=>{p.value=!0,l("focus",t)},X=t=>{var a;p.value=!1,l("blur",t),n.validateEvent&&((a=s==null?void 0:s.validate)==null||a.call(s,"blur").catch(i=>M.debugWarn(i)))},Ee=t=>{z.value=!1,l("mouseleave",t)},Be=t=>{z.value=!0,l("mouseenter",t)},Y=t=>{let a=t.key;if(t.target.type==="number"&&["e","+","-0","E"].includes(a))return t.returnValue=!1,!1;l("keydown",t)},Ve=()=>{var t;(t=g.value)==null||t.select()},Z=()=>{l(F.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>n.modelValue,()=>{var t;e.nextTick(()=>V()),n.validateEvent&&((t=s==null?void 0:s.validate)==null||t.call(s,"change").catch(a=>M.debugWarn(a)))}),e.watch(c,()=>b()),e.watch(()=>n.type,async()=>{await e.nextTick(),b(),V()}),e.onMounted(()=>{!n.formatter&&n.parser&&M.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),b(),e.nextTick(V)}),se({input:x,textarea:f,ref:g,textareaStyle:L,autosize:n.autosize,focus:J,blur:xe,select:Ve,clear:Z,resizeTextarea:V}),(t,a)=>{var i,C,_;return e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(A.value,{class:ue.value,style:pe.value,role:t.containerRole,onMouseenter:Be,onMouseleave:Ee}),[t.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).be("group","prepend"))},[e.renderSlot(t.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ce.value)},[t.$slots.prefix||(i=N.value)!=null&&i.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("prefix-inner")),onClick:be},[e.renderSlot(t.$slots,"prefix"),(C=N.value)!=null&&C.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0,pointer:""},N.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(D),ref_key:"input",ref:x,class:e.unref(o).e("inner")},e.unref(u),{type:t.showPassword?E.value?"text":"password":t.type,disabled:e.unref(m),formatter:t.formatter,parser:t.parser,readonly:t.readonly,autocomplete:t.autocomplete,tabindex:t.tabindex,"aria-label":t.label,placeholder:t.placeholder,style:t.inputStyle,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y,onKeyup:a[0]||(a[0]=e.withKeys(Te=>l("enter"),["enter"]))}),null,16,Ie),ye.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("suffix-inner")),onClick:ke},[!B.value||!P.value||!v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"suffix"),(_=K.value)!=null&&_.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0},K.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(o).e("icon"),e.unref(o).e("clear")]},me.value,{onMousedown:e.withModifiers(e.unref(r.noop),["prevent"]),onClick:e.withModifiers(Z,["stop"])}),null,16,["class","onMousedown"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:2},fe.value,{class:[e.unref(o).e("icon"),e.unref(o).e("password")],onClick:we}),null,16,["class"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(o).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("count-inner"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),3)],2)):e.createCommentVNode("",!0),k.value&&j.value&&$.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),{key:4,icon:j.value,class:e.normalizeClass([e.unref(o).e("icon"),e.unref(o).e("validateIcon"),e.unref(o).is("loading",k.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),t.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).be("group","append"))},[e.renderSlot(t.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(D),ref_key:"textarea",ref:f,class:e.unref(O).e("inner")},e.unref(u),{tabindex:t.tabindex,disabled:e.unref(m),readonly:t.readonly,autocomplete:t.autocomplete,style:L.value,"aria-label":t.label,placeholder:t.placeholder,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y}),null,16,Ne),v.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(R.value),class:e.normalizeClass(e.unref(o).e("count"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),7)):e.createCommentVNode("",!0)],64))],16,ze)),[[e.vShow,t.type!=="hidden"]])}}});exports.default=Pe;
|
|
@@ -56,12 +56,12 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
56
56
|
focus: () => void;
|
|
57
57
|
blur: () => void;
|
|
58
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
59
|
+
blur: (e: FocusEvent) => void;
|
|
60
|
+
focus: (e: FocusEvent) => void;
|
|
59
61
|
"update:modelValue": (val: number | undefined) => void;
|
|
60
62
|
change: (cur: number | undefined, prev: number | undefined) => void;
|
|
61
63
|
input: (val: number | null | undefined) => void;
|
|
62
|
-
|
|
63
|
-
focus: (e: FocusEvent) => void;
|
|
64
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
|
64
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
65
65
|
id: {
|
|
66
66
|
type: globalThis.PropType<string>;
|
|
67
67
|
};
|
|
@@ -114,10 +114,10 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
114
114
|
type: globalThis.PropType<boolean>;
|
|
115
115
|
};
|
|
116
116
|
}>> & {
|
|
117
|
-
|
|
117
|
+
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
118
118
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
119
119
|
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
120
|
-
|
|
120
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
121
121
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
122
122
|
}, {}, {}>> & Record<string, any>;
|
|
123
123
|
export default VftInputNumber;
|
|
@@ -68,126 +68,31 @@ export interface InputNumberProps {
|
|
|
68
68
|
*/
|
|
69
69
|
validateEvent?: boolean;
|
|
70
70
|
}
|
|
71
|
-
declare const _default: import("vue").DefineComponent<{
|
|
72
|
-
id: {
|
|
73
|
-
type: globalThis.PropType<string>;
|
|
74
|
-
};
|
|
75
|
-
step: {
|
|
76
|
-
type: globalThis.PropType<number>;
|
|
77
|
-
};
|
|
78
|
-
stepStrictly: {
|
|
79
|
-
type: globalThis.PropType<boolean>;
|
|
80
|
-
};
|
|
81
|
-
max: {
|
|
82
|
-
type: globalThis.PropType<number>;
|
|
83
|
-
};
|
|
84
|
-
min: {
|
|
85
|
-
type: globalThis.PropType<number>;
|
|
86
|
-
};
|
|
87
|
-
modelValue: {
|
|
88
|
-
type: globalThis.PropType<number>;
|
|
89
|
-
};
|
|
90
|
-
readonly: {
|
|
91
|
-
type: globalThis.PropType<boolean>;
|
|
92
|
-
};
|
|
93
|
-
disabled: {
|
|
94
|
-
type: globalThis.PropType<boolean>;
|
|
95
|
-
};
|
|
96
|
-
size: {
|
|
97
|
-
type: globalThis.PropType<"default" | "small" | "large">;
|
|
98
|
-
};
|
|
99
|
-
controls: {
|
|
100
|
-
type: globalThis.PropType<boolean>;
|
|
101
|
-
};
|
|
102
|
-
controlsPosition: {
|
|
103
|
-
type: globalThis.PropType<"" | "right">;
|
|
104
|
-
};
|
|
105
|
-
valueOnClear: {
|
|
106
|
-
type: globalThis.PropType<string | number | null>;
|
|
107
|
-
};
|
|
108
|
-
name: {
|
|
109
|
-
type: globalThis.PropType<string>;
|
|
110
|
-
};
|
|
111
|
-
label: {
|
|
112
|
-
type: globalThis.PropType<string>;
|
|
113
|
-
};
|
|
114
|
-
placeholder: {
|
|
115
|
-
type: globalThis.PropType<string>;
|
|
116
|
-
};
|
|
117
|
-
precision: {
|
|
118
|
-
type: globalThis.PropType<number>;
|
|
119
|
-
};
|
|
120
|
-
validateEvent: {
|
|
121
|
-
type: globalThis.PropType<boolean>;
|
|
122
|
-
};
|
|
123
|
-
}, {
|
|
71
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputNumberProps>, {
|
|
124
72
|
/** @description get focus the input component */
|
|
125
73
|
focus: () => void;
|
|
126
74
|
/** @description remove focus the input component */
|
|
127
75
|
blur: () => void;
|
|
128
76
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
+
blur: (e: FocusEvent) => void;
|
|
78
|
+
focus: (e: FocusEvent) => void;
|
|
129
79
|
"update:modelValue": (val: number | undefined) => void;
|
|
130
80
|
change: (cur: number | undefined, prev: number | undefined) => void;
|
|
131
81
|
input: (val: number | null | undefined) => void;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
|
135
|
-
id: {
|
|
136
|
-
type: globalThis.PropType<string>;
|
|
137
|
-
};
|
|
138
|
-
step: {
|
|
139
|
-
type: globalThis.PropType<number>;
|
|
140
|
-
};
|
|
141
|
-
stepStrictly: {
|
|
142
|
-
type: globalThis.PropType<boolean>;
|
|
143
|
-
};
|
|
144
|
-
max: {
|
|
145
|
-
type: globalThis.PropType<number>;
|
|
146
|
-
};
|
|
147
|
-
min: {
|
|
148
|
-
type: globalThis.PropType<number>;
|
|
149
|
-
};
|
|
150
|
-
modelValue: {
|
|
151
|
-
type: globalThis.PropType<number>;
|
|
152
|
-
};
|
|
153
|
-
readonly: {
|
|
154
|
-
type: globalThis.PropType<boolean>;
|
|
155
|
-
};
|
|
156
|
-
disabled: {
|
|
157
|
-
type: globalThis.PropType<boolean>;
|
|
158
|
-
};
|
|
159
|
-
size: {
|
|
160
|
-
type: globalThis.PropType<"default" | "small" | "large">;
|
|
161
|
-
};
|
|
162
|
-
controls: {
|
|
163
|
-
type: globalThis.PropType<boolean>;
|
|
164
|
-
};
|
|
165
|
-
controlsPosition: {
|
|
166
|
-
type: globalThis.PropType<"" | "right">;
|
|
167
|
-
};
|
|
168
|
-
valueOnClear: {
|
|
169
|
-
type: globalThis.PropType<string | number | null>;
|
|
170
|
-
};
|
|
171
|
-
name: {
|
|
172
|
-
type: globalThis.PropType<string>;
|
|
173
|
-
};
|
|
174
|
-
label: {
|
|
175
|
-
type: globalThis.PropType<string>;
|
|
176
|
-
};
|
|
177
|
-
placeholder: {
|
|
178
|
-
type: globalThis.PropType<string>;
|
|
179
|
-
};
|
|
180
|
-
precision: {
|
|
181
|
-
type: globalThis.PropType<number>;
|
|
182
|
-
};
|
|
183
|
-
validateEvent: {
|
|
184
|
-
type: globalThis.PropType<boolean>;
|
|
185
|
-
};
|
|
186
|
-
}>> & {
|
|
187
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
82
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & {
|
|
83
|
+
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
188
84
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
189
85
|
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
190
|
-
|
|
86
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
191
87
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
192
88
|
}, {}, {}>;
|
|
193
89
|
export default _default;
|
|
90
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
91
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
92
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
93
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
94
|
+
} : {
|
|
95
|
+
type: import('vue').PropType<T[K]>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@vft/utils");require("../form/index.cjs");const x=require("../icon/index.cjs")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@vft/utils");require("../form/index.cjs");const x=require("../icon/index.cjs"),G=require("../input/index.cjs"),o=require("../../constants/event.cjs");require("@vueuse/core");const I=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const b=require("lodash"),R=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const S=require("./directives.cjs"),H=require("../form/hooks/use-form-item.cjs"),O=require("../form/hooks/use-form-common-props.cjs"),d=R.useNamespace("input-number"),Y=t.defineComponent({name:d.b()}),j=t.defineComponent({...Y,props:{id:{default:void 0},step:{default:1},stepStrictly:{type:Boolean},max:{default:Number.POSITIVE_INFINITY},min:{default:Number.NEGATIVE_INFINITY},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},size:{default:"default"},controls:{type:Boolean,default:!0},controlsPosition:{default:""},valueOnClear:{default:null},name:{},label:{},placeholder:{},precision:{},validateEvent:{type:Boolean,default:!0}},emits:{[o.CHANGE_EVENT]:(n,v)=>v!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[o.INPUT_EVENT]:n=>l.isNumber(n)||b.isNil(n),[o.UPDATE_MODEL_EVENT]:n=>l.isNumber(n)||b.isNil(n)},setup(n,{expose:v,emit:U}){const s=U,m=t.ref(),r=t.reactive({currentValue:n.modelValue,userInput:null}),{formItem:c}=H.useFormItem(),P=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue<=n.min),C=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue>=n.max),B=t.computed(()=>{const e=D(n.step);return l.isUndefined(n.precision)?Math.max(D(n.modelValue),e):(e>n.precision&&I.debugWarn("InputNumber","precision should not be less than the decimal places of step"),n.precision)}),V=t.computed(()=>n.controls&&n.controlsPosition==="right"),A=O.useFormSize(),f=O.useFormDisabled(),E=t.computed(()=>{if(r.userInput!==null)return r.userInput;let e=r.currentValue;if(b.isNil(e))return"";if(l.isNumber(e)){if(Number.isNaN(e))return"";l.isUndefined(n.precision)||(e=e==null?void 0:e.toFixed(n.precision))}return e}),h=(e,i)=>{if(l.isUndefined(i)&&(i=B.value),i===0)return Math.round(e);let u=String(e);const a=u.indexOf(".");if(a===-1||!u.replace(".","").split("")[a+i])return e;const M=u.length;return u.charAt(M-1)==="5"&&(u=`${u.slice(0,Math.max(0,M-1))}6`),Number.parseFloat(Number(u).toFixed(i))},D=e=>{if(b.isNil(e))return 0;const i=e.toString(),u=i.indexOf(".");let a=0;return u!==-1&&(a=i.length-u-1),a},q=(e,i=1)=>l.isNumber(e)?h(e+n.step*i):r.currentValue,w=()=>{if(n.readonly||f.value||C.value)return;const e=Number(E.value)||0,i=q(e);N(i),s(o.INPUT_EVENT,r.currentValue)},y=()=>{if(n.readonly||f.value||P.value)return;const e=Number(E.value)||0,i=q(e,-1);N(i),s(o.INPUT_EVENT,r.currentValue)},T=(e,i)=>{let u=Number(e);if(b.isNil(e)||Number.isNaN(u))return null;if(e===""){if(n.valueOnClear===null)return null;u=l.isString(n.valueOnClear)?{min:n.min,max:n.max}[n.valueOnClear]:n.valueOnClear}return n.stepStrictly&&(u=h(Math.round(u/n.step)*n.step,n.precision)),l.isUndefined(n.precision)||(u=h(u,n.precision)),(u>n.max||u<n.min)&&(u=u>n.max?n.max:n.min,i&&s(o.UPDATE_MODEL_EVENT,u)),u},N=(e,i=!0)=>{var g;const u=r.currentValue,a=T(e);if(!i){s(o.UPDATE_MODEL_EVENT,a);return}u!==a&&(r.userInput=null,s(o.UPDATE_MODEL_EVENT,a),s(o.CHANGE_EVENT,a,u),n.validateEvent&&((g=c==null?void 0:c.validate)==null||g.call(c,"change").catch(F=>I.debugWarn(F))),r.currentValue=a)},k=e=>{r.userInput=e;const i=e===""?null:Number(e);s(o.INPUT_EVENT,i),N(i,!1)},z=e=>{const i=e!==""?Number(e):"";(l.isNumber(i)&&!Number.isNaN(i)||e==="")&&N(i),r.userInput=null},K=()=>{var e,i;(i=(e=m.value)==null?void 0:e.focus)==null||i.call(e)},L=()=>{var e,i;(i=(e=m.value)==null?void 0:e.blur)==null||i.call(e)},W=e=>{s("focus",e)},$=e=>{var i;s("blur",e),n.validateEvent&&((i=c==null?void 0:c.validate)==null||i.call(c,"blur").catch(u=>I.debugWarn(u)))};return t.watch(()=>n.modelValue,e=>{const i=T(r.userInput),u=T(e,!0);!l.isNumber(i)&&(!i||i!==u)&&(r.currentValue=u,r.userInput=null)},{immediate:!0}),t.onMounted(()=>{var i;const e=(i=m.value)==null?void 0:i.input;if(e.setAttribute("role","spinbutton"),Number.isFinite(n.max)?e.setAttribute("aria-valuemax",String(n.max)):e.removeAttribute("aria-valuemax"),Number.isFinite(n.min)?e.setAttribute("aria-valuemin",String(n.min)):e.removeAttribute("aria-valuemin"),e.setAttribute("aria-valuenow",String(r.currentValue)),e.setAttribute("aria-disabled",String(f.value)),!l.isNumber(n.modelValue)&&n.modelValue!==null){let u=Number(n.modelValue);Number.isNaN(u)&&(u=null),s(o.UPDATE_MODEL_EVENT,u)}}),t.onUpdated(()=>{var i;const e=(i=m.value)==null?void 0:i.input;e==null||e.setAttribute("aria-valuenow",`${r.currentValue}`)}),v({focus:K,blur:L}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(d).b(),t.unref(d).m(t.unref(A)),t.unref(d).is("disabled",t.unref(f)),t.unref(d).is("without-controls",!e.controls),t.unref(d).is("controls-right",V.value)]),onDragstart:i[1]||(i[1]=t.withModifiers(()=>{},["prevent"]))},[e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,role:"button",class:t.normalizeClass([t.unref(d).e("decrease"),t.unref(d).is("disabled",P.value)]),onKeydown:t.withKeys(y,["enter"])},[t.createVNode(t.unref(x.VftIcon),{icon:V.value?"icon-arrow-down":"icon-minus"},null,8,["icon"])],34)),[[t.unref(S.vRepeatClick),y]]):t.createCommentVNode("",!0),e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:1,role:"button",class:t.normalizeClass([t.unref(d).e("increase"),t.unref(d).is("disabled",C.value)]),onKeydown:t.withKeys(w,["enter"])},[t.createVNode(t.unref(x.VftIcon),{icon:V.value?"icon-arrow-up":"icon-plus"},null,8,["icon"])],34)),[[t.unref(S.vRepeatClick),w]]):t.createCommentVNode("",!0),t.createVNode(t.unref(G.VftInput),{id:e.id,ref_key:"input",ref:m,type:"number",step:e.step,"model-value":E.value,placeholder:e.placeholder,readonly:e.readonly,disabled:t.unref(f),size:t.unref(A),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:i[0]||(i[0]=t.withModifiers(()=>{},["prevent"])),onKeydown:[t.withKeys(t.withModifiers(w,["prevent"]),["up"]),t.withKeys(t.withModifiers(y,["prevent"]),["down"])],onBlur:$,onFocus:W,onInput:k,onChange:z},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});exports.default=j;
|