@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
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { ModalProps } from 'ant-design-vue';
|
|
2
|
-
export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
|
|
3
|
-
onCancel: (params: ContentRecord) =>
|
|
4
|
-
onOk: (params: ContentRecord) =>
|
|
2
|
+
export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon'> & Partial<{
|
|
3
|
+
onCancel: (params: ContentRecord) => any | Promise<any>;
|
|
4
|
+
onOk: (params: ContentRecord) => any | Promise<any>;
|
|
5
5
|
getContainer: HTMLElement;
|
|
6
6
|
content: any;
|
|
7
7
|
}>;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ie, useSlots as ce, ref as pe, unref as l, createVNode as m, Fragment as D, watchEffect as fe, computed as s, watch as me, openBlock as g, createElementBlock as x, normalizeClass as v, normalizeStyle as j, mergeProps as y, createSlots as A, withCtx as
|
|
1
|
+
import { defineComponent as ie, useSlots as ce, ref as pe, unref as l, createVNode as m, Fragment as D, watchEffect as fe, computed as s, watch as me, openBlock as g, createElementBlock as x, normalizeClass as v, normalizeStyle as j, mergeProps as y, createSlots as A, withCtx as h, renderList as W, createBlock as ge, resolveDynamicComponent as ye, renderSlot as b, createCommentVNode as he, createElementVNode as be, normalizeProps as Se, guardReactiveProps as we } from "vue";
|
|
2
2
|
import { Typography as Re, Table as Ce } from "ant-design-vue";
|
|
3
3
|
import { useToken as Te } from "ant-design-vue/es/theme/internal";
|
|
4
4
|
import { ApForm as Fe } from "../ap-form/index.mjs";
|
|
@@ -7,7 +7,7 @@ import "../config-provider/index.mjs";
|
|
|
7
7
|
import { useTablePaging as xe } from "./hooks/use-table-paging.mjs";
|
|
8
8
|
import { omit as $, isUndefined as u, isBoolean as ve } from "lodash-unified";
|
|
9
9
|
import "./style/ap-table.css";
|
|
10
|
-
import { apColumnToColumn as Be, getTableTitle as Pe, getTableRenderType as
|
|
10
|
+
import { apColumnToColumn as Be, getTableTitle as Pe, getTableRenderType as Ie, getTableRenderProps as ke, getTableCellRenderNode as ze, getColumnOrder as q, updateFormProps as Ne, getFieldProps as Le, getPlaceholder as Ee, getSearchFormItemRenderNode as Ve, objectToString as Ke } from "./utils.mjs";
|
|
11
11
|
import Oe from "./hooks/use-table-content-height.mjs";
|
|
12
12
|
import { getRawDisplayValue as De } from "../editable-table/utils.mjs";
|
|
13
13
|
import je from "./hooks/use-table-row-selection.mjs";
|
|
@@ -138,7 +138,7 @@ const sa = /* @__PURE__ */ ie({
|
|
|
138
138
|
setup(U, {
|
|
139
139
|
expose: G
|
|
140
140
|
}) {
|
|
141
|
-
const
|
|
141
|
+
const a = U;
|
|
142
142
|
let B = 0;
|
|
143
143
|
const S = ce(), [, M] = Te(), {
|
|
144
144
|
t: J
|
|
@@ -149,35 +149,35 @@ const sa = /* @__PURE__ */ ie({
|
|
|
149
149
|
height: Q,
|
|
150
150
|
contentRef: X
|
|
151
151
|
} = Oe(), i = pe([]), Y = () => {
|
|
152
|
-
var
|
|
153
|
-
let e = ((
|
|
154
|
-
return e = e.map((
|
|
155
|
-
resizable: Ae(
|
|
156
|
-
...$(Be(
|
|
157
|
-
title: Pe(
|
|
152
|
+
var t;
|
|
153
|
+
let e = ((t = a.columns) == null ? void 0 : t.filter((o) => !o.hideInTable)) || [];
|
|
154
|
+
return e = e.map((o) => ({
|
|
155
|
+
resizable: Ae(o.resizable) ? o.resizable : a.columnResizable,
|
|
156
|
+
...$(Be(o), ["ellipsis"]),
|
|
157
|
+
title: Pe(o, S.headerCell, l(M).colorPrimary),
|
|
158
158
|
customRender({
|
|
159
|
-
value:
|
|
159
|
+
value: r,
|
|
160
160
|
...n
|
|
161
161
|
}) {
|
|
162
162
|
var K, O;
|
|
163
|
-
const d =
|
|
164
|
-
...
|
|
163
|
+
const d = Ie(o), E = ke({
|
|
164
|
+
...o,
|
|
165
165
|
valueType: d
|
|
166
166
|
}, {
|
|
167
|
-
value:
|
|
167
|
+
value: r,
|
|
168
168
|
...n
|
|
169
|
-
}), de = ze(d,
|
|
170
|
-
value:
|
|
169
|
+
}), de = ze(d, E, n.record, l(P)), V = ((K = o.renderText) == null ? void 0 : K.call(o, {
|
|
170
|
+
value: r,
|
|
171
171
|
...n
|
|
172
|
-
})) ||
|
|
173
|
-
value:
|
|
172
|
+
})) || r, ue = o.renderText ? m(D, null, [(O = o.renderText) == null ? void 0 : O.call(o, {
|
|
173
|
+
value: r,
|
|
174
174
|
...n
|
|
175
175
|
})]) : de;
|
|
176
|
-
let F = le(
|
|
177
|
-
return
|
|
178
|
-
value:
|
|
176
|
+
let F = le(o, V, ue);
|
|
177
|
+
return o.customRender && (F = o.customRender({
|
|
178
|
+
value: r,
|
|
179
179
|
...n,
|
|
180
|
-
column:
|
|
180
|
+
column: o,
|
|
181
181
|
originalNode: F,
|
|
182
182
|
originalText: V
|
|
183
183
|
})), F;
|
|
@@ -187,33 +187,33 @@ const sa = /* @__PURE__ */ ie({
|
|
|
187
187
|
fe(() => {
|
|
188
188
|
i.value = Y();
|
|
189
189
|
});
|
|
190
|
-
const
|
|
191
|
-
var e,
|
|
192
|
-
return B++, ((
|
|
193
|
-
let d = q(
|
|
190
|
+
const I = s(() => {
|
|
191
|
+
var e, t, o;
|
|
192
|
+
return B++, ((o = (t = (e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !H.includes(r.valueType))) == null ? void 0 : t.sort((r, n) => {
|
|
193
|
+
let d = q(r.order);
|
|
194
194
|
return q(n.order) - d;
|
|
195
|
-
})) == null ? void 0 :
|
|
196
|
-
const n = Ne(
|
|
197
|
-
...
|
|
195
|
+
})) == null ? void 0 : o.map((r) => {
|
|
196
|
+
const n = Ne(r, Le(r.fieldProps, {})), d = {
|
|
197
|
+
...r,
|
|
198
198
|
fieldProps: {
|
|
199
|
-
label:
|
|
200
|
-
name:
|
|
199
|
+
label: r.title,
|
|
200
|
+
name: r.dataIndex,
|
|
201
201
|
...n || {},
|
|
202
202
|
// 格式化placeholder
|
|
203
|
-
placeholder:
|
|
203
|
+
placeholder: Ee(J, r.valueType, n == null ? void 0 : n.placeholder),
|
|
204
204
|
_signal: B
|
|
205
205
|
},
|
|
206
206
|
renderNode: void 0
|
|
207
207
|
};
|
|
208
208
|
return d.renderNode = Ve(d, l(P)), d;
|
|
209
209
|
})) || [];
|
|
210
|
-
}), Z = s(() => l(i).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), _ = s(() => l(i).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ee = s(() => u(
|
|
210
|
+
}), Z = s(() => l(i).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), _ = s(() => l(i).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ee = s(() => u(a.dataSource) ? f.value.records : a.dataSource), {
|
|
211
211
|
rowSelection: R,
|
|
212
|
-
selectedRows:
|
|
212
|
+
selectedRows: k,
|
|
213
213
|
...C
|
|
214
214
|
} = je({
|
|
215
|
-
...
|
|
216
|
-
rowKey:
|
|
215
|
+
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
216
|
+
rowKey: a.rowKey,
|
|
217
217
|
dataSource: ee
|
|
218
218
|
}), {
|
|
219
219
|
formRef: T,
|
|
@@ -224,86 +224,88 @@ const sa = /* @__PURE__ */ ie({
|
|
|
224
224
|
data: f
|
|
225
225
|
} = xe({
|
|
226
226
|
async request(e) {
|
|
227
|
-
var
|
|
228
|
-
!R.value.preserveSelectedRowKeys && u(
|
|
229
|
-
const
|
|
230
|
-
return (
|
|
231
|
-
data: (
|
|
232
|
-
total: (
|
|
227
|
+
var o, r;
|
|
228
|
+
!R.value.preserveSelectedRowKeys && u(a.dataSource) && C.clearAll();
|
|
229
|
+
const t = await ((o = a.request) == null ? void 0 : o.call(a, e));
|
|
230
|
+
return (r = a.onLoad) == null || r.call(a, (t == null ? void 0 : t.data) || []), {
|
|
231
|
+
data: (t == null ? void 0 : t.data) || [],
|
|
232
|
+
total: (t == null ? void 0 : t.total) || 0
|
|
233
233
|
};
|
|
234
234
|
},
|
|
235
235
|
filterFields: _,
|
|
236
236
|
sortFields: Z,
|
|
237
|
-
defaultParams:
|
|
238
|
-
defaultData:
|
|
239
|
-
manual:
|
|
240
|
-
defaultCurrent:
|
|
241
|
-
defaultPageSize:
|
|
242
|
-
formatParams:
|
|
237
|
+
defaultParams: a.params,
|
|
238
|
+
defaultData: a.defaultData,
|
|
239
|
+
manual: a.manual,
|
|
240
|
+
defaultCurrent: a.pagination ? a.pagination.defaultCurrent : void 0,
|
|
241
|
+
defaultPageSize: a.pagination ? a.pagination.defaultPageSize : void 0,
|
|
242
|
+
formatParams: a.beforeSearchSubmit,
|
|
243
|
+
showLessItems: a.pagination ? a.pagination.showLessItems : void 0,
|
|
244
|
+
showTotal: a.pagination ? a.pagination.showTotal : void 0
|
|
243
245
|
}), oe = s(() => {
|
|
244
|
-
var
|
|
245
|
-
if (
|
|
246
|
+
var t, o;
|
|
247
|
+
if (a.adaptive && (f.value.total > 0 || ((t = a.dataSource) == null ? void 0 : t.length)))
|
|
246
248
|
return {
|
|
247
249
|
y: l(Q),
|
|
248
|
-
x: ((
|
|
250
|
+
x: ((o = a.scroll) == null ? void 0 : o.x) || "100%"
|
|
249
251
|
};
|
|
250
|
-
if (
|
|
251
|
-
return
|
|
252
|
-
}),
|
|
252
|
+
if (a.scroll)
|
|
253
|
+
return a.scroll;
|
|
254
|
+
}), te = s(() => {
|
|
253
255
|
var e;
|
|
254
|
-
if (
|
|
255
|
-
return
|
|
256
|
-
if ((e =
|
|
256
|
+
if (a.tableLayout)
|
|
257
|
+
return a.tableLayout;
|
|
258
|
+
if ((e = a.columns) != null && e.some((t) => t.ellipsis))
|
|
257
259
|
return "fixed";
|
|
258
|
-
}),
|
|
259
|
-
var
|
|
260
|
-
const e = l(p),
|
|
260
|
+
}), L = s(() => {
|
|
261
|
+
var r;
|
|
262
|
+
const e = l(p), t = u(a.dataSource) ? e : {
|
|
261
263
|
...e,
|
|
262
|
-
dataSource:
|
|
263
|
-
onChange:
|
|
264
|
-
},
|
|
264
|
+
dataSource: a.dataSource,
|
|
265
|
+
onChange: a.onChange
|
|
266
|
+
}, o = l(R);
|
|
265
267
|
return {
|
|
266
|
-
...
|
|
267
|
-
...
|
|
268
|
-
rowSelection:
|
|
269
|
-
...
|
|
268
|
+
...a,
|
|
269
|
+
...t,
|
|
270
|
+
rowSelection: a.rowSelection === !0 || ((r = a.rowSelection) == null ? void 0 : r.mode) === "internal" ? {
|
|
271
|
+
...o,
|
|
270
272
|
// tips 如果是前端分页,则默认会走缓存
|
|
271
|
-
preserveSelectedRowKeys: u(
|
|
272
|
-
} :
|
|
273
|
-
loading: u(
|
|
274
|
-
pagination:
|
|
273
|
+
preserveSelectedRowKeys: u(a.dataSource) ? o.preserveSelectedRowKeys : !0
|
|
274
|
+
} : a.rowSelection,
|
|
275
|
+
loading: u(a.loading) ? l(p).loading : a.loading,
|
|
276
|
+
pagination: a.pagination === !1 ? !1 : l(p).pagination,
|
|
275
277
|
scroll: l(oe)
|
|
276
278
|
};
|
|
277
|
-
}),
|
|
278
|
-
function le(e,
|
|
279
|
+
}), re = s(() => [c(), a.card ? null : c("wrapper"), a.adaptive ? c("adaptive") : null].filter(Boolean));
|
|
280
|
+
function le(e, t, o) {
|
|
279
281
|
if (H.includes(e.valueType))
|
|
280
|
-
return
|
|
281
|
-
const
|
|
282
|
+
return o;
|
|
283
|
+
const r = Ke(t);
|
|
282
284
|
return e.copyable || e.ellipsis ? m(Re.Paragraph, {
|
|
283
285
|
copyable: e.copyable ? {
|
|
284
|
-
text:
|
|
286
|
+
text: r,
|
|
285
287
|
tooltip: !1
|
|
286
288
|
} : !1,
|
|
287
289
|
ellipsis: e.ellipsis ? ve(e.ellipsis) ? {
|
|
288
|
-
tooltip:
|
|
290
|
+
tooltip: r
|
|
289
291
|
} : {
|
|
290
292
|
...e.ellipsis,
|
|
291
|
-
tooltip:
|
|
293
|
+
tooltip: r
|
|
292
294
|
} : !1,
|
|
293
|
-
content: e.ellipsis ? De(e,
|
|
294
|
-
}, null) :
|
|
295
|
+
content: e.ellipsis ? De(e, t) : o
|
|
296
|
+
}, null) : o;
|
|
295
297
|
}
|
|
296
298
|
me(() => l(f).loading, (e) => {
|
|
297
|
-
var
|
|
298
|
-
(
|
|
299
|
+
var t;
|
|
300
|
+
(t = a.onLoadingChange) == null || t.call(a, e);
|
|
299
301
|
});
|
|
300
302
|
function ne(e) {
|
|
301
|
-
var
|
|
302
|
-
(
|
|
303
|
+
var t, o, r;
|
|
304
|
+
(r = (o = (t = T.value) == null ? void 0 : t.apForm) == null ? void 0 : o.setFieldsValue) == null || r.call(o, e);
|
|
303
305
|
}
|
|
304
306
|
function se() {
|
|
305
|
-
var e,
|
|
306
|
-
return (
|
|
307
|
+
var e, t, o;
|
|
308
|
+
return (o = (t = (e = T.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValue) == null ? void 0 : o.call(t, !0);
|
|
307
309
|
}
|
|
308
310
|
return G({
|
|
309
311
|
submit: () => z(),
|
|
@@ -312,12 +314,12 @@ const sa = /* @__PURE__ */ ie({
|
|
|
312
314
|
getSearchFormValues: se,
|
|
313
315
|
dataSource: s(() => l(f).records),
|
|
314
316
|
rowSelection: {
|
|
315
|
-
selectedRows: s(() => l(
|
|
317
|
+
selectedRows: s(() => l(k)),
|
|
316
318
|
...C
|
|
317
319
|
}
|
|
318
|
-
}), (e,
|
|
319
|
-
class: v(
|
|
320
|
-
}, [l(u)(e.dataSource) && e.searchForm !== !1 &&
|
|
320
|
+
}), (e, t) => (g(), x("div", {
|
|
321
|
+
class: v(re.value)
|
|
322
|
+
}, [l(u)(e.dataSource) && e.searchForm !== !1 && I.value.length > 0 ? (g(), x("div", {
|
|
321
323
|
key: 0,
|
|
322
324
|
class: v(e.card ? l(w)("search-wrapper") : null),
|
|
323
325
|
style: j(e.searchFormWrapperStyle)
|
|
@@ -329,43 +331,41 @@ const sa = /* @__PURE__ */ ie({
|
|
|
329
331
|
onReset: l(N),
|
|
330
332
|
"submit-loading": l(p).loading
|
|
331
333
|
}), A({
|
|
332
|
-
default:
|
|
333
|
-
key:
|
|
334
|
+
default: h(() => [(g(!0), x(D, null, W(I.value, (o) => (g(), ge(ye(o.renderNode), y({
|
|
335
|
+
key: o.dataIndex,
|
|
334
336
|
ref_for: !0
|
|
335
|
-
},
|
|
336
|
-
span:
|
|
337
|
+
}, o.fieldProps || {}, {
|
|
338
|
+
span: o.span
|
|
337
339
|
}), null, 16, ["span"]))), 128))]),
|
|
338
340
|
_: 2
|
|
339
341
|
}, [S.searchFormExtra ? {
|
|
340
342
|
name: "extra",
|
|
341
|
-
fn:
|
|
343
|
+
fn: h(() => [b(e.$slots, "searchFormExtra")]),
|
|
342
344
|
key: "0"
|
|
343
|
-
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) :
|
|
345
|
+
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : he("", !0), be("div", {
|
|
344
346
|
ref_key: "contentRef",
|
|
345
347
|
ref: X,
|
|
346
348
|
class: v([l(w)("table-wrapper"), e.card ? l(w)("table-wrapper-card") : null]),
|
|
347
349
|
style: j(e.tableWrapperStyle)
|
|
348
|
-
}, [
|
|
349
|
-
selectedRows: l(
|
|
350
|
+
}, [b(e.$slots, "title", y({
|
|
351
|
+
selectedRows: l(k),
|
|
350
352
|
selectedRowKeys: l(R).selectedRowKeys
|
|
351
353
|
}, C)), m(l(Ce), y({
|
|
352
354
|
class: l(c)("table")
|
|
353
|
-
},
|
|
354
|
-
"table-layout":
|
|
355
|
+
}, L.value, {
|
|
356
|
+
"table-layout": te.value,
|
|
355
357
|
onChange: l(ae),
|
|
356
358
|
columns: i.value,
|
|
357
|
-
onResizeColumn:
|
|
358
|
-
console.log("width is: ", a), t.width = a;
|
|
359
|
-
})
|
|
359
|
+
onResizeColumn: t[0] || (t[0] = (o, r) => r.width = o)
|
|
360
360
|
}), A({
|
|
361
|
-
summary:
|
|
361
|
+
summary: h(() => [b(e.$slots, "summary", {
|
|
362
362
|
columns: i.value,
|
|
363
|
-
records:
|
|
363
|
+
records: L.value.dataSource
|
|
364
364
|
})]),
|
|
365
365
|
_: 2
|
|
366
|
-
}, [W(l($)(S, ["title", "searchFormExtra", "headerCell"]), (
|
|
367
|
-
name:
|
|
368
|
-
fn:
|
|
366
|
+
}, [W(l($)(S, ["title", "searchFormExtra", "headerCell"]), (o, r) => ({
|
|
367
|
+
name: r,
|
|
368
|
+
fn: h((n) => [b(e.$slots, r, Se(we(n || {})))])
|
|
369
369
|
}))]), 1040, ["class", "table-layout", "onChange", "columns"])], 6)], 2));
|
|
370
370
|
}
|
|
371
371
|
});
|
|
@@ -9,13 +9,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
9
9
|
}, {}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_WithDefaults<P, D> = {
|
|
12
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
12
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
13
13
|
default: D[K];
|
|
14
14
|
}> : P[K];
|
|
15
15
|
};
|
|
16
|
-
type __VLS_Prettify<T> = {
|
|
17
|
-
[K in keyof T]: T[K];
|
|
18
|
-
} & {};
|
|
19
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
17
|
type __VLS_TypePropsToOption<T> = {
|
|
21
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -25,3 +22,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
25
22
|
required: true;
|
|
26
23
|
};
|
|
27
24
|
};
|
|
25
|
+
type __VLS_PrettifyLocal<T> = {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} & {};
|