@aplus-frontend/ui 0.0.1-beta.7 → 0.0.1-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +163 -156
- package/es/src/ap-action/group/index.vue.mjs +22 -18
- package/es/src/ap-action/index.mjs +7 -4
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.mjs +2 -47
- package/es/src/ap-action/item/index.vue2.mjs +47 -2
- package/es/src/ap-action/item-dropdown/index.vue.mjs +14 -11
- package/es/src/ap-action/item-modal/index.vue.mjs +9 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +10 -8
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.mjs +9 -9
- package/es/src/ap-field/index.d.ts +12 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +3 -2
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.mjs +2 -2
- package/es/src/ap-field/number/index.vue.mjs +30 -32
- package/es/src/ap-field/radio/index.vue.mjs +40 -34
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +6 -6
- package/es/src/ap-field/text/index.vue.d.ts +5 -5
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
- package/es/src/ap-form/ap-form-item.vue.d.ts +3 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +80 -2
- package/es/src/ap-form/index.d.ts +31 -1682
- package/es/src/ap-form/index.mjs +12 -7
- package/es/src/ap-form/interface.d.ts +3 -1
- package/es/src/ap-form/items/index.d.ts +3 -0
- package/es/src/ap-form/items/index.mjs +1 -0
- package/es/src/ap-form/items/interface.d.ts +12 -0
- package/es/src/ap-form/items/text/index.vue.d.ts +69 -0
- package/es/src/ap-form/items/text/index.vue.mjs +102 -0
- package/es/src/ap-form/items/text/index.vue2.mjs +4 -0
- package/es/src/ap-form/style/ap-form-item.css +4 -0
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider-props.d.ts +4 -0
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +9 -0
- package/es/src/config-provider/config-provider.mjs +20 -16
- package/es/src/config-provider/hooks/use-global-config.d.ts +4 -0
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.d.ts +19 -0
- package/es/src/config-provider/index.mjs +26 -13
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/collapse/style/header.css +1 -1
- package/es/src/container/collapse/style/index.css +1 -1
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/cropper/style/avatar.css +1 -1
- package/es/src/cropper/style/modal.css +2 -2
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.mjs +163 -155
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.mjs +2 -195
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.mjs +10 -7
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/style/index.css +1 -1
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.mjs +39 -37
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/hooks/use-columns.mjs +5 -5
- package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.d.ts +1 -1
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.d.ts +3 -0
- package/es/src/pro-table/pro-table.vue.mjs +69 -70
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/theme/ap-form/ap-form-item.css +4 -0
- package/es/src/theme/collapse-container/header.css +1 -1
- package/es/src/theme/collapse-container/index.css +1 -1
- package/es/src/theme/cropper/avatar.css +1 -1
- package/es/src/theme/cropper/modal.css +2 -2
- package/es/src/theme/modal/index.css +1 -1
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/index.js +1 -1
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +12 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +3 -2
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +5 -5
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +3 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/index.d.ts +31 -1682
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -1
- package/lib/src/ap-form/items/index.d.ts +3 -0
- package/lib/src/ap-form/items/index.js +1 -0
- package/lib/src/ap-form/items/interface.d.ts +12 -0
- package/lib/src/ap-form/items/text/index.vue.d.ts +69 -0
- package/lib/src/ap-form/items/text/index.vue.js +1 -0
- package/lib/src/ap-form/items/text/index.vue2.js +1 -0
- package/lib/src/ap-form/style/ap-form-item.css +4 -0
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +4 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +9 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -0
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +19 -0
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/collapse/style/header.css +1 -1
- package/lib/src/container/collapse/style/index.css +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/cropper/style/avatar.css +1 -1
- package/lib/src/cropper/style/modal.css +2 -2
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/style/index.css +1 -1
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.d.ts +1 -1
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.d.ts +3 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/theme/ap-form/ap-form-item.css +4 -0
- package/lib/src/theme/collapse-container/header.css +1 -1
- package/lib/src/theme/collapse-container/index.css +1 -1
- package/lib/src/theme/cropper/avatar.css +1 -1
- package/lib/src/theme/cropper/modal.css +2 -2
- package/lib/src/theme/modal/index.css +1 -1
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/package.json +1 -1
package/es/src/ap-form/index.mjs
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import r from "./ap-form.mjs";
|
|
2
|
+
import "./ap-form-item.vue.mjs";
|
|
3
|
+
import "./ap-form-item-group/index.vue.mjs";
|
|
4
4
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
5
|
-
|
|
5
|
+
import "./items/index.mjs";
|
|
6
|
+
import t from "./ap-form-item.vue2.mjs";
|
|
7
|
+
import p from "./ap-form-item-group/index.vue2.mjs";
|
|
8
|
+
const i = o(r), n = o(t), s = o(p), m = i;
|
|
9
|
+
m.FormItem = n;
|
|
10
|
+
m.FormItemGroup = s;
|
|
6
11
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
m as ApForm,
|
|
13
|
+
n as ApFormItem,
|
|
14
|
+
s as ApFormItemGroup
|
|
10
15
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ColProps, FormItemProps, RowProps } from 'ant-design-vue';
|
|
2
2
|
|
|
3
3
|
export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
|
|
4
|
-
export type ApFormItemProps = FormItemProps & Partial<ApFormColProps
|
|
4
|
+
export type ApFormItemProps = FormItemProps & Partial<ApFormColProps> & {
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
};
|
|
5
7
|
export type ApFormItemGroupProps = RowProps & {
|
|
6
8
|
countPerRow?: number;
|
|
7
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./text/index.vue2.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApFieldTextProps } from 'src/ap-field';
|
|
2
|
+
import { ApFormItemProps } from '../interface';
|
|
3
|
+
|
|
4
|
+
export type ApFormItemTextProps = ApFormItemProps & Partial<Pick<ApFieldTextProps, 'onUpdate:value' | 'value'>> & {
|
|
5
|
+
field?: Omit<ApFieldTextProps, 'value' | 'onUpdate:value'>;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 是否展示包含了输入框&label的border
|
|
10
|
+
*/
|
|
11
|
+
bordered?: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ApFormItemTextProps } from '../interface';
|
|
2
|
+
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
import { ApFieldTextProps } from '../../../ap-field';
|
|
5
|
+
|
|
6
|
+
type ApFormItemTextSlots = {
|
|
7
|
+
addonAfter: any;
|
|
8
|
+
addonBefore: any;
|
|
9
|
+
prefix: any;
|
|
10
|
+
suffix: any;
|
|
11
|
+
clearIcon: any;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextProps>, {
|
|
14
|
+
hasFeedback: boolean;
|
|
15
|
+
colon: undefined;
|
|
16
|
+
autoLink: boolean;
|
|
17
|
+
required: undefined;
|
|
18
|
+
validateFirst: undefined;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
field: () => {};
|
|
21
|
+
bordered: boolean;
|
|
22
|
+
}>, {
|
|
23
|
+
focus: (options?: InputFocusOptions | undefined) => void;
|
|
24
|
+
blur: () => void;
|
|
25
|
+
input: any;
|
|
26
|
+
setSelectionRange: (start: number, end: number, direction?: "none" | "forward" | "backward" | undefined) => void;
|
|
27
|
+
select: () => void;
|
|
28
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextProps>, {
|
|
29
|
+
hasFeedback: boolean;
|
|
30
|
+
colon: undefined;
|
|
31
|
+
autoLink: boolean;
|
|
32
|
+
required: undefined;
|
|
33
|
+
validateFirst: undefined;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
field: () => {};
|
|
36
|
+
bordered: boolean;
|
|
37
|
+
}>>>, {
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
required: boolean;
|
|
40
|
+
bordered: boolean;
|
|
41
|
+
field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
|
|
42
|
+
colon: boolean;
|
|
43
|
+
hasFeedback: boolean;
|
|
44
|
+
autoLink: boolean;
|
|
45
|
+
validateFirst: boolean;
|
|
46
|
+
}, {}>, Readonly<ApFormItemTextSlots> & ApFormItemTextSlots>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type __VLS_WithDefaults<P, D> = {
|
|
58
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
59
|
+
default: D[K];
|
|
60
|
+
}> : P[K];
|
|
61
|
+
};
|
|
62
|
+
type __VLS_Prettify<T> = {
|
|
63
|
+
[K in keyof T]: T[K];
|
|
64
|
+
} & {};
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as m, ref as v, computed as b, openBlock as h, createBlock as g, normalizeProps as d, guardReactiveProps as n, unref as s, withCtx as p, createVNode as y, mergeProps as B, createSlots as x, renderList as S, renderSlot as R } from "vue";
|
|
2
|
+
import "../../ap-form-item.vue.mjs";
|
|
3
|
+
import { ApField as k } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as C } from "lodash-unified";
|
|
5
|
+
import F from "../../ap-form-item.vue2.mjs";
|
|
6
|
+
const q = /* @__PURE__ */ m({
|
|
7
|
+
name: "ApFormItemText",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
htmlFor: {},
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
label: {},
|
|
13
|
+
help: {},
|
|
14
|
+
extra: {},
|
|
15
|
+
labelCol: {},
|
|
16
|
+
wrapperCol: {},
|
|
17
|
+
hasFeedback: { type: Boolean, default: !1 },
|
|
18
|
+
colon: { type: Boolean, default: void 0 },
|
|
19
|
+
labelAlign: {},
|
|
20
|
+
prop: {},
|
|
21
|
+
name: {},
|
|
22
|
+
rules: {},
|
|
23
|
+
autoLink: { type: Boolean, default: !0 },
|
|
24
|
+
required: { type: Boolean, default: void 0 },
|
|
25
|
+
validateFirst: { type: Boolean, default: void 0 },
|
|
26
|
+
validateStatus: {},
|
|
27
|
+
validateTrigger: {},
|
|
28
|
+
messageVariables: {},
|
|
29
|
+
hidden: { type: Boolean },
|
|
30
|
+
noStyle: { type: Boolean },
|
|
31
|
+
tooltip: {},
|
|
32
|
+
span: {},
|
|
33
|
+
order: {},
|
|
34
|
+
offset: {},
|
|
35
|
+
push: {},
|
|
36
|
+
pull: {},
|
|
37
|
+
xs: {},
|
|
38
|
+
sm: {},
|
|
39
|
+
md: {},
|
|
40
|
+
lg: {},
|
|
41
|
+
xl: {},
|
|
42
|
+
xxl: {},
|
|
43
|
+
flex: {},
|
|
44
|
+
bordered: { type: Boolean, default: !1 },
|
|
45
|
+
"onUpdate:value": {},
|
|
46
|
+
value: {},
|
|
47
|
+
field: { default: () => ({}) },
|
|
48
|
+
placeholder: {},
|
|
49
|
+
disabled: { type: Boolean, default: !1 }
|
|
50
|
+
},
|
|
51
|
+
setup(u, { expose: i }) {
|
|
52
|
+
const { Text: f } = k, t = u;
|
|
53
|
+
console.log("props", t);
|
|
54
|
+
const l = v();
|
|
55
|
+
return i({
|
|
56
|
+
focus: (e) => {
|
|
57
|
+
var o;
|
|
58
|
+
(o = l.value) == null || o.focus(e);
|
|
59
|
+
},
|
|
60
|
+
blur: () => {
|
|
61
|
+
var e;
|
|
62
|
+
(e = l.value) == null || e.blur();
|
|
63
|
+
},
|
|
64
|
+
setSelectionRange: (e, o, r) => {
|
|
65
|
+
var a;
|
|
66
|
+
(a = l.value) == null || a.setSelectionRange(e, o, r);
|
|
67
|
+
},
|
|
68
|
+
select: () => {
|
|
69
|
+
var e;
|
|
70
|
+
(e = l.value) == null || e.select();
|
|
71
|
+
},
|
|
72
|
+
input: b(() => {
|
|
73
|
+
var e;
|
|
74
|
+
return (e = l.value) == null ? void 0 : e.input;
|
|
75
|
+
})
|
|
76
|
+
}), (e, o) => (h(), g(F, d(n(s(C)(t, ["field", "disabled", "placeholder"]))), {
|
|
77
|
+
default: p(() => [
|
|
78
|
+
y(s(f), B({
|
|
79
|
+
ref_key: "inputRef",
|
|
80
|
+
ref: l
|
|
81
|
+
}, e.field, {
|
|
82
|
+
disabled: e.disabled,
|
|
83
|
+
placeholder: e.placeholder,
|
|
84
|
+
bordered: e.bordered ? !1 : e.field.bordered,
|
|
85
|
+
value: t.value,
|
|
86
|
+
"onUpdate:value": t["onUpdate:value"]
|
|
87
|
+
}), x({ _: 2 }, [
|
|
88
|
+
S(e.$slots, (r, a) => ({
|
|
89
|
+
name: a,
|
|
90
|
+
fn: p((c) => [
|
|
91
|
+
R(e.$slots, a, d(n(c || {})))
|
|
92
|
+
])
|
|
93
|
+
}))
|
|
94
|
+
]), 1040, ["disabled", "placeholder", "bordered", "value", "onUpdate:value"])
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 16));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
q as default
|
|
102
|
+
};
|
|
@@ -1,60 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Button as p } from "ant-design-vue";
|
|
3
|
-
import u from "../icon/icon.vue.mjs";
|
|
4
|
-
import { useAttrs as g } from "@aplus-frontend/hooks";
|
|
5
|
-
import { omit as y } from "lodash-unified";
|
|
6
|
-
const P = /* @__PURE__ */ B({
|
|
7
|
-
name: "ApButton",
|
|
8
|
-
extends: p,
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "button",
|
|
11
|
-
props: {
|
|
12
|
-
color: {},
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
preIcon: {},
|
|
15
|
-
postIcon: {},
|
|
16
|
-
iconSize: { default: 14 },
|
|
17
|
-
onClick: {},
|
|
18
|
-
text: {},
|
|
19
|
-
loading: { type: Boolean }
|
|
20
|
-
},
|
|
21
|
-
setup(m) {
|
|
22
|
-
const t = m, d = g({ excludeDefaultKeys: !1 }), f = r(() => {
|
|
23
|
-
const { color: o, disabled: s } = t;
|
|
24
|
-
return [
|
|
25
|
-
{
|
|
26
|
-
[`ant-btn-${o}`]: !!o,
|
|
27
|
-
"is-disabled": s
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
}), z = r(() => ({
|
|
31
|
-
...i(d),
|
|
32
|
-
...y(t, ["color", "preIcon", "postIcon", "iconSize"])
|
|
33
|
-
}));
|
|
34
|
-
return (o, s) => (e(), n(i(p), C(z.value, {
|
|
35
|
-
class: f.value,
|
|
36
|
-
onClick: o.onClick
|
|
37
|
-
}), {
|
|
38
|
-
icon: l(() => [
|
|
39
|
-
c(o.$slots, "icon")
|
|
40
|
-
]),
|
|
41
|
-
default: l((k) => [
|
|
42
|
-
o.preIcon ? (e(), n(u, {
|
|
43
|
-
key: 0,
|
|
44
|
-
icon: o.preIcon,
|
|
45
|
-
size: o.iconSize
|
|
46
|
-
}, null, 8, ["icon", "size"])) : a("", !0),
|
|
47
|
-
c(o.$slots, "default", I(b(k || {}))),
|
|
48
|
-
o.postIcon ? (e(), n(u, {
|
|
49
|
-
key: 1,
|
|
50
|
-
icon: o.postIcon,
|
|
51
|
-
size: o.iconSize
|
|
52
|
-
}, null, 8, ["icon", "size"])) : a("", !0)
|
|
53
|
-
]),
|
|
54
|
-
_: 3
|
|
55
|
-
}, 16, ["class", "onClick"]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
1
|
+
import f from "./button.vue2.mjs";
|
|
58
2
|
export {
|
|
59
|
-
|
|
3
|
+
f as default
|
|
60
4
|
};
|
|
@@ -1,4 +1,61 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as B, computed as r, unref as i, openBlock as e, createBlock as n, mergeProps as C, withCtx as l, renderSlot as c, createCommentVNode as a, normalizeProps as I, guardReactiveProps as b } from "vue";
|
|
2
|
+
import { Button as p } from "ant-design-vue";
|
|
3
|
+
import "../icon/icon.vue.mjs";
|
|
4
|
+
import { useAttrs as g } from "@aplus-frontend/hooks";
|
|
5
|
+
import { omit as y } from "lodash-unified";
|
|
6
|
+
import u from "../icon/icon.vue2.mjs";
|
|
7
|
+
const V = /* @__PURE__ */ B({
|
|
8
|
+
name: "ApButton",
|
|
9
|
+
extends: p,
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "button",
|
|
12
|
+
props: {
|
|
13
|
+
color: {},
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
preIcon: {},
|
|
16
|
+
postIcon: {},
|
|
17
|
+
iconSize: { default: 14 },
|
|
18
|
+
onClick: {},
|
|
19
|
+
text: {},
|
|
20
|
+
loading: { type: Boolean }
|
|
21
|
+
},
|
|
22
|
+
setup(m) {
|
|
23
|
+
const t = m, d = g({ excludeDefaultKeys: !1 }), f = r(() => {
|
|
24
|
+
const { color: o, disabled: s } = t;
|
|
25
|
+
return [
|
|
26
|
+
{
|
|
27
|
+
[`ant-btn-${o}`]: !!o,
|
|
28
|
+
"is-disabled": s
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
}), z = r(() => ({
|
|
32
|
+
...i(d),
|
|
33
|
+
...y(t, ["color", "preIcon", "postIcon", "iconSize"])
|
|
34
|
+
}));
|
|
35
|
+
return (o, s) => (e(), n(i(p), C(z.value, {
|
|
36
|
+
class: f.value,
|
|
37
|
+
onClick: o.onClick
|
|
38
|
+
}), {
|
|
39
|
+
icon: l(() => [
|
|
40
|
+
c(o.$slots, "icon")
|
|
41
|
+
]),
|
|
42
|
+
default: l((k) => [
|
|
43
|
+
o.preIcon ? (e(), n(u, {
|
|
44
|
+
key: 0,
|
|
45
|
+
icon: o.preIcon,
|
|
46
|
+
size: o.iconSize
|
|
47
|
+
}, null, 8, ["icon", "size"])) : a("", !0),
|
|
48
|
+
c(o.$slots, "default", I(b(k || {}))),
|
|
49
|
+
o.postIcon ? (e(), n(u, {
|
|
50
|
+
key: 1,
|
|
51
|
+
icon: o.postIcon,
|
|
52
|
+
size: o.iconSize
|
|
53
|
+
}, null, 8, ["icon", "size"])) : a("", !0)
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 16, ["class", "onClick"]));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
2
59
|
export {
|
|
3
|
-
|
|
60
|
+
V as default
|
|
4
61
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { withInstall as t } from "@aplus-frontend/utils";
|
|
2
|
+
import "./button.vue.mjs";
|
|
3
|
+
import "./interface.mjs";
|
|
4
|
+
import "./modal-button.vue2.mjs";
|
|
5
|
+
import "./pop-confirm-button.vue2.mjs";
|
|
6
|
+
import o from "./button.vue2.mjs";
|
|
7
|
+
const a = t(o);
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
e as ModalButton,
|
|
9
|
-
s as PopConfirmButton
|
|
9
|
+
a as BaseButton
|
|
10
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { defineComponent as d, computed as p, unref as n, h as i } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { extendSlots as
|
|
2
|
+
import "./button.vue.mjs";
|
|
3
|
+
import { extendSlots as C } from "../utils/slot.mjs";
|
|
4
4
|
import { omit as c } from "lodash-unified";
|
|
5
|
-
import { useAttrs as
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import { useMessage as
|
|
8
|
-
import { modalButtonProps as
|
|
9
|
-
|
|
5
|
+
import { useAttrs as g } from "@aplus-frontend/hooks";
|
|
6
|
+
import { useLocale as k } from "../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useMessage as b } from "../hooks/useMessage.mjs";
|
|
8
|
+
import { modalButtonProps as x } from "./constants.mjs";
|
|
9
|
+
import T from "./button.vue2.mjs";
|
|
10
|
+
const { createConfirm: B } = b(), L = d({
|
|
10
11
|
name: "ApModalButton",
|
|
11
12
|
inheritAttrs: !1,
|
|
12
|
-
props:
|
|
13
|
+
props: x,
|
|
13
14
|
setup(o, { slots: s }) {
|
|
14
|
-
const { t: e } =
|
|
15
|
+
const { t: e } = k(), l = g(), r = p(() => Object.assign(
|
|
15
16
|
{
|
|
16
17
|
okText: e("ap.common.okText"),
|
|
17
18
|
cancelText: e("ap.common.cancelText")
|
|
@@ -26,7 +27,7 @@ const { createConfirm: B } = x(), j = d({
|
|
|
26
27
|
"modalConfig"
|
|
27
28
|
), t = c(n(r), "title");
|
|
28
29
|
t.disabled && (t.color = "");
|
|
29
|
-
const a = i(
|
|
30
|
+
const a = i(T, t, C(s));
|
|
30
31
|
return o.enable ? i(a, {
|
|
31
32
|
...f,
|
|
32
33
|
onClick: () => {
|
|
@@ -49,5 +50,5 @@ const { createConfirm: B } = x(), j = d({
|
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
L as default
|
|
53
54
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { defineComponent as a, computed as u, unref as o, h as i } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { Popconfirm as
|
|
4
|
-
import { extendSlots as
|
|
2
|
+
import "./button.vue.mjs";
|
|
3
|
+
import { Popconfirm as l } from "ant-design-vue";
|
|
4
|
+
import { extendSlots as d } from "../utils/slot.mjs";
|
|
5
5
|
import { omit as s } from "lodash-unified";
|
|
6
|
-
import { useAttrs as
|
|
6
|
+
import { useAttrs as x } from "@aplus-frontend/hooks";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
|
-
import { popConfirmButton as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
|
|
8
|
+
import { popConfirmButton as b } from "./constants.mjs";
|
|
9
|
+
import { useLocale as B } from "../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import T from "./button.vue2.mjs";
|
|
11
|
+
const O = a({
|
|
11
12
|
name: "ApPopConfirmButton",
|
|
12
13
|
inheritAttrs: !1,
|
|
13
|
-
props:
|
|
14
|
+
props: b,
|
|
14
15
|
setup(n, { slots: c }) {
|
|
15
|
-
const { t: r } =
|
|
16
|
+
const { t: r } = B(), p = x(), e = u(() => Object.assign(
|
|
16
17
|
{
|
|
17
18
|
okText: r("ap.common.okText"),
|
|
18
19
|
cancelText: r("ap.common.cancelText")
|
|
19
20
|
},
|
|
20
|
-
{ ...n, ...o(
|
|
21
|
+
{ ...n, ...o(p) }
|
|
21
22
|
));
|
|
22
23
|
return () => {
|
|
23
|
-
const
|
|
24
|
+
const f = s(o(e), "icon", "color"), t = s(o(e), "title");
|
|
24
25
|
t.disabled && (t.color = "");
|
|
25
|
-
const m = i(
|
|
26
|
-
return n.enable ? i(
|
|
26
|
+
const m = i(T, t, d(c));
|
|
27
|
+
return n.enable ? i(l, f, { default: () => m }) : m;
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
O as default
|
|
32
33
|
};
|
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Icon as w } from "../icon/index.mjs";
|
|
3
|
-
import "../config-provider/index.mjs";
|
|
4
|
-
import "./style/arrow.css";
|
|
5
|
-
import { useNamespace as _ } from "../config-provider/hooks/use-namespace.mjs";
|
|
6
|
-
const k = /* @__PURE__ */ l({
|
|
7
|
-
name: "ApBasicArrow",
|
|
8
|
-
__name: "arrow",
|
|
9
|
-
props: {
|
|
10
|
-
expand: { type: Boolean },
|
|
11
|
-
up: { type: Boolean },
|
|
12
|
-
down: { type: Boolean },
|
|
13
|
-
inset: { type: Boolean }
|
|
14
|
-
},
|
|
15
|
-
setup(n) {
|
|
16
|
-
const t = n, { b: r, m: a } = _("basic-arrow"), s = m(() => {
|
|
17
|
-
const { expand: e, up: o, down: p, inset: c } = t;
|
|
18
|
-
return [
|
|
19
|
-
r(),
|
|
20
|
-
{
|
|
21
|
-
[`${a("active")}`]: e,
|
|
22
|
-
up: o,
|
|
23
|
-
inset: c,
|
|
24
|
-
down: p
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
});
|
|
28
|
-
return (e, o) => (i(), u("span", {
|
|
29
|
-
class: d(s.value)
|
|
30
|
-
}, [
|
|
31
|
-
f(y(w), {
|
|
32
|
-
icon: "ion:chevron-forward",
|
|
33
|
-
style: B(e.$attrs.iconStyle)
|
|
34
|
-
}, null, 8, ["style"])
|
|
35
|
-
], 2));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
1
|
+
import f from "./arrow.vue2.mjs";
|
|
38
2
|
export {
|
|
39
|
-
|
|
3
|
+
f as default
|
|
40
4
|
};
|
|
@@ -1,4 +1,40 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as l, computed as m, openBlock as i, createElementBlock as u, normalizeClass as d, createVNode as f, unref as y, normalizeStyle as B } from "vue";
|
|
2
|
+
import { Icon as w } from "../icon/index.mjs";
|
|
3
|
+
import "../config-provider/index.mjs";
|
|
4
|
+
import "./style/arrow.css";
|
|
5
|
+
import { useNamespace as _ } from "../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const k = /* @__PURE__ */ l({
|
|
7
|
+
name: "ApBasicArrow",
|
|
8
|
+
__name: "arrow",
|
|
9
|
+
props: {
|
|
10
|
+
expand: { type: Boolean },
|
|
11
|
+
up: { type: Boolean },
|
|
12
|
+
down: { type: Boolean },
|
|
13
|
+
inset: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(n) {
|
|
16
|
+
const t = n, { b: r, m: a } = _("basic-arrow"), s = m(() => {
|
|
17
|
+
const { expand: e, up: o, down: p, inset: c } = t;
|
|
18
|
+
return [
|
|
19
|
+
r(),
|
|
20
|
+
{
|
|
21
|
+
[`${a("active")}`]: e,
|
|
22
|
+
up: o,
|
|
23
|
+
inset: c,
|
|
24
|
+
down: p
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
});
|
|
28
|
+
return (e, o) => (i(), u("span", {
|
|
29
|
+
class: d(s.value)
|
|
30
|
+
}, [
|
|
31
|
+
f(y(w), {
|
|
32
|
+
icon: "ion:chevron-forward",
|
|
33
|
+
style: B(e.$attrs.iconStyle)
|
|
34
|
+
}, null, 8, ["style"])
|
|
35
|
+
], 2));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
2
38
|
export {
|
|
3
|
-
|
|
39
|
+
k as default
|
|
4
40
|
};
|
|
@@ -1,98 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Tooltip as a } from "ant-design-vue";
|
|
3
|
-
import { InfoCircleOutlined as y } from "@ant-design/icons-vue";
|
|
4
|
-
import { getPopupContainer as S } from "../utils/index.mjs";
|
|
5
|
-
import { isType as g, isArray as x } from "@fruits-chain/utils";
|
|
6
|
-
import { getSlot as h } from "../utils/slot.mjs";
|
|
7
|
-
import "../config-provider/index.mjs";
|
|
8
|
-
import "./style/help.css";
|
|
9
|
-
import { useNamespace as v } from "../config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
const w = {
|
|
11
|
-
/**
|
|
12
|
-
* Help text max-width
|
|
13
|
-
* @default: 600px
|
|
14
|
-
*/
|
|
15
|
-
maxWidth: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "600px"
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* Whether to display the serial number
|
|
21
|
-
* @default: false
|
|
22
|
-
*/
|
|
23
|
-
showIndex: {
|
|
24
|
-
type: Boolean
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* Help text font color
|
|
28
|
-
* @default: #ffffff
|
|
29
|
-
*/
|
|
30
|
-
color: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "#ffffff"
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* Help text font size
|
|
36
|
-
* @default: 14px
|
|
37
|
-
*/
|
|
38
|
-
fontSize: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: "14px"
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* Help text list
|
|
44
|
-
*/
|
|
45
|
-
placement: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: "right"
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Help text list
|
|
51
|
-
*/
|
|
52
|
-
text: {
|
|
53
|
-
type: [Array, String, Object]
|
|
54
|
-
}
|
|
55
|
-
}, j = /* @__PURE__ */ d({
|
|
56
|
-
name: "ApBasicHelp",
|
|
57
|
-
components: {
|
|
58
|
-
Tooltip: a
|
|
59
|
-
},
|
|
60
|
-
props: w,
|
|
61
|
-
setup(t, {
|
|
62
|
-
slots: p
|
|
63
|
-
}) {
|
|
64
|
-
const {
|
|
65
|
-
b: f,
|
|
66
|
-
be: r
|
|
67
|
-
} = v("basic-help"), m = i(() => ({
|
|
68
|
-
color: t.color,
|
|
69
|
-
fontSize: t.fontSize
|
|
70
|
-
})), c = i(() => ({
|
|
71
|
-
maxWidth: t.maxWidth
|
|
72
|
-
}));
|
|
73
|
-
function u() {
|
|
74
|
-
const e = t.text;
|
|
75
|
-
return g("String")(e) ? e : x(e) ? e.map((n, s) => o("p", {
|
|
76
|
-
key: n,
|
|
77
|
-
class: r("content", "row")
|
|
78
|
-
}, [t.showIndex ? `${s + 1}. ` : "", n])) : e;
|
|
79
|
-
}
|
|
80
|
-
return () => o(a, {
|
|
81
|
-
overlayClassName: `${r("wrap")}`,
|
|
82
|
-
title: o("div", {
|
|
83
|
-
style: l(m)
|
|
84
|
-
}, [u()]),
|
|
85
|
-
autoAdjustOverflow: !0,
|
|
86
|
-
overlayStyle: l(c),
|
|
87
|
-
placement: t.placement,
|
|
88
|
-
getPopupContainer: () => S()
|
|
89
|
-
}, {
|
|
90
|
-
default: () => [o("span", {
|
|
91
|
-
class: f()
|
|
92
|
-
}, [h(p) || o(y, null, null)])]
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
1
|
+
import f from "./help.vue2.mjs";
|
|
96
2
|
export {
|
|
97
|
-
|
|
3
|
+
f as default
|
|
98
4
|
};
|