vft 0.0.127 → 0.0.129
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/component.js +154 -154
- package/es/components/affix/affix.js +6 -6
- package/es/components/affix/affix.vue2.js +4 -4
- package/es/components/affix/index.js +4 -4
- package/es/components/alert/alert.vue2.js +4 -4
- package/es/components/alert/index.js +4 -4
- package/es/components/autocomplete/autocomplete.vue2.js +21 -21
- package/es/components/autocomplete/index.js +4 -4
- package/es/components/avatar/avatar.vue2.js +3 -3
- package/es/components/avatar/index.js +4 -4
- package/es/components/backtop/backtop.vue2.js +84 -84
- package/es/components/backtop/index.js +4 -4
- package/es/components/button/button-custom.js +9 -9
- package/es/components/button/button-group.vue2.js +4 -4
- package/es/components/button/button.vue2.js +10 -10
- package/es/components/button/index.js +4 -4
- package/es/components/button/use-button.js +9 -9
- package/es/components/card/card.vue2.js +4 -4
- package/es/components/card/index.js +4 -4
- package/es/components/check-tag/check-tag.vue2.js +4 -4
- package/es/components/check-tag/index.js +4 -4
- package/es/components/checkbox/checkbox-button.vue2.js +7 -7
- package/es/components/checkbox/checkbox-group.vue2.js +13 -13
- package/es/components/checkbox/checkbox.vue2.js +5 -5
- package/es/components/checkbox/composables/index.js +10 -10
- package/es/components/checkbox/composables/use-checkbox-disabled.js +5 -5
- package/es/components/checkbox/composables/use-checkbox-event.js +9 -9
- package/es/components/checkbox/composables/use-checkbox-model.js +5 -5
- package/es/components/checkbox/composables/use-checkbox-status.js +5 -5
- package/es/components/checkbox/composables/use-checkbox.js +1 -1
- package/es/components/checkbox/index.js +4 -4
- package/es/components/clamp/index.js +4 -4
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +7 -7
- package/es/components/clamp-toggle/index.js +4 -4
- package/es/components/col/col.vue2.js +4 -4
- package/es/components/col/index.js +4 -4
- package/es/components/collapse-transition/src/collapse-transition.vue2.js +4 -4
- package/es/components/color-picker/color-picker.vue2.js +23 -23
- package/es/components/color-picker/components/hue-slider.vue2.js +8 -8
- package/es/components/color-picker/components/predefine.vue2.js +4 -4
- package/es/components/color-picker/components/sv-panel.vue2.js +8 -8
- package/es/components/color-picker/composables/use-alpha-slider.js +11 -11
- package/es/components/color-picker/index.js +4 -4
- package/es/components/color-picker/utils/color.js +10 -10
- package/es/components/config-provider/config-provider.vue2.js +7 -7
- package/es/components/config-provider/hooks/use-global-config.js +8 -8
- package/es/components/config-provider/index.js +4 -4
- package/es/components/container/aside.vue2.js +7 -7
- package/es/components/container/container.vue2.js +4 -4
- package/es/components/container/footer.vue2.js +7 -7
- package/es/components/container/header.vue2.js +7 -7
- package/es/components/container/index.js +5 -5
- package/es/components/container/main.vue2.js +4 -4
- package/es/components/context-menu/context-menu.vue2.js +71 -71
- package/es/components/date-picker/composables/use-range-picker.js +11 -11
- package/es/components/date-picker/composables/use-shortcut.js +4 -4
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +4 -4
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +9 -9
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +13 -13
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +14 -14
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +38 -38
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +31 -31
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +20 -20
- package/es/components/date-picker/date-picker.js +23 -23
- package/es/components/date-picker/props/basic-cell.js +3 -3
- package/es/components/date-picker/props/basic-date-table.js +3 -3
- package/es/components/date-picker/props/basic-month-table.js +3 -3
- package/es/components/date-picker/props/basic-year-table.js +3 -3
- package/es/components/date-picker/props/date-picker.js +3 -3
- package/es/components/date-picker/props/panel-date-pick.js +3 -3
- package/es/components/date-picker/props/panel-date-range.js +3 -3
- package/es/components/date-picker/props/panel-month-range.js +3 -3
- package/es/components/date-picker/props/shared.js +3 -3
- package/es/components/date-picker/utils.js +1 -1
- package/es/components/date-time-select/date-time-select.vue2.js +13 -13
- package/es/components/date-time-select/index.js +4 -4
- package/es/components/descriptions/description-item.vue2.js +4 -4
- package/es/components/descriptions/description.vue2.js +3 -3
- package/es/components/descriptions/descriptions-cell.js +11 -11
- package/es/components/descriptions/index.js +4 -4
- package/es/components/dialog/dialog-content.vue2.js +6 -6
- package/es/components/dialog/dialog.vue2.js +19 -19
- package/es/components/dialog/hooks/use-dialog.js +23 -23
- package/es/components/dialog/index.js +8 -8
- package/es/components/divider/divider.vue2.js +4 -4
- package/es/components/divider/index.js +4 -4
- package/es/components/drawer/drawer.vue2.js +25 -25
- package/es/components/drawer/index.js +4 -4
- package/es/components/dropdown/dropdown-item-impl.vue2.js +22 -22
- package/es/components/dropdown/dropdown-item.vue2.js +8 -8
- package/es/components/dropdown/dropdown-menu.vue2.js +20 -20
- package/es/components/dropdown/dropdown.vue2.js +19 -19
- package/es/components/dropdown/index.js +4 -4
- package/es/components/dropdown/useDropdown.js +8 -8
- package/es/components/empty/empty.vue2.js +8 -8
- package/es/components/empty/index.js +4 -4
- package/es/components/exception/exception.vue2.js +9 -9
- package/es/components/exception/index.js +4 -4
- package/es/components/footer-layout/footer-layout.vue2.js +69 -69
- package/es/components/footer-layout/index.js +4 -4
- package/es/components/form/form-item.vue2.js +20 -20
- package/es/components/form/form-label-wrap.js +1 -1
- package/es/components/form/form.vue2.js +6 -6
- package/es/components/form/hooks/use-form-common-props.js +5 -5
- package/es/components/form/hooks/use-form-item.js +5 -5
- package/es/components/form/index.js +17 -17
- package/es/components/form/utils.js +7 -7
- package/es/components/full-screen/full-screen.vue2.js +17 -17
- package/es/components/full-screen/index.js +4 -4
- package/es/components/header-layout/header-layout.vue2.js +73 -73
- package/es/components/header-layout/index.js +4 -4
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +13 -13
- package/es/components/horizontal-menu/index.js +4 -4
- package/es/components/icon/icon.vue2.js +10 -8
- package/es/components/icon/index.js +4 -4
- package/es/components/icon-text/icon-text.vue2.js +25 -25
- package/es/components/icon-text/index.js +4 -4
- package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
- package/es/components/iframe-layout/iframe-page.vue2.js +4 -4
- package/es/components/iframe-layout/index.js +4 -4
- package/es/components/image/image.vue2.js +13 -13
- package/es/components/image/index.js +4 -4
- package/es/components/image-viewer/image-viewer.vue2.js +39 -39
- package/es/components/image-viewer/index.js +4 -4
- package/es/components/index.js +334 -334
- package/es/components/input/index.js +4 -4
- package/es/components/input/input.vue2.js +48 -44
- package/es/components/input-number/index.js +4 -4
- package/es/components/input-number/input-number.vue2.js +41 -41
- package/es/components/link/index.js +4 -4
- package/es/components/link/link.vue2.js +11 -11
- package/es/components/list-cell/index.js +4 -4
- package/es/components/list-cell/list-cell.vue2.js +25 -25
- package/es/components/loading/directive.js +6 -6
- package/es/components/loading/index.js +8 -8
- package/es/components/loading/loading.js +17 -17
- package/es/components/loading/service.js +7 -7
- package/es/components/logo/index.js +4 -4
- package/es/components/logo/logo.vue2.js +4 -4
- package/es/components/md-code-demo/code-demo/code.js +2 -2
- package/es/components/md-code-demo/index.js +4 -4
- package/es/components/md-code-demo/md-code-demo.js +14 -14
- package/es/components/md-code-tabs/index.js +4 -4
- package/es/components/md-comment/index.js +4 -4
- package/es/components/md-comment/md-comment.vue2.js +4 -4
- package/es/components/md-container/index.js +4 -4
- package/es/components/md-container/md-container.vue2.js +91 -91
- package/es/components/md-tabs/index.js +4 -4
- package/es/components/md-vue-playground/index.js +4 -4
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +16 -16
- package/es/components/menu/index.js +4 -4
- package/es/components/menu/menu-collapse-transition.vue2.js +7 -7
- package/es/components/menu/menu-item-group.vue2.js +4 -4
- package/es/components/menu/menu-item.vue2.js +76 -76
- package/es/components/menu/menu.vue2.js +10 -10
- package/es/components/menu/sub-menu.vue2.js +71 -71
- package/es/components/menu/use-menu-css-var.js +4 -4
- package/es/components/message/index.js +4 -4
- package/es/components/message/message.vue2.js +11 -11
- package/es/components/message/method.js +14 -14
- package/es/components/modal/index.js +4 -4
- package/es/components/modal/modal-footer-action.vue2.js +69 -69
- package/es/components/modal/modal.vue2.js +5 -5
- package/es/components/modal/use/use-modal.js +14 -14
- package/es/components/multiple-tabs/index.js +9 -9
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +73 -73
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/index.js +5 -5
- package/es/components/multiple-tabs/use/use-multiple-tabs.js +1 -1
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +13 -13
- package/es/components/overlay/index.js +4 -4
- package/es/components/overlay/overlay.vue2.js +4 -4
- package/es/components/page-wrapper/index.js +4 -4
- package/es/components/page-wrapper/page-wrapper.vue2.js +7 -7
- package/es/components/pagination/components/jumper.vue2.js +4 -4
- package/es/components/pagination/components/next.vue2.js +5 -5
- package/es/components/pagination/components/pager.vue2.js +44 -44
- package/es/components/pagination/components/prev.vue2.js +5 -5
- package/es/components/pagination/components/sizes.vue2.js +3 -3
- package/es/components/pagination/components/total.vue2.js +4 -4
- package/es/components/pagination/index.js +4 -4
- package/es/components/pagination/pagination.vue2.js +4 -4
- package/es/components/popconfirm/index.js +4 -4
- package/es/components/popconfirm/popconfirm.vue2.js +12 -12
- package/es/components/popover/index.js +4 -4
- package/es/components/popover/popover.vue2.js +7 -7
- package/es/components/popper/arrow.vue2.js +4 -4
- package/es/components/popper/composables/use-content-dom.js +4 -4
- package/es/components/popper/composables/use-content.js +3 -3
- package/es/components/popper/content.vue2.js +1 -1
- package/es/components/popper/index.js +9 -9
- package/es/components/popper/trigger.vue2.js +7 -7
- package/es/components/progress/index.js +4 -4
- package/es/components/progress/progress.vue2.js +21 -21
- package/es/components/qrcode/drawCanvas.js +1 -1
- package/es/components/qrcode/index.js +4 -4
- package/es/components/qrcode/qrcode.vue2.js +13 -13
- package/es/components/radio/index.js +4 -4
- package/es/components/radio/radio-button.vue2.js +4 -4
- package/es/components/radio/radio-group.vue2.js +8 -8
- package/es/components/radio/radio.vue2.js +4 -4
- package/es/components/radio/use-radio.js +4 -4
- package/es/components/result/index.js +4 -4
- package/es/components/result/result.vue2.js +68 -68
- package/es/components/router-view-content/index.js +4 -4
- package/es/components/roving-focus-group/index.js +4 -4
- package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +19 -19
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +17 -17
- package/es/components/row/index.js +4 -4
- package/es/components/row/row.vue2.js +7 -7
- package/es/components/scrollbar/bar.vue2.js +5 -5
- package/es/components/scrollbar/index.js +10 -10
- package/es/components/scrollbar/scrollbar.vue2.js +8 -8
- package/es/components/scrollbar/thumb.vue2.js +1 -1
- package/es/components/search/index.js +4 -4
- package/es/components/search/search.vue2.js +5 -5
- package/es/components/select/defaults.js +3 -3
- package/es/components/select/group-item.vue2.js +4 -4
- package/es/components/select/option-item.vue2.js +8 -8
- package/es/components/select/select-dropdown.js +11 -11
- package/es/components/select/select.vue.js +1 -1
- package/es/components/select/select.vue2.js +23 -23
- package/es/components/select/useInput.js +5 -5
- package/es/components/select/useSelect.js +29 -29
- package/es/components/side-menu/index.js +4 -4
- package/es/components/side-menu/side-menu.vue2.js +104 -104
- package/es/components/skeleton/index.js +4 -4
- package/es/components/skeleton/skeleton-item.vue2.js +12 -12
- package/es/components/skeleton/skeleton.vue2.js +4 -4
- package/es/components/slider/button.vue2.js +10 -10
- package/es/components/slider/composables/use-lifecycle.js +5 -5
- package/es/components/slider/composables/use-slide.js +5 -5
- package/es/components/slider/composables/use-slider-button.js +7 -7
- package/es/components/slider/composables/use-stops.js +6 -6
- package/es/components/slider/composables/use-watch.js +3 -3
- package/es/components/slider/index.js +8 -8
- package/es/components/slider/marker.js +7 -7
- package/es/components/slider/slider.vue2.js +18 -18
- package/es/components/slot/only-child.js +9 -9
- package/es/components/space/index.js +4 -4
- package/es/components/space/item.js +7 -7
- package/es/components/space/space.js +12 -12
- package/es/components/space/use-space.js +8 -8
- package/es/components/super-form/component-map.js +72 -72
- package/es/components/super-form/index.js +4 -4
- package/es/components/super-form/super-form-action.vue2.js +72 -72
- package/es/components/super-form/super-form-item.vue2.js +69 -69
- package/es/components/super-form/super-form.vue2.js +88 -88
- package/es/components/super-form/use/helper.js +3 -3
- package/es/components/super-form/use/use-form-events.js +22 -22
- package/es/components/super-form/use/use-form-values.js +1 -1
- package/es/components/super-form/use/use-form.js +5 -5
- package/es/components/switch/index.js +4 -4
- package/es/components/switch/switch.vue2.js +6 -6
- package/es/components/table/field.js +68 -68
- package/es/components/table/index.js +4 -4
- package/es/components/table/table.vue2.js +19 -19
- package/es/components/table/use/use-columns.js +12 -12
- package/es/components/table/use/use-data-source.js +22 -22
- package/es/components/table/use/use-pagination.js +1 -1
- package/es/components/table/use/use-table.js +21 -22
- package/es/components/tabs/index.js +5 -5
- package/es/components/tabs/tab-bar.vue2.js +7 -7
- package/es/components/tabs/tab-nav.vue2.js +67 -67
- package/es/components/tabs/tab-pane.vue2.js +6 -6
- package/es/components/tabs/tabs.vue2.js +14 -14
- package/es/components/tag/index.js +4 -4
- package/es/components/tag/tag.vue2.js +6 -6
- package/es/components/time-picker/common/picker.vue2.js +15 -15
- package/es/components/time-picker/common/props.js +7 -7
- package/es/components/time-picker/index.js +18 -18
- package/es/components/time-picker/props/basic-time-spinner.js +3 -3
- package/es/components/time-picker/props/panel-time-picker.js +3 -3
- package/es/components/time-picker/props/panel-time-range.js +3 -3
- package/es/components/time-picker/props/shared.js +3 -3
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +13 -13
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +14 -14
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +18 -18
- package/es/components/time-picker/time-picker.js +9 -9
- package/es/components/time-picker/utils.js +1 -1
- package/es/components/time-select/time-select.js +3 -3
- package/es/components/time-select/time-select.vue2.js +4 -4
- package/es/components/tooltip/content.vue2.js +7 -7
- package/es/components/tooltip/index.js +4 -4
- package/es/components/tooltip/tooltip.vue2.js +17 -17
- package/es/components/tooltip/trigger.vue2.js +2 -2
- package/es/components/tooltip/utils.js +8 -8
- package/es/components/tree/index.js +5 -5
- package/es/components/tree/model/node.js +4 -4
- package/es/components/tree/model/useDragNode.js +8 -8
- package/es/components/tree/model/useKeydown.js +9 -9
- package/es/components/tree/tree-node-content.vue2.js +4 -4
- package/es/components/tree/tree-node.vue.js +9 -9
- package/es/components/tree/tree-node.vue2.js +24 -24
- package/es/components/tree/tree.vue2.js +13 -13
- package/es/components/upload/ajax.js +6 -6
- package/es/components/upload/index.js +4 -4
- package/es/components/upload/upload-content.vue2.js +7 -7
- package/es/components/upload/upload-dragger.vue2.js +8 -8
- package/es/components/upload/upload-list.vue2.js +39 -39
- package/es/components/upload/upload.vue2.js +12 -12
- package/es/components/upload/use-handlers.js +8 -8
- package/es/components/verify-code/index.js +4 -4
- package/es/components/virtual-list/builders/build-grid.js +50 -50
- package/es/components/virtual-list/builders/build-list.js +53 -53
- package/es/components/virtual-list/components/dynamic-size-grid.js +3 -3
- package/es/components/virtual-list/components/dynamic-size-list.js +10 -10
- package/es/components/virtual-list/components/fixed-size-grid.js +3 -3
- package/es/components/virtual-list/components/fixed-size-list.js +10 -10
- package/es/components/virtual-list/components/scrollbar.js +3 -3
- package/es/components/virtual-list/hooks/use-cache.js +6 -6
- package/es/components/virtual-list/hooks/use-grid-wheel.js +3 -3
- package/es/components/virtual-list/hooks/use-wheel.js +3 -3
- package/es/components/virtual-list/index.js +4 -4
- package/es/components/virtual-list/props.js +4 -4
- package/es/defaults.js +3 -3
- package/es/hooks/index.js +52 -52
- package/es/hooks/use-attrs/index.js +6 -6
- package/es/hooks/use-draggable/index.js +1 -1
- package/es/hooks/use-id/index.js +8 -8
- package/es/hooks/use-lockscreen/index.js +15 -15
- package/es/hooks/use-ordered-children/index.js +4 -4
- package/es/hooks/use-popper/index.js +10 -10
- package/es/hooks/use-popper-container/index.js +7 -7
- package/es/hooks/use-z-index/index.js +6 -6
- package/es/index.js +463 -463
- package/es/package.json.js +1 -1
- package/es/utils/dom/scroll.js +1 -1
- package/es/utils/index.js +61 -61
- package/es/utils/ns-cover.js +4 -4
- package/es/utils/vue/index.js +31 -31
- package/es/utils/vue/props/runtime.js +4 -4
- package/es/utils/vue/vnode.js +9 -9
- package/lib/component.cjs +1 -1
- package/lib/components/affix/affix.cjs +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/affix/index.cjs +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/alert/index.cjs +1 -1
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.cjs +1 -1
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar/index.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/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.vue2.cjs +1 -1
- package/lib/components/button/index.cjs +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/card/index.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/index.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-disabled.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-model.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-status.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox.cjs +1 -1
- package/lib/components/checkbox/index.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/col/col.vue2.cjs +1 -1
- package/lib/components/col/index.cjs +1 -1
- package/lib/components/collapse-transition/src/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/utils/color.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- 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/date-picker/composables/use-range-picker.cjs +1 -1
- package/lib/components/date-picker/composables/use-shortcut.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/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.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-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/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/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/shared.cjs +1 -1
- package/lib/components/date-picker/utils.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/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.vue2.cjs +1 -1
- package/lib/components/dropdown/index.cjs +1 -1
- package/lib/components/dropdown/useDropdown.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/empty/index.cjs +1 -1
- package/lib/components/exception/exception.vue2.cjs +1 -1
- package/lib/components/exception/index.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/utils.cjs +1 -1
- 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-layout.vue2.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/index.cjs +1 -1
- package/lib/components/input/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.cjs +1 -1
- package/lib/components/input-number/input-number.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/list-cell.vue2.cjs +1 -1
- package/lib/components/loading/directive.cjs +1 -1
- package/lib/components/loading/index.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/code-demo/code.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/message.vue2.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/modal/modal.vue2.cjs +1 -1
- package/lib/components/modal/use/use-modal.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/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/index.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-multiple-tabs.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/overlay/index.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/next.vue2.cjs +1 -1
- package/lib/components/pagination/components/pager.vue2.cjs +1 -1
- package/lib/components/pagination/components/prev.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/content.vue2.cjs +1 -1
- 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 +2 -2
- package/lib/components/qrcode/drawCanvas.cjs +1 -1
- package/lib/components/qrcode/index.cjs +1 -1
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/index.cjs +1 -1
- 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.vue2.cjs +1 -1
- package/lib/components/radio/use-radio.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/index.cjs +1 -1
- 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/bar.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/search.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/option-item.vue2.cjs +1 -1
- package/lib/components/select/select-dropdown.cjs +1 -1
- package/lib/components/select/select.vue.cjs +1 -1
- package/lib/components/select/select.vue2.cjs +1 -1
- package/lib/components/select/useInput.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- 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-lifecycle.cjs +1 -1
- package/lib/components/slider/composables/use-slide.cjs +1 -1
- package/lib/components/slider/composables/use-slider-button.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/marker.cjs +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/item.cjs +1 -1
- package/lib/components/space/space.cjs +1 -1
- package/lib/components/space/use-space.cjs +1 -1
- package/lib/components/super-form/component-map.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/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/super-form/use/use-form-values.cjs +1 -1
- package/lib/components/super-form/use/use-form.cjs +1 -1
- package/lib/components/switch/index.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-columns.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-pagination.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/tabs/index.cjs +1 -1
- 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/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.cjs +1 -1
- package/lib/components/time-picker/index.cjs +1 -1
- 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.cjs +1 -1
- package/lib/components/time-picker/utils.cjs +1 -1
- package/lib/components/time-select/time-select.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.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/tree/index.cjs +1 -1
- package/lib/components/tree/model/node.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.cjs +1 -1
- 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/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/upload.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-cache.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/index.cjs +1 -1
- package/lib/components/virtual-list/props.cjs +1 -1
- package/lib/defaults.cjs +1 -1
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/use-attrs/index.cjs +1 -1
- package/lib/hooks/use-draggable/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.cjs +1 -1
- package/lib/hooks/use-popper-container/index.cjs +1 -1
- 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/utils/dom/scroll.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/ns-cover.cjs +1 -1
- package/lib/utils/vue/index.cjs +1 -1
- package/lib/utils/vue/props/runtime.cjs +1 -1
- package/lib/utils/vue/vnode.cjs +1 -1
- package/package.json +2 -2
- package/theme-style/index.css +1 -1
- package/theme-style/src/backtop.scss +4 -0
- package/theme-style/src/button.scss +4 -0
- package/theme-style/src/color-picker.scss +3 -0
- package/theme-style/src/common/icon.scss +65 -0
- package/theme-style/src/common/var.scss +4 -0
- package/theme-style/src/date-picker/date-picker.scss +14 -0
- package/theme-style/src/date-picker/time-picker.scss +4 -0
- package/theme-style/src/date-picker.scss +1 -0
- package/theme-style/src/date-time-select.scss +8 -1
- package/theme-style/src/dialog.scss +2 -0
- package/theme-style/src/drawer.scss +2 -0
- package/theme-style/src/dropdown.scss +2 -0
- package/theme-style/src/full-screen.scss +8 -1
- package/theme-style/src/icon-text.scss +4 -0
- package/theme-style/src/image-viewer.scss +19 -1
- package/theme-style/src/input-number.scss +9 -0
- package/theme-style/src/input.scss +22 -0
- package/theme-style/src/list-cell.scss +2 -0
- package/theme-style/src/md-container.scss +28 -0
- package/theme-style/src/menu.scss +11 -4
- package/theme-style/src/message.scss +10 -0
- package/theme-style/src/mixins/icon.scss +52 -0
- package/theme-style/src/mixins/mixins.scss +1 -0
- package/theme-style/src/multiple-tabs.scss +22 -0
- package/theme-style/src/pagination.scss +15 -0
- package/theme-style/src/popconfirm.scss +4 -0
- package/theme-style/src/progress.scss +16 -0
- package/theme-style/src/select.scss +3 -0
- package/theme-style/src/side-menu.scss +4 -0
- package/theme-style/src/skeleton-item.scss +5 -0
- package/theme-style/src/switch.scss +4 -0
- package/theme-style/src/tabs.scss +7 -0
- package/theme-style/src/tag.scss +2 -0
- package/theme-style/src/tree.scss +7 -0
- package/theme-style/src/upload.scss +25 -4
- package/theme-style/vft-backtop.css +1 -1
- package/theme-style/vft-button.css +1 -1
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-dialog.css +1 -1
- package/theme-style/vft-drawer.css +1 -1
- package/theme-style/vft-dropdown.css +1 -1
- package/theme-style/vft-full-screen.css +1 -1
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-image-viewer.css +1 -1
- package/theme-style/vft-input-number.css +1 -1
- package/theme-style/vft-input.css +1 -1
- package/theme-style/vft-list-cell.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-message.css +1 -1
- package/theme-style/vft-multiple-tabs.css +1 -1
- package/theme-style/vft-pagination.css +1 -1
- package/theme-style/vft-popconfirm.css +1 -1
- package/theme-style/vft-progress.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-skeleton-item.css +1 -1
- package/theme-style/vft-switch.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-tag.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-tree.css +1 -1
- package/theme-style/vft-upload.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isNumber as E } from "@vft/utils";
|
|
2
|
+
import { FormCompEnum as r, isInput as i } from "../component-map.js";
|
|
3
3
|
function t(u, e) {
|
|
4
4
|
return [r.INPUT, r.INPUT_NUMBER].includes(u) ? "请输入" + e : [r.PASSWORD].includes(u) ? "请输入密码" : [r.SELECT].includes(u) ? "请选择" + e : [
|
|
5
5
|
r.TIME_PICKER,
|
|
@@ -12,7 +12,7 @@ function t(u, e) {
|
|
|
12
12
|
].includes(u) ? "请选择时间" : "";
|
|
13
13
|
}
|
|
14
14
|
function s(u, e) {
|
|
15
|
-
return u &&
|
|
15
|
+
return u && i(u) && e && E(e) ? `${e}` : e;
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
t as createPlaceholderMessage,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { isFunction as B, formatToDate as U, isDef as z, isString as g, isObject as m, isArray as I, deepMerge as M, isNullOrUndefined as G, isEmpty as tt, isEmptyObject as nt } from "@vft/utils";
|
|
2
|
+
import { cloneDeep as w, get as et, uniqBy as it, isEqual as ct, set as H } from "lodash";
|
|
3
|
+
import { unref as c, nextTick as ot, toRaw as j } from "vue";
|
|
4
|
+
import { isInput as rt, FormCompEnum as x, isDatePicker as st } from "../component-map.js";
|
|
5
|
+
import { handleInputNumberValue as at } from "./helper.js";
|
|
6
6
|
function ut(v, F = {}) {
|
|
7
7
|
const a = /^\[(.+)\]$/;
|
|
8
8
|
if (a.test(v)) {
|
|
@@ -46,24 +46,24 @@ function yt({
|
|
|
46
46
|
}) {
|
|
47
47
|
async function P(t) {
|
|
48
48
|
const { resetFunc: n, submitOnReset: s } = c(F);
|
|
49
|
-
n &&
|
|
49
|
+
n && B(n) && await n();
|
|
50
50
|
const i = c(f);
|
|
51
51
|
if (i) {
|
|
52
52
|
if (t != null && t.length)
|
|
53
53
|
return i.resetFields(t);
|
|
54
54
|
Object.keys(a).forEach((o) => {
|
|
55
55
|
const e = c(d).find((u) => u.field === o), r = w(y.value[o]);
|
|
56
|
-
a[o] =
|
|
57
|
-
}),
|
|
56
|
+
a[o] = rt(e == null ? void 0 : e.component) ? r || "" : r;
|
|
57
|
+
}), ot(() => O()), v("reset", j(a)), s && await q();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
async function S(t) {
|
|
61
61
|
const n = c(d).map((e) => e.field).filter(Boolean), s = ".", i = n.filter((e) => String(e).indexOf(s) >= 0), o = [];
|
|
62
62
|
n.forEach((e) => {
|
|
63
63
|
const r = c(d).find((l) => l.field === e);
|
|
64
|
-
let u =
|
|
64
|
+
let u = et(t, e);
|
|
65
65
|
const A = Reflect.has(t, e);
|
|
66
|
-
u =
|
|
66
|
+
u = at(r == null ? void 0 : r.component, u);
|
|
67
67
|
const { componentProps: N } = r || {};
|
|
68
68
|
let h = N;
|
|
69
69
|
typeof N == "function" && (h = h({ formModel: c(a) }));
|
|
@@ -97,14 +97,14 @@ function yt({
|
|
|
97
97
|
const n = w(c(d));
|
|
98
98
|
if (!t)
|
|
99
99
|
return;
|
|
100
|
-
let s =
|
|
101
|
-
|
|
100
|
+
let s = g(t) ? [t] : t;
|
|
101
|
+
g(t) && (s = [t]);
|
|
102
102
|
for (const i of s)
|
|
103
103
|
W(i, n);
|
|
104
104
|
p.value = n;
|
|
105
105
|
}
|
|
106
106
|
function W(t, n) {
|
|
107
|
-
if (
|
|
107
|
+
if (g(t)) {
|
|
108
108
|
const s = n.findIndex((i) => i.field === t);
|
|
109
109
|
s !== -1 && (delete a[t], n.splice(s, 1));
|
|
110
110
|
}
|
|
@@ -145,11 +145,11 @@ function yt({
|
|
|
145
145
|
if (n.forEach((u) => {
|
|
146
146
|
e.field === u.field && (r = u), u.defaultValue && u.field && i.push(u.field);
|
|
147
147
|
}), r !== void 0 && e.field === r.field) {
|
|
148
|
-
const u =
|
|
148
|
+
const u = M(e, r);
|
|
149
149
|
o.push(u);
|
|
150
150
|
} else
|
|
151
151
|
o.push(e);
|
|
152
|
-
}), V(o, i), p.value =
|
|
152
|
+
}), V(o, i), p.value = it(o, "field");
|
|
153
153
|
}
|
|
154
154
|
function V(t, n) {
|
|
155
155
|
if (I(n) && (n == null ? void 0 : n.length) === 0)
|
|
@@ -158,17 +158,17 @@ function yt({
|
|
|
158
158
|
m(t) && s.push(t), I(t) && (s = [...t]);
|
|
159
159
|
const i = {}, o = T();
|
|
160
160
|
s.forEach((e) => {
|
|
161
|
-
e.component !== x.DIVIDER && Reflect.has(e, "field") && e.field && !G(e.defaultValue) && (!(e.field in o) || G(o[e.field]) ||
|
|
162
|
-
}),
|
|
161
|
+
e.component !== x.DIVIDER && Reflect.has(e, "field") && e.field && !G(e.defaultValue) && (!(e.field in o) || G(o[e.field]) || tt(o[e.field])) && (i[e.field] = e.defaultValue);
|
|
162
|
+
}), nt(i) || S(i);
|
|
163
163
|
}
|
|
164
164
|
function T() {
|
|
165
|
-
return c(f) ? D(
|
|
165
|
+
return c(f) ? D(j(c(a))) : {};
|
|
166
166
|
}
|
|
167
167
|
function _(t) {
|
|
168
|
-
return c(f) ?
|
|
168
|
+
return c(f) ? j(c(a))[t] : {};
|
|
169
169
|
}
|
|
170
170
|
function K(t) {
|
|
171
|
-
return c(d).some((n) => n.field === t ?
|
|
171
|
+
return c(d).some((n) => n.field === t ? st(n.component) : !1);
|
|
172
172
|
}
|
|
173
173
|
async function C(t) {
|
|
174
174
|
var n;
|
|
@@ -190,7 +190,7 @@ function yt({
|
|
|
190
190
|
const { autoCleanErrorMessage: n, watchDataIsChange: s } = c(F);
|
|
191
191
|
t && t.preventDefault(), n && await O();
|
|
192
192
|
const { submitFunc: i, beforeSubmitFunc: o } = c(F);
|
|
193
|
-
if (o &&
|
|
193
|
+
if (o && B(o) && await o(), i && B(i)) {
|
|
194
194
|
await i();
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ function yt({
|
|
|
198
198
|
try {
|
|
199
199
|
const r = await L(), u = D(r);
|
|
200
200
|
if (s) {
|
|
201
|
-
const A =
|
|
201
|
+
const A = ct(J.value, u);
|
|
202
202
|
v("submit", u, !A);
|
|
203
203
|
} else
|
|
204
204
|
v("submit", u);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isObject as T, isArray as A, isFunction as O, isString as V, formatToDate as D, isNullOrUndefined as Y } from "@vft/utils";
|
|
2
|
-
import { unref as b } from "vue";
|
|
3
2
|
import { set as h, cloneDeep as E } from "lodash";
|
|
3
|
+
import { unref as b } from "vue";
|
|
4
4
|
function F(m, e, a) {
|
|
5
5
|
const c = /^\[(.+)\]$/;
|
|
6
6
|
if (c.test(m)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { tryOnBeforeUnmount as l } from "@vueuse/core";
|
|
2
|
+
import { unref as o, ref as i, watch as f, nextTick as u } from "vue";
|
|
3
3
|
function d(n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
return Object.keys(n).map((s) => {
|
|
@@ -12,12 +12,12 @@ function w(n) {
|
|
|
12
12
|
const e = o(r);
|
|
13
13
|
return e || console.error(
|
|
14
14
|
"The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"
|
|
15
|
-
), await
|
|
15
|
+
), await u(), e;
|
|
16
16
|
}
|
|
17
17
|
function c(e) {
|
|
18
|
-
|
|
18
|
+
l(() => {
|
|
19
19
|
r.value = null, s.value = null;
|
|
20
|
-
}), !(o(s) && e === o(r)) && (r.value = e, s.value = !0,
|
|
20
|
+
}), !(o(s) && e === o(r)) && (r.value = e, s.value = !0, f(
|
|
21
21
|
() => n,
|
|
22
22
|
() => {
|
|
23
23
|
n && e.setProps(d(n));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { withInstall as t } from "../../utils/vue/install.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "@vft/utils";
|
|
4
|
-
import "lodash";
|
|
5
1
|
import "@vueuse/core";
|
|
2
|
+
import "@vft/utils";
|
|
6
3
|
import "../../utils/ns-cover.js";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import { withInstall as t } from "../../utils/vue/install.js";
|
|
6
|
+
import "vue";
|
|
7
7
|
import o from "./switch.vue2.js";
|
|
8
8
|
const c = t(o);
|
|
9
9
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as H, computed as s, ref as T, watch as w, onMounted as Z, openBlock as n, createElementBlock as u, normalizeClass as r, normalizeStyle as M, withModifiers as ee, createElementVNode as B, unref as o, withKeys as ae, createBlock as V, normalizeProps as E, mergeProps as I, createCommentVNode as c, toDisplayString as N, nextTick as oe } from "vue";
|
|
2
2
|
import { singleAttrToObj as U, addUnit as ie, isPromise as j, isBoolean as te } from "@vft/utils";
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import "@vueuse/core";
|
|
3
|
+
import "../form/index.js";
|
|
4
|
+
import { VftIcon as C } from "../icon/index.js";
|
|
6
5
|
import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as S, INPUT_EVENT as _ } from "../../constants/event.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import { debugWarn as G, throwError as le } from "../../utils/error.js";
|
|
7
8
|
import "../../utils/ns-cover.js";
|
|
8
|
-
import
|
|
9
|
-
import "../form/index.js";
|
|
9
|
+
import "lodash";
|
|
10
10
|
import { useNamespace as ne } from "../../hooks/use-namespace/index.js";
|
|
11
11
|
import "@popperjs/core";
|
|
12
12
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -175,7 +175,7 @@ const de = ["onClick"], ve = ["id", "aria-checked", "aria-disabled", "name", "tr
|
|
|
175
175
|
key: 0,
|
|
176
176
|
rotate: "",
|
|
177
177
|
class: r(o(i).is("loading")),
|
|
178
|
-
icon: "
|
|
178
|
+
icon: "icon-loading"
|
|
179
179
|
}, null, 8, ["class"])) : c("", !0)
|
|
180
180
|
], 2)
|
|
181
181
|
], 6),
|
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
import { createVNode as p, ref as I, Fragment as Y, isVNode as _ } from "vue";
|
|
2
2
|
import { formatToDateTime as l, isNullOrUndefined as M } from "@vft/utils";
|
|
3
|
-
import "../
|
|
4
|
-
import "../icon/index.js";
|
|
3
|
+
import "../alert/index.js";
|
|
5
4
|
import "../avatar/index.js";
|
|
6
|
-
import "../empty/index.js";
|
|
7
|
-
import "../result/index.js";
|
|
8
|
-
import "../tabs/index.js";
|
|
9
|
-
import "../popper/index.js";
|
|
10
|
-
import "../collapse-transition/index.js";
|
|
11
|
-
import "../tooltip/index.js";
|
|
12
|
-
import "../popover/index.js";
|
|
13
|
-
import "../menu/index.js";
|
|
14
|
-
import "../context-menu/context-menu.vue2.js";
|
|
15
|
-
import "../multiple-tabs/index.js";
|
|
16
|
-
import "../header-layout/index.js";
|
|
17
|
-
import "../footer-layout/index.js";
|
|
18
|
-
import "../iframe-layout/index.js";
|
|
19
|
-
import "../router-view-content/index.js";
|
|
20
|
-
import "../logo/index.js";
|
|
21
5
|
import "../backtop/index.js";
|
|
22
|
-
import "../
|
|
6
|
+
import { VftButton as D } from "../button/index.js";
|
|
7
|
+
import "../card/index.js";
|
|
8
|
+
import "../check-tag/index.js";
|
|
9
|
+
import "../checkbox/index.js";
|
|
10
|
+
import "../clamp/index.js";
|
|
11
|
+
import "../clamp-toggle/index.js";
|
|
12
|
+
import "../col/index.js";
|
|
13
|
+
import "../collapse-transition/index.js";
|
|
14
|
+
import "../color-picker/index.js";
|
|
23
15
|
import "../config-provider/index.js";
|
|
16
|
+
import "../container/index.js";
|
|
17
|
+
import "../context-menu/context-menu.vue2.js";
|
|
18
|
+
import "../date-picker/index.js";
|
|
19
|
+
import "../date-time-select/index.js";
|
|
24
20
|
import "../descriptions/index.js";
|
|
21
|
+
import "../dialog/index.js";
|
|
22
|
+
import "../divider/index.js";
|
|
23
|
+
import "../drawer/index.js";
|
|
24
|
+
import "../dropdown/index.js";
|
|
25
|
+
import "../empty/index.js";
|
|
26
|
+
import "../exception/index.js";
|
|
27
|
+
import "../footer-layout/index.js";
|
|
28
|
+
import "../form/index.js";
|
|
25
29
|
import "../full-screen/index.js";
|
|
30
|
+
import "../header-layout/index.js";
|
|
31
|
+
import "../horizontal-menu/index.js";
|
|
32
|
+
import "../icon/index.js";
|
|
26
33
|
import "../icon-text/index.js";
|
|
34
|
+
import "../iframe-layout/index.js";
|
|
27
35
|
import "../image/index.js";
|
|
36
|
+
import "../image-viewer/index.js";
|
|
28
37
|
import "../input/index.js";
|
|
38
|
+
import "../input-number/index.js";
|
|
29
39
|
import "../link/index.js";
|
|
30
|
-
import "../
|
|
31
|
-
import
|
|
32
|
-
import "../
|
|
33
|
-
import "../
|
|
40
|
+
import "../list-cell/index.js";
|
|
41
|
+
import "../logo/index.js";
|
|
42
|
+
import "../menu/index.js";
|
|
43
|
+
import "../multiple-tabs/index.js";
|
|
34
44
|
import "../overlay/index.js";
|
|
35
|
-
import "../clamp/index.js";
|
|
36
|
-
import "../clamp-toggle/index.js";
|
|
37
45
|
import "../page-wrapper/index.js";
|
|
38
|
-
import "../
|
|
39
|
-
import "../
|
|
40
|
-
import "../
|
|
41
|
-
import
|
|
42
|
-
import "../
|
|
46
|
+
import "../pagination/index.js";
|
|
47
|
+
import { VftPopconfirm as F } from "../popconfirm/index.js";
|
|
48
|
+
import "../popover/index.js";
|
|
49
|
+
import "../popper/index.js";
|
|
50
|
+
import "../qrcode/index.js";
|
|
43
51
|
import "../radio/index.js";
|
|
44
|
-
import "../
|
|
45
|
-
import "../
|
|
52
|
+
import "../result/index.js";
|
|
53
|
+
import "../router-view-content/index.js";
|
|
54
|
+
import "../row/index.js";
|
|
46
55
|
import "../scrollbar/index.js";
|
|
47
|
-
import "../
|
|
48
|
-
import "../virtual-list/components/fixed-size-list.js";
|
|
49
|
-
import "../virtual-list/components/dynamic-size-list.js";
|
|
50
|
-
import "../virtual-list/components/fixed-size-grid.js";
|
|
51
|
-
import "../virtual-list/components/dynamic-size-grid.js";
|
|
52
|
-
import "../virtual-list/props.js";
|
|
56
|
+
import "../search/index.js";
|
|
53
57
|
import "../select/index.js";
|
|
54
|
-
import "../
|
|
58
|
+
import "../side-menu/index.js";
|
|
59
|
+
import "../skeleton/index.js";
|
|
60
|
+
import "../slider/index.js";
|
|
61
|
+
import "../space/index.js";
|
|
62
|
+
import "../switch/index.js";
|
|
55
63
|
import "./index.js";
|
|
56
|
-
import "../
|
|
57
|
-
import "../
|
|
58
|
-
import "../dialog/index.js";
|
|
59
|
-
import "../date-time-select/index.js";
|
|
60
|
-
import "../col/index.js";
|
|
61
|
-
import "../row/index.js";
|
|
62
|
-
import "../horizontal-menu/index.js";
|
|
64
|
+
import "../tabs/index.js";
|
|
65
|
+
import { VftTag as E } from "../tag/index.js";
|
|
63
66
|
import "../time-picker/index.js";
|
|
64
|
-
import "../
|
|
65
|
-
import "../check-tag/index.js";
|
|
67
|
+
import "../tooltip/index.js";
|
|
66
68
|
import "../tree/index.js";
|
|
67
|
-
import "../
|
|
68
|
-
import "../
|
|
69
|
-
import "../
|
|
70
|
-
import
|
|
71
|
-
import "../
|
|
72
|
-
import "../
|
|
73
|
-
import "../input-number/index.js";
|
|
74
|
-
import "../slider/index.js";
|
|
69
|
+
import "../verify-code/index.js";
|
|
70
|
+
import "../virtual-list/components/dynamic-size-grid.js";
|
|
71
|
+
import "../virtual-list/components/dynamic-size-list.js";
|
|
72
|
+
import "../virtual-list/components/fixed-size-grid.js";
|
|
73
|
+
import "../virtual-list/components/fixed-size-list.js";
|
|
74
|
+
import "../virtual-list/props.js";
|
|
75
75
|
import "../autocomplete/index.js";
|
|
76
|
-
import "../
|
|
76
|
+
import "../modal/index.js";
|
|
77
77
|
import "../progress/index.js";
|
|
78
|
+
import "../super-form/index.js";
|
|
78
79
|
import "../upload/index.js";
|
|
79
|
-
import "../
|
|
80
|
-
import "../md-
|
|
80
|
+
import "../md-code-demo/index.js";
|
|
81
|
+
import "../md-code-tabs/index.js";
|
|
81
82
|
import "../md-comment/index.js";
|
|
83
|
+
import "../md-container/index.js";
|
|
82
84
|
import "../md-tabs/index.js";
|
|
83
85
|
import "../md-vue-playground/index.js";
|
|
84
|
-
import "
|
|
85
|
-
import "
|
|
86
|
-
import "
|
|
86
|
+
import "@vueuse/core";
|
|
87
|
+
import "../../utils/ns-cover.js";
|
|
88
|
+
import "lodash";
|
|
87
89
|
import "../config-provider/hooks/use-global-config.js";
|
|
88
90
|
import "@popperjs/core";
|
|
89
|
-
import "lodash";
|
|
90
91
|
import "../../hooks/use-z-index/index.js";
|
|
91
|
-
import "
|
|
92
|
-
import "../../utils/ns-cover.js";
|
|
92
|
+
import "../message/index.js";
|
|
93
93
|
function u(i) {
|
|
94
94
|
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !_(i);
|
|
95
95
|
}
|
|
@@ -164,9 +164,9 @@ const ei = {
|
|
|
164
164
|
row: n
|
|
165
165
|
}) => {
|
|
166
166
|
let m = n == null ? void 0 : n[i];
|
|
167
|
-
return M(m) ? "-" : (e && Number(m) === 0 && (m = !1), m ? p(
|
|
167
|
+
return M(m) ? "-" : (e && Number(m) === 0 && (m = !1), m ? p(E, null, u(o) ? o : {
|
|
168
168
|
default: () => [o]
|
|
169
|
-
}) : p(
|
|
169
|
+
}) : p(E, {
|
|
170
170
|
type: "danger"
|
|
171
171
|
}, u(r) ? r : {
|
|
172
172
|
default: () => [r]
|
|
@@ -195,7 +195,7 @@ const ei = {
|
|
|
195
195
|
s.value = !1;
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
return p(Y, null, [n ? p(
|
|
198
|
+
return p(Y, null, [n ? p(D, {
|
|
199
199
|
size: "small",
|
|
200
200
|
type: "primary",
|
|
201
201
|
onClick: () => t == null ? void 0 : t(f)
|
|
@@ -206,7 +206,7 @@ const ei = {
|
|
|
206
206
|
onConfirm: a,
|
|
207
207
|
title: i
|
|
208
208
|
}, {
|
|
209
|
-
reference: () => p(
|
|
209
|
+
reference: () => p(D, {
|
|
210
210
|
loading: s.value,
|
|
211
211
|
size: "small",
|
|
212
212
|
type: "danger"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { withInstall as E } from "../../utils/vue/install.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "@vft/utils";
|
|
4
|
-
import "lodash";
|
|
5
1
|
import "@vueuse/core";
|
|
2
|
+
import "@vft/utils";
|
|
6
3
|
import "../../utils/ns-cover.js";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import { withInstall as E } from "../../utils/vue/install.js";
|
|
6
|
+
import "vue";
|
|
7
7
|
import r from "./table.vue2.js";
|
|
8
8
|
import { ACTION_FIELD as F, CHECKED_FIELD as L, CREATE_TIME_FIELD as a, DATE_FIELD as f, DATE_TIME_FIELD as A, ID_FIELD as l, NAME_FIELD as s, SEQ_FIELD as M, STATUS_FIELD as n, UPDATE_TIME_FIELD as u } from "./field.js";
|
|
9
9
|
import { useTable as C } from "./use/use-table.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as v, useAttrs as M, ref as g, getCurrentInstance as q, computed as f, unref as e, watch as W, nextTick as X, toRaw as Y, resolveComponent as j, openBlock as w, createElementBlock as Z, normalizeClass as J, createVNode as S, mergeProps as x, withCtx as b, withDirectives as Q, createElementVNode as U, createBlock as $, createCommentVNode as ee } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "@popperjs/core";
|
|
6
|
-
import "lodash";
|
|
7
|
-
import "../../hooks/use-z-index/index.js";
|
|
2
|
+
import { isFunction as oe } from "@vft/utils";
|
|
3
|
+
import { VftEmpty as te } from "../empty/index.js";
|
|
4
|
+
import { vLoading as ae } from "../loading/directive.js";
|
|
8
5
|
import "@vueuse/core";
|
|
9
|
-
import { isFunction as ne } from "@vft/utils";
|
|
10
6
|
import "../../utils/ns-cover.js";
|
|
7
|
+
import "lodash";
|
|
8
|
+
import { useNamespace as ne } from "../../hooks/use-namespace/index.js";
|
|
9
|
+
import "@popperjs/core";
|
|
10
|
+
import "../../hooks/use-z-index/index.js";
|
|
11
11
|
import "../icon/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { VftPagination as re } from "../pagination/index.js";
|
|
13
|
+
import { PAGE_SIZE as le } from "./constants.js";
|
|
14
|
+
import { useColumns as ie } from "./use/use-columns.js";
|
|
15
15
|
import { useDataSource as se } from "./use/use-data-source.js";
|
|
16
16
|
import { useLoading as ge } from "./use/use-loading.js";
|
|
17
|
-
import {
|
|
17
|
+
import { usePagination as fe } from "./use/use-pagination.js";
|
|
18
18
|
import { EmptyEnum as pe } from "../empty/constants.js";
|
|
19
19
|
const ue = {
|
|
20
20
|
"vft-loading-text": "加载中..."
|
|
21
21
|
}, p = (
|
|
22
22
|
/* hoist-static*/
|
|
23
|
-
|
|
23
|
+
ne("table")
|
|
24
24
|
), me = v({
|
|
25
25
|
name: "vft-table"
|
|
26
26
|
}), Te = /* @__PURE__ */ v({
|
|
@@ -31,7 +31,7 @@ const ue = {
|
|
|
31
31
|
},
|
|
32
32
|
api: {},
|
|
33
33
|
pageSize: {
|
|
34
|
-
default:
|
|
34
|
+
default: le
|
|
35
35
|
},
|
|
36
36
|
total: {},
|
|
37
37
|
rowkey: {
|
|
@@ -232,10 +232,10 @@ const ue = {
|
|
|
232
232
|
setPagination: m,
|
|
233
233
|
getShowPagination: d,
|
|
234
234
|
getCurrentPage: k
|
|
235
|
-
} =
|
|
235
|
+
} = fe(t), {
|
|
236
236
|
getViewColumns: D,
|
|
237
237
|
setColumns: T
|
|
238
|
-
} =
|
|
238
|
+
} = ie(t);
|
|
239
239
|
W(() => k(), (a) => {
|
|
240
240
|
X(() => {
|
|
241
241
|
c({
|
|
@@ -274,7 +274,7 @@ const ue = {
|
|
|
274
274
|
const {
|
|
275
275
|
onChange: o
|
|
276
276
|
} = e(t);
|
|
277
|
-
o &&
|
|
277
|
+
o && oe(o) && o.call(void 0, ...a);
|
|
278
278
|
}
|
|
279
279
|
const K = f(() => window.innerHeight - e(t).extraSysHeight + "px"), y = f(() => {
|
|
280
280
|
var o, r;
|
|
@@ -313,12 +313,12 @@ const ue = {
|
|
|
313
313
|
ref_key: "xGrid",
|
|
314
314
|
ref: u
|
|
315
315
|
}, y.value), {
|
|
316
|
-
empty: b(() => [S(e(
|
|
316
|
+
empty: b(() => [S(e(te), {
|
|
317
317
|
type: e(pe).NO_DATA
|
|
318
318
|
}, null, 8, ["type"])]),
|
|
319
|
-
loading: b(() => [Q(U("div", ue, null, 512), [[e(
|
|
319
|
+
loading: b(() => [Q(U("div", ue, null, 512), [[e(ae), y.value.loading]])]),
|
|
320
320
|
_: 1
|
|
321
|
-
}, 16), e(d) ? (w(), $(e(
|
|
321
|
+
}, 16), e(d) ? (w(), $(e(re), x({
|
|
322
322
|
key: 0
|
|
323
323
|
}, e(i), {
|
|
324
324
|
class: [e(p).e("pager"), e(p).m("pager-" + e(i).pagePlacement)],
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isNullOrUndefined as g, isArray as d } from "@vft/utils";
|
|
2
|
+
import { cloneDeep as l } from "lodash";
|
|
3
|
+
import { ref as h, unref as t, computed as c, watch as v, toRaw as p } from "vue";
|
|
4
4
|
function y(o) {
|
|
5
|
-
const e =
|
|
5
|
+
const e = h(t(o).columns);
|
|
6
6
|
let s = t(o).columns;
|
|
7
|
-
const u =
|
|
8
|
-
const r =
|
|
7
|
+
const u = c(() => {
|
|
8
|
+
const r = l(t(e));
|
|
9
9
|
return r ? r.map((n) => (!n.formatter && !n.slots && !n.cellRender && (n.formatter = ({
|
|
10
10
|
cellValue: f
|
|
11
|
-
}) =>
|
|
12
|
-
}), m =
|
|
11
|
+
}) => g(f) || f === "" ? "-" : f), n)) : [];
|
|
12
|
+
}), m = c(() => t(u));
|
|
13
13
|
function i(r) {
|
|
14
|
-
const n =
|
|
15
|
-
if (
|
|
14
|
+
const n = l(r);
|
|
15
|
+
if (d(n)) {
|
|
16
16
|
if (n.length <= 0) {
|
|
17
17
|
e.value = [];
|
|
18
18
|
return;
|
|
@@ -20,11 +20,11 @@ function y(o) {
|
|
|
20
20
|
e.value = n;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
v(() => t(o).columns, (r) => {
|
|
24
24
|
e.value = r || e.value, s = (r == null ? void 0 : r.filter((n) => !n.flag)) ?? [];
|
|
25
25
|
}, {});
|
|
26
26
|
function a() {
|
|
27
|
-
return
|
|
27
|
+
return p(t(u));
|
|
28
28
|
}
|
|
29
29
|
function C() {
|
|
30
30
|
return s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useTimeoutFn as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { isFunction as S, isBoolean as z, delObjAttrNotExist as X, isString as Y, isEmptyObject as $, isNullOrUndefined as N, isObject as P, isPlainObject as L, isNumber as ee } from "@vft/utils";
|
|
2
|
+
import { useTimeoutFn as te } from "@vueuse/core";
|
|
3
|
+
import { merge as ae, get as _ } from "lodash";
|
|
4
|
+
import { ref as D, watchEffect as re, unref as r, watch as x, computed as ie, onMounted as ne } from "vue";
|
|
5
5
|
import { PAGE_SIZE as ce } from "../constants.js";
|
|
6
6
|
function me(l, {
|
|
7
7
|
tableData: k,
|
|
@@ -9,10 +9,10 @@ function me(l, {
|
|
|
9
9
|
getPaginationInfo: y,
|
|
10
10
|
setPagination: o
|
|
11
11
|
}, p) {
|
|
12
|
-
const t =
|
|
13
|
-
|
|
12
|
+
const t = D([]), M = D({});
|
|
13
|
+
re(() => {
|
|
14
14
|
k.value = r(t);
|
|
15
|
-
}),
|
|
15
|
+
}), x(() => r(l).data, () => {
|
|
16
16
|
const { data: e, api: a } = r(l);
|
|
17
17
|
!a && e && (t.value = e);
|
|
18
18
|
}, {
|
|
@@ -21,7 +21,7 @@ function me(l, {
|
|
|
21
21
|
function q(e) {
|
|
22
22
|
o(e), d({});
|
|
23
23
|
}
|
|
24
|
-
const O =
|
|
24
|
+
const O = ie(() => {
|
|
25
25
|
const e = r(t);
|
|
26
26
|
return !e || e.length === 0 ? r(t) : r(t);
|
|
27
27
|
});
|
|
@@ -36,7 +36,7 @@ function me(l, {
|
|
|
36
36
|
transformParams: K,
|
|
37
37
|
extraParams: v
|
|
38
38
|
} = r(l);
|
|
39
|
-
if (!(!a || !
|
|
39
|
+
if (!(!a || !S(a)))
|
|
40
40
|
try {
|
|
41
41
|
T(!0);
|
|
42
42
|
const { pageField: g, sizeField: Q, listField: V, totalField: W } = Object.assign(
|
|
@@ -52,21 +52,21 @@ function me(l, {
|
|
|
52
52
|
let b = {}, c = e;
|
|
53
53
|
const { currentPage: A = 1, pageSize: E = ce } = r(y);
|
|
54
54
|
if (K) {
|
|
55
|
-
if (
|
|
55
|
+
if (z(h) && !h || z(y) ? b = {} : (b[g] = e && e.page || A, b[Q] = E), c = ae(
|
|
56
56
|
e,
|
|
57
57
|
b
|
|
58
|
-
), n &&
|
|
58
|
+
), n && S(n)) {
|
|
59
59
|
const F = await n(c);
|
|
60
60
|
c = { ...c, ...F };
|
|
61
61
|
}
|
|
62
|
-
s &&
|
|
62
|
+
s && X(c, Y(s) ? s === "strict" : !1);
|
|
63
63
|
}
|
|
64
|
-
c &&
|
|
64
|
+
c && !$(c) && !N(v) ? P(c) && P(v) && (c = Object.assign({}, c, v)) : N(v) || (c = v);
|
|
65
65
|
const f = await a(c);
|
|
66
66
|
M.value = f;
|
|
67
67
|
const R = Array.isArray(f);
|
|
68
|
-
let m = R ? f :
|
|
69
|
-
const w = R ? f.length :
|
|
68
|
+
let m = R ? f : _(f, V);
|
|
69
|
+
const w = R ? f.length : _(f, W);
|
|
70
70
|
if (Number(w)) {
|
|
71
71
|
const F = Math.ceil(w / E);
|
|
72
72
|
if (A > F)
|
|
@@ -74,7 +74,7 @@ function me(l, {
|
|
|
74
74
|
currentPage: F
|
|
75
75
|
}), await d(e);
|
|
76
76
|
}
|
|
77
|
-
return u &&
|
|
77
|
+
return u && S(u) && (m = await u(m) || m), t.value = m, o({
|
|
78
78
|
total: w || 0
|
|
79
79
|
}), e && e.page && o({
|
|
80
80
|
currentPage: e.page || 1
|
|
@@ -117,7 +117,7 @@ function me(l, {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function U(e, a = 0) {
|
|
120
|
-
const i =
|
|
120
|
+
const i = L(e) ? [e] : e;
|
|
121
121
|
return t.value.splice(a, 0, ...i), r(t);
|
|
122
122
|
}
|
|
123
123
|
function Z(e, a) {
|
|
@@ -126,7 +126,7 @@ function me(l, {
|
|
|
126
126
|
const { rowkey: i } = r(l), n = t.value.findIndex((h) => h[a || i] === e[a || i]);
|
|
127
127
|
t.value.splice(n, 1);
|
|
128
128
|
const { total: u } = r(y);
|
|
129
|
-
|
|
129
|
+
ee(u) && o({
|
|
130
130
|
total: u - 1
|
|
131
131
|
});
|
|
132
132
|
}
|
|
@@ -136,12 +136,12 @@ function me(l, {
|
|
|
136
136
|
function J() {
|
|
137
137
|
return O.value;
|
|
138
138
|
}
|
|
139
|
-
const j =
|
|
140
|
-
return
|
|
141
|
-
|
|
139
|
+
const j = D(!0);
|
|
140
|
+
return ne(() => {
|
|
141
|
+
te(() => {
|
|
142
142
|
r(l).immediate && d(), j.value = !1;
|
|
143
143
|
}, 16);
|
|
144
|
-
}),
|
|
144
|
+
}), x(() => r(l).api, () => {
|
|
145
145
|
r(l).watchApiFetch && !j.value && r(l).immediate && d();
|
|
146
146
|
}), {
|
|
147
147
|
setTableData: H,
|