@aplus-frontend/ui 0.0.1-beta.7 → 0.0.1-beta.8
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 +165 -160
- 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.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.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
- package/es/src/ap-form/components/interface.d.ts +0 -0
- package/es/src/ap-form/index.d.ts +11 -1682
- package/es/src/ap-form/index.mjs +11 -7
- 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.mjs +4 -4
- package/es/src/config-provider/hooks/use-locale.mjs +1 -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/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/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 +161 -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/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.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.mjs +55 -56
- 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/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.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.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/components/interface.d.ts +0 -0
- package/lib/src/ap-form/index.d.ts +11 -1682
- package/lib/src/ap-form/index.js +1 -1
- 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/hooks/use-locale.js +1 -1
- 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/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/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/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.js +1 -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/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 +3 -3
package/es/index.mjs
CHANGED
|
@@ -1,68 +1,71 @@
|
|
|
1
1
|
import * as e from "./src/index.mjs";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { default as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { useForm as
|
|
23
|
-
import { isComponentFormSchema as
|
|
24
|
-
import { Field as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { BaseButton as
|
|
36
|
-
import { StrengthMeter as
|
|
37
|
-
import { useModalContext as
|
|
38
|
-
import { useModal as
|
|
39
|
-
import { BaseModal as
|
|
40
|
-
import { CropperAvatar as
|
|
41
|
-
import { CountdownButton as
|
|
42
|
-
import { createPrompt as
|
|
43
|
-
import { Dropdown as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { useTable as
|
|
49
|
-
import { ApForm as
|
|
50
|
-
import {
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
|
|
2
|
+
import "./src/hooks/index.mjs";
|
|
3
|
+
import { Icon as i, SvgIcon as n } from "./src/icon/index.mjs";
|
|
4
|
+
import { configProviderProps as s } from "./src/config-provider/config-provider-props.mjs";
|
|
5
|
+
import { configProviderContextKey as d, tableDefaultConfig as u } from "./src/config-provider/constants.mjs";
|
|
6
|
+
import { keysOf as A, provideGlobalConfig as T, useGlobalConfig as C } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
import { buildLocaleContext as F, buildTranslator as b, localeContextKey as g, translate as I, useLocale as v } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as B, namespaceContextKey as R, useGetDerivedNamespace as D, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as h } from "./src/config-provider/config-provider.mjs";
|
|
10
|
+
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
|
+
import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
|
|
12
|
+
import { CollapseContainer as Y, ScrollContainer as E } from "./src/container/index.mjs";
|
|
13
|
+
import { IconPicker as H } from "./src/icon-picker/index.mjs";
|
|
14
|
+
import { default as z } from "./src/locale/lang/zh-cn.mjs";
|
|
15
|
+
import { default as V } from "./src/locale/lang/en.mjs";
|
|
16
|
+
import { BasicArrow as j, BasicHelp as q, BasicTitle as J } from "./src/basic/index.mjs";
|
|
17
|
+
import { default as U } from "./src/transition/collapse-transition.vue.mjs";
|
|
18
|
+
import { ExpandTransition as Z, ExpandXTransition as _, FadeTransition as oo, ScaleRotateTransition as eo, ScaleTransition as ro, ScrollXReverseTransition as to, ScrollXTransition as ao, ScrollYReverseTransition as po, ScrollYTransition as fo, SlideXReverseTransition as lo, SlideXTransition as io, SlideYReverseTransition as no, SlideYTransition as mo } from "./src/transition/index.mjs";
|
|
19
|
+
import { useDescription as xo } from "./src/description/use-description.mjs";
|
|
20
|
+
import { Description as co } from "./src/description/index.mjs";
|
|
21
|
+
import { useComponentRegister as To } from "./src/pro-form/hooks/use-component-register.mjs";
|
|
22
|
+
import { useForm as So } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
|
+
import { isComponentFormSchema as bo, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
|
|
24
|
+
import { Field as vo } from "./src/pro-form/index.mjs";
|
|
25
|
+
import { default as Bo } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
|
+
import { default as Do } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
|
+
import { default as Go } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
|
+
import { default as wo } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
|
+
import { default as Xo } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
|
+
import { default as No } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
|
+
import { default as Eo } from "./src/pro-form/pro-form.vue.mjs";
|
|
32
|
+
import { default as Ho } from "./src/pro-form/components/api-tree-select.vue.mjs";
|
|
33
|
+
import { default as zo } from "./src/base-button/modal-button.vue.mjs";
|
|
34
|
+
import { default as Vo } from "./src/base-button/pop-confirm-button.vue.mjs";
|
|
35
|
+
import { BaseButton as jo } from "./src/base-button/index.mjs";
|
|
36
|
+
import { StrengthMeter as Jo } from "./src/strength-meter/index.mjs";
|
|
37
|
+
import { useModalContext as Uo } from "./src/modal/hooks/use-modal-context.mjs";
|
|
38
|
+
import { useModal as Zo, useModalInner as _o } from "./src/modal/hooks/use-modal.mjs";
|
|
39
|
+
import { BaseModal as ee } from "./src/modal/index.mjs";
|
|
40
|
+
import { CropperAvatar as te, CropperImage as ae } from "./src/cropper/index.mjs";
|
|
41
|
+
import { CountdownButton as fe, CountdownInput as le } from "./src/count-down/index.mjs";
|
|
42
|
+
import { createPrompt as ne } from "./src/prompt/index.mjs";
|
|
43
|
+
import { Dropdown as se } from "./src/dropdown/index.mjs";
|
|
44
|
+
import { default as de } from "./src/pro-table/pro-table.vue.mjs";
|
|
45
|
+
import { default as ce } from "./src/pro-table/components/table-action.vue.mjs";
|
|
46
|
+
import { default as Te } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
|
|
47
|
+
import { default as Se } from "./src/pro-table/components/table-image.vue.mjs";
|
|
48
|
+
import { useTable as be } from "./src/pro-table/hooks/use-table.mjs";
|
|
49
|
+
import { ApForm as Ie, ApFormItem as ve, ApFormItemGroup as Pe } from "./src/ap-form/index.mjs";
|
|
50
|
+
import { ApField as Re } from "./src/ap-field/index.mjs";
|
|
51
|
+
import { default as Me } from "./src/ap-field/text/index.vue.mjs";
|
|
52
|
+
import { default as he } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
53
|
+
import { default as ke } from "./src/ap-field/date/index.vue.mjs";
|
|
54
|
+
import { default as ye } from "./src/ap-field/number/index.vue.mjs";
|
|
55
|
+
import { default as Ye } from "./src/ap-field/radio/index.vue.mjs";
|
|
56
|
+
import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
|
|
57
|
+
import { default as Le } from "./src/ap-field/text-area/index.vue.mjs";
|
|
58
|
+
import { default as Oe } from "./src/ap-field/date-range/index.vue.mjs";
|
|
59
|
+
import { default as $e } from "./src/ap-field/select/index.vue.mjs";
|
|
60
|
+
import { adminToken as qe, aplusToken as Je } from "./src/design-token/index.mjs";
|
|
61
|
+
import { ApActionItem as Ue } from "./src/ap-action/index.mjs";
|
|
62
|
+
import { default as Ze } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
63
|
+
import { default as or } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
64
|
+
import { default as rr } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
65
|
+
import { default as ar } from "./src/ap-action/group/index.vue.mjs";
|
|
66
|
+
import { useMessage as fr } from "./src/hooks/useMessage.mjs";
|
|
67
|
+
import { useControllableValue as ir } from "./src/hooks/useControllableValue.mjs";
|
|
68
|
+
const p = {
|
|
66
69
|
install: (r) => {
|
|
67
70
|
for (const t in e) {
|
|
68
71
|
const o = e[t];
|
|
@@ -71,101 +74,103 @@ const a = {
|
|
|
71
74
|
}
|
|
72
75
|
};
|
|
73
76
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
qe as
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
77
|
+
k as APConfigProvider,
|
|
78
|
+
ar as ApActionGroup,
|
|
79
|
+
Ue as ApActionItem,
|
|
80
|
+
rr as ApActionItemDropdown,
|
|
81
|
+
Ze as ApActionItemModal,
|
|
82
|
+
or as ApActionItemPopconfirm,
|
|
83
|
+
Re as ApField,
|
|
84
|
+
he as ApFieldCheckbox,
|
|
85
|
+
ke as ApFieldDate,
|
|
86
|
+
Oe as ApFieldDateRange,
|
|
87
|
+
ye as ApFieldNumber,
|
|
88
|
+
Ye as ApFieldRadio,
|
|
89
|
+
$e as ApFieldSelect,
|
|
90
|
+
Ke as ApFieldSwitch,
|
|
91
|
+
Me as ApFieldText,
|
|
92
|
+
Le as ApFieldTextArea,
|
|
93
|
+
Ie as ApForm,
|
|
94
|
+
ve as ApFormItem,
|
|
95
|
+
Pe as ApFormItemGroup,
|
|
96
|
+
Bo as ApiCascader,
|
|
97
|
+
Do as ApiRadioGroup,
|
|
98
|
+
Go as ApiSelect,
|
|
99
|
+
wo as ApiTransfer,
|
|
100
|
+
Xo as ApiTree,
|
|
101
|
+
Ho as ApiTreeSelect,
|
|
102
|
+
jo as BaseButton,
|
|
103
|
+
ee as BaseModal,
|
|
104
|
+
j as BasicArrow,
|
|
105
|
+
q as BasicHelp,
|
|
106
|
+
J as BasicTitle,
|
|
107
|
+
Y as CollapseContainer,
|
|
108
|
+
U as CollapseTransition,
|
|
109
|
+
h as ConfigProvider,
|
|
110
|
+
fe as CountdownButton,
|
|
111
|
+
le as CountdownInput,
|
|
112
|
+
te as CropperAvatar,
|
|
113
|
+
ae as CropperImage,
|
|
114
|
+
co as Description,
|
|
115
|
+
se as Dropdown,
|
|
116
|
+
Te as EditTableHeaderIcon,
|
|
117
|
+
Z as ExpandTransition,
|
|
118
|
+
_ as ExpandXTransition,
|
|
119
|
+
oo as FadeTransition,
|
|
120
|
+
vo as Field,
|
|
121
|
+
i as Icon,
|
|
122
|
+
H as IconPicker,
|
|
123
|
+
zo as ModalButton,
|
|
124
|
+
Vo as PopConfirmButton,
|
|
125
|
+
Eo as ProForm,
|
|
126
|
+
de as ProTable,
|
|
127
|
+
No as RadioButtonGroup,
|
|
128
|
+
eo as ScaleRotateTransition,
|
|
129
|
+
ro as ScaleTransition,
|
|
130
|
+
E as ScrollContainer,
|
|
131
|
+
to as ScrollXReverseTransition,
|
|
132
|
+
ao as ScrollXTransition,
|
|
133
|
+
po as ScrollYReverseTransition,
|
|
134
|
+
fo as ScrollYTransition,
|
|
135
|
+
y as Scrollbar,
|
|
136
|
+
lo as SlideXReverseTransition,
|
|
137
|
+
io as SlideXTransition,
|
|
138
|
+
no as SlideYReverseTransition,
|
|
139
|
+
mo as SlideYTransition,
|
|
140
|
+
Jo as StrengthMeter,
|
|
141
|
+
n as SvgIcon,
|
|
142
|
+
ce as TableAction,
|
|
143
|
+
Se as TableImg,
|
|
144
|
+
qe as adminToken,
|
|
145
|
+
Je as aplusToken,
|
|
146
|
+
F as buildLocaleContext,
|
|
147
|
+
b as buildTranslator,
|
|
148
|
+
d as configProviderContextKey,
|
|
149
|
+
s as configProviderProps,
|
|
150
|
+
ne as createPrompt,
|
|
151
|
+
p as default,
|
|
152
|
+
B as defaultNamespace,
|
|
153
|
+
V as en,
|
|
154
|
+
bo as isComponentFormSchema,
|
|
151
155
|
go as isSlotFormSchema,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
156
|
+
A as keysOf,
|
|
157
|
+
g as localeContextKey,
|
|
158
|
+
R as namespaceContextKey,
|
|
159
|
+
T as provideGlobalConfig,
|
|
160
|
+
u as tableDefaultConfig,
|
|
161
|
+
I as translate,
|
|
162
|
+
To as useComponentRegister,
|
|
163
|
+
ir as useControllableValue,
|
|
164
|
+
xo as useDescription,
|
|
165
|
+
So as useForm,
|
|
166
|
+
D as useGetDerivedNamespace,
|
|
167
|
+
C as useGlobalConfig,
|
|
168
|
+
v as useLocale,
|
|
169
|
+
fr as useMessage,
|
|
170
|
+
Zo as useModal,
|
|
171
|
+
Uo as useModalContext,
|
|
172
|
+
_o as useModalInner,
|
|
173
|
+
M as useNamespace,
|
|
174
|
+
be as useTable,
|
|
175
|
+
z as zhCn
|
|
171
176
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { defineComponent as d, computed as
|
|
1
|
+
import { defineComponent as d, computed as a, openBlock as t, createBlock as r, unref as s, withCtx as u, createElementBlock as l, Fragment as m, renderList as h, mergeProps as n, createVNode as k, createCommentVNode as A } from "vue";
|
|
2
2
|
import { Space as w } from "ant-design-vue";
|
|
3
3
|
import { MoreOutlined as y } from "@ant-design/icons-vue";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import "../item/index.vue.mjs";
|
|
5
|
+
import "../item-modal/index.vue2.mjs";
|
|
6
|
+
import "../item-popconfirm/index.vue2.mjs";
|
|
7
|
+
import "../item-dropdown/index.vue2.mjs";
|
|
8
|
+
import p from "../item-dropdown/index.vue.mjs";
|
|
9
|
+
import v from "../item-modal/index.vue.mjs";
|
|
10
|
+
import $ from "../item-popconfirm/index.vue.mjs";
|
|
11
|
+
import B from "../item/index.vue2.mjs";
|
|
12
|
+
const L = /* @__PURE__ */ d({
|
|
9
13
|
name: "ApActionGroup",
|
|
10
14
|
__name: "index",
|
|
11
15
|
props: {
|
|
@@ -14,40 +18,40 @@ const z = /* @__PURE__ */ d({
|
|
|
14
18
|
placement: { default: "bottomRight" },
|
|
15
19
|
actions: { default: () => [] }
|
|
16
20
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const e =
|
|
21
|
+
setup(f) {
|
|
22
|
+
const e = f, _ = a(() => e.actions.length > e.count), c = a(() => e.actions.length <= e.count ? {
|
|
19
23
|
showActions: e.actions,
|
|
20
24
|
menuActions: []
|
|
21
25
|
} : {
|
|
22
26
|
showActions: e.actions.slice(0, e.count - 1),
|
|
23
27
|
menuActions: e.actions.slice(e.count - 1)
|
|
24
28
|
});
|
|
25
|
-
return (
|
|
29
|
+
return (i, C) => (t(), r(s(w), {
|
|
26
30
|
size: 16,
|
|
27
31
|
align: "center"
|
|
28
32
|
}, {
|
|
29
33
|
default: u(() => [
|
|
30
|
-
(t(!0), l(
|
|
31
|
-
o.actions ? (t(), r(
|
|
34
|
+
(t(!0), l(m, null, h(c.value.showActions, (o, g) => (t(), l(m, { key: g }, [
|
|
35
|
+
o.actions ? (t(), r(p, n({
|
|
32
36
|
key: 0,
|
|
33
37
|
ref_for: !0
|
|
34
|
-
}, o), null, 16)) : o.modalProps ? (t(), r(
|
|
38
|
+
}, o), null, 16)) : o.modalProps ? (t(), r(v, n({
|
|
35
39
|
key: 1,
|
|
36
40
|
ref_for: !0
|
|
37
|
-
}, o), null, 16)) : o.popconfirmProps ? (t(), r(
|
|
41
|
+
}, o), null, 16)) : o.popconfirmProps ? (t(), r($, n({
|
|
38
42
|
key: 2,
|
|
39
43
|
ref_for: !0
|
|
40
|
-
}, o), null, 16)) : (t(), r(
|
|
44
|
+
}, o), null, 16)) : (t(), r(B, n({
|
|
41
45
|
key: 3,
|
|
42
46
|
ref_for: !0
|
|
43
47
|
}, o), null, 16))
|
|
44
48
|
], 64))), 128)),
|
|
45
|
-
_.value ? (t(), r(
|
|
49
|
+
_.value ? (t(), r(p, {
|
|
46
50
|
key: 0,
|
|
47
51
|
actions: c.value.menuActions,
|
|
48
52
|
"show-icon": !1,
|
|
49
|
-
placement:
|
|
50
|
-
trigger:
|
|
53
|
+
placement: i.placement,
|
|
54
|
+
trigger: i.trigger
|
|
51
55
|
}, {
|
|
52
56
|
default: u(() => [
|
|
53
57
|
k(s(y), { rotate: 90 })
|
|
@@ -60,5 +64,5 @@ const z = /* @__PURE__ */ d({
|
|
|
60
64
|
}
|
|
61
65
|
});
|
|
62
66
|
export {
|
|
63
|
-
|
|
67
|
+
L as default
|
|
64
68
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./item/index.vue.mjs";
|
|
2
|
+
import "./item-dropdown/index.vue2.mjs";
|
|
3
|
+
import "./item-modal/index.vue2.mjs";
|
|
4
|
+
import "./item-popconfirm/index.vue2.mjs";
|
|
5
|
+
import "./group/index.vue2.mjs";
|
|
6
|
+
import "./interface.mjs";
|
|
7
|
+
import m from "./item/index.vue2.mjs";
|
|
2
8
|
import i from "./item-dropdown/index.vue.mjs";
|
|
3
9
|
import t from "./item-modal/index.vue.mjs";
|
|
4
10
|
import p from "./item-popconfirm/index.vue.mjs";
|
|
5
|
-
import "vue";
|
|
6
|
-
import "ant-design-vue";
|
|
7
|
-
import "@ant-design/icons-vue";
|
|
8
11
|
const o = m;
|
|
9
12
|
o.Dropdown = i;
|
|
10
13
|
o.Modal = t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,49 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../config-provider/index.mjs";
|
|
3
|
-
import x from "ant-design-vue/es/button/LoadingIcon";
|
|
4
|
-
import "../style/item.css";
|
|
5
|
-
import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
-
const S = /* @__PURE__ */ p({
|
|
7
|
-
name: "ApActionItem",
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: {
|
|
10
|
-
text: {},
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
disabled: { type: Boolean, default: !1 },
|
|
13
|
-
visible: { type: Boolean, default: !0 },
|
|
14
|
-
onAction: {},
|
|
15
|
-
onClick: {},
|
|
16
|
-
loading: { type: Boolean, default: !1 }
|
|
17
|
-
},
|
|
18
|
-
setup(u) {
|
|
19
|
-
const e = u, { b: d, m: t } = A("action-item"), n = g(!1);
|
|
20
|
-
function f(o) {
|
|
21
|
-
var a;
|
|
22
|
-
i(l) || ((a = e.onClick) == null || a.call(e, o), e.onAction && (n.value = !0, e.onAction(o).finally(() => n.value = !1)));
|
|
23
|
-
}
|
|
24
|
-
const l = r(() => e.loading || i(n)), m = r(() => [
|
|
25
|
-
d(),
|
|
26
|
-
t(e.color),
|
|
27
|
-
e.disabled ? t("disabled") : null,
|
|
28
|
-
l.value ? t("loading") : null
|
|
29
|
-
].filter(Boolean));
|
|
30
|
-
return (o, a) => o.visible ? (s(), k("span", {
|
|
31
|
-
key: 0,
|
|
32
|
-
onClick: f,
|
|
33
|
-
class: C(m.value)
|
|
34
|
-
}, [
|
|
35
|
-
l.value ? (s(), y(i(x), {
|
|
36
|
-
key: 0,
|
|
37
|
-
prefixCls: "btn",
|
|
38
|
-
existIcon: !1,
|
|
39
|
-
loading: ""
|
|
40
|
-
})) : c("", !0),
|
|
41
|
-
b(o.$slots, "default", {}, () => [
|
|
42
|
-
v(B(o.text || ""), 1)
|
|
43
|
-
])
|
|
44
|
-
], 2)) : c("", !0);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
1
|
+
import f from "./index.vue2.mjs";
|
|
47
2
|
export {
|
|
48
|
-
|
|
3
|
+
f as default
|
|
49
4
|
};
|
|
@@ -1,4 +1,49 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as p, ref as g, unref as i, computed as r, openBlock as s, createElementBlock as k, normalizeClass as C, createBlock as y, createCommentVNode as c, renderSlot as b, createTextVNode as v, toDisplayString as B } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import x from "ant-design-vue/es/button/LoadingIcon";
|
|
4
|
+
import "../style/item.css";
|
|
5
|
+
import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const S = /* @__PURE__ */ p({
|
|
7
|
+
name: "ApActionItem",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
disabled: { type: Boolean, default: !1 },
|
|
13
|
+
visible: { type: Boolean, default: !0 },
|
|
14
|
+
onAction: {},
|
|
15
|
+
onClick: {},
|
|
16
|
+
loading: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
setup(u) {
|
|
19
|
+
const e = u, { b: d, m: t } = A("action-item"), n = g(!1);
|
|
20
|
+
function f(o) {
|
|
21
|
+
var a;
|
|
22
|
+
i(l) || ((a = e.onClick) == null || a.call(e, o), e.onAction && (n.value = !0, e.onAction(o).finally(() => n.value = !1)));
|
|
23
|
+
}
|
|
24
|
+
const l = r(() => e.loading || i(n)), m = r(() => [
|
|
25
|
+
d(),
|
|
26
|
+
t(e.color),
|
|
27
|
+
e.disabled ? t("disabled") : null,
|
|
28
|
+
l.value ? t("loading") : null
|
|
29
|
+
].filter(Boolean));
|
|
30
|
+
return (o, a) => o.visible ? (s(), k("span", {
|
|
31
|
+
key: 0,
|
|
32
|
+
onClick: f,
|
|
33
|
+
class: C(m.value)
|
|
34
|
+
}, [
|
|
35
|
+
l.value ? (s(), y(i(x), {
|
|
36
|
+
key: 0,
|
|
37
|
+
prefixCls: "btn",
|
|
38
|
+
existIcon: !1,
|
|
39
|
+
loading: ""
|
|
40
|
+
})) : c("", !0),
|
|
41
|
+
b(o.$slots, "default", {}, () => [
|
|
42
|
+
v(B(o.text || ""), 1)
|
|
43
|
+
])
|
|
44
|
+
], 2)) : c("", !0);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
2
47
|
export {
|
|
3
|
-
|
|
48
|
+
S as default
|
|
4
49
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { defineComponent as _, ref as k, computed as w, openBlock as t, createBlock as l, unref as r, withCtx as n, createVNode as i, createElementBlock as v, Fragment as B, renderList as A, normalizeClass as s, mergeProps as f, createElementVNode as C, normalizeProps as P, guardReactiveProps as D, renderSlot as I, createCommentVNode as N } from "vue";
|
|
2
2
|
import { Dropdown as $, Menu as b, MenuItem as h } from "ant-design-vue";
|
|
3
3
|
import { DownOutlined as V } from "@ant-design/icons-vue";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import "../item/index.vue.mjs";
|
|
5
|
+
import "../item-modal/index.vue2.mjs";
|
|
6
|
+
import "../item-popconfirm/index.vue2.mjs";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { omit as
|
|
8
|
+
import { omit as z } from "lodash-unified";
|
|
9
9
|
import "../style/item-dropdown.css";
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
|
|
10
|
+
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import L from "../item-modal/index.vue.mjs";
|
|
12
|
+
import M from "../item-popconfirm/index.vue.mjs";
|
|
13
|
+
import c from "../item/index.vue2.mjs";
|
|
14
|
+
const T = /* @__PURE__ */ _({
|
|
12
15
|
name: "ApActionItemDropDown",
|
|
13
16
|
__name: "index",
|
|
14
17
|
props: {
|
|
@@ -24,7 +27,7 @@ const J = /* @__PURE__ */ _({
|
|
|
24
27
|
loading: { type: Boolean, default: !1 }
|
|
25
28
|
},
|
|
26
29
|
setup(d) {
|
|
27
|
-
const u = d, m = k(!1), { e: p } =
|
|
30
|
+
const u = d, m = k(!1), { e: p } = E("action-item-dropdown"), g = w(() => u.actions.map((o) => ({
|
|
28
31
|
...o,
|
|
29
32
|
onAction: async (a) => {
|
|
30
33
|
var e;
|
|
@@ -49,10 +52,10 @@ const J = /* @__PURE__ */ _({
|
|
|
49
52
|
class: s(r(p)("item"))
|
|
50
53
|
}, {
|
|
51
54
|
default: n(() => [
|
|
52
|
-
e.modalProps ? (t(), l(
|
|
55
|
+
e.modalProps ? (t(), l(L, f({
|
|
53
56
|
key: 0,
|
|
54
57
|
ref_for: !0
|
|
55
|
-
}, e), null, 16)) : e.popconfirmProps ? (t(), l(
|
|
58
|
+
}, e), null, 16)) : e.popconfirmProps ? (t(), l(M, f({
|
|
56
59
|
key: 1,
|
|
57
60
|
ref_for: !0
|
|
58
61
|
}, e), null, 16)) : (t(), l(c, f({
|
|
@@ -70,7 +73,7 @@ const J = /* @__PURE__ */ _({
|
|
|
70
73
|
C("span", {
|
|
71
74
|
class: s(r(p)("wrapper"))
|
|
72
75
|
}, [
|
|
73
|
-
i(c, P(D(r(
|
|
76
|
+
i(c, P(D(r(z)(u, ["actions", "trigger", "placement"]))), {
|
|
74
77
|
default: n(() => [
|
|
75
78
|
I(o.$slots, "default")
|
|
76
79
|
]),
|
|
@@ -88,5 +91,5 @@ const J = /* @__PURE__ */ _({
|
|
|
88
91
|
}
|
|
89
92
|
});
|
|
90
93
|
export {
|
|
91
|
-
|
|
94
|
+
T as default
|
|
92
95
|
};
|