@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,65 +1,63 @@
|
|
|
1
|
-
import { cloneDeepWith as
|
|
2
|
-
import { isVNode as
|
|
3
|
-
import { getTableTitle as
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
r.children
|
|
1
|
+
import { cloneDeepWith as f, isArray as l, omit as u } from "lodash-unified";
|
|
2
|
+
import { isVNode as c } from "vue";
|
|
3
|
+
import { getTableTitle as s } from "../../utils.mjs";
|
|
4
|
+
function a(e, n) {
|
|
5
|
+
const r = [];
|
|
6
|
+
for (const t of n) {
|
|
7
|
+
const i = e.find((o) => o.key === t.key);
|
|
8
|
+
if (t.children?.length) {
|
|
9
|
+
const o = a(
|
|
10
|
+
i.children,
|
|
11
|
+
t.children
|
|
13
12
|
);
|
|
14
|
-
|
|
15
|
-
...
|
|
16
|
-
fixed:
|
|
17
|
-
children:
|
|
13
|
+
o.length && r.push({
|
|
14
|
+
...i,
|
|
15
|
+
fixed: t.fixed,
|
|
16
|
+
children: o
|
|
18
17
|
});
|
|
19
18
|
} else {
|
|
20
|
-
if (!
|
|
19
|
+
if (!t.show)
|
|
21
20
|
continue;
|
|
22
|
-
|
|
21
|
+
r.push({ ...i, fixed: t.fixed });
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return r;
|
|
26
25
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
26
|
+
function g(e) {
|
|
27
|
+
return f(e, (n, r) => {
|
|
28
|
+
if (r === "label")
|
|
29
|
+
return n;
|
|
31
30
|
});
|
|
32
31
|
}
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
function p(e, n) {
|
|
33
|
+
const r = e.title, t = l(r) ? r[0] : r;
|
|
34
|
+
return c(t) ? t : s(
|
|
35
|
+
e,
|
|
36
|
+
n?.className || "",
|
|
38
37
|
void 0,
|
|
39
|
-
|
|
38
|
+
n?.color
|
|
40
39
|
);
|
|
41
40
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
41
|
+
function y(e) {
|
|
42
|
+
return c(e) ? e : l(e) ? e[0] : e;
|
|
44
43
|
}
|
|
45
|
-
function
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
...a(r, ["label", "key", "children"]),
|
|
44
|
+
function b(e) {
|
|
45
|
+
function n(r) {
|
|
46
|
+
const t = {};
|
|
47
|
+
return r.forEach((i, o) => {
|
|
48
|
+
t[i.key] = {
|
|
49
|
+
...u(i, ["label", "key", "children"]),
|
|
52
50
|
order: o,
|
|
53
|
-
children:
|
|
51
|
+
children: i.children?.length ? n(i.children) : void 0
|
|
54
52
|
};
|
|
55
|
-
}),
|
|
53
|
+
}), t;
|
|
56
54
|
}
|
|
57
|
-
return e
|
|
55
|
+
return n(e);
|
|
58
56
|
}
|
|
59
57
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
g as customCloneColumnStates,
|
|
59
|
+
a as default,
|
|
60
|
+
b as getColumnStateString,
|
|
61
|
+
p as getLabelNode,
|
|
62
|
+
y as getLabelRenderNode
|
|
65
63
|
};
|
|
@@ -3,9 +3,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
3
3
|
import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextProps, ApFormItemTextAreaProps, ApFormItemCheckboxProps, ApFormItemTextPasswordProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
|
|
4
4
|
import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, FieldMode, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, ApFieldTreeSelectProps } from '../ap-field';
|
|
5
5
|
import { ApFormItemSlots, ApFormItemTextPassword, ApActionGroupProps, GroupActionTypes } from '..';
|
|
6
|
-
import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
7
6
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
8
7
|
import { KeyboardEventHandler, FocusEventHandler, ChangeEventHandler, CompositionEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
8
|
+
import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
9
9
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
10
10
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
11
11
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -176,7 +176,7 @@ export declare const apTableFormItemMap: {
|
|
|
176
176
|
readonly mode?: FieldMode | undefined;
|
|
177
177
|
readonly class?: unknown;
|
|
178
178
|
readonly style?: unknown;
|
|
179
|
-
readonly size?:
|
|
179
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
180
180
|
readonly step?: ValueType | undefined;
|
|
181
181
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
182
182
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
@@ -875,7 +875,7 @@ export declare const apTableFormItemMap: {
|
|
|
875
875
|
readonly mode?: FieldMode | undefined;
|
|
876
876
|
readonly class?: unknown;
|
|
877
877
|
readonly style?: unknown;
|
|
878
|
-
readonly size?:
|
|
878
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
879
879
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
880
880
|
readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
|
|
881
881
|
readonly onClick?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -900,7 +900,7 @@ export declare const apTableFormItemMap: {
|
|
|
900
900
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
901
901
|
readonly virtual?: boolean | undefined;
|
|
902
902
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
903
|
-
readonly defaultValue?:
|
|
903
|
+
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
904
904
|
readonly id?: string | undefined;
|
|
905
905
|
readonly placeholder?: any;
|
|
906
906
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
@@ -950,7 +950,7 @@ export declare const apTableFormItemMap: {
|
|
|
950
950
|
readonly emptyText?: string | undefined;
|
|
951
951
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< DefaultOptionType[] | undefined>) | undefined;
|
|
952
952
|
readonly multiple?: boolean | undefined;
|
|
953
|
-
readonly value?:
|
|
953
|
+
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
954
954
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
955
955
|
readonly searchMode?: "filter" | "request" | undefined;
|
|
956
956
|
readonly refetchOnFocus?: boolean | undefined;
|
|
@@ -2440,7 +2440,7 @@ export declare const apTableFormItemMap: {
|
|
|
2440
2440
|
readonly mode?: FieldMode | undefined;
|
|
2441
2441
|
readonly class?: unknown;
|
|
2442
2442
|
readonly style?: unknown;
|
|
2443
|
-
readonly size?:
|
|
2443
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
2444
2444
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
2445
2445
|
readonly onChange?: ((value: unknown, labelList: any[], extra: ChangeEventExtra) => void) | undefined;
|
|
2446
2446
|
readonly onClick?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { ref as c, computed as o } from "vue";
|
|
2
|
+
const e = "ap-table--sticky", l = (s) => {
|
|
3
|
+
const t = c();
|
|
4
4
|
return {
|
|
5
|
-
isStickyMode:
|
|
6
|
-
() =>
|
|
7
|
-
var s;
|
|
8
|
-
return ((s = t.value) == null ? void 0 : s.classList.contains(i)) || !1;
|
|
9
|
-
}
|
|
5
|
+
isStickyMode: o(
|
|
6
|
+
() => s.value?.classList.contains(e) || !1
|
|
10
7
|
),
|
|
11
|
-
scrollBarRef:
|
|
8
|
+
scrollBarRef: t
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
l as useStickyScroll
|
|
16
13
|
};
|
|
@@ -1,136 +1,133 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isDef as
|
|
3
|
-
import
|
|
4
|
-
import { useInjectApTable as
|
|
5
|
-
import { isObject as
|
|
1
|
+
import { ref as D, shallowRef as G, unref as i, computed as P, watchEffect as W } from "vue";
|
|
2
|
+
import { isDef as X } from "../../utils/index.mjs";
|
|
3
|
+
import q, { customCloneColumnStates as v, getColumnStateString as H } from "../components/setting/utils.mjs";
|
|
4
|
+
import { useInjectApTable as L } from "../context.mjs";
|
|
5
|
+
import { isObject as b, mergeWith as T, isBoolean as Q, omit as U, isString as V, isNumber as y } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { useToken as
|
|
8
|
-
import { getTableTitle as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
function
|
|
7
|
+
import { useToken as Y } from "@aplus-frontend/antdv/es/theme/internal";
|
|
8
|
+
import { getTableTitle as Z } from "../utils.mjs";
|
|
9
|
+
import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
function c(r, o) {
|
|
11
11
|
r.forEach((n) => {
|
|
12
|
-
|
|
13
|
-
o(n), (a = n.children) != null && a.length && u(n.children, o);
|
|
12
|
+
o(n), n.children?.length && c(n.children, o);
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
function
|
|
15
|
+
function K(r, o) {
|
|
17
16
|
if (!o)
|
|
18
17
|
return {};
|
|
19
18
|
const n = r.getItem(o);
|
|
20
19
|
return n ? JSON.parse(n) : {};
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
21
|
+
function N(r, o) {
|
|
22
|
+
if (b(r) && b(o))
|
|
23
|
+
return T({}, r, o, N);
|
|
25
24
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed :
|
|
25
|
+
const A = Number.MAX_SAFE_INTEGER;
|
|
26
|
+
function ee(r, o, n, a) {
|
|
27
|
+
return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed : Q(r.fixed) ? r.fixed ? "left" : void 0 : r.fixed;
|
|
29
28
|
}
|
|
30
|
-
const
|
|
31
|
-
const { be: a } =
|
|
32
|
-
|
|
33
|
-
), { columnsBackup:
|
|
34
|
-
function
|
|
35
|
-
const e =
|
|
36
|
-
|
|
29
|
+
const ce = (r, o, n) => {
|
|
30
|
+
const { be: a } = $("ap-table"), [te, B] = Y(), l = D(n), d = G(
|
|
31
|
+
v(n)
|
|
32
|
+
), { columnsBackup: m, updateColumns: E } = L(), F = r.persistenceType || "localStorage", h = window[F];
|
|
33
|
+
function I() {
|
|
34
|
+
const e = K(
|
|
35
|
+
h,
|
|
37
36
|
i(o)
|
|
38
|
-
), t =
|
|
37
|
+
), t = T(
|
|
39
38
|
{},
|
|
40
39
|
r.defaultValue || {},
|
|
41
40
|
e,
|
|
42
|
-
|
|
43
|
-
), s = i(
|
|
44
|
-
function
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
const b = (m == null ? void 0 : m[f.key]) || {}, g = {
|
|
41
|
+
N
|
|
42
|
+
), s = i(m);
|
|
43
|
+
function u(R, j, z) {
|
|
44
|
+
return R.map((f) => {
|
|
45
|
+
const k = j?.[f.key] || {}, g = {
|
|
48
46
|
key: f.key,
|
|
49
|
-
label:
|
|
47
|
+
label: V(f.title) ? Z(
|
|
50
48
|
f,
|
|
51
49
|
a("table-header", "title"),
|
|
52
50
|
void 0,
|
|
53
|
-
|
|
51
|
+
B.value.colorPrimary
|
|
54
52
|
) : f.title,
|
|
55
53
|
show: !0,
|
|
56
|
-
fixed:
|
|
54
|
+
fixed: ee(
|
|
57
55
|
f,
|
|
58
56
|
e[f.key],
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
r.defaultValue?.[f.key],
|
|
58
|
+
z
|
|
61
59
|
),
|
|
62
60
|
disabled: !1,
|
|
63
|
-
...
|
|
61
|
+
...U(k, ["children", "fixed"])
|
|
64
62
|
};
|
|
65
|
-
return g.children =
|
|
63
|
+
return g.children = f.children?.length ? u(
|
|
66
64
|
f.children,
|
|
67
|
-
|
|
65
|
+
k.children,
|
|
68
66
|
g
|
|
69
67
|
) : void 0, g;
|
|
70
|
-
}).sort(
|
|
68
|
+
}).sort(O);
|
|
71
69
|
}
|
|
72
|
-
return
|
|
70
|
+
return u(s || [], t);
|
|
73
71
|
}
|
|
74
|
-
function
|
|
75
|
-
const s =
|
|
76
|
-
let
|
|
77
|
-
return e.fixed === "right" && t.fixed !== "right" && (
|
|
72
|
+
function O(e, t) {
|
|
73
|
+
const s = y(e.order) ? e.order : A;
|
|
74
|
+
let u = y(t.order) ? t.order : A;
|
|
75
|
+
return e.fixed === "right" && t.fixed !== "right" && (u = s - 1), t.fixed === "left" && e.fixed !== "left" && (u = s - 1), s - u;
|
|
78
76
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
77
|
+
const S = P(() => i(l).every((e) => e.show));
|
|
78
|
+
function p() {
|
|
81
79
|
const e = i(l);
|
|
82
|
-
|
|
80
|
+
c(e, (t) => {
|
|
83
81
|
!t.disabled && (t.show = !0);
|
|
84
82
|
});
|
|
85
83
|
}
|
|
86
|
-
function
|
|
84
|
+
function x() {
|
|
87
85
|
const e = i(l);
|
|
88
|
-
|
|
86
|
+
c(e, (t) => {
|
|
89
87
|
!t.disabled && (t.show = !1);
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
|
-
function
|
|
93
|
-
i(
|
|
90
|
+
function _() {
|
|
91
|
+
i(S) ? x() : p();
|
|
94
92
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
s.key === e && (s.show =
|
|
93
|
+
function J(e, t) {
|
|
94
|
+
c(i(l), (s) => {
|
|
95
|
+
s.key === e && (s.show = X(t) ? t : !s.show);
|
|
98
96
|
});
|
|
99
97
|
}
|
|
100
|
-
function
|
|
98
|
+
function C(e) {
|
|
101
99
|
l.value = e;
|
|
102
100
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
101
|
+
function M(e) {
|
|
102
|
+
d.value = e;
|
|
105
103
|
}
|
|
106
|
-
function
|
|
104
|
+
function w(e) {
|
|
107
105
|
if (i(o)) {
|
|
108
|
-
const t =
|
|
109
|
-
|
|
106
|
+
const t = H(e);
|
|
107
|
+
h.setItem(i(o), JSON.stringify(t));
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
|
-
return
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
i(p),
|
|
110
|
+
return W(() => {
|
|
111
|
+
const e = I();
|
|
112
|
+
C(e), r.onChange?.(e), E?.(
|
|
113
|
+
q(
|
|
114
|
+
i(m),
|
|
118
115
|
i(e)
|
|
119
116
|
)
|
|
120
|
-
),
|
|
117
|
+
), d.value = v(e), w(e);
|
|
121
118
|
}), {
|
|
122
119
|
columnState: l,
|
|
123
|
-
selectAll:
|
|
124
|
-
unSelectAll:
|
|
125
|
-
toggleSelect:
|
|
126
|
-
setColumnState:
|
|
127
|
-
isAllSelected:
|
|
128
|
-
toggleSelectAll:
|
|
129
|
-
columnStateBackup:
|
|
130
|
-
setColumnStateBackup:
|
|
131
|
-
cacheColumnStateIfNeeded:
|
|
120
|
+
selectAll: p,
|
|
121
|
+
unSelectAll: x,
|
|
122
|
+
toggleSelect: J,
|
|
123
|
+
setColumnState: C,
|
|
124
|
+
isAllSelected: S,
|
|
125
|
+
toggleSelectAll: _,
|
|
126
|
+
columnStateBackup: d,
|
|
127
|
+
setColumnStateBackup: M,
|
|
128
|
+
cacheColumnStateIfNeeded: w
|
|
132
129
|
};
|
|
133
130
|
};
|
|
134
131
|
export {
|
|
135
|
-
|
|
132
|
+
ce as useTableColumnState
|
|
136
133
|
};
|
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
import "../../config-provider/index.mjs";
|
|
2
|
-
import { useElementSize as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { useGlobalConfig as
|
|
5
|
-
function
|
|
2
|
+
import { useElementSize as m } from "@vueuse/core";
|
|
3
|
+
import { ref as u, computed as d, unref as i, onUpdated as H } from "vue";
|
|
4
|
+
import { useGlobalConfig as S } from "../../config-provider/hooks/use-global-config.mjs";
|
|
5
|
+
function c(t) {
|
|
6
6
|
if (!t)
|
|
7
7
|
return 0;
|
|
8
8
|
const e = parseFloat(t);
|
|
9
9
|
return Number.isNaN(e) ? 0 : e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function l(t) {
|
|
12
12
|
if (!t)
|
|
13
13
|
return 0;
|
|
14
14
|
const e = getComputedStyle(t);
|
|
15
|
-
return t.clientHeight +
|
|
15
|
+
return t.clientHeight + c(e.marginTop) + c(e.marginBottom);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
const e =
|
|
19
|
-
let
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
u(d) - r - n - (b || 0) - ((t == null ? void 0 : t.offset) || 0)
|
|
17
|
+
const N = (t) => {
|
|
18
|
+
const e = u(), { height: s } = m(e), g = S("namespace"), r = u();
|
|
19
|
+
let o = !1;
|
|
20
|
+
const p = d(() => {
|
|
21
|
+
const n = e.value?.querySelector(`.${i(g)}-ap-table-header-wrapper`)?.clientHeight || 0, f = e.value?.querySelector(".ant-table-header")?.clientHeight || 47, a = e.value?.querySelector(".ant-pagination"), h = a ? l(a) : i(r);
|
|
22
|
+
return a && (o = !0), Math.ceil(
|
|
23
|
+
i(s) - f - n - (h || 0) - (t?.offset || 0)
|
|
25
24
|
);
|
|
26
25
|
});
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
if (i)
|
|
26
|
+
return H(() => {
|
|
27
|
+
if (o)
|
|
30
28
|
return;
|
|
31
|
-
const n =
|
|
29
|
+
const n = e.value?.querySelector(".ant-pagination");
|
|
32
30
|
if (!n) {
|
|
33
|
-
|
|
31
|
+
r.value = 0;
|
|
34
32
|
return;
|
|
35
33
|
}
|
|
36
|
-
|
|
37
|
-
}), { contentRef: e, height:
|
|
34
|
+
r.value = l(n), o = !0;
|
|
35
|
+
}), { contentRef: e, height: p };
|
|
38
36
|
};
|
|
39
37
|
export {
|
|
40
|
-
|
|
38
|
+
N as default
|
|
41
39
|
};
|