vft 0.0.231 → 0.0.233
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/attributes.json +1 -1
- package/es/components/affix/affix.vue.d.ts +4 -6
- package/es/components/affix/index.d.ts +3 -3
- package/es/components/alert/alert.vue.d.ts +5 -7
- package/es/components/alert/index.d.ts +3 -3
- package/es/components/autocomplete/autocomplete.vue.d.ts +42 -44
- package/es/components/autocomplete/index.d.ts +108 -108
- package/es/components/avatar/avatar.vue.d.ts +4 -6
- package/es/components/avatar/index.d.ts +7 -7
- package/es/components/backtop/backtop.vue.d.ts +4 -6
- package/es/components/backtop/index.d.ts +7 -7
- package/es/components/button/button-group.vue.d.ts +2 -4
- package/es/components/button/button.vue.d.ts +6 -8
- package/es/components/button/index.d.ts +20 -20
- package/es/components/card/card.vue.d.ts +2 -4
- package/es/components/card/index.d.ts +3 -3
- package/es/components/carousel/carousel-item.vue.d.ts +2 -4
- package/es/components/carousel/carousel.vue.d.ts +9 -11
- package/es/components/carousel/index.d.ts +24 -24
- package/es/components/carousel/use-carousel.d.ts +1 -1
- package/es/components/check-tag/check-tag.vue.d.ts +4 -6
- package/es/components/check-tag/index.d.ts +3 -3
- package/es/components/checkbox/checkbox-button.vue.d.ts +4 -6
- package/es/components/checkbox/checkbox-group.vue.d.ts +4 -6
- package/es/components/checkbox/checkbox.vue.d.ts +4 -6
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-model.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-status.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +15 -15
- package/es/components/clamp/clamp.vue.d.ts +10 -12
- package/es/components/clamp/index.d.ts +3 -3
- package/es/components/clamp-tooltip/index.d.ts +2 -2
- package/es/components/col/col.vue.d.ts +4 -6
- package/es/components/col/index.d.ts +3 -3
- package/es/components/collapse-transition/index.d.ts +20 -5
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +2 -4
- package/es/components/collection/collection-item.vue.d.ts +2 -4
- package/es/components/collection/collection.vue.d.ts +2 -4
- package/es/components/color-picker/components/hue-slider.vue.d.ts +6 -6
- package/es/components/color-picker/components/predefine.vue.d.ts +6 -6
- package/es/components/color-picker/components/sv-panel.vue.d.ts +6 -6
- package/es/components/color-picker/composables/use-alpha-slider.d.ts +1 -1
- package/es/components/config-provider/config-provider.vue.d.ts +2 -4
- package/es/components/config-provider/hooks/use-global-config.d.ts +6 -6
- package/es/components/config-provider/hooks/use-global-config.js +4 -4
- package/es/components/config-provider/index.d.ts +11 -11
- package/es/components/container/aside.vue.d.ts +2 -4
- package/es/components/container/container.vue.d.ts +2 -4
- package/es/components/container/footer.vue.d.ts +2 -4
- package/es/components/container/header.vue.d.ts +2 -4
- package/es/components/container/index.d.ts +27 -27
- package/es/components/container/main.vue.d.ts +2 -4
- package/es/components/date-picker/composables/use-range-picker.d.ts +22 -22
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +10 -10
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +10 -10
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +14 -16
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +8 -10
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -8
- package/es/components/date-picker/date-picker.d.ts +59 -59
- package/es/components/date-picker/index.d.ts +118 -118
- package/es/components/date-picker/panel-utils.d.ts +29 -29
- package/es/components/descriptions/description-item.vue.d.ts +2 -4
- package/es/components/descriptions/description.vue.d.ts +2 -4
- package/es/components/descriptions/index.d.ts +9 -9
- package/es/components/dialog/dialog-content.vue.d.ts +6 -8
- package/es/components/dialog/dialog.vue.d.ts +11 -13
- package/es/components/dialog/index.d.ts +7 -7
- package/es/components/divider/divider.vue.d.ts +2 -4
- package/es/components/divider/index.d.ts +3 -3
- package/es/components/drawer/drawer.vue.d.ts +11 -13
- package/es/components/drawer/index.d.ts +7 -7
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +7 -9
- package/es/components/dropdown/index.d.ts +24 -24
- package/es/components/empty/empty.vue.d.ts +2 -4
- package/es/components/empty/index.d.ts +3 -3
- package/es/components/focus-trap/focus-trap.vue.d.ts +2 -2
- package/es/components/focus-trap/utils.d.ts +1 -1
- package/es/components/footer-layout/footer-layout.vue.d.ts +2 -4
- package/es/components/footer-layout/index.d.ts +3 -3
- package/es/components/form/form-item.vue.d.ts +11 -13
- package/es/components/form/form.vue.d.ts +8 -10
- package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/form/hooks/use-form-item.d.ts +3 -3
- package/es/components/form/index.d.ts +27 -27
- package/es/components/full-screen/index.d.ts +4 -4
- package/es/components/header-layout/header-layout.vue.d.ts +2 -4
- package/es/components/header-layout/index.d.ts +7 -7
- package/es/components/horizontal-menu/index.d.ts +14 -14
- package/es/components/icon-text/index.d.ts +4 -4
- package/es/components/iframe-layout/index.d.ts +2 -2
- package/es/components/image/image.vue.d.ts +6 -8
- package/es/components/image/index.d.ts +3 -3
- package/es/components/image-viewer/image-viewer.vue.d.ts +4 -6
- package/es/components/image-viewer/index.d.ts +3 -3
- package/es/components/infinite-scroll/index.d.ts +14 -4
- package/es/components/input/index.d.ts +29 -29
- package/es/components/input/input.vue.d.ts +9 -11
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/link/index.d.ts +11 -11
- package/es/components/link/link.vue.d.ts +4 -6
- package/es/components/loading/index.d.ts +4 -1
- package/es/components/md-code-demo/index.d.ts +5 -3
- package/es/components/md-code-demo/md-code-demo.d.ts +2 -2
- package/es/components/md-code-tabs/index.d.ts +5 -3
- package/es/components/md-container/index.d.ts +3 -3
- package/es/components/md-container/md-container.vue.d.ts +2 -4
- package/es/components/md-container/md-container.vue2.js +35 -35
- package/es/components/md-tabs/index.d.ts +3 -1
- package/es/components/menu/index.d.ts +49 -49
- package/es/components/menu/menu-item-group.vue.d.ts +2 -4
- package/es/components/menu/menu-item.vue.d.ts +5 -7
- package/es/components/menu/menu.vue.d.ts +5 -5
- package/es/components/menu/types.d.ts +1 -0
- package/es/components/message/message.vue.d.ts +4 -6
- package/es/components/modal/index.d.ts +38 -38
- package/es/components/modal/modal-footer-action.vue.d.ts +2 -4
- package/es/components/modal/modal.vue.d.ts +5 -7
- package/es/components/page-wrapper/index.d.ts +3 -3
- package/es/components/page-wrapper/page-wrapper.vue.d.ts +2 -4
- package/es/components/pagination/index.d.ts +4 -4
- package/es/components/popconfirm/index.d.ts +21 -21
- package/es/components/popconfirm/popconfirm.vue.d.ts +4 -6
- package/es/components/popover/directive.d.ts +1 -1
- package/es/components/popover/index.d.ts +7 -7
- package/es/components/popover/popover.vue.d.ts +5 -7
- package/es/components/popper/composables/use-content-dom.d.ts +1 -1
- package/es/components/popper/composables/use-content.d.ts +10 -10
- package/es/components/popper/content.vue.d.ts +4 -6
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/popper/popper.vue.d.ts +4 -6
- package/es/components/popper/trigger.vue.d.ts +4 -6
- package/es/components/progress/index.d.ts +3 -3
- package/es/components/progress/progress.vue.d.ts +2 -4
- package/es/components/qrcode/index.d.ts +7 -3
- package/es/components/radio/index.d.ts +15 -15
- package/es/components/radio/radio-button.vue.d.ts +4 -6
- package/es/components/radio/radio-group.vue.d.ts +4 -6
- package/es/components/radio/radio.vue.d.ts +4 -6
- package/es/components/result/index.d.ts +2 -2
- package/es/components/row/index.d.ts +3 -3
- package/es/components/row/row.vue.d.ts +2 -4
- package/es/components/scrollbar/index.d.ts +6 -6
- package/es/components/scrollbar/scrollbar.vue.d.ts +4 -6
- package/es/components/scrollbar/util.d.ts +1 -1
- package/es/components/search/index.d.ts +19 -19
- package/es/components/search/search.vue.d.ts +8 -10
- package/es/components/select/defaults.d.ts +4 -5
- package/es/components/select/group-item.vue.d.ts +6 -6
- package/es/components/select/index.d.ts +992 -58
- package/es/components/select/option-item.vue.d.ts +6 -6
- package/es/components/select/select.vue.d.ts +52 -52
- package/es/components/select/useSelect.d.ts +44 -44
- package/es/components/side-menu/index.d.ts +7 -7
- package/es/components/side-menu/side-menu.vue.d.ts +3 -3
- package/es/components/skeleton/index.d.ts +3 -3
- package/es/components/skeleton/skeleton.vue.d.ts +5 -7
- package/es/components/slider/composables/use-slide.d.ts +1 -1
- package/es/components/slider/composables/use-slider-button.d.ts +1 -1
- package/es/components/slider/composables/use-watch.d.ts +1 -1
- package/es/components/slider/index.d.ts +4 -4
- package/es/components/slider/slider.vue.d.ts +6 -6
- package/es/components/space/index.d.ts +4 -10
- package/es/components/space/space.d.ts +5 -13
- package/es/components/space/use-space.d.ts +1 -1
- package/es/components/steps/index.d.ts +26 -26
- package/es/components/steps/item.vue.d.ts +2 -4
- package/es/components/steps/steps.vue.d.ts +7 -9
- package/es/components/super-form/index.d.ts +31 -313
- package/es/components/super-form/super-form-action.vue.d.ts +2 -4
- package/es/components/super-form/super-form.vue.d.ts +8 -20
- package/es/components/switch/index.d.ts +8 -8
- package/es/components/switch/switch.vue.d.ts +4 -4
- package/es/components/table/field.d.ts +1 -1
- package/es/components/table/index.d.ts +50 -50
- package/es/components/table/table.vue.d.ts +13 -15
- package/es/components/table/use/use-data-source.d.ts +2 -2
- package/es/components/tabs/index.d.ts +26 -18
- package/es/components/tabs/tab-pane.vue.d.ts +2 -4
- package/es/components/tabs/tabs.vue.d.ts +12 -4
- package/es/components/time-picker/common/picker.vue.d.ts +21 -23
- package/es/components/time-picker/composables/use-time-picker.d.ts +20 -20
- package/es/components/time-picker/index.d.ts +110 -110
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +5 -5
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +5 -5
- package/es/components/time-picker/time-picker.d.ts +55 -55
- package/es/components/time-select/time-select.vue.d.ts +20 -20
- package/es/components/timeline/index.d.ts +14 -14
- package/es/components/timeline/timeline-item.vue.d.ts +2 -4
- package/es/components/tooltip/content.vue.d.ts +4 -6
- package/es/components/tooltip/index.d.ts +16 -16
- package/es/components/tooltip/tooltip.vue.d.ts +8 -10
- package/es/components/tooltip/trigger.vue.d.ts +4 -6
- package/es/components/tooltip/utils.d.ts +2 -2
- package/es/components/tree/index.d.ts +599 -54
- package/es/components/tree/model/util.d.ts +1 -1
- package/es/components/tree/tree-node.vue.d.ts +6 -6
- package/es/components/tree/tree.vue.d.ts +19 -21
- package/es/components/upload/index.d.ts +10 -10
- package/es/components/upload/upload-content.vue.d.ts +5 -7
- package/es/components/upload/upload-dragger.vue.d.ts +4 -6
- package/es/components/upload/upload-list.vue.d.ts +8 -10
- package/es/components/upload/upload.vue.d.ts +10 -12
- package/es/components/upload/use-handlers.d.ts +2 -3
- package/es/components/virtual-list/builders/build-list.d.ts +44 -44
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +6 -6
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +13 -13
- package/es/components/virtual-list/components/fixed-size-list.d.ts +9 -9
- package/es/components/virtual-list/utils.d.ts +2 -2
- package/es/defaults.d.ts +1 -1
- package/es/hooks/use-popper/index.d.ts +10 -10
- package/es/hooks/use-popper-container/index.d.ts +4 -1
- package/es/hooks/use-popper-container/index.js +16 -15
- package/es/hooks/use-same-target/index.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/event.d.ts +1 -1
- package/es/utils/helper.d.ts +1 -1
- package/es/utils/ns-cover.d.ts +2 -2
- package/es/utils/ns-cover.js +21 -17
- package/es/utils/typescript.d.ts +1 -1
- package/es/utils/vue/install.d.ts +1 -1
- package/es/utils/vue/props/runtime.d.ts +4 -4
- package/es/utils/vue/vnode.d.ts +1 -1
- package/lib/components/affix/affix.vue.d.ts +4 -6
- package/lib/components/affix/index.d.ts +3 -3
- package/lib/components/alert/alert.vue.d.ts +5 -7
- package/lib/components/alert/index.d.ts +3 -3
- package/lib/components/autocomplete/autocomplete.vue.d.ts +42 -44
- package/lib/components/autocomplete/index.d.ts +108 -108
- package/lib/components/avatar/avatar.vue.d.ts +4 -6
- package/lib/components/avatar/index.d.ts +7 -7
- package/lib/components/backtop/backtop.vue.d.ts +4 -6
- package/lib/components/backtop/index.d.ts +7 -7
- package/lib/components/button/button-group.vue.d.ts +2 -4
- package/lib/components/button/button.vue.d.ts +6 -8
- package/lib/components/button/index.d.ts +20 -20
- package/lib/components/card/card.vue.d.ts +2 -4
- package/lib/components/card/index.d.ts +3 -3
- package/lib/components/carousel/carousel-item.vue.d.ts +2 -4
- package/lib/components/carousel/carousel.vue.d.ts +9 -11
- package/lib/components/carousel/index.d.ts +24 -24
- package/lib/components/carousel/use-carousel.d.ts +1 -1
- package/lib/components/check-tag/check-tag.vue.d.ts +4 -6
- package/lib/components/check-tag/index.d.ts +3 -3
- package/lib/components/checkbox/checkbox-button.vue.d.ts +4 -6
- package/lib/components/checkbox/checkbox-group.vue.d.ts +4 -6
- package/lib/components/checkbox/checkbox.vue.d.ts +4 -6
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-model.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-status.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +15 -15
- package/lib/components/clamp/clamp.vue.d.ts +10 -12
- package/lib/components/clamp/index.d.ts +3 -3
- package/lib/components/clamp-tooltip/index.d.ts +2 -2
- package/lib/components/col/col.vue.d.ts +4 -6
- package/lib/components/col/index.d.ts +3 -3
- package/lib/components/collapse-transition/index.d.ts +20 -5
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +2 -4
- package/lib/components/collection/collection-item.vue.d.ts +2 -4
- package/lib/components/collection/collection.vue.d.ts +2 -4
- package/lib/components/color-picker/components/hue-slider.vue.d.ts +6 -6
- package/lib/components/color-picker/components/predefine.vue.d.ts +6 -6
- package/lib/components/color-picker/components/sv-panel.vue.d.ts +6 -6
- package/lib/components/color-picker/composables/use-alpha-slider.d.ts +1 -1
- package/lib/components/config-provider/config-provider.vue.d.ts +2 -4
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/hooks/use-global-config.d.ts +6 -6
- package/lib/components/config-provider/index.d.ts +11 -11
- package/lib/components/container/aside.vue.d.ts +2 -4
- package/lib/components/container/container.vue.d.ts +2 -4
- package/lib/components/container/footer.vue.d.ts +2 -4
- package/lib/components/container/header.vue.d.ts +2 -4
- package/lib/components/container/index.d.ts +27 -27
- package/lib/components/container/main.vue.d.ts +2 -4
- package/lib/components/date-picker/composables/use-range-picker.d.ts +22 -22
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +10 -10
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +10 -10
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +14 -16
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +8 -10
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -8
- package/lib/components/date-picker/date-picker.d.ts +59 -59
- package/lib/components/date-picker/index.d.ts +118 -118
- package/lib/components/date-picker/panel-utils.d.ts +29 -29
- package/lib/components/descriptions/description-item.vue.d.ts +2 -4
- package/lib/components/descriptions/description.vue.d.ts +2 -4
- package/lib/components/descriptions/index.d.ts +9 -9
- package/lib/components/dialog/dialog-content.vue.d.ts +6 -8
- package/lib/components/dialog/dialog.vue.d.ts +11 -13
- package/lib/components/dialog/index.d.ts +7 -7
- package/lib/components/divider/divider.vue.d.ts +2 -4
- package/lib/components/divider/index.d.ts +3 -3
- package/lib/components/drawer/drawer.vue.d.ts +11 -13
- package/lib/components/drawer/index.d.ts +7 -7
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +6 -6
- package/lib/components/dropdown/dropdown.vue.d.ts +7 -9
- package/lib/components/dropdown/index.d.ts +24 -24
- package/lib/components/empty/empty.vue.d.ts +2 -4
- package/lib/components/empty/index.d.ts +3 -3
- package/lib/components/focus-trap/focus-trap.vue.d.ts +2 -2
- package/lib/components/focus-trap/utils.d.ts +1 -1
- package/lib/components/footer-layout/footer-layout.vue.d.ts +2 -4
- package/lib/components/footer-layout/index.d.ts +3 -3
- package/lib/components/form/form-item.vue.d.ts +11 -13
- package/lib/components/form/form.vue.d.ts +8 -10
- package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/form/hooks/use-form-item.d.ts +3 -3
- package/lib/components/form/index.d.ts +27 -27
- package/lib/components/full-screen/index.d.ts +4 -4
- package/lib/components/header-layout/header-layout.vue.d.ts +2 -4
- package/lib/components/header-layout/index.d.ts +7 -7
- package/lib/components/horizontal-menu/index.d.ts +14 -14
- package/lib/components/icon-text/index.d.ts +4 -4
- package/lib/components/iframe-layout/index.d.ts +2 -2
- package/lib/components/image/image.vue.d.ts +6 -8
- package/lib/components/image/index.d.ts +3 -3
- package/lib/components/image-viewer/image-viewer.vue.d.ts +4 -6
- package/lib/components/image-viewer/index.d.ts +3 -3
- package/lib/components/infinite-scroll/index.d.ts +14 -4
- package/lib/components/input/index.d.ts +29 -29
- package/lib/components/input/input.vue.d.ts +9 -11
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/index.d.ts +11 -11
- package/lib/components/link/link.vue.d.ts +4 -6
- package/lib/components/loading/index.d.ts +4 -1
- package/lib/components/md-code-demo/index.d.ts +5 -3
- package/lib/components/md-code-demo/md-code-demo.d.ts +2 -2
- package/lib/components/md-code-tabs/index.d.ts +5 -3
- package/lib/components/md-container/index.d.ts +3 -3
- package/lib/components/md-container/md-container.vue.d.ts +2 -4
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-tabs/index.d.ts +3 -1
- package/lib/components/menu/index.d.ts +49 -49
- package/lib/components/menu/menu-item-group.vue.d.ts +2 -4
- package/lib/components/menu/menu-item.vue.d.ts +5 -7
- package/lib/components/menu/menu.vue.d.ts +5 -5
- package/lib/components/menu/types.d.ts +1 -0
- package/lib/components/message/message.vue.d.ts +4 -6
- package/lib/components/modal/index.d.ts +38 -38
- package/lib/components/modal/modal-footer-action.vue.d.ts +2 -4
- package/lib/components/modal/modal.vue.d.ts +5 -7
- package/lib/components/page-wrapper/index.d.ts +3 -3
- package/lib/components/page-wrapper/page-wrapper.vue.d.ts +2 -4
- package/lib/components/pagination/index.d.ts +4 -4
- package/lib/components/popconfirm/index.d.ts +21 -21
- package/lib/components/popconfirm/popconfirm.vue.d.ts +4 -6
- package/lib/components/popover/directive.d.ts +1 -1
- package/lib/components/popover/index.d.ts +7 -7
- package/lib/components/popover/popover.vue.d.ts +5 -7
- package/lib/components/popper/composables/use-content-dom.d.ts +1 -1
- package/lib/components/popper/composables/use-content.d.ts +10 -10
- package/lib/components/popper/content.vue.d.ts +4 -6
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/popper/popper.vue.d.ts +4 -6
- package/lib/components/popper/trigger.vue.d.ts +4 -6
- package/lib/components/progress/index.d.ts +3 -3
- package/lib/components/progress/progress.vue.d.ts +2 -4
- package/lib/components/qrcode/index.d.ts +7 -3
- package/lib/components/radio/index.d.ts +15 -15
- package/lib/components/radio/radio-button.vue.d.ts +4 -6
- package/lib/components/radio/radio-group.vue.d.ts +4 -6
- package/lib/components/radio/radio.vue.d.ts +4 -6
- package/lib/components/result/index.d.ts +2 -2
- package/lib/components/row/index.d.ts +3 -3
- package/lib/components/row/row.vue.d.ts +2 -4
- package/lib/components/scrollbar/index.d.ts +6 -6
- package/lib/components/scrollbar/scrollbar.vue.d.ts +4 -6
- package/lib/components/scrollbar/util.d.ts +1 -1
- package/lib/components/search/index.d.ts +19 -19
- package/lib/components/search/search.vue.d.ts +8 -10
- package/lib/components/select/defaults.d.ts +4 -5
- package/lib/components/select/group-item.vue.d.ts +6 -6
- package/lib/components/select/index.d.ts +992 -58
- package/lib/components/select/option-item.vue.d.ts +6 -6
- package/lib/components/select/select.vue.d.ts +52 -52
- package/lib/components/select/useSelect.d.ts +44 -44
- package/lib/components/side-menu/index.d.ts +7 -7
- package/lib/components/side-menu/side-menu.vue.d.ts +3 -3
- package/lib/components/skeleton/index.d.ts +3 -3
- package/lib/components/skeleton/skeleton.vue.d.ts +5 -7
- package/lib/components/slider/composables/use-slide.d.ts +1 -1
- package/lib/components/slider/composables/use-slider-button.d.ts +1 -1
- package/lib/components/slider/composables/use-watch.d.ts +1 -1
- package/lib/components/slider/index.d.ts +4 -4
- package/lib/components/slider/slider.vue.d.ts +6 -6
- package/lib/components/space/index.d.ts +4 -10
- package/lib/components/space/space.d.ts +5 -13
- package/lib/components/space/use-space.d.ts +1 -1
- package/lib/components/steps/index.d.ts +26 -26
- package/lib/components/steps/item.vue.d.ts +2 -4
- package/lib/components/steps/steps.vue.d.ts +7 -9
- package/lib/components/super-form/index.d.ts +31 -313
- package/lib/components/super-form/super-form-action.vue.d.ts +2 -4
- package/lib/components/super-form/super-form.vue.d.ts +8 -20
- package/lib/components/switch/index.d.ts +8 -8
- package/lib/components/switch/switch.vue.d.ts +4 -4
- package/lib/components/table/field.d.ts +1 -1
- package/lib/components/table/index.d.ts +50 -50
- package/lib/components/table/table.vue.d.ts +13 -15
- package/lib/components/table/use/use-data-source.d.ts +2 -2
- package/lib/components/tabs/index.d.ts +26 -18
- package/lib/components/tabs/tab-pane.vue.d.ts +2 -4
- package/lib/components/tabs/tabs.vue.d.ts +12 -4
- package/lib/components/time-picker/common/picker.vue.d.ts +21 -23
- package/lib/components/time-picker/composables/use-time-picker.d.ts +20 -20
- package/lib/components/time-picker/index.d.ts +110 -110
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +5 -5
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +5 -5
- package/lib/components/time-picker/time-picker.d.ts +55 -55
- package/lib/components/time-select/time-select.vue.d.ts +20 -20
- package/lib/components/timeline/index.d.ts +14 -14
- package/lib/components/timeline/timeline-item.vue.d.ts +2 -4
- package/lib/components/tooltip/content.vue.d.ts +4 -6
- package/lib/components/tooltip/index.d.ts +16 -16
- package/lib/components/tooltip/tooltip.vue.d.ts +8 -10
- package/lib/components/tooltip/trigger.vue.d.ts +4 -6
- package/lib/components/tooltip/utils.d.ts +2 -2
- package/lib/components/tree/index.d.ts +599 -54
- package/lib/components/tree/model/util.d.ts +1 -1
- package/lib/components/tree/tree-node.vue.d.ts +6 -6
- package/lib/components/tree/tree.vue.d.ts +19 -21
- package/lib/components/upload/index.d.ts +10 -10
- package/lib/components/upload/upload-content.vue.d.ts +5 -7
- package/lib/components/upload/upload-dragger.vue.d.ts +4 -6
- package/lib/components/upload/upload-list.vue.d.ts +8 -10
- package/lib/components/upload/upload.vue.d.ts +10 -12
- package/lib/components/upload/use-handlers.d.ts +2 -3
- package/lib/components/virtual-list/builders/build-list.d.ts +44 -44
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +6 -6
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +13 -13
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +9 -9
- package/lib/components/virtual-list/utils.d.ts +2 -2
- package/lib/defaults.d.ts +1 -1
- package/lib/hooks/use-popper/index.d.ts +10 -10
- package/lib/hooks/use-popper-container/index.cjs +1 -1
- package/lib/hooks/use-popper-container/index.d.ts +4 -1
- package/lib/hooks/use-same-target/index.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/event.d.ts +1 -1
- package/lib/utils/helper.d.ts +1 -1
- package/lib/utils/ns-cover.cjs +1 -1
- package/lib/utils/ns-cover.d.ts +2 -2
- package/lib/utils/typescript.d.ts +1 -1
- package/lib/utils/vue/install.d.ts +1 -1
- package/lib/utils/vue/props/runtime.d.ts +4 -4
- package/lib/utils/vue/vnode.d.ts +1 -1
- package/package.json +5 -5
- package/tags.json +1 -1
- package/web-types.json +1 -1
- package/es/components/context-menu/types.d.ts +0 -23
- package/lib/components/context-menu/types.d.ts +0 -23
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
menus: {
|
|
3
|
-
type: import("vue").PropType<(Pick<import("vue-router").
|
|
4
|
-
children?: import("
|
|
3
|
+
type: import("vue").PropType<(Pick<import("vue-router").RouteLocationNormalizedGeneric, "meta" | "path"> & {
|
|
4
|
+
children?: import("..").MenuType[] | undefined;
|
|
5
5
|
title: string;
|
|
6
|
-
icon?: string;
|
|
6
|
+
icon?: string | undefined;
|
|
7
7
|
} & Record<string, any> & {
|
|
8
|
-
type?: import("./constants").MenuTypeEnum;
|
|
8
|
+
type?: import("./constants").MenuTypeEnum | undefined;
|
|
9
9
|
})[]>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
attrMapping: {
|
|
13
|
-
type: import("vue").PropType<import("
|
|
13
|
+
type: import("vue").PropType<import("..").MenuAttrMapping>;
|
|
14
14
|
};
|
|
15
15
|
openDisabled: {
|
|
16
16
|
type: import("vue").PropType<boolean>;
|
|
@@ -19,7 +19,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
20
20
|
};
|
|
21
21
|
subMenuCfg: {
|
|
22
|
-
type: import("vue").PropType<Partial<import("
|
|
22
|
+
type: import("vue").PropType<Partial<import("..").SubMenuProps>>;
|
|
23
23
|
};
|
|
24
24
|
useRouterJump: {
|
|
25
25
|
type: import("vue").PropType<boolean>;
|
|
@@ -34,7 +34,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
34
34
|
type: import("vue").PropType<(string | number)[]>;
|
|
35
35
|
};
|
|
36
36
|
menuOptions: {
|
|
37
|
-
type: import("vue").PropType<Partial<import("
|
|
37
|
+
type: import("vue").PropType<Partial<import("..").MenuProps>>;
|
|
38
38
|
};
|
|
39
39
|
}, {
|
|
40
40
|
isInSubMenu: import("vue").ComputedRef<any>;
|
|
@@ -48,17 +48,17 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
48
48
|
"sub-menu-click": (val: any) => void;
|
|
49
49
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
menus: {
|
|
51
|
-
type: import("vue").PropType<(Pick<import("vue-router").
|
|
52
|
-
children?: import("
|
|
51
|
+
type: import("vue").PropType<(Pick<import("vue-router").RouteLocationNormalizedGeneric, "meta" | "path"> & {
|
|
52
|
+
children?: import("..").MenuType[] | undefined;
|
|
53
53
|
title: string;
|
|
54
|
-
icon?: string;
|
|
54
|
+
icon?: string | undefined;
|
|
55
55
|
} & Record<string, any> & {
|
|
56
|
-
type?: import("./constants").MenuTypeEnum;
|
|
56
|
+
type?: import("./constants").MenuTypeEnum | undefined;
|
|
57
57
|
})[]>;
|
|
58
58
|
required: true;
|
|
59
59
|
};
|
|
60
60
|
attrMapping: {
|
|
61
|
-
type: import("vue").PropType<import("
|
|
61
|
+
type: import("vue").PropType<import("..").MenuAttrMapping>;
|
|
62
62
|
};
|
|
63
63
|
openDisabled: {
|
|
64
64
|
type: import("vue").PropType<boolean>;
|
|
@@ -67,7 +67,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
67
67
|
type: import("vue").PropType<boolean>;
|
|
68
68
|
};
|
|
69
69
|
subMenuCfg: {
|
|
70
|
-
type: import("vue").PropType<Partial<import("
|
|
70
|
+
type: import("vue").PropType<Partial<import("..").SubMenuProps>>;
|
|
71
71
|
};
|
|
72
72
|
useRouterJump: {
|
|
73
73
|
type: import("vue").PropType<boolean>;
|
|
@@ -82,7 +82,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
82
82
|
type: import("vue").PropType<(string | number)[]>;
|
|
83
83
|
};
|
|
84
84
|
menuOptions: {
|
|
85
|
-
type: import("vue").PropType<Partial<import("
|
|
85
|
+
type: import("vue").PropType<Partial<import("..").MenuProps>>;
|
|
86
86
|
};
|
|
87
87
|
}>> & {
|
|
88
88
|
onSelect?: ((val: {
|
|
@@ -4,7 +4,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
icon: {
|
|
7
|
-
type: import("vue").PropType<string | import("
|
|
7
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
8
8
|
};
|
|
9
9
|
color: {
|
|
10
10
|
type: import("vue").PropType<string>;
|
|
@@ -37,7 +37,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
37
37
|
type: import("vue").PropType<boolean>;
|
|
38
38
|
};
|
|
39
39
|
clampTooltipCfg: {
|
|
40
|
-
type: import("vue").PropType<import("
|
|
40
|
+
type: import("vue").PropType<import("..").ClampTooltipProps>;
|
|
41
41
|
};
|
|
42
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
text: {
|
|
@@ -45,7 +45,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
45
45
|
required: true;
|
|
46
46
|
};
|
|
47
47
|
icon: {
|
|
48
|
-
type: import("vue").PropType<string | import("
|
|
48
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
49
49
|
};
|
|
50
50
|
color: {
|
|
51
51
|
type: import("vue").PropType<string>;
|
|
@@ -78,7 +78,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
|
|
|
78
78
|
type: import("vue").PropType<boolean>;
|
|
79
79
|
};
|
|
80
80
|
clampTooltipCfg: {
|
|
81
|
-
type: import("vue").PropType<import("
|
|
81
|
+
type: import("vue").PropType<import("..").ClampTooltipProps>;
|
|
82
82
|
};
|
|
83
83
|
}>>, {}, {}>> & Record<string, any>;
|
|
84
84
|
export default VftIconText;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const VftIframeLayout: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
iframePages: {
|
|
3
|
-
type: import("vue").PropType<import("vue-router").
|
|
3
|
+
type: import("vue").PropType<import("vue-router").RouteLocationNormalizedGeneric[]>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
iframePages: {
|
|
8
|
-
type: import("vue").PropType<import("vue-router").
|
|
8
|
+
type: import("vue").PropType<import("vue-router").RouteLocationNormalizedGeneric[]>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
}>>, {}, {}>> & Record<string, any>;
|
|
@@ -13,12 +13,7 @@ export interface ImageProps {
|
|
|
13
13
|
infinite?: boolean;
|
|
14
14
|
closeOnPressEscape?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare
|
|
17
|
-
placeholder?(_: {}): any;
|
|
18
|
-
error?(_: {}): any;
|
|
19
|
-
viewer?(_: {}): any;
|
|
20
|
-
};
|
|
21
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
17
|
switch: (...args: any[]) => void;
|
|
23
18
|
close: (...args: any[]) => void;
|
|
24
19
|
error: (...args: any[]) => void;
|
|
@@ -30,8 +25,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
|
|
|
30
25
|
onLoad?: ((...args: any[]) => any) | undefined;
|
|
31
26
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
32
27
|
onSwitch?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
}, {}, {}
|
|
34
|
-
|
|
28
|
+
}, {}, {}>, {
|
|
29
|
+
placeholder?(_: {}): any;
|
|
30
|
+
error?(_: {}): any;
|
|
31
|
+
viewer?(_: {}): any;
|
|
32
|
+
}>;
|
|
35
33
|
export default _default;
|
|
36
34
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
35
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -142,9 +142,9 @@ export declare const VftImage: import("vft/es/utils").SFCWithInstall<{
|
|
|
142
142
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
143
143
|
onSwitch?: ((...args: any[]) => any) | undefined;
|
|
144
144
|
}, {}, {}, {}, {}, {}>;
|
|
145
|
-
__isFragment?:
|
|
146
|
-
__isTeleport?:
|
|
147
|
-
__isSuspense?:
|
|
145
|
+
__isFragment?: undefined;
|
|
146
|
+
__isTeleport?: undefined;
|
|
147
|
+
__isSuspense?: undefined;
|
|
148
148
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
149
149
|
hideOnClickModal: {
|
|
150
150
|
type: import("vue").PropType<boolean>;
|
|
@@ -9,10 +9,7 @@ export interface ImageViewerProps {
|
|
|
9
9
|
zoomRate?: number;
|
|
10
10
|
}
|
|
11
11
|
declare function setActiveItem(index: number): void;
|
|
12
|
-
declare
|
|
13
|
-
default?(_: {}): any;
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageViewerProps>, {
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageViewerProps>, {
|
|
16
13
|
/** @description manually switch image */
|
|
17
14
|
setActiveItem: typeof setActiveItem;
|
|
18
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -21,8 +18,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
|
|
|
21
18
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ImageViewerProps>>> & {
|
|
22
19
|
onClose?: (() => any) | undefined;
|
|
23
20
|
onSwitch?: ((index: number) => any) | undefined;
|
|
24
|
-
}, {}, {}
|
|
25
|
-
|
|
21
|
+
}, {}, {}>, {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
}>;
|
|
26
24
|
export default _default;
|
|
27
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
26
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -98,9 +98,9 @@ export declare const VftImageViewer: import("vft/es/utils").SFCWithInstall<{
|
|
|
98
98
|
}, {
|
|
99
99
|
setActiveItem: (index: number) => void;
|
|
100
100
|
}, {}, {}, {}, {}>;
|
|
101
|
-
__isFragment?:
|
|
102
|
-
__isTeleport?:
|
|
103
|
-
__isSuspense?:
|
|
101
|
+
__isFragment?: undefined;
|
|
102
|
+
__isTeleport?: undefined;
|
|
103
|
+
__isSuspense?: undefined;
|
|
104
104
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
105
105
|
urlList: {
|
|
106
106
|
type: import("vue").PropType<string[]>;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
import InfiniteScroll from './infinite-scroll';
|
|
2
1
|
import type { SFCWithInstall } from 'vft/es/utils';
|
|
3
|
-
declare const _InfiniteScroll: SFCWithInstall<
|
|
2
|
+
declare const _InfiniteScroll: SFCWithInstall<import("vue").ObjectDirective<HTMLElement & {
|
|
3
|
+
VftInfiniteScroll: {
|
|
4
|
+
container: Window | HTMLElement;
|
|
5
|
+
containerEl: HTMLElement;
|
|
6
|
+
instance: import("vue").ComponentPublicInstance;
|
|
7
|
+
delay: number;
|
|
8
|
+
lastScrollTop: number;
|
|
9
|
+
cb: () => void;
|
|
10
|
+
onScroll: () => void;
|
|
11
|
+
observer?: MutationObserver | undefined;
|
|
12
|
+
};
|
|
13
|
+
}, () => void>>;
|
|
4
14
|
export default _InfiniteScroll;
|
|
5
15
|
export declare const VftInfiniteScroll: SFCWithInstall<import("vue").ObjectDirective<HTMLElement & {
|
|
6
16
|
VftInfiniteScroll: {
|
|
7
|
-
container:
|
|
17
|
+
container: Window | HTMLElement;
|
|
8
18
|
containerEl: HTMLElement;
|
|
9
19
|
instance: import("vue").ComponentPublicInstance;
|
|
10
20
|
delay: number;
|
|
11
21
|
lastScrollTop: number;
|
|
12
22
|
cb: () => void;
|
|
13
23
|
onScroll: () => void;
|
|
14
|
-
observer?: MutationObserver;
|
|
24
|
+
observer?: MutationObserver | undefined;
|
|
15
25
|
};
|
|
16
26
|
}, () => void>>;
|
|
@@ -21,8 +21,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
21
21
|
};
|
|
22
22
|
autosize: {
|
|
23
23
|
type: import("vue").PropType<boolean | {
|
|
24
|
-
minRows?: number;
|
|
25
|
-
maxRows?: number;
|
|
24
|
+
minRows?: number | undefined;
|
|
25
|
+
maxRows?: number | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
};
|
|
28
28
|
autocomplete: {
|
|
@@ -53,13 +53,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
53
53
|
type: import("vue").PropType<boolean>;
|
|
54
54
|
};
|
|
55
55
|
suffixIcon: {
|
|
56
|
-
type: import("vue").PropType<string | import("
|
|
56
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
57
57
|
};
|
|
58
58
|
prefixIcon: {
|
|
59
|
-
type: import("vue").PropType<string | import("
|
|
59
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
60
60
|
};
|
|
61
61
|
clearIcon: {
|
|
62
|
-
type: import("vue").PropType<string | import("
|
|
62
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
63
63
|
};
|
|
64
64
|
containerRole: {
|
|
65
65
|
type: import("vue").PropType<string>;
|
|
@@ -98,8 +98,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
98
98
|
ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
99
99
|
textareaStyle: import("vue").ComputedRef<import("vue").StyleValue>;
|
|
100
100
|
autosize: boolean | {
|
|
101
|
-
minRows?: number;
|
|
102
|
-
maxRows?: number;
|
|
101
|
+
minRows?: number | undefined;
|
|
102
|
+
maxRows?: number | undefined;
|
|
103
103
|
};
|
|
104
104
|
focus: () => Promise<void>;
|
|
105
105
|
blur: () => void | undefined;
|
|
@@ -143,8 +143,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
143
143
|
};
|
|
144
144
|
autosize: {
|
|
145
145
|
type: import("vue").PropType<boolean | {
|
|
146
|
-
minRows?: number;
|
|
147
|
-
maxRows?: number;
|
|
146
|
+
minRows?: number | undefined;
|
|
147
|
+
maxRows?: number | undefined;
|
|
148
148
|
}>;
|
|
149
149
|
};
|
|
150
150
|
autocomplete: {
|
|
@@ -175,13 +175,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
175
175
|
type: import("vue").PropType<boolean>;
|
|
176
176
|
};
|
|
177
177
|
suffixIcon: {
|
|
178
|
-
type: import("vue").PropType<string | import("
|
|
178
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
179
179
|
};
|
|
180
180
|
prefixIcon: {
|
|
181
|
-
type: import("vue").PropType<string | import("
|
|
181
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
182
182
|
};
|
|
183
183
|
clearIcon: {
|
|
184
|
-
type: import("vue").PropType<string | import("
|
|
184
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
185
185
|
};
|
|
186
186
|
containerRole: {
|
|
187
187
|
type: import("vue").PropType<string>;
|
|
@@ -242,8 +242,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
242
242
|
};
|
|
243
243
|
autosize: {
|
|
244
244
|
type: import("vue").PropType<boolean | {
|
|
245
|
-
minRows?: number;
|
|
246
|
-
maxRows?: number;
|
|
245
|
+
minRows?: number | undefined;
|
|
246
|
+
maxRows?: number | undefined;
|
|
247
247
|
}>;
|
|
248
248
|
};
|
|
249
249
|
autocomplete: {
|
|
@@ -274,13 +274,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
274
274
|
type: import("vue").PropType<boolean>;
|
|
275
275
|
};
|
|
276
276
|
suffixIcon: {
|
|
277
|
-
type: import("vue").PropType<string | import("
|
|
277
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
278
278
|
};
|
|
279
279
|
prefixIcon: {
|
|
280
|
-
type: import("vue").PropType<string | import("
|
|
280
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
281
281
|
};
|
|
282
282
|
clearIcon: {
|
|
283
|
-
type: import("vue").PropType<string | import("
|
|
283
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
284
284
|
};
|
|
285
285
|
containerRole: {
|
|
286
286
|
type: import("vue").PropType<string>;
|
|
@@ -319,8 +319,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
319
319
|
ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
320
320
|
textareaStyle: import("vue").ComputedRef<import("vue").StyleValue>;
|
|
321
321
|
autosize: boolean | {
|
|
322
|
-
minRows?: number;
|
|
323
|
-
maxRows?: number;
|
|
322
|
+
minRows?: number | undefined;
|
|
323
|
+
maxRows?: number | undefined;
|
|
324
324
|
};
|
|
325
325
|
focus: () => Promise<void>;
|
|
326
326
|
blur: () => void | undefined;
|
|
@@ -328,9 +328,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
328
328
|
clear: () => void;
|
|
329
329
|
resizeTextarea: () => void;
|
|
330
330
|
}, {}, {}, {}, {}>;
|
|
331
|
-
__isFragment?:
|
|
332
|
-
__isTeleport?:
|
|
333
|
-
__isSuspense?:
|
|
331
|
+
__isFragment?: undefined;
|
|
332
|
+
__isTeleport?: undefined;
|
|
333
|
+
__isSuspense?: undefined;
|
|
334
334
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
335
335
|
id: {
|
|
336
336
|
type: import("vue").PropType<string>;
|
|
@@ -352,8 +352,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
352
352
|
};
|
|
353
353
|
autosize: {
|
|
354
354
|
type: import("vue").PropType<boolean | {
|
|
355
|
-
minRows?: number;
|
|
356
|
-
maxRows?: number;
|
|
355
|
+
minRows?: number | undefined;
|
|
356
|
+
maxRows?: number | undefined;
|
|
357
357
|
}>;
|
|
358
358
|
};
|
|
359
359
|
autocomplete: {
|
|
@@ -384,13 +384,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
384
384
|
type: import("vue").PropType<boolean>;
|
|
385
385
|
};
|
|
386
386
|
suffixIcon: {
|
|
387
|
-
type: import("vue").PropType<string | import("
|
|
387
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
388
388
|
};
|
|
389
389
|
prefixIcon: {
|
|
390
|
-
type: import("vue").PropType<string | import("
|
|
390
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
391
391
|
};
|
|
392
392
|
clearIcon: {
|
|
393
|
-
type: import("vue").PropType<string | import("
|
|
393
|
+
type: import("vue").PropType<string | import("..").IconProps>;
|
|
394
394
|
};
|
|
395
395
|
containerRole: {
|
|
396
396
|
type: import("vue").PropType<string>;
|
|
@@ -429,8 +429,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
429
429
|
ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
430
430
|
textareaStyle: import("vue").ComputedRef<import("vue").StyleValue>;
|
|
431
431
|
autosize: boolean | {
|
|
432
|
-
minRows?: number;
|
|
433
|
-
maxRows?: number;
|
|
432
|
+
minRows?: number | undefined;
|
|
433
|
+
maxRows?: number | undefined;
|
|
434
434
|
};
|
|
435
435
|
focus: () => Promise<void>;
|
|
436
436
|
blur: () => void | undefined;
|
|
@@ -29,13 +29,7 @@ export interface InputProps {
|
|
|
29
29
|
validateEvent?: boolean;
|
|
30
30
|
inputStyle?: StyleValue;
|
|
31
31
|
}
|
|
32
|
-
declare
|
|
33
|
-
prepend?(_: {}): any;
|
|
34
|
-
prefix?(_: {}): any;
|
|
35
|
-
suffix?(_: {}): any;
|
|
36
|
-
append?(_: {}): any;
|
|
37
|
-
};
|
|
38
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputProps>, {
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputProps>, {
|
|
39
33
|
/** @description HTML input element */
|
|
40
34
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
41
35
|
/** @description HTML textarea element */
|
|
@@ -46,8 +40,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
|
|
|
46
40
|
textareaStyle: import("vue").ComputedRef<StyleValue>;
|
|
47
41
|
/** @description from props (used on unit test) */
|
|
48
42
|
autosize: boolean | {
|
|
49
|
-
minRows?: number;
|
|
50
|
-
maxRows?: number;
|
|
43
|
+
minRows?: number | undefined;
|
|
44
|
+
maxRows?: number | undefined;
|
|
51
45
|
};
|
|
52
46
|
/** @description HTML input element native method */
|
|
53
47
|
focus: () => Promise<void>;
|
|
@@ -91,8 +85,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
|
|
|
91
85
|
onClear?: (() => any) | undefined;
|
|
92
86
|
onSuffixClick?: ((value: any) => any) | undefined;
|
|
93
87
|
onPrefixClick?: ((value: any) => any) | undefined;
|
|
94
|
-
}, {}, {}
|
|
95
|
-
|
|
88
|
+
}, {}, {}>, {
|
|
89
|
+
prepend?(_: {}): any;
|
|
90
|
+
prefix?(_: {}): any;
|
|
91
|
+
suffix?(_: {}): any;
|
|
92
|
+
append?(_: {}): any;
|
|
93
|
+
}>;
|
|
96
94
|
export default _default;
|
|
97
95
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
98
96
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -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"),te=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Se=require("lodash-es"),ne=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/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;
|
|
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-es"),ne=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-common-props.cjs"),le=require("../form/hooks/use-form-item.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}=le.useFormItem(),{inputId:D}=le.useFormItemInputId(ie.props,{formItemContext:s}),de=ae.useFormSize(),m=ae.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;
|
|
@@ -10,13 +10,13 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
|
|
|
10
10
|
type: import("vue").PropType<boolean>;
|
|
11
11
|
};
|
|
12
12
|
route: {
|
|
13
|
-
type: import("vue").PropType<import("vue-router").
|
|
13
|
+
type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
|
|
14
14
|
};
|
|
15
15
|
isReplace: {
|
|
16
16
|
type: import("vue").PropType<boolean>;
|
|
17
17
|
};
|
|
18
18
|
icon: {
|
|
19
|
-
type: import("vue").PropType<import("
|
|
19
|
+
type: import("vue").PropType<import("..").IconProps>;
|
|
20
20
|
};
|
|
21
21
|
}>> & {
|
|
22
22
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -33,13 +33,13 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
|
|
|
33
33
|
type: import("vue").PropType<boolean>;
|
|
34
34
|
};
|
|
35
35
|
route: {
|
|
36
|
-
type: import("vue").PropType<import("vue-router").
|
|
36
|
+
type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
|
|
37
37
|
};
|
|
38
38
|
isReplace: {
|
|
39
39
|
type: import("vue").PropType<boolean>;
|
|
40
40
|
};
|
|
41
41
|
icon: {
|
|
42
|
-
type: import("vue").PropType<import("
|
|
42
|
+
type: import("vue").PropType<import("..").IconProps>;
|
|
43
43
|
};
|
|
44
44
|
}>> & {
|
|
45
45
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -61,20 +61,20 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
|
|
|
61
61
|
type: import("vue").PropType<boolean>;
|
|
62
62
|
};
|
|
63
63
|
route: {
|
|
64
|
-
type: import("vue").PropType<import("vue-router").
|
|
64
|
+
type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
|
|
65
65
|
};
|
|
66
66
|
isReplace: {
|
|
67
67
|
type: import("vue").PropType<boolean>;
|
|
68
68
|
};
|
|
69
69
|
icon: {
|
|
70
|
-
type: import("vue").PropType<import("
|
|
70
|
+
type: import("vue").PropType<import("..").IconProps>;
|
|
71
71
|
};
|
|
72
72
|
}>> & {
|
|
73
73
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
}, {}, {}, {}, {}, {}>;
|
|
75
|
-
__isFragment?:
|
|
76
|
-
__isTeleport?:
|
|
77
|
-
__isSuspense?:
|
|
75
|
+
__isFragment?: undefined;
|
|
76
|
+
__isTeleport?: undefined;
|
|
77
|
+
__isSuspense?: undefined;
|
|
78
78
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
79
79
|
type: {
|
|
80
80
|
type: import("vue").PropType<"default" | "success" | "primary" | "warning" | "info" | "danger">;
|
|
@@ -86,13 +86,13 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
|
|
|
86
86
|
type: import("vue").PropType<boolean>;
|
|
87
87
|
};
|
|
88
88
|
route: {
|
|
89
|
-
type: import("vue").PropType<import("vue-router").
|
|
89
|
+
type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
|
|
90
90
|
};
|
|
91
91
|
isReplace: {
|
|
92
92
|
type: import("vue").PropType<boolean>;
|
|
93
93
|
};
|
|
94
94
|
icon: {
|
|
95
|
-
type: import("vue").PropType<import("
|
|
95
|
+
type: import("vue").PropType<import("..").IconProps>;
|
|
96
96
|
};
|
|
97
97
|
}>> & {
|
|
98
98
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { LinkProps } from './types';
|
|
2
|
-
declare
|
|
3
|
-
default?(_: {}): any;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<LinkProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<LinkProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
3
|
click: (...args: any[]) => void;
|
|
7
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<LinkProps>>> & {
|
|
8
5
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}, {}, {}
|
|
10
|
-
|
|
6
|
+
}, {}, {}>, {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
}>;
|
|
11
9
|
export default _default;
|
|
12
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
11
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -4,7 +4,10 @@ import { Loading } from './service';
|
|
|
4
4
|
export declare const VftLoading: {
|
|
5
5
|
install(app: App): void;
|
|
6
6
|
directive: import("vue").Directive<import("./directive").VftLoading, import("./directive").LoadingBinding>;
|
|
7
|
-
service: (options?: import("./types").
|
|
7
|
+
service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "target" | "parent"> & {
|
|
8
|
+
target: string | HTMLElement;
|
|
9
|
+
body: boolean;
|
|
10
|
+
}>) => Record<string, any>;
|
|
8
11
|
};
|
|
9
12
|
export default VftLoading;
|
|
10
13
|
export { vLoading as VftLoadingDirective, Loading as VftLoadingService, vLoading, };
|
|
@@ -4,7 +4,7 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
type: {
|
|
7
|
-
type: import("vue").PropType<"
|
|
7
|
+
type: import("vue").PropType<"vue" | "normal" | "react">;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
title: {
|
|
@@ -19,13 +19,15 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
|
-
}, () => import("vue").VNode
|
|
22
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
25
|
id: {
|
|
24
26
|
type: StringConstructor;
|
|
25
27
|
required: true;
|
|
26
28
|
};
|
|
27
29
|
type: {
|
|
28
|
-
type: import("vue").PropType<"
|
|
30
|
+
type: import("vue").PropType<"vue" | "normal" | "react">;
|
|
29
31
|
default: string;
|
|
30
32
|
};
|
|
31
33
|
title: {
|