@aplus-frontend/ui 0.1.20 → 0.1.22
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 +176 -170
- package/es/src/ap-action/group/index.vue.d.ts +7 -6
- package/es/src/ap-action/item/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/es/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/es/src/ap-custom-column/column-select.vue.mjs +47 -46
- package/es/src/ap-custom-column/custom-column.vue.mjs +36 -35
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/es/src/ap-download/ap-download.vue.d.ts +17 -12
- package/es/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/es/src/ap-field/date/index.vue.d.ts +18 -12
- package/es/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/es/src/ap-field/number/index.vue.d.ts +459 -12
- package/es/src/ap-field/radio/index.vue.d.ts +6 -5
- package/es/src/ap-field/rate/index.vue.d.ts +138 -16
- package/es/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/es/src/ap-field/select/index.vue.d.ts +597 -16
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +375 -12
- package/es/src/ap-field/switch/index.vue.d.ts +16 -11
- package/es/src/ap-field/text/index.vue.d.ts +19 -13
- package/es/src/ap-field/text/password.vue.d.ts +19 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/es/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/es/src/ap-form/ap-form-item.vue.mjs +47 -44
- package/es/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/es/src/ap-form/ap-form.vue.d.ts +884 -13
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/es/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/es/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/es/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/es/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/es/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/es/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/es/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/es/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/es/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/es/src/ap-list/index.vue.d.ts +5 -5
- package/es/src/ap-modal/interface.d.ts +3 -3
- package/es/src/ap-modal/utils/createModal.mjs +4 -4
- package/es/src/ap-table/ap-table.vue.d.ts +5 -5
- package/es/src/ap-table/ap-table.vue.mjs +107 -107
- package/es/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/es/src/ap-table/constants.d.ts +1071 -1072
- package/es/src/ap-table/constants.mjs +11 -9
- package/es/src/ap-table/hooks/use-table-paging.d.ts +14 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +115 -103
- package/es/src/ap-table/interface.d.ts +13 -4
- package/es/src/ap-table/style/ap-table.css +9 -0
- package/es/src/ap-table/utils.d.ts +597 -598
- package/es/src/ap-table/utils.mjs +44 -39
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/es/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/es/src/base-button/button.vue.d.ts +17 -12
- package/es/src/base-button/index.d.ts +30 -30
- package/es/src/basic/index.d.ts +6 -6
- package/es/src/basic/title.vue.d.ts +16 -11
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/es/src/business/ap-image/ApImage.vue.d.ts +31 -62
- package/es/src/business/ap-image/ApImage.vue2.mjs +30 -26
- package/es/src/business/ap-image/interface.d.ts +17 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/es/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +41 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +29 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +28 -0
- package/es/src/business/ap-table-modal/index.d.ts +538 -0
- package/es/src/business/ap-table-modal/index.mjs +11 -0
- package/es/src/business/ap-table-modal/interface.d.ts +63 -0
- package/es/src/business/ap-table-modal/interface.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/es/src/business/ap-table-modal/modal-title.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +50 -0
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/es/src/business/ap-table-modal/table-modal.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +177 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/es/src/business/index.d.ts +160 -152
- package/es/src/business/index.mjs +18 -16
- package/es/src/business/title/ApTitle.vue.d.ts +17 -12
- package/es/src/button/button.vue.d.ts +12 -7
- package/es/src/button/index.d.ts +2 -2
- package/es/src/check-card/group.vue.d.ts +18 -13
- package/es/src/check-card/index.vue.d.ts +16 -11
- package/es/src/config-provider/config-provider-props.d.ts +6 -4
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/config-provider.mjs +9 -9
- package/es/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/es/src/config-provider/index.d.ts +17 -17
- package/es/src/container/index.d.ts +4 -4
- package/es/src/container/scroll-container.vue.d.ts +181 -8
- package/es/src/count-down/button.vue.d.ts +4 -4
- package/es/src/count-down/index.d.ts +8 -8
- package/es/src/count-down/input.vue.d.ts +16 -11
- package/es/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/es/src/cropper/cropper-image.vue.d.ts +4 -4
- package/es/src/cropper/index.d.ts +4 -4
- package/es/src/description/index.d.ts +2 -2
- package/es/src/dropdown/dropdown.vue.d.ts +16 -11
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +5 -5
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/icon/icon.vue.d.ts +4 -5
- package/es/src/icon/index.d.ts +16 -16
- package/es/src/icon/svg-icon.vue.d.ts +4 -4
- package/es/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/es/src/icon-picker/index.d.ts +2 -2
- package/es/src/index.mjs +69 -63
- package/es/src/locale/lang/en.mjs +29 -2
- package/es/src/locale/lang/zh-cn.mjs +29 -2
- package/es/src/modal/basic.vue.d.ts +210 -5
- package/es/src/modal/components/modal-close.vue.d.ts +4 -4
- package/es/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/es/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +5 -5
- package/es/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/es/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/es/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/es/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/es/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/es/src/pro-form/pro-form.vue.d.ts +888 -15
- package/es/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/es/src/pro-form/table-form.vue.d.ts +6 -5
- package/es/src/pro-form/types/form.d.ts +4 -4
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/es/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/es/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/es/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/es/src/prompt/utils.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +2 -2
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/es/src/strength-meter/index.d.ts +2 -2
- package/es/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/es/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/es/src/theme/ap-table/ap-table.css +9 -0
- package/es/src/theme/css-var/index.mjs +23 -7
- package/es/src/transition/collapse-transition.vue.d.ts +7 -2
- package/es/src/utils/config-provider-preset.d.ts +5 -5
- package/es/src/work-order-modal/createWorkOrder.mjs +20 -12
- package/es/src/work-order-modal/help-message.vue2.mjs +21 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +64 -62
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +7 -6
- package/lib/src/ap-action/item/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
- package/lib/src/ap-action/item-modal/index.vue.d.ts +20 -14
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
- package/lib/src/ap-download/ap-download.vue.d.ts +17 -12
- package/lib/src/ap-field/checkbox/index.vue.d.ts +6 -5
- package/lib/src/ap-field/date/index.vue.d.ts +18 -12
- package/lib/src/ap-field/date-range/index.vue.d.ts +25 -19
- package/lib/src/ap-field/number/index.vue.d.ts +459 -12
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -5
- package/lib/src/ap-field/rate/index.vue.d.ts +138 -16
- package/lib/src/ap-field/segmented/index.vue.d.ts +25 -19
- package/lib/src/ap-field/select/index.vue.d.ts +597 -16
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +375 -12
- package/lib/src/ap-field/switch/index.vue.d.ts +16 -11
- package/lib/src/ap-field/text/index.vue.d.ts +19 -13
- package/lib/src/ap-field/text/password.vue.d.ts +19 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +7 -6
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1008 -12
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.d.ts +12 -7
- package/lib/src/ap-form/ap-form.vue.d.ts +884 -13
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
- package/lib/src/ap-form/items/date/index.vue.d.ts +40 -35
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +39 -34
- package/lib/src/ap-form/items/number/index.vue.d.ts +583 -27
- package/lib/src/ap-form/items/radio/index.vue.d.ts +217 -13
- package/lib/src/ap-form/items/select/index.vue.d.ts +43 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +24 -19
- package/lib/src/ap-form/items/text/index.vue.d.ts +591 -25
- package/lib/src/ap-form/items/text/password.vue.d.ts +658 -27
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +486 -13
- package/lib/src/ap-form/modal-form/index.vue.d.ts +650 -16
- package/lib/src/ap-form/search-form/index.vue.d.ts +652 -18
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
- package/lib/src/ap-list/index.vue.d.ts +5 -5
- package/lib/src/ap-modal/interface.d.ts +3 -3
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +5 -5
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +4 -4
- package/lib/src/ap-table/constants.d.ts +1071 -1072
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +14 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -4
- package/lib/src/ap-table/style/ap-table.css +9 -0
- package/lib/src/ap-table/utils.d.ts +597 -598
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
- package/lib/src/ap-tag/ap-tag.vue.d.ts +5 -5
- package/lib/src/base-button/button.vue.d.ts +17 -12
- package/lib/src/base-button/index.d.ts +30 -30
- package/lib/src/basic/index.d.ts +6 -6
- package/lib/src/basic/title.vue.d.ts +16 -11
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
- package/lib/src/business/ap-image/ApImage.vue.d.ts +31 -62
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +17 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +5 -5
- package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -0
- package/lib/src/business/ap-table-modal/index.d.ts +538 -0
- package/lib/src/business/ap-table-modal/index.js +1 -0
- package/lib/src/business/ap-table-modal/interface.d.ts +63 -0
- package/lib/src/business/ap-table-modal/interface.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
- package/lib/src/business/ap-table-modal/modal-title.vue.js +1 -0
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
- package/lib/src/business/index.d.ts +160 -152
- package/lib/src/business/index.js +1 -1
- package/lib/src/business/title/ApTitle.vue.d.ts +17 -12
- package/lib/src/button/button.vue.d.ts +12 -7
- package/lib/src/button/index.d.ts +2 -2
- package/lib/src/check-card/group.vue.d.ts +18 -13
- package/lib/src/check-card/index.vue.d.ts +16 -11
- package/lib/src/config-provider/config-provider-props.d.ts +6 -4
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -1
- package/lib/src/config-provider/index.d.ts +17 -17
- package/lib/src/container/index.d.ts +4 -4
- package/lib/src/container/scroll-container.vue.d.ts +181 -8
- package/lib/src/count-down/button.vue.d.ts +4 -4
- package/lib/src/count-down/index.d.ts +8 -8
- package/lib/src/count-down/input.vue.d.ts +16 -11
- package/lib/src/cropper/cropper-avatar.vue.d.ts +4 -4
- package/lib/src/cropper/cropper-image.vue.d.ts +4 -4
- package/lib/src/cropper/index.d.ts +4 -4
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/dropdown/dropdown.vue.d.ts +16 -11
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +5 -5
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/icon/icon.vue.d.ts +4 -5
- package/lib/src/icon/index.d.ts +16 -16
- package/lib/src/icon/svg-icon.vue.d.ts +4 -4
- package/lib/src/icon-picker/icon-picker.vue.d.ts +4 -4
- package/lib/src/icon-picker/index.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +210 -5
- package/lib/src/modal/components/modal-close.vue.d.ts +4 -4
- package/lib/src/modal/components/modal-footer.vue.d.ts +10 -5
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +77 -4
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +5 -5
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
- package/lib/src/pro-form/components/api-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
- package/lib/src/pro-form/components/api-tree.vue.d.ts +16 -11
- package/lib/src/pro-form/components/form-action.vue.d.ts +19 -14
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
- package/lib/src/pro-form/hooks/use-label-width.d.ts +25 -25
- package/lib/src/pro-form/pro-form.vue.d.ts +888 -15
- package/lib/src/pro-form/table-form-inner.vue.d.ts +6 -5
- package/lib/src/pro-form/table-form.vue.d.ts +6 -5
- package/lib/src/pro-form/types/form.d.ts +4 -4
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +7 -2
- package/lib/src/pro-table/components/table-footer.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-header.vue.d.ts +9 -4
- package/lib/src/pro-table/components/table-image.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
- package/lib/src/pro-table/pro-table.vue.d.ts +2049 -28
- package/lib/src/prompt/utils.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +2 -2
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
- package/lib/src/strength-meter/index.d.ts +2 -2
- package/lib/src/strength-meter/strength-meter.vue.d.ts +16 -11
- package/lib/src/theme/antd-global-overwrite/admin/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +1 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +1 -0
- package/lib/src/theme/ap-table/ap-table.css +9 -0
- package/lib/src/theme/css-var/index.js +1 -1
- package/lib/src/transition/collapse-transition.vue.d.ts +7 -2
- package/lib/src/utils/config-provider-preset.d.ts +5 -5
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +4 -4
|
@@ -5,8 +5,8 @@ import "./components/index/index.vue.mjs";
|
|
|
5
5
|
import "./components/status/index.vue.mjs";
|
|
6
6
|
import i from "../ap-form/items/date/index.vue.mjs";
|
|
7
7
|
import o from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import r from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
+
import t from "../ap-form/items/radio/index.vue.mjs";
|
|
10
10
|
import e from "../ap-form/items/select/index.vue.mjs";
|
|
11
11
|
import a from "../ap-form/items/switch/index.vue.mjs";
|
|
12
12
|
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
@@ -23,13 +23,13 @@ import x from "../ap-field/text-area/index.vue.mjs";
|
|
|
23
23
|
import b from "../ap-field/checkbox/index.vue.mjs";
|
|
24
24
|
import w from "../ap-action/group/index.vue.mjs";
|
|
25
25
|
import h from "./components/index/index.vue2.mjs";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
26
|
+
import k from "./components/status/index.vue2.mjs";
|
|
27
|
+
import A from "../ap-field/text/password.vue.mjs";
|
|
28
28
|
const Q = {
|
|
29
29
|
date: i,
|
|
30
30
|
dateRange: o,
|
|
31
|
-
number:
|
|
32
|
-
radio:
|
|
31
|
+
number: r,
|
|
32
|
+
radio: t,
|
|
33
33
|
select: e,
|
|
34
34
|
switch: a,
|
|
35
35
|
text: m,
|
|
@@ -48,8 +48,8 @@ const Q = {
|
|
|
48
48
|
checkbox: b,
|
|
49
49
|
action: w,
|
|
50
50
|
index: h,
|
|
51
|
-
status:
|
|
52
|
-
password:
|
|
51
|
+
status: k,
|
|
52
|
+
password: A
|
|
53
53
|
}, X = [
|
|
54
54
|
"action",
|
|
55
55
|
"index"
|
|
@@ -61,7 +61,9 @@ const Q = {
|
|
|
61
61
|
textOverflow: "ellipsis",
|
|
62
62
|
whiteSpace: "normal",
|
|
63
63
|
maxWidth: "100%",
|
|
64
|
-
verticalAlign: "middle"
|
|
64
|
+
verticalAlign: "middle",
|
|
65
|
+
wordBreak: "break-all",
|
|
66
|
+
flex: 1
|
|
65
67
|
};
|
|
66
68
|
export {
|
|
67
69
|
Q as apTableFormItemMap,
|
|
@@ -2,7 +2,8 @@ import { ComputedRef, Ref } from 'vue';
|
|
|
2
2
|
import { RequestData } from '../interface';
|
|
3
3
|
import { ApFormSearchFormExpose } from '../../ap-form';
|
|
4
4
|
import { DataIndex } from 'ant-design-vue/es/vc-table/interface';
|
|
5
|
-
import { TablePaginationConfig
|
|
5
|
+
import { TablePaginationConfig } from 'ant-design-vue';
|
|
6
|
+
import { FilterValue, SorterResult, TableCurrentDataSource } from 'ant-design-vue/es/table/interface';
|
|
6
7
|
export type UseTablePagingParams<DataType, ParamsType> = {
|
|
7
8
|
request: (params: any) => Promise<RequestData<DataType>>;
|
|
8
9
|
/**
|
|
@@ -51,8 +52,16 @@ export type UseTablePagingParams<DataType, ParamsType> = {
|
|
|
51
52
|
* 需要后端筛选的排序字段列表
|
|
52
53
|
*/
|
|
53
54
|
sortFields?: ComputedRef<DataIndex[]>;
|
|
55
|
+
/**
|
|
56
|
+
* 是否显示基础分页(较少的现实内容)
|
|
57
|
+
*/
|
|
58
|
+
showLessItems?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 用于显示数据总量和当前数据顺序
|
|
61
|
+
*/
|
|
62
|
+
showTotal?: boolean;
|
|
54
63
|
};
|
|
55
|
-
export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields }: UseTablePagingParams<DataType, ParamsType>) => {
|
|
64
|
+
export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal }: UseTablePagingParams<DataType, ParamsType>) => {
|
|
56
65
|
formRef: Ref<ApFormSearchFormExpose | undefined>;
|
|
57
66
|
submit: () => void;
|
|
58
67
|
reset: () => void;
|
|
@@ -74,7 +83,9 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
74
83
|
total: number;
|
|
75
84
|
showSizeChanger: boolean;
|
|
76
85
|
showQuickJumper: boolean;
|
|
77
|
-
|
|
86
|
+
showLessItems: boolean;
|
|
87
|
+
size: string;
|
|
88
|
+
showTotal: ((total: number) => import("vue/jsx-runtime").JSX.Element) | undefined;
|
|
78
89
|
};
|
|
79
90
|
onChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
|
|
80
91
|
dataSource: DataType[];
|
|
@@ -1,145 +1,157 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { parseFieldValue as
|
|
3
|
-
import { isArray as
|
|
1
|
+
import { ref as x, nextTick as Z, unref as o, onMounted as _, computed as V, createVNode as P } from "vue";
|
|
2
|
+
import { parseFieldValue as I, dataIndexToStr as k } from "../utils.mjs";
|
|
3
|
+
import { isArray as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useLocale as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
import { useLocale as te } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const le = ({
|
|
8
|
+
manual: B = !1,
|
|
9
|
+
defaultCurrent: E = 1,
|
|
10
|
+
defaultPageSize: w = 10,
|
|
11
|
+
request: M,
|
|
12
|
+
defaultParams: N = {},
|
|
13
|
+
defaultData: $ = [],
|
|
14
|
+
formatParams: C,
|
|
15
|
+
paramsValueTypeMap: y,
|
|
16
|
+
resetFieldsIgnores: O,
|
|
17
|
+
filterFields: q,
|
|
18
|
+
sortFields: J,
|
|
19
|
+
showLessItems: b = !1,
|
|
20
|
+
showTotal: L = !0
|
|
18
21
|
}) => {
|
|
19
|
-
let
|
|
20
|
-
const
|
|
22
|
+
let z = 0, p = {};
|
|
23
|
+
const Q = (e) => C ? C(e) : e, l = x(), c = x(E), f = x(w), {
|
|
24
|
+
t: S
|
|
25
|
+
} = te(), {
|
|
26
|
+
b: F
|
|
27
|
+
} = ae("ap-table"), r = x({
|
|
21
28
|
total: 0,
|
|
22
|
-
records:
|
|
29
|
+
records: $,
|
|
23
30
|
loading: !1
|
|
24
|
-
}),
|
|
25
|
-
var
|
|
26
|
-
const a =
|
|
27
|
-
|
|
31
|
+
}), R = async (e) => {
|
|
32
|
+
var n;
|
|
33
|
+
const a = Q(e), t = Date.now();
|
|
34
|
+
z = t, r.value.loading = !0;
|
|
28
35
|
try {
|
|
29
|
-
const s = await
|
|
30
|
-
...
|
|
36
|
+
const s = await M({
|
|
37
|
+
...N,
|
|
31
38
|
...a
|
|
32
39
|
});
|
|
33
|
-
|
|
40
|
+
z === t && (r.value.total = s.total || ((n = s.data) == null ? void 0 : n.length) || 0, r.value.records = [...s.data || []]);
|
|
34
41
|
} catch {
|
|
35
|
-
|
|
42
|
+
z === t && (r.value.records = [], r.value.total = 0);
|
|
36
43
|
} finally {
|
|
37
|
-
|
|
44
|
+
r.value.loading = !1;
|
|
38
45
|
}
|
|
39
|
-
},
|
|
46
|
+
}, j = (e) => {
|
|
40
47
|
const a = {};
|
|
41
|
-
return Object.entries(e).forEach(([t,
|
|
42
|
-
if (a[t] =
|
|
43
|
-
const s =
|
|
44
|
-
s && (a[t] =
|
|
48
|
+
return Object.entries(e).forEach(([t, n]) => {
|
|
49
|
+
if (a[t] = n, y && n) {
|
|
50
|
+
const s = y[t];
|
|
51
|
+
s && (a[t] = I(s, n));
|
|
45
52
|
}
|
|
46
53
|
}), a;
|
|
47
|
-
},
|
|
48
|
-
var
|
|
49
|
-
const a = ((s = (
|
|
50
|
-
Object.entries(a).forEach(([v,
|
|
51
|
-
|
|
52
|
-
}), await ((
|
|
54
|
+
}, G = async (e) => {
|
|
55
|
+
var n, s, g, d, m, u, h;
|
|
56
|
+
const a = ((s = (n = l.value) == null ? void 0 : n.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
|
|
57
|
+
Object.entries(a).forEach(([v, i]) => {
|
|
58
|
+
O && O.indexOf(v) > -1 && (t[v] = i);
|
|
59
|
+
}), await ((d = (g = l.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.setFieldsValue) == null || h.call(u, t), Z(() => {
|
|
53
60
|
e == null || e();
|
|
54
61
|
});
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
const a =
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
...
|
|
62
|
+
}, T = (e) => {
|
|
63
|
+
p = e;
|
|
64
|
+
const a = j(e);
|
|
65
|
+
R(a);
|
|
66
|
+
}, H = (e) => {
|
|
67
|
+
T({
|
|
68
|
+
...p,
|
|
62
69
|
...e
|
|
63
70
|
});
|
|
64
|
-
},
|
|
71
|
+
}, D = () => {
|
|
65
72
|
var a, t;
|
|
66
73
|
const e = ((t = (a = l.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
|
|
67
|
-
|
|
74
|
+
c.value = 1, T({
|
|
68
75
|
...e,
|
|
69
76
|
current: 1,
|
|
70
|
-
pageSize:
|
|
77
|
+
pageSize: p.pageSize || w
|
|
71
78
|
});
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
const a = o(
|
|
78
|
-
|
|
79
|
-
current:
|
|
79
|
+
}, K = () => {
|
|
80
|
+
G(D);
|
|
81
|
+
}, U = () => {
|
|
82
|
+
T(p);
|
|
83
|
+
}, W = (e) => {
|
|
84
|
+
const a = o(r).total - e, t = Math.ceil(a / o(f)), n = o(c) > t ? t : o(c);
|
|
85
|
+
H({
|
|
86
|
+
current: n > 0 ? n : 1
|
|
80
87
|
});
|
|
81
|
-
},
|
|
88
|
+
}, A = (e, a, t) => {
|
|
82
89
|
var m, u, h, v;
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
const s =
|
|
86
|
-
for (const
|
|
87
|
-
(h = o(
|
|
88
|
-
const
|
|
89
|
-
for (const
|
|
90
|
-
(v = o(
|
|
91
|
-
|
|
92
|
-
...
|
|
93
|
-
filter:
|
|
94
|
-
sort:
|
|
90
|
+
const n = ((u = (m = l.value) == null ? void 0 : m.apForm) == null ? void 0 : u.getFieldsValue(!0)) || {};
|
|
91
|
+
c.value = e.current, f.value = e.pageSize;
|
|
92
|
+
const s = ee(t) ? [...t] : [t], g = {};
|
|
93
|
+
for (const i of s)
|
|
94
|
+
(h = o(J)) != null && h.includes(i.field) && (g[k(i.field)] = i.order);
|
|
95
|
+
const d = {};
|
|
96
|
+
for (const i of Object.keys(a))
|
|
97
|
+
(v = o(q)) != null && v.includes(i) && (d[i] = a[i]);
|
|
98
|
+
T({
|
|
99
|
+
...n,
|
|
100
|
+
filter: d,
|
|
101
|
+
sort: g,
|
|
95
102
|
current: e.current,
|
|
96
103
|
pageSize: e.pageSize
|
|
97
104
|
});
|
|
98
105
|
};
|
|
99
|
-
|
|
106
|
+
_(() => {
|
|
100
107
|
var a, t;
|
|
101
108
|
const e = ((t = (a = l.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
|
|
102
|
-
if (
|
|
103
|
-
current: o(
|
|
104
|
-
pageSize: o(
|
|
109
|
+
if (p = {
|
|
110
|
+
current: o(c),
|
|
111
|
+
pageSize: o(f),
|
|
105
112
|
...e
|
|
106
|
-
}, !
|
|
107
|
-
const
|
|
108
|
-
|
|
113
|
+
}, !B) {
|
|
114
|
+
const n = j(p);
|
|
115
|
+
R(n);
|
|
109
116
|
}
|
|
110
117
|
});
|
|
111
|
-
const
|
|
112
|
-
o(
|
|
113
|
-
)}`), K = z(() => ({
|
|
114
|
-
loading: o(n).loading,
|
|
118
|
+
const X = V(() => o(r).total === 0 ? "-" : `${o(c.value)}/${Math.ceil(o(r).total / o(f))}`), Y = V(() => ({
|
|
119
|
+
loading: o(r).loading,
|
|
115
120
|
pagination: {
|
|
116
|
-
current: o(
|
|
117
|
-
pageSize: o(
|
|
118
|
-
total: o(
|
|
119
|
-
showSizeChanger: !
|
|
120
|
-
showQuickJumper: !
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
current: o(c),
|
|
122
|
+
pageSize: o(f),
|
|
123
|
+
total: o(r).total,
|
|
124
|
+
showSizeChanger: !b,
|
|
125
|
+
showQuickJumper: !b,
|
|
126
|
+
showLessItems: b,
|
|
127
|
+
size: "default",
|
|
128
|
+
showTotal: L ? (e) => P("span", {
|
|
129
|
+
class: F("pagination-total-wrapper")
|
|
130
|
+
}, [S("ap.apTable.pagination.totalLeftPrefix"), " ", P("span", {
|
|
131
|
+
class: F("pagination-count-text")
|
|
132
|
+
}, [e]), " ", S("ap.apTable.pagination.totalLeftSuffix"), P("span", {
|
|
133
|
+
class: F("pagination--total-right")
|
|
134
|
+
}, [S("ap.apTable.pagination.totalRightPrefix"), " ", P("span", {
|
|
135
|
+
class: F("pagination-count-text")
|
|
136
|
+
}, [o(X)]), " ", S("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
125
137
|
},
|
|
126
|
-
onChange:
|
|
127
|
-
dataSource: o(
|
|
138
|
+
onChange: A,
|
|
139
|
+
dataSource: o(r).records
|
|
128
140
|
}));
|
|
129
141
|
return {
|
|
130
142
|
formRef: l,
|
|
131
|
-
submit:
|
|
132
|
-
reset:
|
|
133
|
-
refresh:
|
|
134
|
-
refreshByDelete:
|
|
135
|
-
data:
|
|
136
|
-
current:
|
|
137
|
-
pageSize:
|
|
138
|
-
handleTableChange:
|
|
139
|
-
tableProps:
|
|
140
|
-
dataSource:
|
|
143
|
+
submit: D,
|
|
144
|
+
reset: K,
|
|
145
|
+
refresh: U,
|
|
146
|
+
refreshByDelete: W,
|
|
147
|
+
data: r,
|
|
148
|
+
current: c,
|
|
149
|
+
pageSize: f,
|
|
150
|
+
handleTableChange: A,
|
|
151
|
+
tableProps: Y,
|
|
152
|
+
dataSource: V(() => o(r).records)
|
|
141
153
|
};
|
|
142
154
|
};
|
|
143
155
|
export {
|
|
144
|
-
|
|
156
|
+
le as useTablePaging
|
|
145
157
|
};
|
|
@@ -162,6 +162,18 @@ export type RequestData<T> = {
|
|
|
162
162
|
data: T[] | undefined;
|
|
163
163
|
total: number;
|
|
164
164
|
} & Record<string, any>;
|
|
165
|
+
export type ApTablePaginationConfig = {
|
|
166
|
+
defaultCurrent?: number;
|
|
167
|
+
defaultPageSize?: number;
|
|
168
|
+
/**
|
|
169
|
+
* 是否显示较少页面内容
|
|
170
|
+
*/
|
|
171
|
+
showLessItems?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* 用于显示数据总量和当前数据顺序
|
|
174
|
+
*/
|
|
175
|
+
showTotal?: boolean;
|
|
176
|
+
};
|
|
165
177
|
export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection'> & {
|
|
166
178
|
/**
|
|
167
179
|
* 列配置
|
|
@@ -230,10 +242,7 @@ export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<R
|
|
|
230
242
|
/**
|
|
231
243
|
* 是否显示分页器(特定的分页器)或者指定默认的当前页和pageSize
|
|
232
244
|
*/
|
|
233
|
-
pagination?: false |
|
|
234
|
-
defaultCurrent?: number;
|
|
235
|
-
defaultPageSize?: number;
|
|
236
|
-
};
|
|
245
|
+
pagination?: false | ApTablePaginationConfig;
|
|
237
246
|
/**
|
|
238
247
|
* 自定义查询表单容器样式
|
|
239
248
|
*/
|
|
@@ -86,3 +86,12 @@
|
|
|
86
86
|
.aplus-ap-table .ant-table-cell .ant-typography {
|
|
87
87
|
margin-bottom: 0;
|
|
88
88
|
}
|
|
89
|
+
.aplus-ap-table-pagination-count-text {
|
|
90
|
+
color: var(--ap-table-pagination-total-count-color, #182948);
|
|
91
|
+
}
|
|
92
|
+
.aplus-ap-table-pagination--total-right {
|
|
93
|
+
padding-left: 12px;
|
|
94
|
+
}
|
|
95
|
+
.aplus-ap-table-pagination-total-wrapper {
|
|
96
|
+
color: var(--ap-table-pagination-total-color, #526A90);
|
|
97
|
+
}
|