@aplus-frontend/ui 6.26.2 → 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 +113 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +44 -53
- 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-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.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-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 +5 -5
- package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
- package/theme/index.css +2 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { IconVariantDownload as
|
|
5
|
-
import { LoadingOutlined as
|
|
1
|
+
import { defineComponent as O, computed as p, ref as I, createElementBlock as m, openBlock as n, mergeProps as T, unref as e, renderSlot as d, createVNode as u, withCtx as g, createElementVNode as r, normalizeClass as o, createBlock as A, createCommentVNode as F, Fragment as V, renderList as S, createSlots as j, createTextVNode as D, toDisplayString as E } from "vue";
|
|
2
|
+
import U from "./icons/file-icon.vue.mjs";
|
|
3
|
+
import { Tooltip as z, TypographyText as G } from "@aplus-frontend/antdv";
|
|
4
|
+
import { IconVariantDownload as P } from "@aplus-frontend/icon";
|
|
5
|
+
import { LoadingOutlined as q } from "@ant-design/icons-vue";
|
|
6
6
|
import "../ap-title/ApTitle.vue.mjs";
|
|
7
7
|
import "../../ap-download/ap-download.vue2.mjs";
|
|
8
8
|
import "../../config-provider/index.mjs";
|
|
9
|
-
import { getFileInfo as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
9
|
+
import { getFileInfo as H } from "./utils/index.mjs";
|
|
10
|
+
import { useNamespace as J } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useLocale as K } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import M from "../ap-title/ApTitle.vue2.mjs";
|
|
14
|
+
import Q from "../../ap-download/ap-download.vue.mjs";
|
|
15
|
+
const R = ["onClick"], fe = /* @__PURE__ */ O({
|
|
16
16
|
__name: "ap-appendix",
|
|
17
17
|
props: {
|
|
18
18
|
fileList: {},
|
|
@@ -23,71 +23,67 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
23
23
|
column: { default: 2 },
|
|
24
24
|
isFileAreaBorder: { type: Boolean, default: !1 }
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { b:
|
|
26
|
+
setup(h) {
|
|
27
|
+
const { b: w, e: a, em: C } = J("ap-appendix"), { t: v } = K(), l = h, $ = _("apUpload"), k = _(
|
|
28
28
|
"downloadCenterTriggerConfig"
|
|
29
|
-
),
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
32
|
-
() =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
async function I(l, m) {
|
|
40
|
-
var o, A;
|
|
41
|
-
if (!(i.value.findIndex((r) => r === m) > -1)) {
|
|
42
|
-
i.value = [...i.value, m];
|
|
29
|
+
), c = p(
|
|
30
|
+
() => H(l?.needName, l?.fileList ?? [])
|
|
31
|
+
), x = p(
|
|
32
|
+
() => l.getOssAccess || $.value?.getOssAccess
|
|
33
|
+
), N = p(
|
|
34
|
+
() => !(Array.isArray(c.value) && c.value.length)
|
|
35
|
+
), i = I([]), B = p(() => l.title || v("ap.apAppendix.appendix"));
|
|
36
|
+
async function b(s, f) {
|
|
37
|
+
if (!(i.value.findIndex((t) => t === f) > -1)) {
|
|
38
|
+
i.value = [...i.value, f];
|
|
43
39
|
try {
|
|
44
|
-
if (
|
|
45
|
-
let
|
|
46
|
-
objectName:
|
|
47
|
-
fileName:
|
|
40
|
+
if (k.value?.trigger) {
|
|
41
|
+
let t = [s].map((L) => ({
|
|
42
|
+
objectName: L.path,
|
|
43
|
+
fileName: L.fileName
|
|
48
44
|
}));
|
|
49
|
-
await
|
|
45
|
+
await k.value?.trigger(t);
|
|
50
46
|
}
|
|
51
47
|
} finally {
|
|
52
|
-
i.value = i.value.filter((
|
|
48
|
+
i.value = i.value.filter((t) => t !== f);
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
}
|
|
56
|
-
return (
|
|
57
|
-
class: [
|
|
52
|
+
return (s, f) => (n(), m("div", T({
|
|
53
|
+
class: [e(w)()]
|
|
58
54
|
}, {
|
|
59
|
-
...
|
|
55
|
+
...s.$attrs
|
|
60
56
|
}, {
|
|
61
57
|
style: {
|
|
62
|
-
"--ap-appendix-column": `repeat(${Number(
|
|
58
|
+
"--ap-appendix-column": `repeat(${Number(l?.column || 2)}, 1fr)`
|
|
63
59
|
}
|
|
64
60
|
}), [
|
|
65
|
-
|
|
66
|
-
fileList:
|
|
61
|
+
d(s.$slots, "title", {
|
|
62
|
+
fileList: l.fileList
|
|
67
63
|
}, () => [
|
|
68
|
-
|
|
69
|
-
title:
|
|
70
|
-
"help-message":
|
|
64
|
+
u(M, {
|
|
65
|
+
title: B.value,
|
|
66
|
+
"help-message": l?.tooltip
|
|
71
67
|
}, {
|
|
72
|
-
suffix:
|
|
73
|
-
|
|
74
|
-
class:
|
|
68
|
+
suffix: g(() => [
|
|
69
|
+
r("div", {
|
|
70
|
+
class: o([e(a)("suffix")])
|
|
75
71
|
}, [
|
|
76
|
-
|
|
77
|
-
fileList:
|
|
72
|
+
d(s.$slots, "titleSuffix", {
|
|
73
|
+
fileList: l.fileList
|
|
78
74
|
}),
|
|
79
|
-
|
|
80
|
-
fileList:
|
|
75
|
+
d(s.$slots, "titleDownloadAllBtn", {
|
|
76
|
+
fileList: l.fileList
|
|
81
77
|
}, () => [
|
|
82
|
-
|
|
78
|
+
N.value ? F("", !0) : (n(), A(Q, {
|
|
83
79
|
key: 0,
|
|
84
|
-
class:
|
|
85
|
-
text:
|
|
86
|
-
"get-oss-access":
|
|
87
|
-
"file-name":
|
|
80
|
+
class: o([e(a)("download-all")]),
|
|
81
|
+
text: e(v)("ap.apAppendix.downloadAll"),
|
|
82
|
+
"get-oss-access": x.value,
|
|
83
|
+
"file-name": c.value
|
|
88
84
|
}, {
|
|
89
|
-
icon:
|
|
90
|
-
|
|
85
|
+
icon: g(() => [
|
|
86
|
+
u(e(P))
|
|
91
87
|
]),
|
|
92
88
|
_: 1
|
|
93
89
|
}, 8, ["class", "text", "get-oss-access", "file-name"]))
|
|
@@ -97,56 +93,56 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
97
93
|
_: 3
|
|
98
94
|
}, 8, ["title", "help-message"])
|
|
99
95
|
]),
|
|
100
|
-
|
|
101
|
-
fileList:
|
|
96
|
+
d(s.$slots, "fileArea", {
|
|
97
|
+
fileList: l.fileList
|
|
102
98
|
}, () => [
|
|
103
|
-
|
|
99
|
+
N.value ? F("", !0) : (n(), m("div", {
|
|
104
100
|
key: 0,
|
|
105
|
-
class:
|
|
106
|
-
[
|
|
107
|
-
[
|
|
101
|
+
class: o({
|
|
102
|
+
[e(a)("file-area")]: !0,
|
|
103
|
+
[e(C)("file-area", "border")]: !!l.isFileAreaBorder
|
|
108
104
|
})
|
|
109
105
|
}, [
|
|
110
|
-
|
|
111
|
-
class:
|
|
106
|
+
r("div", {
|
|
107
|
+
class: o([e(a)("file-area-content")])
|
|
112
108
|
}, [
|
|
113
|
-
(
|
|
114
|
-
key:
|
|
115
|
-
class:
|
|
116
|
-
[
|
|
117
|
-
[
|
|
109
|
+
(n(!0), m(V, null, S(c.value, (y, t) => (n(), m("div", {
|
|
110
|
+
key: t,
|
|
111
|
+
class: o({
|
|
112
|
+
[e(a)("file-area-content-item")]: !0,
|
|
113
|
+
[e(C)("file-area-content-item", "loading")]: i.value.includes(t)
|
|
118
114
|
})
|
|
119
115
|
}, [
|
|
120
|
-
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
-
class:
|
|
124
|
-
[
|
|
125
|
-
[
|
|
116
|
+
u(e(z), null, j({
|
|
117
|
+
default: g(() => [
|
|
118
|
+
r("div", {
|
|
119
|
+
class: o({
|
|
120
|
+
[e(a)("file-area-content-item-content")]: !0,
|
|
121
|
+
[e(a)("file-area-content-item--loading-content")]: i.value.includes(t)
|
|
126
122
|
}),
|
|
127
|
-
onClick: (
|
|
123
|
+
onClick: (L) => b(y, t)
|
|
128
124
|
}, [
|
|
129
|
-
|
|
130
|
-
class:
|
|
125
|
+
r("div", {
|
|
126
|
+
class: o([e(a)("file-area-content-item-icon")])
|
|
131
127
|
}, [
|
|
132
|
-
i.value.includes(
|
|
128
|
+
i.value.includes(t) ? (n(), A(e(q), { key: 0 })) : (n(), A(U, { key: 1 }))
|
|
133
129
|
], 2),
|
|
134
|
-
|
|
135
|
-
class:
|
|
130
|
+
r("div", {
|
|
131
|
+
class: o([e(a)("file-area-content-item-file-name")])
|
|
136
132
|
}, [
|
|
137
|
-
|
|
133
|
+
u(e(G), {
|
|
138
134
|
ellipsis: "",
|
|
139
|
-
content:
|
|
135
|
+
content: y.fileName
|
|
140
136
|
}, null, 8, ["content"])
|
|
141
137
|
], 2)
|
|
142
|
-
], 10,
|
|
138
|
+
], 10, R)
|
|
143
139
|
]),
|
|
144
140
|
_: 2
|
|
145
141
|
}, [
|
|
146
|
-
i.value.includes(
|
|
142
|
+
i.value.includes(t) ? void 0 : {
|
|
147
143
|
name: "title",
|
|
148
|
-
fn:
|
|
149
|
-
|
|
144
|
+
fn: g(() => [
|
|
145
|
+
D(E(e(v)("ap.apAppendix.downloadFile")), 1)
|
|
150
146
|
]),
|
|
151
147
|
key: "0"
|
|
152
148
|
}
|
|
@@ -159,5 +155,5 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
159
155
|
}
|
|
160
156
|
});
|
|
161
157
|
export {
|
|
162
|
-
|
|
158
|
+
fe as default
|
|
163
159
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApNeedNameKeyDefault as
|
|
2
|
-
function
|
|
3
|
-
if (
|
|
1
|
+
import { ApNeedNameKeyDefault as p } from "../interface.mjs";
|
|
2
|
+
function n(y, t) {
|
|
3
|
+
if (y === !0) {
|
|
4
4
|
if (typeof t == "string")
|
|
5
5
|
return [
|
|
6
6
|
{
|
|
@@ -10,17 +10,17 @@ function u(p, t) {
|
|
|
10
10
|
];
|
|
11
11
|
if (Array.isArray(t))
|
|
12
12
|
return t.map((r) => ({
|
|
13
|
-
path:
|
|
14
|
-
fileName:
|
|
13
|
+
path: r?.[p.pathKey] ?? r,
|
|
14
|
+
fileName: r?.[p.nameKey] ?? r
|
|
15
15
|
}));
|
|
16
16
|
if (typeof t == "object")
|
|
17
17
|
return [
|
|
18
18
|
{
|
|
19
|
-
path: t
|
|
20
|
-
fileName: t
|
|
19
|
+
path: t?.[p.pathKey],
|
|
20
|
+
fileName: t?.[p.nameKey]
|
|
21
21
|
}
|
|
22
22
|
];
|
|
23
|
-
} else if (typeof
|
|
23
|
+
} else if (typeof y == "object") {
|
|
24
24
|
if (typeof t == "string")
|
|
25
25
|
return [
|
|
26
26
|
{
|
|
@@ -30,14 +30,14 @@ function u(p, t) {
|
|
|
30
30
|
];
|
|
31
31
|
if (Array.isArray(t))
|
|
32
32
|
return t.map((r) => ({
|
|
33
|
-
path:
|
|
34
|
-
fileName:
|
|
33
|
+
path: r?.[y?.pathKey || p.pathKey] ?? r,
|
|
34
|
+
fileName: r?.[y?.nameKey || p.nameKey] ?? r
|
|
35
35
|
}));
|
|
36
36
|
if (typeof t == "object")
|
|
37
37
|
return [
|
|
38
38
|
{
|
|
39
|
-
path: t
|
|
40
|
-
fileName: t
|
|
39
|
+
path: t?.[y?.pathKey || p.pathKey],
|
|
40
|
+
fileName: t?.[y?.nameKey || p.nameKey]
|
|
41
41
|
}
|
|
42
42
|
];
|
|
43
43
|
} else {
|
|
@@ -59,5 +59,5 @@ function u(p, t) {
|
|
|
59
59
|
return [];
|
|
60
60
|
}
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
n as getFileInfo
|
|
63
63
|
};
|
|
@@ -1,112 +1,105 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Tooltip as
|
|
1
|
+
import { defineComponent as M, ref as C, useSlots as U, computed as n, cloneVNode as _, toRaw as f, unref as j, createVNode as t, createTextVNode as K } from "vue";
|
|
2
|
+
import { Tooltip as B, Popover as G } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { ApAttachmentProps as
|
|
5
|
-
import { getHexWithOpacity as
|
|
6
|
-
import { useOssInit as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { LoadingOutlined as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
const
|
|
4
|
+
import { ApAttachmentProps as H } from "./constans.mjs";
|
|
5
|
+
import { getHexWithOpacity as R, getFileInfo as y } from "../../ap-download/utils/getFileInfo.mjs";
|
|
6
|
+
import { useOssInit as W } from "../../ap-download/hooks/index.mjs";
|
|
7
|
+
import { debounce as q, isArray as D } from "lodash-unified";
|
|
8
|
+
import { LoadingOutlined as v } from "@ant-design/icons-vue";
|
|
9
|
+
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useGlobalConfig as g } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useLocale as J } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
const ie = /* @__PURE__ */ M({
|
|
13
13
|
name: "ApAttachment",
|
|
14
|
-
props:
|
|
14
|
+
props: H(),
|
|
15
15
|
setup(e) {
|
|
16
16
|
const {
|
|
17
|
-
b,
|
|
18
|
-
e:
|
|
19
|
-
} =
|
|
20
|
-
lang:
|
|
21
|
-
t:
|
|
22
|
-
} =
|
|
17
|
+
b: F,
|
|
18
|
+
e: l
|
|
19
|
+
} = E("ap-attachment"), w = g("uiMode"), b = g("apUpload"), h = g("downloadCenterTriggerConfig"), {
|
|
20
|
+
lang: O,
|
|
21
|
+
t: r
|
|
22
|
+
} = J(), i = C(!1), c = C(""), m = U(), T = n(() => O.value === "zh-cn" ? "zh_CN" : "en_US"), u = n(() => e.attachmentList.length === 1), N = n(() => e.needName ? e.attachmentList.length > 0 && e.needName && e.needName.nameKey ? e.attachmentList[0][e.needName.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), x = n(() => u.value ? N.value : r("ap.apAttachment.downloadall")), p = n(() => e.color ? e.color : w.value === "aplus" ? "#0070FF" : "#1890FF"), P = n(() => ({
|
|
23
23
|
width: u.value ? "auto" : "266px"
|
|
24
|
-
})),
|
|
25
|
-
"--download-main-color":
|
|
26
|
-
"--download-main-color-opacity":
|
|
27
|
-
})),
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
}), z = n(() => {
|
|
31
|
-
const t = d.default ? d.default()[0] : null;
|
|
32
|
-
return t ? K(t, {
|
|
24
|
+
})), A = n(() => ({
|
|
25
|
+
"--download-main-color": p.value,
|
|
26
|
+
"--download-main-color-opacity": R(p.value, 0.6)
|
|
27
|
+
})), k = n(() => e.getOssAccess || b.value?.getOssAccess), S = n(() => {
|
|
28
|
+
const a = m.default ? m.default()[0] : null;
|
|
29
|
+
return a ? _(a, {
|
|
33
30
|
style: {
|
|
34
31
|
"font-size": "16px"
|
|
35
32
|
}
|
|
36
33
|
}) : null;
|
|
37
|
-
}),
|
|
38
|
-
var o, C;
|
|
34
|
+
}), d = q(async (a, s) => {
|
|
39
35
|
if (!e.disabled) {
|
|
40
36
|
i.value = !0, s && (c.value = s);
|
|
41
37
|
try {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
const
|
|
45
|
-
objectName:
|
|
46
|
-
fileName:
|
|
38
|
+
const o = D(f(a)) ? f(a) : [f(a)];
|
|
39
|
+
if (h.value?.trigger) {
|
|
40
|
+
const I = y(e.needName, o).map((L) => ({
|
|
41
|
+
objectName: L.path,
|
|
42
|
+
fileName: L.fileName
|
|
47
43
|
}));
|
|
48
|
-
|
|
44
|
+
h.value?.trigger(I);
|
|
49
45
|
} else
|
|
50
|
-
await (await
|
|
51
|
-
} catch (
|
|
52
|
-
console.error(
|
|
46
|
+
await (await W(k.value, j(T))).downloadFile(y(e.needName, o));
|
|
47
|
+
} catch (o) {
|
|
48
|
+
console.error(o);
|
|
53
49
|
} finally {
|
|
54
50
|
i.value = !1, c.value = "";
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
|
-
}, 500),
|
|
58
|
-
class: [
|
|
59
|
-
style:
|
|
60
|
-
}, [
|
|
53
|
+
}, 500), V = (a) => a && a.length > 0 ? t("ul", {
|
|
54
|
+
class: [l("file-list")],
|
|
55
|
+
style: A.value
|
|
56
|
+
}, [a.map((s, o) => t("li", {
|
|
61
57
|
key: o,
|
|
62
|
-
class: [
|
|
63
|
-
onClick: () =>
|
|
64
|
-
}, [i.value && c.value === o + 1 ?
|
|
65
|
-
class: [
|
|
66
|
-
}, [
|
|
58
|
+
class: [l("file-item")],
|
|
59
|
+
onClick: () => d(s, o + 1)
|
|
60
|
+
}, [i.value && c.value === o + 1 ? t("span", {
|
|
61
|
+
class: [l("spin")]
|
|
62
|
+
}, [t(v, {
|
|
67
63
|
spin: !0
|
|
68
|
-
}, null)]) : null, s.fileName])),
|
|
69
|
-
class: [
|
|
70
|
-
onClick: () =>
|
|
71
|
-
}, [i.value && c.value === "all" ?
|
|
72
|
-
class: [
|
|
73
|
-
}, [
|
|
64
|
+
}, null)]) : null, s.fileName])), t("li", {
|
|
65
|
+
class: [l("down-load-all")],
|
|
66
|
+
onClick: () => d(e.attachmentList, "all")
|
|
67
|
+
}, [i.value && c.value === "all" ? t("span", {
|
|
68
|
+
class: [l("spin")]
|
|
69
|
+
}, [t(v, {
|
|
74
70
|
spin: !0
|
|
75
|
-
}, null)]) : null,
|
|
76
|
-
return () => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}, [m("ap.apAttachment.more")])]
|
|
106
|
-
})]);
|
|
107
|
-
};
|
|
71
|
+
}, null)]) : null, r("ap.apAttachment.downloadall")])]) : null;
|
|
72
|
+
return () => e.attachmentList?.length > 0 && t("div", {
|
|
73
|
+
class: [F()],
|
|
74
|
+
style: [P.value, A.value]
|
|
75
|
+
}, [t(B, {
|
|
76
|
+
title: x.value,
|
|
77
|
+
placement: e.textToolTipPlacement,
|
|
78
|
+
color: e.toolTipBgColor
|
|
79
|
+
}, {
|
|
80
|
+
default: () => [t("div", {
|
|
81
|
+
class: [l("content")],
|
|
82
|
+
onClick: () => d(u.value ? e.attachmentList[0] : e.attachmentList, "global")
|
|
83
|
+
}, [i.value && c.value === "global" ? t("div", {
|
|
84
|
+
class: [l("spin")]
|
|
85
|
+
}, [t(v, {
|
|
86
|
+
spin: !0
|
|
87
|
+
}, null)]) : null, m.default ? t("div", {
|
|
88
|
+
class: [l("text-render")]
|
|
89
|
+
}, [S.value, K(" ")]) : null, t("div", {
|
|
90
|
+
class: [l("text-inner")]
|
|
91
|
+
}, [N.value])])]
|
|
92
|
+
}), t(G, {
|
|
93
|
+
content: V(e.attachmentList),
|
|
94
|
+
placement: e.fileMorePopoverPlacement,
|
|
95
|
+
color: "#fff"
|
|
96
|
+
}, {
|
|
97
|
+
default: () => [!u.value && t("div", {
|
|
98
|
+
class: [l("more")]
|
|
99
|
+
}, [r("ap.apAttachment.more")])]
|
|
100
|
+
})]);
|
|
108
101
|
}
|
|
109
102
|
});
|
|
110
103
|
export {
|
|
111
|
-
|
|
104
|
+
ie as default
|
|
112
105
|
};
|
|
@@ -1,77 +1,70 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { defineComponent as _, useSlots as w, computed as B, ref as m, watch as S, createElementBlock as f, openBlock as v, normalizeClass as d, unref as e, withDirectives as g, createElementVNode as s, renderSlot as p, vShow as k, createCommentVNode as C, createTextVNode as h, toDisplayString as a, createVNode as N, withCtx as R } from "vue";
|
|
2
|
+
import { Button as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
const
|
|
4
|
+
import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
import { useLocale as b } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
const x = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "selected-desc"
|
|
9
|
-
},
|
|
9
|
+
}, D = { class: "selected-desc-conut" }, E = { class: "selected-desc-clean" }, j = /* @__PURE__ */ _({
|
|
10
10
|
__name: "ApBatchAction",
|
|
11
11
|
props: {
|
|
12
12
|
selectedRowKeys: {},
|
|
13
13
|
clearAll: {},
|
|
14
14
|
showSelected: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const { b:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}), i = N(!1), p = N();
|
|
21
|
-
return K(
|
|
22
|
-
() => s.header,
|
|
16
|
+
setup(y) {
|
|
17
|
+
const { b: c } = $("ap-batch-action"), { t: r } = b(), l = y, u = w(), A = B(() => l.selectedRowKeys?.length || 0), n = m(!1), i = m();
|
|
18
|
+
return S(
|
|
19
|
+
() => u.header,
|
|
23
20
|
() => {
|
|
24
21
|
setTimeout(() => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(e == null ? void 0 : e.length) === 1 && ((y = (h = e == null ? void 0 : e[0]) == null ? void 0 : h.type) == null ? void 0 : y.name) === "ASpace" ? i.value = !!((S = (B = (a = Array.prototype.slice.call((w = (_ = (A = p.value) == null ? void 0 : A.children) == null ? void 0 : _[0]) == null ? void 0 : w.children)) == null ? void 0 : a.filter) == null ? void 0 : B.call(a, (u) => {
|
|
28
|
-
var C;
|
|
29
|
-
return (C = u == null ? void 0 : u.children) == null ? void 0 : C.length;
|
|
30
|
-
})) != null && S.length) : i.value = !!((k = (g = p.value) == null ? void 0 : g.children) != null && k.length);
|
|
22
|
+
const t = u.header?.();
|
|
23
|
+
t?.length === 1 && t?.[0]?.type?.name === "ASpace" ? n.value = !!Array.prototype.slice.call(i.value?.children?.[0]?.children)?.filter?.((o) => o?.children?.length)?.length : n.value = !!i.value?.children?.length;
|
|
31
24
|
});
|
|
32
25
|
},
|
|
33
26
|
{
|
|
34
27
|
immediate: !0
|
|
35
28
|
}
|
|
36
|
-
), (
|
|
37
|
-
class:
|
|
29
|
+
), (t, o) => (v(), f("div", {
|
|
30
|
+
class: d([e(c)()])
|
|
38
31
|
}, [
|
|
39
|
-
|
|
32
|
+
g(s("div", {
|
|
40
33
|
ref_key: "headerRef",
|
|
41
|
-
ref:
|
|
42
|
-
class:
|
|
34
|
+
ref: i,
|
|
35
|
+
class: d(e(c)("header"))
|
|
43
36
|
}, [
|
|
44
|
-
|
|
37
|
+
p(t.$slots, "header")
|
|
45
38
|
], 2), [
|
|
46
|
-
[
|
|
39
|
+
[k, n.value]
|
|
47
40
|
]),
|
|
48
|
-
|
|
49
|
-
class:
|
|
41
|
+
s("div", {
|
|
42
|
+
class: d(e(c)("body"))
|
|
50
43
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
p(t.$slots, "prefix"),
|
|
45
|
+
l.showSelected ? (v(), f("div", x, [
|
|
46
|
+
s("div", D, [
|
|
47
|
+
h(a(e(r)("ap.apBatchAction.selected")) + " ", 1),
|
|
48
|
+
s("span", null, a(A.value), 1),
|
|
49
|
+
h(" " + a(e(r)("ap.apBatchAction.piecesOfData")), 1)
|
|
57
50
|
]),
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
s("div", E, [
|
|
52
|
+
N(e(V), {
|
|
60
53
|
type: "link",
|
|
61
|
-
onClick:
|
|
54
|
+
onClick: o[0] || (o[0] = (H) => l.clearAll && l.clearAll())
|
|
62
55
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
56
|
+
default: R(() => [
|
|
57
|
+
h(a(e(r)("ap.apBatchAction.empty")), 1)
|
|
65
58
|
]),
|
|
66
59
|
_: 1
|
|
67
60
|
})
|
|
68
61
|
])
|
|
69
|
-
])) :
|
|
70
|
-
|
|
62
|
+
])) : C("", !0),
|
|
63
|
+
p(t.$slots, "suffix")
|
|
71
64
|
], 2)
|
|
72
65
|
], 2));
|
|
73
66
|
}
|
|
74
67
|
});
|
|
75
68
|
export {
|
|
76
|
-
|
|
69
|
+
j as default
|
|
77
70
|
};
|