@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,171 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { isVNode as B, defineComponent as F, ref as I, computed as a, unref as e, createVNode as i, toRefs as R, mergeProps as V } from "vue";
|
|
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]" && !B(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__ */ F({
|
|
53
|
+
name: "ApDescription",
|
|
54
|
+
props: G,
|
|
55
|
+
emits: ["register"],
|
|
56
|
+
setup(n, {
|
|
57
|
+
slots: O,
|
|
58
|
+
emit: j
|
|
59
|
+
}) {
|
|
60
|
+
const u = I(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 && !R(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, V({
|
|
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
|
+
});
|
|
2
169
|
export {
|
|
3
|
-
|
|
170
|
+
tt as default
|
|
4
171
|
};
|
|
@@ -89,9 +89,9 @@ export declare const Description: {
|
|
|
89
89
|
}>> & {
|
|
90
90
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
}, {
|
|
92
|
+
title: string;
|
|
92
93
|
size: string;
|
|
93
94
|
bordered: boolean;
|
|
94
|
-
title: string;
|
|
95
95
|
column: number | Record<string, any>;
|
|
96
96
|
schema: DescItem[];
|
|
97
97
|
useCollapse: boolean;
|
|
@@ -146,9 +146,9 @@ export declare const Description: {
|
|
|
146
146
|
}>> & {
|
|
147
147
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
148
148
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
149
|
+
title: string;
|
|
149
150
|
size: string;
|
|
150
151
|
bordered: boolean;
|
|
151
|
-
title: string;
|
|
152
152
|
column: number | Record<string, any>;
|
|
153
153
|
schema: DescItem[];
|
|
154
154
|
useCollapse: boolean;
|
|
@@ -200,9 +200,9 @@ export declare const Description: {
|
|
|
200
200
|
}>> & {
|
|
201
201
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
202
202
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "register"[], "register", {
|
|
203
|
+
title: string;
|
|
203
204
|
size: string;
|
|
204
205
|
bordered: boolean;
|
|
205
|
-
title: string;
|
|
206
206
|
column: number | Record<string, any>;
|
|
207
207
|
schema: DescItem[];
|
|
208
208
|
useCollapse: boolean;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import "./description.vue.mjs";
|
|
2
|
+
import { withInstall as o } from "@aplus-frontend/utils";
|
|
3
|
+
import "./interface.mjs";
|
|
4
|
+
import { useDescription as c } from "./use-description.mjs";
|
|
5
|
+
import r from "./description.vue2.mjs";
|
|
6
|
+
const s = o(r);
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
s as Description,
|
|
9
|
+
c as useDescription
|
|
7
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
15
15
|
}>>> & {
|
|
16
16
|
onMenuEvent?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
trigger: ("click" | "
|
|
18
|
+
trigger: ("click" | "hover" | "contextmenu")[];
|
|
19
19
|
selectedKeys: string[];
|
|
20
20
|
dropMenuList: (DropMenu & Recordable<any>)[];
|
|
21
21
|
}, {}>, {
|
|
@@ -1,94 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Menu as m, Dropdown as V, Popconfirm as F } from "ant-design-vue";
|
|
3
|
-
import { Icon as g } from "../icon/index.mjs";
|
|
4
|
-
import { omit as j, isFunction as C } from "lodash-unified";
|
|
5
|
-
const q = { style: { "margin-left": "0.25rem" } }, x = { style: { "margin-left": "0.25rem" } }, O = /* @__PURE__ */ L({
|
|
6
|
-
__name: "dropdown",
|
|
7
|
-
props: {
|
|
8
|
-
popconfirm: { type: Boolean },
|
|
9
|
-
trigger: { default: () => ["contextmenu"] },
|
|
10
|
-
dropMenuList: { default: () => [] },
|
|
11
|
-
selectedKeys: { default: () => [] }
|
|
12
|
-
},
|
|
13
|
-
emits: ["menuEvent"],
|
|
14
|
-
setup(v, { emit: k }) {
|
|
15
|
-
const _ = V, A = m, M = m.Item, $ = m.Divider, b = F, h = v, D = k;
|
|
16
|
-
function w(e) {
|
|
17
|
-
var d;
|
|
18
|
-
const { event: t } = e, n = h.dropMenuList.find(
|
|
19
|
-
(K) => `${K.event}` == `${t}`
|
|
20
|
-
);
|
|
21
|
-
D("menuEvent", n), (d = e.onClick) == null || d.call(e);
|
|
22
|
-
}
|
|
23
|
-
const B = P(() => (e) => {
|
|
24
|
-
const t = j(e, ["confirm", "cancel", "icon"]);
|
|
25
|
-
return !e.onConfirm && e.confirm && C(e.confirm) && (t.onConfirm = e.confirm), !e.onCancel && e.cancel && C(e.cancel) && (t.onCancel = e.cancel), t;
|
|
26
|
-
}), E = (e) => ({ key: e });
|
|
27
|
-
return (e, t) => (o(), i(r(_), s({ trigger: e.trigger }, e.$attrs), {
|
|
28
|
-
overlay: c(() => [
|
|
29
|
-
u(r(A), { selectedKeys: e.selectedKeys }, {
|
|
30
|
-
default: c(() => [
|
|
31
|
-
(o(!0), f(p, null, I(e.dropMenuList, (n) => (o(), f(p, {
|
|
32
|
-
key: `${n.event}`
|
|
33
|
-
}, [
|
|
34
|
-
u(r(M), s({ ref_for: !0 }, E(n.event), {
|
|
35
|
-
onClick: (d) => w(n),
|
|
36
|
-
disabled: n.disabled
|
|
37
|
-
}), {
|
|
38
|
-
default: c(() => [
|
|
39
|
-
e.popconfirm && n.popConfirm ? (o(), i(r(b), s({
|
|
40
|
-
key: 0,
|
|
41
|
-
ref_for: !0
|
|
42
|
-
}, B.value(n.popConfirm), {
|
|
43
|
-
disabled: n.disabled
|
|
44
|
-
}), N({
|
|
45
|
-
default: c(() => [
|
|
46
|
-
l("div", null, [
|
|
47
|
-
n.icon ? (o(), i(r(g), {
|
|
48
|
-
key: 0,
|
|
49
|
-
icon: n.icon
|
|
50
|
-
}, null, 8, ["icon"])) : a("", !0),
|
|
51
|
-
l("span", q, y(n.text), 1)
|
|
52
|
-
])
|
|
53
|
-
]),
|
|
54
|
-
_: 2
|
|
55
|
-
}, [
|
|
56
|
-
n.popConfirm.icon ? {
|
|
57
|
-
name: "icon",
|
|
58
|
-
fn: c(() => [
|
|
59
|
-
u(r(g), {
|
|
60
|
-
icon: n.popConfirm.icon
|
|
61
|
-
}, null, 8, ["icon"])
|
|
62
|
-
]),
|
|
63
|
-
key: "0"
|
|
64
|
-
} : void 0
|
|
65
|
-
]), 1040, ["disabled"])) : (o(), f(p, { key: 1 }, [
|
|
66
|
-
n.icon ? (o(), i(r(g), {
|
|
67
|
-
key: 0,
|
|
68
|
-
icon: n.icon
|
|
69
|
-
}, null, 8, ["icon"])) : a("", !0),
|
|
70
|
-
l("span", x, y(n.text), 1)
|
|
71
|
-
], 64))
|
|
72
|
-
]),
|
|
73
|
-
_: 2
|
|
74
|
-
}, 1040, ["onClick", "disabled"]),
|
|
75
|
-
n.divider ? (o(), i(r($), {
|
|
76
|
-
key: `d-${n.event}`
|
|
77
|
-
})) : a("", !0)
|
|
78
|
-
], 64))), 128))
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["selectedKeys"])
|
|
82
|
-
]),
|
|
83
|
-
default: c(() => [
|
|
84
|
-
l("span", null, [
|
|
85
|
-
S(e.$slots, "default")
|
|
86
|
-
])
|
|
87
|
-
]),
|
|
88
|
-
_: 3
|
|
89
|
-
}, 16, ["trigger"]));
|
|
90
|
-
}
|
|
91
|
-
});
|
|
1
|
+
import f from "./dropdown.vue2.mjs";
|
|
92
2
|
export {
|
|
93
|
-
|
|
3
|
+
f as default
|
|
94
4
|
};
|
|
@@ -1,4 +1,94 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as L, computed as P, openBlock as o, createBlock as i, unref as r, mergeProps as s, withCtx as c, createVNode as u, createElementBlock as f, Fragment as p, renderList as I, createSlots as N, createElementVNode as l, createCommentVNode as a, toDisplayString as y, renderSlot as S } from "vue";
|
|
2
|
+
import { Dropdown as V, Menu as m, Popconfirm as F } from "ant-design-vue";
|
|
3
|
+
import { Icon as g } from "../icon/index.mjs";
|
|
4
|
+
import { omit as j, isFunction as C } from "lodash-unified";
|
|
5
|
+
const q = { style: { "margin-left": "0.25rem" } }, x = { style: { "margin-left": "0.25rem" } }, O = /* @__PURE__ */ L({
|
|
6
|
+
__name: "dropdown",
|
|
7
|
+
props: {
|
|
8
|
+
popconfirm: { type: Boolean },
|
|
9
|
+
trigger: { default: () => ["contextmenu"] },
|
|
10
|
+
dropMenuList: { default: () => [] },
|
|
11
|
+
selectedKeys: { default: () => [] }
|
|
12
|
+
},
|
|
13
|
+
emits: ["menuEvent"],
|
|
14
|
+
setup(v, { emit: k }) {
|
|
15
|
+
const _ = V, A = m, M = m.Item, $ = m.Divider, b = F, h = v, D = k;
|
|
16
|
+
function w(e) {
|
|
17
|
+
var d;
|
|
18
|
+
const { event: t } = e, n = h.dropMenuList.find(
|
|
19
|
+
(K) => `${K.event}` == `${t}`
|
|
20
|
+
);
|
|
21
|
+
D("menuEvent", n), (d = e.onClick) == null || d.call(e);
|
|
22
|
+
}
|
|
23
|
+
const B = P(() => (e) => {
|
|
24
|
+
const t = j(e, ["confirm", "cancel", "icon"]);
|
|
25
|
+
return !e.onConfirm && e.confirm && C(e.confirm) && (t.onConfirm = e.confirm), !e.onCancel && e.cancel && C(e.cancel) && (t.onCancel = e.cancel), t;
|
|
26
|
+
}), E = (e) => ({ key: e });
|
|
27
|
+
return (e, t) => (o(), i(r(_), s({ trigger: e.trigger }, e.$attrs), {
|
|
28
|
+
overlay: c(() => [
|
|
29
|
+
u(r(A), { selectedKeys: e.selectedKeys }, {
|
|
30
|
+
default: c(() => [
|
|
31
|
+
(o(!0), f(p, null, I(e.dropMenuList, (n) => (o(), f(p, {
|
|
32
|
+
key: `${n.event}`
|
|
33
|
+
}, [
|
|
34
|
+
u(r(M), s({ ref_for: !0 }, E(n.event), {
|
|
35
|
+
onClick: (d) => w(n),
|
|
36
|
+
disabled: n.disabled
|
|
37
|
+
}), {
|
|
38
|
+
default: c(() => [
|
|
39
|
+
e.popconfirm && n.popConfirm ? (o(), i(r(b), s({
|
|
40
|
+
key: 0,
|
|
41
|
+
ref_for: !0
|
|
42
|
+
}, B.value(n.popConfirm), {
|
|
43
|
+
disabled: n.disabled
|
|
44
|
+
}), N({
|
|
45
|
+
default: c(() => [
|
|
46
|
+
l("div", null, [
|
|
47
|
+
n.icon ? (o(), i(r(g), {
|
|
48
|
+
key: 0,
|
|
49
|
+
icon: n.icon
|
|
50
|
+
}, null, 8, ["icon"])) : a("", !0),
|
|
51
|
+
l("span", q, y(n.text), 1)
|
|
52
|
+
])
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, [
|
|
56
|
+
n.popConfirm.icon ? {
|
|
57
|
+
name: "icon",
|
|
58
|
+
fn: c(() => [
|
|
59
|
+
u(r(g), {
|
|
60
|
+
icon: n.popConfirm.icon
|
|
61
|
+
}, null, 8, ["icon"])
|
|
62
|
+
]),
|
|
63
|
+
key: "0"
|
|
64
|
+
} : void 0
|
|
65
|
+
]), 1040, ["disabled"])) : (o(), f(p, { key: 1 }, [
|
|
66
|
+
n.icon ? (o(), i(r(g), {
|
|
67
|
+
key: 0,
|
|
68
|
+
icon: n.icon
|
|
69
|
+
}, null, 8, ["icon"])) : a("", !0),
|
|
70
|
+
l("span", x, y(n.text), 1)
|
|
71
|
+
], 64))
|
|
72
|
+
]),
|
|
73
|
+
_: 2
|
|
74
|
+
}, 1040, ["onClick", "disabled"]),
|
|
75
|
+
n.divider ? (o(), i(r($), {
|
|
76
|
+
key: `d-${n.event}`
|
|
77
|
+
})) : a("", !0)
|
|
78
|
+
], 64))), 128))
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["selectedKeys"])
|
|
82
|
+
]),
|
|
83
|
+
default: c(() => [
|
|
84
|
+
l("span", null, [
|
|
85
|
+
S(e.$slots, "default")
|
|
86
|
+
])
|
|
87
|
+
]),
|
|
88
|
+
_: 3
|
|
89
|
+
}, 16, ["trigger"]));
|
|
90
|
+
}
|
|
91
|
+
});
|
|
2
92
|
export {
|
|
3
|
-
|
|
93
|
+
O as default
|
|
4
94
|
};
|
|
@@ -5,7 +5,7 @@ export * from './interface';
|
|
|
5
5
|
export declare const Dropdown: {
|
|
6
6
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
7
7
|
trigger: {
|
|
8
|
-
type: PropType<("click" | "
|
|
8
|
+
type: PropType<("click" | "hover" | "contextmenu")[]>;
|
|
9
9
|
default: () => string[];
|
|
10
10
|
};
|
|
11
11
|
selectedKeys: {
|
|
@@ -25,7 +25,7 @@ export declare const Dropdown: {
|
|
|
25
25
|
menuEvent: (...args: any[]) => void;
|
|
26
26
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
27
27
|
trigger: {
|
|
28
|
-
type: PropType<("click" | "
|
|
28
|
+
type: PropType<("click" | "hover" | "contextmenu")[]>;
|
|
29
29
|
default: () => string[];
|
|
30
30
|
};
|
|
31
31
|
selectedKeys: {
|
|
@@ -42,7 +42,7 @@ export declare const Dropdown: {
|
|
|
42
42
|
}>> & {
|
|
43
43
|
onMenuEvent?: ((...args: any[]) => any) | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
trigger: ("click" | "
|
|
45
|
+
trigger: ("click" | "hover" | "contextmenu")[];
|
|
46
46
|
selectedKeys: string[];
|
|
47
47
|
dropMenuList: ( DropMenu & Recordable<any>)[];
|
|
48
48
|
}, true, {}, {}, {
|
|
@@ -54,7 +54,7 @@ export declare const Dropdown: {
|
|
|
54
54
|
Defaults: {};
|
|
55
55
|
}, Readonly< ExtractPropTypes<{
|
|
56
56
|
trigger: {
|
|
57
|
-
type: PropType<("click" | "
|
|
57
|
+
type: PropType<("click" | "hover" | "contextmenu")[]>;
|
|
58
58
|
default: () => string[];
|
|
59
59
|
};
|
|
60
60
|
selectedKeys: {
|
|
@@ -71,7 +71,7 @@ export declare const Dropdown: {
|
|
|
71
71
|
}>> & {
|
|
72
72
|
onMenuEvent?: ((...args: any[]) => any) | undefined;
|
|
73
73
|
}, {}, {}, {}, {}, {
|
|
74
|
-
trigger: ("click" | "
|
|
74
|
+
trigger: ("click" | "hover" | "contextmenu")[];
|
|
75
75
|
selectedKeys: string[];
|
|
76
76
|
dropMenuList: ( DropMenu & Recordable<any>)[];
|
|
77
77
|
}>;
|
|
@@ -80,7 +80,7 @@ export declare const Dropdown: {
|
|
|
80
80
|
__isSuspense?: undefined;
|
|
81
81
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
82
82
|
trigger: {
|
|
83
|
-
type: PropType<("click" | "
|
|
83
|
+
type: PropType<("click" | "hover" | "contextmenu")[]>;
|
|
84
84
|
default: () => string[];
|
|
85
85
|
};
|
|
86
86
|
selectedKeys: {
|
|
@@ -99,7 +99,7 @@ export declare const Dropdown: {
|
|
|
99
99
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
100
100
|
menuEvent: (...args: any[]) => void;
|
|
101
101
|
}, string, {
|
|
102
|
-
trigger: ("click" | "
|
|
102
|
+
trigger: ("click" | "hover" | "contextmenu")[];
|
|
103
103
|
selectedKeys: string[];
|
|
104
104
|
dropMenuList: ( DropMenu & Recordable<any>)[];
|
|
105
105
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import "./dropdown.vue.mjs";
|
|
3
|
+
import "./interface.mjs";
|
|
4
|
+
import r from "./dropdown.vue2.mjs";
|
|
5
|
+
const n = o(r);
|
|
4
6
|
export {
|
|
5
|
-
|
|
7
|
+
n as Dropdown
|
|
6
8
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createVNode as o } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { Modal as r, notification as i, message as s } from "ant-design-vue";
|
|
3
3
|
import { InfoCircleFilled as c, CheckCircleFilled as f, CloseCircleFilled as d } from "@ant-design/icons-vue";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
5
|
import { isType as m } from "@fruits-chain/utils";
|
package/es/src/icon/icon.vue.mjs
CHANGED
|
@@ -1,68 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import E from "./svg-icon.vue.mjs";
|
|
3
|
-
import { isType as w } from "@fruits-chain/utils";
|
|
4
|
-
import r from "@iconify/iconify";
|
|
5
|
-
import "./style/icon.css";
|
|
6
|
-
import "../config-provider/index.mjs";
|
|
7
|
-
import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
-
const y = "|svg", D = /* @__PURE__ */ S({
|
|
9
|
-
name: "ApIcon",
|
|
10
|
-
__name: "icon",
|
|
11
|
-
props: {
|
|
12
|
-
icon: {},
|
|
13
|
-
color: {},
|
|
14
|
-
size: { default: 16 },
|
|
15
|
-
spin: { type: Boolean, default: !1 },
|
|
16
|
-
prefix: { default: "" }
|
|
17
|
-
},
|
|
18
|
-
setup(g) {
|
|
19
|
-
const t = g, { b: s } = G("icon"), l = h(null), p = i(() => {
|
|
20
|
-
var e;
|
|
21
|
-
return (e = t.icon) == null ? void 0 : e.endsWith(y);
|
|
22
|
-
}), x = i(() => t.icon.replace(y, "")), z = i(
|
|
23
|
-
() => `${t.prefix ? t.prefix + ":" : ""}${t.icon}`
|
|
24
|
-
), f = async () => {
|
|
25
|
-
if (o(p))
|
|
26
|
-
return;
|
|
27
|
-
const e = o(l);
|
|
28
|
-
if (!e)
|
|
29
|
-
return;
|
|
30
|
-
await B();
|
|
31
|
-
const n = o(z);
|
|
32
|
-
if (!n)
|
|
33
|
-
return;
|
|
34
|
-
r.iconExists(n) || await r.loadIcon(n);
|
|
35
|
-
const m = r.renderSVG(n, {});
|
|
36
|
-
if (m)
|
|
37
|
-
e.textContent = "", e.appendChild(m);
|
|
38
|
-
else {
|
|
39
|
-
const c = document.createElement("span");
|
|
40
|
-
c.className = s("placeholer"), c.dataset.icon = n, e.textContent = "", e.appendChild(c);
|
|
41
|
-
}
|
|
42
|
-
}, I = i(() => {
|
|
43
|
-
const { size: e, color: n } = t;
|
|
44
|
-
let a = e;
|
|
45
|
-
return w("String")(e) && (a = parseInt(e, 10)), {
|
|
46
|
-
fontSize: `${a}px`,
|
|
47
|
-
color: n,
|
|
48
|
-
display: "inline-flex"
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
return k(() => t.icon, f, { flush: "post" }), v(f), (e, n) => p.value ? (u(), _(E, {
|
|
52
|
-
key: 0,
|
|
53
|
-
size: e.size,
|
|
54
|
-
name: x.value,
|
|
55
|
-
class: d([e.$attrs.class, o(s)("anticon")]),
|
|
56
|
-
spin: e.spin
|
|
57
|
-
}, null, 8, ["size", "name", "class", "spin"])) : (u(), C("span", {
|
|
58
|
-
key: 1,
|
|
59
|
-
ref_key: "elRef",
|
|
60
|
-
ref: l,
|
|
61
|
-
class: d([e.$attrs.class, o(s)(), o(s)("anticon"), e.spin && o(s)("spin")]),
|
|
62
|
-
style: $(I.value)
|
|
63
|
-
}, null, 6));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
1
|
+
import f from "./icon.vue2.mjs";
|
|
66
2
|
export {
|
|
67
|
-
|
|
3
|
+
f as default
|
|
68
4
|
};
|
|
@@ -1,4 +1,69 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as S, ref as h, computed as i, unref as o, nextTick as k, watch as v, onMounted as _, openBlock as u, createBlock as C, normalizeClass as d, createElementBlock as $, normalizeStyle as B } from "vue";
|
|
2
|
+
import "./svg-icon.vue.mjs";
|
|
3
|
+
import { isType as E } from "@fruits-chain/utils";
|
|
4
|
+
import r from "@iconify/iconify";
|
|
5
|
+
import "./style/icon.css";
|
|
6
|
+
import "../config-provider/index.mjs";
|
|
7
|
+
import { useNamespace as w } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import G from "./svg-icon.vue2.mjs";
|
|
9
|
+
const y = "|svg", F = /* @__PURE__ */ S({
|
|
10
|
+
name: "ApIcon",
|
|
11
|
+
__name: "icon",
|
|
12
|
+
props: {
|
|
13
|
+
icon: {},
|
|
14
|
+
color: {},
|
|
15
|
+
size: { default: 16 },
|
|
16
|
+
spin: { type: Boolean, default: !1 },
|
|
17
|
+
prefix: { default: "" }
|
|
18
|
+
},
|
|
19
|
+
setup(g) {
|
|
20
|
+
const t = g, { b: s } = w("icon"), l = h(null), p = i(() => {
|
|
21
|
+
var e;
|
|
22
|
+
return (e = t.icon) == null ? void 0 : e.endsWith(y);
|
|
23
|
+
}), x = i(() => t.icon.replace(y, "")), z = i(
|
|
24
|
+
() => `${t.prefix ? t.prefix + ":" : ""}${t.icon}`
|
|
25
|
+
), f = async () => {
|
|
26
|
+
if (o(p))
|
|
27
|
+
return;
|
|
28
|
+
const e = o(l);
|
|
29
|
+
if (!e)
|
|
30
|
+
return;
|
|
31
|
+
await k();
|
|
32
|
+
const n = o(z);
|
|
33
|
+
if (!n)
|
|
34
|
+
return;
|
|
35
|
+
r.iconExists(n) || await r.loadIcon(n);
|
|
36
|
+
const m = r.renderSVG(n, {});
|
|
37
|
+
if (m)
|
|
38
|
+
e.textContent = "", e.appendChild(m);
|
|
39
|
+
else {
|
|
40
|
+
const c = document.createElement("span");
|
|
41
|
+
c.className = s("placeholer"), c.dataset.icon = n, e.textContent = "", e.appendChild(c);
|
|
42
|
+
}
|
|
43
|
+
}, I = i(() => {
|
|
44
|
+
const { size: e, color: n } = t;
|
|
45
|
+
let a = e;
|
|
46
|
+
return E("String")(e) && (a = parseInt(e, 10)), {
|
|
47
|
+
fontSize: `${a}px`,
|
|
48
|
+
color: n,
|
|
49
|
+
display: "inline-flex"
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return v(() => t.icon, f, { flush: "post" }), _(f), (e, n) => p.value ? (u(), C(G, {
|
|
53
|
+
key: 0,
|
|
54
|
+
size: e.size,
|
|
55
|
+
name: x.value,
|
|
56
|
+
class: d([e.$attrs.class, o(s)("anticon")]),
|
|
57
|
+
spin: e.spin
|
|
58
|
+
}, null, 8, ["size", "name", "class", "spin"])) : (u(), $("span", {
|
|
59
|
+
key: 1,
|
|
60
|
+
ref_key: "elRef",
|
|
61
|
+
ref: l,
|
|
62
|
+
class: d([e.$attrs.class, o(s)(), o(s)("anticon"), e.spin && o(s)("spin")]),
|
|
63
|
+
style: B(I.value)
|
|
64
|
+
}, null, 6));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
2
67
|
export {
|
|
3
|
-
|
|
68
|
+
F as default
|
|
4
69
|
};
|