@aplus-frontend/ui 0.0.1-beta.7 → 0.0.1-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +163 -156
- package/es/src/ap-action/group/index.vue.mjs +22 -18
- package/es/src/ap-action/index.mjs +7 -4
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.mjs +2 -47
- package/es/src/ap-action/item/index.vue2.mjs +47 -2
- package/es/src/ap-action/item-dropdown/index.vue.mjs +14 -11
- package/es/src/ap-action/item-modal/index.vue.mjs +9 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +10 -8
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.mjs +9 -9
- package/es/src/ap-field/index.d.ts +12 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +3 -2
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.mjs +2 -2
- package/es/src/ap-field/number/index.vue.mjs +30 -32
- package/es/src/ap-field/radio/index.vue.mjs +40 -34
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +6 -6
- package/es/src/ap-field/text/index.vue.d.ts +5 -5
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
- package/es/src/ap-form/ap-form-item.vue.d.ts +3 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +80 -2
- package/es/src/ap-form/index.d.ts +31 -1682
- package/es/src/ap-form/index.mjs +12 -7
- package/es/src/ap-form/interface.d.ts +3 -1
- package/es/src/ap-form/items/index.d.ts +3 -0
- package/es/src/ap-form/items/index.mjs +1 -0
- package/es/src/ap-form/items/interface.d.ts +12 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +69 -0
- package/es/src/ap-form/items/text/index.vue.mjs +102 -0
- package/es/src/ap-form/items/text/index.vue2.mjs +4 -0
- package/es/src/ap-form/style/ap-form-item.css +4 -0
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider-props.d.ts +4 -0
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +9 -0
- package/es/src/config-provider/config-provider.mjs +20 -16
- package/es/src/config-provider/hooks/use-global-config.d.ts +4 -0
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.d.ts +19 -0
- package/es/src/config-provider/index.mjs +26 -13
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/collapse/style/header.css +1 -1
- package/es/src/container/collapse/style/index.css +1 -1
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/cropper/style/avatar.css +1 -1
- package/es/src/cropper/style/modal.css +2 -2
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.mjs +163 -155
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.mjs +2 -195
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.mjs +10 -7
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/style/index.css +1 -1
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.mjs +39 -37
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/hooks/use-columns.mjs +5 -5
- package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.d.ts +1 -1
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.d.ts +3 -0
- package/es/src/pro-table/pro-table.vue.mjs +69 -70
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/theme/ap-form/ap-form-item.css +4 -0
- package/es/src/theme/collapse-container/header.css +1 -1
- package/es/src/theme/collapse-container/index.css +1 -1
- package/es/src/theme/cropper/avatar.css +1 -1
- package/es/src/theme/cropper/modal.css +2 -2
- package/es/src/theme/modal/index.css +1 -1
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/index.js +1 -1
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +12 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +3 -2
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +5 -5
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +3 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/index.d.ts +31 -1682
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -1
- package/lib/src/ap-form/items/index.d.ts +3 -0
- package/lib/src/ap-form/items/index.js +1 -0
- package/lib/src/ap-form/items/interface.d.ts +12 -0
- package/lib/src/ap-form/items/text/index.vue.d.ts +69 -0
- package/lib/src/ap-form/items/text/index.vue.js +1 -0
- package/lib/src/ap-form/items/text/index.vue2.js +1 -0
- package/lib/src/ap-form/style/ap-form-item.css +4 -0
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +4 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +9 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -0
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +19 -0
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/collapse/style/header.css +1 -1
- package/lib/src/container/collapse/style/index.css +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/cropper/style/avatar.css +1 -1
- package/lib/src/cropper/style/modal.css +2 -2
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/style/index.css +1 -1
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.d.ts +1 -1
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.d.ts +3 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/theme/ap-form/ap-form-item.css +4 -0
- package/lib/src/theme/collapse-container/header.css +1 -1
- package/lib/src/theme/collapse-container/index.css +1 -1
- package/lib/src/theme/cropper/avatar.css +1 -1
- package/lib/src/theme/cropper/modal.css +2 -2
- package/lib/src/theme/modal/index.css +1 -1
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/package.json +1 -1
|
@@ -1,101 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useWindowSizeFn as O } from "@aplus-frontend/hooks";
|
|
3
|
-
import { ScrollContainer as A } from "../../container/index.mjs";
|
|
4
|
-
import { createModalContext as I } from "../hooks/use-modal-context.mjs";
|
|
5
|
-
import { useMutationObserver as N } from "@vueuse/core";
|
|
6
|
-
import { modalWrapperProps as P } from "../props.mjs";
|
|
7
|
-
const U = ["loading-tip"], Q = /* @__PURE__ */ E({
|
|
8
|
-
name: "ModalWrapper",
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "modal-wrapper",
|
|
11
|
-
props: P,
|
|
12
|
-
emits: ["height-change", "ext-height"],
|
|
13
|
-
setup(v, { expose: w, emit: y }) {
|
|
14
|
-
const t = v, d = y, u = a(null), m = a(null), n = a(0), h = a(0), s = a(0);
|
|
15
|
-
O(r.bind(null)), N(
|
|
16
|
-
m,
|
|
17
|
-
() => {
|
|
18
|
-
r();
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
attributes: !0,
|
|
22
|
-
subtree: !0
|
|
23
|
-
}
|
|
24
|
-
), I({
|
|
25
|
-
redoModalHeight: r
|
|
26
|
-
});
|
|
27
|
-
const _ = b(() => ({
|
|
28
|
-
minHeight: `${t.minHeight}px`,
|
|
29
|
-
[t.fullScreen ? "height" : "maxHeight"]: `${l(n)}px`
|
|
30
|
-
}));
|
|
31
|
-
k(() => {
|
|
32
|
-
t.useWrapper && r();
|
|
33
|
-
}), M(
|
|
34
|
-
() => t.fullScreen,
|
|
35
|
-
(e) => {
|
|
36
|
-
r(), e ? h.value = n.value : n.value = h.value;
|
|
37
|
-
}
|
|
38
|
-
), R(() => {
|
|
39
|
-
const { modalHeaderHeight: e, modalFooterHeight: o } = t;
|
|
40
|
-
d("ext-height", e + o);
|
|
41
|
-
}), C(() => {
|
|
42
|
-
});
|
|
43
|
-
async function x() {
|
|
44
|
-
c(() => {
|
|
45
|
-
var o;
|
|
46
|
-
const e = l(u);
|
|
47
|
-
e && ((o = e == null ? void 0 : e.scrollTo) == null || o.call(e, 0));
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
async function r() {
|
|
51
|
-
if (!t.open)
|
|
52
|
-
return;
|
|
53
|
-
const e = l(u);
|
|
54
|
-
if (!e)
|
|
55
|
-
return;
|
|
56
|
-
const o = e.$el.parentElement;
|
|
57
|
-
if (o) {
|
|
58
|
-
o.style.padding = "0", await c();
|
|
59
|
-
try {
|
|
60
|
-
const i = o.parentElement && o.parentElement.parentElement;
|
|
61
|
-
if (!i)
|
|
62
|
-
return;
|
|
63
|
-
const S = getComputedStyle(i).top, f = Number.parseInt(S);
|
|
64
|
-
let p = window.innerHeight - f * 2 + (t.footerOffset || 0) - t.modalFooterHeight - t.modalHeaderHeight;
|
|
65
|
-
f < 40 && (p -= 26), await c();
|
|
66
|
-
const g = l(m);
|
|
67
|
-
if (!g)
|
|
68
|
-
return;
|
|
69
|
-
await c(), s.value = g.scrollHeight, t.fullScreen ? n.value = window.innerHeight - t.modalFooterHeight - t.modalHeaderHeight - 28 : n.value = t.height ? t.height : s.value > p ? p : s.value, d("height-change", l(n));
|
|
70
|
-
} catch (i) {
|
|
71
|
-
console.log(i);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return w({ scrollTop: x, setModalHeight: r }), (e, o) => {
|
|
76
|
-
const i = T("loading");
|
|
77
|
-
return H(), F(l(A), {
|
|
78
|
-
ref_key: "wrapperRef",
|
|
79
|
-
ref: u,
|
|
80
|
-
scrollHeight: s.value
|
|
81
|
-
}, {
|
|
82
|
-
default: W(() => [
|
|
83
|
-
$((H(), B("div", {
|
|
84
|
-
ref_key: "spinRef",
|
|
85
|
-
ref: m,
|
|
86
|
-
style: z(_.value),
|
|
87
|
-
"loading-tip": e.loadingTip
|
|
88
|
-
}, [
|
|
89
|
-
D(e.$slots, "default")
|
|
90
|
-
], 12, U)), [
|
|
91
|
-
[i, e.loading]
|
|
92
|
-
])
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
}, 8, ["scrollHeight"]);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
});
|
|
1
|
+
import f from "./modal-wrapper.vue2.mjs";
|
|
99
2
|
export {
|
|
100
|
-
|
|
3
|
+
f as default
|
|
101
4
|
};
|
|
@@ -1,4 +1,104 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as R, ref as a, computed as b, unref as l, watchEffect as k, watch as M, onMounted as C, onUnmounted as F, nextTick as c, resolveDirective as T, openBlock as v, createBlock as W, withCtx as $, withDirectives as z, createElementBlock as B, normalizeStyle as D, renderSlot as O } from "vue";
|
|
2
|
+
import { useWindowSizeFn as A } from "@aplus-frontend/hooks";
|
|
3
|
+
import { ScrollContainer as I } from "../../container/index.mjs";
|
|
4
|
+
import { createModalContext as N } from "../hooks/use-modal-context.mjs";
|
|
5
|
+
import { useMutationObserver as P } from "@vueuse/core";
|
|
6
|
+
import { modalWrapperProps as U } from "../props.mjs";
|
|
7
|
+
const j = ["loading-tip"], V = /* @__PURE__ */ R({
|
|
8
|
+
name: "ModalWrapper",
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
__name: "modal-wrapper",
|
|
11
|
+
props: U,
|
|
12
|
+
emits: ["height-change", "ext-height"],
|
|
13
|
+
setup(w, { expose: y, emit: _ }) {
|
|
14
|
+
const t = w, m = _, p = a(null), u = a(null), n = a(0), h = a(0), s = a(0);
|
|
15
|
+
let f = () => {
|
|
16
|
+
};
|
|
17
|
+
A(r.bind(null)), P(
|
|
18
|
+
u,
|
|
19
|
+
() => {
|
|
20
|
+
r();
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
attributes: !0,
|
|
24
|
+
subtree: !0
|
|
25
|
+
}
|
|
26
|
+
), N({
|
|
27
|
+
redoModalHeight: r
|
|
28
|
+
});
|
|
29
|
+
const x = b(() => ({
|
|
30
|
+
minHeight: `${t.minHeight}px`,
|
|
31
|
+
[t.fullScreen ? "height" : "maxHeight"]: `${l(n)}px`
|
|
32
|
+
}));
|
|
33
|
+
k(() => {
|
|
34
|
+
t.useWrapper && r();
|
|
35
|
+
}), M(
|
|
36
|
+
() => t.fullScreen,
|
|
37
|
+
(e) => {
|
|
38
|
+
r(), e ? h.value = n.value : n.value = h.value;
|
|
39
|
+
}
|
|
40
|
+
), C(() => {
|
|
41
|
+
const { modalHeaderHeight: e, modalFooterHeight: o } = t;
|
|
42
|
+
m("ext-height", e + o);
|
|
43
|
+
}), F(() => {
|
|
44
|
+
f && f();
|
|
45
|
+
});
|
|
46
|
+
async function S() {
|
|
47
|
+
c(() => {
|
|
48
|
+
var o;
|
|
49
|
+
const e = l(p);
|
|
50
|
+
e && ((o = e == null ? void 0 : e.scrollTo) == null || o.call(e, 0));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async function r() {
|
|
54
|
+
if (!t.open)
|
|
55
|
+
return;
|
|
56
|
+
const e = l(p);
|
|
57
|
+
if (!e)
|
|
58
|
+
return;
|
|
59
|
+
const o = e.$el.parentElement;
|
|
60
|
+
if (o) {
|
|
61
|
+
o.style.padding = "0", await c();
|
|
62
|
+
try {
|
|
63
|
+
const i = o.parentElement && o.parentElement.parentElement;
|
|
64
|
+
if (!i)
|
|
65
|
+
return;
|
|
66
|
+
const E = getComputedStyle(i).top, g = Number.parseInt(E);
|
|
67
|
+
let d = window.innerHeight - g * 2 + (t.footerOffset || 0) - t.modalFooterHeight - t.modalHeaderHeight;
|
|
68
|
+
g < 40 && (d -= 26), await c();
|
|
69
|
+
const H = l(u);
|
|
70
|
+
if (!H)
|
|
71
|
+
return;
|
|
72
|
+
await c(), s.value = H.scrollHeight, t.fullScreen ? n.value = window.innerHeight - t.modalFooterHeight - t.modalHeaderHeight - 28 : n.value = t.height ? t.height : s.value > d ? d : s.value, m("height-change", l(n));
|
|
73
|
+
} catch (i) {
|
|
74
|
+
console.log(i);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return y({ scrollTop: S, setModalHeight: r }), (e, o) => {
|
|
79
|
+
const i = T("loading");
|
|
80
|
+
return v(), W(l(I), {
|
|
81
|
+
ref_key: "wrapperRef",
|
|
82
|
+
ref: p,
|
|
83
|
+
scrollHeight: s.value
|
|
84
|
+
}, {
|
|
85
|
+
default: $(() => [
|
|
86
|
+
z((v(), B("div", {
|
|
87
|
+
ref_key: "spinRef",
|
|
88
|
+
ref: u,
|
|
89
|
+
style: D(x.value),
|
|
90
|
+
"loading-tip": e.loadingTip
|
|
91
|
+
}, [
|
|
92
|
+
O(e.$slots, "default")
|
|
93
|
+
], 12, j)), [
|
|
94
|
+
[i, e.loading]
|
|
95
|
+
])
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
}, 8, ["scrollHeight"]);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
2
102
|
export {
|
|
3
|
-
|
|
103
|
+
V as default
|
|
4
104
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isVNode as p, defineComponent as f, toRefs as d, unref as m, createVNode as u } from "vue";
|
|
2
2
|
import { Modal as M } from "ant-design-vue";
|
|
3
3
|
import { basicProps as b } from "../props.mjs";
|
|
4
4
|
import { useModalDragMove as g } from "../hooks/use-modal-drag.mjs";
|
|
5
5
|
import { extendSlots as j } from "../../utils/slot.mjs";
|
|
6
6
|
function y(o) {
|
|
7
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
7
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !p(o);
|
|
8
8
|
}
|
|
9
|
-
const N = /* @__PURE__ */
|
|
9
|
+
const N = /* @__PURE__ */ f({
|
|
10
10
|
name: "Modal",
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
props: b,
|
|
@@ -20,7 +20,7 @@ const N = /* @__PURE__ */ p({
|
|
|
20
20
|
open: a,
|
|
21
21
|
draggable: l,
|
|
22
22
|
destroyOnClose: s
|
|
23
|
-
} =
|
|
23
|
+
} = d(o);
|
|
24
24
|
g({
|
|
25
25
|
open: a,
|
|
26
26
|
destroyOnClose: s,
|
|
@@ -32,11 +32,11 @@ const N = /* @__PURE__ */ p({
|
|
|
32
32
|
return () => {
|
|
33
33
|
let t;
|
|
34
34
|
const i = {
|
|
35
|
-
...
|
|
35
|
+
...m(n),
|
|
36
36
|
...o,
|
|
37
37
|
onCancel: c
|
|
38
38
|
};
|
|
39
|
-
return
|
|
39
|
+
return u(M, i, y(t = j(e)) ? t : {
|
|
40
40
|
default: () => [t]
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as P, ref as d,
|
|
1
|
+
import { reactive as P, ref as d, getCurrentInstance as h, onUnmounted as w, unref as t, computed as v, toRaw as c, watchEffect as E, nextTick as O } from "vue";
|
|
2
2
|
import { isProdMode as M } from "@aplus-frontend/utils";
|
|
3
3
|
import { isEqual as H } from "lodash-unified";
|
|
4
4
|
import { tryOnUnmounted as I } from "@vueuse/core";
|
|
@@ -7,11 +7,11 @@ const u = P({}), g = P({});
|
|
|
7
7
|
function C() {
|
|
8
8
|
const r = d(null), a = d(!1), s = d(0);
|
|
9
9
|
function i(e, o) {
|
|
10
|
-
if (!
|
|
10
|
+
if (!h())
|
|
11
11
|
throw new Error(
|
|
12
12
|
"useModal() can only be used inside setup() or functional components!"
|
|
13
13
|
);
|
|
14
|
-
s.value = o, M() &&
|
|
14
|
+
s.value = o, M() && w(() => {
|
|
15
15
|
r.value = null, a.value = !1, u[String(t(s))] = null;
|
|
16
16
|
}), !(t(a) && M() && e === t(r)) && (r.value = e, a.value = !0, e.emitOpen = (p, l) => {
|
|
17
17
|
g[l] = p;
|
|
@@ -27,7 +27,7 @@ function C() {
|
|
|
27
27
|
var o;
|
|
28
28
|
(o = n()) == null || o.setModalProps(e);
|
|
29
29
|
},
|
|
30
|
-
getOpen:
|
|
30
|
+
getOpen: v(() => g[~~t(s)]),
|
|
31
31
|
redoModalHeight: () => {
|
|
32
32
|
var e, o;
|
|
33
33
|
(o = (e = n()) == null ? void 0 : e.redoModalHeight) == null || o.call(e);
|
|
@@ -53,7 +53,7 @@ function C() {
|
|
|
53
53
|
return [i, f];
|
|
54
54
|
}
|
|
55
55
|
const D = (r) => {
|
|
56
|
-
const a = d(null), s =
|
|
56
|
+
const a = d(null), s = h(), i = d(0), n = () => {
|
|
57
57
|
const e = t(a);
|
|
58
58
|
if (!e)
|
|
59
59
|
throw new Error("useModalInner instance is undefined!");
|
|
@@ -63,9 +63,9 @@ const D = (r) => {
|
|
|
63
63
|
a.value = null;
|
|
64
64
|
}), i.value = o, a.value = e, s == null || s.emit("register", e, o);
|
|
65
65
|
};
|
|
66
|
-
return
|
|
66
|
+
return E(() => {
|
|
67
67
|
const e = u[t(i)];
|
|
68
|
-
e && (!r || !R(r) ||
|
|
68
|
+
e && (!r || !R(r) || O(() => {
|
|
69
69
|
r(e);
|
|
70
70
|
}));
|
|
71
71
|
}), [
|
|
@@ -75,7 +75,7 @@ const D = (r) => {
|
|
|
75
75
|
var o;
|
|
76
76
|
(o = n()) == null || o.setModalProps({ loading: e });
|
|
77
77
|
},
|
|
78
|
-
getOpen:
|
|
78
|
+
getOpen: v(() => g[~~t(i)]),
|
|
79
79
|
changeOkLoading: (e = !0) => {
|
|
80
80
|
var o;
|
|
81
81
|
(o = n()) == null || o.setModalProps({ confirmLoading: e });
|
package/es/src/modal/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import { useModal as
|
|
5
|
-
|
|
2
|
+
import "./basic.vue.mjs";
|
|
3
|
+
import { useModalContext as l } from "./hooks/use-modal-context.mjs";
|
|
4
|
+
import { useModal as f, useModalInner as d } from "./hooks/use-modal.mjs";
|
|
5
|
+
import "./interface.mjs";
|
|
6
|
+
import r from "./basic.vue2.mjs";
|
|
7
|
+
const p = o(r);
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
p as BaseModal,
|
|
10
|
+
f as useModal,
|
|
11
|
+
l as useModalContext,
|
|
12
|
+
d as useModalInner
|
|
10
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
import { Input as t, InputNumber as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { StrengthMeter as
|
|
10
|
-
import { IconPicker as
|
|
11
|
-
import { CountdownInput as
|
|
12
|
-
import { BasicTitle as
|
|
13
|
-
import { CropperAvatar as
|
|
1
|
+
import { Input as t, InputNumber as m, AutoComplete as c, Select as a, TreeSelect as n, Switch as u, Radio as f, Checkbox as i, Cascader as k, Slider as d, Rate as P, Transfer as T, DatePicker as r, TimePicker as s, Divider as l } from "ant-design-vue";
|
|
2
|
+
import "./components/api-radio-group.vue2.mjs";
|
|
3
|
+
import "./components/radio-button-group.vue2.mjs";
|
|
4
|
+
import "./components/api-select.vue2.mjs";
|
|
5
|
+
import "./components/api-tree.vue2.mjs";
|
|
6
|
+
import "./components/api-tree-select.vue2.mjs";
|
|
7
|
+
import "./components/api-cascader.vue2.mjs";
|
|
8
|
+
import "./components/api-transfer.vue2.mjs";
|
|
9
|
+
import { StrengthMeter as S } from "../strength-meter/index.mjs";
|
|
10
|
+
import { IconPicker as _ } from "../icon-picker/index.mjs";
|
|
11
|
+
import { CountdownInput as A } from "../count-down/index.mjs";
|
|
12
|
+
import { BasicTitle as C } from "../basic/index.mjs";
|
|
13
|
+
import { CropperAvatar as I } from "../cropper/index.mjs";
|
|
14
|
+
import h from "./components/api-select.vue.mjs";
|
|
15
|
+
import R from "./components/api-tree.vue.mjs";
|
|
16
|
+
import G from "./components/api-tree-select.vue.mjs";
|
|
17
|
+
import w from "./components/api-radio-group.vue.mjs";
|
|
18
|
+
import g from "./components/radio-button-group.vue.mjs";
|
|
19
|
+
import x from "./components/api-cascader.vue.mjs";
|
|
20
|
+
import M from "./components/api-transfer.vue.mjs";
|
|
14
21
|
const e = /* @__PURE__ */ new Map();
|
|
15
22
|
e.set("Input", t);
|
|
16
23
|
e.set("InputGroup", t.Group);
|
|
17
24
|
e.set("InputPassword", t.Password);
|
|
18
25
|
e.set("InputSearch", t.Search);
|
|
19
26
|
e.set("InputTextArea", t.TextArea);
|
|
20
|
-
e.set("InputNumber",
|
|
21
|
-
e.set("AutoComplete",
|
|
22
|
-
e.set("Select",
|
|
23
|
-
e.set("ApiSelect",
|
|
24
|
-
e.set("ApiTree",
|
|
25
|
-
e.set("TreeSelect",
|
|
26
|
-
e.set("ApiTreeSelect",
|
|
27
|
-
e.set("ApiRadioGroup",
|
|
28
|
-
e.set("Switch",
|
|
29
|
-
e.set("RadioButtonGroup",
|
|
30
|
-
e.set("RadioGroup",
|
|
31
|
-
e.set("Checkbox",
|
|
32
|
-
e.set("CheckboxGroup",
|
|
33
|
-
e.set("ApiCascader",
|
|
34
|
-
e.set("Cascader",
|
|
35
|
-
e.set("Slider",
|
|
36
|
-
e.set("Rate",
|
|
37
|
-
e.set("Transfer",
|
|
38
|
-
e.set("ApiTransfer",
|
|
27
|
+
e.set("InputNumber", m);
|
|
28
|
+
e.set("AutoComplete", c);
|
|
29
|
+
e.set("Select", a);
|
|
30
|
+
e.set("ApiSelect", h);
|
|
31
|
+
e.set("ApiTree", R);
|
|
32
|
+
e.set("TreeSelect", n);
|
|
33
|
+
e.set("ApiTreeSelect", G);
|
|
34
|
+
e.set("ApiRadioGroup", w);
|
|
35
|
+
e.set("Switch", u);
|
|
36
|
+
e.set("RadioButtonGroup", g);
|
|
37
|
+
e.set("RadioGroup", f.Group);
|
|
38
|
+
e.set("Checkbox", i);
|
|
39
|
+
e.set("CheckboxGroup", i.Group);
|
|
40
|
+
e.set("ApiCascader", x);
|
|
41
|
+
e.set("Cascader", k);
|
|
42
|
+
e.set("Slider", d);
|
|
43
|
+
e.set("Rate", P);
|
|
44
|
+
e.set("Transfer", T);
|
|
45
|
+
e.set("ApiTransfer", M);
|
|
39
46
|
e.set("DatePicker", r);
|
|
40
47
|
e.set("MonthPicker", r.MonthPicker);
|
|
41
48
|
e.set("RangePicker", r.RangePicker);
|
|
42
49
|
e.set("WeekPicker", r.WeekPicker);
|
|
43
|
-
e.set("TimePicker",
|
|
44
|
-
e.set("TimeRangePicker",
|
|
45
|
-
e.set("StrengthMeter",
|
|
46
|
-
e.set("IconPicker",
|
|
47
|
-
e.set("InputCountDown",
|
|
48
|
-
e.set("Divider",
|
|
49
|
-
e.set("CropperAvatar",
|
|
50
|
-
e.set("BasicTitle",
|
|
50
|
+
e.set("TimePicker", s);
|
|
51
|
+
e.set("TimeRangePicker", s.TimeRangePicker);
|
|
52
|
+
e.set("StrengthMeter", S);
|
|
53
|
+
e.set("IconPicker", _);
|
|
54
|
+
e.set("InputCountDown", A);
|
|
55
|
+
e.set("Divider", l);
|
|
56
|
+
e.set("CropperAvatar", I);
|
|
57
|
+
e.set("BasicTitle", C);
|
|
58
|
+
function V(o, p) {
|
|
59
|
+
e.set(o, p);
|
|
60
|
+
}
|
|
61
|
+
function X(o) {
|
|
62
|
+
e.delete(o);
|
|
63
|
+
}
|
|
51
64
|
export {
|
|
52
|
-
|
|
65
|
+
V as add,
|
|
66
|
+
e as componentMap,
|
|
67
|
+
X as del
|
|
53
68
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as k, useAttrs as w, ref as u, computed as B, unref as
|
|
|
2
2
|
import { TreeSelect as x } from "ant-design-vue";
|
|
3
3
|
import { get as z } from "lodash-unified";
|
|
4
4
|
import { LoadingOutlined as I } from "@ant-design/icons-vue";
|
|
5
|
-
import {
|
|
5
|
+
import { isArray as m, isFunction as M } from "@fruits-chain/utils";
|
|
6
6
|
const H = /* @__PURE__ */ k({
|
|
7
7
|
name: "ApApiTreeSelect",
|
|
8
8
|
__name: "api-tree-select",
|
|
@@ -1,107 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Col as F, Form as R } from "ant-design-vue";
|
|
3
|
-
import { BaseButton as B } from "../../base-button/index.mjs";
|
|
4
|
-
import { BasicArrow as G } from "../../basic/index.mjs";
|
|
5
|
-
import { useFormContext as P } from "../hooks/use-form-context.mjs";
|
|
6
|
-
import "../../config-provider/index.mjs";
|
|
7
|
-
import "./style/form-action.css";
|
|
8
|
-
import { useLocale as q } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
-
import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
const X = /* @__PURE__ */ T({
|
|
11
|
-
name: "BasicFormAction",
|
|
12
|
-
__name: "form-action",
|
|
13
|
-
props: {
|
|
14
|
-
showActionButtonGroup: { type: Boolean, default: !0 },
|
|
15
|
-
showResetButton: { type: Boolean, default: !0 },
|
|
16
|
-
showSubmitButton: { type: Boolean, default: !0 },
|
|
17
|
-
showAdvancedButton: { type: Boolean, default: !0 },
|
|
18
|
-
resetButtonOptions: { default: () => ({}) },
|
|
19
|
-
submitButtonOptions: {},
|
|
20
|
-
actionColOptions: { default: () => ({}) },
|
|
21
|
-
actionSpan: { default: 6 },
|
|
22
|
-
isAdvanced: { type: Boolean },
|
|
23
|
-
hideAdvanceBtn: { type: Boolean }
|
|
24
|
-
},
|
|
25
|
-
emits: ["toggle-advanced"],
|
|
26
|
-
setup(h, { emit: O }) {
|
|
27
|
-
const r = h, b = O, { t: n } = q(), { em: c } = D("form-action"), { resetAction: k, submitAction: w } = P(), f = u(() => {
|
|
28
|
-
const { showAdvancedButton: t, actionSpan: A, actionColOptions: x } = r, g = 24 - A, N = t ? { span: g < 6 ? 24 : g } : {};
|
|
29
|
-
return {
|
|
30
|
-
style: { textAlign: "right" },
|
|
31
|
-
span: t ? 6 : 4,
|
|
32
|
-
...N,
|
|
33
|
-
...x
|
|
34
|
-
};
|
|
35
|
-
}), v = u(() => Object.assign(
|
|
36
|
-
{
|
|
37
|
-
text: n("ap.common.resetText")
|
|
38
|
-
},
|
|
39
|
-
r.resetButtonOptions
|
|
40
|
-
)), y = u(() => Object.assign(
|
|
41
|
-
{
|
|
42
|
-
text: n("ap.common.queryText")
|
|
43
|
-
},
|
|
44
|
-
r.submitButtonOptions
|
|
45
|
-
));
|
|
46
|
-
function S() {
|
|
47
|
-
b("toggle-advanced");
|
|
48
|
-
}
|
|
49
|
-
return (t, A) => t.showActionButtonGroup ? (a(), s(e(F), z(p({ key: 0 }, f.value)), {
|
|
50
|
-
default: o(() => [
|
|
51
|
-
V("div", {
|
|
52
|
-
style: $([{ width: "100%" }, { textAlign: f.value.style.textAlign }])
|
|
53
|
-
}, [
|
|
54
|
-
C(e(R).Item, null, {
|
|
55
|
-
default: o(() => [
|
|
56
|
-
i(t.$slots, "resetBefore"),
|
|
57
|
-
t.showResetButton ? (a(), s(e(B), p({
|
|
58
|
-
key: 0,
|
|
59
|
-
type: "default",
|
|
60
|
-
class: e(c)("button", "space")
|
|
61
|
-
}, v.value, { onClick: e(k) }), {
|
|
62
|
-
default: o(() => [
|
|
63
|
-
m(d(v.value.text), 1)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 16, ["class", "onClick"])) : l("", !0),
|
|
67
|
-
i(t.$slots, "submitBefore"),
|
|
68
|
-
t.showSubmitButton ? (a(), s(e(B), p({
|
|
69
|
-
key: 1,
|
|
70
|
-
type: "primary",
|
|
71
|
-
class: e(c)("button", "space")
|
|
72
|
-
}, y.value, { onClick: e(w) }), {
|
|
73
|
-
default: o(() => [
|
|
74
|
-
m(d(y.value.text), 1)
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 16, ["class", "onClick"])) : l("", !0),
|
|
78
|
-
i(t.$slots, "advanceBefore"),
|
|
79
|
-
t.showAdvancedButton && !t.hideAdvanceBtn ? (a(), s(e(B), {
|
|
80
|
-
key: 2,
|
|
81
|
-
type: "link",
|
|
82
|
-
size: "small",
|
|
83
|
-
onClick: S
|
|
84
|
-
}, {
|
|
85
|
-
default: o(() => [
|
|
86
|
-
m(d(t.isAdvanced ? e(n)("ap.common.closeText") : e(n)("ap.common.expandText")) + " ", 1),
|
|
87
|
-
C(e(G), {
|
|
88
|
-
class: j(e(c)("item", "space")),
|
|
89
|
-
expand: !t.isAdvanced,
|
|
90
|
-
up: ""
|
|
91
|
-
}, null, 8, ["class", "expand"])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})) : l("", !0),
|
|
95
|
-
i(t.$slots, "advanceAfter")
|
|
96
|
-
]),
|
|
97
|
-
_: 3
|
|
98
|
-
})
|
|
99
|
-
], 4)
|
|
100
|
-
]),
|
|
101
|
-
_: 3
|
|
102
|
-
}, 16)) : l("", !0);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
1
|
+
import f from "./form-action.vue2.mjs";
|
|
105
2
|
export {
|
|
106
|
-
|
|
3
|
+
f as default
|
|
107
4
|
};
|