@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.aplus-action-item {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 22px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
.aplus-action-item--primary {
|
|
8
|
+
color: #0070ff;
|
|
9
|
+
}
|
|
10
|
+
.aplus-action-item--success {
|
|
11
|
+
color: #2ed1a3;
|
|
12
|
+
}
|
|
13
|
+
.aplus-action-item--error {
|
|
14
|
+
color: #FF4D4F;
|
|
15
|
+
}
|
|
16
|
+
.aplus-action-item--warn {
|
|
17
|
+
color: #FFA940;
|
|
18
|
+
}
|
|
19
|
+
.aplus-action-item--loading {
|
|
20
|
+
opacity: 0.35;
|
|
21
|
+
transition: opacity 0.2s;
|
|
22
|
+
}
|
|
23
|
+
.aplus-action-item--loading .btn-loading-icon {
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
.aplus-action-item--disabled {
|
|
27
|
+
color: #ABB7CC;
|
|
28
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isFunction as
|
|
3
|
-
import { CheckboxGroup as
|
|
4
|
-
import "../../hooks/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const D = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as g, ref as m, onMounted as h, openBlock as o, createElementBlock as a, Fragment as l, unref as e, createTextVNode as d, toDisplayString as f, createBlock as c, mergeProps as C } from "vue";
|
|
2
|
+
import { isFunction as V, isNil as b } from "lodash-unified";
|
|
3
|
+
import { Spin as _, CheckboxGroup as B } from "ant-design-vue";
|
|
4
|
+
import "../../hooks/index.mjs";
|
|
5
|
+
import { getOptionValue as T, getOptionLabel as q } from "./helper.mjs";
|
|
6
|
+
import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const D = /* @__PURE__ */ g({
|
|
8
8
|
name: "ApFieldCheckbox",
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "index",
|
|
@@ -23,31 +23,38 @@ const D = /* @__PURE__ */ x({
|
|
|
23
23
|
request: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:value"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
setup(v, { emit: y }) {
|
|
27
|
+
const k = y, t = v, n = m(t.options), i = m(!1);
|
|
28
|
+
h(() => {
|
|
29
|
+
V(t.request) && (i.value = !0, t.request().then((r) => n.value = r).finally(() => {
|
|
30
|
+
i.value = !1;
|
|
31
|
+
}));
|
|
30
32
|
});
|
|
31
|
-
const { value:
|
|
33
|
+
const { value: u, updateValue: x } = F(
|
|
32
34
|
t,
|
|
33
|
-
|
|
35
|
+
k,
|
|
34
36
|
{
|
|
35
37
|
defaultValue: []
|
|
36
38
|
}
|
|
37
39
|
);
|
|
38
|
-
return (
|
|
39
|
-
var
|
|
40
|
-
return
|
|
41
|
-
e(
|
|
42
|
-
|
|
43
|
-
], 64)) : (o(),
|
|
44
|
-
|
|
40
|
+
return (r, O) => {
|
|
41
|
+
var s;
|
|
42
|
+
return r.mode === "read" ? (o(), a(l, { key: 0 }, [
|
|
43
|
+
e(b)(e(u)) ? (o(), a(l, { key: 0 }, [
|
|
44
|
+
d(f(t.emptyText), 1)
|
|
45
|
+
], 64)) : (o(), a(l, { key: 1 }, [
|
|
46
|
+
d(f(((s = n.value) == null ? void 0 : s.filter((p) => e(u).indexOf(e(T)(p)) > -1).map((p) => e(q)(p)).join("、")) || t.emptyText), 1)
|
|
45
47
|
], 64))
|
|
46
|
-
], 64)) : (o(),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
], 64)) : (o(), a(l, { key: 1 }, [
|
|
49
|
+
i.value ? (o(), c(e(_), {
|
|
50
|
+
key: 0,
|
|
51
|
+
size: "small"
|
|
52
|
+
})) : (o(), c(e(B), C({ key: 1 }, t, {
|
|
53
|
+
options: n.value,
|
|
54
|
+
value: e(u),
|
|
55
|
+
"onUpdate:value": e(x)
|
|
56
|
+
}), null, 16, ["options", "value", "onUpdate:value"]))
|
|
57
|
+
], 64));
|
|
51
58
|
};
|
|
52
59
|
}
|
|
53
60
|
});
|
|
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
30
|
}, {
|
|
31
31
|
mode: FieldMode;
|
|
32
32
|
format: string;
|
|
33
|
-
fieldProps: Omit< DatePickerProps, "
|
|
33
|
+
fieldProps: Omit< DatePickerProps, "mode" | "onOk" | "onChange" | "value" | "defaultValue" | "format">;
|
|
34
34
|
}, {}>, Readonly<ApFieldDataSlots> & ApFieldDataSlots>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,13 +2,12 @@ import { defineComponent as C, computed as s, unref as o, openBlock as p, create
|
|
|
2
2
|
import i from "dayjs";
|
|
3
3
|
import { DatePicker as U } from "ant-design-vue";
|
|
4
4
|
import { ApFieldDatePresetFormats as $, PRESET_FORMAT_MAP as b, PRESET_FORMAT_PICK_MAP as w, PRESET_FORMAT_TIME_MAP as z } from "./constant.mjs";
|
|
5
|
-
import "../../hooks/
|
|
6
|
-
import { useControllableValue as K } from "../../hooks/useControllableValue.mjs";
|
|
5
|
+
import "../../hooks/index.mjs";
|
|
7
6
|
import { isNil as P } from "lodash-unified";
|
|
8
7
|
import { formatDay as d } from "./helper.mjs";
|
|
8
|
+
import { useControllableValue as K } from "../../hooks/useControllableValue.mjs";
|
|
9
9
|
const X = /* @__PURE__ */ C({
|
|
10
10
|
name: "ApFieldDate",
|
|
11
|
-
inheritAttrs: !1,
|
|
12
11
|
__name: "index",
|
|
13
12
|
props: {
|
|
14
13
|
mode: { default: "edit" },
|
|
@@ -26,45 +25,45 @@ const X = /* @__PURE__ */ C({
|
|
|
26
25
|
() => $.indexOf(e.format) > -1
|
|
27
26
|
), l = s(
|
|
28
27
|
() => n.value ? b[e.format] : e.format
|
|
29
|
-
), O = s(() => P(o(u)) ? void 0 : i(o(u))), g = s(() => o(n) ? e.fieldProps.picker ?? w[e.format] : e.fieldProps.picker),
|
|
28
|
+
), O = s(() => P(o(u)) ? void 0 : i(o(u))), g = s(() => o(n) ? e.fieldProps.picker ?? w[e.format] : e.fieldProps.picker), y = s(() => {
|
|
30
29
|
const t = o(n) ? z[e.format] : {};
|
|
31
30
|
return {
|
|
32
31
|
...e.fieldProps,
|
|
33
32
|
...t
|
|
34
33
|
};
|
|
35
34
|
});
|
|
36
|
-
function
|
|
35
|
+
function T(t) {
|
|
37
36
|
if (P(t)) {
|
|
38
37
|
c(null);
|
|
39
38
|
return;
|
|
40
39
|
}
|
|
41
|
-
const
|
|
42
|
-
o(n) ? c(d(
|
|
40
|
+
const a = i(t);
|
|
41
|
+
o(n) ? c(d(a, o(l))) : c(a.valueOf());
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function h(t, a) {
|
|
45
44
|
var f;
|
|
46
|
-
const m = i(t),
|
|
47
|
-
(f = e.onChange) == null || f.call(e,
|
|
45
|
+
const m = i(t), r = o(n) ? d(m, o(l)) : t ? m.valueOf() : null;
|
|
46
|
+
(f = e.onChange) == null || f.call(e, r, a);
|
|
48
47
|
}
|
|
49
48
|
function A(t) {
|
|
50
|
-
var
|
|
51
|
-
const
|
|
52
|
-
(
|
|
49
|
+
var r;
|
|
50
|
+
const a = i(t), m = o(n) ? d(a, o(l)) : t ? a.valueOf() : null;
|
|
51
|
+
(r = e.onOk) == null || r.call(e, m);
|
|
53
52
|
}
|
|
54
|
-
return (t,
|
|
53
|
+
return (t, a) => t.mode === "read" ? (p(), E(F, { key: 0 }, [
|
|
55
54
|
R(M(o(u) ? o(i)(o(u)).format(l.value) : t.emptyText), 1)
|
|
56
|
-
], 64)) : (p(), D(o(U), S({ key: 1 },
|
|
55
|
+
], 64)) : (p(), D(o(U), S({ key: 1 }, y.value, {
|
|
57
56
|
value: O.value,
|
|
58
57
|
format: l.value,
|
|
59
|
-
"onUpdate:value":
|
|
60
|
-
onChange:
|
|
58
|
+
"onUpdate:value": T,
|
|
59
|
+
onChange: h,
|
|
61
60
|
onOk: A,
|
|
62
61
|
picker: g.value
|
|
63
62
|
}), V({ _: 2 }, [
|
|
64
|
-
x(t.$slots, (m,
|
|
65
|
-
name:
|
|
63
|
+
x(t.$slots, (m, r) => ({
|
|
64
|
+
name: r,
|
|
66
65
|
fn: j((f) => [
|
|
67
|
-
B(t.$slots,
|
|
66
|
+
B(t.$slots, r, I(N(f || {})))
|
|
68
67
|
])
|
|
69
68
|
}))
|
|
70
69
|
]), 1040, ["value", "format", "picker"]));
|
|
@@ -32,7 +32,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
32
32
|
mode: FieldMode;
|
|
33
33
|
format: string;
|
|
34
34
|
emptyText: string;
|
|
35
|
-
fieldProps: Omit< RangePickerProps, "
|
|
35
|
+
fieldProps: Omit< RangePickerProps, "onOk" | "onChange" | "value" | "defaultValue" | "renderExtraFooter" | "onPanelChange">;
|
|
36
36
|
}, {}>, Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots>;
|
|
37
37
|
export default _default;
|
|
38
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as V, computed as m, unref as t, openBlock as p, createElementBlock as k, Fragment as _, createTextVNode as T, toDisplayString as O, createVNode as C, createBlock as x, mergeProps as B, createSlots as N, renderList as w, withCtx as I, renderSlot as U, normalizeProps as $, guardReactiveProps as b } from "vue";
|
|
2
2
|
import { ApFieldDatePresetFormats as j, PRESET_FORMAT_MAP as z, PRESET_FORMAT_PICK_MAP as K, PRESET_FORMAT_TIME_MAP as L } from "../date/constant.mjs";
|
|
3
|
-
import "../../hooks/
|
|
4
|
-
import {
|
|
5
|
-
import { isNil as q, isString as c } from "lodash-unified";
|
|
3
|
+
import "../../hooks/index.mjs";
|
|
4
|
+
import { isNil as Y, isString as c } from "lodash-unified";
|
|
6
5
|
import u from "dayjs";
|
|
7
|
-
import { DatePicker as
|
|
6
|
+
import { DatePicker as q } from "ant-design-vue";
|
|
8
7
|
import { formatDay as d, formatValue as R } from "../date/helper.mjs";
|
|
9
|
-
import { SwapRightOutlined as
|
|
8
|
+
import { SwapRightOutlined as G } from "@ant-design/icons-vue";
|
|
9
|
+
import { useControllableValue as H } from "../../hooks/useControllableValue.mjs";
|
|
10
10
|
const ae = /* @__PURE__ */ V({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -25,12 +25,12 @@ const ae = /* @__PURE__ */ V({
|
|
|
25
25
|
() => j.indexOf(o.format) > -1
|
|
26
26
|
), n = m(
|
|
27
27
|
() => l.value ? z[o.format] : o.format
|
|
28
|
-
), { value: P, updateValue: v } =
|
|
28
|
+
), { value: P, updateValue: v } = H(
|
|
29
29
|
o,
|
|
30
30
|
E
|
|
31
31
|
), s = m(() => {
|
|
32
32
|
var e, r;
|
|
33
|
-
if (!
|
|
33
|
+
if (!Y(t(P)))
|
|
34
34
|
return [
|
|
35
35
|
u((e = t(P)) == null ? void 0 : e[0]),
|
|
36
36
|
u((r = t(P)) == null ? void 0 : r[1])
|
|
@@ -60,12 +60,12 @@ const ae = /* @__PURE__ */ V({
|
|
|
60
60
|
return e.mode === "read" ? (p(), k(_, { key: 0 }, [
|
|
61
61
|
s.value ? (p(), k(_, { key: 0 }, [
|
|
62
62
|
T(O((a = s.value[0]) == null ? void 0 : a.format(n.value)) + " ", 1),
|
|
63
|
-
C(t(
|
|
63
|
+
C(t(G)),
|
|
64
64
|
T(" " + O((f = s.value[1]) == null ? void 0 : f.format(n.value)), 1)
|
|
65
65
|
], 64)) : (p(), k(_, { key: 1 }, [
|
|
66
66
|
T(O(e.emptyText), 1)
|
|
67
67
|
], 64))
|
|
68
|
-
], 64)) : (p(), x(t(
|
|
68
|
+
], 64)) : (p(), x(t(q).RangePicker, B({ key: 1 }, A.value, {
|
|
69
69
|
value: s.value,
|
|
70
70
|
"onUpdate:value": F,
|
|
71
71
|
picker: S.value,
|
|
@@ -8,5 +8,17 @@ import { default as ApFieldTextArea } from './text-area/index.vue';
|
|
|
8
8
|
import { default as ApFieldDateRange } from './date-range/index.vue';
|
|
9
9
|
import { default as ApFieldSelect } from './select/index.vue';
|
|
10
10
|
|
|
11
|
+
export type FieldType = {
|
|
12
|
+
Text: typeof ApFieldText;
|
|
13
|
+
TextArea: typeof ApFieldTextArea;
|
|
14
|
+
Number: typeof ApFieldNumber;
|
|
15
|
+
Date: typeof ApFieldDate;
|
|
16
|
+
DateRange: typeof ApFieldDateRange;
|
|
17
|
+
Radio: typeof ApFieldRadio;
|
|
18
|
+
Checkbox: typeof ApFieldCheckbox;
|
|
19
|
+
Select: typeof ApFieldSelect;
|
|
20
|
+
Switch: typeof ApFieldSwitch;
|
|
21
|
+
};
|
|
22
|
+
export declare const ApField: FieldType;
|
|
11
23
|
export * from './interface';
|
|
12
24
|
export { ApFieldText, ApFieldCheckbox, ApFieldDate, ApFieldNumber, ApFieldRadio, ApFieldSwitch, ApFieldTextArea, ApFieldDateRange, ApFieldSelect };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./text/index.vue2.mjs";
|
|
2
|
+
import "./checkbox/index.vue2.mjs";
|
|
3
|
+
import "./date/index.vue2.mjs";
|
|
4
|
+
import "./number/index.vue2.mjs";
|
|
5
|
+
import "./radio/index.vue2.mjs";
|
|
6
|
+
import "./switch/index.vue2.mjs";
|
|
7
|
+
import "./text-area/index.vue2.mjs";
|
|
8
|
+
import "./date-range/index.vue2.mjs";
|
|
9
|
+
import "./select/index.vue2.mjs";
|
|
10
|
+
import "./interface.mjs";
|
|
11
|
+
import i from "./text/index.vue.mjs";
|
|
12
|
+
import m from "./text-area/index.vue.mjs";
|
|
13
|
+
import o from "./number/index.vue.mjs";
|
|
14
|
+
import r from "./date/index.vue.mjs";
|
|
15
|
+
import t from "./date-range/index.vue.mjs";
|
|
16
|
+
import e from "./radio/index.vue.mjs";
|
|
17
|
+
import p from "./checkbox/index.vue.mjs";
|
|
18
|
+
import a from "./select/index.vue.mjs";
|
|
19
|
+
import s from "./switch/index.vue.mjs";
|
|
20
|
+
const w = {
|
|
21
|
+
Text: i,
|
|
22
|
+
TextArea: m,
|
|
23
|
+
Number: o,
|
|
24
|
+
Date: r,
|
|
25
|
+
DateRange: t,
|
|
26
|
+
Radio: e,
|
|
27
|
+
Checkbox: p,
|
|
28
|
+
Select: a,
|
|
29
|
+
Switch: s
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
w as ApField,
|
|
33
|
+
p as ApFieldCheckbox,
|
|
34
|
+
r as ApFieldDate,
|
|
35
|
+
t as ApFieldDateRange,
|
|
36
|
+
o as ApFieldNumber,
|
|
37
|
+
e as ApFieldRadio,
|
|
38
|
+
a as ApFieldSelect,
|
|
39
|
+
s as ApFieldSwitch,
|
|
40
|
+
i as ApFieldText,
|
|
41
|
+
m as ApFieldTextArea
|
|
42
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps } from 'ant-design-vue';
|
|
1
|
+
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps } from 'ant-design-vue';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormatPresetType } from './date/interface';
|
|
4
4
|
import { RangeValue } from 'ant-design-vue/es/vc-picker/interface';
|
|
5
5
|
import { RangePickerProps } from 'ant-design-vue/es/date-picker/dayjs';
|
|
6
|
+
import { LiteralUnion } from '../type';
|
|
6
7
|
|
|
7
8
|
export type FieldMode = 'read' | 'edit';
|
|
8
9
|
export type BasicApFieldProps<FieldPropsType = any> = {
|
|
@@ -32,7 +33,7 @@ export type ApFieldDateProps = ApFieldComposedProps<Omit<DatePickerProps, 'mode'
|
|
|
32
33
|
defaultValue?: number;
|
|
33
34
|
onChange?: (ts: number | null, dayStr: string) => void;
|
|
34
35
|
onOk?: (ts: number | null) => void;
|
|
35
|
-
format?: ApFormatPresetType
|
|
36
|
+
format?: LiteralUnion<ApFormatPresetType, string>;
|
|
36
37
|
};
|
|
37
38
|
export type ApFieldNumberProps = BasicApFieldProps<InputNumberProps> & {
|
|
38
39
|
emptyText?: string;
|
|
@@ -59,7 +60,8 @@ export type ApiFieldRadioExpose = {
|
|
|
59
60
|
};
|
|
60
61
|
export type ApFieldSwitchProps = BasicApFieldProps<Omit<SwitchProps, 'onClick'>> & {
|
|
61
62
|
emptyText?: string;
|
|
62
|
-
onAction?: (checked: string | boolean | number, e
|
|
63
|
+
onAction?: (checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>;
|
|
64
|
+
confirm?: Pick<PopconfirmProps, 'title' | 'okText' | 'cancelText' | 'description' | 'showCancel' | 'icon' | 'okType' | 'onCancel'>;
|
|
63
65
|
};
|
|
64
66
|
export type ApFieldTextAreaProps = BasicApFieldProps<TextAreaProps> & {
|
|
65
67
|
emptyText?: string;
|
|
@@ -75,7 +77,7 @@ export type ApFieldDateRangeProps = ApFieldComposedProps<Omit<RangePickerProps,
|
|
|
75
77
|
defaultValue?: RangeValue<number>;
|
|
76
78
|
onChange?: (ts: RangeValue<number>, dayStr: string) => void;
|
|
77
79
|
onOk?: (ts: RangeValue<number>) => void;
|
|
78
|
-
format?: ApFormatPresetType
|
|
80
|
+
format?: LiteralUnion<ApFormatPresetType, string>;
|
|
79
81
|
};
|
|
80
82
|
export type ApFieldSelectProps = ApFieldComposedProps<Omit<SelectProps, 'mode' | 'value' | 'onUpdate:value' | 'onSearch'>> & {
|
|
81
83
|
emptyText?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -38,12 +38,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
38
38
|
}>>> & {
|
|
39
39
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
|
+
keyboard: boolean;
|
|
41
42
|
bordered: boolean;
|
|
42
43
|
min: ValueType;
|
|
43
44
|
max: ValueType;
|
|
44
45
|
step: ValueType;
|
|
45
46
|
controls: boolean;
|
|
46
|
-
keyboard: boolean;
|
|
47
47
|
emptyText: string;
|
|
48
48
|
thousands: boolean;
|
|
49
49
|
}, {}>, Readonly<ApFieldNumberSlots> & ApFieldNumberSlots>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, ref as C, computed as x, unref as o, openBlock as r, createElementBlock as n, Fragment as N, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as V, toDisplayString as $, createBlock as D, mergeProps as P, createSlots as R, renderList as A, withCtx as I, normalizeProps as z, guardReactiveProps as E } from "vue";
|
|
2
2
|
import { InputNumber as F } from "ant-design-vue";
|
|
3
|
-
import "../../hooks/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { addZeroToDecimalPlaces as L } from "./helper.mjs";
|
|
3
|
+
import "../../hooks/index.mjs";
|
|
4
|
+
import { isNil as M, omit as T } from "lodash-unified";
|
|
5
|
+
import { toDecimalMark as U } from "@fruits-chain/utils";
|
|
6
|
+
import { addZeroToDecimalPlaces as _ } from "./helper.mjs";
|
|
8
7
|
import "../../config-provider/index.mjs";
|
|
9
8
|
import "./style.css";
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
|
|
9
|
+
import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useControllableValue as L } from "../../hooks/useControllableValue.mjs";
|
|
11
|
+
const Y = /* @__PURE__ */ h({
|
|
12
12
|
name: "ApFieldNumber",
|
|
13
|
-
inheritAttrs: !1,
|
|
14
13
|
__name: "index",
|
|
15
14
|
props: {
|
|
16
15
|
mode: {},
|
|
@@ -55,15 +54,15 @@ const Y = /* @__PURE__ */ C({
|
|
|
55
54
|
},
|
|
56
55
|
emits: ["update:value"],
|
|
57
56
|
setup(f, { expose: c, emit: y }) {
|
|
58
|
-
const v = y, { b:
|
|
57
|
+
const v = y, { b: i } = w("field-number"), t = f, l = C(), { value: u, updateValue: B } = L(
|
|
59
58
|
t,
|
|
60
59
|
v
|
|
61
|
-
), b =
|
|
62
|
-
let e = o(
|
|
63
|
-
if (
|
|
60
|
+
), b = x(() => {
|
|
61
|
+
let e = o(u);
|
|
62
|
+
if (M(e))
|
|
64
63
|
return t.emptyText;
|
|
65
|
-
let a =
|
|
66
|
-
return t.precision && t.limitDecimalsRetain && (a =
|
|
64
|
+
let a = t.thousands ? U(e, t.precision) : String(e);
|
|
65
|
+
return t.precision && t.limitDecimalsRetain && (a = _(a, t.precision)), a;
|
|
67
66
|
});
|
|
68
67
|
function k() {
|
|
69
68
|
var e;
|
|
@@ -73,34 +72,33 @@ const Y = /* @__PURE__ */ C({
|
|
|
73
72
|
var e;
|
|
74
73
|
(e = l.value) == null || e.blur();
|
|
75
74
|
}
|
|
76
|
-
return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(
|
|
75
|
+
return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(N, { key: 0 }, [
|
|
77
76
|
e.$slots.prefix ? (r(), n("span", {
|
|
78
77
|
key: 0,
|
|
79
|
-
class:
|
|
78
|
+
class: d(o(i)("label-left"))
|
|
80
79
|
}, [
|
|
81
|
-
|
|
82
|
-
], 2)) :
|
|
83
|
-
|
|
80
|
+
s(e.$slots, "prefix")
|
|
81
|
+
], 2)) : m("", !0),
|
|
82
|
+
V("span", null, $(b.value), 1),
|
|
84
83
|
e.$slots.addonAfter ? (r(), n("span", {
|
|
85
84
|
key: 1,
|
|
86
|
-
class:
|
|
85
|
+
class: d(o(i)("label-right"))
|
|
87
86
|
}, [
|
|
88
|
-
|
|
89
|
-
], 2)) :
|
|
90
|
-
], 64)) : (r(),
|
|
91
|
-
value: o(
|
|
87
|
+
s(e.$slots, "addonAfter")
|
|
88
|
+
], 2)) : m("", !0)
|
|
89
|
+
], 64)) : (r(), D(o(F), P({ key: 1 }, o(T)(t, ["value", "update:value"]), {
|
|
90
|
+
value: o(u),
|
|
92
91
|
"onUpdate:value": o(B),
|
|
93
|
-
precision: e.precision,
|
|
94
92
|
ref_key: "inputRef",
|
|
95
93
|
ref: l
|
|
96
|
-
}),
|
|
97
|
-
|
|
98
|
-
name:
|
|
99
|
-
fn: I((
|
|
100
|
-
|
|
94
|
+
}), R({ _: 2 }, [
|
|
95
|
+
A(e.$slots, (Z, p) => ({
|
|
96
|
+
name: p,
|
|
97
|
+
fn: I((S) => [
|
|
98
|
+
s(e.$slots, p, z(E(S || {})))
|
|
101
99
|
])
|
|
102
100
|
}))
|
|
103
|
-
]), 1040, ["value", "onUpdate:value"
|
|
101
|
+
]), 1040, ["value", "onUpdate:value"]));
|
|
104
102
|
}
|
|
105
103
|
});
|
|
106
104
|
export {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import "../../hooks/
|
|
4
|
-
import {
|
|
5
|
-
import { isNil as q, omit as A } from "lodash-unified";
|
|
1
|
+
import { defineComponent as V, ref as i, onMounted as q, computed as B, unref as o, openBlock as n, createElementBlock as m, Fragment as d, createTextVNode as C, toDisplayString as R, createBlock as f, mergeProps as h } from "vue";
|
|
2
|
+
import { Spin as G, RadioGroup as S } from "ant-design-vue";
|
|
3
|
+
import "../../hooks/index.mjs";
|
|
4
|
+
import { isNil as U, omit as z } from "lodash-unified";
|
|
6
5
|
import { getOptionValue as F, getOptionLabel as N } from "./helper.mjs";
|
|
7
|
-
|
|
6
|
+
import { useControllableValue as O } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const j = /* @__PURE__ */ V({
|
|
8
8
|
name: "ApFieldRadio",
|
|
9
|
-
inheritAttrs: !1,
|
|
10
9
|
__name: "index",
|
|
11
10
|
props: {
|
|
12
11
|
mode: { default: "edit" },
|
|
@@ -25,44 +24,51 @@ const M = /* @__PURE__ */ b({
|
|
|
25
24
|
request: {}
|
|
26
25
|
},
|
|
27
26
|
emits: ["update:value"],
|
|
28
|
-
setup(
|
|
29
|
-
const t =
|
|
30
|
-
|
|
27
|
+
setup(c, { expose: v, emit: y }) {
|
|
28
|
+
const t = c, g = y, u = i(), l = i((t == null ? void 0 : t.options) || []), { value: s, updateValue: x } = O(t, g), r = i(!1);
|
|
29
|
+
q(() => {
|
|
31
30
|
var e;
|
|
32
|
-
(e = t.request) == null || e.call(t).then((a) =>
|
|
31
|
+
t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => l.value = a).finally(() => {
|
|
32
|
+
r.value = !1;
|
|
33
|
+
}));
|
|
33
34
|
});
|
|
34
|
-
const
|
|
35
|
-
var
|
|
36
|
-
const e = o(
|
|
37
|
-
if (
|
|
35
|
+
const k = B(() => {
|
|
36
|
+
var p;
|
|
37
|
+
const e = o(s);
|
|
38
|
+
if (U(e))
|
|
38
39
|
return t.emptyText;
|
|
39
|
-
const a = (
|
|
40
|
-
(
|
|
40
|
+
const a = (p = l.value) == null ? void 0 : p.find(
|
|
41
|
+
(_) => e === F(_)
|
|
41
42
|
);
|
|
42
43
|
return N(a) || t.emptyText;
|
|
43
44
|
});
|
|
44
|
-
function
|
|
45
|
+
function b() {
|
|
45
46
|
var e;
|
|
46
|
-
(e =
|
|
47
|
+
(e = u.value) == null || e.focus();
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function T() {
|
|
49
50
|
var e;
|
|
50
|
-
(e =
|
|
51
|
+
(e = u.value) == null || e.blur();
|
|
51
52
|
}
|
|
52
|
-
return
|
|
53
|
-
focus:
|
|
54
|
-
blur:
|
|
55
|
-
}), (e, a) => e.mode === "read" ? (
|
|
56
|
-
|
|
57
|
-
], 64)) : (
|
|
58
|
-
value
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
return v({
|
|
54
|
+
focus: b,
|
|
55
|
+
blur: T
|
|
56
|
+
}), (e, a) => e.mode === "read" ? (n(), m(d, { key: 0 }, [
|
|
57
|
+
C(R(k.value), 1)
|
|
58
|
+
], 64)) : (n(), m(d, { key: 1 }, [
|
|
59
|
+
r.value ? (n(), f(o(G), {
|
|
60
|
+
key: 0,
|
|
61
|
+
size: "small"
|
|
62
|
+
})) : (n(), f(o(S), h({ key: 1 }, o(z)(t, ["value", "update:value", "options", "request"]), {
|
|
63
|
+
value: o(s),
|
|
64
|
+
"onUpdate:value": o(x),
|
|
65
|
+
options: l.value,
|
|
66
|
+
ref_key: "radioGroupRef",
|
|
67
|
+
ref: u
|
|
68
|
+
}), null, 16, ["value", "onUpdate:value", "options"]))
|
|
69
|
+
], 64));
|
|
64
70
|
}
|
|
65
71
|
});
|
|
66
72
|
export {
|
|
67
|
-
|
|
73
|
+
j as default
|
|
68
74
|
};
|
|
@@ -208,7 +208,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
208
208
|
type: BooleanConstructor;
|
|
209
209
|
default: any;
|
|
210
210
|
};
|
|
211
|
-
}>>, "
|
|
211
|
+
}>>, "mode" | "value" | "onUpdate:value" | "onSearch">;
|
|
212
212
|
}, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
|
|
213
213
|
export default _default;
|
|
214
214
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as B, ref as d, onMounted as C, computed as v, unref as a, openBlock as h, createElementBlock as V, toDisplayString as T, createBlock as I, mergeProps as M, createSlots as R, renderList as U, withCtx as y, renderSlot as z, normalizeProps as N, guardReactiveProps as $, createVNode as j } from "vue";
|
|
2
2
|
import { debounce as D, isFunction as P, isArray as E, isNil as L } from "lodash-unified";
|
|
3
3
|
import { Select as G, Spin as H } from "ant-design-vue";
|
|
4
|
-
import "../../hooks/
|
|
4
|
+
import "../../hooks/index.mjs";
|
|
5
5
|
import { useControllableValue as J } from "../../hooks/useControllableValue.mjs";
|
|
6
6
|
const K = { key: 0 }, ee = /* @__PURE__ */ B({
|
|
7
7
|
name: "ApFieldSelect",
|
|
@@ -23,8 +23,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
23
23
|
}>>> & {
|
|
24
24
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
size: "small" | "default";
|
|
27
26
|
loading: boolean;
|
|
27
|
+
size: "default" | "small";
|
|
28
28
|
checkedValue: string | number | boolean;
|
|
29
29
|
unCheckedValue: string | number | boolean;
|
|
30
30
|
emptyText: string;
|