@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
|
@@ -1,4 +1,273 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as X, ref as k, openBlock as g, createBlock as T, unref as e, mergeProps as Y, withCtx as s, createElementVNode as f, normalizeClass as m, createCommentVNode as C, createVNode as l, createElementBlock as L } from "vue";
|
|
2
|
+
import "./cropper-image.vue.mjs";
|
|
3
|
+
import { Upload as _, Tooltip as p, Space as O, Avatar as z } from "ant-design-vue";
|
|
4
|
+
import { BaseButton as d } from "../base-button/index.mjs";
|
|
5
|
+
import { BaseModal as V } from "../modal/index.mjs";
|
|
6
|
+
import { dataURLtoBlob as P } from "@aplus-frontend/utils";
|
|
7
|
+
import "../config-provider/index.mjs";
|
|
8
|
+
import { isFunction as h } from "@fruits-chain/utils";
|
|
9
|
+
import "./style/modal.css";
|
|
10
|
+
import { useNamespace as D } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useModalInner as j } from "../modal/hooks/use-modal.mjs";
|
|
12
|
+
import { useLocale as q } from "../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import G from "./cropper-image.vue2.mjs";
|
|
14
|
+
const H = ["src", "alt"], se = /* @__PURE__ */ X({
|
|
15
|
+
name: "CropperModal",
|
|
16
|
+
__name: "cropper-modal",
|
|
17
|
+
props: {
|
|
18
|
+
circled: { type: Boolean, default: !0 },
|
|
19
|
+
uploadApi: {
|
|
20
|
+
type: Function
|
|
21
|
+
},
|
|
22
|
+
src: { type: String },
|
|
23
|
+
size: { type: Number }
|
|
24
|
+
},
|
|
25
|
+
emits: ["uploadSuccess", "uploadError", "register"],
|
|
26
|
+
setup(I, { emit: A }) {
|
|
27
|
+
const b = I, B = A;
|
|
28
|
+
let w = "";
|
|
29
|
+
const i = k(b.src || ""), n = k(""), y = k();
|
|
30
|
+
let $ = 1, x = 1;
|
|
31
|
+
const { b: u } = D("cropper-am"), [M, { closeModal: N, setModalProps: R }] = j(), { t: r } = q();
|
|
32
|
+
function S(o) {
|
|
33
|
+
if (b.size && o.size > 1024 * 1024 * b.size)
|
|
34
|
+
return B("uploadError", { msg: r("ap.cropper.imageTooBig") }), !1;
|
|
35
|
+
const t = new FileReader();
|
|
36
|
+
return t.readAsDataURL(o), i.value = "", n.value = "", t.onload = function(a) {
|
|
37
|
+
var v;
|
|
38
|
+
i.value = ((v = a.target) == null ? void 0 : v.result) ?? "", w = o.name;
|
|
39
|
+
}, !1;
|
|
40
|
+
}
|
|
41
|
+
function U({ imgBase64: o }) {
|
|
42
|
+
n.value = o;
|
|
43
|
+
}
|
|
44
|
+
function E(o) {
|
|
45
|
+
y.value = o;
|
|
46
|
+
}
|
|
47
|
+
function c(o, t) {
|
|
48
|
+
var a, v;
|
|
49
|
+
o === "scaleX" && ($ = t = $ === -1 ? 1 : -1), o === "scaleY" && (x = t = x === -1 ? 1 : -1), (v = (a = y == null ? void 0 : y.value) == null ? void 0 : a[o]) == null || v.call(a, t);
|
|
50
|
+
}
|
|
51
|
+
async function F() {
|
|
52
|
+
const o = b.uploadApi;
|
|
53
|
+
if (o && h(o)) {
|
|
54
|
+
const t = P(n.value);
|
|
55
|
+
try {
|
|
56
|
+
R({ confirmLoading: !0 });
|
|
57
|
+
const a = await o({ name: "file", file: t, filename: w });
|
|
58
|
+
B("uploadSuccess", {
|
|
59
|
+
source: n.value,
|
|
60
|
+
data: a.url
|
|
61
|
+
}), N();
|
|
62
|
+
} finally {
|
|
63
|
+
R({ confirmLoading: !1 });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return (o, t) => (g(), T(e(V), Y(o.$attrs, {
|
|
68
|
+
onRegister: e(M),
|
|
69
|
+
title: e(r)("ap.cropper.modalTitle"),
|
|
70
|
+
width: "800px",
|
|
71
|
+
canFullscreen: !1,
|
|
72
|
+
onOk: F,
|
|
73
|
+
okText: e(r)("ap.cropper.okText")
|
|
74
|
+
}), {
|
|
75
|
+
default: s(() => [
|
|
76
|
+
f("div", {
|
|
77
|
+
class: m(e(u)())
|
|
78
|
+
}, [
|
|
79
|
+
f("div", {
|
|
80
|
+
class: m(e(u)("left"))
|
|
81
|
+
}, [
|
|
82
|
+
f("div", {
|
|
83
|
+
class: m(e(u)("cropper"))
|
|
84
|
+
}, [
|
|
85
|
+
i.value ? (g(), T(G, {
|
|
86
|
+
key: 0,
|
|
87
|
+
src: i.value,
|
|
88
|
+
height: "300px",
|
|
89
|
+
circled: I.circled,
|
|
90
|
+
onCropend: U,
|
|
91
|
+
onReady: E
|
|
92
|
+
}, null, 8, ["src", "circled"])) : C("", !0)
|
|
93
|
+
], 2),
|
|
94
|
+
f("div", {
|
|
95
|
+
class: m(e(u)("toolbar"))
|
|
96
|
+
}, [
|
|
97
|
+
l(e(_), {
|
|
98
|
+
fileList: [],
|
|
99
|
+
accept: "image/*",
|
|
100
|
+
beforeUpload: S
|
|
101
|
+
}, {
|
|
102
|
+
default: s(() => [
|
|
103
|
+
l(e(p), {
|
|
104
|
+
title: e(r)("ap.cropper.selectImage"),
|
|
105
|
+
placement: "bottom"
|
|
106
|
+
}, {
|
|
107
|
+
default: s(() => [
|
|
108
|
+
l(e(d), {
|
|
109
|
+
size: "small",
|
|
110
|
+
preIcon: "ant-design:upload-outlined",
|
|
111
|
+
type: "primary"
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["title"])
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}),
|
|
119
|
+
l(e(O), null, {
|
|
120
|
+
default: s(() => [
|
|
121
|
+
l(e(p), {
|
|
122
|
+
title: e(r)("ap.common.resetText"),
|
|
123
|
+
placement: "bottom"
|
|
124
|
+
}, {
|
|
125
|
+
default: s(() => [
|
|
126
|
+
l(e(d), {
|
|
127
|
+
type: "primary",
|
|
128
|
+
preIcon: "ant-design:reload-outlined",
|
|
129
|
+
size: "small",
|
|
130
|
+
disabled: !i.value,
|
|
131
|
+
onClick: t[0] || (t[0] = (a) => c("reset"))
|
|
132
|
+
}, null, 8, ["disabled"])
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["title"]),
|
|
136
|
+
l(e(p), {
|
|
137
|
+
title: e(r)("ap.cropper.rotateLeft"),
|
|
138
|
+
placement: "bottom"
|
|
139
|
+
}, {
|
|
140
|
+
default: s(() => [
|
|
141
|
+
l(e(d), {
|
|
142
|
+
type: "primary",
|
|
143
|
+
preIcon: "ant-design:rotate-left-outlined",
|
|
144
|
+
size: "small",
|
|
145
|
+
disabled: !i.value,
|
|
146
|
+
onClick: t[1] || (t[1] = (a) => c("rotate", -45))
|
|
147
|
+
}, null, 8, ["disabled"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["title"]),
|
|
151
|
+
l(e(p), {
|
|
152
|
+
title: e(r)("ap.cropper.rotateRight"),
|
|
153
|
+
placement: "bottom"
|
|
154
|
+
}, {
|
|
155
|
+
default: s(() => [
|
|
156
|
+
l(e(d), {
|
|
157
|
+
type: "primary",
|
|
158
|
+
preIcon: "ant-design:rotate-right-outlined",
|
|
159
|
+
size: "small",
|
|
160
|
+
disabled: !i.value,
|
|
161
|
+
onClick: t[2] || (t[2] = (a) => c("rotate", 45))
|
|
162
|
+
}, null, 8, ["disabled"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["title"]),
|
|
166
|
+
l(e(p), {
|
|
167
|
+
title: e(r)("ap.cropper.scaleX"),
|
|
168
|
+
placement: "bottom"
|
|
169
|
+
}, {
|
|
170
|
+
default: s(() => [
|
|
171
|
+
l(e(d), {
|
|
172
|
+
type: "primary",
|
|
173
|
+
preIcon: "vaadin:arrows-long-h",
|
|
174
|
+
size: "small",
|
|
175
|
+
disabled: !i.value,
|
|
176
|
+
onClick: t[3] || (t[3] = (a) => c("scaleX"))
|
|
177
|
+
}, null, 8, ["disabled"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["title"]),
|
|
181
|
+
l(e(p), {
|
|
182
|
+
title: e(r)("ap.cropper.scaleY"),
|
|
183
|
+
placement: "bottom"
|
|
184
|
+
}, {
|
|
185
|
+
default: s(() => [
|
|
186
|
+
l(e(d), {
|
|
187
|
+
type: "primary",
|
|
188
|
+
preIcon: "vaadin:arrows-long-v",
|
|
189
|
+
size: "small",
|
|
190
|
+
disabled: !i.value,
|
|
191
|
+
onClick: t[4] || (t[4] = (a) => c("scaleY"))
|
|
192
|
+
}, null, 8, ["disabled"])
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["title"]),
|
|
196
|
+
l(e(p), {
|
|
197
|
+
title: e(r)("ap.cropper.zoomIn"),
|
|
198
|
+
placement: "bottom"
|
|
199
|
+
}, {
|
|
200
|
+
default: s(() => [
|
|
201
|
+
l(e(d), {
|
|
202
|
+
type: "primary",
|
|
203
|
+
preIcon: "ant-design:zoom-in-outlined",
|
|
204
|
+
size: "small",
|
|
205
|
+
disabled: !i.value,
|
|
206
|
+
onClick: t[5] || (t[5] = (a) => c("zoom", 0.1))
|
|
207
|
+
}, null, 8, ["disabled"])
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["title"]),
|
|
211
|
+
l(e(p), {
|
|
212
|
+
title: e(r)("ap.cropper.zoomOut"),
|
|
213
|
+
placement: "bottom"
|
|
214
|
+
}, {
|
|
215
|
+
default: s(() => [
|
|
216
|
+
l(e(d), {
|
|
217
|
+
type: "primary",
|
|
218
|
+
preIcon: "ant-design:zoom-out-outlined",
|
|
219
|
+
size: "small",
|
|
220
|
+
disabled: !i.value,
|
|
221
|
+
onClick: t[6] || (t[6] = (a) => c("zoom", -0.1))
|
|
222
|
+
}, null, 8, ["disabled"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["title"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
], 2)
|
|
230
|
+
], 2),
|
|
231
|
+
f("div", {
|
|
232
|
+
class: m(e(u)("right"))
|
|
233
|
+
}, [
|
|
234
|
+
f("div", {
|
|
235
|
+
class: m(e(u)("preview"))
|
|
236
|
+
}, [
|
|
237
|
+
n.value ? (g(), L("img", {
|
|
238
|
+
key: 0,
|
|
239
|
+
src: n.value,
|
|
240
|
+
alt: e(r)("ap.cropper.preview")
|
|
241
|
+
}, null, 8, H)) : C("", !0)
|
|
242
|
+
], 2),
|
|
243
|
+
n.value ? (g(), L("div", {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: m(e(u)("group"))
|
|
246
|
+
}, [
|
|
247
|
+
l(e(z), {
|
|
248
|
+
src: n.value,
|
|
249
|
+
size: "large"
|
|
250
|
+
}, null, 8, ["src"]),
|
|
251
|
+
l(e(z), {
|
|
252
|
+
src: n.value,
|
|
253
|
+
size: 48
|
|
254
|
+
}, null, 8, ["src"]),
|
|
255
|
+
l(e(z), {
|
|
256
|
+
src: n.value,
|
|
257
|
+
size: 64
|
|
258
|
+
}, null, 8, ["src"]),
|
|
259
|
+
l(e(z), {
|
|
260
|
+
src: n.value,
|
|
261
|
+
size: 80
|
|
262
|
+
}, null, 8, ["src"])
|
|
263
|
+
], 2)) : C("", !0)
|
|
264
|
+
], 2)
|
|
265
|
+
], 2)
|
|
266
|
+
]),
|
|
267
|
+
_: 1
|
|
268
|
+
}, 16, ["onRegister", "title", "okText"]));
|
|
269
|
+
}
|
|
270
|
+
});
|
|
2
271
|
export {
|
|
3
|
-
|
|
272
|
+
se as default
|
|
4
273
|
};
|
|
@@ -4,14 +4,14 @@ import { ButtonProps } from '..';
|
|
|
4
4
|
export * from './interface';
|
|
5
5
|
export declare const CropperImage: {
|
|
6
6
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
7
|
-
options: {
|
|
8
|
-
type: PropType<CropperOptions>;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
7
|
height: {
|
|
12
8
|
type: PropType<string | number>;
|
|
13
9
|
default: string;
|
|
14
10
|
};
|
|
11
|
+
options: {
|
|
12
|
+
type: PropType<CropperOptions>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
15
|
imageStyle: {
|
|
16
16
|
type: PropType<CSSProperties>;
|
|
17
17
|
default: () => {};
|
|
@@ -44,14 +44,14 @@ export declare const CropperImage: {
|
|
|
44
44
|
ready: (...args: any[]) => void;
|
|
45
45
|
cropendError: (...args: any[]) => void;
|
|
46
46
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
47
|
-
options: {
|
|
48
|
-
type: PropType<CropperOptions>;
|
|
49
|
-
default: () => {};
|
|
50
|
-
};
|
|
51
47
|
height: {
|
|
52
48
|
type: PropType<string | number>;
|
|
53
49
|
default: string;
|
|
54
50
|
};
|
|
51
|
+
options: {
|
|
52
|
+
type: PropType<CropperOptions>;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
55
|
imageStyle: {
|
|
56
56
|
type: PropType<CSSProperties>;
|
|
57
57
|
default: () => {};
|
|
@@ -80,8 +80,8 @@ export declare const CropperImage: {
|
|
|
80
80
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
onCropendError?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
}, {
|
|
83
|
-
options: CropperOptions;
|
|
84
83
|
height: string | number;
|
|
84
|
+
options: CropperOptions;
|
|
85
85
|
imageStyle: CSSProperties;
|
|
86
86
|
circled: boolean;
|
|
87
87
|
realTimePreview: boolean;
|
|
@@ -94,14 +94,14 @@ export declare const CropperImage: {
|
|
|
94
94
|
M: {};
|
|
95
95
|
Defaults: {};
|
|
96
96
|
}, Readonly< ExtractPropTypes<{
|
|
97
|
-
options: {
|
|
98
|
-
type: PropType<CropperOptions>;
|
|
99
|
-
default: () => {};
|
|
100
|
-
};
|
|
101
97
|
height: {
|
|
102
98
|
type: PropType<string | number>;
|
|
103
99
|
default: string;
|
|
104
100
|
};
|
|
101
|
+
options: {
|
|
102
|
+
type: PropType<CropperOptions>;
|
|
103
|
+
default: () => {};
|
|
104
|
+
};
|
|
105
105
|
imageStyle: {
|
|
106
106
|
type: PropType<CSSProperties>;
|
|
107
107
|
default: () => {};
|
|
@@ -130,8 +130,8 @@ export declare const CropperImage: {
|
|
|
130
130
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
131
131
|
onCropendError?: ((...args: any[]) => any) | undefined;
|
|
132
132
|
}, {}, {}, {}, {}, {
|
|
133
|
-
options: CropperOptions;
|
|
134
133
|
height: string | number;
|
|
134
|
+
options: CropperOptions;
|
|
135
135
|
imageStyle: CSSProperties;
|
|
136
136
|
circled: boolean;
|
|
137
137
|
realTimePreview: boolean;
|
|
@@ -141,14 +141,14 @@ export declare const CropperImage: {
|
|
|
141
141
|
__isTeleport?: undefined;
|
|
142
142
|
__isSuspense?: undefined;
|
|
143
143
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
144
|
-
options: {
|
|
145
|
-
type: PropType<CropperOptions>;
|
|
146
|
-
default: () => {};
|
|
147
|
-
};
|
|
148
144
|
height: {
|
|
149
145
|
type: PropType<string | number>;
|
|
150
146
|
default: string;
|
|
151
147
|
};
|
|
148
|
+
options: {
|
|
149
|
+
type: PropType<CropperOptions>;
|
|
150
|
+
default: () => {};
|
|
151
|
+
};
|
|
152
152
|
imageStyle: {
|
|
153
153
|
type: PropType<CSSProperties>;
|
|
154
154
|
default: () => {};
|
|
@@ -181,8 +181,8 @@ export declare const CropperImage: {
|
|
|
181
181
|
ready: (...args: any[]) => void;
|
|
182
182
|
cropendError: (...args: any[]) => void;
|
|
183
183
|
}, string, {
|
|
184
|
-
options: CropperOptions;
|
|
185
184
|
height: string | number;
|
|
185
|
+
options: CropperOptions;
|
|
186
186
|
imageStyle: CSSProperties;
|
|
187
187
|
circled: boolean;
|
|
188
188
|
realTimePreview: boolean;
|
|
@@ -194,16 +194,16 @@ export declare const CropperImage: {
|
|
|
194
194
|
});
|
|
195
195
|
export declare const CropperAvatar: {
|
|
196
196
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
197
|
-
|
|
198
|
-
type: PropType<string>;
|
|
197
|
+
width: {
|
|
198
|
+
type: PropType<string | number>;
|
|
199
|
+
default: string;
|
|
199
200
|
};
|
|
200
201
|
size: {
|
|
201
202
|
type: PropType<number>;
|
|
202
203
|
default: number;
|
|
203
204
|
};
|
|
204
|
-
|
|
205
|
-
type: PropType<string
|
|
206
|
-
default: string;
|
|
205
|
+
value: {
|
|
206
|
+
type: PropType<string>;
|
|
207
207
|
};
|
|
208
208
|
uploadApi: {
|
|
209
209
|
type: PropType<({ file, name }: {
|
|
@@ -232,16 +232,16 @@ export declare const CropperAvatar: {
|
|
|
232
232
|
change: (...args: any[]) => void;
|
|
233
233
|
"update:value": (...args: any[]) => void;
|
|
234
234
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
235
|
-
|
|
236
|
-
type: PropType<string>;
|
|
235
|
+
width: {
|
|
236
|
+
type: PropType<string | number>;
|
|
237
|
+
default: string;
|
|
237
238
|
};
|
|
238
239
|
size: {
|
|
239
240
|
type: PropType<number>;
|
|
240
241
|
default: number;
|
|
241
242
|
};
|
|
242
|
-
|
|
243
|
-
type: PropType<string
|
|
244
|
-
default: string;
|
|
243
|
+
value: {
|
|
244
|
+
type: PropType<string>;
|
|
245
245
|
};
|
|
246
246
|
uploadApi: {
|
|
247
247
|
type: PropType<({ file, name }: {
|
|
@@ -264,8 +264,8 @@ export declare const CropperAvatar: {
|
|
|
264
264
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
265
265
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
266
266
|
}, {
|
|
267
|
-
size: number;
|
|
268
267
|
width: string | number;
|
|
268
|
+
size: number;
|
|
269
269
|
showBtn: boolean;
|
|
270
270
|
btnText: string;
|
|
271
271
|
}, true, {}, {}, {
|
|
@@ -276,16 +276,16 @@ export declare const CropperAvatar: {
|
|
|
276
276
|
M: {};
|
|
277
277
|
Defaults: {};
|
|
278
278
|
}, Readonly< ExtractPropTypes<{
|
|
279
|
-
|
|
280
|
-
type: PropType<string>;
|
|
279
|
+
width: {
|
|
280
|
+
type: PropType<string | number>;
|
|
281
|
+
default: string;
|
|
281
282
|
};
|
|
282
283
|
size: {
|
|
283
284
|
type: PropType<number>;
|
|
284
285
|
default: number;
|
|
285
286
|
};
|
|
286
|
-
|
|
287
|
-
type: PropType<string
|
|
288
|
-
default: string;
|
|
287
|
+
value: {
|
|
288
|
+
type: PropType<string>;
|
|
289
289
|
};
|
|
290
290
|
uploadApi: {
|
|
291
291
|
type: PropType<({ file, name }: {
|
|
@@ -311,8 +311,8 @@ export declare const CropperAvatar: {
|
|
|
311
311
|
openModal: (data?: unknown, openOnSet?: boolean | undefined) => void;
|
|
312
312
|
closeModal: () => void;
|
|
313
313
|
}, {}, {}, {}, {
|
|
314
|
-
size: number;
|
|
315
314
|
width: string | number;
|
|
315
|
+
size: number;
|
|
316
316
|
showBtn: boolean;
|
|
317
317
|
btnText: string;
|
|
318
318
|
}>;
|
|
@@ -320,16 +320,16 @@ export declare const CropperAvatar: {
|
|
|
320
320
|
__isTeleport?: undefined;
|
|
321
321
|
__isSuspense?: undefined;
|
|
322
322
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
323
|
-
|
|
324
|
-
type: PropType<string>;
|
|
323
|
+
width: {
|
|
324
|
+
type: PropType<string | number>;
|
|
325
|
+
default: string;
|
|
325
326
|
};
|
|
326
327
|
size: {
|
|
327
328
|
type: PropType<number>;
|
|
328
329
|
default: number;
|
|
329
330
|
};
|
|
330
|
-
|
|
331
|
-
type: PropType<string
|
|
332
|
-
default: string;
|
|
331
|
+
value: {
|
|
332
|
+
type: PropType<string>;
|
|
333
333
|
};
|
|
334
334
|
uploadApi: {
|
|
335
335
|
type: PropType<({ file, name }: {
|
|
@@ -358,8 +358,8 @@ export declare const CropperAvatar: {
|
|
|
358
358
|
change: (...args: any[]) => void;
|
|
359
359
|
"update:value": (...args: any[]) => void;
|
|
360
360
|
}, string, {
|
|
361
|
-
size: number;
|
|
362
361
|
width: string | number;
|
|
362
|
+
size: number;
|
|
363
363
|
showBtn: boolean;
|
|
364
364
|
btnText: string;
|
|
365
365
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
package/es/src/cropper/index.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { withInstall as r } from "@aplus-frontend/utils";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import "./cropper-image.vue.mjs";
|
|
3
|
+
import "./cropper-avatar.vue.mjs";
|
|
4
|
+
import "./interface.mjs";
|
|
5
|
+
import o from "./cropper-image.vue2.mjs";
|
|
6
|
+
import m from "./cropper-avatar.vue2.mjs";
|
|
7
|
+
const s = r(o), c = r(m);
|
|
5
8
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
c as CropperAvatar,
|
|
10
|
+
s as CropperImage
|
|
8
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -85,9 +85,9 @@ declare const _default: DefineComponent<{
|
|
|
85
85
|
}>> & {
|
|
86
86
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
}, {
|
|
88
|
+
title: string;
|
|
88
89
|
size: string;
|
|
89
90
|
bordered: boolean;
|
|
90
|
-
title: string;
|
|
91
91
|
column: number | Record<string, any>;
|
|
92
92
|
schema: DescItem[];
|
|
93
93
|
useCollapse: boolean;
|
|
@@ -1,171 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CollapseContainer as $ } from "../container/index.mjs";
|
|
3
|
-
import { useAttrs as k } from "@aplus-frontend/hooks";
|
|
4
|
-
import { Descriptions as C } from "ant-design-vue";
|
|
5
|
-
import { get as z } from "lodash-unified";
|
|
6
|
-
import { isFunction as y } from "@fruits-chain/utils";
|
|
7
|
-
import "../config-provider/index.mjs";
|
|
8
|
-
import { useNamespace as L } from "../config-provider/hooks/use-namespace.mjs";
|
|
9
|
-
function q(n) {
|
|
10
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !R(n);
|
|
11
|
-
}
|
|
12
|
-
const G = {
|
|
13
|
-
useCollapse: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !0
|
|
16
|
-
},
|
|
17
|
-
title: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
type: String,
|
|
23
|
-
validator: (n) => ["small", "default", "middle", void 0].includes(n),
|
|
24
|
-
default: "small"
|
|
25
|
-
},
|
|
26
|
-
bordered: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
column: {
|
|
31
|
-
type: [Number, Object],
|
|
32
|
-
default: () => ({
|
|
33
|
-
xxl: 4,
|
|
34
|
-
xl: 3,
|
|
35
|
-
lg: 3,
|
|
36
|
-
md: 3,
|
|
37
|
-
sm: 2,
|
|
38
|
-
xs: 1
|
|
39
|
-
})
|
|
40
|
-
},
|
|
41
|
-
collapseOptions: {
|
|
42
|
-
type: Object,
|
|
43
|
-
default: null
|
|
44
|
-
},
|
|
45
|
-
schema: {
|
|
46
|
-
type: Array,
|
|
47
|
-
default: () => []
|
|
48
|
-
},
|
|
49
|
-
data: {
|
|
50
|
-
type: Object
|
|
51
|
-
}
|
|
52
|
-
}, tt = /* @__PURE__ */ B({
|
|
53
|
-
name: "ApDescription",
|
|
54
|
-
props: G,
|
|
55
|
-
emits: ["register"],
|
|
56
|
-
setup(n, {
|
|
57
|
-
slots: O,
|
|
58
|
-
emit: j
|
|
59
|
-
}) {
|
|
60
|
-
const u = F(null), {
|
|
61
|
-
b: P
|
|
62
|
-
} = L("description"), v = k(), p = a(() => ({
|
|
63
|
-
...n,
|
|
64
|
-
...e(u)
|
|
65
|
-
})), c = a(() => ({
|
|
66
|
-
...e(p),
|
|
67
|
-
title: void 0
|
|
68
|
-
})), D = a(() => !!e(p).title), _ = a(() => ({
|
|
69
|
-
// Cannot be expanded by default
|
|
70
|
-
canExpand: !1,
|
|
71
|
-
...e(c).collapseOptions
|
|
72
|
-
})), N = a(() => ({
|
|
73
|
-
...e(v),
|
|
74
|
-
...e(c)
|
|
75
|
-
}));
|
|
76
|
-
function S(t) {
|
|
77
|
-
u.value = {
|
|
78
|
-
...e(u),
|
|
79
|
-
...t
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function w({
|
|
83
|
-
label: t,
|
|
84
|
-
labelMinWidth: l,
|
|
85
|
-
labelStyle: r
|
|
86
|
-
}) {
|
|
87
|
-
if (!r && !l)
|
|
88
|
-
return t;
|
|
89
|
-
const o = {
|
|
90
|
-
...r,
|
|
91
|
-
minWidth: `${l}px `
|
|
92
|
-
};
|
|
93
|
-
return i("div", {
|
|
94
|
-
style: o
|
|
95
|
-
}, [t]);
|
|
96
|
-
}
|
|
97
|
-
function A() {
|
|
98
|
-
const {
|
|
99
|
-
schema: t,
|
|
100
|
-
data: l
|
|
101
|
-
} = e(c);
|
|
102
|
-
return e(t).map((r) => {
|
|
103
|
-
const {
|
|
104
|
-
render: o,
|
|
105
|
-
field: f,
|
|
106
|
-
span: M,
|
|
107
|
-
show: m,
|
|
108
|
-
contentMinWidth: h
|
|
109
|
-
} = r;
|
|
110
|
-
if (m && y(m) && !m(l))
|
|
111
|
-
return null;
|
|
112
|
-
const x = () => {
|
|
113
|
-
var b;
|
|
114
|
-
const s = (b = e(c)) == null ? void 0 : b.data;
|
|
115
|
-
if (!s)
|
|
116
|
-
return null;
|
|
117
|
-
const g = z(s, f);
|
|
118
|
-
return g && !V(s).hasOwnProperty(f) ? y(o) ? o("", s) : "" : y(o) ? o(g, s) : g ?? "";
|
|
119
|
-
}, W = h;
|
|
120
|
-
return i(C.Item, {
|
|
121
|
-
label: w(r),
|
|
122
|
-
key: f,
|
|
123
|
-
span: M
|
|
124
|
-
}, {
|
|
125
|
-
default: () => {
|
|
126
|
-
if (!h)
|
|
127
|
-
return x();
|
|
128
|
-
const s = {
|
|
129
|
-
minWidth: `${W}px`
|
|
130
|
-
};
|
|
131
|
-
return i("div", {
|
|
132
|
-
style: s
|
|
133
|
-
}, [x()]);
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}).filter((r) => !!r);
|
|
137
|
-
}
|
|
138
|
-
const d = () => {
|
|
139
|
-
let t;
|
|
140
|
-
return i(C, I({
|
|
141
|
-
class: P()
|
|
142
|
-
}, e(N)), q(t = A()) ? t : {
|
|
143
|
-
default: () => [t]
|
|
144
|
-
});
|
|
145
|
-
}, E = () => {
|
|
146
|
-
const t = n.useCollapse ? d() : i("div", null, [d()]);
|
|
147
|
-
if (!n.useCollapse)
|
|
148
|
-
return t;
|
|
149
|
-
const {
|
|
150
|
-
canExpand: l,
|
|
151
|
-
helpMessage: r
|
|
152
|
-
} = e(_), {
|
|
153
|
-
title: o
|
|
154
|
-
} = e(p);
|
|
155
|
-
return i($, {
|
|
156
|
-
title: o,
|
|
157
|
-
canExpand: l,
|
|
158
|
-
helpMessage: r
|
|
159
|
-
}, {
|
|
160
|
-
default: () => t,
|
|
161
|
-
action: O.action
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
return j("register", {
|
|
165
|
-
setDescProps: S
|
|
166
|
-
}), () => e(D) ? E() : d();
|
|
167
|
-
}
|
|
168
|
-
});
|
|
1
|
+
import f from "./description.vue2.mjs";
|
|
169
2
|
export {
|
|
170
|
-
|
|
3
|
+
f as default
|
|
171
4
|
};
|