@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,62 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApSizeInputProps as
|
|
1
|
+
import { defineComponent as o, toRaw as x, createVNode as n } from "vue";
|
|
2
|
+
import { ApSizeInputProps as f } from "./constans.mjs";
|
|
3
3
|
import "../../ap-field/number/index.vue2.mjs";
|
|
4
|
-
import { Form as
|
|
4
|
+
import { Form as g, Space as r } from "@aplus-frontend/antdv";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
6
|
+
import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useLocale as C } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import m from "../../ap-field/number/index.vue.mjs";
|
|
9
|
+
const N = /* @__PURE__ */ o({
|
|
10
10
|
name: "ApSizeInput",
|
|
11
|
-
props:
|
|
11
|
+
props: f(),
|
|
12
12
|
setup(e, {
|
|
13
|
-
emit:
|
|
13
|
+
emit: c
|
|
14
14
|
}) {
|
|
15
15
|
const {
|
|
16
|
-
b:
|
|
17
|
-
} =
|
|
18
|
-
t
|
|
19
|
-
} =
|
|
20
|
-
const
|
|
21
|
-
a
|
|
16
|
+
b: d
|
|
17
|
+
} = I("ap-size-input"), {
|
|
18
|
+
t
|
|
19
|
+
} = C(), u = g.useInjectFormItemContext(), i = (a, h) => {
|
|
20
|
+
const l = e.value;
|
|
21
|
+
l[a] = h, c("update:value", l), c("SizeInputChange", x(l)), u.onFieldChange();
|
|
22
22
|
};
|
|
23
|
-
return () =>
|
|
24
|
-
class: [
|
|
23
|
+
return () => n(r, {
|
|
24
|
+
class: [d()]
|
|
25
25
|
}, {
|
|
26
|
-
default: () => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
step: e.step ? e.step : 1
|
|
55
|
-
}, null)];
|
|
56
|
-
}
|
|
26
|
+
default: () => [n(m, {
|
|
27
|
+
mode: e.editable ? "edit" : "read",
|
|
28
|
+
value: e.value?.[0],
|
|
29
|
+
placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[0] : t("ap.apSizeInput.length"),
|
|
30
|
+
precision: e.precision ? e.precision : 2,
|
|
31
|
+
min: e.min ? e.min : 1,
|
|
32
|
+
max: e.max ? e.max : 999.99,
|
|
33
|
+
onChange: (a) => i(0, a),
|
|
34
|
+
step: e.step ? e.step : 1
|
|
35
|
+
}, null), e.perfix, n(m, {
|
|
36
|
+
mode: e.editable ? "edit" : "read",
|
|
37
|
+
value: e.value?.[1],
|
|
38
|
+
placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[1] : t("ap.apSizeInput.width"),
|
|
39
|
+
precision: e.precision ? e.precision : 2,
|
|
40
|
+
min: e.min ? e.min : 1,
|
|
41
|
+
max: e.max ? e.max : 999.99,
|
|
42
|
+
onChange: (a) => i(1, a),
|
|
43
|
+
step: e.step ? e.step : 1
|
|
44
|
+
}, null), e.perfix, n(m, {
|
|
45
|
+
mode: e.editable ? "edit" : "read",
|
|
46
|
+
value: e.value?.[2],
|
|
47
|
+
placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[2] : t("ap.apSizeInput.height"),
|
|
48
|
+
precision: e.precision ? e.precision : 2,
|
|
49
|
+
min: e.min ? e.min : 1,
|
|
50
|
+
max: e.max ? e.max : 999.99,
|
|
51
|
+
onChange: (a) => i(2, a),
|
|
52
|
+
step: e.step ? e.step : 1
|
|
53
|
+
}, null)]
|
|
57
54
|
});
|
|
58
55
|
}
|
|
59
56
|
});
|
|
60
57
|
export {
|
|
61
|
-
|
|
58
|
+
N as default
|
|
62
59
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isNil as
|
|
3
|
-
import { TableSummaryRow as
|
|
4
|
-
import { flattenColumns as
|
|
1
|
+
import { defineComponent as I, computed as d, createVNode as N, Fragment as p, createBlock as m, openBlock as l, unref as s, normalizeClass as f, withCtx as y, createElementBlock as w, renderList as z, normalizeStyle as B, resolveDynamicComponent as R } from "vue";
|
|
2
|
+
import { isNil as A, get as i } from "lodash-unified";
|
|
3
|
+
import { TableSummaryRow as D, TableSummaryCell as F } from "@aplus-frontend/antdv";
|
|
4
|
+
import { flattenColumns as V, formatDataIndex as u } from "./utils.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { isNumeric as
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
const X = /* @__PURE__ */
|
|
6
|
+
import { isNumeric as E, toThousand as P, toFixed as $ } from "@aplus-frontend/utils";
|
|
7
|
+
import { useLocale as j } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const X = /* @__PURE__ */ I({
|
|
10
10
|
name: "ApSummary",
|
|
11
11
|
__name: "ap-summary",
|
|
12
12
|
props: {
|
|
@@ -21,32 +21,31 @@ const X = /* @__PURE__ */ N({
|
|
|
21
21
|
default: "middle"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const n =
|
|
26
|
-
t:
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
n.hasSelect && a.push({
|
|
24
|
+
setup(x) {
|
|
25
|
+
const n = x, {
|
|
26
|
+
t: k
|
|
27
|
+
} = j(), h = d(() => n.summaryTitle ?? k("ap.apSummary.total")), T = (e) => e === 0, S = (e, r) => {
|
|
28
|
+
if (!E(e) || r.valueType !== "number")
|
|
29
|
+
return e;
|
|
30
|
+
const a = r.fieldProps?.field, t = a?.precision || 0;
|
|
31
|
+
return (A(a?.thousands) ? !0 : a?.thousands) ? P(e, t) : $(e, t);
|
|
32
|
+
}, C = d(() => {
|
|
33
|
+
let e = [];
|
|
34
|
+
n.hasSelect && e.push({
|
|
36
35
|
key: "select",
|
|
37
36
|
rowSpan: 1,
|
|
38
37
|
align: "left",
|
|
39
38
|
value: ""
|
|
40
39
|
});
|
|
41
|
-
const
|
|
42
|
-
let
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
else if (
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
value:
|
|
40
|
+
const a = V(n.columns).map((t, c) => {
|
|
41
|
+
let o;
|
|
42
|
+
const b = i(n.data, u(t.dataIndex || t.key));
|
|
43
|
+
if (T(c))
|
|
44
|
+
o = h.value;
|
|
45
|
+
else if (b && (t.customRender || t.renderText)) {
|
|
46
|
+
const L = i(n.data, u(t.dataIndex || t.key));
|
|
47
|
+
o = (t.customRender || t.renderText)?.({
|
|
48
|
+
value: L,
|
|
50
49
|
record: n.data,
|
|
51
50
|
text: void 0,
|
|
52
51
|
index: 0,
|
|
@@ -54,32 +53,32 @@ const X = /* @__PURE__ */ N({
|
|
|
54
53
|
column: {}
|
|
55
54
|
});
|
|
56
55
|
} else
|
|
57
|
-
|
|
56
|
+
o = S(i(n.data, u(t.dataIndex || t.key)), t);
|
|
58
57
|
return {
|
|
59
58
|
key: t.key,
|
|
60
59
|
rowSpan: 1,
|
|
61
60
|
align: t.align,
|
|
62
|
-
value:
|
|
61
|
+
value: N(p, null, [o])
|
|
63
62
|
};
|
|
64
63
|
});
|
|
65
|
-
return
|
|
64
|
+
return e.concat(a);
|
|
66
65
|
}), {
|
|
67
|
-
b:
|
|
68
|
-
e:
|
|
69
|
-
em:
|
|
70
|
-
} =
|
|
71
|
-
return (
|
|
72
|
-
class: f(
|
|
66
|
+
b: _,
|
|
67
|
+
e: g,
|
|
68
|
+
em: v
|
|
69
|
+
} = q("ap-summary");
|
|
70
|
+
return (e, r) => (l(), m(s(D), {
|
|
71
|
+
class: f(s(_)())
|
|
73
72
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
key:
|
|
76
|
-
class: f(`${n.size === "small" ?
|
|
73
|
+
default: y(() => [(l(!0), w(p, null, z(C.value, (a, t) => (l(), m(s(F), {
|
|
74
|
+
key: a.key,
|
|
75
|
+
class: f(`${n.size === "small" ? s(v)("item", "small") : s(g)("item")}`),
|
|
77
76
|
index: t,
|
|
78
|
-
style:
|
|
79
|
-
textAlign:
|
|
77
|
+
style: B({
|
|
78
|
+
textAlign: a.align
|
|
80
79
|
})
|
|
81
80
|
}, {
|
|
82
|
-
default:
|
|
81
|
+
default: y(() => [(l(), m(R(a.value)))]),
|
|
83
82
|
_: 2
|
|
84
83
|
}, 1032, ["class", "index", "style"]))), 128))]),
|
|
85
84
|
_: 1
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
import { flatten as
|
|
2
|
-
import { toThousand as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function E(t) {
|
|
10
|
-
var h;
|
|
11
|
-
const { records: e, columns: d, configList: n, exclude: i } = t;
|
|
12
|
-
if (!e || (e == null ? void 0 : e.length) === 0)
|
|
1
|
+
import { flatten as f, uniqBy as k, isNil as b, get as s, set as x } from "lodash-unified";
|
|
2
|
+
import { toThousand as C, toFixed as L, addNumber as N } from "@aplus-frontend/utils";
|
|
3
|
+
const m = (t) => t?.children && t?.children?.length > 0 ? f(t.children?.map((e) => m(e))) : [t], j = (t) => f(
|
|
4
|
+
t?.map((e) => m(e))
|
|
5
|
+
), l = (t) => Object.prototype.toString.call(t) === "[object Array]" ? t.map((e) => String(e)).join(".") : t ?? "", T = (t, e, c) => c ? C(t, e) : L(t, e);
|
|
6
|
+
function q(t) {
|
|
7
|
+
const { records: e, columns: c, configList: u, exclude: a } = t;
|
|
8
|
+
if (!e || e?.length === 0)
|
|
13
9
|
return {};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
dataIndex: r.dataIndex
|
|
10
|
+
let r = j(c)?.filter((n) => n.valueType === "number")?.map((n) => ({
|
|
11
|
+
key: n.key || "",
|
|
12
|
+
dataIndex: n.dataIndex
|
|
18
13
|
}));
|
|
19
|
-
|
|
20
|
-
(
|
|
14
|
+
u && u?.length > 0 && (r = k(r?.concat(u), "key")), a && a.length > 0 && (r = r.filter(
|
|
15
|
+
(n) => !a.includes(n.key)
|
|
21
16
|
));
|
|
22
|
-
const
|
|
23
|
-
return e
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
R(r, u, +N);
|
|
17
|
+
const y = {};
|
|
18
|
+
return e?.reduce((n, d) => (r.forEach((o) => {
|
|
19
|
+
if (!b(s(d, l(o.dataIndex || o.key)))) {
|
|
20
|
+
const i = o.dataIndex || o.key, g = s(n, l(i)) || 0, h = s(d, l(i)) || 0, p = N(g, h)?.toNumber();
|
|
21
|
+
x(n, i, +p);
|
|
28
22
|
}
|
|
29
|
-
}),
|
|
23
|
+
}), n), y);
|
|
30
24
|
}
|
|
31
25
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
q as computedRecords,
|
|
27
|
+
j as flattenColumns,
|
|
28
|
+
l as formatDataIndex,
|
|
29
|
+
T as formatNumber
|
|
36
30
|
};
|
|
@@ -1,59 +1,48 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as b, defineComponent as T, h as a, render as s, onUnmounted as g } from "vue";
|
|
2
2
|
import "../table-modal.vue.mjs";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import { ConfigProvider as
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
const
|
|
4
|
+
import { omit as C } from "lodash-unified";
|
|
5
|
+
import { ConfigProvider as y, globalConfigCached as A } from "../../../config-provider/config-provider.mjs";
|
|
6
|
+
import h from "../table-modal.vue2.mjs";
|
|
7
|
+
function _(r) {
|
|
8
|
+
let t = !0;
|
|
9
|
+
const c = document.body, e = b(), { destroyOnUnmounted: d = !0 } = r, o = document.createElement("div"), u = () => {
|
|
10
|
+
const n = T({
|
|
11
11
|
setup() {
|
|
12
|
-
return () =>
|
|
13
|
-
|
|
14
|
-
{ ...
|
|
15
|
-
|
|
16
|
-
...
|
|
17
|
-
ref:
|
|
12
|
+
return () => a(
|
|
13
|
+
y,
|
|
14
|
+
{ ...A.value },
|
|
15
|
+
a(h, {
|
|
16
|
+
...C(r, "destroyOnUnmounted"),
|
|
17
|
+
ref: e
|
|
18
18
|
})
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var t;
|
|
27
|
-
d(null, a), (t = a.parentElement) == null || t.removeChild(a), n = !0;
|
|
22
|
+
c.appendChild(o), s(a(n), o), t = !1;
|
|
23
|
+
}, l = () => {
|
|
24
|
+
e.value?.close(), t || setTimeout(() => {
|
|
25
|
+
s(null, o), o.parentElement?.removeChild(o), t = !0;
|
|
28
26
|
}, 400);
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
}, i = async (n = [], v = {}) => (e.value || u(), e.value?.open(n, v)), m = () => {
|
|
28
|
+
t || e.value?.close();
|
|
29
|
+
}, p = () => {
|
|
30
|
+
e.value?.getApTableInstance()?.submit();
|
|
32
31
|
}, f = () => {
|
|
33
|
-
|
|
34
|
-
n || (e = o.value) == null || e.close();
|
|
35
|
-
}, v = () => {
|
|
36
|
-
var e, t;
|
|
37
|
-
(t = (e = o.value) == null ? void 0 : e.getApTableInstance()) == null || t.submit();
|
|
38
|
-
}, b = () => {
|
|
39
|
-
var e, t;
|
|
40
|
-
(t = (e = o.value) == null ? void 0 : e.getApTableInstance()) == null || t.reset();
|
|
32
|
+
e.value?.getApTableInstance()?.reset();
|
|
41
33
|
};
|
|
42
|
-
return
|
|
43
|
-
|
|
34
|
+
return g(() => {
|
|
35
|
+
d && l();
|
|
44
36
|
}), {
|
|
45
|
-
openModal:
|
|
46
|
-
closeModal:
|
|
47
|
-
destroy:
|
|
48
|
-
reloadApTableData:
|
|
49
|
-
resetApTableData:
|
|
50
|
-
getApTableInstance: () =>
|
|
51
|
-
|
|
52
|
-
return (e = o.value) == null ? void 0 : e.getApTableInstance();
|
|
53
|
-
},
|
|
54
|
-
isDestroyed: n
|
|
37
|
+
openModal: i,
|
|
38
|
+
closeModal: m,
|
|
39
|
+
destroy: l,
|
|
40
|
+
reloadApTableData: p,
|
|
41
|
+
resetApTableData: f,
|
|
42
|
+
getApTableInstance: () => e.value?.getApTableInstance(),
|
|
43
|
+
isDestroyed: t
|
|
55
44
|
};
|
|
56
45
|
}
|
|
57
46
|
export {
|
|
58
|
-
|
|
47
|
+
_ as useCreateTableModal
|
|
59
48
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { onUnmounted as
|
|
2
|
-
import { useCreateTableModal as
|
|
3
|
-
import { AsyncOpenResultError as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const { finishCallback:
|
|
7
|
-
...
|
|
1
|
+
import { onUnmounted as m } from "vue";
|
|
2
|
+
import { useCreateTableModal as f } from "./use-create-table-modal.mjs";
|
|
3
|
+
import { AsyncOpenResultError as w } from "../interface.mjs";
|
|
4
|
+
const a = (e) => e.id;
|
|
5
|
+
function b(e) {
|
|
6
|
+
const { finishCallback: c, getRowKey: r, ...l } = e, { destroy: n, openModal: i, closeModal: p, ...u } = f({
|
|
7
|
+
...l,
|
|
8
8
|
destroyOnUnmounted: !1,
|
|
9
|
-
getRowKey:
|
|
10
|
-
}),
|
|
9
|
+
getRowKey: r || a
|
|
10
|
+
}), y = async (t = [], d = {}) => {
|
|
11
11
|
try {
|
|
12
|
-
const
|
|
12
|
+
const o = await i(t, d) || {
|
|
13
13
|
keys: [],
|
|
14
14
|
rows: []
|
|
15
15
|
};
|
|
16
|
-
return
|
|
17
|
-
} catch (
|
|
18
|
-
if (
|
|
16
|
+
return c?.(o), o;
|
|
17
|
+
} catch (o) {
|
|
18
|
+
if (o === w.ModalCancel)
|
|
19
19
|
return {
|
|
20
|
-
keys:
|
|
21
|
-
rows:
|
|
20
|
+
keys: t?.map(r || a),
|
|
21
|
+
rows: t
|
|
22
22
|
};
|
|
23
|
-
throw
|
|
23
|
+
throw o;
|
|
24
24
|
}
|
|
25
25
|
}, s = () => {
|
|
26
|
-
|
|
26
|
+
p();
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
s(),
|
|
28
|
+
return m(() => {
|
|
29
|
+
s(), n();
|
|
30
30
|
}), {
|
|
31
|
-
open:
|
|
32
|
-
destroy:
|
|
31
|
+
open: y,
|
|
32
|
+
destroy: n,
|
|
33
33
|
close: s,
|
|
34
|
-
...
|
|
34
|
+
...u
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
b as useTableSelectModal
|
|
39
39
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, createElementBlock as o, openBlock as l, normalizeClass as a, unref as t, renderSlot as g, Fragment as n, createCommentVNode as h, createElementVNode as m, createVNode as p, withCtx as i, createBlock as s, resolveDynamicComponent as c, h as b, normalizeStyle as v, createTextVNode as B, toDisplayString as $, renderList as M } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { ApTitle as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
const
|
|
3
|
+
import { ApTitle as S } from "../../ap-title/index.mjs";
|
|
4
|
+
import { Button as A, Empty as T } from "@aplus-frontend/antdv";
|
|
5
|
+
import { useLocale as V } from "../../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as D } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const F = /* @__PURE__ */ N({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
10
10
|
leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
|
|
@@ -14,13 +14,13 @@ const q = /* @__PURE__ */ v({
|
|
|
14
14
|
selectedList: { default: () => [] }
|
|
15
15
|
},
|
|
16
16
|
emits: ["clear", "deleteItem"],
|
|
17
|
-
setup(
|
|
18
|
-
const { t: d } =
|
|
17
|
+
setup(k, { emit: I }) {
|
|
18
|
+
const { t: d } = V(), u = k, y = I, C = () => {
|
|
19
19
|
y("clear");
|
|
20
|
-
},
|
|
20
|
+
}, E = (e) => {
|
|
21
21
|
y("deleteItem", e);
|
|
22
|
-
},
|
|
23
|
-
return (e,
|
|
22
|
+
}, L = (e) => typeof u.rightTitle == "function" ? u.rightTitle(e) : `${d("ap.apTableModal.selected")} (${e})`, { m: r } = D("ap-table-modal");
|
|
23
|
+
return (e, j) => (l(), o("div", {
|
|
24
24
|
class: a([
|
|
25
25
|
e.renderSelectedItem ? t(r)("table-layout") : "",
|
|
26
26
|
{ "complex-layout": !!e.renderSelectedItem }
|
|
@@ -31,36 +31,36 @@ const q = /* @__PURE__ */ v({
|
|
|
31
31
|
key: 0,
|
|
32
32
|
class: a(t(r)("table-layout-left"))
|
|
33
33
|
}, [
|
|
34
|
-
p(t(
|
|
34
|
+
p(t(S), { style: { "margin-bottom": "16px" } }, {
|
|
35
35
|
prefix: i(() => [
|
|
36
|
-
(l(), s(c(
|
|
36
|
+
(l(), s(c(b(n, [e.leftTitle]))))
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
}),
|
|
40
40
|
m("div", {
|
|
41
41
|
class: a(t(r)("table-layout-left-content"))
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
g(e.$slots, "default")
|
|
44
44
|
], 2)
|
|
45
|
-
], 2)) :
|
|
45
|
+
], 2)) : h("", !0),
|
|
46
46
|
m("div", {
|
|
47
47
|
class: a(t(r)("table-layout-right")),
|
|
48
|
-
style:
|
|
48
|
+
style: v(e.rightContentStyle)
|
|
49
49
|
}, [
|
|
50
|
-
p(t(
|
|
50
|
+
p(t(S), {
|
|
51
51
|
title: `${t(d)("ap.apTableModal.selected")} (${e.selectedList.length})`
|
|
52
52
|
}, {
|
|
53
53
|
prefix: i(() => [
|
|
54
|
-
(l(), s(c(
|
|
54
|
+
(l(), s(c(b(n, [L(e.selectedList.length)]))))
|
|
55
55
|
]),
|
|
56
56
|
suffix: i(() => [
|
|
57
|
-
p(t(
|
|
57
|
+
p(t(A), {
|
|
58
58
|
type: "link",
|
|
59
59
|
style: { padding: "0px", height: "22px", "border-width": "0px" },
|
|
60
|
-
onClick:
|
|
60
|
+
onClick: C
|
|
61
61
|
}, {
|
|
62
62
|
default: i(() => [
|
|
63
|
-
$(
|
|
63
|
+
B($(t(d)("ap.apTableModal.clear")), 1)
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
66
66
|
})
|
|
@@ -70,21 +70,18 @@ const q = /* @__PURE__ */ v({
|
|
|
70
70
|
m("div", {
|
|
71
71
|
class: a(t(r)("table-layout-right-content"))
|
|
72
72
|
}, [
|
|
73
|
-
(l(!0), o(n, null,
|
|
74
|
-
|
|
75
|
-
return l(), s(c((g = e.renderSelectedItem) == null ? void 0 : g.call(e, f, { deleteItem: L })), { key: f });
|
|
76
|
-
}), 128)),
|
|
77
|
-
e.selectedList.length === 0 ? (l(), s(t(k), {
|
|
73
|
+
(l(!0), o(n, null, M(e.selectedList, (f) => (l(), s(c(e.renderSelectedItem?.(f, { deleteItem: E })), { key: f }))), 128)),
|
|
74
|
+
e.selectedList.length === 0 ? (l(), s(t(T), {
|
|
78
75
|
key: 0,
|
|
79
|
-
image: t(
|
|
76
|
+
image: t(T).PRESENTED_IMAGE_SIMPLE,
|
|
80
77
|
style: { "margin-top": "100px" }
|
|
81
|
-
}, null, 8, ["image"])) :
|
|
78
|
+
}, null, 8, ["image"])) : h("", !0)
|
|
82
79
|
], 2)
|
|
83
80
|
], 6)
|
|
84
|
-
], 64)) :
|
|
81
|
+
], 64)) : g(e.$slots, "default", { key: 1 })
|
|
85
82
|
], 2));
|
|
86
83
|
}
|
|
87
84
|
});
|
|
88
85
|
export {
|
|
89
|
-
|
|
86
|
+
F as default
|
|
90
87
|
};
|