@aplus-frontend/ui 7.9.1 → 7.10.1
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 +1 -1
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +8 -8
- package/es/src/ag-grid/editable/form-item.vue.d.ts +1 -1
- package/es/src/ag-grid/editable/form-item.vue.mjs +82 -81
- package/es/src/ag-grid/editable/index.vue.d.ts +1 -1
- package/es/src/ag-grid/editable/index.vue.mjs +6 -6
- package/es/src/ag-grid/editable/interface.d.ts +6 -6
- package/es/src/ag-grid/hooks/use-columns-def.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-columns-def.mjs +14 -14
- package/es/src/ag-grid/hooks/use-editable-api.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-editable-api.mjs +6 -6
- package/es/src/ag-grid/hooks/use-editable-columns.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-editable-columns.mjs +28 -27
- package/es/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +4 -4
- package/es/src/ag-grid/hooks/use-pinned-row.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +1 -1
- package/es/src/ag-grid/hooks/use-row-selection.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-row-selection.mjs +1 -1
- package/es/src/ag-grid/hooks/use-search-form.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-search-form.mjs +5 -5
- package/es/src/ag-grid/hooks/use-selection-col-def.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-selection-col-def.mjs +4 -4
- package/es/src/ag-grid/hooks/use-virtual-config.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-virtual-config.mjs +5 -5
- package/es/src/ag-grid/index.d.ts +2 -2
- package/es/src/ag-grid/index.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +1 -1
- package/es/src/ag-grid/index.vue.mjs +47 -47
- package/es/src/ag-grid/interface.d.ts +4 -4
- package/es/src/ag-grid/renderer/index.d.ts +2 -2
- package/es/src/ag-grid/renderer/index.mjs +20 -20
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/index.d.ts +1 -1
- package/es/src/ap-action/index.mjs +1 -1
- package/es/src/ap-action/item/index.vue2.mjs +4 -4
- package/es/src/ap-action/item-dropdown/index.vue.mjs +3 -3
- package/es/src/ap-action/item-modal/index.vue.mjs +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +1 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.mjs +6 -6
- package/es/src/ap-button/ap-confirm-button.vue.mjs +1 -1
- package/es/src/ap-button/index.d.ts +1 -1
- package/es/src/ap-button/index.mjs +1 -1
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +1 -1
- package/es/src/ap-drawer/index.d.ts +1 -1
- package/es/src/ap-drawer/index.mjs +1 -1
- package/es/src/ap-drawer/utils/createDrawer.mjs +6 -6
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +13 -13
- package/es/src/ap-field/checkbox/read.vue.d.ts +1 -1
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +18 -18
- package/es/src/ap-field/date/read.vue.d.ts +1 -1
- package/es/src/ap-field/date/read.vue2.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-field/date-range/index.vue.mjs +26 -26
- package/es/src/ap-field/date-range/read.vue.d.ts +2 -2
- package/es/src/ap-field/date-range/read.vue2.mjs +6 -6
- package/es/src/ap-field/hooks/use-date-timezone.mjs +5 -5
- package/es/src/ap-field/hooks/use-default-presets.d.ts +2 -2
- package/es/src/ap-field/hooks/use-default-presets.mjs +2 -2
- package/es/src/ap-field/index.d.ts +19 -19
- package/es/src/ap-field/index.mjs +17 -17
- package/es/src/ap-field/interface.d.ts +6 -6
- package/es/src/ap-field/number/index.vue.d.ts +2 -2
- package/es/src/ap-field/number/index.vue.mjs +10 -10
- package/es/src/ap-field/number/read.vue2.mjs +5 -5
- package/es/src/ap-field/radio/index.vue.mjs +7 -7
- package/es/src/ap-field/rate/index.vue.mjs +3 -3
- package/es/src/ap-field/second/index.vue.d.ts +2 -2
- package/es/src/ap-field/second/index.vue.mjs +5 -5
- package/es/src/ap-field/select/index.vue.d.ts +4 -4
- package/es/src/ap-field/select/index.vue.mjs +8 -8
- package/es/src/ap-field/select/use-select-options.d.ts +1 -1
- package/es/src/ap-field/select/use-select-options.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +3 -5
- package/es/src/ap-field/slider/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +4 -4
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.d.ts +3 -3
- package/es/src/ap-field/text/password.vue.mjs +7 -7
- package/es/src/ap-field/text/read-password.vue.d.ts +3 -3
- package/es/src/ap-field/text/read-password.vue2.mjs +4 -4
- package/es/src/ap-field/text/read.vue.d.ts +3 -3
- package/es/src/ap-field/text-area/index.vue.d.ts +4 -4
- package/es/src/ap-field/text-area/index.vue.mjs +6 -6
- package/es/src/ap-field/text-area/read.vue.d.ts +3 -3
- package/es/src/ap-field/tree-select/index.vue.d.ts +5 -5
- package/es/src/ap-field/tree-select/index.vue.mjs +1 -1
- package/es/src/ap-field/tree-select/read.vue2.mjs +5 -5
- package/es/src/ap-field/tree-select/use-request.d.ts +1 -1
- package/es/src/ap-field/tree-select/use-request.mjs +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +73 -71
- package/es/src/ap-form/dependency/index.vue.mjs +5 -5
- package/es/src/ap-form/drawer-form/index.vue.d.ts +13 -13
- package/es/src/ap-form/drawer-form/index.vue.mjs +10 -10
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/hooks/use-watch.mjs +7 -7
- package/es/src/ap-form/index.d.ts +6 -6
- package/es/src/ap-form/index.mjs +6 -6
- package/es/src/ap-form/interface.d.ts +6 -2
- package/es/src/ap-form/item/index.vue.d.ts +26 -26
- package/es/src/ap-form/item/index.vue.mjs +19 -19
- package/es/src/ap-form/item-group/index.vue.mjs +7 -7
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/index.d.ts +4 -4
- package/es/src/ap-form/items/index.mjs +4 -4
- package/es/src/ap-form/items/number/index.vue.d.ts +18 -18
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +32 -32
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/index.d.ts +1 -1
- package/es/src/ap-form/items/text/index.mjs +1 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +28 -28
- package/es/src/ap-form/items/text/index.vue2.mjs +5 -5
- package/es/src/ap-form/items/text/password.vue.d.ts +28 -28
- package/es/src/ap-form/items/text/password.vue.mjs +5 -5
- package/es/src/ap-form/items/text-area/index.vue.d.ts +14 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +4 -4
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/list/index.vue.mjs +4 -4
- package/es/src/ap-form/modal-form/index.vue.d.ts +13 -13
- package/es/src/ap-form/modal-form/index.vue.mjs +6 -6
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +3 -3
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +1 -1
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +6 -6
- package/es/src/ap-form/search-form/index.vue.d.ts +8 -8
- package/es/src/ap-form/search-form/index.vue.mjs +21 -21
- package/es/src/ap-form/search-form/utils.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +7 -7
- package/es/src/ap-form/style/item-text-group.mjs +8 -23
- package/es/src/ap-form/utils/params.d.ts +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +1 -1
- package/es/src/ap-grid/editable/form-item.vue.mjs +8 -8
- package/es/src/ap-grid/editable/index.vue.d.ts +1 -1
- package/es/src/ap-grid/editable/index.vue.mjs +14 -14
- package/es/src/ap-grid/editable/interface.d.ts +6 -6
- package/es/src/ap-grid/hooks/use-editable-columns.d.ts +2 -2
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +27 -26
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +1 -1
- package/es/src/ap-grid/hooks/use-render-columns.mjs +6 -6
- package/es/src/ap-grid/hooks/use-row-selection.mjs +6 -6
- package/es/src/ap-grid/index.d.ts +2 -2
- package/es/src/ap-grid/index.mjs +2 -2
- package/es/src/ap-grid/index.vue.mjs +48 -48
- package/es/src/ap-grid/interface.d.ts +3 -3
- package/es/src/ap-grid/utils/col.d.ts +1 -1
- package/es/src/ap-grid/utils/col.mjs +7 -7
- package/es/src/ap-grid/utils/editable.d.ts +1 -1
- package/es/src/ap-grid/utils/editable.mjs +1 -1
- package/es/src/ap-grid/utils/renderer.d.ts +1 -1
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-list/hooks/use-offline-list.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -1
- package/es/src/ap-list/index.vue.mjs +156 -115
- package/es/src/ap-list/interface.d.ts +6 -1
- package/es/src/ap-modal/index.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.mjs +7 -7
- package/es/src/ap-modal/utils/createModal.mjs +10 -10
- package/es/src/ap-modal/utils/createModalStream.mjs +4 -4
- package/es/src/ap-modal/utils/methods.mjs +4 -4
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +2 -2
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +20 -20
- package/es/src/ap-pro-card/components/divider/index.vue2.mjs +9 -9
- package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +2 -0
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +30 -26
- package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +8 -8
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +6 -6
- package/es/src/ap-pro-card/index.d.ts +2 -2
- package/es/src/ap-pro-card/index.mjs +2 -2
- package/es/src/ap-pro-card/style/divider.mjs +4 -4
- package/es/src/ap-pro-card/style/statistic.mjs +4 -4
- package/es/src/ap-pro-card/style/statistics-card.mjs +4 -4
- package/es/src/ap-table/ap-table.vue.d.ts +2 -2
- package/es/src/ap-table/ap-table.vue2.mjs +35 -35
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +15 -15
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +119 -119
- package/es/src/ap-table/constants.mjs +1 -1
- package/es/src/ap-table/context.d.ts +1 -1
- package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +1 -1
- package/es/src/ap-table/hooks/use-sticky-scroll.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.mjs +20 -20
- package/es/src/ap-table/hooks/use-table-content-height.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +13 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +168 -143
- package/es/src/ap-table/hooks/use-table-paging.d.ts +2 -2
- package/es/src/ap-table/hooks/use-table-paging.mjs +5 -5
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-row-selection.mjs +4 -4
- package/es/src/ap-table/interface.d.ts +5 -5
- package/es/src/ap-table/utils.d.ts +5 -5
- package/es/src/ap-table/utils.mjs +14 -14
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +6 -6
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-modal.d.ts +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-modal.mjs +10 -10
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.d.ts +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs +18 -18
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +6 -6
- package/es/src/business/ag-grid-modal/utils.mjs +1 -1
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +16 -16
- package/es/src/business/ap-attachment/index.mjs +3 -3
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +8 -8
- package/es/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +3 -3
- package/es/src/business/ap-button-group/interface.d.ts +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
- package/es/src/business/ap-copy/ApCopy.mjs +9 -9
- package/es/src/business/ap-descriptions/ap-descriptions.vue.d.ts +1 -1
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +2 -2
- package/es/src/business/ap-descriptions/formatter/index.d.ts +2 -2
- package/es/src/business/ap-descriptions/formatter/index.mjs +11 -11
- package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/business/ap-descriptions/helper.d.ts +1 -1
- package/es/src/business/ap-download/ap-download.vue.mjs +9 -9
- package/es/src/business/ap-download/hooks/useStyle.mjs +4 -4
- package/es/src/business/ap-download/interface.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +6 -6
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +186 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +2 -186
- package/es/src/business/ap-expand-alert/index.d.ts +1 -62
- package/es/src/business/ap-expand-alert/index.mjs +1 -7
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-export-group/convertExportField.d.ts +1 -1
- package/es/src/business/ap-export-group/handleExportDownload.mjs +4 -4
- package/es/src/business/ap-export-group/index.d.ts +1 -1
- package/es/src/business/ap-export-group/index.mjs +4 -4
- package/es/src/business/ap-image/ApImage.vue2.mjs +11 -11
- package/es/src/business/ap-image/hooks/useOss.d.ts +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +1 -1
- package/es/src/business/ap-keep-alive/index.mjs +1 -1
- package/es/src/business/ap-keep-alive/keep-alive.mjs +27 -27
- package/es/src/business/ap-keep-alive/keeper/index.mjs +16 -16
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/ApLabel.mjs +4 -4
- package/es/src/business/ap-label/constans.d.ts +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +2 -2
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-label/interface.d.ts +1 -1
- package/es/src/business/ap-ladder/components/RenderValue.mjs +1 -1
- package/es/src/business/ap-ladder/utils.d.ts +1 -1
- package/es/src/business/ap-product-info/ApProductInfo.mjs +9 -9
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +5 -5
- package/es/src/business/ap-size-input/ApSizeInput.mjs +4 -4
- package/es/src/business/ap-size-input/form-item.vue.d.ts +2 -2
- package/es/src/business/ap-size-input/form-item.vue.mjs +4 -4
- package/es/src/business/ap-size-input/index.mjs +3 -3
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +11 -11
- package/es/src/business/ap-summary/interface.d.ts +2 -2
- package/es/src/business/ap-summary/utils.d.ts +1 -1
- package/es/src/business/ap-summary/utils.mjs +7 -7
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +7 -7
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +4 -4
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +4 -4
- package/es/src/business/ap-table-modal/index.d.ts +12 -12
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +6 -6
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +4 -4
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +7 -7
- package/es/src/business/ap-tag/ap-tag-group.vue.mjs +11 -11
- package/es/src/business/ap-tag/index.d.ts +1 -1
- package/es/src/business/ap-tag/index.mjs +1 -1
- package/es/src/business/ap-title/ApTitle.vue2.mjs +4 -4
- package/es/src/business/ap-upload/apUpload.vue.d.ts +1 -1
- package/es/src/business/ap-upload/apUpload.vue.mjs +7 -7
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +18 -18
- package/es/src/business/ap-upload/components/Picture.vue2.mjs +18 -18
- package/es/src/business/ap-upload/components/SingleFile.vue2.mjs +19 -19
- package/es/src/business/ap-upload/hooks/useOss.d.ts +1 -1
- package/es/src/business/ap-upload/style/index.mjs +5 -5
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +23 -23
- package/es/src/business/ap-upload-file/hook/useInjectContext.d.ts +1 -1
- package/es/src/business/ap-upload-file/hook/useInjectContext.mjs +3 -3
- package/es/src/business/ap-upload-file/hook/useOss.d.ts +1 -1
- package/es/src/business/ap-upload-file/hook/useProps.mjs +1 -1
- package/es/src/business/ap-upload-file/interface.d.ts +1 -1
- package/es/src/business/ap-upload-file/utils/upload.d.ts +1 -1
- package/es/src/business/ap-upload-file/utils/upload.mjs +4 -4
- package/es/src/business/ap-value-select-card/index.vue2.mjs +5 -5
- package/es/src/business/ap-view/ap-view.vue2.mjs +11 -11
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +5 -5
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +13 -13
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +4 -4
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +17 -17
- package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.d.ts +1 -1
- package/es/src/business/batch-input-group/index.mjs +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +16 -16
- package/es/src/business/batch-input-group/index.vue.mjs +8 -8
- package/es/src/business/batch-input-group/interface.d.ts +2 -2
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +1 -1
- package/es/src/business/index.mjs +48 -49
- package/es/src/check-card/group.vue.mjs +4 -4
- package/es/src/check-card/index.d.ts +1 -1
- package/es/src/check-card/index.mjs +1 -1
- package/es/src/check-card/index.vue2.mjs +5 -5
- package/es/src/config-provider/config-provider-props.d.ts +3 -3
- package/es/src/config-provider/config-provider.d.ts +3 -3
- package/es/src/config-provider/config-provider.mjs +9 -9
- package/es/src/config-provider/constants.d.ts +3 -3
- package/es/src/config-provider/hooks/use-global-config.mjs +19 -19
- package/es/src/config-provider/hooks/use-locale.mjs +5 -5
- package/es/src/config-provider/index.d.ts +9 -9
- package/es/src/design-token/interface.d.ts +20 -20
- package/es/src/editable-table/form-item.vue.mjs +15 -15
- package/es/src/editable-table/hooks/use-get-columns.d.ts +2 -2
- package/es/src/editable-table/hooks/use-get-columns.mjs +36 -35
- package/es/src/editable-table/index.d.ts +1 -1
- package/es/src/editable-table/index.mjs +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +16 -16
- package/es/src/editable-table/interface.d.ts +6 -6
- package/es/src/editable-table/utils.d.ts +3 -4
- package/es/src/editable-table/utils.mjs +41 -50
- package/es/src/full-screen/index.vue.mjs +2 -2
- package/es/src/hooks/useControllableValue.mjs +1 -1
- package/es/src/hooks/useMessage.mjs +6 -6
- package/es/src/index.mjs +1 -1
- package/es/src/loading-bar/global.mjs +1 -1
- package/es/src/loading-bar/index.d.ts +1 -1
- package/es/src/loading-bar/index.mjs +1 -1
- package/es/src/loading-bar/index.vue2.mjs +4 -4
- package/es/src/locale/index.d.ts +1 -1
- package/es/src/locale/index.mjs +4 -4
- package/es/src/mask/index.vue.mjs +5 -5
- package/es/src/scroll-bar/index.vue.mjs +6 -6
- package/es/src/scroll-bar/internal.vue.mjs +1 -1
- package/es/src/scroll-view/hooks/use-scroll-back.mjs +1 -1
- package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +1 -1
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +1 -1
- package/es/src/scroll-view/index.vue.d.ts +1 -1
- package/es/src/scroll-view/index.vue.mjs +22 -22
- package/es/src/skeleton/components/desc/index.vue2.mjs +1 -1
- package/es/src/skeleton/descriptions.vue2.mjs +1 -1
- package/es/src/skeleton/index.d.ts +1 -1
- package/es/src/skeleton/index.mjs +1 -1
- package/es/src/skeleton/list-page.vue2.mjs +1 -1
- package/es/src/splitter/SplitBar.vue2.mjs +1 -1
- package/es/src/splitter/Splitter.vue2.mjs +7 -7
- package/es/src/splitter/index.d.ts +1 -1
- package/es/src/splitter/index.mjs +1 -1
- package/es/src/text/group.vue.mjs +6 -6
- package/es/src/text/index.d.ts +1 -1
- package/es/src/text/index.mjs +1 -1
- package/es/src/text/index.vue.d.ts +1 -1
- package/es/src/text/index.vue.mjs +1 -1
- package/es/src/time-ago/index.vue.mjs +3 -3
- package/es/src/utils/config-provider-preset.d.ts +16 -16
- package/es/src/utils/cssinjs/index.mjs +23 -23
- package/es/src/utils/decimal.mjs +1 -1
- package/es/src/utils/format.mjs +1 -1
- package/es/src/utils/index.mjs +7 -7
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +6 -6
- package/lib/src/ag-grid/hooks/use-columns-def.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-api.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-columns.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/hooks/use-selection-col-def.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-selection-col-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -1
- package/lib/src/ag-grid/index.d.ts +2 -2
- package/lib/src/ag-grid/index.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -4
- package/lib/src/ag-grid/renderer/index.d.ts +2 -2
- package/lib/src/ag-grid/renderer/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/index.d.ts +1 -1
- package/lib/src/ap-action/index.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/index.d.ts +1 -1
- package/lib/src/ap-button/index.js +1 -1
- package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -1
- package/lib/src/ap-drawer/index.d.ts +1 -1
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue.d.ts +2 -2
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.d.ts +2 -2
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/index.d.ts +19 -19
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +6 -6
- package/lib/src/ap-field/number/index.vue.d.ts +2 -2
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.d.ts +2 -2
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +4 -4
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +3 -5
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +4 -4
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +3 -3
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue.d.ts +3 -3
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue.d.ts +3 -3
- package/lib/src/ap-field/text-area/index.vue.d.ts +4 -4
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue.d.ts +3 -3
- package/lib/src/ap-field/tree-select/index.vue.d.ts +5 -5
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.d.ts +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +13 -13
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/index.d.ts +6 -6
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +6 -2
- package/lib/src/ap-form/item/index.vue.d.ts +26 -26
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/index.d.ts +4 -4
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +18 -18
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +32 -32
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.d.ts +1 -1
- package/lib/src/ap-form/items/text/index.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +28 -28
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +28 -28
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +14 -14
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +13 -13
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +1 -1
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +8 -8
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/style/item-text-group.js +1 -1
- package/lib/src/ap-form/utils/params.d.ts +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/interface.d.ts +6 -6
- package/lib/src/ap-grid/hooks/use-editable-columns.d.ts +2 -2
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.d.ts +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.d.ts +2 -2
- package/lib/src/ap-grid/index.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +3 -3
- package/lib/src/ap-grid/utils/col.d.ts +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.d.ts +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +6 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/utils/confirm.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-modal/utils/methods.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +2 -2
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/divider/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +2 -0
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -1
- package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/index.d.ts +2 -2
- package/lib/src/ap-pro-card/index.js +1 -1
- package/lib/src/ap-pro-card/style/divider.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +119 -119
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/context.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-sticky-scroll.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +13 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +2 -2
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -1
- package/lib/src/ap-table/interface.d.ts +5 -5
- package/lib/src/ap-table/utils.d.ts +5 -5
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-instance.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-modal.d.ts +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-modal.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.d.ts +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.js +1 -1
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/utils.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/index.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-button-group/interface.d.ts +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.d.ts +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/formatter/index.d.ts +2 -2
- package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/business/ap-descriptions/helper.d.ts +1 -1
- package/lib/src/business/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-download/hooks/useStyle.js +1 -1
- package/lib/src/business/ap-download/interface.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +1 -62
- package/lib/src/business/ap-expand-alert/index.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.d.ts +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +1 -1
- package/lib/src/business/ap-export-group/index.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.d.ts +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/index.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/ApLabel.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-label/interface.d.ts +1 -1
- package/lib/src/business/ap-ladder/components/RenderValue.js +1 -1
- package/lib/src/business/ap-ladder/utils.d.ts +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-size-input/form-item.vue.d.ts +2 -2
- package/lib/src/business/ap-size-input/form-item.vue.js +1 -1
- package/lib/src/business/ap-size-input/index.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +2 -2
- package/lib/src/business/ap-summary/utils.d.ts +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +12 -12
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +4 -4
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-tag/index.d.ts +1 -1
- package/lib/src/business/ap-tag/index.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/hooks/useOss.d.ts +1 -1
- package/lib/src/business/ap-upload/style/index.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useInjectContext.d.ts +1 -1
- package/lib/src/business/ap-upload-file/hook/useInjectContext.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useOss.d.ts +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/interface.d.ts +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +5 -5
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +4 -4
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +16 -16
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +1 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.d.ts +1 -1
- package/lib/src/check-card/index.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +3 -3
- package/lib/src/config-provider/config-provider.d.ts +3 -3
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +3 -3
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.d.ts +9 -9
- package/lib/src/design-token/interface.d.ts +20 -20
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +2 -2
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.d.ts +1 -1
- package/lib/src/editable-table/index.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -6
- package/lib/src/editable-table/utils.d.ts +3 -4
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useMessage.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/loading-bar/global.js +1 -1
- package/lib/src/loading-bar/index.d.ts +1 -1
- package/lib/src/loading-bar/index.js +1 -1
- package/lib/src/loading-bar/index.vue2.js +1 -1
- package/lib/src/locale/index.d.ts +1 -1
- package/lib/src/locale/index.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-back.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
- package/lib/src/skeleton/descriptions.vue2.js +1 -1
- package/lib/src/skeleton/index.d.ts +1 -1
- package/lib/src/skeleton/index.js +1 -1
- package/lib/src/skeleton/list-page.vue2.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/index.d.ts +1 -1
- package/lib/src/splitter/index.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.d.ts +1 -1
- package/lib/src/text/index.js +1 -1
- package/lib/src/text/index.vue.d.ts +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/time-ago/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +16 -16
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/utils/decimal.js +1 -1
- package/lib/src/utils/format.js +1 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +4 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ApFieldRead as e } from "../ap-field/index.mjs";
|
|
1
2
|
import "../ap-action/index.mjs";
|
|
2
3
|
import "../ap-form/index.mjs";
|
|
3
|
-
import { ApFieldRead as e } from "../ap-field/index.mjs";
|
|
4
4
|
import "./components/index/index.vue.mjs";
|
|
5
5
|
import "./components/status/index.vue.mjs";
|
|
6
6
|
import m from "../ap-form/items/tree-select/index.vue.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
2
2
|
import { ComputedRef, InjectionKey } from 'vue';
|
|
3
|
-
import { ApTableContextRenderConfig, ApTableProps } from './interface';
|
|
4
3
|
import { Recordable } from '../type';
|
|
5
4
|
import { ApFormSearchFormPopoverSorterItem } from '../ap-form';
|
|
5
|
+
import { ApTableContextRenderConfig, ApTableProps } from './interface';
|
|
6
6
|
type TableSize = ApTableProps['size'];
|
|
7
7
|
type ApTableContextProps<RecordType> = {
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApColumnType } from '../interface';
|
|
2
1
|
import { Recordable } from '../../type';
|
|
2
|
+
import { ApColumnType } from '../interface';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
export declare const useTableSortedAndFiltered: () => {
|
|
5
5
|
getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScrollBarExpose } from '../../scroll-bar';
|
|
2
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { ScrollBarExpose } from '../../scroll-bar';
|
|
3
3
|
export declare const useStickyScroll: (tableWrapper: Ref<HTMLElement | undefined>) => {
|
|
4
4
|
isStickyMode: ComputedRef<boolean>;
|
|
5
5
|
scrollBarRef: Ref<ScrollBarExpose | undefined, ScrollBarExpose | undefined>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import q,
|
|
4
|
-
import { useInjectApTable as L } from "../context.mjs";
|
|
5
|
-
import { isObject as T, mergeWith as A, isBoolean as P, omit as Q, isString as U, isNumber as b } from "lodash-unified";
|
|
1
|
+
import { useToken as D } from "@aplus-frontend/antdv/es/theme/internal";
|
|
2
|
+
import { isObject as v, mergeWith as A, isBoolean as G, omit as W, isString as X, isNumber as T } from "lodash-unified";
|
|
3
|
+
import { ref as q, shallowRef as H, unref as i, computed as L, watchEffect as P } from "vue";
|
|
6
4
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import
|
|
5
|
+
import "../../utils/index.mjs";
|
|
6
|
+
import Q, { customCloneColumnStates as b, getColumnStateString as U } from "../components/setting/utils.mjs";
|
|
7
|
+
import { useInjectApTable as V } from "../context.mjs";
|
|
8
8
|
import { getTableTitle as Y } from "../utils.mjs";
|
|
9
9
|
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { isDef as $ } from "../../utils/is.mjs";
|
|
@@ -20,17 +20,17 @@ function K(r, o) {
|
|
|
20
20
|
return n ? JSON.parse(n) : {};
|
|
21
21
|
}
|
|
22
22
|
function N(r, o) {
|
|
23
|
-
if (
|
|
23
|
+
if (v(r) && v(o))
|
|
24
24
|
return A({}, r, o, N);
|
|
25
25
|
}
|
|
26
26
|
const y = Number.MAX_SAFE_INTEGER;
|
|
27
27
|
function ee(r, o, n, a) {
|
|
28
|
-
return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed :
|
|
28
|
+
return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed : G(r.fixed) ? r.fixed ? "left" : void 0 : r.fixed;
|
|
29
29
|
}
|
|
30
30
|
const de = (r, o, n) => {
|
|
31
|
-
const { be: a } = Z("ap-table"), [te, B] =
|
|
32
|
-
|
|
33
|
-
), { columnsBackup: m, updateColumns: E } =
|
|
31
|
+
const { be: a } = Z("ap-table"), [te, B] = D(), l = q(n), d = H(
|
|
32
|
+
b(n)
|
|
33
|
+
), { columnsBackup: m, updateColumns: E } = V(), F = r.persistenceType || "localStorage", h = window[F];
|
|
34
34
|
function I() {
|
|
35
35
|
const e = K(
|
|
36
36
|
h,
|
|
@@ -45,7 +45,7 @@ const de = (r, o, n) => {
|
|
|
45
45
|
return R.map((f) => {
|
|
46
46
|
const k = j?.[f.key] || {}, g = {
|
|
47
47
|
key: f.key,
|
|
48
|
-
label:
|
|
48
|
+
label: X(f.title) ? Y(
|
|
49
49
|
f,
|
|
50
50
|
a("table-header", "title"),
|
|
51
51
|
void 0,
|
|
@@ -59,7 +59,7 @@ const de = (r, o, n) => {
|
|
|
59
59
|
z
|
|
60
60
|
),
|
|
61
61
|
disabled: !1,
|
|
62
|
-
...
|
|
62
|
+
...W(k, ["children", "fixed"])
|
|
63
63
|
};
|
|
64
64
|
return g.children = f.children?.length ? u(
|
|
65
65
|
f.children,
|
|
@@ -71,11 +71,11 @@ const de = (r, o, n) => {
|
|
|
71
71
|
return u(s || [], t);
|
|
72
72
|
}
|
|
73
73
|
function O(e, t) {
|
|
74
|
-
const s =
|
|
75
|
-
let u =
|
|
74
|
+
const s = T(e.order) ? e.order : y;
|
|
75
|
+
let u = T(t.order) ? t.order : y;
|
|
76
76
|
return e.fixed === "right" && t.fixed !== "right" && (u = s - 1), t.fixed === "left" && e.fixed !== "left" && (u = s - 1), s - u;
|
|
77
77
|
}
|
|
78
|
-
const p =
|
|
78
|
+
const p = L(() => i(l).every((e) => e.show));
|
|
79
79
|
function S() {
|
|
80
80
|
const e = i(l);
|
|
81
81
|
c(e, (t) => {
|
|
@@ -104,18 +104,18 @@ const de = (r, o, n) => {
|
|
|
104
104
|
}
|
|
105
105
|
function w(e) {
|
|
106
106
|
if (i(o)) {
|
|
107
|
-
const t =
|
|
107
|
+
const t = U(e);
|
|
108
108
|
h.setItem(i(o), JSON.stringify(t));
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return P(() => {
|
|
112
112
|
const e = I();
|
|
113
113
|
C(e), r.onChange?.(e), E?.(
|
|
114
|
-
|
|
114
|
+
Q(
|
|
115
115
|
i(m),
|
|
116
116
|
i(e)
|
|
117
117
|
)
|
|
118
|
-
), d.value =
|
|
118
|
+
), d.value = b(e), w(e);
|
|
119
119
|
}), {
|
|
120
120
|
columnState: l,
|
|
121
121
|
selectAll: S,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../config-provider/index.mjs";
|
|
2
1
|
import { useElementSize as m } from "@vueuse/core";
|
|
3
2
|
import { ref as u, computed as d, unref as i, onUpdated as H } from "vue";
|
|
3
|
+
import "../../config-provider/index.mjs";
|
|
4
4
|
import { useGlobalConfig as S } from "../../config-provider/hooks/use-global-config.mjs";
|
|
5
5
|
function c(t) {
|
|
6
6
|
if (!t)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
2
2
|
import { Ref, ComputedRef } from 'vue';
|
|
3
|
-
import { ApTablePaginationConfig, RequestData } from '../interface';
|
|
4
|
-
import { Recordable } from '../../type';
|
|
5
3
|
import { ApFormSearchFormExpose } from '../../ap-form';
|
|
4
|
+
import { Recordable } from '../../type';
|
|
5
|
+
import { ApTablePaginationConfig, RequestData } from '../interface';
|
|
6
6
|
import { TablePaginationConfig } from '@aplus-frontend/antdv';
|
|
7
7
|
import { FilterValue, SorterResult, TableCurrentDataSource } from '@aplus-frontend/antdv/es/table/interface';
|
|
8
8
|
import { ApColumnType } from '..';
|
|
@@ -64,6 +64,16 @@ export type UseTablePagingParams<DataType, ParamsType> = {
|
|
|
64
64
|
*/
|
|
65
65
|
onAfterRequest?: (records: DataType[]) => void;
|
|
66
66
|
};
|
|
67
|
+
export type TablePagingRequestOptions = {
|
|
68
|
+
/**
|
|
69
|
+
* 是否缓存数据(无限滚动下适用)
|
|
70
|
+
*/
|
|
71
|
+
cache?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* 单次网络请求成功后触发
|
|
74
|
+
*/
|
|
75
|
+
onSuccess?: (rawParams: Recordable, hasMore: boolean) => void;
|
|
76
|
+
};
|
|
67
77
|
export type InternalPagingType = Partial<{
|
|
68
78
|
current: number;
|
|
69
79
|
pageSize: number;
|
|
@@ -112,5 +122,6 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
112
122
|
};
|
|
113
123
|
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
114
124
|
submitWith: (resetCurrent?: boolean) => void;
|
|
125
|
+
fetchNextPageAndCache: () => void;
|
|
115
126
|
};
|
|
116
127
|
export {};
|
|
@@ -1,146 +1,170 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as de, reactive as k, unref as g, nextTick as pe, onMounted as he, watch as me, computed as O, createVNode as C } from "vue";
|
|
2
|
+
import { isArray as B, isEqualWith as Se, isUndefined as ze } from "lodash-unified";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { parseFieldValue as pe, dataIndexToStr as me, isEqualCustom as he } from "../utils.mjs";
|
|
5
|
-
import { isArray as N, isEqualWith as Se, isUndefined as ze } from "lodash-unified";
|
|
6
4
|
import "../../utils/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
5
|
+
import { parseFieldValue as Pe, dataIndexToStr as Te, isEqualCustom as be } from "../utils.mjs";
|
|
6
|
+
import { useTableSortedAndFiltered as Ce } from "./use-sorted-filtered.mjs";
|
|
7
|
+
import { useLocale as xe } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { isDef as J } from "../../utils/is.mjs";
|
|
10
|
+
const d = 1, L = 20, K = {
|
|
11
11
|
defaultCurrent: d,
|
|
12
|
-
defaultPageSize:
|
|
12
|
+
defaultPageSize: L,
|
|
13
13
|
showLessItems: !1,
|
|
14
14
|
showTotal: !0
|
|
15
15
|
};
|
|
16
|
-
function
|
|
17
|
-
return
|
|
18
|
-
...
|
|
19
|
-
...
|
|
16
|
+
function we(i) {
|
|
17
|
+
return i === !1 ? {} : i == null || i === !0 ? K : {
|
|
18
|
+
...K,
|
|
19
|
+
...i
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
return
|
|
22
|
+
function Ee(i) {
|
|
23
|
+
const f = {};
|
|
24
|
+
return i === !1 || (i === !0 || i == null ? (f.current = d, f.pageSize = L) : (f.current = i.defaultCurrent || d, f.pageSize = i.defaultPageSize || L)), f;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
manual:
|
|
28
|
-
request:
|
|
29
|
-
params:
|
|
30
|
-
defaultData:
|
|
31
|
-
formatParams:
|
|
32
|
-
paramsValueTypeMap:
|
|
33
|
-
resetFieldsIgnores:
|
|
34
|
-
filterFields:
|
|
35
|
-
sortFields:
|
|
36
|
-
namespace:
|
|
26
|
+
const Ne = ({
|
|
27
|
+
manual: i = !1,
|
|
28
|
+
request: f,
|
|
29
|
+
params: y = {},
|
|
30
|
+
defaultData: R = [],
|
|
31
|
+
formatParams: I,
|
|
32
|
+
paramsValueTypeMap: M,
|
|
33
|
+
resetFieldsIgnores: N,
|
|
34
|
+
filterFields: Q,
|
|
35
|
+
sortFields: W,
|
|
36
|
+
namespace: $ = "ap-table",
|
|
37
37
|
pagination: p,
|
|
38
|
-
onClickReset:
|
|
39
|
-
onAfterRequest:
|
|
38
|
+
onClickReset: G,
|
|
39
|
+
onAfterRequest: Z
|
|
40
40
|
}) => {
|
|
41
|
-
let
|
|
42
|
-
const
|
|
43
|
-
getColumnSFConfig:
|
|
44
|
-
setSF:
|
|
45
|
-
clearAll:
|
|
46
|
-
sortedInfo:
|
|
47
|
-
filteredInfo:
|
|
48
|
-
} =
|
|
49
|
-
t:
|
|
50
|
-
} =
|
|
41
|
+
let x = 0, s = {};
|
|
42
|
+
const H = we(p), X = (e) => I ? I(e) : e, h = de(), c = k(Ee(p)), {
|
|
43
|
+
getColumnSFConfig: Y,
|
|
44
|
+
setSF: ee,
|
|
45
|
+
clearAll: te,
|
|
46
|
+
sortedInfo: V,
|
|
47
|
+
filteredInfo: j
|
|
48
|
+
} = Ce(), {
|
|
49
|
+
t: m
|
|
50
|
+
} = xe(), {
|
|
51
51
|
b: S
|
|
52
|
-
} =
|
|
53
|
-
total:
|
|
54
|
-
records:
|
|
52
|
+
} = Fe($), a = k({
|
|
53
|
+
total: R.length,
|
|
54
|
+
records: R,
|
|
55
55
|
loading: !1
|
|
56
|
-
}), z = () =>
|
|
57
|
-
const
|
|
58
|
-
|
|
56
|
+
}), z = () => h.value?.apForm?.getFieldsValueTransformed(!0) || {}, F = async (e, t) => {
|
|
57
|
+
const n = X(e), r = Date.now(), o = t?.cache;
|
|
58
|
+
x = r, a.loading = !0;
|
|
59
59
|
try {
|
|
60
|
-
const
|
|
61
|
-
...g(
|
|
62
|
-
...
|
|
60
|
+
const u = await f({
|
|
61
|
+
...g(y),
|
|
62
|
+
...n
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
if (x === r) {
|
|
65
|
+
a.total = u.total || u.data?.length || 0, o ? a.records.push(...u.data || []) : a.records = [...u.data || []];
|
|
66
|
+
const b = a.records.length < a.total;
|
|
67
|
+
t?.onSuccess?.(e, b), a.loading = !1;
|
|
68
|
+
}
|
|
65
69
|
} catch {
|
|
66
|
-
|
|
70
|
+
x === r && !o && (a.records = [], a.total = 0), a.loading = !1;
|
|
67
71
|
} finally {
|
|
68
|
-
|
|
72
|
+
Z?.(a.records);
|
|
69
73
|
}
|
|
70
|
-
},
|
|
74
|
+
}, w = (e) => {
|
|
71
75
|
const t = {};
|
|
72
76
|
return Object.entries(e).forEach(([n, r]) => {
|
|
73
|
-
if (t[n] = r,
|
|
74
|
-
const
|
|
75
|
-
|
|
77
|
+
if (t[n] = r, M && r) {
|
|
78
|
+
const o = M[n];
|
|
79
|
+
o && (t[n] = Pe(o, r));
|
|
76
80
|
}
|
|
77
81
|
}), t;
|
|
78
|
-
},
|
|
82
|
+
}, ne = async (e) => {
|
|
79
83
|
const t = z(), n = {};
|
|
80
|
-
Object.entries(t).forEach(([r,
|
|
81
|
-
|
|
82
|
-
}), await
|
|
84
|
+
Object.entries(t).forEach(([r, o]) => {
|
|
85
|
+
N && N.indexOf(r) > -1 && (n[r] = o);
|
|
86
|
+
}), await h.value?.apForm?.resetFields(), h.value?.apForm?.setFieldsValue?.(n), pe(() => {
|
|
83
87
|
e?.();
|
|
84
88
|
});
|
|
85
89
|
}, P = (e) => {
|
|
86
|
-
|
|
87
|
-
const t =
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
+
s = e;
|
|
91
|
+
const t = w(e);
|
|
92
|
+
F(t);
|
|
93
|
+
}, re = (e) => {
|
|
90
94
|
P({
|
|
91
|
-
...
|
|
95
|
+
...s,
|
|
92
96
|
...e
|
|
93
97
|
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
};
|
|
99
|
+
let T, E = !0;
|
|
100
|
+
function U() {
|
|
101
|
+
T = void 0, E = !0;
|
|
102
|
+
}
|
|
103
|
+
const ae = () => {
|
|
104
|
+
if (!E)
|
|
105
|
+
return;
|
|
106
|
+
const e = T ? T + 1 : 2, t = {
|
|
107
|
+
...s,
|
|
108
|
+
current: e
|
|
109
|
+
};
|
|
110
|
+
s = t;
|
|
111
|
+
const n = w(t);
|
|
112
|
+
F(n, {
|
|
113
|
+
cache: !0,
|
|
114
|
+
onSuccess(r, o) {
|
|
115
|
+
T = r.current, E = o;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}, v = () => {
|
|
119
|
+
q(!0), U();
|
|
120
|
+
}, q = (e = !1) => {
|
|
97
121
|
const t = z(), n = p !== !1;
|
|
98
|
-
n && e && (
|
|
122
|
+
n && e && (c.current = d), P({
|
|
99
123
|
...t,
|
|
100
|
-
filter:
|
|
101
|
-
sort:
|
|
102
|
-
current: n ? e ? d :
|
|
103
|
-
pageSize: n ?
|
|
124
|
+
filter: s.filter,
|
|
125
|
+
sort: s.sort,
|
|
126
|
+
current: n ? e ? d : s.current || c.current : void 0,
|
|
127
|
+
pageSize: n ? s.pageSize || c.pageSize : void 0
|
|
104
128
|
});
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
P(
|
|
109
|
-
},
|
|
129
|
+
}, oe = () => {
|
|
130
|
+
te(), s.sort = {}, s.filter = {}, G?.(), ne(v), U();
|
|
131
|
+
}, A = () => {
|
|
132
|
+
P(s);
|
|
133
|
+
}, se = (e) => {
|
|
110
134
|
if (p === !1)
|
|
111
|
-
|
|
135
|
+
A();
|
|
112
136
|
else {
|
|
113
137
|
const {
|
|
114
138
|
current: t,
|
|
115
139
|
pageSize: n
|
|
116
|
-
} =
|
|
117
|
-
|
|
118
|
-
current:
|
|
140
|
+
} = c, r = a.total - e, o = Math.ceil(r / n), u = t > o ? o : t;
|
|
141
|
+
re({
|
|
142
|
+
current: u > 0 ? u : 1
|
|
119
143
|
});
|
|
120
144
|
}
|
|
121
|
-
},
|
|
145
|
+
}, D = (e, t, n) => {
|
|
122
146
|
const r = z();
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
for (const l of
|
|
126
|
-
g(
|
|
127
|
-
const
|
|
147
|
+
c.current = e.current, c.pageSize = e.pageSize, ee(t, n);
|
|
148
|
+
const o = B(n) ? [...n] : [n], u = {};
|
|
149
|
+
for (const l of o)
|
|
150
|
+
g(W)?.includes(l.columnKey || l.field) && l.order && (u[Te(l.columnKey || l.field)] = l.order);
|
|
151
|
+
const b = {};
|
|
128
152
|
for (const l of Object.keys(t))
|
|
129
|
-
g(
|
|
153
|
+
g(Q)?.includes(l) && t[l] && (b[l] = t[l]);
|
|
130
154
|
const _ = {
|
|
131
155
|
...r,
|
|
132
|
-
filter:
|
|
133
|
-
sort:
|
|
156
|
+
filter: b,
|
|
157
|
+
sort: u,
|
|
134
158
|
current: e.current,
|
|
135
159
|
pageSize: e.pageSize
|
|
136
160
|
};
|
|
137
|
-
Se(
|
|
138
|
-
},
|
|
139
|
-
const r = e?.current ??
|
|
140
|
-
|
|
161
|
+
Se(s, _, be) || P(_);
|
|
162
|
+
}, ce = (e, t = j.value || {}, n = V.value || {}) => {
|
|
163
|
+
const r = e?.current ?? c.current, o = e?.pageSize ?? c.pageSize;
|
|
164
|
+
D(
|
|
141
165
|
{
|
|
142
166
|
current: r,
|
|
143
|
-
pageSize:
|
|
167
|
+
pageSize: o
|
|
144
168
|
},
|
|
145
169
|
t,
|
|
146
170
|
n,
|
|
@@ -151,101 +175,102 @@ const ye = ({
|
|
|
151
175
|
}
|
|
152
176
|
);
|
|
153
177
|
};
|
|
154
|
-
|
|
178
|
+
he(() => {
|
|
155
179
|
const e = z(), {
|
|
156
180
|
current: t,
|
|
157
181
|
pageSize: n
|
|
158
|
-
} =
|
|
159
|
-
if (
|
|
182
|
+
} = c;
|
|
183
|
+
if (s = {
|
|
160
184
|
current: t,
|
|
161
185
|
pageSize: n,
|
|
162
186
|
filter: {},
|
|
163
187
|
sort: {},
|
|
164
188
|
...e
|
|
165
|
-
}, !
|
|
166
|
-
const r =
|
|
167
|
-
|
|
189
|
+
}, !i) {
|
|
190
|
+
const r = w(s);
|
|
191
|
+
F(r);
|
|
168
192
|
}
|
|
169
|
-
}),
|
|
170
|
-
|
|
193
|
+
}), me(() => g(y), () => {
|
|
194
|
+
v();
|
|
171
195
|
}, {
|
|
172
196
|
deep: !0
|
|
173
197
|
});
|
|
174
|
-
const
|
|
198
|
+
const ie = O(() => {
|
|
175
199
|
if (a.total === 0)
|
|
176
200
|
return "-";
|
|
177
201
|
const {
|
|
178
202
|
current: e,
|
|
179
203
|
pageSize: t
|
|
180
|
-
} =
|
|
204
|
+
} = c;
|
|
181
205
|
return `${e}/${Math.ceil(a.total / t)}`;
|
|
182
206
|
});
|
|
183
|
-
function
|
|
184
|
-
|
|
207
|
+
function ue(e) {
|
|
208
|
+
B(e) && (a.records = e, a.total = e.length);
|
|
185
209
|
}
|
|
186
|
-
const
|
|
210
|
+
const le = O(() => {
|
|
187
211
|
const {
|
|
188
212
|
showLessItems: e,
|
|
189
213
|
showTotal: t,
|
|
190
214
|
showQuickJumper: n,
|
|
191
215
|
showSizeChanger: r,
|
|
192
|
-
pageSizeOptions:
|
|
193
|
-
} =
|
|
216
|
+
pageSizeOptions: o
|
|
217
|
+
} = H;
|
|
194
218
|
return {
|
|
195
219
|
loading: a.loading,
|
|
196
220
|
pagination: {
|
|
197
|
-
current:
|
|
198
|
-
pageSize:
|
|
221
|
+
current: c.current,
|
|
222
|
+
pageSize: c.pageSize,
|
|
199
223
|
total: a.total,
|
|
200
|
-
showSizeChanger:
|
|
201
|
-
showQuickJumper:
|
|
224
|
+
showSizeChanger: J(r) ? r : !e,
|
|
225
|
+
showQuickJumper: J(n) ? n : !e,
|
|
202
226
|
showLessItems: e,
|
|
203
227
|
size: "default",
|
|
204
|
-
pageSizeOptions: ze(
|
|
205
|
-
showTotal: t ? (
|
|
228
|
+
pageSizeOptions: ze(o) ? ["10", "20", "50", "100"] : o,
|
|
229
|
+
showTotal: t ? (u) => C("span", {
|
|
206
230
|
class: S("pagination-total-wrapper")
|
|
207
|
-
}, [
|
|
231
|
+
}, [m("ap.apTable.pagination.totalLeftPrefix"), " ", C("span", {
|
|
208
232
|
class: S("pagination-count-text")
|
|
209
|
-
}, [
|
|
233
|
+
}, [u]), " ", m("ap.apTable.pagination.totalLeftSuffix"), C("span", {
|
|
210
234
|
class: S("pagination--total-right")
|
|
211
|
-
}, [
|
|
235
|
+
}, [m("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
|
|
212
236
|
class: S("pagination-count-text")
|
|
213
|
-
}, [g(
|
|
237
|
+
}, [g(ie)]), " ", m("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
214
238
|
},
|
|
215
|
-
onChange:
|
|
239
|
+
onChange: D,
|
|
216
240
|
dataSource: a.records
|
|
217
241
|
};
|
|
218
242
|
});
|
|
219
|
-
function
|
|
220
|
-
Object.assign(
|
|
243
|
+
function fe(e, t = !0) {
|
|
244
|
+
Object.assign(c, e), s.current = e.current, s.pageSize = e.pageSize, t && A();
|
|
221
245
|
}
|
|
222
|
-
function
|
|
246
|
+
function ge() {
|
|
223
247
|
return {
|
|
224
|
-
...
|
|
248
|
+
...c
|
|
225
249
|
};
|
|
226
250
|
}
|
|
227
251
|
return {
|
|
228
|
-
formRef:
|
|
229
|
-
submit:
|
|
230
|
-
reset:
|
|
231
|
-
refresh:
|
|
232
|
-
refreshByDelete:
|
|
252
|
+
formRef: h,
|
|
253
|
+
submit: v,
|
|
254
|
+
reset: oe,
|
|
255
|
+
refresh: A,
|
|
256
|
+
refreshByDelete: se,
|
|
233
257
|
data: a,
|
|
234
|
-
handleTableChange:
|
|
235
|
-
handleTableChangeOptional:
|
|
236
|
-
tableProps:
|
|
237
|
-
dataSource:
|
|
238
|
-
setDataSource:
|
|
239
|
-
getColumnSFConfig:
|
|
240
|
-
sortedInfo:
|
|
241
|
-
filteredInfo:
|
|
242
|
-
getPaging:
|
|
243
|
-
setPaging:
|
|
244
|
-
submitWith:
|
|
258
|
+
handleTableChange: D,
|
|
259
|
+
handleTableChangeOptional: ce,
|
|
260
|
+
tableProps: le,
|
|
261
|
+
dataSource: O(() => a.records),
|
|
262
|
+
setDataSource: ue,
|
|
263
|
+
getColumnSFConfig: Y,
|
|
264
|
+
sortedInfo: V,
|
|
265
|
+
filteredInfo: j,
|
|
266
|
+
getPaging: ge,
|
|
267
|
+
setPaging: fe,
|
|
268
|
+
submitWith: q,
|
|
269
|
+
fetchNextPageAndCache: ae
|
|
245
270
|
};
|
|
246
271
|
};
|
|
247
272
|
export {
|
|
248
273
|
d as DEFAULT_CURRENT,
|
|
249
|
-
|
|
250
|
-
|
|
274
|
+
L as DEFAULT_PAGE_SIZE,
|
|
275
|
+
Ne as useTablePaging
|
|
251
276
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
1
2
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { RequestData } from '../interface';
|
|
3
3
|
import { ApFormSearchFormExpose } from '../../ap-form';
|
|
4
|
-
import {
|
|
4
|
+
import { RequestData } from '../interface';
|
|
5
5
|
import { TablePaginationConfig } from '@aplus-frontend/antdv';
|
|
6
6
|
import { FilterValue, SorterResult, TableCurrentDataSource } from '@aplus-frontend/antdv/es/table/interface';
|
|
7
7
|
import { ApColumnType } from '..';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as v, nextTick as I, unref as a, onMounted as ee, computed as b, createVNode as S } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { isArray as R, isEqualWith as oe } from "lodash-unified";
|
|
2
|
+
import { isArray as R, isEqualWith as te } from "lodash-unified";
|
|
4
3
|
import "../../config-provider/index.mjs";
|
|
4
|
+
import { parseFieldValue as ae, dataIndexToStr as re, isEqualCustom as oe } from "../utils.mjs";
|
|
5
5
|
import { useTableSortedAndFiltered as ne } from "./use-sorted-filtered.mjs";
|
|
6
6
|
import { useLocale as se } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
7
|
import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -53,7 +53,7 @@ const me = ({
|
|
|
53
53
|
return Object.entries(e).forEach(([r, n]) => {
|
|
54
54
|
if (t[r] = n, z && n) {
|
|
55
55
|
const i = z[r];
|
|
56
|
-
i && (t[r] =
|
|
56
|
+
i && (t[r] = ae(i, n));
|
|
57
57
|
}
|
|
58
58
|
}), t;
|
|
59
59
|
}, W = async (e) => {
|
|
@@ -99,7 +99,7 @@ const me = ({
|
|
|
99
99
|
u.value = e.current, d.value = e.pageSize, L(t, r);
|
|
100
100
|
const i = R(r) ? [...r] : [r], p = {};
|
|
101
101
|
for (const l of i)
|
|
102
|
-
a(_)?.includes(l.columnKey || l.field) && l.order && (p[
|
|
102
|
+
a(_)?.includes(l.columnKey || l.field) && l.order && (p[re(l.columnKey || l.field)] = l.order);
|
|
103
103
|
const E = {};
|
|
104
104
|
for (const l of Object.keys(t))
|
|
105
105
|
a(N)?.includes(l) && t[l] && (E[l] = t[l]);
|
|
@@ -110,7 +110,7 @@ const me = ({
|
|
|
110
110
|
current: e.current,
|
|
111
111
|
pageSize: e.pageSize
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
te(s, O, oe) || h(O);
|
|
114
114
|
};
|
|
115
115
|
ee(() => {
|
|
116
116
|
const e = c.value?.apForm?.getFieldsValueTransformed(!0) || {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableRowSelection } from '@aplus-frontend/antdv/lib/table/interface';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
|
-
import { ApTableProps, ApTableRowSelection } from '../interface';
|
|
4
3
|
import { Recordable } from '../../type';
|
|
4
|
+
import { ApTableProps, ApTableRowSelection } from '../interface';
|
|
5
5
|
export interface RowSelectionReturnType<RecordType = any> {
|
|
6
6
|
rowSelection: ComputedRef<TableRowSelection<RecordType>>;
|
|
7
7
|
selectedRows: Ref<RecordType[]>;
|