@aplus-frontend/ui 6.26.1 → 6.26.3
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/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
- package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
- package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
- package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
- package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
- package/es/src/ag-grid/index.vue.mjs +251 -268
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
- package/es/src/ag-grid/renderer/date-range.mjs +11 -12
- package/es/src/ag-grid/renderer/date.mjs +12 -13
- package/es/src/ag-grid/renderer/radio.mjs +9 -10
- package/es/src/ag-grid/renderer/select.mjs +10 -17
- package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
- package/es/src/ap-action/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
- package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
- package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
- package/es/src/ap-button/utils/index.mjs +27 -28
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
- package/es/src/ap-descriptions/formatter/index.mjs +60 -61
- package/es/src/ap-descriptions/helper.mjs +6 -6
- package/es/src/ap-download/ap-download.vue.mjs +42 -46
- package/es/src/ap-download/hooks/index.mjs +13 -13
- package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
- package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
- package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
- package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
- package/es/src/ap-field/date/index.vue.mjs +66 -68
- package/es/src/ap-field/date-range/index.vue.mjs +99 -107
- package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
- package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
- package/es/src/ap-field/hooks/use-options.mjs +11 -11
- package/es/src/ap-field/number/helper.mjs +17 -17
- package/es/src/ap-field/number/index.vue.mjs +2 -4
- package/es/src/ap-field/radio/index.vue.mjs +38 -42
- package/es/src/ap-field/radio/read.vue2.mjs +12 -13
- package/es/src/ap-field/rate/index.vue.mjs +23 -25
- package/es/src/ap-field/segmented/index.vue.mjs +38 -39
- package/es/src/ap-field/select/index.vue.mjs +90 -107
- package/es/src/ap-field/select/read.vue2.mjs +13 -20
- package/es/src/ap-field/select/use-select-options.mjs +24 -25
- package/es/src/ap-field/slider/index.vue.mjs +28 -30
- package/es/src/ap-field/switch/index.vue.mjs +38 -39
- package/es/src/ap-field/text/index.vue2.mjs +43 -52
- package/es/src/ap-field/text/password.vue.mjs +20 -22
- package/es/src/ap-field/text-area/index.vue.mjs +25 -31
- package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
- package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
- package/es/src/ap-field/tree-select/use-request.mjs +40 -41
- package/es/src/ap-form/ap-form.vue2.mjs +127 -142
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
- package/es/src/ap-form/hooks/use-watch.mjs +25 -26
- package/es/src/ap-form/item/index.vue.mjs +76 -81
- package/es/src/ap-form/item-group/index.vue.mjs +20 -20
- package/es/src/ap-form/items/date/index.vue.mjs +18 -21
- package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +2 -4
- package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/es/src/ap-form/items/select/index.vue.mjs +30 -36
- package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
- package/es/src/ap-form/items/text/password.vue.mjs +12 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
- package/es/src/ap-form/list/index.vue.mjs +26 -26
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
- package/es/src/ap-form/provider/index.vue.mjs +24 -24
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/search-form/index.vue.mjs +96 -103
- package/es/src/ap-form/search-form/utils.mjs +17 -17
- package/es/src/ap-form/set/index.vue.mjs +16 -20
- package/es/src/ap-form/utils/get.mjs +11 -11
- package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
- package/es/src/ap-grid/editable/index.vue.mjs +102 -116
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
- package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
- package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
- package/es/src/ap-grid/index.vue.mjs +309 -334
- package/es/src/ap-grid/utils/col.mjs +78 -81
- package/es/src/ap-grid/utils/editable.mjs +17 -18
- package/es/src/ap-grid/utils/renderer.mjs +7 -11
- package/es/src/ap-grid/utils/table.mjs +45 -46
- package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
- package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
- package/es/src/ap-list/index.vue.mjs +120 -131
- package/es/src/ap-modal/utils/createModal.mjs +60 -67
- package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
- package/es/src/ap-modal/utils/methods.mjs +17 -22
- package/es/src/ap-modal/utils/util.mjs +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +114 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
- package/es/src/ap-table/ap-table.vue2.mjs +270 -303
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
- package/es/src/ap-table/components/setting/utils.mjs +44 -46
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
- package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
- package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
- package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
- package/es/src/ap-table/utils.mjs +123 -130
- package/es/src/ap-upload/apUpload.vue.mjs +43 -46
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
- package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
- package/es/src/ap-upload/hooks/useOss.mjs +35 -35
- package/es/src/ap-upload/utils/accept.mjs +37 -38
- package/es/src/ap-upload/utils/returnData.mjs +14 -14
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
- package/es/src/business/ap-appendix/utils/index.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
- package/es/src/business/ap-copy/ApCopy.mjs +38 -39
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
- package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
- package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
- package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
- package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
- package/es/src/business/ap-keep-alive/hook.mjs +14 -20
- package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/utils.mjs +25 -26
- package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
- package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
- package/es/src/business/ap-summary/utils.mjs +23 -29
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
- package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
- package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
- package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
- package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
- package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
- package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
- package/es/src/business/ap-value-select-card/utils.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
- package/es/src/business/batch-input-group/index.vue.mjs +113 -127
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
- package/es/src/business/hooks/useGridRefresh.mjs +11 -12
- package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
- package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
- package/es/src/business/hooks/usePageListApTable.mjs +27 -32
- package/es/src/business/hooks/useTableRefresh.mjs +39 -41
- package/es/src/check-card/index.vue2.mjs +51 -56
- package/es/src/config-provider/config-provider.mjs +12 -12
- package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
- package/es/src/config-provider/hooks/use-locale.mjs +17 -17
- package/es/src/editable-table/form-item.vue.mjs +82 -88
- package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
- package/es/src/editable-table/index.vue.mjs +100 -113
- package/es/src/editable-table/utils.mjs +88 -95
- package/es/src/hooks/useControllableValue.mjs +18 -18
- package/es/src/hooks/useResize.mjs +16 -16
- package/es/src/mask/index.vue.mjs +11 -11
- package/es/src/resize-observer/index.vue.mjs +20 -22
- package/es/src/scroll-bar/index.vue.mjs +2 -8
- package/es/src/scroll-bar/internal.vue.mjs +59 -65
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
- package/es/src/scroll-view/index.vue.mjs +40 -42
- package/es/src/splitter/Splitter.vue2.mjs +48 -52
- package/es/src/splitter/hooks/useItems.mjs +14 -15
- package/es/src/splitter/hooks/useResize.mjs +31 -34
- package/es/src/splitter/hooks/useSizes.mjs +34 -34
- package/es/src/text/index.vue.mjs +24 -24
- package/es/src/utils/config-provider-preset.mjs +17 -21
- package/es/src/utils/copy.mjs +9 -9
- package/es/src/utils/index.mjs +43 -43
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/renderer/checkbox.js +1 -1
- package/lib/src/ag-grid/renderer/date-range.js +1 -1
- package/lib/src/ag-grid/renderer/date.js +1 -1
- package/lib/src/ag-grid/renderer/radio.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/renderer/tree-select.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-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- 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.js +1 -1
- package/lib/src/ap-field/hooks/use-options.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- 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.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- 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.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- 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/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- 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 +3 -3
- 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 +3 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.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-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
- 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/utils/get.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.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-modal/utils/util.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- 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/select-group/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.vue2.js +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/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-sticky-scroll.js +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.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/ap-upload/utils/accept.js +1 -1
- package/lib/src/ap-upload/utils/returnData.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/utils/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +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-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/hook.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.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-summary/ap-summary.vue2.js +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-select-modal.js +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.vue2.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/useOss.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
- package/lib/src/business/ap-upload-file/utils/fileList.js +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-value-select-card/utils.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 +2 -2
- 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 +2 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/useGridRefresh.js +1 -1
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- 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/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useResize.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/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-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResize.js +1 -1
- package/lib/src/splitter/hooks/useSizes.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/copy.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/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +7 -7
- package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
- package/theme/index.css +7 -3
|
@@ -1,60 +1,57 @@
|
|
|
1
|
-
import { defineComponent as w, computed as
|
|
1
|
+
import { defineComponent as w, computed as d, createElementBlock as f, openBlock as s, normalizeClass as r, unref as e, createBlock as B, createCommentVNode as O, resolveDynamicComponent as _, createVNode as C } from "vue";
|
|
2
2
|
import { useToken as D } from "@aplus-frontend/antdv/es/theme/internal";
|
|
3
3
|
import { CaretUpOutlined as V, CaretDownOutlined as j } from "@ant-design/icons-vue";
|
|
4
4
|
import { getTableTitle as z } from "../../../ap-table/utils.mjs";
|
|
5
5
|
import "../../../config-provider/index.mjs";
|
|
6
6
|
import { useInjectSorter as A } from "../../context.mjs";
|
|
7
|
-
import { useNamespace as
|
|
7
|
+
import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
const K = /* @__PURE__ */ w({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
params: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
function
|
|
13
|
+
setup(S) {
|
|
14
|
+
const o = S, { b: v, e: a } = g("ag-custom-header"), { be: b, bem: k } = g("ap-grid"), [, I] = D(), { sorter: c, setSorter: T } = A(), n = d(() => o.params.column.sorter);
|
|
15
|
+
function h(t) {
|
|
16
16
|
return t ? t === "asc" ? "desc" : null : "asc";
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
function x() {
|
|
23
|
-
if (!s.value)
|
|
18
|
+
const m = d(() => o.params?.column?.getColId?.());
|
|
19
|
+
function y() {
|
|
20
|
+
if (!n.value)
|
|
24
21
|
return;
|
|
25
|
-
const
|
|
26
|
-
...
|
|
27
|
-
sort:
|
|
22
|
+
const l = o.params.column.getColId(), x = o.params.column.getSort(), u = h(x), p = o.params.api, N = p.getColumnState().map((i) => ({
|
|
23
|
+
...i,
|
|
24
|
+
sort: i.colId === l ? u : null
|
|
28
25
|
}));
|
|
29
|
-
|
|
26
|
+
p.applyColumnState({
|
|
30
27
|
state: N,
|
|
31
28
|
applyOrder: !0
|
|
32
|
-
}),
|
|
29
|
+
}), T({ [l]: u });
|
|
33
30
|
}
|
|
34
|
-
return (t,
|
|
35
|
-
class:
|
|
36
|
-
onClick:
|
|
31
|
+
return (t, l) => (s(), f("div", {
|
|
32
|
+
class: r([e(v)(), { sortable: n.value }, `align-${t.params.column.align || "left"}`]),
|
|
33
|
+
onClick: y
|
|
37
34
|
}, [
|
|
38
|
-
(
|
|
35
|
+
(s(), B(_(
|
|
39
36
|
e(z)(
|
|
40
37
|
t.params.column,
|
|
41
38
|
[
|
|
42
|
-
e(
|
|
43
|
-
t.params.column.tooltip ? "" : e(
|
|
39
|
+
e(b)("table-header", "title"),
|
|
40
|
+
t.params.column.tooltip ? "" : e(k)("table-header", "title", "single")
|
|
44
41
|
],
|
|
45
42
|
void 0,
|
|
46
|
-
e(
|
|
43
|
+
e(I).colorTextTertiary
|
|
47
44
|
)
|
|
48
45
|
))),
|
|
49
|
-
|
|
46
|
+
n.value ? (s(), f("span", {
|
|
50
47
|
key: 0,
|
|
51
|
-
class:
|
|
48
|
+
class: r(e(a)("sort-wrapper"))
|
|
52
49
|
}, [
|
|
53
|
-
|
|
54
|
-
class:
|
|
50
|
+
C(e(V), {
|
|
51
|
+
class: r({ [e(a)("sorter-up")]: !0, active: e(c)[m.value] === "asc" })
|
|
55
52
|
}, null, 8, ["class"]),
|
|
56
|
-
|
|
57
|
-
class:
|
|
53
|
+
C(e(j), {
|
|
54
|
+
class: r({ [e(a)("sorter-down")]: !0, active: e(c)[m.value] === "desc" })
|
|
58
55
|
}, null, 8, ["class"])
|
|
59
56
|
], 2)) : O("", !0)
|
|
60
57
|
], 2));
|
|
@@ -1,90 +1,87 @@
|
|
|
1
|
-
import { getTableRenderProps as
|
|
2
|
-
import { rendererMap as
|
|
3
|
-
import { isFunction as
|
|
4
|
-
import { computed as
|
|
1
|
+
import { getTableRenderProps as C, objectToString as w } from "../../ap-table/utils.mjs";
|
|
2
|
+
import { rendererMap as y } from "../renderer/index.mjs";
|
|
3
|
+
import { isFunction as b, isNumber as f } from "lodash-unified";
|
|
4
|
+
import { computed as v, unref as T } from "vue";
|
|
5
5
|
import "../components/body-cell/index.vue.mjs";
|
|
6
6
|
import "../components/header-cell/index.vue.mjs";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { dataIndexToField as
|
|
9
|
-
import { isDef as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
function
|
|
15
|
-
var p, f;
|
|
8
|
+
import { dataIndexToField as m } from "../../ap-grid/utils/col.mjs";
|
|
9
|
+
import { isDef as R } from "../../utils/index.mjs";
|
|
10
|
+
import { useGlobalConfig as D } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import P from "../components/body-cell/index.vue2.mjs";
|
|
13
|
+
import S from "../components/header-cell/index.vue2.mjs";
|
|
14
|
+
function _(t, a) {
|
|
16
15
|
if (a.bodyCellTooltip)
|
|
17
|
-
return
|
|
16
|
+
return b(a.bodyCellTooltip) ? a.bodyCellTooltip(t.value, t.data) : a.bodyCellTooltip;
|
|
18
17
|
if (a.renderText)
|
|
19
18
|
return a.renderText({
|
|
20
|
-
value:
|
|
21
|
-
record:
|
|
19
|
+
value: t.value,
|
|
20
|
+
record: t.data,
|
|
22
21
|
column: a,
|
|
23
|
-
text:
|
|
22
|
+
text: t.value
|
|
24
23
|
});
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
{ ...a, valueType:
|
|
24
|
+
const s = a.valueType || "text", d = y[s];
|
|
25
|
+
if (d) {
|
|
26
|
+
const p = C(
|
|
27
|
+
{ ...a, valueType: s },
|
|
29
28
|
{
|
|
30
|
-
value:
|
|
31
|
-
text:
|
|
32
|
-
record:
|
|
33
|
-
column:
|
|
34
|
-
rowIndex:
|
|
35
|
-
pinned:
|
|
29
|
+
value: t.value,
|
|
30
|
+
text: t.value,
|
|
31
|
+
record: t.data,
|
|
32
|
+
column: t.column,
|
|
33
|
+
rowIndex: t.node?.rowIndex,
|
|
34
|
+
pinned: t.node?.rowPinned
|
|
36
35
|
}
|
|
37
36
|
);
|
|
38
|
-
return
|
|
37
|
+
return d(p);
|
|
39
38
|
}
|
|
40
|
-
return
|
|
39
|
+
return w(t.value);
|
|
41
40
|
}
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
41
|
+
const E = (t, a) => {
|
|
42
|
+
const s = D("valueTypeMap"), { em: d } = I("ag-grid"), u = v(() => {
|
|
43
|
+
const c = T(t), h = (i) => {
|
|
45
44
|
const e = {
|
|
46
|
-
cellRenderer:
|
|
45
|
+
cellRenderer: P,
|
|
47
46
|
cellRendererParams: {
|
|
48
47
|
column: i,
|
|
49
|
-
extraValueType:
|
|
48
|
+
extraValueType: T(s)
|
|
50
49
|
}
|
|
51
50
|
};
|
|
52
51
|
if (i.customRender)
|
|
53
52
|
return e;
|
|
54
53
|
if (i.renderText)
|
|
55
54
|
return {
|
|
56
|
-
valueFormatter: (
|
|
57
|
-
value:
|
|
58
|
-
record:
|
|
55
|
+
valueFormatter: (r) => i.renderText({
|
|
56
|
+
value: r.value,
|
|
57
|
+
record: r.data,
|
|
59
58
|
column: i,
|
|
60
|
-
text:
|
|
59
|
+
text: r.value
|
|
61
60
|
})
|
|
62
61
|
};
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
valueFormatter: (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{ ...i, valueType: u },
|
|
62
|
+
const n = i.valueType || "text", l = y[n];
|
|
63
|
+
return l ? {
|
|
64
|
+
valueFormatter: (r) => {
|
|
65
|
+
const o = C(
|
|
66
|
+
{ ...i, valueType: n },
|
|
69
67
|
{
|
|
70
|
-
value:
|
|
71
|
-
text:
|
|
72
|
-
record:
|
|
73
|
-
column:
|
|
74
|
-
rowIndex:
|
|
75
|
-
pinned:
|
|
68
|
+
value: r.value,
|
|
69
|
+
text: r.value,
|
|
70
|
+
record: r.data,
|
|
71
|
+
column: r.column,
|
|
72
|
+
rowIndex: r.node?.rowIndex,
|
|
73
|
+
pinned: r.node?.rowPinned
|
|
76
74
|
}
|
|
77
75
|
);
|
|
78
|
-
return
|
|
76
|
+
return l(o);
|
|
79
77
|
}
|
|
80
78
|
} : e;
|
|
81
79
|
};
|
|
82
|
-
function
|
|
80
|
+
function x(i) {
|
|
83
81
|
return i.map((e) => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
colId: D(e.key) ? String(e.key) : void 0,
|
|
82
|
+
const n = e.bodyCellTooltip || !e.customRender && (e.ellipsis === !0 || e.ellipsis === "tooltip" || f(e.ellipsis)), l = {
|
|
83
|
+
field: m(e.dataIndex),
|
|
84
|
+
colId: R(e.key) ? String(e.key) : void 0,
|
|
88
85
|
sortable: !!e.sorter,
|
|
89
86
|
comparator: e.sorter === !0 ? () => 0 : e.sorter,
|
|
90
87
|
headerComponentParams: {
|
|
@@ -99,42 +96,42 @@ const J = (r, a) => {
|
|
|
99
96
|
pinned: e.fixed || null,
|
|
100
97
|
// undefined to null
|
|
101
98
|
colSpan: e.colSpan,
|
|
102
|
-
cellClass: (
|
|
103
|
-
const o = e.cellClass || "",
|
|
99
|
+
cellClass: (r) => {
|
|
100
|
+
const o = e.cellClass || "", g = b(o) ? o(r.data, r.node) : o;
|
|
104
101
|
return [
|
|
105
|
-
`${
|
|
106
|
-
|
|
102
|
+
`${d("cell", e.align || "left")}`,
|
|
103
|
+
g
|
|
107
104
|
].flat().filter(Boolean);
|
|
108
105
|
},
|
|
109
106
|
cellStyle: {
|
|
110
|
-
"--ag-grid-line-clamp":
|
|
107
|
+
"--ag-grid-line-clamp": f(e.ellipsis) ? e.ellipsis : 1
|
|
111
108
|
},
|
|
112
|
-
wrapText: !e.ellipsis ||
|
|
109
|
+
wrapText: !e.ellipsis || f(e.ellipsis) && e.ellipsis >= 2,
|
|
113
110
|
autoHeight: !0,
|
|
114
111
|
// 设置自动计算高度以自适应多行换行的场景
|
|
115
|
-
tooltipValueGetter:
|
|
116
|
-
...
|
|
112
|
+
tooltipValueGetter: n ? (r) => _(r, e) : void 0,
|
|
113
|
+
...h(e)
|
|
117
114
|
};
|
|
118
|
-
return
|
|
119
|
-
...
|
|
120
|
-
children:
|
|
121
|
-
} :
|
|
115
|
+
return e.children?.length ? {
|
|
116
|
+
...l,
|
|
117
|
+
children: x(e.children)
|
|
118
|
+
} : l;
|
|
122
119
|
});
|
|
123
120
|
}
|
|
124
|
-
return
|
|
125
|
-
}), p =
|
|
121
|
+
return x(c);
|
|
122
|
+
}), p = v(
|
|
126
123
|
() => ({
|
|
127
|
-
headerComponent:
|
|
124
|
+
headerComponent: S,
|
|
128
125
|
resizable: a.columnResizable,
|
|
129
126
|
suppressMovable: !0,
|
|
130
127
|
cellDataType: !1
|
|
131
128
|
})
|
|
132
129
|
);
|
|
133
130
|
return {
|
|
134
|
-
columnDefs:
|
|
131
|
+
columnDefs: u,
|
|
135
132
|
defaultColDef: p
|
|
136
133
|
};
|
|
137
134
|
};
|
|
138
135
|
export {
|
|
139
|
-
|
|
136
|
+
E as useColumnsDef
|
|
140
137
|
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
return ((n = e.columns) == null ? void 0 : n.filter((u) => !u.hideInTable)) || [];
|
|
1
|
+
import { ref as t, watch as l } from "vue";
|
|
2
|
+
const c = (e) => {
|
|
3
|
+
const o = t([]), u = t([]);
|
|
4
|
+
function s() {
|
|
5
|
+
return e.columns?.filter((n) => !n.hideInTable) || [];
|
|
7
6
|
}
|
|
8
|
-
return
|
|
7
|
+
return l(
|
|
9
8
|
() => e.columns,
|
|
10
9
|
() => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
t.value = n, o.value = n, (u = e.onShownColumnsChange) == null || u.call(e, n);
|
|
10
|
+
const n = s();
|
|
11
|
+
o.value = n, u.value = n, e.onShownColumnsChange?.(n);
|
|
14
12
|
},
|
|
15
13
|
{
|
|
16
14
|
deep: !0,
|
|
17
15
|
immediate: !0
|
|
18
16
|
}
|
|
19
17
|
), {
|
|
20
|
-
shownColumns:
|
|
21
|
-
shownColumnsBackup:
|
|
18
|
+
shownColumns: o,
|
|
19
|
+
shownColumnsBackup: u
|
|
22
20
|
};
|
|
23
21
|
};
|
|
24
22
|
export {
|
|
25
|
-
|
|
23
|
+
c as useColumns
|
|
26
24
|
};
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as A, computed as i, unref as o } from "vue";
|
|
2
2
|
import { isFunction as r } from "lodash-unified";
|
|
3
|
-
function
|
|
4
|
-
return !
|
|
3
|
+
function D(c, n) {
|
|
4
|
+
return !n?.length || r(c) ? [] : n.map((u) => ({ [c]: u }));
|
|
5
5
|
}
|
|
6
|
-
const m = (
|
|
7
|
-
const n =
|
|
8
|
-
|
|
9
|
-
), u = (e) => r(
|
|
6
|
+
const m = (c) => {
|
|
7
|
+
const n = A(
|
|
8
|
+
D(c.rowKey, c.defaultSelectedRowKeys)
|
|
9
|
+
), u = (e) => r(c.rowKey) ? c.rowKey(e) : e[c.rowKey], a = i(() => {
|
|
10
10
|
const e = /* @__PURE__ */ new Map();
|
|
11
11
|
return o(n).forEach((t) => {
|
|
12
12
|
e.set(u(t), t);
|
|
13
13
|
}), e;
|
|
14
14
|
});
|
|
15
|
-
function
|
|
15
|
+
function S(e) {
|
|
16
16
|
return o(a).has(u(e));
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function v(e) {
|
|
19
19
|
if (!s(e))
|
|
20
20
|
return;
|
|
21
21
|
const t = o(a);
|
|
22
22
|
t.set(u(e), e), n.value = [...t.values()];
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function w(e) {
|
|
25
25
|
const t = o(a);
|
|
26
|
-
for (const
|
|
27
|
-
s(
|
|
26
|
+
for (const l of e)
|
|
27
|
+
s(l) && t.set(u(l), l);
|
|
28
28
|
n.value = [...t.values()];
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
if (r(
|
|
30
|
+
function M(e) {
|
|
31
|
+
if (r(c.rowKey))
|
|
32
32
|
return;
|
|
33
33
|
const t = o(a);
|
|
34
|
-
for (const
|
|
35
|
-
const f = o(
|
|
36
|
-
(
|
|
37
|
-
),
|
|
38
|
-
s(f ||
|
|
34
|
+
for (const l of e) {
|
|
35
|
+
const f = o(c.dataSource).find(
|
|
36
|
+
(b) => u(b) === l
|
|
37
|
+
), d = { [c.rowKey]: l };
|
|
38
|
+
s(f || d) && t.set(l, f || d);
|
|
39
39
|
}
|
|
40
40
|
n.value = [...t.values()];
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function y(e) {
|
|
43
43
|
if (!s(e))
|
|
44
44
|
return;
|
|
45
45
|
const t = o(a);
|
|
46
46
|
t.delete(u(e)), n.value = [...t.values()];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function x(e) {
|
|
49
49
|
const t = o(a);
|
|
50
|
-
for (const
|
|
51
|
-
s(
|
|
50
|
+
for (const l of e)
|
|
51
|
+
s(l) && t.delete(u(l));
|
|
52
52
|
n.value = [...t.values()];
|
|
53
53
|
}
|
|
54
54
|
function s(e) {
|
|
55
|
-
const t =
|
|
55
|
+
const t = c.disabled;
|
|
56
56
|
return !(t ? t(e) : !1);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function K() {
|
|
59
59
|
const e = o(a);
|
|
60
|
-
o(
|
|
60
|
+
o(c.dataSource).forEach((t) => {
|
|
61
61
|
s(t) && e.set(u(t), t);
|
|
62
62
|
}), n.value = [...e.values()];
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function g(e) {
|
|
65
65
|
if (!s(e))
|
|
66
66
|
return;
|
|
67
|
-
const t = o(a),
|
|
68
|
-
t.has(
|
|
67
|
+
const t = o(a), l = u(e);
|
|
68
|
+
t.has(l) ? t.delete(l) : t.set(l, e), n.value = [...t.values()];
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function R() {
|
|
71
71
|
const e = o(a);
|
|
72
|
-
o(
|
|
72
|
+
o(c.dataSource).forEach((t) => {
|
|
73
73
|
s(t) && e.delete(u(t));
|
|
74
74
|
}), n.value = [...e.values()];
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function h() {
|
|
77
77
|
n.value = [];
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
|
-
select:
|
|
81
|
-
unSelect:
|
|
82
|
-
isSelected:
|
|
83
|
-
selectAll:
|
|
84
|
-
unSelectAll:
|
|
85
|
-
clearAll:
|
|
86
|
-
toggleSelect:
|
|
80
|
+
select: v,
|
|
81
|
+
unSelect: y,
|
|
82
|
+
isSelected: S,
|
|
83
|
+
selectAll: K,
|
|
84
|
+
unSelectAll: R,
|
|
85
|
+
clearAll: h,
|
|
86
|
+
toggleSelect: g,
|
|
87
87
|
selectedRows: n,
|
|
88
|
-
selectedRowKeys:
|
|
88
|
+
selectedRowKeys: i(
|
|
89
89
|
() => o(n).map((e) => u(e))
|
|
90
90
|
),
|
|
91
|
-
selectMulti:
|
|
92
|
-
unSelectMulti:
|
|
93
|
-
selectMultiByKeys:
|
|
91
|
+
selectMulti: w,
|
|
92
|
+
unSelectMulti: x,
|
|
93
|
+
selectMultiByKeys: M
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
export {
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import { noRenderAsFormItemValueList as
|
|
2
|
-
import { computed as
|
|
3
|
-
import { getColumnOrder as
|
|
1
|
+
import { noRenderAsFormItemValueList as s } from "../../ap-table/constants.mjs";
|
|
2
|
+
import { computed as p, unref as l } from "vue";
|
|
3
|
+
import { getColumnOrder as d, updateFormProps as m, getFieldProps as u, getSearchFormItemRenderNode as i } from "../../ap-table/utils.mjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useGlobalConfig as
|
|
6
|
-
const
|
|
5
|
+
import { useGlobalConfig as c } from "../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
const h = (n) => {
|
|
7
7
|
let t = 0;
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
), r;
|
|
36
|
-
})) || [];
|
|
37
|
-
});
|
|
8
|
+
const a = c("valueTypeMap");
|
|
9
|
+
return p(() => (t++, n.columns?.filter(
|
|
10
|
+
(e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !s.includes(e.valueType)
|
|
11
|
+
)?.sort((e, o) => {
|
|
12
|
+
const r = d(e.order);
|
|
13
|
+
return d(o.order) - r;
|
|
14
|
+
})?.map((e) => {
|
|
15
|
+
const o = m(
|
|
16
|
+
e,
|
|
17
|
+
u(e.fieldProps, {})
|
|
18
|
+
), r = {
|
|
19
|
+
...e,
|
|
20
|
+
fieldProps: {
|
|
21
|
+
label: e.title,
|
|
22
|
+
name: e.dataIndex,
|
|
23
|
+
// tips: 在表格中的查询表单项默认是带边框的
|
|
24
|
+
bordered: !0,
|
|
25
|
+
...o || {},
|
|
26
|
+
_signal: t
|
|
27
|
+
},
|
|
28
|
+
renderNode: void 0
|
|
29
|
+
};
|
|
30
|
+
return r.renderNode = i(
|
|
31
|
+
r,
|
|
32
|
+
l(a)
|
|
33
|
+
), r;
|
|
34
|
+
}) || []));
|
|
38
35
|
};
|
|
39
36
|
export {
|
|
40
|
-
|
|
37
|
+
h as useSearchForm
|
|
41
38
|
};
|