vft 0.0.312 → 0.0.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/es/components/affix/affix.d.ts +1 -1
- package/es/components/affix/affix.js +5 -4
- package/es/components/affix/affix.vue.d.ts +3 -3
- package/es/components/affix/affix.vue2.js +8 -7
- package/es/components/affix/index.d.ts +6 -6
- package/es/components/affix/index.js +4 -3
- package/es/components/alert/alert.vue2.js +3 -2
- package/es/components/alert/index.js +4 -3
- package/es/components/autocomplete/autocomplete.vue.d.ts +7 -7
- package/es/components/autocomplete/autocomplete.vue2.js +3 -2
- package/es/components/autocomplete/index.d.ts +20 -20
- package/es/components/autocomplete/index.js +4 -3
- package/es/components/avatar/avatar.vue2.js +12 -11
- package/es/components/avatar/index.d.ts +3 -3
- package/es/components/avatar/index.js +4 -3
- package/es/components/backtop/backtop.vue2.js +9 -8
- package/es/components/backtop/index.js +4 -3
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -2
- package/es/components/breadcrumb/breadcrumb.vue2.js +7 -6
- package/es/components/breadcrumb/index.js +8 -7
- package/es/components/button/button-custom.js +3 -2
- package/es/components/button/button-group.vue2.js +3 -2
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/button.vue2.js +11 -10
- package/es/components/button/index.d.ts +12 -12
- package/es/components/button/index.js +8 -7
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/card/card.vue2.js +6 -5
- package/es/components/card/index.js +4 -3
- package/es/components/carousel/carousel-item.vue2.js +3 -2
- package/es/components/carousel/carousel.vue2.js +3 -2
- package/es/components/carousel/index.js +9 -8
- package/es/components/carousel/use-carousel-item.js +22 -21
- package/es/components/carousel/use-carousel.js +26 -25
- package/es/components/cascader/cascader.d.ts +2 -2
- package/es/components/cascader/cascader.js +9 -8
- package/es/components/cascader/cascader.vue.d.ts +6 -6
- package/es/components/cascader/cascader.vue2.js +3 -2
- package/es/components/cascader/index.js +7 -6
- package/es/components/cascader-panel/config.js +15 -14
- package/es/components/cascader-panel/index.js +12 -11
- package/es/components/cascader-panel/menu.vue2.js +3 -2
- package/es/components/cascader-panel/node-content.js +12 -11
- package/es/components/cascader-panel/node.vue2.js +3 -2
- package/es/components/cascader-panel/store.js +3 -2
- package/es/components/cascader-panel/utils.js +7 -6
- package/es/components/check-tag/check-tag.vue2.js +6 -5
- package/es/components/check-tag/index.js +4 -3
- package/es/components/checkbox/checkbox-button.vue2.js +23 -22
- package/es/components/checkbox/checkbox-group.vue2.js +3 -2
- package/es/components/checkbox/checkbox.vue2.js +3 -2
- package/es/components/checkbox/composables/use-checkbox-event.js +12 -11
- package/es/components/checkbox/index.d.ts +36 -36
- package/es/components/checkbox/index.js +9 -8
- package/es/components/clamp/clamp.vue2.js +17 -13
- package/es/components/clamp/index.js +4 -3
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +6 -5
- package/es/components/clamp-toggle/index.js +4 -3
- package/es/components/clamp-tooltip/index.js +4 -3
- package/es/components/col/col.vue.d.ts +1 -1
- package/es/components/col/col.vue2.js +3 -2
- package/es/components/col/index.d.ts +9 -9
- package/es/components/col/index.js +4 -3
- package/es/components/collapse/collapse-item.js +5 -4
- package/es/components/collapse/collapse-item.vue.d.ts +1 -1
- package/es/components/collapse/collapse.js +5 -4
- package/es/components/collapse/index.js +14 -13
- package/es/components/collapse/use-collapse-item.js +14 -13
- package/es/components/collapse/use-collapse.js +5 -4
- package/es/components/collapse-transition/collapse-transition.vue2.js +3 -2
- package/es/components/color-picker/color-picker.vue2.js +3 -2
- package/es/components/color-picker/components/hue-slider.vue2.js +3 -2
- package/es/components/color-picker/components/predefine.vue2.js +8 -7
- package/es/components/color-picker/components/sv-panel.vue2.js +14 -13
- package/es/components/color-picker/composables/use-alpha-slider.js +6 -5
- package/es/components/color-picker/index.d.ts +6 -6
- package/es/components/color-picker/index.js +4 -3
- package/es/components/config-provider/config-provider.vue.d.ts +2 -0
- package/es/components/config-provider/config-provider.vue2.js +28 -26
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/config-provider/index.d.ts +18 -0
- package/es/components/config-provider/index.js +7 -7
- package/es/components/container/aside.vue2.js +9 -8
- package/es/components/container/container.vue2.js +3 -2
- package/es/components/container/footer.vue2.js +8 -7
- package/es/components/container/header.vue2.js +9 -8
- package/es/components/container/index.js +9 -8
- package/es/components/container/main.vue2.js +9 -8
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/countdown/countdown.js +5 -4
- package/es/components/countdown/countdown.vue2.js +3 -2
- package/es/components/countdown/index.js +7 -6
- package/es/components/date-picker/composables/use-range-picker.js +3 -2
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +7 -6
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +3 -2
- package/es/components/date-picker/date-picker.d.ts +6 -6
- package/es/components/date-picker/date-picker.js +3 -2
- package/es/components/date-picker/index.d.ts +12 -12
- package/es/components/date-picker/props/basic-cell.js +3 -2
- package/es/components/date-picker/props/basic-date-table.js +5 -4
- package/es/components/date-picker/props/basic-month-table.js +3 -2
- package/es/components/date-picker/props/basic-year-table.js +3 -2
- package/es/components/date-picker/props/date-picker.d.ts +2 -2
- package/es/components/date-picker/props/date-picker.js +3 -2
- package/es/components/date-picker/props/panel-date-pick.js +5 -4
- package/es/components/date-picker/props/panel-date-range.js +3 -2
- package/es/components/date-picker/props/panel-month-range.js +5 -4
- package/es/components/date-picker/props/panel-year-range.js +5 -4
- package/es/components/date-picker/props/shared.js +9 -8
- package/es/components/date-time-select/date-time-select.vue2.js +3 -2
- package/es/components/date-time-select/index.js +4 -3
- package/es/components/descriptions/description-item.vue2.js +5 -4
- package/es/components/descriptions/description.vue2.js +21 -20
- package/es/components/descriptions/descriptions-cell.js +4 -3
- package/es/components/descriptions/index.js +6 -5
- package/es/components/dialog/dialog-content.vue2.js +3 -2
- package/es/components/dialog/dialog.vue2.js +9 -8
- package/es/components/dialog/hooks/use-dialog.js +22 -21
- package/es/components/dialog/index.js +8 -7
- package/es/components/divider/divider.vue2.js +3 -2
- package/es/components/divider/index.d.ts +3 -3
- package/es/components/divider/index.js +4 -3
- package/es/components/drawer/drawer.vue2.js +13 -12
- package/es/components/drawer/index.js +4 -3
- package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -2
- package/es/components/dropdown/dropdown-item.vue2.js +3 -2
- package/es/components/dropdown/dropdown-menu.vue2.js +3 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +6 -5
- package/es/components/dropdown/index.d.ts +15 -15
- package/es/components/dropdown/index.js +9 -8
- package/es/components/dropdown/useDropdown.js +9 -8
- package/es/components/empty/index.js +6 -5
- package/es/components/focus-trap/utils.js +15 -14
- package/es/components/footer-layout/footer-layout.vue2.js +7 -6
- package/es/components/footer-layout/index.js +4 -3
- package/es/components/form/form-item.vue2.js +2 -2
- package/es/components/form/form-label-wrap.js +3 -2
- package/es/components/form/form.vue2.js +19 -18
- package/es/components/form/hooks/use-form-common-props.js +4 -3
- package/es/components/form/hooks/use-form-item.js +13 -12
- package/es/components/form/index.d.ts +9 -9
- package/es/components/form/index.js +17 -16
- package/es/components/full-screen/full-screen.vue2.js +6 -5
- package/es/components/full-screen/index.js +4 -3
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/header-layout/index.js +4 -3
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -2
- package/es/components/horizontal-menu/index.js +6 -5
- package/es/components/icon/icon.vue2.js +16 -15
- package/es/components/icon/index.js +4 -3
- package/es/components/icon-text/icon-text.vue2.js +4 -3
- package/es/components/icon-text/index.js +4 -3
- package/es/components/iframe-layout/iframe-page.vue2.js +10 -9
- package/es/components/iframe-layout/index.js +4 -3
- package/es/components/image/image.vue2.js +3 -2
- package/es/components/image/index.js +4 -3
- package/es/components/image-viewer/image-viewer.vue2.js +3 -2
- package/es/components/image-viewer/index.js +4 -3
- package/es/components/infinite-scroll/infinite-scroll.js +3 -2
- package/es/components/input/index.d.ts +8 -8
- package/es/components/input/index.js +4 -3
- package/es/components/input/input.vue.d.ts +2 -2
- package/es/components/input/input.vue2.js +3 -2
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/index.js +4 -3
- package/es/components/input-number/input-number.vue.d.ts +1 -1
- package/es/components/input-number/input-number.vue2.js +7 -6
- package/es/components/input-tag/composables/use-drag-tag.js +12 -11
- package/es/components/input-tag/composables/use-input-tag-dom.js +7 -6
- package/es/components/input-tag/composables/use-input-tag.js +24 -23
- package/es/components/input-tag/index.js +7 -6
- package/es/components/input-tag/input-tag.d.ts +1 -1
- package/es/components/input-tag/input-tag.js +12 -11
- package/es/components/input-tag/input-tag.vue.d.ts +4 -4
- package/es/components/input-tag/input-tag.vue2.js +19 -18
- package/es/components/link/index.js +4 -3
- package/es/components/link/link.vue2.js +6 -5
- package/es/components/list-cell/index.d.ts +4 -4
- package/es/components/list-cell/index.js +4 -3
- package/es/components/list-cell/list-cell.vue.d.ts +2 -2
- package/es/components/list-cell/list-cell.vue2.js +43 -34
- package/es/components/loading/loading.js +3 -2
- package/es/components/loading/service.js +3 -2
- package/es/components/logo/index.js +4 -3
- package/es/components/logo/logo.vue2.js +9 -8
- package/es/components/md-code-demo/index.js +4 -3
- package/es/components/md-code-demo/md-code-demo.js +3 -2
- package/es/components/md-code-tabs/index.js +4 -3
- package/es/components/md-comment/index.js +4 -3
- package/es/components/md-comment/md-comment.vue2.js +9 -8
- package/es/components/md-container/index.js +4 -3
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/md-tabs/index.js +4 -3
- package/es/components/md-vue-playground/index.js +4 -3
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +3 -2
- package/es/components/menu/index.js +10 -9
- package/es/components/menu/menu-collapse-transition.vue2.js +3 -2
- package/es/components/menu/menu-item-group.vue2.js +10 -9
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/menu.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/menu/use-menu-css-var.js +3 -2
- package/es/components/message/index.js +8 -7
- package/es/components/message/method.js +8 -7
- package/es/components/modal/index.js +7 -6
- package/es/components/modal/modal-footer-action.vue2.js +3 -2
- package/es/components/multiple-tabs/index.js +9 -8
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
- package/es/components/notification/index.js +8 -7
- package/es/components/notification/notification.js +5 -4
- package/es/components/notification/notify.js +1 -0
- package/es/components/overlay/index.js +4 -3
- package/es/components/overlay/overlay.vue2.js +3 -2
- package/es/components/page-wrapper/index.js +4 -3
- package/es/components/page-wrapper/page-wrapper.vue2.js +3 -2
- package/es/components/pagination/components/jumper.vue2.js +5 -4
- package/es/components/pagination/components/pager.vue2.js +27 -26
- package/es/components/pagination/components/sizes.vue2.js +3 -2
- package/es/components/pagination/components/total.vue2.js +7 -6
- package/es/components/pagination/index.js +7 -6
- package/es/components/pagination/pagination.vue2.js +8 -7
- package/es/components/popconfirm/index.js +4 -3
- package/es/components/popconfirm/popconfirm.vue2.js +3 -2
- package/es/components/popover/index.js +4 -3
- package/es/components/popover/popover.vue2.js +3 -2
- package/es/components/popper/arrow.vue2.js +3 -2
- package/es/components/popper/composables/use-content-dom.js +11 -10
- package/es/components/popper/composables/use-content.d.ts +3 -3
- package/es/components/popper/composables/use-content.js +3 -2
- package/es/components/popper/index.js +10 -9
- package/es/components/popper/trigger.vue2.js +8 -7
- package/es/components/progress/index.js +4 -3
- package/es/components/progress/progress.vue2.js +9 -8
- package/es/components/progress-i/index.js +4 -3
- package/es/components/qrcode/index.js +4 -3
- package/es/components/radio/index.d.ts +42 -42
- package/es/components/radio/index.js +9 -8
- package/es/components/radio/radio-button.vue2.js +3 -2
- package/es/components/radio/radio-group.vue2.js +10 -9
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.js +3 -2
- package/es/components/radio/radio.vue.d.ts +5 -5
- package/es/components/radio/radio.vue2.js +3 -2
- package/es/components/rate/index.js +7 -6
- package/es/components/rate/rate.js +5 -4
- package/es/components/rate/rate.vue2.js +3 -2
- package/es/components/result/index.js +4 -3
- package/es/components/result/result.vue2.js +11 -10
- package/es/components/router-view-content/index.js +4 -3
- package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
- package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +7 -6
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +3 -2
- package/es/components/row/index.js +6 -5
- package/es/components/row/row.vue2.js +3 -2
- package/es/components/scrollbar/index.js +10 -9
- package/es/components/scrollbar/scrollbar.vue2.js +3 -2
- package/es/components/scrollbar/thumb.vue2.js +3 -2
- package/es/components/search/index.d.ts +3 -3
- package/es/components/search/index.js +4 -3
- package/es/components/search/search.vue.d.ts +1 -1
- package/es/components/search/search.vue2.js +3 -2
- package/es/components/segmented/index.d.ts +6 -6
- package/es/components/segmented/index.js +8 -7
- package/es/components/segmented/segmented.d.ts +1 -1
- package/es/components/segmented/segmented.js +5 -4
- package/es/components/segmented/segmented.vue.d.ts +3 -3
- package/es/components/segmented/segmented.vue2.js +3 -2
- package/es/components/select/defaults.js +9 -8
- package/es/components/select/group-item.vue2.js +3 -2
- package/es/components/select/index.d.ts +9 -9
- package/es/components/select/option-item.vue2.js +3 -2
- package/es/components/select/select-dropdown.js +3 -2
- package/es/components/select/select.vue.d.ts +9 -9
- package/es/components/select/select.vue2.js +8 -7
- package/es/components/select/useSelect.d.ts +8 -8
- package/es/components/select/useSelect.js +33 -32
- package/es/components/side-menu/index.js +4 -3
- package/es/components/side-menu/side-menu.vue2.js +3 -2
- package/es/components/skeleton/index.js +6 -5
- package/es/components/skeleton/skeleton-item.vue2.js +6 -5
- package/es/components/skeleton/skeleton.vue2.js +3 -2
- package/es/components/slider/button.vue2.js +3 -2
- package/es/components/slider/composables/use-stops.js +7 -6
- package/es/components/slider/composables/use-watch.js +12 -11
- package/es/components/slider/index.d.ts +1 -1
- package/es/components/slider/index.js +8 -7
- package/es/components/slider/marker.js +7 -6
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/slider/slider.vue2.js +3 -2
- package/es/components/slot/only-child.js +6 -5
- package/es/components/space/index.d.ts +3 -3
- package/es/components/space/index.js +8 -7
- package/es/components/space/item.js +6 -5
- package/es/components/space/space.d.ts +4 -4
- package/es/components/space/space.js +12 -11
- package/es/components/space/use-space.js +15 -14
- package/es/components/statistic/index.js +4 -3
- package/es/components/statistic/statistic.js +3 -2
- package/es/components/statistic/statistic.vue2.js +3 -2
- package/es/components/steps/index.js +6 -5
- package/es/components/steps/item.vue2.js +3 -2
- package/es/components/steps/steps.vue2.js +6 -5
- package/es/components/super-form/index.js +15 -14
- package/es/components/super-form/super-form-action.vue2.js +21 -20
- package/es/components/super-form/super-form-item.vue2.js +50 -49
- package/es/components/super-form/super-form.vue2.js +3 -2
- package/es/components/switch/index.d.ts +15 -15
- package/es/components/switch/index.js +4 -3
- package/es/components/switch/switch.vue.d.ts +3 -3
- package/es/components/switch/switch.vue2.js +3 -2
- package/es/components/table/index.js +23 -22
- package/es/components/table/table.vue2.js +3 -2
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/index.js +7 -6
- package/es/components/tabs/tab-bar.vue2.js +7 -6
- package/es/components/tabs/tab-nav.vue2.js +12 -11
- package/es/components/tabs/tab-pane.vue2.js +9 -8
- package/es/components/tabs/tabs.vue2.js +7 -6
- package/es/components/tag/index.js +4 -3
- package/es/components/tag/tag.vue2.js +9 -8
- package/es/components/teleport/index.js +4 -3
- package/es/components/time-picker/common/picker-range-trigger.vue.d.ts +2 -2
- package/es/components/time-picker/common/picker-range-trigger.vue2.js +10 -9
- package/es/components/time-picker/common/picker.vue.d.ts +6 -6
- package/es/components/time-picker/common/picker.vue2.js +3 -2
- package/es/components/time-picker/common/props.d.ts +2 -2
- package/es/components/time-picker/common/props.js +5 -4
- package/es/components/time-picker/index.d.ts +12 -12
- package/es/components/time-picker/props/basic-time-spinner.js +3 -2
- package/es/components/time-picker/props/panel-time-picker.js +5 -4
- package/es/components/time-picker/props/panel-time-range.js +3 -2
- package/es/components/time-picker/props/shared.js +3 -2
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +3 -2
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +3 -2
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -2
- package/es/components/time-picker/time-picker.d.ts +6 -6
- package/es/components/time-select/time-select.js +3 -2
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/time-select/time-select.vue2.js +11 -10
- package/es/components/timeline/index.d.ts +6 -6
- package/es/components/timeline/index.js +6 -5
- package/es/components/timeline/timeline-item.vue2.js +3 -2
- package/es/components/timeline/timeline.vue2.js +3 -2
- package/es/components/tooltip/content.vue2.js +3 -2
- package/es/components/tooltip/index.js +6 -5
- package/es/components/tooltip/tooltip.vue2.js +3 -2
- package/es/components/tooltip/trigger.vue2.js +3 -2
- package/es/components/tooltip/utils.js +5 -4
- package/es/components/transfer/index.js +10 -9
- package/es/components/transfer/transfer-panel.js +3 -2
- package/es/components/transfer/transfer-panel.vue2.js +3 -2
- package/es/components/transfer/transfer.js +5 -4
- package/es/components/transfer/transfer.vue2.js +3 -2
- package/es/components/tree/model/useDragNode.js +3 -2
- package/es/components/tree/model/useKeydown.js +3 -2
- package/es/components/tree/tree-node-content.vue2.js +3 -2
- package/es/components/tree/tree-node.vue.d.ts +27 -27
- package/es/components/tree/tree-node.vue2.js +3 -2
- package/es/components/tree/tree.vue2.js +3 -2
- package/es/components/upload/ajax.js +3 -2
- package/es/components/upload/index.d.ts +18 -18
- package/es/components/upload/index.js +7 -6
- package/es/components/upload/upload-content.vue2.js +3 -2
- package/es/components/upload/upload-dragger.vue2.js +13 -12
- package/es/components/upload/upload-list.vue2.js +36 -35
- package/es/components/upload/use-handlers.js +3 -2
- package/es/components/verify-code/index.js +4 -3
- package/es/components/virtual-list/builders/build-grid.js +49 -48
- package/es/components/virtual-list/builders/build-list.js +41 -40
- package/es/components/virtual-list/components/dynamic-size-grid.js +3 -2
- package/es/components/virtual-list/components/dynamic-size-list.js +21 -20
- package/es/components/virtual-list/components/fixed-size-grid.js +8 -7
- package/es/components/virtual-list/components/fixed-size-list.js +9 -8
- package/es/components/virtual-list/components/scrollbar.js +9 -8
- package/es/components/virtual-list/hooks/use-grid-wheel.js +4 -3
- package/es/components/virtual-list/hooks/use-wheel.js +12 -11
- package/es/components/virtual-list/props.js +7 -6
- package/es/components/watermark/index.js +6 -5
- package/es/components/watermark/watermark.js +3 -2
- package/es/hooks/use-attrs/index.js +3 -2
- package/es/hooks/use-delayed-toggle/index.js +13 -12
- package/es/hooks/use-empty-values/index.js +9 -8
- package/es/hooks/use-focus-controller/index.js +3 -2
- package/es/hooks/use-id/index.js +3 -2
- package/es/hooks/use-lockscreen/index.js +14 -13
- package/es/hooks/use-ordered-children/index.js +3 -2
- package/es/hooks/use-popper/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.js +3 -2
- package/es/index.js +256 -255
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/helper.d.ts +1 -0
- package/es/utils/helper.js +14 -7
- package/es/utils/index.js +43 -42
- package/lib/components/affix/affix.cjs +1 -1
- package/lib/components/affix/affix.d.ts +1 -1
- package/lib/components/affix/affix.vue.d.ts +3 -3
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/affix/index.cjs +1 -1
- package/lib/components/affix/index.d.ts +6 -6
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/alert/index.cjs +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +7 -7
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +20 -20
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar/index.cjs +1 -1
- package/lib/components/avatar/index.d.ts +3 -3
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/index.cjs +1 -1
- package/lib/components/breadcrumb/breadcrumb-item.vue2.cjs +1 -1
- package/lib/components/breadcrumb/breadcrumb.vue2.cjs +1 -1
- package/lib/components/breadcrumb/index.cjs +1 -1
- package/lib/components/button/button-custom.cjs +1 -1
- package/lib/components/button/button-group.vue2.cjs +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.cjs +1 -1
- package/lib/components/button/index.d.ts +12 -12
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/card/index.cjs +1 -1
- package/lib/components/carousel/carousel-item.vue2.cjs +1 -1
- package/lib/components/carousel/carousel.vue2.cjs +1 -1
- package/lib/components/carousel/index.cjs +1 -1
- package/lib/components/carousel/use-carousel-item.cjs +1 -1
- package/lib/components/carousel/use-carousel.cjs +1 -1
- package/lib/components/cascader/cascader.cjs +1 -1
- package/lib/components/cascader/cascader.d.ts +2 -2
- package/lib/components/cascader/cascader.vue.d.ts +6 -6
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader/index.cjs +1 -1
- package/lib/components/cascader-panel/config.cjs +1 -1
- package/lib/components/cascader-panel/index.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +1 -1
- package/lib/components/cascader-panel/node-content.cjs +1 -1
- package/lib/components/cascader-panel/node.vue2.cjs +1 -1
- package/lib/components/cascader-panel/store.cjs +1 -1
- package/lib/components/cascader-panel/utils.cjs +1 -1
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/check-tag/index.cjs +1 -1
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.cjs +1 -1
- package/lib/components/checkbox/index.cjs +1 -1
- package/lib/components/checkbox/index.d.ts +36 -36
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/index.cjs +1 -1
- package/lib/components/clamp-tooltip/index.cjs +1 -1
- package/lib/components/col/col.vue.d.ts +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/col/index.cjs +1 -1
- package/lib/components/col/index.d.ts +9 -9
- package/lib/components/collapse/collapse-item.cjs +1 -1
- package/lib/components/collapse/collapse-item.vue.d.ts +1 -1
- package/lib/components/collapse/collapse.cjs +1 -1
- package/lib/components/collapse/index.cjs +1 -1
- package/lib/components/collapse/use-collapse-item.cjs +1 -1
- package/lib/components/collapse/use-collapse.cjs +1 -1
- package/lib/components/collapse-transition/collapse-transition.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/hue-slider.vue2.cjs +1 -1
- package/lib/components/color-picker/components/predefine.vue2.cjs +1 -1
- package/lib/components/color-picker/components/sv-panel.vue2.cjs +1 -1
- package/lib/components/color-picker/composables/use-alpha-slider.cjs +1 -1
- package/lib/components/color-picker/index.cjs +1 -1
- package/lib/components/color-picker/index.d.ts +6 -6
- package/lib/components/config-provider/config-provider.vue.d.ts +2 -0
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +18 -0
- package/lib/components/container/aside.vue2.cjs +1 -1
- package/lib/components/container/container.vue2.cjs +1 -1
- package/lib/components/container/footer.vue2.cjs +1 -1
- package/lib/components/container/header.vue2.cjs +1 -1
- package/lib/components/container/index.cjs +1 -1
- package/lib/components/container/main.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/countdown/countdown.cjs +1 -1
- package/lib/components/countdown/countdown.vue2.cjs +1 -1
- package/lib/components/countdown/index.cjs +1 -1
- package/lib/components/date-picker/composables/use-range-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +6 -6
- package/lib/components/date-picker/index.d.ts +12 -12
- package/lib/components/date-picker/props/basic-cell.cjs +1 -1
- package/lib/components/date-picker/props/basic-date-table.cjs +1 -1
- package/lib/components/date-picker/props/basic-month-table.cjs +1 -1
- package/lib/components/date-picker/props/basic-year-table.cjs +1 -1
- package/lib/components/date-picker/props/date-picker.cjs +1 -1
- package/lib/components/date-picker/props/date-picker.d.ts +2 -2
- package/lib/components/date-picker/props/panel-date-pick.cjs +1 -1
- package/lib/components/date-picker/props/panel-date-range.cjs +1 -1
- package/lib/components/date-picker/props/panel-month-range.cjs +1 -1
- package/lib/components/date-picker/props/panel-year-range.cjs +1 -1
- package/lib/components/date-picker/props/shared.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/index.cjs +1 -1
- package/lib/components/descriptions/description-item.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-cell.cjs +1 -1
- package/lib/components/descriptions/index.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
- package/lib/components/dialog/index.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/divider/index.cjs +1 -1
- package/lib/components/divider/index.d.ts +3 -3
- package/lib/components/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/drawer/index.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +15 -15
- package/lib/components/dropdown/useDropdown.cjs +1 -1
- package/lib/components/empty/index.cjs +1 -1
- package/lib/components/focus-trap/utils.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/footer-layout/index.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form-label-wrap.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.cjs +1 -1
- package/lib/components/form/hooks/use-form-item.cjs +1 -1
- package/lib/components/form/index.cjs +1 -1
- package/lib/components/form/index.d.ts +9 -9
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/full-screen/index.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/index.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
- package/lib/components/iframe-layout/index.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image/index.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.cjs +1 -1
- package/lib/components/infinite-scroll/infinite-scroll.cjs +1 -1
- package/lib/components/input/index.cjs +1 -1
- package/lib/components/input/index.d.ts +8 -8
- package/lib/components/input/input.vue.d.ts +2 -2
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.cjs +1 -1
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/input-number.vue.d.ts +1 -1
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/input-tag/composables/use-drag-tag.cjs +1 -1
- package/lib/components/input-tag/composables/use-input-tag-dom.cjs +1 -1
- package/lib/components/input-tag/composables/use-input-tag.cjs +1 -1
- package/lib/components/input-tag/index.cjs +1 -1
- package/lib/components/input-tag/input-tag.cjs +1 -1
- package/lib/components/input-tag/input-tag.d.ts +1 -1
- package/lib/components/input-tag/input-tag.vue.d.ts +4 -4
- package/lib/components/input-tag/input-tag.vue2.cjs +1 -1
- package/lib/components/link/index.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/index.cjs +1 -1
- package/lib/components/list-cell/index.d.ts +4 -4
- package/lib/components/list-cell/list-cell.vue.d.ts +2 -2
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/loading/loading.cjs +1 -1
- package/lib/components/loading/service.cjs +1 -1
- package/lib/components/logo/index.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/md-code-demo/index.cjs +1 -1
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-code-tabs/index.cjs +1 -1
- package/lib/components/md-comment/index.cjs +1 -1
- package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
- package/lib/components/md-container/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-tabs/index.cjs +1 -1
- package/lib/components/md-vue-playground/index.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/index.cjs +1 -1
- package/lib/components/menu/menu-collapse-transition.vue2.cjs +1 -1
- package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/menu/use-menu-css-var.cjs +1 -1
- package/lib/components/message/index.cjs +1 -1
- package/lib/components/message/method.cjs +1 -1
- package/lib/components/modal/index.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/index.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/notification/index.cjs +1 -1
- package/lib/components/notification/notification.cjs +1 -1
- package/lib/components/notification/notify.cjs +1 -1
- package/lib/components/overlay/index.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/index.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue2.cjs +1 -1
- package/lib/components/pagination/index.cjs +1 -1
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/index.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue2.cjs +1 -1
- package/lib/components/popper/composables/use-content-dom.cjs +1 -1
- package/lib/components/popper/composables/use-content.cjs +1 -1
- package/lib/components/popper/composables/use-content.d.ts +3 -3
- package/lib/components/popper/index.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/progress/index.cjs +1 -1
- package/lib/components/progress/progress.vue2.cjs +1 -1
- package/lib/components/progress-i/index.cjs +1 -1
- package/lib/components/qrcode/index.cjs +1 -1
- package/lib/components/radio/index.cjs +1 -1
- package/lib/components/radio/index.d.ts +42 -42
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.cjs +1 -1
- package/lib/components/radio/radio.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +5 -5
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/rate/index.cjs +1 -1
- package/lib/components/rate/rate.cjs +1 -1
- package/lib/components/rate/rate.vue2.cjs +1 -1
- package/lib/components/result/index.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
- package/lib/components/row/index.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/index.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
- package/lib/components/search/index.cjs +1 -1
- package/lib/components/search/index.d.ts +3 -3
- package/lib/components/search/search.vue.d.ts +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/segmented/index.cjs +1 -1
- package/lib/components/segmented/index.d.ts +6 -6
- package/lib/components/segmented/segmented.cjs +1 -1
- package/lib/components/segmented/segmented.d.ts +1 -1
- package/lib/components/segmented/segmented.vue.d.ts +3 -3
- package/lib/components/segmented/segmented.vue2.cjs +1 -1
- package/lib/components/select/defaults.cjs +1 -1
- package/lib/components/select/group-item.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +9 -9
- package/lib/components/select/option-item.vue2.cjs +1 -1
- package/lib/components/select/select-dropdown.cjs +1 -1
- package/lib/components/select/select.vue.d.ts +9 -9
- package/lib/components/select/select.vue2.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +8 -8
- package/lib/components/side-menu/index.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/index.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/slider/button.vue2.cjs +1 -1
- package/lib/components/slider/composables/use-stops.cjs +1 -1
- package/lib/components/slider/composables/use-watch.cjs +1 -1
- package/lib/components/slider/index.cjs +1 -1
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/marker.cjs +1 -1
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/slot/only-child.cjs +1 -1
- package/lib/components/space/index.cjs +1 -1
- package/lib/components/space/index.d.ts +3 -3
- package/lib/components/space/item.cjs +1 -1
- package/lib/components/space/space.cjs +1 -1
- package/lib/components/space/space.d.ts +4 -4
- package/lib/components/space/use-space.cjs +1 -1
- package/lib/components/statistic/index.cjs +1 -1
- package/lib/components/statistic/statistic.cjs +1 -1
- package/lib/components/statistic/statistic.vue2.cjs +1 -1
- package/lib/components/steps/index.cjs +1 -1
- package/lib/components/steps/item.vue2.cjs +1 -1
- package/lib/components/steps/steps.vue2.cjs +1 -1
- package/lib/components/super-form/index.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/switch/index.cjs +1 -1
- package/lib/components/switch/index.d.ts +15 -15
- package/lib/components/switch/switch.vue.d.ts +3 -3
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/index.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/index.cjs +1 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tag/index.cjs +1 -1
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/teleport/index.cjs +1 -1
- package/lib/components/time-picker/common/picker-range-trigger.vue.d.ts +2 -2
- package/lib/components/time-picker/common/picker-range-trigger.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +6 -6
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.cjs +1 -1
- package/lib/components/time-picker/common/props.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +12 -12
- package/lib/components/time-picker/props/basic-time-spinner.cjs +1 -1
- package/lib/components/time-picker/props/panel-time-picker.cjs +1 -1
- package/lib/components/time-picker/props/panel-time-range.cjs +1 -1
- package/lib/components/time-picker/props/shared.cjs +1 -1
- 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.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker.d.ts +6 -6
- package/lib/components/time-select/time-select.cjs +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/timeline/index.cjs +1 -1
- package/lib/components/timeline/index.d.ts +6 -6
- package/lib/components/timeline/timeline-item.vue2.cjs +1 -1
- package/lib/components/timeline/timeline.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/tooltip/utils.cjs +1 -1
- package/lib/components/transfer/index.cjs +1 -1
- package/lib/components/transfer/transfer-panel.cjs +1 -1
- package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
- package/lib/components/transfer/transfer.cjs +1 -1
- package/lib/components/transfer/transfer.vue2.cjs +1 -1
- package/lib/components/tree/model/useDragNode.cjs +1 -1
- package/lib/components/tree/model/useKeydown.cjs +1 -1
- package/lib/components/tree/tree-node-content.vue2.cjs +1 -1
- package/lib/components/tree/tree-node.vue.d.ts +27 -27
- package/lib/components/tree/tree-node.vue2.cjs +1 -1
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/ajax.cjs +1 -1
- package/lib/components/upload/index.cjs +1 -1
- package/lib/components/upload/index.d.ts +18 -18
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-dragger.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/use-handlers.cjs +1 -1
- package/lib/components/verify-code/index.cjs +1 -1
- package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
- package/lib/components/virtual-list/builders/build-list.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-grid.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/fixed-size-grid.cjs +1 -1
- package/lib/components/virtual-list/components/fixed-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/scrollbar.cjs +1 -1
- package/lib/components/virtual-list/hooks/use-grid-wheel.cjs +1 -1
- package/lib/components/virtual-list/hooks/use-wheel.cjs +1 -1
- package/lib/components/virtual-list/props.cjs +1 -1
- package/lib/components/watermark/index.cjs +1 -1
- package/lib/components/watermark/watermark.cjs +1 -1
- package/lib/hooks/use-attrs/index.cjs +1 -1
- package/lib/hooks/use-delayed-toggle/index.cjs +1 -1
- package/lib/hooks/use-empty-values/index.cjs +1 -1
- package/lib/hooks/use-focus-controller/index.cjs +1 -1
- package/lib/hooks/use-id/index.cjs +1 -1
- package/lib/hooks/use-lockscreen/index.cjs +1 -1
- package/lib/hooks/use-ordered-children/index.cjs +1 -1
- package/lib/hooks/use-popper/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/helper.cjs +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/index.scss +0 -1
- package/web-types.json +1 -1
- package/es/components/image/p-image.vue.d.ts +0 -25
- package/es/components/image/p-image.vue.js +0 -4
- package/es/components/image/p-image.vue2.js +0 -58
- package/es/components/p-image/style/css.d.ts +0 -1
- package/es/components/p-image/style/css.js +0 -2
- package/es/components/p-image/style/index.d.ts +0 -1
- package/es/components/p-image/style/index.js +0 -2
- package/lib/components/image/p-image.vue.cjs +0 -1
- package/lib/components/image/p-image.vue.d.ts +0 -25
- package/lib/components/image/p-image.vue2.cjs +0 -1
- package/lib/components/p-image/style/css.cjs +0 -1
- package/lib/components/p-image/style/css.d.ts +0 -1
- package/lib/components/p-image/style/index.cjs +0 -1
- package/lib/components/p-image/style/index.d.ts +0 -1
- package/theme-style/src/p-image.scss +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./image-viewer.vue2.cjs"),e=r.withInstall(t.default);exports.VftImageViewer=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./image-viewer.vue2.cjs"),e=r.withInstall(t.default);exports.VftImageViewer=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),C=require("@vft/utils"),v=require("lodash-es"),D=require("../../utils/dom/position.cjs"),H=require("../../utils/dom/scroll.cjs"),N=require("../../utils/error.cjs");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");require("@vueuse/core");const s="VftInfiniteScroll",g=50,h=200,p=0,O={delay:{type:Number,default:h},distance:{type:Number,default:p},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},E=(e,o)=>Object.entries(O).reduce((n,[t,c])=>{const{type:a,default:i}=c,l=e.getAttribute(`infinite-scroll-${t}`);let r=o[l]??l??i;return r=r==="false"?!1:r,r=a(r),n[t]=Number.isNaN(r)?i:r,n},{}),S=e=>{const{observer:o}=e[s];o&&(o.disconnect(),delete e[s].observer)},_=(e,o)=>{const{container:n,containerEl:t,instance:c,observer:a,lastScrollTop:i}=e[s],{disabled:l,distance:r}=E(e,c),{clientHeight:u,scrollHeight:m,scrollTop:d}=t,y=d-i;if(e[s].lastScrollTop=d,a||l||y<0)return;let f=!1;if(n===e)f=m-(u+d)<=r;else{const{clientTop:A,scrollHeight:L}=e,q=D.getOffsetTopDistance(e,t);f=d+u>=q+A+L-r}f&&o.call(c)};function b(e,o){const{containerEl:n,instance:t}=e[s],{disabled:c}=E(e,t);c||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?o.call(t):S(e))}const w={async mounted(e,o){const{instance:n,value:t}=o;C.isFunction(t)||N.throwError(s,"'v-infinite-scroll' binding value must be a function"),await T.nextTick();const{delay:c,immediate:a}=E(e,n),i=H.getScrollContainer(e,!0),l=i===window?document.documentElement:i,r=v.throttle(_.bind(null,e,t),c);if(i){if(e[s]={instance:n,container:i,containerEl:l,delay:c,cb:t,onScroll:r,lastScrollTop:l.scrollTop},a){const u=new MutationObserver(v.throttle(b.bind(null,e,t),g));e[s].observer=u,u.observe(e,{childList:!0,subtree:!0}),b(e,t)}i.addEventListener("scroll",r)}},unmounted(e){const{container:o,onScroll:n}=e[s];o?.removeEventListener("scroll",n),S(e)},async updated(e){if(!e[s])await T.nextTick();else{const{containerEl:o,cb:n,observer:t}=e[s];o.clientHeight&&t&&b(e,n)}}};exports.CHECK_INTERVAL=g;exports.DEFAULT_DELAY=h;exports.DEFAULT_DISTANCE=p;exports.SCOPE=s;exports.default=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const t=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const t=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const r=require("./input.vue2.cjs"),e=t.withInstall(r.default);exports.VftInput=e;exports.default=e;
|
|
@@ -5,7 +5,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
5
5
|
type: import("vue").PropType<string>;
|
|
6
6
|
};
|
|
7
7
|
size: {
|
|
8
|
-
type: import("vue").PropType<"
|
|
8
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
9
9
|
};
|
|
10
10
|
disabled: {
|
|
11
11
|
type: import("vue").PropType<boolean>;
|
|
@@ -77,9 +77,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
77
77
|
type: import("vue").PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
78
78
|
};
|
|
79
79
|
}>> & Readonly<{
|
|
80
|
+
onInput?: ((value: string) => any) | undefined;
|
|
80
81
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
81
82
|
onChange?: ((value: string) => any) | undefined;
|
|
82
|
-
onInput?: ((value: string) => any) | undefined;
|
|
83
83
|
onClear?: (() => any) | undefined;
|
|
84
84
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
85
85
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -107,9 +107,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
107
107
|
clear: () => void;
|
|
108
108
|
resizeTextarea: () => void;
|
|
109
109
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
110
|
+
input: (value: string) => void;
|
|
110
111
|
"update:modelValue": (value: string) => void;
|
|
111
112
|
change: (value: string) => void;
|
|
112
|
-
input: (value: string) => void;
|
|
113
113
|
clear: () => void;
|
|
114
114
|
blur: (evt: FocusEvent) => void;
|
|
115
115
|
compositionend: (evt: CompositionEvent) => void;
|
|
@@ -134,7 +134,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
134
134
|
type: import("vue").PropType<string>;
|
|
135
135
|
};
|
|
136
136
|
size: {
|
|
137
|
-
type: import("vue").PropType<"
|
|
137
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
138
138
|
};
|
|
139
139
|
disabled: {
|
|
140
140
|
type: import("vue").PropType<boolean>;
|
|
@@ -206,9 +206,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
206
206
|
type: import("vue").PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
207
207
|
};
|
|
208
208
|
}>> & Readonly<{
|
|
209
|
+
onInput?: ((value: string) => any) | undefined;
|
|
209
210
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
210
211
|
onChange?: ((value: string) => any) | undefined;
|
|
211
|
-
onInput?: ((value: string) => any) | undefined;
|
|
212
212
|
onClear?: (() => any) | undefined;
|
|
213
213
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
214
214
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -244,7 +244,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
244
244
|
type: import("vue").PropType<string>;
|
|
245
245
|
};
|
|
246
246
|
size: {
|
|
247
|
-
type: import("vue").PropType<"
|
|
247
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
248
248
|
};
|
|
249
249
|
disabled: {
|
|
250
250
|
type: import("vue").PropType<boolean>;
|
|
@@ -316,9 +316,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
316
316
|
type: import("vue").PropType<string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null>;
|
|
317
317
|
};
|
|
318
318
|
}>> & Readonly<{
|
|
319
|
+
onInput?: ((value: string) => any) | undefined;
|
|
319
320
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
320
321
|
onChange?: ((value: string) => any) | undefined;
|
|
321
|
-
onInput?: ((value: string) => any) | undefined;
|
|
322
322
|
onClear?: (() => any) | undefined;
|
|
323
323
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
324
324
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -346,9 +346,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
346
346
|
clear: () => void;
|
|
347
347
|
resizeTextarea: () => void;
|
|
348
348
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
349
|
+
input: (value: string) => void;
|
|
349
350
|
"update:modelValue": (value: string) => void;
|
|
350
351
|
change: (value: string) => void;
|
|
351
|
-
input: (value: string) => void;
|
|
352
352
|
clear: () => void;
|
|
353
353
|
blur: (evt: FocusEvent) => void;
|
|
354
354
|
compositionend: (evt: CompositionEvent) => void;
|
|
@@ -60,9 +60,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
60
60
|
/** @description resize textarea. */
|
|
61
61
|
resizeTextarea: () => void;
|
|
62
62
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
input: (value: string) => void;
|
|
63
64
|
"update:modelValue": (value: string) => void;
|
|
64
65
|
change: (value: string) => void;
|
|
65
|
-
input: (value: string) => void;
|
|
66
66
|
clear: () => void;
|
|
67
67
|
blur: (evt: FocusEvent) => void;
|
|
68
68
|
compositionend: (evt: CompositionEvent) => void;
|
|
@@ -76,9 +76,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
76
76
|
prefixClick: (value: any) => void;
|
|
77
77
|
enter: () => void;
|
|
78
78
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputProps>>> & Readonly<{
|
|
79
|
+
onInput?: ((value: string) => any) | undefined;
|
|
79
80
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
80
81
|
onChange?: ((value: string) => any) | undefined;
|
|
81
|
-
onInput?: ((value: string) => any) | undefined;
|
|
82
82
|
onClear?: (() => any) | undefined;
|
|
83
83
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
84
84
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),T=require("@vft/constants"),Y=require("@vft/use"),s=require("@vft/utils");require("../form/index.cjs");const b=require("../icon/index.cjs"),Z=require("@vueuse/core"),q=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Be=require("lodash-es"),_=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const ee=require("./utils.cjs"),te=require("../form/hooks/use-form-common-props.cjs"),oe=require("../form/hooks/use-form-item.cjs"),Ve=["role"],Ie=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Se=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],ze=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:{[T.UPDATE_MODEL_EVENT]:t=>s.isString(t),input:t=>s.isString(t),change:t=>s.isString(t),suffixClick:t=>s.isString(t),prefixClick:t=>s.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:ne,emit:ae}){const l=ae,p=e.useAttrs(),i=e.useSlots(),F=e.computed(()=>{const o={};return t.containerRole==="combobox"&&(o["aria-haspopup"]=p["aria-haspopup"],o["aria-owns"]=p["aria-owns"],o["aria-expanded"]=p["aria-expanded"]),o}),le=e.computed(()=>[t.type==="textarea"?A.b():n.b(),n.m(ie.value),n.is("disabled",c.value),n.is("exceed",fe.value),n.is("focus",m.value),{[n.b("group")]:i.prepend||i.append,[n.bm("group","append")]:i.append,[n.bm("group","prepend")]:i.prepend,[n.m("prefix")]:i.prefix||t.prefixIcon,[n.m("suffix")]:i.suffix||t.suffixIcon||t.clearable||t.showPassword,[n.bm("suffix","password-clear")]:E.value&&z.value},p.class]),se=e.getCurrentInstance(),re=e.computed(()=>[n.e("wrapper"),n.is("focus",m.value)]),r=Y.useAttrs({excludeKeys:e.computed(()=>Object.keys(F.value))}),{form:ue,formItem:C}=oe.useFormItem(),{inputId:M}=oe.useFormItemInputId(se.props,{formItemContext:C}),ie=te.useFormSize(),c=te.useFormDisabled(),n=_.useNamespace("input"),A=_.useNamespace("textarea"),w=e.shallowRef(),d=e.shallowRef(),m=e.ref(!1),V=e.ref(!1),v=e.ref(!1),x=e.ref(!1),D=e.ref(),I=e.shallowRef(t.inputStyle),y=e.computed(()=>w.value||d.value),S=e.computed(()=>s.singleAttrToObj(t.prefixIcon,"icon",{size:16})),O=e.computed(()=>s.singleAttrToObj(t.suffixIcon,"icon",{size:16})),ce=e.computed(()=>s.singleAttrToObj(t.clearIcon,"icon",{icon:"icon-circle-close",size:16})),R=e.computed(()=>ue?.statusIcon??!1),h=e.computed(()=>C?.validateState||""),K=e.computed(()=>h.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[h.value]),de=e.computed(()=>x.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),me=e.computed(()=>[p.style,t.inputStyle]),$=e.computed(()=>[t.inputStyle,I.value,{resize:t.resize}]),u=e.computed(()=>Be.isNil(t.modelValue)?"":String(t.modelValue)),E=e.computed(()=>t.clearable&&!c.value&&!t.readonly&&!!u.value&&(m.value||V.value)),z=e.computed(()=>t.showPassword&&!c.value&&!t.readonly&&!!u.value&&(!!u.value||m.value)),f=e.computed(()=>t.showWordLimit&&!!r.value.maxlength&&(t.type==="text"||t.type==="textarea")&&!c.value&&!t.readonly&&!t.showPassword),N=e.computed(()=>Array.from(u.value).length),fe=e.computed(()=>!!f.value&&N.value>Number(r.value.maxlength)),pe=e.computed(()=>!!i.suffix||!!t.suffixIcon||E.value||t.showPassword||f.value||!!h.value&&R.value),[ve,ye]=Y.useCursor(w);Z.useResizeObserver(d,o=>{if(!f.value||t.resize!=="both")return;const a=o[0],{width:k}=a.contentRect;D.value={right:`calc(100% - ${k+15+6}px)`}});const B=()=>{if(!(!Z.isClient||t.type!=="textarea"))if(t.autosize){const o=s.isObject(t.autosize)?t.autosize.minRows:void 0,a=s.isObject(t.autosize)?t.autosize.maxRows:void 0;I.value={...ee.calcTextareaHeight(d.value,o,a)}}else I.value={minHeight:ee.calcTextareaHeight(d.value).minHeight}},g=()=>{const o=y.value;!o||o.value===u.value||(o.value=u.value)},P=async o=>{ve();let{value:a}=o.target;if(r.value.maxlength&&a.length>=r.value.maxlength&&(a=a.slice(0,Number(r.value.maxlength))),t.formatter&&(a=t.parser?t.parser(a):a,a=t.formatter(a)),!v.value){if(a===u.value){g();return}l(T.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),g(),ye()}},j=o=>{l("change",o.target.value)},he=()=>{l("suffixClick",t.modelValue)},ge=()=>{l("prefixClick",t.modelValue)},L=o=>{l("compositionstart",o),v.value=!0},ke=o=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(o),W=o=>{l("compositionupdate",o);const a=o.target?.value,k=a[a.length-1]||"";v.value=!ke(k)},H=o=>{l("compositionend",o),v.value&&(v.value=!1,P(o))},be=()=>{x.value=!x.value,U()},U=async()=>{await e.nextTick(),y.value?.focus()},Ce=()=>y.value?.blur(),G=o=>{m.value=!0,l("focus",o)},J=o=>{m.value=!1,l("blur",o),t.validateEvent&&C?.validate?.("blur").catch(a=>q.debugWarn(a))},we=o=>{V.value=!1,l("mouseleave",o)},xe=o=>{V.value=!0,l("mouseenter",o)},Q=o=>{let a=o.key;if(o.target.type==="number"&&["e","+","-0","E"].includes(a))return o.returnValue=!1,!1;l("keydown",o)},Ee=()=>{y.value?.select()},X=()=>{l(T.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>t.modelValue,()=>{e.nextTick(()=>B()),t.validateEvent&&C?.validate?.("change").catch(o=>q.debugWarn(o))}),e.watch(u,()=>g()),e.watch(()=>t.type,async()=>{await e.nextTick(),g(),B()}),e.onMounted(()=>{!t.formatter&&t.parser&&q.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),g(),e.nextTick(B)}),ne({input:w,textarea:d,ref:y,textareaStyle:$,autosize:t.autosize,focus:U,blur:Ce,select:Ee,clear:X,resizeTextarea:B}),(o,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(F.value,{class:le.value,style:me.value,role:o.containerRole,onMouseenter:xe,onMouseleave:we}),[o.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).be("group","prepend"))},[e.renderSlot(o.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(re.value)},[o.$slots.prefix||S.value?.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("prefix-inner")),onClick:ge},[e.renderSlot(o.$slots,"prefix"),S.value?.icon?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:0,pointer:""},S.value,{class:e.unref(n).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(M),ref_key:"input",ref:w,class:e.unref(n).e("inner")},e.unref(r),{type:o.showPassword?x.value?"text":"password":o.type,disabled:e.unref(c),formatter:o.formatter,parser:o.parser,readonly:o.readonly,autocomplete:o.autocomplete,tabindex:o.tabindex,"aria-label":o.label,placeholder:o.placeholder,style:o.inputStyle,form:o.form,onCompositionstart:L,onCompositionupdate:W,onCompositionend:H,onInput:P,onFocus:G,onBlur:J,onChange:j,onKeydown:Q,onKeyup:a[0]||(a[0]=e.withKeys(k=>l("enter"),["enter"]))}),null,16,Ie),pe.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(n).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("suffix-inner")),onClick:he},[!E.value||!z.value||!f.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(o.$slots,"suffix"),O.value?.icon?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:0},O.value,{class:e.unref(n).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(n).e("icon"),e.unref(n).e("clear")]},ce.value,{onMousedown:e.withModifiers(e.unref(s.noop),["prevent"]),onClick:e.withModifiers(X,["stop"])}),null,16,["class","onMousedown"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:2},de.value,{class:[e.unref(n).e("icon"),e.unref(n).e("password")],onClick:be}),null,16,["class"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(n).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("count-inner"))},e.toDisplayString(N.value)+" / "+e.toDisplayString(e.unref(r).maxlength),3)],2)):e.createCommentVNode("",!0),h.value&&K.value&&R.value?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),{key:4,icon:K.value,class:e.normalizeClass([e.unref(n).e("icon"),e.unref(n).e("validateIcon"),e.unref(n).is("loading",h.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),o.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n).be("group","append"))},[e.renderSlot(o.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(M),ref_key:"textarea",ref:d,class:e.unref(A).e("inner")},e.unref(r),{tabindex:o.tabindex,disabled:e.unref(c),readonly:o.readonly,autocomplete:o.autocomplete,style:$.value,"aria-label":o.label,placeholder:o.placeholder,form:o.form,onCompositionstart:L,onCompositionupdate:W,onCompositionend:H,onInput:P,onFocus:G,onBlur:J,onChange:j,onKeydown:Q}),null,16,Se),f.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(D.value),class:e.normalizeClass(e.unref(n).e("count"))},e.toDisplayString(N.value)+" / "+e.toDisplayString(e.unref(r).maxlength),7)):e.createCommentVNode("",!0)],64))],16,Ve)),[[e.vShow,o.type!=="hidden"]])}});exports.default=ze;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),T=require("@vft/constants"),Y=require("@vft/use"),s=require("@vft/utils");require("../form/index.cjs");const b=require("../icon/index.cjs"),Z=require("@vueuse/core"),q=require("../../utils/error.cjs");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const Be=require("lodash-es"),_=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const ee=require("./utils.cjs"),te=require("../form/hooks/use-form-common-props.cjs"),oe=require("../form/hooks/use-form-item.cjs"),Ve=["role"],Ie=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Se=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],ze=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:{[T.UPDATE_MODEL_EVENT]:t=>s.isString(t),input:t=>s.isString(t),change:t=>s.isString(t),suffixClick:t=>s.isString(t),prefixClick:t=>s.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:ne,emit:ae}){const l=ae,p=e.useAttrs(),i=e.useSlots(),F=e.computed(()=>{const o={};return t.containerRole==="combobox"&&(o["aria-haspopup"]=p["aria-haspopup"],o["aria-owns"]=p["aria-owns"],o["aria-expanded"]=p["aria-expanded"]),o}),le=e.computed(()=>[t.type==="textarea"?A.b():n.b(),n.m(ie.value),n.is("disabled",c.value),n.is("exceed",fe.value),n.is("focus",m.value),{[n.b("group")]:i.prepend||i.append,[n.bm("group","append")]:i.append,[n.bm("group","prepend")]:i.prepend,[n.m("prefix")]:i.prefix||t.prefixIcon,[n.m("suffix")]:i.suffix||t.suffixIcon||t.clearable||t.showPassword,[n.bm("suffix","password-clear")]:E.value&&z.value},p.class]),se=e.getCurrentInstance(),re=e.computed(()=>[n.e("wrapper"),n.is("focus",m.value)]),r=Y.useAttrs({excludeKeys:e.computed(()=>Object.keys(F.value))}),{form:ue,formItem:C}=oe.useFormItem(),{inputId:M}=oe.useFormItemInputId(se.props,{formItemContext:C}),ie=te.useFormSize(),c=te.useFormDisabled(),n=_.useNamespace("input"),A=_.useNamespace("textarea"),w=e.shallowRef(),d=e.shallowRef(),m=e.ref(!1),V=e.ref(!1),v=e.ref(!1),x=e.ref(!1),D=e.ref(),I=e.shallowRef(t.inputStyle),y=e.computed(()=>w.value||d.value),S=e.computed(()=>s.singleAttrToObj(t.prefixIcon,"icon",{size:16})),O=e.computed(()=>s.singleAttrToObj(t.suffixIcon,"icon",{size:16})),ce=e.computed(()=>s.singleAttrToObj(t.clearIcon,"icon",{icon:"icon-circle-close",size:16})),R=e.computed(()=>ue?.statusIcon??!1),h=e.computed(()=>C?.validateState||""),K=e.computed(()=>h.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[h.value]),de=e.computed(()=>x.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),me=e.computed(()=>[p.style,t.inputStyle]),$=e.computed(()=>[t.inputStyle,I.value,{resize:t.resize}]),u=e.computed(()=>Be.isNil(t.modelValue)?"":String(t.modelValue)),E=e.computed(()=>t.clearable&&!c.value&&!t.readonly&&!!u.value&&(m.value||V.value)),z=e.computed(()=>t.showPassword&&!c.value&&!t.readonly&&!!u.value&&(!!u.value||m.value)),f=e.computed(()=>t.showWordLimit&&!!r.value.maxlength&&(t.type==="text"||t.type==="textarea")&&!c.value&&!t.readonly&&!t.showPassword),N=e.computed(()=>Array.from(u.value).length),fe=e.computed(()=>!!f.value&&N.value>Number(r.value.maxlength)),pe=e.computed(()=>!!i.suffix||!!t.suffixIcon||E.value||t.showPassword||f.value||!!h.value&&R.value),[ve,ye]=Y.useCursor(w);Z.useResizeObserver(d,o=>{if(!f.value||t.resize!=="both")return;const a=o[0],{width:k}=a.contentRect;D.value={right:`calc(100% - ${k+15+6}px)`}});const B=()=>{if(!(!Z.isClient||t.type!=="textarea"))if(t.autosize){const o=s.isObject(t.autosize)?t.autosize.minRows:void 0,a=s.isObject(t.autosize)?t.autosize.maxRows:void 0;I.value={...ee.calcTextareaHeight(d.value,o,a)}}else I.value={minHeight:ee.calcTextareaHeight(d.value).minHeight}},g=()=>{const o=y.value;!o||o.value===u.value||(o.value=u.value)},P=async o=>{ve();let{value:a}=o.target;if(r.value.maxlength&&a.length>=r.value.maxlength&&(a=a.slice(0,Number(r.value.maxlength))),t.formatter&&(a=t.parser?t.parser(a):a,a=t.formatter(a)),!v.value){if(a===u.value){g();return}l(T.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),g(),ye()}},j=o=>{l("change",o.target.value)},he=()=>{l("suffixClick",t.modelValue)},ge=()=>{l("prefixClick",t.modelValue)},L=o=>{l("compositionstart",o),v.value=!0},ke=o=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(o),W=o=>{l("compositionupdate",o);const a=o.target?.value,k=a[a.length-1]||"";v.value=!ke(k)},H=o=>{l("compositionend",o),v.value&&(v.value=!1,P(o))},be=()=>{x.value=!x.value,U()},U=async()=>{await e.nextTick(),y.value?.focus()},Ce=()=>y.value?.blur(),G=o=>{m.value=!0,l("focus",o)},J=o=>{m.value=!1,l("blur",o),t.validateEvent&&C?.validate?.("blur").catch(a=>q.debugWarn(a))},we=o=>{V.value=!1,l("mouseleave",o)},xe=o=>{V.value=!0,l("mouseenter",o)},Q=o=>{let a=o.key;if(o.target.type==="number"&&["e","+","-0","E"].includes(a))return o.returnValue=!1,!1;l("keydown",o)},Ee=()=>{y.value?.select()},X=()=>{l(T.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>t.modelValue,()=>{e.nextTick(()=>B()),t.validateEvent&&C?.validate?.("change").catch(o=>q.debugWarn(o))}),e.watch(u,()=>g()),e.watch(()=>t.type,async()=>{await e.nextTick(),g(),B()}),e.onMounted(()=>{!t.formatter&&t.parser&&q.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),g(),e.nextTick(B)}),ne({input:w,textarea:d,ref:y,textareaStyle:$,autosize:t.autosize,focus:U,blur:Ce,select:Ee,clear:X,resizeTextarea:B}),(o,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(F.value,{class:le.value,style:me.value,role:o.containerRole,onMouseenter:xe,onMouseleave:we}),[o.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).be("group","prepend"))},[e.renderSlot(o.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(re.value)},[o.$slots.prefix||S.value?.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("prefix-inner")),onClick:ge},[e.renderSlot(o.$slots,"prefix"),S.value?.icon?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:0,pointer:""},S.value,{class:e.unref(n).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(M),ref_key:"input",ref:w,class:e.unref(n).e("inner")},e.unref(r),{type:o.showPassword?x.value?"text":"password":o.type,disabled:e.unref(c),formatter:o.formatter,parser:o.parser,readonly:o.readonly,autocomplete:o.autocomplete,tabindex:o.tabindex,"aria-label":o.label,placeholder:o.placeholder,style:o.inputStyle,form:o.form,onCompositionstart:L,onCompositionupdate:W,onCompositionend:H,onInput:P,onFocus:G,onBlur:J,onChange:j,onKeydown:Q,onKeyup:a[0]||(a[0]=e.withKeys(k=>l("enter"),["enter"]))}),null,16,Ie),pe.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(n).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("suffix-inner")),onClick:he},[!E.value||!z.value||!f.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(o.$slots,"suffix"),O.value?.icon?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:0},O.value,{class:e.unref(n).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(n).e("icon"),e.unref(n).e("clear")]},ce.value,{onMousedown:e.withModifiers(e.unref(s.noop),["prevent"]),onClick:e.withModifiers(X,["stop"])}),null,16,["class","onMousedown"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),e.mergeProps({key:2},de.value,{class:[e.unref(n).e("icon"),e.unref(n).e("password")],onClick:be}),null,16,["class"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(n).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("count-inner"))},e.toDisplayString(N.value)+" / "+e.toDisplayString(e.unref(r).maxlength),3)],2)):e.createCommentVNode("",!0),h.value&&K.value&&R.value?(e.openBlock(),e.createBlock(e.unref(b.VftIcon),{key:4,icon:K.value,class:e.normalizeClass([e.unref(n).e("icon"),e.unref(n).e("validateIcon"),e.unref(n).is("loading",h.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),o.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n).be("group","append"))},[e.renderSlot(o.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(M),ref_key:"textarea",ref:d,class:e.unref(A).e("inner")},e.unref(r),{tabindex:o.tabindex,disabled:e.unref(c),readonly:o.readonly,autocomplete:o.autocomplete,style:$.value,"aria-label":o.label,placeholder:o.placeholder,form:o.form,onCompositionstart:L,onCompositionupdate:W,onCompositionend:H,onInput:P,onFocus:G,onBlur:J,onChange:j,onKeydown:Q}),null,16,Se),f.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(D.value),class:e.normalizeClass(e.unref(n).e("count"))},e.toDisplayString(N.value)+" / "+e.toDisplayString(e.unref(r).maxlength),7)):e.createCommentVNode("",!0)],64))],16,Ve)),[[e.vShow,o.type!=="hidden"]])}});exports.default=ze;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const u=require("./input-number.vue2.cjs"),e=r.withInstall(u.default);exports.VftInputNumber=e;exports.default=e;
|
|
@@ -26,7 +26,7 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
26
26
|
type: import("vue").PropType<boolean>;
|
|
27
27
|
};
|
|
28
28
|
size: {
|
|
29
|
-
type: import("vue").PropType<"
|
|
29
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
30
30
|
};
|
|
31
31
|
controls: {
|
|
32
32
|
type: import("vue").PropType<boolean>;
|
|
@@ -87,7 +87,7 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
87
87
|
type: import("vue").PropType<boolean>;
|
|
88
88
|
};
|
|
89
89
|
size: {
|
|
90
|
-
type: import("vue").PropType<"
|
|
90
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
91
91
|
};
|
|
92
92
|
controls: {
|
|
93
93
|
type: import("vue").PropType<boolean>;
|
|
@@ -114,9 +114,9 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
114
114
|
type: import("vue").PropType<boolean>;
|
|
115
115
|
};
|
|
116
116
|
}>> & Readonly<{
|
|
117
|
+
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
117
118
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
118
119
|
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
119
|
-
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
120
120
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
121
121
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
122
122
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
@@ -80,9 +80,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
blur: (e: FocusEvent) => void;
|
|
81
81
|
focus: (e: FocusEvent) => void;
|
|
82
82
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InputNumberProps>>> & Readonly<{
|
|
83
|
+
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
83
84
|
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
84
85
|
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
85
|
-
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
86
86
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
87
87
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
88
88
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -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 M=require("../icon/index.cjs"),$=require("../input/index.cjs"),o=require("../../constants/event.cjs");require("@vueuse/core");const y=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const f=require("lodash-es"),G=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const x=require("./directives.cjs"),R=require("../form/hooks/use-form-item.cjs"),S=require("../form/hooks/use-form-common-props.cjs"),H=t.defineComponent({name:"vft-input-number"}),Y=t.defineComponent({...H,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,N)=>N!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[o.INPUT_EVENT]:n=>l.isNumber(n)||f.isNil(n),[o.UPDATE_MODEL_EVENT]:n=>l.isNumber(n)||f.isNil(n)},setup(n,{expose:N,emit:O}){const c=G.useNamespace("input-number"),s=O,d=t.ref(),r=t.reactive({currentValue:n.modelValue,userInput:null}),{formItem:T}=R.useFormItem(),g=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue<=n.min),P=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue>=n.max),U=t.computed(()=>{const e=
|
|
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 M=require("../icon/index.cjs"),$=require("../input/index.cjs"),o=require("../../constants/event.cjs");require("@vueuse/core");const y=require("../../utils/error.cjs");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const f=require("lodash-es"),G=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const x=require("./directives.cjs"),R=require("../form/hooks/use-form-item.cjs"),S=require("../form/hooks/use-form-common-props.cjs"),H=t.defineComponent({name:"vft-input-number"}),Y=t.defineComponent({...H,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,N)=>N!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[o.INPUT_EVENT]:n=>l.isNumber(n)||f.isNil(n),[o.UPDATE_MODEL_EVENT]:n=>l.isNumber(n)||f.isNil(n)},setup(n,{expose:N,emit:O}){const c=G.useNamespace("input-number"),s=O,d=t.ref(),r=t.reactive({currentValue:n.modelValue,userInput:null}),{formItem:T}=R.useFormItem(),g=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue<=n.min),P=t.computed(()=>n.modelValue&&l.isNumber(n.modelValue)&&n.modelValue>=n.max),U=t.computed(()=>{const e=q(n.step);return l.isUndefined(n.precision)?Math.max(q(n.modelValue),e):(e>n.precision&&y.debugWarn("InputNumber","precision should not be less than the decimal places of step"),n.precision)}),v=t.computed(()=>n.controls&&n.controlsPosition==="right"),C=S.useFormSize(),m=S.useFormDisabled(),V=t.computed(()=>{if(r.userInput!==null)return r.userInput;let e=r.currentValue;if(f.isNil(e))return"";if(l.isNumber(e)){if(Number.isNaN(e))return"";l.isUndefined(n.precision)||(e=e?.toFixed(n.precision))}return e}),E=(e,u)=>{if(l.isUndefined(u)&&(u=U.value),u===0)return Math.round(e);let i=String(e);const a=i.indexOf(".");if(a===-1||!i.replace(".","").split("")[a+u])return e;const F=i.length;return i.charAt(F-1)==="5"&&(i=`${i.slice(0,Math.max(0,F-1))}6`),Number.parseFloat(Number(i).toFixed(u))},q=e=>{if(f.isNil(e))return 0;const u=e.toString(),i=u.indexOf(".");let a=0;return i!==-1&&(a=u.length-i-1),a},A=(e,u=1)=>l.isNumber(e)?E(e+n.step*u):r.currentValue,h=()=>{if(n.readonly||m.value||P.value)return;const e=Number(V.value)||0,u=A(e);b(u),s(o.INPUT_EVENT,r.currentValue)},I=()=>{if(n.readonly||m.value||g.value)return;const e=Number(V.value)||0,u=A(e,-1);b(u),s(o.INPUT_EVENT,r.currentValue)},w=(e,u)=>{let i=Number(e);if(f.isNil(e)||Number.isNaN(i))return null;if(e===""){if(n.valueOnClear===null)return null;i=l.isString(n.valueOnClear)?{min:n.min,max:n.max}[n.valueOnClear]:n.valueOnClear}return n.stepStrictly&&(i=E(Math.round(i/n.step)*n.step,n.precision)),l.isUndefined(n.precision)||(i=E(i,n.precision)),(i>n.max||i<n.min)&&(i=i>n.max?n.max:n.min,u&&s(o.UPDATE_MODEL_EVENT,i)),i},b=(e,u=!0)=>{const i=r.currentValue,a=w(e);if(!u){s(o.UPDATE_MODEL_EVENT,a);return}i!==a&&(r.userInput=null,s(o.UPDATE_MODEL_EVENT,a),s(o.CHANGE_EVENT,a,i),n.validateEvent&&T?.validate?.("change").catch(D=>y.debugWarn(D)),r.currentValue=a)},B=e=>{r.userInput=e;const u=e===""?null:Number(e);s(o.INPUT_EVENT,u),b(u,!1)},k=e=>{const u=e!==""?Number(e):"";(l.isNumber(u)&&!Number.isNaN(u)||e==="")&&b(u),r.userInput=null},z=()=>{d.value?.focus?.()},K=()=>{d.value?.blur?.()},L=e=>{s("focus",e)},W=e=>{s("blur",e),n.validateEvent&&T?.validate?.("blur").catch(u=>y.debugWarn(u))};return t.watch(()=>n.modelValue,e=>{const u=w(r.userInput),i=w(e,!0);!l.isNumber(u)&&(!u||u!==i)&&(r.currentValue=i,r.userInput=null)},{immediate:!0}),t.onMounted(()=>{const e=d.value?.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(m.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(()=>{d.value?.input?.setAttribute("aria-valuenow",`${r.currentValue}`)}),N({focus:z,blur:K}),(e,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(c).b(),t.unref(c).m(t.unref(C)),t.unref(c).is("disabled",t.unref(m)),t.unref(c).is("without-controls",!e.controls),t.unref(c).is("controls-right",v.value)]),onDragstart:u[1]||(u[1]=t.withModifiers(()=>{},["prevent"]))},[e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,role:"button",class:t.normalizeClass([t.unref(c).e("decrease"),t.unref(c).is("disabled",g.value)]),onKeydown:t.withKeys(I,["enter"])},[t.createVNode(t.unref(M.VftIcon),{icon:v.value?"icon-arrow-down":"icon-minus"},null,8,["icon"])],34)),[[t.unref(x.vRepeatClick),I]]):t.createCommentVNode("",!0),e.controls?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:1,role:"button",class:t.normalizeClass([t.unref(c).e("increase"),t.unref(c).is("disabled",P.value)]),onKeydown:t.withKeys(h,["enter"])},[t.createVNode(t.unref(M.VftIcon),{icon:v.value?"icon-arrow-up":"icon-plus"},null,8,["icon"])],34)),[[t.unref(x.vRepeatClick),h]]):t.createCommentVNode("",!0),t.createVNode(t.unref($.VftInput),{id:e.id,ref_key:"input",ref:d,type:"number",step:e.step,"model-value":V.value,placeholder:e.placeholder,readonly:e.readonly,disabled:t.unref(m),size:t.unref(C),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:u[0]||(u[0]=t.withModifiers(()=>{},["prevent"])),onKeydown:[t.withKeys(t.withModifiers(h,["prevent"]),["up"]),t.withKeys(t.withModifiers(I,["prevent"]),["down"])],onBlur:W,onFocus:L,onInput:B,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});exports.default=Y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("vue");require("@vueuse/core");const l=require("@vft/utils");require("../../../utils/ns-cover.cjs");require("lodash-es");const x=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");function C({wrapperRef:f,handleDragged:S,afterDragged:P}){const d=x.useNamespace("input-tag"),p=D.shallowRef(),s=D.ref(!1);let e,o,a,t;function v(r){return`.${d.e("inner")} .${d.namespace.value}-tag:nth-child(${r+1})`}function $(r,n){e=n,o=f.value.querySelector(v(n)),o&&(o.style.opacity="0.5"),r.dataTransfer.effectAllowed="move"}function b(r,n){if(a=n,r.preventDefault(),r.dataTransfer.dropEffect="move",l.isUndefined(e)||e===n){s.value=!1;return}const i=f.value.querySelector(v(n)).getBoundingClientRect(),h=e+1!==n,q=e-1!==n,y=r.clientX-i.left,I=h?q?.5:1:-1,M=q?h?.5:0:1;y<=i.width*I?t="before":y>i.width*M?t="after":t=void 0;const T=f.value.querySelector(`.${d.e("inner")}`),c=T.getBoundingClientRect(),u=Number.parseFloat(l.getStyle(T,"gap"))/2,N=i.top-c.top;let g=-9999;if(t==="before")g=Math.max(i.left-c.left-u,Math.floor(-u/2));else if(t==="after"){const m=i.right-c.left;g=m+(c.width===m?Math.floor(u/2):u)}l.setStyle(p.value,{top:`${N}px`,left:`${g}px`}),s.value=!!t}function w(r){r.preventDefault(),o&&(o.style.opacity=""),t&&!l.isUndefined(e)&&!l.isUndefined(a)&&e!==a&&S(e,a,t),s.value=!1,e=void 0,o=null,a=void 0,t=void 0,P?.()}return{dropIndicatorRef:p,showDropIndicator:s,handleDragStart:$,handleDragOver:b,handleDragEnd:w}}exports.useDragTag=C;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("vue");require("@vueuse/core");const l=require("@vft/utils");require("../../config-provider/hooks/use-global-config.cjs");require("../../../utils/ns-cover.cjs");require("lodash-es");const x=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");function C({wrapperRef:f,handleDragged:S,afterDragged:P}){const d=x.useNamespace("input-tag"),p=D.shallowRef(),s=D.ref(!1);let e,o,a,t;function v(r){return`.${d.e("inner")} .${d.namespace.value}-tag:nth-child(${r+1})`}function $(r,n){e=n,o=f.value.querySelector(v(n)),o&&(o.style.opacity="0.5"),r.dataTransfer.effectAllowed="move"}function b(r,n){if(a=n,r.preventDefault(),r.dataTransfer.dropEffect="move",l.isUndefined(e)||e===n){s.value=!1;return}const i=f.value.querySelector(v(n)).getBoundingClientRect(),h=e+1!==n,q=e-1!==n,y=r.clientX-i.left,I=h?q?.5:1:-1,M=q?h?.5:0:1;y<=i.width*I?t="before":y>i.width*M?t="after":t=void 0;const T=f.value.querySelector(`.${d.e("inner")}`),c=T.getBoundingClientRect(),u=Number.parseFloat(l.getStyle(T,"gap"))/2,N=i.top-c.top;let g=-9999;if(t==="before")g=Math.max(i.left-c.left-u,Math.floor(-u/2));else if(t==="after"){const m=i.right-c.left;g=m+(c.width===m?Math.floor(u/2):u)}l.setStyle(p.value,{top:`${N}px`,left:`${g}px`}),s.value=!!t}function w(r){r.preventDefault(),o&&(o.style.opacity=""),t&&!l.isUndefined(e)&&!l.isUndefined(a)&&e!==a&&S(e,a,t),s.value=!1,e=void 0,o=null,a=void 0,t=void 0,P?.()}return{dropIndicatorRef:p,showDropIndicator:s,handleDragStart:$,handleDragOver:b,handleDragEnd:w}}exports.useDragTag=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");require("@vueuse/core");require("@vft/utils");require("../../../utils/ns-cover.cjs");require("lodash-es");const c=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");function y({props:t,isFocused:a,hovering:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");require("@vueuse/core");require("@vft/utils");require("../../config-provider/hooks/use-global-config.cjs");require("../../../utils/ns-cover.cjs");require("lodash-es");const c=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");function y({props:t,isFocused:a,hovering:r,disabled:l,inputValue:v,size:d,validateState:m,validateIcon:g,needStatusIcon:q}){const n=u.useAttrs(),s=u.useSlots(),e=c.useNamespace("input-tag"),f=c.useNamespace("input"),p=u.computed(()=>[e.b(),e.is("focused",a.value),e.is("hovering",r.value),e.is("disabled",l.value),e.m(d.value),e.e("wrapper"),n.class]),b=u.computed(()=>[n.style]),h=u.computed(()=>[e.e("inner"),e.is("draggable",t.draggable),e.is("left-space",!t.modelValue?.length&&!s.prefix),e.is("right-space",!t.modelValue?.length&&!o.value)]),i=u.computed(()=>t.clearable&&!l.value&&!t.readonly&&(t.modelValue?.length||v.value)&&(a.value||r.value)),o=u.computed(()=>s.suffix||i.value||m.value&&g.value&&q.value);return{ns:e,nsInput:f,containerKls:p,containerStyle:b,innerKls:h,showClear:i,showSuffix:o}}exports.useInputTagDom=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),f=require("../../../constants/aria.cjs"),n=require("../../../constants/event.cjs");require("@vueuse/core");const y=require("@vft/utils"),N=require("../../../utils/error.cjs");require("../../config-provider/hooks/use-global-config.cjs");require("../../../utils/ns-cover.cjs");const R=require("lodash-es");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const x=require("../../../hooks/use-composition/index.cjs"),z=require("../../../hooks/use-focus-controller/index.cjs");require("../../form/index.cjs");const C=require("../../form/hooks/use-form-common-props.cjs");function B({props:t,emit:l,formItem:g}){const d=C.useFormDisabled(),m=C.useFormSize(),i=r.shallowRef(),u=r.ref(),D=r.computed(()=>["small"].includes(m.value)?"small":"default"),_=r.computed(()=>t.modelValue?.length?void 0:t.placeholder),q=r.computed(()=>!(t.readonly||d.value)),E=r.computed(()=>y.isUndefined(t.max)?!1:(t.modelValue?.length??0)>=t.max),T=e=>{const a=[...t.modelValue??[],...R.castArray(e)];l(n.UPDATE_MODEL_EVENT,a),l(n.CHANGE_EVENT,a),l("add-tag",e),u.value=void 0},b=e=>{const a=e.split(t.delimiter).filter(o=>o&&o!==e);if(t.max){const o=t.max-(t.modelValue?.length??0);a.splice(o)}return a.length===1?a[0]:a},h=e=>{if(E.value){u.value=void 0;return}if(!v.value){if(t.delimiter&&u.value){const a=b(u.value);a.length&&T(a)}l(n.INPUT_EVENT,e.target.value)}},A=e=>{if(!v.value)switch(e.code){case t.trigger:e.preventDefault(),e.stopPropagation(),s();break;case f.EVENT_CODE.numpadEnter:t.trigger===f.EVENT_CODE.enter&&(e.preventDefault(),e.stopPropagation(),s());break;case f.EVENT_CODE.backspace:!u.value&&t.modelValue?.length&&(e.preventDefault(),e.stopPropagation(),V(t.modelValue.length-1));break}},s=()=>{const e=u.value?.trim();!e||E.value||T(e)},V=e=>{const a=(t.modelValue??[]).slice(),[o]=a.splice(e,1);l(n.UPDATE_MODEL_EVENT,a),l(n.CHANGE_EVENT,a),l("remove-tag",o)},P=()=>{u.value=void 0,l(n.UPDATE_MODEL_EVENT,void 0),l(n.CHANGE_EVENT,void 0),l("clear")},O=(e,a,o)=>{const c=(t.modelValue??[]).slice(),[S]=c.splice(e,1),k=a>e&&o==="before"?-1:a<e&&o==="after"?1:0;c.splice(a+k,0,S),l(n.UPDATE_MODEL_EVENT,c),l(n.CHANGE_EVENT,c)},U=()=>{i.value?.focus()},w=()=>{i.value?.blur()},{wrapperRef:F,isFocused:G}=z.useFocusController(i,{disabled:d,afterBlur(){t.saveOnBlur?s():u.value=void 0,t.validateEvent&&g?.validate?.("blur").catch(e=>N.debugWarn(e))}}),{isComposing:v,handleCompositionStart:H,handleCompositionUpdate:L,handleCompositionEnd:M}=x.useComposition({afterComposition:h});return r.watch(()=>t.modelValue,()=>{t.validateEvent&&g?.validate?.(n.CHANGE_EVENT).catch(e=>N.debugWarn(e))}),{inputRef:i,wrapperRef:F,isFocused:G,isComposing:v,inputValue:u,size:m,tagSize:D,placeholder:_,closable:q,disabled:d,inputLimit:E,handleDragged:O,handleInput:h,handleKeydown:A,handleAddTag:s,handleRemoveTag:V,handleClear:P,handleCompositionStart:H,handleCompositionUpdate:L,handleCompositionEnd:M,focus:U,blur:w}}exports.useInputTag=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const u=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const r=require("./input-tag.vue2.cjs"),e=require("./input-tag.cjs"),t=u.withInstall(r.default);exports.inputTagEmits=e.inputTagEmits;exports.inputTagProps=e.inputTagProps;exports.VftInputTag=t;exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const u=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const r=require("./input-tag.vue2.cjs"),e=require("./input-tag.cjs"),t=u.withInstall(r.default);exports.inputTagEmits=e.inputTagEmits;exports.inputTagProps=e.inputTagProps;exports.VftInputTag=t;exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@vueuse/core");const t=require("@vft/utils")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@vueuse/core");const t=require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");const n=require("../../constants/aria.cjs"),r=require("../../constants/event.cjs");require("../../utils/ns-cover.cjs");const i=require("../../utils/vue/props/runtime.cjs");require("vue");const a=i.buildProps({modelValue:{type:i.definePropType(Array)},max:Number,tagType:{type:String,default:"info"},tagEffect:{type:String},trigger:{type:i.definePropType(String),default:n.EVENT_CODE.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:{type:String},clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},ariaLabel:String}),o={[r.UPDATE_MODEL_EVENT]:e=>t.isArray(e)||t.isUndefined(e),[r.CHANGE_EVENT]:e=>t.isArray(e)||t.isUndefined(e),[r.INPUT_EVENT]:e=>t.isString(e),"add-tag":e=>t.isString(e)||t.isArray(e),"remove-tag":e=>t.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};exports.inputTagEmits=o;exports.inputTagProps=a;
|
|
@@ -19,7 +19,7 @@ export declare const inputTagProps: {
|
|
|
19
19
|
readonly draggable: BooleanConstructor;
|
|
20
20
|
readonly delimiter: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, RegExpConstructor], unknown, unknown, "", boolean>;
|
|
21
21
|
readonly size: {
|
|
22
|
-
readonly type: PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "
|
|
22
|
+
readonly type: PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "small" | "default" | "large") | (() => ComponentSize) | (((new (...args: any[]) => "" | "small" | "default" | "large") | (() => ComponentSize)) | null)[], unknown, unknown>>;
|
|
23
23
|
readonly required: false;
|
|
24
24
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
25
|
__epPropKey: true;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
25
25
|
readonly draggable: BooleanConstructor;
|
|
26
26
|
readonly delimiter: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, RegExpConstructor], unknown, unknown, "", boolean>;
|
|
27
27
|
readonly size: {
|
|
28
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "
|
|
28
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "small" | "default" | "large") | (() => import("vft/es/constants").ComponentSize) | (((new (...args: any[]) => "" | "small" | "default" | "large") | (() => import("vft/es/constants").ComponentSize)) | null)[], unknown, unknown>>;
|
|
29
29
|
readonly required: false;
|
|
30
30
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
31
31
|
__epPropKey: true;
|
|
@@ -84,7 +84,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
84
84
|
readonly draggable: BooleanConstructor;
|
|
85
85
|
readonly delimiter: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, RegExpConstructor], unknown, unknown, "", boolean>;
|
|
86
86
|
readonly size: {
|
|
87
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "
|
|
87
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "small" | "default" | "large") | (() => import("vft/es/constants").ComponentSize) | (((new (...args: any[]) => "" | "small" | "default" | "large") | (() => import("vft/es/constants").ComponentSize)) | null)[], unknown, unknown>>;
|
|
88
88
|
readonly required: false;
|
|
89
89
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
90
|
__epPropKey: true;
|
|
@@ -113,19 +113,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
113
113
|
readonly saveOnBlur: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
114
114
|
readonly ariaLabel: StringConstructor;
|
|
115
115
|
}>> & Readonly<{
|
|
116
|
+
onInput?: ((value: string) => any) | undefined;
|
|
116
117
|
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
117
118
|
onChange?: ((value?: string[] | undefined) => any) | undefined;
|
|
118
|
-
onInput?: ((value: string) => any) | undefined;
|
|
119
119
|
onClear?: (() => any) | undefined;
|
|
120
120
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
121
121
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
122
122
|
"onRemove-tag"?: ((value: string) => any) | undefined;
|
|
123
123
|
"onAdd-tag"?: ((value: string | string[]) => any) | undefined;
|
|
124
124
|
}>, {
|
|
125
|
+
readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
126
|
readonly draggable: boolean;
|
|
126
127
|
readonly id: string;
|
|
127
128
|
readonly autofocus: boolean;
|
|
128
|
-
readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
129
129
|
readonly tabindex: import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
130
130
|
readonly trigger: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown>;
|
|
131
131
|
readonly readonly: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ae=require("../../hooks/use-attrs/index.cjs"),le=require("@vft/utils");require("@vueuse/core");require("../../utils/ns-cover.cjs");require("lodash-es");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const se=require("../../hooks/use-calc-input-width/index.cjs"),S=require("../icon/index.cjs"),ue=require("../tag/index.cjs");require("../form/index.cjs");const V=require("./input-tag.cjs"),ie=require("./composables/use-drag-tag.cjs"),de=require("./composables/use-hovering.cjs"),fe=require("./composables/use-input-tag.cjs"),ce=require("./composables/use-input-tag-dom.cjs"),w=require("../form/hooks/use-form-item.cjs"),pe=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],me=["textContent"],ge=e.defineComponent({name:"ElInputTag",inheritAttrs:!1}),ve=e.defineComponent({...ge,props:V.inputTagProps,emits:V.inputTagEmits,setup(T,{expose:E,emit:z}){const i=T,B=z,M=ae.useAttrs(),N=e.useSlots(),{form:R,formItem:d}=w.useFormItem(),{inputId:x}=w.useFormItemInputId(i,{formItemContext:d}),c=e.computed(()=>R?.statusIcon??!1),a=e.computed(()=>d?.validateState||""),$={validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"},p=e.computed(()=>a.value&&$[a.value]),{inputRef:F,wrapperRef:m,isFocused:L,inputValue:l,size:K,tagSize:P,placeholder:A,closable:g,disabled:v,handleDragged:H,handleInput:C,handleKeydown:I,handleRemoveTag:O,handleClear:U,handleCompositionStart:k,handleCompositionUpdate:y,handleCompositionEnd:h,focus:D,blur:j}=fe.useInputTag({props:i,emit:B,formItem:d}),{hovering:W,handleMouseEnter:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ae=require("../../hooks/use-attrs/index.cjs"),le=require("@vft/utils");require("@vueuse/core");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");require("lodash-es");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const se=require("../../hooks/use-calc-input-width/index.cjs"),S=require("../icon/index.cjs"),ue=require("../tag/index.cjs");require("../form/index.cjs");const V=require("./input-tag.cjs"),ie=require("./composables/use-drag-tag.cjs"),de=require("./composables/use-hovering.cjs"),fe=require("./composables/use-input-tag.cjs"),ce=require("./composables/use-input-tag-dom.cjs"),w=require("../form/hooks/use-form-item.cjs"),pe=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],me=["textContent"],ge=e.defineComponent({name:"ElInputTag",inheritAttrs:!1}),ve=e.defineComponent({...ge,props:V.inputTagProps,emits:V.inputTagEmits,setup(T,{expose:E,emit:z}){const i=T,B=z,M=ae.useAttrs(),N=e.useSlots(),{form:R,formItem:d}=w.useFormItem(),{inputId:x}=w.useFormItemInputId(i,{formItemContext:d}),c=e.computed(()=>R?.statusIcon??!1),a=e.computed(()=>d?.validateState||""),$={validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"},p=e.computed(()=>a.value&&$[a.value]),{inputRef:F,wrapperRef:m,isFocused:L,inputValue:l,size:K,tagSize:P,placeholder:A,closable:g,disabled:v,handleDragged:H,handleInput:C,handleKeydown:I,handleRemoveTag:O,handleClear:U,handleCompositionStart:k,handleCompositionUpdate:y,handleCompositionEnd:h,focus:D,blur:j}=fe.useInputTag({props:i,emit:B,formItem:d}),{hovering:W,handleMouseEnter:q,handleMouseLeave:b}=de.useHovering(),{calculatorRef:G,inputStyle:J}=se.useCalcInputWidth(),{dropIndicatorRef:Q,showDropIndicator:X,handleDragStart:Y,handleDragOver:Z,handleDragEnd:_}=ie.useDragTag({wrapperRef:m,handleDragged:H,afterDragged:D}),{ns:t,nsInput:f,containerKls:ee,containerStyle:ne,innerKls:re,showClear:oe,showSuffix:te}=ce.useInputTagDom({props:i,hovering:W,isFocused:L,inputValue:l,disabled:v,size:K,validateState:a,validateIcon:p,needStatusIcon:c});return E({focus:D,blur:j}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:m,class:e.normalizeClass(e.unref(ee)),style:e.normalizeStyle(e.unref(ne)),onMouseenter:n[7]||(n[7]=(...r)=>e.unref(q)&&e.unref(q)(...r)),onMouseleave:n[8]||(n[8]=(...r)=>e.unref(b)&&e.unref(b)(...r))},[e.unref(N).prefix?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t).e("prefix"))},[e.renderSlot(o.$slots,"prefix")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(re))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.modelValue,(r,s)=>(e.openBlock(),e.createBlock(e.unref(ue.VftTag),{key:s,size:e.unref(P),closable:e.unref(g),type:o.tagType,effect:o.tagEffect,draggable:e.unref(g)&&o.draggable,"disable-transitions":"",onClose:u=>e.unref(O)(s),onDragstart:u=>e.unref(Y)(u,s),onDragover:u=>e.unref(Z)(u,s),onDragend:e.unref(_),onDrop:n[0]||(n[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"tag",{value:r,index:s},()=>[e.createTextVNode(e.toDisplayString(r),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend"]))),128)),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("input-wrapper"))},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(x),ref_key:"inputRef",ref:F,"onUpdate:modelValue":n[1]||(n[1]=r=>e.isRef(l)?l.value=r:null)},e.unref(M),{type:"text",minlength:o.minlength,maxlength:o.maxlength,disabled:e.unref(v),readonly:o.readonly,autocomplete:o.autocomplete,tabindex:o.tabindex,placeholder:e.unref(A),autofocus:o.autofocus,ariaLabel:o.ariaLabel,class:e.unref(t).e("input"),style:e.unref(J),onCompositionstart:n[2]||(n[2]=(...r)=>e.unref(k)&&e.unref(k)(...r)),onCompositionupdate:n[3]||(n[3]=(...r)=>e.unref(y)&&e.unref(y)(...r)),onCompositionend:n[4]||(n[4]=(...r)=>e.unref(h)&&e.unref(h)(...r)),onInput:n[5]||(n[5]=(...r)=>e.unref(C)&&e.unref(C)(...r)),onKeydown:n[6]||(n[6]=(...r)=>e.unref(I)&&e.unref(I)(...r))}),null,16,pe),[[e.vModelText,e.unref(l)]]),e.createElementVNode("span",{ref_key:"calculatorRef",ref:G,"aria-hidden":"true",class:e.normalizeClass(e.unref(t).e("input-calculator")),textContent:e.toDisplayString(e.unref(l))},null,10,me)],2),e.withDirectives(e.createElementVNode("div",{ref_key:"dropIndicatorRef",ref:Q,class:e.normalizeClass(e.unref(t).e("drop-indicator"))},null,2),[[e.vShow,e.unref(X)]])],2),e.unref(te)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t).e("suffix"))},[e.renderSlot(o.$slots,"suffix"),e.unref(oe)?(e.openBlock(),e.createBlock(e.unref(S.VftIcon),{key:0,class:e.normalizeClass([e.unref(t).e("icon"),e.unref(t).e("clear")]),onMousedown:e.withModifiers(e.unref(le.noop),["prevent"]),onClick:e.unref(U),icon:"icon-circle-close"},null,8,["class","onMousedown","onClick"])):e.createCommentVNode("",!0),a.value&&p.value&&c.value?(e.openBlock(),e.createBlock(e.unref(S.VftIcon),{key:1,class:e.normalizeClass([e.unref(f).e("icon"),e.unref(f).e("validateIcon"),e.unref(f).is("loading",a.value==="validating")]),icon:"validateIcon"},null,8,["class"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],38))}});exports.default=ve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./link.vue2.cjs"),e=r.withInstall(t.default);exports.VftLink=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./link.vue2.cjs"),e=r.withInstall(t.default);exports.VftLink=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../icon/index.cjs");require("@vueuse/core");const d=require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash-es");const f=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const m=require("@vft/router");require("vue-router");const p=e.defineComponent({name:"vft-link"}),k=e.defineComponent({...p,props:{type:{default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},route:{},isReplace:{type:Boolean},icon:{}},emits:["click"],setup(r,{emit:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../icon/index.cjs");require("@vueuse/core");const d=require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");require("lodash-es");const f=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const m=require("@vft/router");require("vue-router");const p=e.defineComponent({name:"vft-link"}),k=e.defineComponent({...p,props:{type:{default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},route:{},isReplace:{type:Boolean},icon:{}},emits:["click"],setup(r,{emit:i}){const t=f.useNamespace("link"),l=i,u=e.getCurrentInstance().appContext.config.globalProperties.$router,{go:s}=m.useRouterHelper(u);function a(n){r.route&&s(r.route,r.isReplace),r.disabled||l("click",n)}const o=e.computed(()=>d.singleAttrToObj(r.icon,"icon"));return(n,b)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(n.type),e.unref(t).is("disabled",n.disabled),e.unref(t).is("underline",n.underline&&!n.disabled)]),onClick:a},[o.value?.icon?(e.openBlock(),e.createBlock(e.unref(c.VftIcon),e.normalizeProps(e.mergeProps({key:0},o.value)),null,16)):e.createCommentVNode("",!0),n.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(t).e("inner"))},[e.renderSlot(n.$slots,"default")],2)):e.createCommentVNode("",!0)],2))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const t=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const r=require("./list-cell.vue2.cjs"),e=t.withInstall(r.default);exports.VftListCell=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const t=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const r=require("./list-cell.vue2.cjs"),e=t.withInstall(r.default);exports.VftListCell=e;exports.default=e;
|
|
@@ -4,10 +4,10 @@ export declare const VftListCell: import("vft/es/utils").SFCWithInstall<import("
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
cellHeight: {
|
|
7
|
-
type: import("vue").PropType<
|
|
7
|
+
type: import("vue").PropType<number>;
|
|
8
8
|
};
|
|
9
9
|
leftTextDistance: {
|
|
10
|
-
type: import("vue").PropType<
|
|
10
|
+
type: import("vue").PropType<number>;
|
|
11
11
|
};
|
|
12
12
|
activeIndex: {
|
|
13
13
|
type: import("vue").PropType<number>;
|
|
@@ -20,10 +20,10 @@ export declare const VftListCell: import("vft/es/utils").SFCWithInstall<import("
|
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
22
|
cellHeight: {
|
|
23
|
-
type: import("vue").PropType<
|
|
23
|
+
type: import("vue").PropType<number>;
|
|
24
24
|
};
|
|
25
25
|
leftTextDistance: {
|
|
26
|
-
type: import("vue").PropType<
|
|
26
|
+
type: import("vue").PropType<number>;
|
|
27
27
|
};
|
|
28
28
|
activeIndex: {
|
|
29
29
|
type: import("vue").PropType<number>;
|
|
@@ -8,8 +8,8 @@ export type ListItem = {
|
|
|
8
8
|
};
|
|
9
9
|
export interface ListCellProps {
|
|
10
10
|
list: Array<ListItem>;
|
|
11
|
-
cellHeight?:
|
|
12
|
-
leftTextDistance?:
|
|
11
|
+
cellHeight?: number;
|
|
12
|
+
leftTextDistance?: number;
|
|
13
13
|
activeIndex?: number;
|
|
14
14
|
}
|
|
15
15
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ListCellProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../icon/index.cjs");require("@vueuse/core");const c=require("@vft/utils"),f=require("../../utils/helper.cjs"),v=require("../../utils/ns-cover.cjs");require("lodash-es");const C=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const h=["onClick"],p=e.defineComponent({name:"vft-list-cell"}),I=e.defineComponent({...p,props:{list:{default:()=>[]},cellHeight:{default:50},leftTextDistance:{default:8},activeIndex:{}},emits:["item-click"],setup(o,{emit:d}){const n=C.useNamespace("list-cell"),m=d,s=e.ref(o.activeIndex);e.computed(()=>o.list.map(t=>(t.leftIcon=c.singleAttrToObj(t.leftIcon,"icon",{size:16}),t.rightIcon=c.singleAttrToObj(t.rightIcon,"icon",{icon:"icon-arrow-right",size:16}),t)));const g=e.computed(()=>v.generateCssVars({height:f.addUnit(o.cellHeight),"left-text-distance":f.addUnit(o.leftTextDistance)},"list-cell"));function k(t,l){s.value=l,m("item-click",t,l)}const a=(t,l={})=>c.singleAttrToObj(t,"icon",{size:16,...l});return(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(g.value),class:e.normalizeClass(e.unref(n).b())},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(r,i)=>(e.openBlock(),e.createElementBlock("div",{onClick:q=>k(r,i),key:i,class:e.normalizeClass([e.unref(n).e("item"),e.unref(n).is("active",s.value===i)])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).m("left"))},[e.createVNode(e.unref(u.VftIcon),e.mergeProps({ref_for:!0},a(r.leftIcon)),null,16),e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("text"))},e.toDisplayString(r.text),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).m("right"))},[r?.rightContent?(e.openBlock(),e.createBlock(e.unref(c.VNode),{key:0,content:r.rightContent},null,8,["content"])):(e.openBlock(),e.createBlock(e.unref(u.VftIcon),e.mergeProps({key:1,ref_for:!0},a(r.rightIcon)),null,16))],2)],10,h))),128))],6))}});exports.default=I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vft/utils"),w=require("../icon/index.cjs");require("@vueuse/core");require("../../utils/ns-cover.cjs");require("lodash-es");const t=require("vue"),A=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");const T=require("../../hooks/use-z-index/index.cjs");function V(o){let u;const r=A.useNamespace("loading"),a=t.ref(!1),e=t.reactive({...o,originalPosition:"",originalOverflow:"",visible:!1});function p(n){e.text=n}t.watch(()=>e.visible,n=>{n||v()});function h(){const n=e.parent;if(!n.vLoadingAddClassList){let i=n.getAttribute("loading-number");i=Number.parseInt(i)-1,i?n.setAttribute("loading-number",i.toString()):(l.removeClass(n,r.bm("parent","relative")),n.removeAttribute("loading-number")),l.removeClass(n,r.bm("parent","hidden"))}d(),f.unmount()}function d(){s.$el?.parentNode?.removeChild(s.$el)}function v(){o.beforeClose&&!o.beforeClose()||(a.value=!0,clearTimeout(u),u=window.setTimeout(c,400),e.visible=!1,o.closed?.())}function c(){if(!a.value)return;const n=e.parent;a.value=!1,n.vLoadingAddClassList=void 0,h()}const x={name:"VftLoading",setup(n,{expose:i}){return()=>{const C=T.useZIndex();i({ns:r,zIndex:C});const g=e.spinner||e.svg,m=e.img,b=e.icon?l.singleAttrToObj(e.icon,"icon"):!1,L=b?t.h(w.VftIcon,b):m?t.h("img",{class:["circular circular-img",e.rotate?"":"circular-no-rotate"],src:m}):t.h("svg",{class:"circular",viewBox:e.svgViewBox?e.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[t.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),q=e.text?t.h("p",{class:r.b("text")},e.text):void 0;return t.h(t.Transition,{name:r.b("fade"),onAfterLeave:c},{default:t.withCtx(()=>[t.withDirectives(t.createVNode("div",{style:{backgroundColor:e.background||""},class:[r.b("mask"),e.customClass,e.fullscreen?"is-fullscreen":""]},[t.h("div",{class:r.b("spinner")},[L,q])]),[[t.vShow,e.visible]])])})}}},f=t.createApp(x),s=f.mount(document.createElement("div"));return{...t.toRefs(e),setText:p,removeVftLoadingChild:d,close:v,handleAfterLeave:c,vm:s,get $el(){return s.$el}}}exports.createLoadingComponent=V;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vft/utils"),w=require("../icon/index.cjs");require("@vueuse/core");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");require("lodash-es");const t=require("vue"),A=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");const T=require("../../hooks/use-z-index/index.cjs");function V(o){let u;const r=A.useNamespace("loading"),a=t.ref(!1),e=t.reactive({...o,originalPosition:"",originalOverflow:"",visible:!1});function p(n){e.text=n}t.watch(()=>e.visible,n=>{n||v()});function h(){const n=e.parent;if(!n.vLoadingAddClassList){let i=n.getAttribute("loading-number");i=Number.parseInt(i)-1,i?n.setAttribute("loading-number",i.toString()):(l.removeClass(n,r.bm("parent","relative")),n.removeAttribute("loading-number")),l.removeClass(n,r.bm("parent","hidden"))}d(),f.unmount()}function d(){s.$el?.parentNode?.removeChild(s.$el)}function v(){o.beforeClose&&!o.beforeClose()||(a.value=!0,clearTimeout(u),u=window.setTimeout(c,400),e.visible=!1,o.closed?.())}function c(){if(!a.value)return;const n=e.parent;a.value=!1,n.vLoadingAddClassList=void 0,h()}const x={name:"VftLoading",setup(n,{expose:i}){return()=>{const C=T.useZIndex();i({ns:r,zIndex:C});const g=e.spinner||e.svg,m=e.img,b=e.icon?l.singleAttrToObj(e.icon,"icon"):!1,L=b?t.h(w.VftIcon,b):m?t.h("img",{class:["circular circular-img",e.rotate?"":"circular-no-rotate"],src:m}):t.h("svg",{class:"circular",viewBox:e.svgViewBox?e.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[t.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),q=e.text?t.h("p",{class:r.b("text")},e.text):void 0;return t.h(t.Transition,{name:r.b("fade"),onAfterLeave:c},{default:t.withCtx(()=>[t.withDirectives(t.createVNode("div",{style:{backgroundColor:e.background||""},class:[r.b("mask"),e.customClass,e.fullscreen?"is-fullscreen":""]},[t.h("div",{class:r.b("spinner")},[L,q])]),[[t.vShow,e.visible]])])})}}},f=t.createApp(x),s=f.mount(document.createElement("div"));return{...t.toRefs(e),setText:p,removeVftLoadingChild:d,close:v,handleAfterLeave:c,vm:s,get $el(){return s.$el}}}exports.createLoadingComponent=V;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@vft/utils"),c=require("@vueuse/core");require("../../utils/ns-cover.cjs");require("lodash-es");const l=require("vue"),f=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const g=require("./loading.cjs");let a;const m=function(t={}){if(!c.isClient)return;const e=b(t);if(e.fullscreen&&a)return a;const r=g.createLoadingComponent({...e,closed:()=>{e.closed?.(),e.fullscreen&&(a=void 0)}});v(e,e.parent,r),d(e,e.parent,r),e.parent.vLoadingAddClassList=()=>d(e,e.parent,r);let n=e.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",e.parent.setAttribute("loading-number",n),e.parent.appendChild(r.$el),l.nextTick(()=>r.visible.value=e.visible),e.fullscreen&&(a=r),r},b=t=>{let e;return o.isString(t.target)?e=document.querySelector(t.target)??document.body:e=t.target||document.body,{parent:e===document.body||t.body?document.body:e,background:l.unref(t.background)||"",svg:l.unref(t.svg)||"",svgViewBox:l.unref(t.svgViewBox)||"",spinner:l.unref(t.spinner)||!1,img:l.unref(t.img)||!1,icon:l.unref(t.icon)||!1,text:l.unref(t.text)||"",rotate:t.rotate??!0,fullscreen:e===document.body&&(t.fullscreen??!0),lock:t.lock??!1,customClass:l.unref(t.customClass)||"",visible:t.visible??!0,target:e}},v=async(t,e,r)=>{const{nextZIndex:n}=r.vm.zIndex,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@vft/utils"),c=require("@vueuse/core");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");require("lodash-es");const l=require("vue"),f=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const g=require("./loading.cjs");let a;const m=function(t={}){if(!c.isClient)return;const e=b(t);if(e.fullscreen&&a)return a;const r=g.createLoadingComponent({...e,closed:()=>{e.closed?.(),e.fullscreen&&(a=void 0)}});v(e,e.parent,r),d(e,e.parent,r),e.parent.vLoadingAddClassList=()=>d(e,e.parent,r);let n=e.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",e.parent.setAttribute("loading-number",n),e.parent.appendChild(r.$el),l.nextTick(()=>r.visible.value=e.visible),e.fullscreen&&(a=r),r},b=t=>{let e;return o.isString(t.target)?e=document.querySelector(t.target)??document.body:e=t.target||document.body,{parent:e===document.body||t.body?document.body:e,background:l.unref(t.background)||"",svg:l.unref(t.svg)||"",svgViewBox:l.unref(t.svgViewBox)||"",spinner:l.unref(t.spinner)||!1,img:l.unref(t.img)||!1,icon:l.unref(t.icon)||!1,text:l.unref(t.text)||"",rotate:t.rotate??!0,fullscreen:e===document.body&&(t.fullscreen??!0),lock:t.lock??!1,customClass:l.unref(t.customClass)||"",visible:t.visible??!0,target:e}},v=async(t,e,r)=>{const{nextZIndex:n}=r.vm.zIndex,u={};if(t.fullscreen)r.originalPosition.value=o.getStyle(document.body,"position"),r.originalOverflow.value=o.getStyle(document.body,"overflow"),u.zIndex=n();else if(t.parent===document.body){r.originalPosition.value=o.getStyle(document.body,"position"),await l.nextTick();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";u[i]=`${t.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(o.getStyle(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])u[i]=`${t.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=o.getStyle(e,"position");for(const[i,s]of Object.entries(u))r.$el.style[i]=s},d=(t,e,r)=>{const n=f.useNamespace("loading");["absolute","fixed","sticky"].includes(r.originalPosition.value)?o.removeClass(e,n.bm("parent","relative")):o.addClass(e,n.bm("parent","relative")),t.fullscreen&&t.lock?o.addClass(e,n.bm("parent","hidden")):o.removeClass(e,n.bm("parent","hidden"))};exports.Loading=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./logo.vue2.cjs"),e=r.withInstall(t.default);exports.VftLogo=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./logo.vue2.cjs"),e=r.withInstall(t.default);exports.VftLogo=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@vft/router");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash-es");const c=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const m=["src"],g=e.defineComponent({name:"vft-logo"}),d=e.defineComponent({...g,props:{title:{},logo:{},jumpPath:{}},setup(o){const t=c.useNamespace("logo"),n=e.computed(()=>[t.b()]),s=e.getCurrentInstance().appContext.config.globalProperties.$router,{go:l}=a.useRouterHelper(s);function i(){o.jumpPath&&l(o.jumpPath)}const u=e.computed(()=>o.jumpPath?{}:t.cssVarBlock({cursor:"inital"}));return(r,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value),onClick:i,style:e.normalizeStyle(u.value)},[e.createElementVNode("img",{class:e.normalizeClass(e.unref(t).e("img")),src:r.logo,alt:""},null,10,m),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("title"))},e.toDisplayString(r.title),3)],6))}});exports.default=d;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@vft/router");require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");require("lodash-es");const c=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const m=["src"],g=e.defineComponent({name:"vft-logo"}),d=e.defineComponent({...g,props:{title:{},logo:{},jumpPath:{}},setup(o){const t=c.useNamespace("logo"),n=e.computed(()=>[t.b()]),s=e.getCurrentInstance().appContext.config.globalProperties.$router,{go:l}=a.useRouterHelper(s);function i(){o.jumpPath&&l(o.jumpPath)}const u=e.computed(()=>o.jumpPath?{}:t.cssVarBlock({cursor:"inital"}));return(r,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value),onClick:i,style:e.normalizeStyle(u.value)},[e.createElementVNode("img",{class:e.normalizeClass(e.unref(t).e("img")),src:r.logo,alt:""},null,10,m),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("title"))},e.toDisplayString(r.title),3)],6))}});exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./md-code-demo.cjs"),e=r.withInstall(t.default);exports.VftMdCodeDemo=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("../../utils/ns-cover.cjs");const r=require("../../utils/vue/install.cjs");require("lodash-es");require("vue");const t=require("./md-code-demo.cjs"),e=r.withInstall(t.default);exports.VftMdCodeDemo=e;exports.default=e;
|