@aplus-frontend/ui 0.0.1-beta.6 → 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 +157 -142
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +68 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +20 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +4 -0
- package/es/src/ap-action/item/index.vue2.mjs +49 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- 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 +6 -4
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +69 -40
- package/es/src/ap-field/text/index.vue.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- 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 +87 -1758
- 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.d.ts +28 -28
- 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.d.ts +4 -4
- 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.d.ts +12 -12
- 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.d.ts +12 -12
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +42 -42
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.d.ts +3 -3
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.d.ts +7 -7
- 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.d.ts +41 -41
- 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.d.ts +3 -3
- 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.d.ts +45 -45
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +161 -145
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.d.ts +4 -3
- package/es/src/modal/basic.vue.mjs +2 -191
- 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.d.ts +2 -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.d.ts +2 -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.d.ts +10 -11
- package/es/src/modal/index.mjs +10 -8
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +29 -30
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +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/hooks/use-label-width.d.ts +8 -8
- 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 +2 -2
- 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.d.ts +12 -12
- 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-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/modal/index.css +29 -30
- 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/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +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 +6 -4
- 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.d.ts +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.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- 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 +87 -1758
- 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.d.ts +28 -28
- 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.d.ts +4 -4
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +12 -12
- 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.d.ts +12 -12
- 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.d.ts +1 -1
- 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.d.ts +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.d.ts +42 -42
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.d.ts +7 -7
- 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.d.ts +41 -41
- 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.d.ts +3 -3
- 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.d.ts +45 -45
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.d.ts +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.d.ts +4 -3
- 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.d.ts +2 -2
- 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/components/modal.d.ts +2 -2
- package/lib/src/modal/index.d.ts +10 -11
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +29 -30
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +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/hooks/use-label-width.d.ts +8 -8
- 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 +2 -2
- 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.d.ts +12 -12
- 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-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/modal/index.css +29 -30
- 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 +2 -2
|
@@ -14,48 +14,50 @@
|
|
|
14
14
|
.fullscreen-modal .ant-modal-footer {
|
|
15
15
|
margin-top: 0;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.aplus-basic-modal {
|
|
18
18
|
width: 520px;
|
|
19
19
|
padding-bottom: 0;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
22
|
-
padding:
|
|
21
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
|
+
padding: 20px;
|
|
23
|
+
padding-bottom: 0;
|
|
23
24
|
}
|
|
24
|
-
.ant-modal-title {
|
|
25
|
+
.aplus-basic-modal .ant-modal-title {
|
|
25
26
|
font-size: 16px;
|
|
26
27
|
font-weight: bold;
|
|
27
28
|
}
|
|
28
|
-
.ant-modal-title .
|
|
29
|
+
.aplus-basic-modal .ant-modal-title .aplus-basic-title {
|
|
29
30
|
cursor: move !important;
|
|
31
|
+
padding-left: 0;
|
|
30
32
|
}
|
|
31
|
-
.
|
|
33
|
+
.aplus-basic-modal .ant-modal-body {
|
|
32
34
|
padding: 0;
|
|
33
35
|
}
|
|
34
|
-
.
|
|
36
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
35
37
|
display: none;
|
|
36
38
|
}
|
|
37
|
-
.ant-modal-large {
|
|
39
|
+
.aplus-basic-modal .ant-modal-large {
|
|
38
40
|
top: 60px;
|
|
39
41
|
}
|
|
40
|
-
.ant-modal-large--mini {
|
|
42
|
+
.aplus-basic-modal .ant-modal-large .ant-modal--mini {
|
|
41
43
|
top: 16px;
|
|
42
44
|
}
|
|
43
|
-
.ant-modal-header {
|
|
44
|
-
padding:
|
|
45
|
+
.aplus-basic-modal .ant-modal-header {
|
|
46
|
+
padding: 15px 20px;
|
|
47
|
+
margin-bottom: 0;
|
|
45
48
|
border-bottom: 1px solid #eee;
|
|
46
49
|
}
|
|
47
|
-
.ant-modal-content {
|
|
50
|
+
.aplus-basic-modal .ant-modal-content {
|
|
48
51
|
padding: 0 !important;
|
|
49
|
-
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 #000000;
|
|
50
52
|
}
|
|
51
|
-
.ant-modal-footer {
|
|
52
|
-
padding:
|
|
53
|
-
|
|
53
|
+
.aplus-basic-modal .ant-modal-footer {
|
|
54
|
+
padding: 20px;
|
|
55
|
+
margin-top: 0;
|
|
54
56
|
}
|
|
55
|
-
.ant-modal-footer button + button {
|
|
57
|
+
.aplus-basic-modal .ant-modal-footer button + button {
|
|
56
58
|
margin-left: 10px;
|
|
57
59
|
}
|
|
58
|
-
.ant-modal-close {
|
|
60
|
+
.aplus-basic-modal .ant-modal-close {
|
|
59
61
|
top: 0 !important;
|
|
60
62
|
right: 0 !important;
|
|
61
63
|
width: auto !important;
|
|
@@ -63,41 +65,38 @@
|
|
|
63
65
|
background: transparent !important;
|
|
64
66
|
font-weight: normal;
|
|
65
67
|
}
|
|
66
|
-
.ant-modal-close-x {
|
|
68
|
+
.aplus-basic-modal .ant-modal-close-x {
|
|
67
69
|
display: inline-block;
|
|
68
70
|
width: 96px;
|
|
69
71
|
height: 56px;
|
|
70
72
|
line-height: 56px !important;
|
|
71
73
|
}
|
|
72
|
-
.ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
74
|
+
.aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
73
75
|
color: #909399;
|
|
74
76
|
}
|
|
75
|
-
.ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
77
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
76
78
|
color: #ed6f6f;
|
|
77
79
|
}
|
|
78
|
-
.ant-modal-confirm-btns .ant-btn:last-child {
|
|
80
|
+
.aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
|
|
79
81
|
margin-right: 0;
|
|
80
82
|
}
|
|
81
|
-
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
83
|
+
.aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
82
84
|
color: #efbd47;
|
|
83
85
|
}
|
|
84
|
-
.ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
86
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
85
87
|
color: #34b77c;
|
|
86
88
|
}
|
|
87
|
-
|
|
88
|
-
padding: 24px !important;
|
|
89
|
-
}
|
|
90
|
-
@media screen and (max-height: 600px) {
|
|
89
|
+
@media screen and (height <= 600px) {
|
|
91
90
|
.ant-modal {
|
|
92
91
|
top: 60px;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
@media screen and (
|
|
94
|
+
@media screen and (height <= 540px) {
|
|
96
95
|
.ant-modal {
|
|
97
96
|
top: 30px;
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
|
-
@media screen and (
|
|
99
|
+
@media screen and (height <= 480px) {
|
|
101
100
|
.ant-modal {
|
|
102
101
|
top: 10px;
|
|
103
102
|
}
|
|
@@ -1,38 +1,35 @@
|
|
|
1
1
|
import { createSimpleTransition as n, createJavascriptTransition as i } from "./create-transition.mjs";
|
|
2
2
|
import t from "./expand-transition.mjs";
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import "../config-provider/index.mjs";
|
|
6
|
-
import "./style/collapse.css";
|
|
7
|
-
const c = n("fade-transition"), T = n("scale-transition"), d = n("slide-y-transition"), p = n("scroll-y-transition"), x = n(
|
|
3
|
+
import "./collapse-transition.vue2.mjs";
|
|
4
|
+
const e = n("fade-transition"), a = n("scale-transition"), l = n("slide-y-transition"), c = n("scroll-y-transition"), T = n(
|
|
8
5
|
"slide-y-reverse-transition"
|
|
9
|
-
),
|
|
6
|
+
), d = n(
|
|
10
7
|
"scroll-y-reverse-transition"
|
|
11
|
-
),
|
|
8
|
+
), p = n("slide-x-transition"), x = n("scroll-x-transition"), S = n(
|
|
12
9
|
"slide-x-reverse-transition"
|
|
13
|
-
),
|
|
10
|
+
), v = n(
|
|
14
11
|
"scroll-x-reverse-transition"
|
|
15
|
-
),
|
|
12
|
+
), m = n(
|
|
16
13
|
"scale-rotate-transition"
|
|
17
|
-
),
|
|
14
|
+
), R = i(
|
|
18
15
|
"expand-x-transition",
|
|
19
16
|
t("", !0)
|
|
20
|
-
),
|
|
17
|
+
), X = i(
|
|
21
18
|
"expand-transition",
|
|
22
19
|
t("")
|
|
23
20
|
);
|
|
24
21
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
X as ExpandTransition,
|
|
23
|
+
R as ExpandXTransition,
|
|
24
|
+
e as FadeTransition,
|
|
25
|
+
m as ScaleRotateTransition,
|
|
26
|
+
a as ScaleTransition,
|
|
27
|
+
v as ScrollXReverseTransition,
|
|
28
|
+
x as ScrollXTransition,
|
|
29
|
+
d as ScrollYReverseTransition,
|
|
30
|
+
c as ScrollYTransition,
|
|
31
|
+
S as SlideXReverseTransition,
|
|
32
|
+
p as SlideXTransition,
|
|
33
|
+
T as SlideYReverseTransition,
|
|
34
|
+
l as SlideYTransition
|
|
38
35
|
};
|
package/es/src/type.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRe
|
|
|
26
26
|
export type EmitType = ReturnType<typeof defineEmits>;
|
|
27
27
|
type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
28
28
|
export type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode;
|
|
29
|
+
export type LiteralUnion<T extends U, U> = T | (U & {});
|
|
29
30
|
export {};
|
package/es/src/utils/index.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare function getDynamicProps<T extends Record<string, unknown>, U>(pr
|
|
|
11
11
|
* @returns
|
|
12
12
|
*/
|
|
13
13
|
export declare function omitWhen<T extends object, K extends keyof T>(obj: T, fieldList?: K[], when?: (field: string, fieldValue: T[K]) => boolean): Omit<T, K>;
|
|
14
|
+
export declare function isPascalCase(str: string): boolean;
|
package/es/src/utils/index.mjs
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
function
|
|
1
|
+
import { unref as s } from "vue";
|
|
2
|
+
function f(t) {
|
|
3
3
|
return (t == null ? void 0 : t.parentNode) ?? document.body;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function a(t) {
|
|
6
6
|
return typeof t < "u";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function l(t) {
|
|
9
9
|
const n = {};
|
|
10
10
|
return Object.keys(t).map((e) => {
|
|
11
|
-
n[e] =
|
|
11
|
+
n[e] = s(t[e]);
|
|
12
12
|
}), n;
|
|
13
13
|
}
|
|
14
|
+
function p(t, n = [], e) {
|
|
15
|
+
const r = Object.assign({}, t), i = Object.keys(r);
|
|
16
|
+
for (let c = 0; c < i.length; c += 1) {
|
|
17
|
+
const o = i[c];
|
|
18
|
+
(n.includes(o) || e != null && e(o, r[o])) && delete r[o];
|
|
19
|
+
}
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
function g(t) {
|
|
23
|
+
return /^[A-Z][A-Za-z]*$/.test(t);
|
|
24
|
+
}
|
|
14
25
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
l as getDynamicProps,
|
|
27
|
+
f as getPopupContainer,
|
|
28
|
+
a as isDef,
|
|
29
|
+
g as isPascalCase,
|
|
30
|
+
p as omitWhen
|
|
18
31
|
};
|
package/es/src/utils/tree.mjs
CHANGED
|
@@ -1,23 +1,113 @@
|
|
|
1
|
-
const
|
|
1
|
+
const d = {
|
|
2
2
|
id: "id",
|
|
3
3
|
children: "children",
|
|
4
4
|
pid: "pid"
|
|
5
|
-
},
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
const
|
|
5
|
+
}, l = (r) => Object.assign({}, d, r);
|
|
6
|
+
function a(r, s = {}) {
|
|
7
|
+
const e = l(s), t = /* @__PURE__ */ new Map(), n = [], { id: o, children: i, pid: u } = e;
|
|
8
|
+
for (const c of r)
|
|
9
|
+
c[i] = c[i] || [], t.set(c[o], c);
|
|
10
|
+
for (const c of r) {
|
|
11
|
+
const h = t.get(c[u]);
|
|
12
|
+
(h ? h[i] : n).push(c);
|
|
13
|
+
}
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
function w(r, s = {}) {
|
|
17
|
+
s = l(s);
|
|
18
|
+
const { children: e } = s, t = [...r];
|
|
9
19
|
for (let n = 0; n < t.length; n++)
|
|
10
20
|
t[n][e] && t.splice(n + 1, 0, ...t[n][e]);
|
|
11
21
|
return t;
|
|
12
22
|
}
|
|
13
|
-
function
|
|
14
|
-
e =
|
|
15
|
-
const { children: t } = e, n = [...
|
|
16
|
-
for (const o of n)
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
function A(r, s, e = {}) {
|
|
24
|
+
e = l(e);
|
|
25
|
+
const { children: t } = e, n = [...r];
|
|
26
|
+
for (const o of n) {
|
|
27
|
+
if (s(o))
|
|
28
|
+
return o;
|
|
29
|
+
o[t] && n.push(...o[t]);
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
function T(r, s, e = {}) {
|
|
34
|
+
e = l(e);
|
|
35
|
+
const { children: t } = e, n = [...r], o = [];
|
|
36
|
+
for (const i of n)
|
|
37
|
+
s(i) && o.push(i), i[t] && n.push(...i[t]);
|
|
38
|
+
return o;
|
|
39
|
+
}
|
|
40
|
+
function E(r, s, e = {}) {
|
|
41
|
+
e = l(e);
|
|
42
|
+
const t = [], n = [...r], o = /* @__PURE__ */ new Set(), { children: i } = e;
|
|
43
|
+
for (; n.length; ) {
|
|
44
|
+
const u = n[0];
|
|
45
|
+
if (o.has(u))
|
|
46
|
+
t.pop(), n.shift();
|
|
47
|
+
else if (o.add(u), u[i] && n.unshift(...u[i]), t.push(u), s(u))
|
|
48
|
+
return t;
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
function M(r, s, e = {}) {
|
|
53
|
+
e = l(e);
|
|
54
|
+
const t = [], n = [...r], o = [], i = /* @__PURE__ */ new Set(), { children: u } = e;
|
|
55
|
+
for (; n.length; ) {
|
|
56
|
+
const c = n[0];
|
|
57
|
+
i.has(c) ? (t.pop(), n.shift()) : (i.add(c), c[u] && n.unshift(...c[u]), t.push(c), s(c) && o.push([...t]));
|
|
58
|
+
}
|
|
59
|
+
return o;
|
|
60
|
+
}
|
|
61
|
+
function N(r, s, e = {}) {
|
|
62
|
+
e = l(e);
|
|
63
|
+
const t = e.children;
|
|
64
|
+
function n(o) {
|
|
65
|
+
return o.map((i) => ({ ...i })).filter((i) => (i[t] = i[t] && n(i[t]), s(i) || i[t] && i[t].length));
|
|
66
|
+
}
|
|
67
|
+
return n(r);
|
|
68
|
+
}
|
|
69
|
+
function S(r, s, e = {}) {
|
|
70
|
+
e = l(e);
|
|
71
|
+
const t = [...r], { children: n } = e;
|
|
72
|
+
for (let o = 0; o < t.length; o++) {
|
|
73
|
+
if (s(t[o]))
|
|
74
|
+
return;
|
|
75
|
+
n && t[o][n] && t.splice(o + 1, 0, ...t[o][n]);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function v(r, s) {
|
|
79
|
+
return r.map((e) => f(e, s));
|
|
80
|
+
}
|
|
81
|
+
function f(r, { children: s = "children", conversion: e }) {
|
|
82
|
+
const t = Array.isArray(r[s]) && r[s].length > 0, n = e(r) || {};
|
|
83
|
+
return t ? {
|
|
84
|
+
...n,
|
|
85
|
+
[s]: r[s].map(
|
|
86
|
+
(o) => f(o, {
|
|
87
|
+
children: s,
|
|
88
|
+
conversion: e
|
|
89
|
+
})
|
|
90
|
+
)
|
|
91
|
+
} : {
|
|
92
|
+
...n
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function p(r, s, e = {}) {
|
|
96
|
+
r.forEach((t) => {
|
|
97
|
+
const n = s(t, e) || t;
|
|
98
|
+
t.children && p(t.children, s, n);
|
|
99
|
+
});
|
|
19
100
|
}
|
|
20
101
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
102
|
+
p as eachTree,
|
|
103
|
+
N as filter,
|
|
104
|
+
A as findNode,
|
|
105
|
+
T as findNodeAll,
|
|
106
|
+
E as findPath,
|
|
107
|
+
M as findPathAll,
|
|
108
|
+
S as forEach,
|
|
109
|
+
a as listToTree,
|
|
110
|
+
v as treeMap,
|
|
111
|
+
f as treeMapEach,
|
|
112
|
+
w as treeToList
|
|
23
113
|
};
|
package/es/src/utils/uuid.mjs
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
const
|
|
2
|
-
for (let
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
let
|
|
6
|
-
for (let
|
|
7
|
-
|
|
8
|
-
return
|
|
1
|
+
const n = [];
|
|
2
|
+
for (let t = 0; t <= 15; t++)
|
|
3
|
+
n[t] = t.toString(16);
|
|
4
|
+
function i() {
|
|
5
|
+
let t = "";
|
|
6
|
+
for (let e = 1; e <= 36; e++)
|
|
7
|
+
e === 9 || e === 14 || e === 19 || e === 24 ? t += "-" : e === 15 ? t += 4 : e === 20 ? t += n[Math.random() * 4 | 8] : t += n[Math.random() * 16 | 0];
|
|
8
|
+
return t.replace(/-/g, "");
|
|
9
|
+
}
|
|
10
|
+
let o = 0;
|
|
11
|
+
function l(t = "") {
|
|
12
|
+
const e = Date.now(), r = Math.floor(Math.random() * 1e9);
|
|
13
|
+
return o++, t + "_" + r + o + String(e);
|
|
9
14
|
}
|
|
10
15
|
export {
|
|
11
|
-
|
|
16
|
+
l as buildShortUUID,
|
|
17
|
+
i as buildUUID
|
|
12
18
|
};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./src/index.js")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./src/index.js");require("./src/hooks/index.js");const a=require("./src/icon/index.js"),m=require("./src/config-provider/config-provider-props.js"),l=require("./src/config-provider/constants.js"),n=require("./src/config-provider/hooks/use-global-config.js"),t=require("./src/config-provider/hooks/use-locale.js"),r=require("./src/config-provider/hooks/use-namespace.js"),T=require("./src/config-provider/config-provider.js"),x=require("./src/config-provider/index.js"),C=require("./src/scroll-bar/index.js"),_=require("./src/container/index.js"),A=require("./src/icon-picker/index.js"),S=require("./src/locale/lang/zh-cn.js"),y=require("./src/locale/lang/en.js"),i=require("./src/basic/index.js"),b=require("./src/transition/collapse-transition.vue.js"),e=require("./src/transition/index.js"),$=require("./src/description/use-description.js"),F=require("./src/description/index.js"),I=require("./src/pro-form/hooks/use-component-register.js"),P=require("./src/pro-form/hooks/use-form.js"),c=require("./src/pro-form/types/form.js"),B=require("./src/pro-form/index.js"),M=require("./src/pro-form/components/api-cascader.vue.js"),R=require("./src/pro-form/components/api-radio-group.vue.js"),D=require("./src/pro-form/components/api-select.vue.js"),G=require("./src/pro-form/components/api-transfer.vue.js"),h=require("./src/pro-form/components/api-tree.vue.js"),k=require("./src/pro-form/components/radio-button-group.vue.js"),w=require("./src/pro-form/pro-form.vue.js"),X=require("./src/pro-form/components/api-tree-select.vue.js"),N=require("./src/base-button/modal-button.vue.js"),Y=require("./src/base-button/pop-confirm-button.vue.js"),K=require("./src/base-button/index.js"),E=require("./src/strength-meter/index.js"),L=require("./src/modal/hooks/use-modal-context.js"),p=require("./src/modal/hooks/use-modal.js"),H=require("./src/modal/index.js"),d=require("./src/cropper/index.js"),v=require("./src/count-down/index.js"),O=require("./src/prompt/index.js"),V=require("./src/dropdown/index.js"),j=require("./src/pro-table/pro-table.vue.js"),z=require("./src/pro-table/components/table-action.vue.js"),J=require("./src/pro-table/components/edit-table-header-icon.vue.js"),Q=require("./src/pro-table/components/table-image.vue.js"),U=require("./src/pro-table/hooks/use-table.js"),o=require("./src/ap-form/index.js"),W=require("./src/ap-field/index.js"),Z=require("./src/ap-field/text/index.vue.js"),ee=require("./src/ap-field/checkbox/index.vue.js"),te=require("./src/ap-field/date/index.vue.js"),re=require("./src/ap-field/number/index.vue.js"),ne=require("./src/ap-field/radio/index.vue.js"),ie=require("./src/ap-field/switch/index.vue.js"),oe=require("./src/ap-field/text-area/index.vue.js"),ue=require("./src/ap-field/date-range/index.vue.js"),se=require("./src/ap-field/select/index.vue.js"),q=require("./src/design-token/index.js"),ae=require("./src/ap-action/index.js"),le=require("./src/ap-action/item-modal/index.vue.js"),_e=require("./src/ap-action/item-popconfirm/index.vue.js"),ce=require("./src/ap-action/item-dropdown/index.vue.js"),pe=require("./src/ap-action/group/index.vue.js"),de=require("./src/hooks/useMessage.js"),ve=require("./src/hooks/useControllableValue.js"),qe={install:f=>{for(const g in s){const u=s[g];u.install&&f.use(u)}}};exports.Icon=a.Icon;exports.SvgIcon=a.SvgIcon;exports.configProviderProps=m.configProviderProps;exports.configProviderContextKey=l.configProviderContextKey;exports.tableDefaultConfig=l.tableDefaultConfig;exports.keysOf=n.keysOf;exports.provideGlobalConfig=n.provideGlobalConfig;exports.useGlobalConfig=n.useGlobalConfig;exports.buildLocaleContext=t.buildLocaleContext;exports.buildTranslator=t.buildTranslator;exports.localeContextKey=t.localeContextKey;exports.translate=t.translate;exports.useLocale=t.useLocale;exports.defaultNamespace=r.defaultNamespace;exports.namespaceContextKey=r.namespaceContextKey;exports.useGetDerivedNamespace=r.useGetDerivedNamespace;exports.useNamespace=r.useNamespace;exports.ConfigProvider=T.ConfigProvider;exports.APConfigProvider=x.APConfigProvider;exports.Scrollbar=C.Scrollbar;exports.CollapseContainer=_.CollapseContainer;exports.ScrollContainer=_.ScrollContainer;exports.IconPicker=A.IconPicker;exports.zhCn=S.default;exports.en=y.default;exports.BasicArrow=i.BasicArrow;exports.BasicHelp=i.BasicHelp;exports.BasicTitle=i.BasicTitle;exports.CollapseTransition=b.default;exports.ExpandTransition=e.ExpandTransition;exports.ExpandXTransition=e.ExpandXTransition;exports.FadeTransition=e.FadeTransition;exports.ScaleRotateTransition=e.ScaleRotateTransition;exports.ScaleTransition=e.ScaleTransition;exports.ScrollXReverseTransition=e.ScrollXReverseTransition;exports.ScrollXTransition=e.ScrollXTransition;exports.ScrollYReverseTransition=e.ScrollYReverseTransition;exports.ScrollYTransition=e.ScrollYTransition;exports.SlideXReverseTransition=e.SlideXReverseTransition;exports.SlideXTransition=e.SlideXTransition;exports.SlideYReverseTransition=e.SlideYReverseTransition;exports.SlideYTransition=e.SlideYTransition;exports.useDescription=$.useDescription;exports.Description=F.Description;exports.useComponentRegister=I.useComponentRegister;exports.useForm=P.useForm;exports.isComponentFormSchema=c.isComponentFormSchema;exports.isSlotFormSchema=c.isSlotFormSchema;exports.Field=B.Field;exports.ApiCascader=M.default;exports.ApiRadioGroup=R.default;exports.ApiSelect=D.default;exports.ApiTransfer=G.default;exports.ApiTree=h.default;exports.RadioButtonGroup=k.default;exports.ProForm=w.default;exports.ApiTreeSelect=X.default;exports.ModalButton=N.default;exports.PopConfirmButton=Y.default;exports.BaseButton=K.BaseButton;exports.StrengthMeter=E.StrengthMeter;exports.useModalContext=L.useModalContext;exports.useModal=p.useModal;exports.useModalInner=p.useModalInner;exports.BaseModal=H.BaseModal;exports.CropperAvatar=d.CropperAvatar;exports.CropperImage=d.CropperImage;exports.CountdownButton=v.CountdownButton;exports.CountdownInput=v.CountdownInput;exports.createPrompt=O.createPrompt;exports.Dropdown=V.Dropdown;exports.ProTable=j.default;exports.TableAction=z.default;exports.EditTableHeaderIcon=J.default;exports.TableImg=Q.default;exports.useTable=U.useTable;exports.ApForm=o.ApForm;exports.ApFormItem=o.ApFormItem;exports.ApFormItemGroup=o.ApFormItemGroup;exports.ApField=W.ApField;exports.ApFieldText=Z.default;exports.ApFieldCheckbox=ee.default;exports.ApFieldDate=te.default;exports.ApFieldNumber=re.default;exports.ApFieldRadio=ne.default;exports.ApFieldSwitch=ie.default;exports.ApFieldTextArea=oe.default;exports.ApFieldDateRange=ue.default;exports.ApFieldSelect=se.default;exports.adminToken=q.adminToken;exports.aplusToken=q.aplusToken;exports.ApActionItem=ae.ApActionItem;exports.ApActionItemModal=le.default;exports.ApActionItemPopconfirm=_e.default;exports.ApActionItemDropdown=ce.default;exports.ApActionGroup=pe.default;exports.useMessage=de.useMessage;exports.useControllableValue=ve.useControllableValue;exports.default=qe;
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ApActionGroupProps, GroupActionTypes } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { Trigger } from 'ant-design-vue/es/dropdown/props';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionGroupProps>, {
|
|
6
|
+
count: number;
|
|
7
|
+
trigger: () => string[];
|
|
8
|
+
placement: string;
|
|
9
|
+
actions: () => never[];
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionGroupProps>, {
|
|
11
|
+
count: number;
|
|
12
|
+
trigger: () => string[];
|
|
13
|
+
placement: string;
|
|
14
|
+
actions: () => never[];
|
|
15
|
+
}>>>, {
|
|
16
|
+
trigger: Trigger | Trigger[];
|
|
17
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter";
|
|
18
|
+
actions: GroupActionTypes[];
|
|
19
|
+
count: number;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("ant-design-vue"),i=require("@ant-design/icons-vue");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");require("../item-dropdown/index.vue2.js");const u=require("../item-dropdown/index.vue.js"),p=require("../item-modal/index.vue.js"),_=require("../item-popconfirm/index.vue.js"),d=require("../item/index.vue2.js"),f=e.defineComponent({name:"ApActionGroup",__name:"index",props:{count:{default:3},trigger:{default:()=>["hover"]},placement:{default:"bottomRight"},actions:{default:()=>[]}},setup(c){const t=c,l=e.computed(()=>t.actions.length>t.count),o=e.computed(()=>t.actions.length<=t.count?{showActions:t.actions,menuActions:[]}:{showActions:t.actions.slice(0,t.count-1),menuActions:t.actions.slice(t.count-1)});return(n,g)=>(e.openBlock(),e.createBlock(e.unref(a.Space),{size:16,align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.showActions,(r,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[r.actions?(e.openBlock(),e.createBlock(u.default,e.mergeProps({key:0,ref_for:!0},r),null,16)):r.modalProps?(e.openBlock(),e.createBlock(p.default,e.mergeProps({key:1,ref_for:!0},r),null,16)):r.popconfirmProps?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:2,ref_for:!0},r),null,16)):(e.openBlock(),e.createBlock(d.default,e.mergeProps({key:3,ref_for:!0},r),null,16))],64))),128)),l.value?(e.openBlock(),e.createBlock(u.default,{key:0,actions:o.value.menuActions,"show-icon":!1,placement:n.placement,trigger:n.trigger},{default:e.withCtx(()=>[e.createVNode(e.unref(i.MoreOutlined),{rotate:90})]),_:1},8,["actions","placement","trigger"])):e.createCommentVNode("",!0)]),_:1}))}});exports.default=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as _ApActionItem } from './item/index.vue';
|
|
2
|
+
import { default as ApActionItemDropdown } from './item-dropdown/index.vue';
|
|
3
|
+
import { default as ApActionItemModal } from './item-modal/index.vue';
|
|
4
|
+
import { default as ApActionItemPopconfirm } from './item-popconfirm/index.vue';
|
|
5
|
+
import { default as ApActionGroup } from './group/index.vue';
|
|
6
|
+
|
|
7
|
+
type ApActionItemTypes = typeof _ApActionItem & {
|
|
8
|
+
Dropdown: typeof ApActionItemDropdown;
|
|
9
|
+
Modal: typeof ApActionItemModal;
|
|
10
|
+
Popconfirm: typeof ApActionItemPopconfirm;
|
|
11
|
+
};
|
|
12
|
+
declare const ApActionItem: ApActionItemTypes;
|
|
13
|
+
export * from './interface';
|
|
14
|
+
export { ApActionItem, ApActionItemModal, ApActionItemPopconfirm, ApActionItemDropdown, ApActionGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./item/index.vue.js");require("./item-dropdown/index.vue2.js");require("./item-modal/index.vue2.js");require("./item-popconfirm/index.vue2.js");require("./group/index.vue2.js");require("./interface.js");const i=require("./item/index.vue2.js"),t=require("./item-dropdown/index.vue.js"),r=require("./item-modal/index.vue.js"),u=require("./item-popconfirm/index.vue.js"),e=i.default;e.Dropdown=t.default;e.Modal=r.default;e.Popconfirm=u.default;exports.ApActionItemDropdown=t.default;exports.ApActionItemModal=r.default;exports.ApActionItemPopconfirm=u.default;exports.ApActionItem=e;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { DropdownProps, ModalFuncProps, PopconfirmProps } from 'ant-design-vue';
|
|
2
|
+
|
|
3
|
+
export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
|
|
4
|
+
export type ApActionItemProps = {
|
|
5
|
+
/**
|
|
6
|
+
* 文本
|
|
7
|
+
*/
|
|
8
|
+
text?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 预定义文本颜色
|
|
11
|
+
*/
|
|
12
|
+
color?: ActionColor;
|
|
13
|
+
/**
|
|
14
|
+
* 是否禁用
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 是否可见
|
|
19
|
+
*/
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 点击时的动作,支持异步
|
|
23
|
+
* @param e
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
onAction?: (e: MouseEvent) => Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* 基础点击事件
|
|
29
|
+
* @param e
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
onClick?: (e: MouseEvent) => void;
|
|
33
|
+
/**
|
|
34
|
+
* 是否显示loading效果
|
|
35
|
+
*/
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type MixedActionTypes = ApActionItemProps | ApActionItemModalProps | ApActionItemPopconfirmProps;
|
|
39
|
+
export type GroupActionTypes = MixedActionTypes | ApActionItemDropdownProps;
|
|
40
|
+
export type ApActionItemDropdownProps = {
|
|
41
|
+
/**
|
|
42
|
+
* 触发下拉的行为
|
|
43
|
+
*/
|
|
44
|
+
trigger?: DropdownProps['trigger'];
|
|
45
|
+
/**
|
|
46
|
+
* 菜单弹出的位置
|
|
47
|
+
*/
|
|
48
|
+
placement?: DropdownProps['placement'];
|
|
49
|
+
/**
|
|
50
|
+
* 下拉菜单中的行为项配置
|
|
51
|
+
*/
|
|
52
|
+
actions?: MixedActionTypes[];
|
|
53
|
+
/**
|
|
54
|
+
* 是否显示向下的箭头
|
|
55
|
+
*/
|
|
56
|
+
showIcon?: boolean;
|
|
57
|
+
} & Omit<ApActionItemProps, 'onAction'>;
|
|
58
|
+
export type ApActionGroupProps = {
|
|
59
|
+
count?: number;
|
|
60
|
+
/**
|
|
61
|
+
* 触发下拉的行为
|
|
62
|
+
*/
|
|
63
|
+
trigger?: DropdownProps['trigger'];
|
|
64
|
+
/**
|
|
65
|
+
* 菜单弹出的位置
|
|
66
|
+
*/
|
|
67
|
+
placement?: DropdownProps['placement'];
|
|
68
|
+
/**
|
|
69
|
+
* 菜单项配置
|
|
70
|
+
*/
|
|
71
|
+
actions?: GroupActionTypes[];
|
|
72
|
+
};
|
|
73
|
+
export type ApActionItemModalProps = ApActionItemProps & {
|
|
74
|
+
/**
|
|
75
|
+
* 对话框的具体配置
|
|
76
|
+
*/
|
|
77
|
+
modalProps?: Omit<ModalFuncProps, 'type'>;
|
|
78
|
+
};
|
|
79
|
+
export type ApActionItemPopconfirmProps = ApActionItemProps & {
|
|
80
|
+
popconfirmProps?: PopconfirmProps;
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApActionItemProps, ActionColor } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemProps>, {
|
|
5
|
+
color: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemProps>, {
|
|
10
|
+
color: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>>, {
|
|
15
|
+
color: ActionColor;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
}, {}>, {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("ant-design-vue/es/button/LoadingIcon");require("../style/item.css");const f=require("../../config-provider/hooks/use-namespace.js"),m=e.defineComponent({name:"ApActionItem",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1}},setup(r){const n=r,{b:u,m:t}=f.useNamespace("action-item"),l=e.ref(!1);function c(o){var i;e.unref(a)||((i=n.onClick)==null||i.call(n,o),n.onAction&&(l.value=!0,n.onAction(o).finally(()=>l.value=!1)))}const a=e.computed(()=>n.loading||e.unref(l)),s=e.computed(()=>[u(),t(n.color),n.disabled?t("disabled"):null,a.value?t("loading"):null].filter(Boolean));return(o,i)=>o.visible?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:c,class:e.normalizeClass(s.value)},[a.value?(e.openBlock(),e.createBlock(e.unref(d),{key:0,prefixCls:"btn",existIcon:!1,loading:""})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text||""),1)])],2)):e.createCommentVNode("",!0)}});exports.default=m;
|