@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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, ref as y, computed as u, unref as t, createElementBlock as z, openBlock as h, normalizeStyle as g, normalizeClass as T, createVNode as c, withCtx as B, createBlock as $, createCommentVNode as K, mergeProps as M } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
|
-
import { Space as
|
|
3
|
+
import { Space as D } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { isNumber as
|
|
5
|
+
import { isNumber as G, omit as q } from "lodash-unified";
|
|
6
6
|
import "./popover-input/index.vue.mjs";
|
|
7
7
|
import "../../hooks/index.mjs";
|
|
8
|
-
import { isDef as
|
|
9
|
-
import { useDefaultPlaceholder as
|
|
10
|
-
import { splitValue as
|
|
11
|
-
import { useControllableValue as
|
|
12
|
-
import { useLocale as
|
|
13
|
-
import { useNamespace as
|
|
14
|
-
import
|
|
15
|
-
import { ApFieldText as
|
|
16
|
-
import
|
|
17
|
-
const m = "GROUP_SEARCH_ALL",
|
|
8
|
+
import { isDef as H } from "../../utils/index.mjs";
|
|
9
|
+
import { useDefaultPlaceholder as Y } from "../../ap-field/hooks/use-default-placeholder.mjs";
|
|
10
|
+
import { splitValue as J } from "./utils.mjs";
|
|
11
|
+
import { useControllableValue as Q } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import Z from "../../ap-field/select/index.vue.mjs";
|
|
15
|
+
import { ApFieldText as ee } from "../../ap-field/text/index.mjs";
|
|
16
|
+
import te from "./popover-input/index.vue2.mjs";
|
|
17
|
+
const m = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ _({
|
|
18
18
|
name: "BatchInputGroup",
|
|
19
19
|
__name: "index",
|
|
20
20
|
props: {
|
|
@@ -74,142 +74,128 @@ const m = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ T({
|
|
|
74
74
|
beforeInput: {}
|
|
75
75
|
},
|
|
76
76
|
emits: ["update:value"],
|
|
77
|
-
setup(
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
),
|
|
82
|
-
const e =
|
|
77
|
+
setup(b, { emit: A }) {
|
|
78
|
+
const o = b, V = Y("Text", o), x = A, { value: a, updateValue: r } = Q(
|
|
79
|
+
o,
|
|
80
|
+
x
|
|
81
|
+
), s = y(), f = y(), { t: C } = W(), { b: S, cssVar: k } = X("batch-input-group"), I = u(() => {
|
|
82
|
+
const e = o.popoverPlacement;
|
|
83
83
|
return {
|
|
84
|
-
"popover-left":
|
|
84
|
+
"popover-left": G(e) ? `${e}px` : e === "left" ? "0px" : "unset",
|
|
85
85
|
"popover-right": e === "right" ? "0px" : "unset"
|
|
86
86
|
};
|
|
87
|
-
}),
|
|
88
|
-
{ value: m, label:
|
|
89
|
-
...
|
|
90
|
-
] :
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var t;
|
|
99
|
-
const e = (t = l(a)) == null ? void 0 : t.key;
|
|
100
|
-
if (e != null && e.length)
|
|
101
|
-
return e.length === 1 || !n.hasAll ? e[0] : m;
|
|
102
|
-
}), F = r(() => {
|
|
103
|
-
var o;
|
|
104
|
-
const e = (o = l(a)) == null ? void 0 : o.key;
|
|
105
|
-
return !e || (e == null ? void 0 : e.length) <= 1 ? l(C) : (n.options || []).filter((u) => e.includes(u.value)).map((u) => u.label).join("/");
|
|
87
|
+
}), U = u(() => o.options ? o.options.length > 1 && o.hasAll ? [
|
|
88
|
+
{ value: m, label: C("ap.common.all") },
|
|
89
|
+
...o.options
|
|
90
|
+
] : o.options : []), w = u(() => o.options ? o.options.map((e) => e.value) : []), P = u(() => t(a)?.value?.length ? t(a).value.join(",") : ""), R = u(() => t(a)?.value?.length ? t(a).value.join(`
|
|
91
|
+
`) : ""), N = u(() => {
|
|
92
|
+
const e = t(a)?.key;
|
|
93
|
+
if (e?.length)
|
|
94
|
+
return e.length === 1 || !o.hasAll ? e[0] : m;
|
|
95
|
+
}), j = u(() => {
|
|
96
|
+
const e = t(a)?.key;
|
|
97
|
+
return !e || e?.length <= 1 ? t(V) : (o.options || []).filter((n) => e.includes(n.value)).map((n) => n.label).join("/");
|
|
106
98
|
});
|
|
107
|
-
function
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
...
|
|
111
|
-
key:
|
|
99
|
+
function E(e) {
|
|
100
|
+
const l = t(a) || {}, n = e === m ? t(w) : H(e) ? [e] : [];
|
|
101
|
+
r({
|
|
102
|
+
...l,
|
|
103
|
+
key: n
|
|
112
104
|
});
|
|
113
105
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
h && (h.value = u);
|
|
106
|
+
function F(e) {
|
|
107
|
+
const l = t(a) || {}, n = e.target.value || "";
|
|
108
|
+
let i = J(n, ",", ",", o.maxNum);
|
|
109
|
+
if (n !== i) {
|
|
110
|
+
const v = f.value?.$el?.querySelector("input");
|
|
111
|
+
v && (v.value = i);
|
|
121
112
|
}
|
|
122
|
-
let
|
|
123
|
-
|
|
124
|
-
...
|
|
125
|
-
value:
|
|
113
|
+
let p = i.split(",");
|
|
114
|
+
p.length === 1 && p[0] === "" && (p = []), r({
|
|
115
|
+
...l,
|
|
116
|
+
value: p
|
|
126
117
|
});
|
|
127
118
|
}
|
|
128
|
-
function
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
|
|
132
|
-
...
|
|
133
|
-
value:
|
|
119
|
+
function L(e) {
|
|
120
|
+
const l = t(a) || {};
|
|
121
|
+
let n = e.split(/,|\n/);
|
|
122
|
+
r({
|
|
123
|
+
...l,
|
|
124
|
+
value: n
|
|
134
125
|
});
|
|
135
126
|
}
|
|
136
127
|
function d() {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
p({
|
|
128
|
+
const e = t(a) || {}, l = e.value?.filter(Boolean);
|
|
129
|
+
r({
|
|
140
130
|
...e,
|
|
141
|
-
value:
|
|
131
|
+
value: l
|
|
142
132
|
});
|
|
143
133
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
d(), (t = n.onBlur) == null || t.call(n, e);
|
|
134
|
+
function O(e) {
|
|
135
|
+
d(), o.onBlur?.(e);
|
|
147
136
|
}
|
|
148
|
-
return (e,
|
|
137
|
+
return (e, l) => (h(), z("div", {
|
|
149
138
|
ref_key: "containerRef",
|
|
150
|
-
ref:
|
|
151
|
-
class:
|
|
152
|
-
style:
|
|
153
|
-
onFocus:
|
|
154
|
-
(...
|
|
155
|
-
onBlur:
|
|
156
|
-
(...
|
|
139
|
+
ref: s,
|
|
140
|
+
class: T(t(S)()),
|
|
141
|
+
style: g(t(k)(I.value)),
|
|
142
|
+
onFocus: l[0] || (l[0] = //@ts-ignore
|
|
143
|
+
(...n) => e.onFocus && e.onFocus(...n)),
|
|
144
|
+
onBlur: l[1] || (l[1] = //@ts-ignore
|
|
145
|
+
(...n) => e.onBlur && e.onBlur(...n))
|
|
157
146
|
}, [
|
|
158
|
-
c(
|
|
159
|
-
default:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}, 16, ["style", "value", "placeholder"])
|
|
206
|
-
];
|
|
207
|
-
}),
|
|
147
|
+
c(t(D).Compact, { block: "" }, {
|
|
148
|
+
default: B(() => [
|
|
149
|
+
e.options?.length ? (h(), $(t(Z), {
|
|
150
|
+
key: 0,
|
|
151
|
+
style: g(e.style),
|
|
152
|
+
options: U.value,
|
|
153
|
+
value: N.value,
|
|
154
|
+
"allow-clear": !1,
|
|
155
|
+
"dropdown-match-select-width": !1,
|
|
156
|
+
disabled: e.disabled,
|
|
157
|
+
"get-popup-container": () => s.value,
|
|
158
|
+
"onUpdate:value": E
|
|
159
|
+
}, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : K("", !0),
|
|
160
|
+
c(t(ee), M(
|
|
161
|
+
t(q)(o, [
|
|
162
|
+
"style",
|
|
163
|
+
"value",
|
|
164
|
+
"onUpdate:value",
|
|
165
|
+
"inputStyle",
|
|
166
|
+
"hasAll",
|
|
167
|
+
"options",
|
|
168
|
+
"onBlur"
|
|
169
|
+
]),
|
|
170
|
+
{
|
|
171
|
+
ref_key: "inputRef",
|
|
172
|
+
ref: f,
|
|
173
|
+
style: e.inputStyle,
|
|
174
|
+
value: P.value,
|
|
175
|
+
placeholder: j.value,
|
|
176
|
+
onInput: F,
|
|
177
|
+
onBlur: O
|
|
178
|
+
}
|
|
179
|
+
), {
|
|
180
|
+
suffix: B(() => [
|
|
181
|
+
c(te, {
|
|
182
|
+
_parent: s.value,
|
|
183
|
+
value: R.value,
|
|
184
|
+
disabled: e.disabled,
|
|
185
|
+
placement: o.popoverPlacement,
|
|
186
|
+
"max-num": e.maxNum,
|
|
187
|
+
"onUpdate:value": L,
|
|
188
|
+
onClose: d
|
|
189
|
+
}, null, 8, ["_parent", "value", "disabled", "placement", "max-num"])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 16, ["style", "value", "placeholder"])
|
|
193
|
+
]),
|
|
208
194
|
_: 1
|
|
209
195
|
})
|
|
210
196
|
], 38));
|
|
211
197
|
}
|
|
212
198
|
});
|
|
213
199
|
export {
|
|
214
|
-
|
|
200
|
+
ge as default
|
|
215
201
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
1
|
+
import { defineComponent as I, ref as i, createElementBlock as k, openBlock as A, normalizeClass as p, unref as e, createVNode as u, withCtx as m, createElementVNode as w } from "vue";
|
|
2
|
+
import { Popover as B, Textarea as L } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
|
-
import { IconApAdLineScreen as
|
|
4
|
+
import { IconApAdLineScreen as P } from "@aplus-frontend/icon";
|
|
5
5
|
import "../../../hooks/index.mjs";
|
|
6
|
-
import { splitValue as
|
|
7
|
-
import { useControllableValue as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
const
|
|
6
|
+
import { splitValue as z } from "../utils.mjs";
|
|
7
|
+
import { useControllableValue as E } from "../../../hooks/useControllableValue.mjs";
|
|
8
|
+
import { useLocale as F } from "../../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as O } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const H = /* @__PURE__ */ I({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
_parent: {},
|
|
@@ -18,60 +18,58 @@ const J = /* @__PURE__ */ k({
|
|
|
18
18
|
"onUpdate:value": { type: Function }
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:value"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
let r = E(a, `
|
|
21
|
+
setup(f, { emit: d }) {
|
|
22
|
+
const t = f, v = d, { value: g, updateValue: b } = E(t, v), a = i(!1), n = i(), h = (o) => t._parent || o, { t: x } = F();
|
|
23
|
+
function C(o) {
|
|
24
|
+
const l = o.target.value || "";
|
|
25
|
+
let r = z(l, `
|
|
27
26
|
,`, `
|
|
28
|
-
`,
|
|
29
|
-
if (r !==
|
|
30
|
-
const
|
|
31
|
-
|
|
27
|
+
`, t.maxNum);
|
|
28
|
+
if (r !== l) {
|
|
29
|
+
const c = n.value?.$el || n.value;
|
|
30
|
+
c && (c.value = r);
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
b(r);
|
|
34
33
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
o.disabled ? n.value = !1 : n.value = t, !t && ((a = o.onClose) == null || a.call(o));
|
|
34
|
+
function _(o) {
|
|
35
|
+
t.disabled ? a.value = !1 : a.value = o, !o && t.onClose?.();
|
|
38
36
|
}
|
|
39
|
-
const { b: s, e:
|
|
40
|
-
return (
|
|
37
|
+
const { b: s, e: N, em: V, bm: y } = O("batch-input-group-popover-input");
|
|
38
|
+
return (o, l) => (A(), k("div", {
|
|
41
39
|
class: p(e(s)())
|
|
42
40
|
}, [
|
|
43
|
-
u(e(
|
|
44
|
-
"overlay-class-name": e(
|
|
45
|
-
"get-popup-container":
|
|
41
|
+
u(e(B), {
|
|
42
|
+
"overlay-class-name": e(N)("popover"),
|
|
43
|
+
"get-popup-container": h,
|
|
46
44
|
trigger: "click",
|
|
47
45
|
placement: "bottomLeft",
|
|
48
|
-
open:
|
|
49
|
-
onOpenChange:
|
|
46
|
+
open: a.value,
|
|
47
|
+
onOpenChange: _
|
|
50
48
|
}, {
|
|
51
|
-
content:
|
|
52
|
-
|
|
53
|
-
class: p(e(
|
|
49
|
+
content: m(() => [
|
|
50
|
+
w("div", {
|
|
51
|
+
class: p(e(V)("popover", "content"))
|
|
54
52
|
}, [
|
|
55
|
-
u(e(
|
|
53
|
+
u(e(L), {
|
|
56
54
|
ref_key: "textAreaRef",
|
|
57
|
-
ref:
|
|
58
|
-
placeholder: e(
|
|
59
|
-
maxNum:
|
|
55
|
+
ref: n,
|
|
56
|
+
placeholder: e(x)("ap.batchInputGroup.popoverInputPlaceholder", {
|
|
57
|
+
maxNum: o.maxNum + ""
|
|
60
58
|
}),
|
|
61
59
|
bordered: !1,
|
|
62
60
|
rows: 10,
|
|
63
|
-
value: e(
|
|
61
|
+
value: e(g),
|
|
64
62
|
"allow-clear": !1,
|
|
65
63
|
"auto-size": !1,
|
|
66
|
-
onInput:
|
|
64
|
+
onInput: C
|
|
67
65
|
}, null, 8, ["placeholder", "value"])
|
|
68
66
|
], 2)
|
|
69
67
|
]),
|
|
70
|
-
default:
|
|
71
|
-
u(e(
|
|
68
|
+
default: m(() => [
|
|
69
|
+
u(e(P), {
|
|
72
70
|
class: p([
|
|
73
71
|
e(s)("trigger-icon"),
|
|
74
|
-
|
|
72
|
+
o.disabled ? e(y)("trigger-icon", "disabled") : null
|
|
75
73
|
])
|
|
76
74
|
}, null, 8, ["class"])
|
|
77
75
|
]),
|
|
@@ -81,5 +79,5 @@ const J = /* @__PURE__ */ k({
|
|
|
81
79
|
}
|
|
82
80
|
});
|
|
83
81
|
export {
|
|
84
|
-
|
|
82
|
+
H as default
|
|
85
83
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { onMounted as
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
let
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}),
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(f = (u = e == null ? void 0 : e.apTableRef) == null ? void 0 : u.value) == null || f[a]();
|
|
1
|
+
import { onMounted as u, onActivated as i } from "vue";
|
|
2
|
+
function n(e) {
|
|
3
|
+
const s = (["reset", "submit", void 0].includes(e?.refreshType) ? e?.refreshType : "submit") ?? "submit", t = e?.refreshBefore ?? (() => !0);
|
|
4
|
+
let r = !0;
|
|
5
|
+
u(() => {
|
|
6
|
+
r = !1;
|
|
7
|
+
}), i(() => {
|
|
8
|
+
const f = t?.();
|
|
9
|
+
r || f && setTimeout(() => {
|
|
10
|
+
e?.apTableRef?.value?.[s]();
|
|
12
11
|
});
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
n as useGridRefresh
|
|
17
16
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { onActivated as v, onDeactivated as c } from "vue";
|
|
2
|
-
function
|
|
3
|
-
let e = "notKeepAlive", t = a
|
|
2
|
+
function o(a) {
|
|
3
|
+
let e = "notKeepAlive", t = a?.afterDeactivated;
|
|
4
4
|
return v(() => {
|
|
5
5
|
e = "activated";
|
|
6
6
|
}), c(() => {
|
|
7
|
-
e = "deactivated", t
|
|
7
|
+
e = "deactivated", t?.();
|
|
8
8
|
}), {
|
|
9
9
|
isDeactivated: () => e === "deactivated",
|
|
10
10
|
isActivated: () => e === "activated",
|
|
@@ -14,5 +14,5 @@ function l(a) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
o as useKeepAliveFlag
|
|
18
18
|
};
|
|
@@ -3,85 +3,80 @@ import { merge as v, cloneDeep as A } from "lodash-unified";
|
|
|
3
3
|
import { ref as F } from "vue";
|
|
4
4
|
import { useKeepAliveFlag as R } from "./useKeepAliveFlag.mjs";
|
|
5
5
|
import { useTableRefresh as w } from "./useTableRefresh.mjs";
|
|
6
|
-
function z(
|
|
7
|
-
const
|
|
8
|
-
isShowRowSelection:
|
|
9
|
-
clearSelectionOnRequest:
|
|
10
|
-
transformSearchFormValues:
|
|
11
|
-
api:
|
|
12
|
-
tableRefresh:
|
|
13
|
-
clearDataOnDeactivated:
|
|
14
|
-
...
|
|
15
|
-
} =
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
(r = (e = t.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
6
|
+
function z(a) {
|
|
7
|
+
const r = F(null), {
|
|
8
|
+
isShowRowSelection: c = !0,
|
|
9
|
+
clearSelectionOnRequest: i = !0,
|
|
10
|
+
transformSearchFormValues: o,
|
|
11
|
+
api: s,
|
|
12
|
+
tableRefresh: f = !0,
|
|
13
|
+
clearDataOnDeactivated: d = !0,
|
|
14
|
+
...m
|
|
15
|
+
} = a || {};
|
|
16
|
+
let n = null;
|
|
17
|
+
const l = () => {
|
|
18
|
+
r.value?.rowSelection?.clearAll();
|
|
20
19
|
};
|
|
21
20
|
w({
|
|
22
|
-
...V(
|
|
23
|
-
apTableRef:
|
|
21
|
+
...V(f),
|
|
22
|
+
apTableRef: r
|
|
24
23
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, { isDeactivated: S } = R({
|
|
32
|
-
afterDeactivated: c
|
|
24
|
+
const u = () => {
|
|
25
|
+
r.value?.submit();
|
|
26
|
+
}, p = () => {
|
|
27
|
+
r.value?.reset();
|
|
28
|
+
}, { isDeactivated: h } = R({
|
|
29
|
+
afterDeactivated: u
|
|
33
30
|
});
|
|
34
31
|
return [v(
|
|
35
32
|
{
|
|
36
33
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
37
34
|
columnResizable: !0,
|
|
38
|
-
request:
|
|
39
|
-
if (
|
|
35
|
+
request: s ? async (e) => {
|
|
36
|
+
if (h() && d)
|
|
40
37
|
return {
|
|
41
38
|
data: [],
|
|
42
39
|
total: 0
|
|
43
40
|
};
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
if (!
|
|
47
|
-
const { records:
|
|
48
|
-
return
|
|
49
|
-
data:
|
|
41
|
+
n = e.sort;
|
|
42
|
+
const t = o ? o(e) : e;
|
|
43
|
+
if (!s) throw new Error("api is not defined");
|
|
44
|
+
const { records: S, total: g } = await s(t);
|
|
45
|
+
return i && l(), {
|
|
46
|
+
data: S,
|
|
50
47
|
total: g
|
|
51
48
|
};
|
|
52
49
|
} : void 0,
|
|
53
|
-
rowSelection:
|
|
50
|
+
rowSelection: c ? {
|
|
54
51
|
fixed: "left",
|
|
55
52
|
columnWidth: 38
|
|
56
53
|
} : void 0,
|
|
57
54
|
ref(e) {
|
|
58
|
-
|
|
55
|
+
r.value = e;
|
|
59
56
|
},
|
|
60
57
|
// 新UI规范,需要都添加分割线
|
|
61
58
|
card: !0
|
|
62
59
|
},
|
|
63
|
-
|
|
60
|
+
m
|
|
64
61
|
), {
|
|
65
|
-
reload:
|
|
66
|
-
reset:
|
|
62
|
+
reload: u,
|
|
63
|
+
reset: p,
|
|
67
64
|
getSearchFormValues: (e = !0) => {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return a ? a(r) : r;
|
|
65
|
+
const t = r.value?.getSearchFormValues(!!e) || {};
|
|
66
|
+
return o ? o(t) : t;
|
|
71
67
|
},
|
|
72
|
-
getAgGridInstance: () =>
|
|
68
|
+
getAgGridInstance: () => r.value,
|
|
73
69
|
getSearchFormValuesAndSorted: (e = !0) => {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return r.sort = l && A(l), a ? a(r) : r;
|
|
70
|
+
const t = r.value?.getSearchFormValues(!!e) || {};
|
|
71
|
+
return t.sort = n && A(n), o ? o(t) : t;
|
|
77
72
|
},
|
|
78
|
-
clearSelection:
|
|
73
|
+
clearSelection: l
|
|
79
74
|
}];
|
|
80
75
|
}
|
|
81
|
-
function V(
|
|
82
|
-
return
|
|
76
|
+
function V(a) {
|
|
77
|
+
return a === !0 ? {} : a === !1 ? {
|
|
83
78
|
refreshBefore: () => !1
|
|
84
|
-
} :
|
|
79
|
+
} : a;
|
|
85
80
|
}
|
|
86
81
|
export {
|
|
87
82
|
z as usePageListAgGrid
|