@aplus-frontend/ui 0.1.21 → 0.1.23
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/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 +202 -198
- 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/hooks/use-table-paging.d.ts +2 -1
- package/es/src/ap-table/interface.d.ts +1 -1
- package/es/src/ap-table/style/ap-table.css +3 -0
- package/es/src/ap-table/utils.d.ts +586 -587
- 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 +22 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +23 -23
- 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-label/ApLabel.mjs +8 -7
- 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 +140 -131
- 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/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/form-item.vue.mjs +48 -48
- package/es/src/editable-table/hooks/use-get-columns.mjs +64 -56
- package/es/src/editable-table/index.vue.d.ts +6 -6
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/editable-table/utils.mjs +17 -17
- 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 +25 -0
- package/es/src/locale/lang/zh-cn.mjs +25 -0
- 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 +3 -0
- 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/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/hooks/use-table-paging.d.ts +2 -1
- package/lib/src/ap-table/interface.d.ts +1 -1
- package/lib/src/ap-table/style/ap-table.css +3 -0
- package/lib/src/ap-table/utils.d.ts +586 -587
- 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 +22 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- 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-label/ApLabel.js +1 -1
- 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 +140 -131
- 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/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/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +6 -6
- package/lib/src/editable-table/interface.d.ts +2 -2
- package/lib/src/editable-table/utils.js +1 -1
- 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 +3 -0
- 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 +3 -3
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { APInfoLayoutProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
slots: {
|
|
5
|
+
header?(_: {}): any;
|
|
6
|
+
title?(_: {}): any;
|
|
7
|
+
actions?(_: {}): any;
|
|
8
|
+
divider?(_: {}): any;
|
|
9
|
+
content?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
attrs: Partial<{}>;
|
|
9
13
|
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
15
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<APInfoLayoutProps>, {
|
|
11
16
|
toEl: string;
|
|
12
17
|
telDisabled: boolean;
|
|
@@ -21,21 +26,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
21
26
|
toEl: string | HTMLElement;
|
|
22
27
|
telDisabled: boolean;
|
|
23
28
|
}, {}>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
30
|
export default _default;
|
|
26
31
|
type __VLS_WithDefaults<P, D> = {
|
|
27
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
28
33
|
default: D[K];
|
|
29
34
|
}> : P[K];
|
|
30
35
|
};
|
|
31
|
-
type __VLS_Prettify<T> = {
|
|
32
|
-
[K in keyof T]: T[K];
|
|
33
|
-
} & {};
|
|
34
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
-
new (): {
|
|
36
|
-
$slots: S;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
37
|
type __VLS_TypePropsToOption<T> = {
|
|
41
38
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -45,3 +42,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
45
42
|
required: true;
|
|
46
43
|
};
|
|
47
44
|
};
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type __VLS_PrettifyLocal<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
@@ -2,8 +2,8 @@ import { ApListProps } from './interface';
|
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
3
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
|
-
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
6
|
-
props:
|
|
5
|
+
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, never>, never> & ApListProps<RecordType>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
@@ -12,7 +12,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
12
12
|
scrollToFirstRow: (selector?: string) => void;
|
|
13
13
|
}>): void;
|
|
14
14
|
attrs: any;
|
|
15
|
-
slots:
|
|
15
|
+
slots: {
|
|
16
16
|
header?(_: {
|
|
17
17
|
formIns: {
|
|
18
18
|
form: Ref< ApFormSearchFormExpose | undefined>;
|
|
@@ -27,7 +27,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
27
27
|
item: RecordType;
|
|
28
28
|
index: number;
|
|
29
29
|
}): any;
|
|
30
|
-
}
|
|
30
|
+
};
|
|
31
31
|
emit: {};
|
|
32
32
|
}>) => VNode<RendererNode, RendererElement, {
|
|
33
33
|
[key: string]: any;
|
|
@@ -35,6 +35,6 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
35
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
36
|
};
|
|
37
37
|
export default _default;
|
|
38
|
-
type
|
|
38
|
+
type __VLS_PrettifyLocal<T> = {
|
|
39
39
|
[K in keyof T]: T[K];
|
|
40
40
|
} & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { render as l, defineComponent as C, createVNode as h, mergeProps as g, h as O } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { globalConfigCached as v } from "../../config-provider/config-provider.mjs";
|
|
2
|
+
import { Modal as k } from "ant-design-vue";
|
|
3
|
+
import { ConfigProvider as y, globalConfigCached as v } from "../../config-provider/config-provider.mjs";
|
|
4
4
|
const b = (i) => {
|
|
5
5
|
let p, n;
|
|
6
6
|
function d() {
|
|
@@ -60,8 +60,8 @@ const b = (i) => {
|
|
|
60
60
|
const {
|
|
61
61
|
...e
|
|
62
62
|
} = this.props;
|
|
63
|
-
return delete e.onCancel, delete e.onOk, h(
|
|
64
|
-
default: () => [h(
|
|
63
|
+
return delete e.onCancel, delete e.onOk, h(y, v.value, {
|
|
64
|
+
default: () => [h(k, g({
|
|
65
65
|
open: this.open,
|
|
66
66
|
destroyOnClose: !0,
|
|
67
67
|
onCancel: this.handleCancel,
|
|
@@ -2,8 +2,8 @@ import { ApColumnType, ApTableProps } from './interface';
|
|
|
2
2
|
import { ColumnType } from 'ant-design-vue/es/table';
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
4
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
5
|
-
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
6
|
-
props:
|
|
5
|
+
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, never>, never> & ApTableProps<RecordType>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
@@ -22,7 +22,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
22
22
|
};
|
|
23
23
|
}>): void;
|
|
24
24
|
attrs: any;
|
|
25
|
-
slots:
|
|
25
|
+
slots: Readonly<{
|
|
26
26
|
default: any;
|
|
27
27
|
emptyText?: any;
|
|
28
28
|
expandIcon?: any;
|
|
@@ -66,7 +66,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
66
66
|
title: any;
|
|
67
67
|
column: ApColumnType;
|
|
68
68
|
}) => void;
|
|
69
|
-
}
|
|
69
|
+
};
|
|
70
70
|
emit: {};
|
|
71
71
|
}>) => VNode<RendererNode, RendererElement, {
|
|
72
72
|
[key: string]: any;
|
|
@@ -74,6 +74,6 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
74
74
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
75
75
|
};
|
|
76
76
|
export default _default;
|
|
77
|
-
type
|
|
77
|
+
type __VLS_PrettifyLocal<T> = {
|
|
78
78
|
[K in keyof T]: T[K];
|
|
79
79
|
} & {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { ApForm as
|
|
5
|
-
import { noRenderAsFormItemValueList as
|
|
1
|
+
import { defineComponent as pe, useSlots as fe, ref as me, unref as l, createVNode as g, Fragment as j, watchEffect as ge, computed as d, watch as ye, openBlock as y, createElementBlock as v, normalizeClass as B, normalizeStyle as A, mergeProps as h, createSlots as W, withCtx as b, renderList as H, createBlock as he, resolveDynamicComponent as be, renderSlot as S, createCommentVNode as Se, createElementVNode as we, normalizeProps as Re, guardReactiveProps as Ce } from "vue";
|
|
2
|
+
import { Typography as Te, Table as Fe } from "ant-design-vue";
|
|
3
|
+
import { useToken as xe } from "ant-design-vue/es/theme/internal";
|
|
4
|
+
import { ApForm as ve } from "../ap-form/index.mjs";
|
|
5
|
+
import { noRenderAsFormItemValueList as $ } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as
|
|
8
|
-
import { omit as
|
|
7
|
+
import { useTablePaging as Be } from "./hooks/use-table-paging.mjs";
|
|
8
|
+
import { omit as q, isUndefined as i, isBoolean as Pe } from "lodash-unified";
|
|
9
9
|
import "./style/ap-table.css";
|
|
10
|
-
import { apColumnToColumn as
|
|
11
|
-
import
|
|
12
|
-
import { getRawDisplayValue as
|
|
13
|
-
import
|
|
14
|
-
import { isDef as
|
|
15
|
-
import { useLocale as
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
import { useGlobalConfig as
|
|
18
|
-
const
|
|
10
|
+
import { apColumnToColumn as Ie, getTableTitle as ke, getTableRenderType as ze, getTableRenderProps as Ne, getTableCellRenderNode as Le, getColumnOrder as U, updateFormProps as Ee, getFieldProps as Ve, getPlaceholder as Ke, getSearchFormItemRenderNode as Oe, objectToString as De } from "./utils.mjs";
|
|
11
|
+
import je from "./hooks/use-table-content-height.mjs";
|
|
12
|
+
import { getRawDisplayValue as Ae } from "../editable-table/utils.mjs";
|
|
13
|
+
import We from "./hooks/use-table-row-selection.mjs";
|
|
14
|
+
import { isDef as He } from "../utils/index.mjs";
|
|
15
|
+
import { useLocale as $e } from "../config-provider/hooks/use-locale.mjs";
|
|
16
|
+
import { useNamespace as qe } from "../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
import { useGlobalConfig as Ue } from "../config-provider/hooks/use-global-config.mjs";
|
|
18
|
+
const ua = /* @__PURE__ */ pe({
|
|
19
19
|
name: "ApTable",
|
|
20
20
|
__name: "ap-table",
|
|
21
21
|
props: {
|
|
@@ -135,240 +135,244 @@ const sa = /* @__PURE__ */ ie({
|
|
|
135
135
|
default: !1
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
-
setup(
|
|
139
|
-
expose:
|
|
138
|
+
setup(G, {
|
|
139
|
+
expose: M
|
|
140
140
|
}) {
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
t:
|
|
145
|
-
} =
|
|
146
|
-
e:
|
|
147
|
-
b:
|
|
148
|
-
} =
|
|
149
|
-
height:
|
|
150
|
-
contentRef:
|
|
151
|
-
} =
|
|
141
|
+
const e = G;
|
|
142
|
+
let P = 0;
|
|
143
|
+
const w = fe(), [, J] = xe(), {
|
|
144
|
+
t: Q
|
|
145
|
+
} = $e(), {
|
|
146
|
+
e: R,
|
|
147
|
+
b: p
|
|
148
|
+
} = qe("ap-table"), I = Ue("valueTypeMap"), {
|
|
149
|
+
height: X,
|
|
150
|
+
contentRef: Y
|
|
151
|
+
} = je(), c = me([]), Z = () => {
|
|
152
152
|
var t;
|
|
153
|
-
let
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
153
|
+
let a = ((t = e.columns) == null ? void 0 : t.filter((r) => !r.hideInTable)) || [];
|
|
154
|
+
function o(r) {
|
|
155
|
+
return r.map((n) => ({
|
|
156
|
+
resizable: He(n.resizable) ? n.resizable : e.columnResizable,
|
|
157
|
+
...q(Ie(n), ["ellipsis"]),
|
|
158
|
+
title: ke(n, w.headerCell, l(J).colorPrimary),
|
|
159
|
+
customRender({
|
|
160
|
+
value: s,
|
|
161
|
+
...u
|
|
162
|
+
}) {
|
|
163
|
+
var O, D;
|
|
164
|
+
const V = ze(n), ue = Ne({
|
|
165
|
+
...n,
|
|
166
|
+
valueType: V
|
|
167
|
+
}, {
|
|
168
|
+
value: s,
|
|
169
|
+
...u
|
|
170
|
+
}), ie = Le(V, ue, u.record, l(I)), K = ((O = n.renderText) == null ? void 0 : O.call(n, {
|
|
171
|
+
value: s,
|
|
172
|
+
...u
|
|
173
|
+
})) || s, ce = n.renderText ? g(j, null, [(D = n.renderText) == null ? void 0 : D.call(n, {
|
|
174
|
+
value: s,
|
|
175
|
+
...u
|
|
176
|
+
})]) : ie;
|
|
177
|
+
let x = ne(n, K, ce);
|
|
178
|
+
return n.customRender && (x = n.customRender({
|
|
179
|
+
value: s,
|
|
180
|
+
...u,
|
|
181
|
+
column: n,
|
|
182
|
+
originalNode: x,
|
|
183
|
+
originalText: K
|
|
184
|
+
})), x;
|
|
185
|
+
},
|
|
186
|
+
children: o(n.children || [])
|
|
187
|
+
}));
|
|
188
|
+
}
|
|
189
|
+
return o(a);
|
|
186
190
|
};
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
ge(() => {
|
|
192
|
+
c.value = Z();
|
|
189
193
|
});
|
|
190
|
-
const
|
|
191
|
-
var
|
|
192
|
-
return
|
|
193
|
-
let
|
|
194
|
-
return
|
|
195
|
-
})) == null ? void 0 :
|
|
196
|
-
const n =
|
|
194
|
+
const k = d(() => {
|
|
195
|
+
var a, o, t;
|
|
196
|
+
return P++, ((t = (o = (a = e.columns) == null ? void 0 : a.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !$.includes(r.valueType))) == null ? void 0 : o.sort((r, n) => {
|
|
197
|
+
let s = U(r.order);
|
|
198
|
+
return U(n.order) - s;
|
|
199
|
+
})) == null ? void 0 : t.map((r) => {
|
|
200
|
+
const n = Ee(r, Ve(r.fieldProps, {})), s = {
|
|
197
201
|
...r,
|
|
198
202
|
fieldProps: {
|
|
199
203
|
label: r.title,
|
|
200
204
|
name: r.dataIndex,
|
|
201
205
|
...n || {},
|
|
202
206
|
// 格式化placeholder
|
|
203
|
-
placeholder:
|
|
204
|
-
_signal:
|
|
207
|
+
placeholder: Ke(Q, r.valueType, n == null ? void 0 : n.placeholder),
|
|
208
|
+
_signal: P
|
|
205
209
|
},
|
|
206
210
|
renderNode: void 0
|
|
207
211
|
};
|
|
208
|
-
return
|
|
212
|
+
return s.renderNode = Oe(s, l(I)), s;
|
|
209
213
|
})) || [];
|
|
210
|
-
}),
|
|
211
|
-
rowSelection:
|
|
212
|
-
selectedRows:
|
|
213
|
-
...
|
|
214
|
-
} =
|
|
215
|
-
...
|
|
216
|
-
rowKey:
|
|
217
|
-
dataSource:
|
|
214
|
+
}), _ = d(() => l(c).filter((a) => a.sorter === !0).map((a) => a.dataIndex).filter(Boolean)), ee = d(() => l(c).filter((a) => a.filters && !a.onFilter).map((a) => a.dataIndex).filter(Boolean)), ae = d(() => i(e.dataSource) ? m.value.records : e.dataSource), {
|
|
215
|
+
rowSelection: C,
|
|
216
|
+
selectedRows: z,
|
|
217
|
+
...T
|
|
218
|
+
} = We({
|
|
219
|
+
...e.rowSelection === !0 ? {} : e.rowSelection,
|
|
220
|
+
rowKey: e.rowKey,
|
|
221
|
+
dataSource: ae
|
|
218
222
|
}), {
|
|
219
|
-
formRef:
|
|
220
|
-
submit:
|
|
221
|
-
reset:
|
|
222
|
-
tableProps:
|
|
223
|
-
handleTableChange:
|
|
224
|
-
data:
|
|
225
|
-
} =
|
|
226
|
-
async request(
|
|
227
|
-
var
|
|
228
|
-
!
|
|
229
|
-
const
|
|
230
|
-
return (r =
|
|
231
|
-
data: (
|
|
232
|
-
total: (
|
|
223
|
+
formRef: F,
|
|
224
|
+
submit: N,
|
|
225
|
+
reset: L,
|
|
226
|
+
tableProps: f,
|
|
227
|
+
handleTableChange: oe,
|
|
228
|
+
data: m
|
|
229
|
+
} = Be({
|
|
230
|
+
async request(a) {
|
|
231
|
+
var t, r;
|
|
232
|
+
!C.value.preserveSelectedRowKeys && i(e.dataSource) && T.clearAll();
|
|
233
|
+
const o = await ((t = e.request) == null ? void 0 : t.call(e, a));
|
|
234
|
+
return (r = e.onLoad) == null || r.call(e, (o == null ? void 0 : o.data) || []), {
|
|
235
|
+
data: (o == null ? void 0 : o.data) || [],
|
|
236
|
+
total: (o == null ? void 0 : o.total) || 0
|
|
233
237
|
};
|
|
234
238
|
},
|
|
235
|
-
filterFields:
|
|
236
|
-
sortFields:
|
|
237
|
-
defaultParams:
|
|
238
|
-
defaultData:
|
|
239
|
-
manual:
|
|
240
|
-
defaultCurrent:
|
|
241
|
-
defaultPageSize:
|
|
242
|
-
formatParams:
|
|
243
|
-
showLessItems:
|
|
244
|
-
showTotal:
|
|
245
|
-
}),
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
239
|
+
filterFields: ee,
|
|
240
|
+
sortFields: _,
|
|
241
|
+
defaultParams: e.params,
|
|
242
|
+
defaultData: e.defaultData,
|
|
243
|
+
manual: e.manual,
|
|
244
|
+
defaultCurrent: e.pagination ? e.pagination.defaultCurrent : void 0,
|
|
245
|
+
defaultPageSize: e.pagination ? e.pagination.defaultPageSize : void 0,
|
|
246
|
+
formatParams: e.beforeSearchSubmit,
|
|
247
|
+
showLessItems: e.pagination ? e.pagination.showLessItems : void 0,
|
|
248
|
+
showTotal: e.pagination ? e.pagination.showTotal : void 0
|
|
249
|
+
}), re = d(() => {
|
|
250
|
+
var o, t;
|
|
251
|
+
if (e.adaptive && (m.value.total > 0 || ((o = e.dataSource) == null ? void 0 : o.length)))
|
|
248
252
|
return {
|
|
249
|
-
y: l(
|
|
250
|
-
x: ((
|
|
253
|
+
y: l(X),
|
|
254
|
+
x: ((t = e.scroll) == null ? void 0 : t.x) || "100%"
|
|
251
255
|
};
|
|
252
|
-
if (
|
|
253
|
-
return
|
|
254
|
-
}), te =
|
|
255
|
-
var
|
|
256
|
-
if (
|
|
257
|
-
return
|
|
258
|
-
if ((
|
|
256
|
+
if (e.scroll)
|
|
257
|
+
return e.scroll;
|
|
258
|
+
}), te = d(() => {
|
|
259
|
+
var a;
|
|
260
|
+
if (e.tableLayout)
|
|
261
|
+
return e.tableLayout;
|
|
262
|
+
if ((a = e.columns) != null && a.some((o) => o.ellipsis))
|
|
259
263
|
return "fixed";
|
|
260
|
-
}),
|
|
264
|
+
}), E = d(() => {
|
|
261
265
|
var r;
|
|
262
|
-
const
|
|
263
|
-
...e,
|
|
264
|
-
dataSource: a.dataSource,
|
|
265
|
-
onChange: a.onChange
|
|
266
|
-
}, o = l(R);
|
|
267
|
-
return {
|
|
266
|
+
const a = l(f), o = i(e.dataSource) ? a : {
|
|
268
267
|
...a,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
dataSource: e.dataSource,
|
|
269
|
+
onChange: e.onChange
|
|
270
|
+
}, t = l(C);
|
|
271
|
+
return {
|
|
272
|
+
...e,
|
|
273
|
+
...o,
|
|
274
|
+
rowSelection: e.rowSelection === !0 || ((r = e.rowSelection) == null ? void 0 : r.mode) === "internal" ? {
|
|
275
|
+
...t,
|
|
272
276
|
// tips 如果是前端分页,则默认会走缓存
|
|
273
|
-
preserveSelectedRowKeys:
|
|
274
|
-
} :
|
|
275
|
-
loading:
|
|
276
|
-
pagination:
|
|
277
|
-
scroll: l(
|
|
277
|
+
preserveSelectedRowKeys: i(e.dataSource) ? t.preserveSelectedRowKeys : !0
|
|
278
|
+
} : e.rowSelection,
|
|
279
|
+
loading: i(e.loading) ? l(f).loading : e.loading,
|
|
280
|
+
pagination: e.pagination === !1 ? !1 : l(f).pagination,
|
|
281
|
+
scroll: l(re)
|
|
278
282
|
};
|
|
279
|
-
}),
|
|
280
|
-
function
|
|
281
|
-
if (
|
|
282
|
-
return
|
|
283
|
-
const r =
|
|
284
|
-
return
|
|
285
|
-
copyable:
|
|
283
|
+
}), le = d(() => [p(), e.card ? null : p("wrapper"), e.adaptive ? p("adaptive") : null].filter(Boolean));
|
|
284
|
+
function ne(a, o, t) {
|
|
285
|
+
if ($.includes(a.valueType))
|
|
286
|
+
return t;
|
|
287
|
+
const r = De(o);
|
|
288
|
+
return a.copyable || a.ellipsis ? g(Te.Paragraph, {
|
|
289
|
+
copyable: a.copyable ? {
|
|
286
290
|
text: r,
|
|
287
291
|
tooltip: !1
|
|
288
292
|
} : !1,
|
|
289
|
-
ellipsis:
|
|
293
|
+
ellipsis: a.ellipsis ? Pe(a.ellipsis) ? {
|
|
290
294
|
tooltip: r
|
|
291
295
|
} : {
|
|
292
|
-
...
|
|
296
|
+
...a.ellipsis,
|
|
293
297
|
tooltip: r
|
|
294
298
|
} : !1,
|
|
295
|
-
content:
|
|
296
|
-
}, null) :
|
|
299
|
+
content: a.ellipsis ? Ae(a, o) : t
|
|
300
|
+
}, null) : t;
|
|
297
301
|
}
|
|
298
|
-
|
|
299
|
-
var
|
|
300
|
-
(
|
|
302
|
+
ye(() => l(m).loading, (a) => {
|
|
303
|
+
var o;
|
|
304
|
+
(o = e.onLoadingChange) == null || o.call(e, a);
|
|
301
305
|
});
|
|
302
|
-
function
|
|
303
|
-
var
|
|
304
|
-
(r = (
|
|
306
|
+
function se(a) {
|
|
307
|
+
var o, t, r;
|
|
308
|
+
(r = (t = (o = F.value) == null ? void 0 : o.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, a);
|
|
305
309
|
}
|
|
306
|
-
function
|
|
307
|
-
var
|
|
308
|
-
return (
|
|
310
|
+
function de() {
|
|
311
|
+
var a, o, t;
|
|
312
|
+
return (t = (o = (a = F.value) == null ? void 0 : a.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : t.call(o, !0);
|
|
309
313
|
}
|
|
310
|
-
return
|
|
311
|
-
submit: () =>
|
|
312
|
-
reset: () =>
|
|
313
|
-
setSearchFormValues:
|
|
314
|
-
getSearchFormValues:
|
|
315
|
-
dataSource:
|
|
314
|
+
return M({
|
|
315
|
+
submit: () => N(),
|
|
316
|
+
reset: () => L(),
|
|
317
|
+
setSearchFormValues: se,
|
|
318
|
+
getSearchFormValues: de,
|
|
319
|
+
dataSource: d(() => l(m).records),
|
|
316
320
|
rowSelection: {
|
|
317
|
-
selectedRows:
|
|
318
|
-
...
|
|
321
|
+
selectedRows: d(() => l(z)),
|
|
322
|
+
...T
|
|
319
323
|
}
|
|
320
|
-
}), (
|
|
321
|
-
class:
|
|
322
|
-
}, [l(
|
|
324
|
+
}), (a, o) => (y(), v("div", {
|
|
325
|
+
class: B(le.value)
|
|
326
|
+
}, [l(i)(a.dataSource) && a.searchForm !== !1 && k.value.length > 0 ? (y(), v("div", {
|
|
323
327
|
key: 0,
|
|
324
|
-
class:
|
|
325
|
-
style:
|
|
326
|
-
}, [
|
|
328
|
+
class: B(a.card ? l(R)("search-wrapper") : null),
|
|
329
|
+
style: A(a.searchFormWrapperStyle)
|
|
330
|
+
}, [g(l(ve).SearchForm, h(a.searchForm || {}, {
|
|
327
331
|
ref_key: "formRef",
|
|
328
|
-
ref:
|
|
332
|
+
ref: F,
|
|
329
333
|
"custom-reset": "",
|
|
330
|
-
onSubmit: l(
|
|
331
|
-
onReset: l(
|
|
332
|
-
"submit-loading": l(
|
|
333
|
-
}),
|
|
334
|
-
default:
|
|
335
|
-
key:
|
|
334
|
+
onSubmit: l(N),
|
|
335
|
+
onReset: l(L),
|
|
336
|
+
"submit-loading": l(f).loading
|
|
337
|
+
}), W({
|
|
338
|
+
default: b(() => [(y(!0), v(j, null, H(k.value, (t) => (y(), he(be(t.renderNode), h({
|
|
339
|
+
key: t.dataIndex,
|
|
336
340
|
ref_for: !0
|
|
337
|
-
},
|
|
338
|
-
span:
|
|
341
|
+
}, t.fieldProps || {}, {
|
|
342
|
+
span: t.span
|
|
339
343
|
}), null, 16, ["span"]))), 128))]),
|
|
340
344
|
_: 2
|
|
341
|
-
}, [
|
|
345
|
+
}, [w.searchFormExtra ? {
|
|
342
346
|
name: "extra",
|
|
343
|
-
fn:
|
|
347
|
+
fn: b(() => [S(a.$slots, "searchFormExtra")]),
|
|
344
348
|
key: "0"
|
|
345
|
-
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) :
|
|
349
|
+
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : Se("", !0), we("div", {
|
|
346
350
|
ref_key: "contentRef",
|
|
347
|
-
ref:
|
|
348
|
-
class:
|
|
349
|
-
style:
|
|
350
|
-
}, [
|
|
351
|
-
selectedRows: l(
|
|
352
|
-
selectedRowKeys: l(
|
|
353
|
-
},
|
|
354
|
-
class: l(
|
|
355
|
-
},
|
|
351
|
+
ref: Y,
|
|
352
|
+
class: B([l(R)("table-wrapper"), a.card ? l(R)("table-wrapper-card") : null]),
|
|
353
|
+
style: A(a.tableWrapperStyle)
|
|
354
|
+
}, [S(a.$slots, "title", h({
|
|
355
|
+
selectedRows: l(z),
|
|
356
|
+
selectedRowKeys: l(C).selectedRowKeys
|
|
357
|
+
}, T)), g(l(Fe), h({
|
|
358
|
+
class: l(p)("table")
|
|
359
|
+
}, E.value, {
|
|
356
360
|
"table-layout": te.value,
|
|
357
|
-
onChange: l(
|
|
358
|
-
columns:
|
|
359
|
-
onResizeColumn:
|
|
360
|
-
}),
|
|
361
|
-
summary:
|
|
362
|
-
columns:
|
|
363
|
-
records:
|
|
361
|
+
onChange: l(oe),
|
|
362
|
+
columns: c.value,
|
|
363
|
+
onResizeColumn: o[0] || (o[0] = (t, r) => r.width = t)
|
|
364
|
+
}), W({
|
|
365
|
+
summary: b(() => [S(a.$slots, "summary", {
|
|
366
|
+
columns: c.value,
|
|
367
|
+
records: E.value.dataSource
|
|
364
368
|
})]),
|
|
365
369
|
_: 2
|
|
366
|
-
}, [
|
|
370
|
+
}, [H(l(q)(w, ["title", "searchFormExtra", "headerCell"]), (t, r) => ({
|
|
367
371
|
name: r,
|
|
368
|
-
fn:
|
|
372
|
+
fn: b((n) => [S(a.$slots, r, Re(Ce(n || {})))])
|
|
369
373
|
}))]), 1040, ["class", "table-layout", "onChange", "columns"])], 6)], 2));
|
|
370
374
|
}
|
|
371
375
|
});
|
|
372
376
|
export {
|
|
373
|
-
|
|
377
|
+
ua as default
|
|
374
378
|
};
|