@aplus-frontend/ui 0.0.1-beta.6 → 0.0.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +157 -142
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +68 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +20 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +4 -0
- package/es/src/ap-action/item/index.vue2.mjs +49 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +9 -9
- package/es/src/ap-field/index.d.ts +12 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +6 -4
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.mjs +2 -2
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.mjs +30 -32
- package/es/src/ap-field/radio/index.vue.mjs +40 -34
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +69 -40
- package/es/src/ap-field/text/index.vue.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
- package/es/src/ap-form/components/interface.d.ts +0 -0
- package/es/src/ap-form/index.d.ts +87 -1758
- package/es/src/ap-form/index.mjs +11 -7
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.d.ts +28 -28
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider.d.ts +4 -4
- package/es/src/config-provider/config-provider.mjs +4 -4
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.d.ts +12 -12
- package/es/src/config-provider/index.mjs +26 -13
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.d.ts +12 -12
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.d.ts +42 -42
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.d.ts +3 -3
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.d.ts +7 -7
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.d.ts +41 -41
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.d.ts +45 -45
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +161 -145
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.d.ts +4 -3
- package/es/src/modal/basic.vue.mjs +2 -191
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.d.ts +10 -11
- package/es/src/modal/index.mjs +10 -8
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +29 -30
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +2 -2
- package/es/src/pro-form/pro-form.vue.mjs +39 -37
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/hooks/use-columns.mjs +5 -5
- package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.mjs +55 -56
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.d.ts +12 -12
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/theme/ap-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/modal/index.css +29 -30
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/lib/index.js +1 -1
- package/lib/src/ap-action/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +12 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +6 -4
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/components/interface.d.ts +0 -0
- package/lib/src/ap-form/index.d.ts +87 -1758
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.d.ts +28 -28
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +4 -4
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +12 -12
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.d.ts +12 -12
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.d.ts +42 -42
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.d.ts +7 -7
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.d.ts +41 -41
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.d.ts +45 -45
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/modal/basic.vue.d.ts +4 -3
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/index.d.ts +10 -11
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +29 -30
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +2 -2
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.d.ts +12 -12
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/theme/ap-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/modal/index.css +29 -30
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,380 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as he, ref as v, computed as f, unref as l, watchEffect as _, nextTick as ve, toRaw as ge, createVNode as m, withDirectives as q, vShow as Ce, mergeProps as be, resolveDirective as ye } from "vue";
|
|
2
|
+
import { FormOutlined as z, CloseOutlined as G, CheckOutlined as H } from "@ant-design/icons-vue";
|
|
3
|
+
import { CellComponent as J } from "./cell-component.mjs";
|
|
4
|
+
import "../../../config-provider/index.mjs";
|
|
5
|
+
import { useTableContext as pe } from "../../hooks/use-table-context.mjs";
|
|
6
|
+
import ke from "../../directives/click-outside.mjs";
|
|
7
|
+
import { createPlaceholderMessage as Q } from "./helper.mjs";
|
|
8
|
+
import { isBoolean as p, set as U, pick as Re } from "lodash-unified";
|
|
9
|
+
import { treeToList as Ve } from "../../../utils/tree.mjs";
|
|
10
|
+
import { Spin as X } from "ant-design-vue";
|
|
11
|
+
import { parseRowKey as we } from "../../helper.mjs";
|
|
12
|
+
import { isType as P, isFunction as k, isArray as I } from "@fruits-chain/utils";
|
|
13
|
+
import "../style/editable-cell.css";
|
|
14
|
+
import { useLocale as xe } from "../../../config-provider/hooks/use-locale.mjs";
|
|
15
|
+
import { useNamespace as Ee } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
16
|
+
const Le = /* @__PURE__ */ he({
|
|
17
|
+
name: "EditableCell",
|
|
18
|
+
components: {
|
|
19
|
+
FormOutlined: z,
|
|
20
|
+
CloseOutlined: G,
|
|
21
|
+
CheckOutlined: H,
|
|
22
|
+
CellComponent: J,
|
|
23
|
+
Spin: X
|
|
24
|
+
},
|
|
25
|
+
directives: {
|
|
26
|
+
clickOutside: ke
|
|
27
|
+
},
|
|
28
|
+
props: {
|
|
29
|
+
value: {
|
|
30
|
+
type: [String, Number, Boolean, Object],
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
record: {
|
|
34
|
+
type: Object
|
|
35
|
+
},
|
|
36
|
+
column: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: () => ({})
|
|
39
|
+
},
|
|
40
|
+
index: {
|
|
41
|
+
type: Number,
|
|
42
|
+
required: !0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(n) {
|
|
46
|
+
const a = pe(), R = v(!1), j = v(), D = v(!1), g = v(""), N = v([]), u = v(n.value), B = v(n.value), T = v(!1), {
|
|
47
|
+
t: $
|
|
48
|
+
} = xe(), Y = Ee("editable-cell"), h = f(() => {
|
|
49
|
+
var e;
|
|
50
|
+
return ((e = n.column) == null ? void 0 : e.editComponent) || "Input";
|
|
51
|
+
}), Z = f(() => {
|
|
52
|
+
var e;
|
|
53
|
+
return (e = n.column) == null ? void 0 : e.editRule;
|
|
54
|
+
}), ee = f(() => l(g) && l(D)), L = f(() => {
|
|
55
|
+
const e = l(h);
|
|
56
|
+
return ["Checkbox", "Switch"].includes(e);
|
|
57
|
+
}), V = f(() => {
|
|
58
|
+
var S;
|
|
59
|
+
const e = l(L);
|
|
60
|
+
let t = ((S = n.column) == null ? void 0 : S.editComponentProps) ?? {};
|
|
61
|
+
const {
|
|
62
|
+
checkedValue: i,
|
|
63
|
+
unCheckedValue: o
|
|
64
|
+
} = t, c = e ? "checked" : "value", s = l(u);
|
|
65
|
+
let r = s;
|
|
66
|
+
e && (typeof i < "u" ? r = s === i ? i : o : typeof o < "u" ? r = s === o ? o : i : r = P("Number")(s) || p(s) ? s : !!s);
|
|
67
|
+
const {
|
|
68
|
+
record: d,
|
|
69
|
+
column: b,
|
|
70
|
+
index: x
|
|
71
|
+
} = n;
|
|
72
|
+
k(t) && (t = t({
|
|
73
|
+
text: s,
|
|
74
|
+
record: d,
|
|
75
|
+
column: b,
|
|
76
|
+
index: x
|
|
77
|
+
}) ?? {}), t.onChangeTemp = t.onChange, delete t.onChange;
|
|
78
|
+
const E = l(h), y = {};
|
|
79
|
+
return E === "ApiSelect" && (y.cache = !0), te(d, b, r), {
|
|
80
|
+
size: "small",
|
|
81
|
+
getPopupContainer: () => l(a == null ? void 0 : a.wrapRef.value) ?? document.body,
|
|
82
|
+
placeholder: Q(l(h), $),
|
|
83
|
+
...y,
|
|
84
|
+
...t,
|
|
85
|
+
[c]: r,
|
|
86
|
+
disabled: l(F)
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
function te(e, t, i) {
|
|
90
|
+
if (!e)
|
|
91
|
+
return !1;
|
|
92
|
+
const {
|
|
93
|
+
key: o,
|
|
94
|
+
dataIndex: c
|
|
95
|
+
} = t;
|
|
96
|
+
if (!o && !c)
|
|
97
|
+
return;
|
|
98
|
+
U(e, c || o, i);
|
|
99
|
+
}
|
|
100
|
+
const F = f(() => {
|
|
101
|
+
const {
|
|
102
|
+
editDynamicDisabled: e
|
|
103
|
+
} = n.column;
|
|
104
|
+
let t = !1;
|
|
105
|
+
if (p(e) && (t = e), k(e)) {
|
|
106
|
+
const {
|
|
107
|
+
record: i
|
|
108
|
+
} = n;
|
|
109
|
+
t = e({
|
|
110
|
+
record: i,
|
|
111
|
+
currentValue: u.value
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return t;
|
|
115
|
+
}), ne = f(() => {
|
|
116
|
+
var s;
|
|
117
|
+
const {
|
|
118
|
+
editValueMap: e
|
|
119
|
+
} = n.column, t = l(u);
|
|
120
|
+
if (e && k(e))
|
|
121
|
+
return e(t);
|
|
122
|
+
const i = l(h);
|
|
123
|
+
if (!i.includes("Select") && !i.includes("Radio"))
|
|
124
|
+
return t;
|
|
125
|
+
const c = (((s = l(V)) == null ? void 0 : s.options) ?? (l(N) || [])).find((r) => `${r.value}` == `${t}`);
|
|
126
|
+
return (c == null ? void 0 : c.label) ?? t;
|
|
127
|
+
}), ie = f(() => l(L) || l(C) ? {} : {
|
|
128
|
+
width: "calc(100% - 48px)"
|
|
129
|
+
}), le = f(() => {
|
|
130
|
+
const {
|
|
131
|
+
align: e = "center"
|
|
132
|
+
} = n.column;
|
|
133
|
+
return `edit-cell-align-${e}`;
|
|
134
|
+
}), C = f(() => {
|
|
135
|
+
const {
|
|
136
|
+
editable: e
|
|
137
|
+
} = n.record || {};
|
|
138
|
+
return !!e;
|
|
139
|
+
});
|
|
140
|
+
_(() => {
|
|
141
|
+
u.value = n.value;
|
|
142
|
+
}), _(() => {
|
|
143
|
+
const {
|
|
144
|
+
editable: e
|
|
145
|
+
} = n.column;
|
|
146
|
+
(p(e) || p(l(C))) && (R.value = !!e || l(C));
|
|
147
|
+
});
|
|
148
|
+
function ce(e) {
|
|
149
|
+
var t;
|
|
150
|
+
e.stopPropagation(), !(l(C) || l((t = n.column) == null ? void 0 : t.editRow) || l(F)) && (g.value = "", R.value = !0, ve(() => {
|
|
151
|
+
var o;
|
|
152
|
+
const i = l(j);
|
|
153
|
+
(o = i == null ? void 0 : i.focus) == null || o.call(i);
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
async function oe(e) {
|
|
157
|
+
var o, c;
|
|
158
|
+
const t = l(h);
|
|
159
|
+
e ? t === "Checkbox" ? u.value = e.target.checked : t === "Switch" ? u.value = e : e != null && e.target && Reflect.has(e.target, "value") ? u.value = e.target.value : (P("String")(e) || p(e) || P("Number")(e) || I(e)) && (u.value = e) : u.value = e;
|
|
160
|
+
const i = (o = l(V)) == null ? void 0 : o.onChangeTemp;
|
|
161
|
+
i && k(i) && i(...arguments), (c = a.emit) == null || c.call(a, "edit-change", {
|
|
162
|
+
column: n.column,
|
|
163
|
+
value: l(u),
|
|
164
|
+
record: ge(n.record)
|
|
165
|
+
}), K();
|
|
166
|
+
}
|
|
167
|
+
async function K() {
|
|
168
|
+
const {
|
|
169
|
+
column: e,
|
|
170
|
+
record: t
|
|
171
|
+
} = n, {
|
|
172
|
+
editRule: i
|
|
173
|
+
} = e, o = l(u);
|
|
174
|
+
if (i) {
|
|
175
|
+
if (p(i) && !o && !P("Number")(o)) {
|
|
176
|
+
D.value = !0;
|
|
177
|
+
const c = l(h);
|
|
178
|
+
return g.value = Q(c, $), !1;
|
|
179
|
+
}
|
|
180
|
+
if (k(i)) {
|
|
181
|
+
const c = await i(o, t);
|
|
182
|
+
return c ? (g.value = c, D.value = !0, !1) : (g.value = "", !0);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return g.value = "", !0;
|
|
186
|
+
}
|
|
187
|
+
async function w(e = !0, t = !0) {
|
|
188
|
+
var x;
|
|
189
|
+
if (t && !await K())
|
|
190
|
+
return !1;
|
|
191
|
+
const {
|
|
192
|
+
column: i,
|
|
193
|
+
index: o,
|
|
194
|
+
record: c
|
|
195
|
+
} = n;
|
|
196
|
+
if (!c)
|
|
197
|
+
return !1;
|
|
198
|
+
const {
|
|
199
|
+
key: s,
|
|
200
|
+
dataIndex: r
|
|
201
|
+
} = i, d = l(u);
|
|
202
|
+
if (!s && !r)
|
|
203
|
+
return;
|
|
204
|
+
const b = r || s;
|
|
205
|
+
if (!c.editable) {
|
|
206
|
+
const {
|
|
207
|
+
getBindValues: E
|
|
208
|
+
} = a, {
|
|
209
|
+
beforeEditSubmit: y,
|
|
210
|
+
columns: S,
|
|
211
|
+
rowKey: de
|
|
212
|
+
} = l(E), fe = we(de, c);
|
|
213
|
+
if (y && k(y)) {
|
|
214
|
+
T.value = !0;
|
|
215
|
+
const me = S.map((O) => O.dataIndex).filter((O) => !!O);
|
|
216
|
+
let W = !0;
|
|
217
|
+
try {
|
|
218
|
+
W = await y({
|
|
219
|
+
record: Re(c, [fe, ...me]),
|
|
220
|
+
index: o,
|
|
221
|
+
key: b,
|
|
222
|
+
value: d
|
|
223
|
+
});
|
|
224
|
+
} catch {
|
|
225
|
+
W = !1;
|
|
226
|
+
} finally {
|
|
227
|
+
T.value = !1;
|
|
228
|
+
}
|
|
229
|
+
if (W === !1)
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
U(c, b, d), B.value = d, e && ((x = a.emit) == null || x.call(a, "edit-end", {
|
|
234
|
+
record: c,
|
|
235
|
+
index: o,
|
|
236
|
+
key: b,
|
|
237
|
+
value: d
|
|
238
|
+
})), R.value = !1;
|
|
239
|
+
}
|
|
240
|
+
async function se() {
|
|
241
|
+
var e;
|
|
242
|
+
(e = n.column) != null && e.editRow || w();
|
|
243
|
+
}
|
|
244
|
+
function ae() {
|
|
245
|
+
w();
|
|
246
|
+
}
|
|
247
|
+
function M() {
|
|
248
|
+
var s;
|
|
249
|
+
R.value = !1, u.value = B.value;
|
|
250
|
+
const {
|
|
251
|
+
column: e,
|
|
252
|
+
index: t,
|
|
253
|
+
record: i
|
|
254
|
+
} = n, {
|
|
255
|
+
key: o,
|
|
256
|
+
dataIndex: c
|
|
257
|
+
} = e;
|
|
258
|
+
(s = a.emit) == null || s.call(a, "edit-cancel", {
|
|
259
|
+
record: i,
|
|
260
|
+
index: t,
|
|
261
|
+
key: c || o,
|
|
262
|
+
value: l(u)
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function ue() {
|
|
266
|
+
var t;
|
|
267
|
+
if ((t = n.column) != null && t.editable || l(C))
|
|
268
|
+
return;
|
|
269
|
+
l(h).includes("Input") && M();
|
|
270
|
+
}
|
|
271
|
+
function re(e) {
|
|
272
|
+
const {
|
|
273
|
+
replaceFields: t
|
|
274
|
+
} = l(V);
|
|
275
|
+
if (l(h) === "ApiTreeSelect") {
|
|
276
|
+
const {
|
|
277
|
+
title: o = "title",
|
|
278
|
+
value: c = "value",
|
|
279
|
+
children: s = "children"
|
|
280
|
+
} = t || {};
|
|
281
|
+
let r = Ve(e, {
|
|
282
|
+
children: s
|
|
283
|
+
});
|
|
284
|
+
r = r.map((d) => ({
|
|
285
|
+
label: d[o],
|
|
286
|
+
value: d[c]
|
|
287
|
+
})), N.value = r;
|
|
288
|
+
} else
|
|
289
|
+
N.value = e;
|
|
290
|
+
}
|
|
291
|
+
function A(e, t) {
|
|
292
|
+
var i;
|
|
293
|
+
n.record && (I(n.record[e]) ? (i = n.record[e]) == null || i.push(t) : n.record[e] = [t]);
|
|
294
|
+
}
|
|
295
|
+
return n.record && (A("submitCbs", w), A("validCbs", K), A("cancelCbs", M), n.column.dataIndex && (n.record.editValueRefs || (n.record.editValueRefs = {}), n.record.editValueRefs[n.column.dataIndex] = u), n.record.onCancelEdit = () => {
|
|
296
|
+
var e, t;
|
|
297
|
+
I((e = n.record) == null ? void 0 : e.cancelCbs) && ((t = n.record) == null || t.cancelCbs.forEach((i) => i()));
|
|
298
|
+
}, n.record.onSubmitEdit = async () => {
|
|
299
|
+
var e, t, i, o, c;
|
|
300
|
+
if (I((e = n.record) == null ? void 0 : e.submitCbs))
|
|
301
|
+
return (i = (t = n.record) == null ? void 0 : t.onValid) != null && i.call(t) ? ((((o = n.record) == null ? void 0 : o.submitCbs) || []).forEach((r) => r(!1, !1)), (c = a.emit) == null || c.call(a, "edit-row-end"), !0) : void 0;
|
|
302
|
+
}), {
|
|
303
|
+
isEdit: R,
|
|
304
|
+
ns: Y,
|
|
305
|
+
handleEdit: ce,
|
|
306
|
+
currentValueRef: u,
|
|
307
|
+
handleSubmit: w,
|
|
308
|
+
handleChange: oe,
|
|
309
|
+
handleCancel: M,
|
|
310
|
+
elRef: j,
|
|
311
|
+
getComponent: h,
|
|
312
|
+
getRule: Z,
|
|
313
|
+
onClickOutside: ue,
|
|
314
|
+
ruleMessage: g,
|
|
315
|
+
getRuleVisible: ee,
|
|
316
|
+
getComponentProps: V,
|
|
317
|
+
handleOptionsChange: re,
|
|
318
|
+
getWrapperStyle: ie,
|
|
319
|
+
getWrapperClass: le,
|
|
320
|
+
getRowEditable: C,
|
|
321
|
+
getValues: ne,
|
|
322
|
+
handleEnter: se,
|
|
323
|
+
handleSubmitClick: ae,
|
|
324
|
+
spinning: T,
|
|
325
|
+
getDisable: F
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
render() {
|
|
329
|
+
return m("div", {
|
|
330
|
+
class: this.ns.b()
|
|
331
|
+
}, [q(m("div", {
|
|
332
|
+
class: {
|
|
333
|
+
[this.ns.e("normal")]: !0,
|
|
334
|
+
"ellipsis-cell": this.column.ellipsis
|
|
335
|
+
},
|
|
336
|
+
onClick: this.handleEdit
|
|
337
|
+
}, [m("div", {
|
|
338
|
+
class: "cell-content",
|
|
339
|
+
title: this.column.ellipsis ? this.getValues ?? "" : ""
|
|
340
|
+
}, [this.column.editRender ? this.column.editRender({
|
|
341
|
+
text: this.value,
|
|
342
|
+
record: this.record,
|
|
343
|
+
column: this.column,
|
|
344
|
+
index: this.index,
|
|
345
|
+
currentValue: this.currentValueRef
|
|
346
|
+
}) : this.getValues ?? " "]), !this.column.editRow && !this.getDisable && m(z, {
|
|
347
|
+
class: this.ns.e("normal-icon")
|
|
348
|
+
}, null)]), [[Ce, !this.isEdit]]), this.isEdit && // todo: 无法Spin上面加onClick事件
|
|
349
|
+
m(X, {
|
|
350
|
+
spinning: this.spinning
|
|
351
|
+
}, {
|
|
352
|
+
default: () => [q(m("div", {
|
|
353
|
+
class: this.ns.e("wrapper"),
|
|
354
|
+
onClick: (n) => n.stopPropagation()
|
|
355
|
+
}, [m(J, be(this.getComponentProps, {
|
|
356
|
+
component: this.getComponent,
|
|
357
|
+
style: this.getWrapperStyle,
|
|
358
|
+
popoverVisible: this.getRuleVisible,
|
|
359
|
+
rule: this.getRule,
|
|
360
|
+
ruleMessage: this.ruleMessage,
|
|
361
|
+
class: this.getWrapperClass,
|
|
362
|
+
ref: "elRef",
|
|
363
|
+
onChange: this.handleChange,
|
|
364
|
+
onOptionsChange: this.handleOptionsChange,
|
|
365
|
+
onPressEnter: this.handleEnter
|
|
366
|
+
}), null), !this.getRowEditable && m("div", {
|
|
367
|
+
class: this.ns.e("action")
|
|
368
|
+
}, [m(H, {
|
|
369
|
+
class: [this.ns.e("icon"), "mx-2"],
|
|
370
|
+
onClick: this.handleSubmitClick
|
|
371
|
+
}, null), m(G, {
|
|
372
|
+
class: this.ns.e("icon"),
|
|
373
|
+
onClick: this.handleCancel
|
|
374
|
+
}, null)])]), [[ye("click-outside"), this.onClickOutside]])]
|
|
375
|
+
})]);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
2
378
|
export {
|
|
3
|
-
|
|
379
|
+
Le as default
|
|
4
380
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { toRaw as l, h as e } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { isArray as
|
|
4
|
-
|
|
2
|
+
import "./editable-cell.vue.mjs";
|
|
3
|
+
import { isArray as p } from "lodash-unified";
|
|
4
|
+
import v from "./editable-cell.vue2.mjs";
|
|
5
|
+
function x(f) {
|
|
5
6
|
return ({ text: u, record: t, index: m }) => (l(t).onValid = async () => {
|
|
6
|
-
if (
|
|
7
|
+
if (p(t == null ? void 0 : t.validCbs)) {
|
|
7
8
|
const i = ((t == null ? void 0 : t.validCbs) || []).map((a) => a());
|
|
8
9
|
return (await Promise.all(i)).every((a) => !!a);
|
|
9
10
|
} else
|
|
@@ -11,7 +12,7 @@ function b(f) {
|
|
|
11
12
|
}, l(t).onEdit = async (i, n = !1) => {
|
|
12
13
|
var a, s;
|
|
13
14
|
return n || (t.editable = i), !i && n ? await t.onValid() && await ((a = t.onSubmitEdit) == null ? void 0 : a.call(t)) ? (t.editable = !1, !0) : !1 : (!i && !n && ((s = t.onCancelEdit) == null || s.call(t)), !0);
|
|
14
|
-
}, e(
|
|
15
|
+
}, e(v, {
|
|
15
16
|
value: u,
|
|
16
17
|
record: t,
|
|
17
18
|
column: f,
|
|
@@ -19,5 +20,5 @@ function b(f) {
|
|
|
19
20
|
}));
|
|
20
21
|
}
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
x as renderEditCell
|
|
23
24
|
};
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BasicHelp as u } from "../../basic/index.mjs";
|
|
3
|
-
import r from "./edit-table-header-icon.vue.mjs";
|
|
4
|
-
import "../../config-provider/index.mjs";
|
|
5
|
-
import "./style/header-cell.css";
|
|
6
|
-
import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const h = /* @__PURE__ */ i({
|
|
8
|
-
name: "TableHeaderCell",
|
|
9
|
-
components: {
|
|
10
|
-
EditTableHeaderCell: r,
|
|
11
|
-
BasicHelp: u
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
column: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default: () => ({})
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(t) {
|
|
20
|
-
const {
|
|
21
|
-
e: s
|
|
22
|
-
} = d("basic-table-header-cell"), m = a(() => {
|
|
23
|
-
var e;
|
|
24
|
-
return !!((e = t.column) != null && e.edit);
|
|
25
|
-
}), n = a(() => {
|
|
26
|
-
var c;
|
|
27
|
-
const e = t.column;
|
|
28
|
-
return typeof e.customHeaderRender == "function" ? e.customHeaderRender(e) : (e == null ? void 0 : e.customTitle) || ((c = t.column) == null ? void 0 : c.title);
|
|
29
|
-
}), o = a(() => {
|
|
30
|
-
var e;
|
|
31
|
-
return (e = t.column) == null ? void 0 : e.helpMessage;
|
|
32
|
-
});
|
|
33
|
-
return () => l("div", null, [m.value ? l(r, null, {
|
|
34
|
-
default: () => [n.value]
|
|
35
|
-
}) : l("span", {
|
|
36
|
-
class: "default-header-cell"
|
|
37
|
-
}, [n.value]), o.value && l(u, {
|
|
38
|
-
text: o.value,
|
|
39
|
-
class: s("help")
|
|
40
|
-
}, null)]);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
1
|
+
import f from "./header-cell.vue2.mjs";
|
|
43
2
|
export {
|
|
44
|
-
|
|
3
|
+
f as default
|
|
45
4
|
};
|
|
@@ -1,4 +1,46 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as i, computed as a, createVNode as l } from "vue";
|
|
2
|
+
import { BasicHelp as r } from "../../basic/index.mjs";
|
|
3
|
+
import "./edit-table-header-icon.vue2.mjs";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
|
+
import "./style/header-cell.css";
|
|
6
|
+
import u from "./edit-table-header-icon.vue.mjs";
|
|
7
|
+
import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const T = /* @__PURE__ */ i({
|
|
9
|
+
name: "TableHeaderCell",
|
|
10
|
+
components: {
|
|
11
|
+
EditTableHeaderCell: u,
|
|
12
|
+
BasicHelp: r
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
column: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(t) {
|
|
21
|
+
const {
|
|
22
|
+
e: s
|
|
23
|
+
} = d("basic-table-header-cell"), m = a(() => {
|
|
24
|
+
var e;
|
|
25
|
+
return !!((e = t.column) != null && e.edit);
|
|
26
|
+
}), o = a(() => {
|
|
27
|
+
var c;
|
|
28
|
+
const e = t.column;
|
|
29
|
+
return typeof e.customHeaderRender == "function" ? e.customHeaderRender(e) : (e == null ? void 0 : e.customTitle) || ((c = t.column) == null ? void 0 : c.title);
|
|
30
|
+
}), n = a(() => {
|
|
31
|
+
var e;
|
|
32
|
+
return (e = t.column) == null ? void 0 : e.helpMessage;
|
|
33
|
+
});
|
|
34
|
+
return () => l("div", null, [m.value ? l(u, null, {
|
|
35
|
+
default: () => [o.value]
|
|
36
|
+
}) : l("span", {
|
|
37
|
+
class: "default-header-cell"
|
|
38
|
+
}, [o.value]), n.value && l(r, {
|
|
39
|
+
text: n.value,
|
|
40
|
+
class: s("help")
|
|
41
|
+
}, null)]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
2
44
|
export {
|
|
3
|
-
|
|
45
|
+
T as default
|
|
4
46
|
};
|