@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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, useSlots as O, computed as
|
|
1
|
+
import { defineComponent as F, useSlots as O, computed as t, createBlock as u, createCommentVNode as j, openBlock as p, unref as n, mergeProps as f, createSlots as L, withCtx as r, createElementVNode as x, normalizeStyle as E, resolveDynamicComponent as S, h as g, createVNode as i, renderList as k, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as I } from "vue";
|
|
2
2
|
import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/index.mjs";
|
|
4
4
|
import "./MenuItemGroup.vue.mjs";
|
|
@@ -9,122 +9,107 @@ import { useInjectApTable as Q } from "../../ap-table/context.mjs";
|
|
|
9
9
|
import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
11
|
import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
|
-
import
|
|
12
|
+
import B from "./MenuItemGroup.vue2.mjs";
|
|
13
13
|
import Y from "../../ap-button/ap-button.vue.mjs";
|
|
14
|
-
const
|
|
14
|
+
const me = /* @__PURE__ */ F({
|
|
15
15
|
__name: "ApBatchActionGroup",
|
|
16
16
|
props: {
|
|
17
17
|
selectedRows: {},
|
|
18
18
|
buttonProps: {},
|
|
19
19
|
menuList: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const { b: h } = U("ap-batch-action-group"), { t:
|
|
23
|
-
() =>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
), _ = n(
|
|
33
|
-
() => {
|
|
34
|
-
var t;
|
|
35
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || R("ap.apApBatchActionGroup.batchOperation");
|
|
36
|
-
}
|
|
37
|
-
), M = n(() => (e == null ? void 0 : e.selectedRows) || []), p = n(
|
|
38
|
-
() => {
|
|
39
|
-
var t;
|
|
40
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? M.value.length === 0 : !1);
|
|
41
|
-
}
|
|
42
|
-
), V = n(() => {
|
|
43
|
-
const t = {
|
|
21
|
+
setup(C, { expose: $ }) {
|
|
22
|
+
const { b: h } = U("ap-batch-action-group"), { t: D } = W(), { columns: R, dataSource: T } = Q(), o = C, N = X("uiMode"), { hasPermission: z } = K(), w = O(), y = t(
|
|
23
|
+
() => o?.buttonProps?.dropdownType || "default"
|
|
24
|
+
), a = t(
|
|
25
|
+
() => o?.buttonProps?.type || "borderLink"
|
|
26
|
+
), P = t(
|
|
27
|
+
() => o?.buttonProps?.content || D("ap.apApBatchActionGroup.batchOperation")
|
|
28
|
+
), G = t(() => o?.selectedRows || []), c = t(
|
|
29
|
+
() => o?.buttonProps?.disabled ?? (Array.isArray(o.selectedRows) ? G.value.length === 0 : !1)
|
|
30
|
+
), M = t(() => {
|
|
31
|
+
const e = {
|
|
44
32
|
aplus: "#0070FF",
|
|
45
33
|
admin: "#34b77c"
|
|
46
34
|
};
|
|
47
|
-
return
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return e != null && e.buttonProps ? {
|
|
57
|
-
...e.buttonProps,
|
|
58
|
-
type: u.value === "borderLink" ? "default" : u.value
|
|
35
|
+
return a.value === "borderLink" ? c.value ? void 0 : e[N.value] || e.aplus : void 0;
|
|
36
|
+
}), l = t(() => o?.menuList?.filter((e) => {
|
|
37
|
+
let m = e?.ifShow;
|
|
38
|
+
return !e?.ifShow && e?.auth && (m = () => z(e.auth)), m?.() ?? !0;
|
|
39
|
+
}) || []);
|
|
40
|
+
function _() {
|
|
41
|
+
return o?.buttonProps ? {
|
|
42
|
+
...o.buttonProps,
|
|
43
|
+
type: a.value === "borderLink" ? "default" : a.value
|
|
59
44
|
} : {};
|
|
60
45
|
}
|
|
61
|
-
return
|
|
62
|
-
columns:
|
|
63
|
-
dataSource:
|
|
64
|
-
}), (
|
|
46
|
+
return $({
|
|
47
|
+
columns: R,
|
|
48
|
+
dataSource: T
|
|
49
|
+
}), (e, m) => l.value.length && y.value === "dropdown" ? (p(), u(n(q), f({
|
|
65
50
|
key: 0,
|
|
66
|
-
class: [
|
|
51
|
+
class: [n(h)()]
|
|
67
52
|
}, {
|
|
68
|
-
...
|
|
69
|
-
...
|
|
70
|
-
disabled:
|
|
71
|
-
}),
|
|
53
|
+
...e.$attrs,
|
|
54
|
+
..._(),
|
|
55
|
+
disabled: c.value
|
|
56
|
+
}), L({
|
|
72
57
|
overlay: r(() => [
|
|
73
|
-
i(
|
|
74
|
-
...
|
|
75
|
-
}, { "menu-list":
|
|
58
|
+
i(B, f({
|
|
59
|
+
...o
|
|
60
|
+
}, { "menu-list": l.value }), null, 16, ["menu-list"])
|
|
76
61
|
]),
|
|
77
62
|
default: r(() => [
|
|
78
63
|
x("span", {
|
|
79
64
|
style: E({
|
|
80
|
-
color:
|
|
65
|
+
color: M.value
|
|
81
66
|
})
|
|
82
67
|
}, [
|
|
83
|
-
(
|
|
68
|
+
(p(), u(S(g("span", [P.value]))))
|
|
84
69
|
], 4)
|
|
85
70
|
]),
|
|
86
71
|
_: 2
|
|
87
72
|
}, [
|
|
88
|
-
|
|
89
|
-
name:
|
|
90
|
-
fn: r((
|
|
91
|
-
|
|
73
|
+
k(w, (V, s) => ({
|
|
74
|
+
name: s,
|
|
75
|
+
fn: r((d) => [
|
|
76
|
+
A(e.$slots, s, b(v(d || {})))
|
|
92
77
|
])
|
|
93
78
|
}))
|
|
94
|
-
]), 1040, ["class"])) :
|
|
79
|
+
]), 1040, ["class"])) : l.value.length && y.value === "default" ? (p(), u(n(H), {
|
|
95
80
|
key: 1,
|
|
96
|
-
class: I([
|
|
97
|
-
disabled:
|
|
98
|
-
},
|
|
81
|
+
class: I([n(h)()]),
|
|
82
|
+
disabled: c.value
|
|
83
|
+
}, L({
|
|
99
84
|
overlay: r(() => [
|
|
100
|
-
i(
|
|
101
|
-
...
|
|
102
|
-
}, { "menu-list":
|
|
85
|
+
i(B, f({
|
|
86
|
+
...o
|
|
87
|
+
}, { "menu-list": l.value }), null, 16, ["menu-list"])
|
|
103
88
|
]),
|
|
104
89
|
default: r(() => [
|
|
105
|
-
i(
|
|
106
|
-
...
|
|
107
|
-
...
|
|
108
|
-
type:
|
|
90
|
+
i(n(Y), b(v({
|
|
91
|
+
...e.$attrs,
|
|
92
|
+
..._(),
|
|
93
|
+
type: a.value
|
|
109
94
|
})), {
|
|
110
95
|
default: r(() => [
|
|
111
|
-
(
|
|
112
|
-
i(
|
|
96
|
+
(p(), u(S(g("span", [P.value])))),
|
|
97
|
+
i(n(J))
|
|
113
98
|
]),
|
|
114
99
|
_: 1
|
|
115
100
|
}, 16)
|
|
116
101
|
]),
|
|
117
102
|
_: 2
|
|
118
103
|
}, [
|
|
119
|
-
|
|
120
|
-
name:
|
|
121
|
-
fn: r((
|
|
122
|
-
|
|
104
|
+
k(w, (V, s) => ({
|
|
105
|
+
name: s,
|
|
106
|
+
fn: r((d) => [
|
|
107
|
+
A(e.$slots, s, b(v(d || {})))
|
|
123
108
|
])
|
|
124
109
|
}))
|
|
125
110
|
]), 1032, ["class", "disabled"])) : j("", !0);
|
|
126
111
|
}
|
|
127
112
|
});
|
|
128
113
|
export {
|
|
129
|
-
|
|
114
|
+
me as default
|
|
130
115
|
};
|
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { LoadingOutlined as
|
|
3
|
-
import { Menu as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as m, createBlock as l, openBlock as o, unref as s, withCtx as c, createElementBlock as _, Fragment as i, renderList as v, mergeProps as h, createElementVNode as y, withDirectives as k, createVNode as w, vShow as g, resolveDynamicComponent as C, h as b } from "vue";
|
|
2
|
+
import { LoadingOutlined as L } from "@ant-design/icons-vue";
|
|
3
|
+
import { Menu as M, MenuItem as B } from "@aplus-frontend/antdv";
|
|
4
|
+
const R = { style: { display: "flex", "align-items": "center" } }, I = /* @__PURE__ */ f({
|
|
5
5
|
__name: "MenuItemGroup",
|
|
6
6
|
props: {
|
|
7
7
|
selectedRows: {},
|
|
8
8
|
buttonProps: {},
|
|
9
9
|
menuList: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
async function p(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r.value[n] = !0;
|
|
11
|
+
setup(d) {
|
|
12
|
+
const a = d, t = m({});
|
|
13
|
+
async function p(r, u) {
|
|
14
|
+
const e = r?.id || u;
|
|
15
|
+
t.value[e] = !0;
|
|
17
16
|
try {
|
|
18
|
-
await
|
|
17
|
+
await r?.onClick?.({ selectedRows: a?.selectedRows });
|
|
19
18
|
} finally {
|
|
20
|
-
|
|
19
|
+
t.value[e] = void 0;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
return (
|
|
24
|
-
default:
|
|
25
|
-
(
|
|
26
|
-
key:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
disabled: r.value[(n == null ? void 0 : n.id) || e] ?? (n == null ? void 0 : n.disabled) ?? !1
|
|
22
|
+
return (r, u) => (o(), l(s(M), null, {
|
|
23
|
+
default: c(() => [
|
|
24
|
+
(o(!0), _(i, null, v(a.menuList, (e, n) => (o(), l(s(B), h({
|
|
25
|
+
key: e?.id || n
|
|
26
|
+
}, { ref_for: !0 }, {
|
|
27
|
+
...e,
|
|
28
|
+
onClick: () => p(e, n),
|
|
29
|
+
disabled: t.value[e?.id || n] ?? e?.disabled ?? !1
|
|
32
30
|
}), {
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
[
|
|
31
|
+
default: c(() => [
|
|
32
|
+
y("div", R, [
|
|
33
|
+
k(w(s(L), { style: { "margin-right": "10px" } }, null, 512), [
|
|
34
|
+
[g, t.value[e?.id || n]]
|
|
37
35
|
]),
|
|
38
|
-
(
|
|
36
|
+
(o(), l(C(b(i, [e?.content]))))
|
|
39
37
|
])
|
|
40
38
|
]),
|
|
41
39
|
_: 2
|
|
@@ -46,5 +44,5 @@ const D = { style: { display: "flex", "align-items": "center" } }, P = /* @__PUR
|
|
|
46
44
|
}
|
|
47
45
|
});
|
|
48
46
|
export {
|
|
49
|
-
|
|
47
|
+
I as default
|
|
50
48
|
};
|
|
@@ -124,6 +124,7 @@ declare const ApBatchActionGroup: {
|
|
|
124
124
|
forceSubMenuRender: BooleanConstructor;
|
|
125
125
|
openKeys: PropType< Key[]>;
|
|
126
126
|
selectedKeys: PropType< Key[]>;
|
|
127
|
+
defaultSelectedKeys: PropType< Key[]>;
|
|
127
128
|
activeKey: StringConstructor;
|
|
128
129
|
selectable: {
|
|
129
130
|
type: BooleanConstructor;
|
|
@@ -191,6 +192,7 @@ declare const ApBatchActionGroup: {
|
|
|
191
192
|
forceSubMenuRender: BooleanConstructor;
|
|
192
193
|
openKeys: PropType< Key[]>;
|
|
193
194
|
selectedKeys: PropType< Key[]>;
|
|
195
|
+
defaultSelectedKeys: PropType< Key[]>;
|
|
194
196
|
activeKey: StringConstructor;
|
|
195
197
|
selectable: {
|
|
196
198
|
type: BooleanConstructor;
|
|
@@ -432,6 +434,7 @@ declare const ApBatchActionGroup: {
|
|
|
432
434
|
forceSubMenuRender: BooleanConstructor;
|
|
433
435
|
openKeys: PropType< Key[]>;
|
|
434
436
|
selectedKeys: PropType< Key[]>;
|
|
437
|
+
defaultSelectedKeys: PropType< Key[]>;
|
|
435
438
|
activeKey: StringConstructor;
|
|
436
439
|
selectable: {
|
|
437
440
|
type: BooleanConstructor;
|
|
@@ -499,6 +502,7 @@ declare const ApBatchActionGroup: {
|
|
|
499
502
|
forceSubMenuRender: BooleanConstructor;
|
|
500
503
|
openKeys: PropType< Key[]>;
|
|
501
504
|
selectedKeys: PropType< Key[]>;
|
|
505
|
+
defaultSelectedKeys: PropType< Key[]>;
|
|
502
506
|
activeKey: StringConstructor;
|
|
503
507
|
selectable: {
|
|
504
508
|
type: BooleanConstructor;
|
|
@@ -737,6 +741,7 @@ declare const ApBatchActionGroup: {
|
|
|
737
741
|
forceSubMenuRender: BooleanConstructor;
|
|
738
742
|
openKeys: PropType< Key[]>;
|
|
739
743
|
selectedKeys: PropType< Key[]>;
|
|
744
|
+
defaultSelectedKeys: PropType< Key[]>;
|
|
740
745
|
activeKey: StringConstructor;
|
|
741
746
|
selectable: {
|
|
742
747
|
type: BooleanConstructor;
|
|
@@ -804,6 +809,7 @@ declare const ApBatchActionGroup: {
|
|
|
804
809
|
forceSubMenuRender: BooleanConstructor;
|
|
805
810
|
openKeys: PropType< Key[]>;
|
|
806
811
|
selectedKeys: PropType< Key[]>;
|
|
812
|
+
defaultSelectedKeys: PropType< Key[]>;
|
|
807
813
|
activeKey: StringConstructor;
|
|
808
814
|
selectable: {
|
|
809
815
|
type: BooleanConstructor;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Space as
|
|
1
|
+
import { defineComponent as v, computed as k, createBlock as r, openBlock as o, unref as u, normalizeProps as T, guardReactiveProps as P, withCtx as c, createElementBlock as i, Fragment as s, renderList as R, createCommentVNode as S, mergeProps as n, resolveDynamicComponent as m, h as _ } from "vue";
|
|
2
|
+
import { Space as B } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/ap-button.vue2.mjs";
|
|
4
4
|
import "../../ap-button/ap-action-button.vue2.mjs";
|
|
5
5
|
import "../ap-batch-action-group/ApBatchActionGroup.vue.mjs";
|
|
6
6
|
import "../ap-export-group/ApExportGroup.vue.mjs";
|
|
7
|
-
import { omit as
|
|
8
|
-
import { usePermission as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import { omit as a } from "lodash-unified";
|
|
8
|
+
import { usePermission as x } from "@aplus-frontend/hooks";
|
|
9
|
+
import C from "../../ap-button/ap-button.vue.mjs";
|
|
10
|
+
import L from "../../ap-button/ap-action-button.vue.mjs";
|
|
11
11
|
import $ from "../ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
|
|
12
12
|
import b from "../ap-export-group/ApExportGroup.vue2.mjs";
|
|
13
|
-
const
|
|
13
|
+
const H = /* @__PURE__ */ v({
|
|
14
14
|
__name: "ApButtonGroup",
|
|
15
15
|
props: {
|
|
16
16
|
spaceProps: {},
|
|
@@ -18,48 +18,48 @@ const I = /* @__PURE__ */ k({
|
|
|
18
18
|
selectedRowKeys: {},
|
|
19
19
|
groupList: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const { hasPermission:
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
return !
|
|
21
|
+
setup(y) {
|
|
22
|
+
const { hasPermission: d } = x(), p = y, h = k(() => p.groupList);
|
|
23
|
+
function f(t) {
|
|
24
|
+
let l = t?.ifShow;
|
|
25
|
+
return !t?.ifShow && t?.auth && (l = () => d(t.auth)), l?.() ?? !0;
|
|
26
26
|
}
|
|
27
|
-
return (
|
|
27
|
+
return (t, l) => (o(), r(u(B), T(P(p.spaceProps ?? {})), {
|
|
28
28
|
default: c(() => [
|
|
29
|
-
(
|
|
30
|
-
e.valueType === "button" &&
|
|
29
|
+
(o(!0), i(s, null, R(h.value, (e, w) => (o(), i(s, { key: w }, [
|
|
30
|
+
e.valueType === "button" && f(e) ? (o(), r(C, n({
|
|
31
31
|
key: 0,
|
|
32
32
|
ref_for: !0
|
|
33
33
|
}, {
|
|
34
|
-
...
|
|
34
|
+
...u(a)(e, ["valueType", "ifShow", "auth"])
|
|
35
35
|
}), {
|
|
36
36
|
default: c(() => [
|
|
37
|
-
(
|
|
37
|
+
(o(), r(m(_(s, [e?.content]))))
|
|
38
38
|
]),
|
|
39
39
|
_: 2
|
|
40
|
-
}, 1040)) : e.valueType === "actionButton" &&
|
|
40
|
+
}, 1040)) : e.valueType === "actionButton" && f(e) ? (o(), r(L, n({
|
|
41
41
|
key: 1,
|
|
42
42
|
ref_for: !0
|
|
43
43
|
}, {
|
|
44
|
-
...
|
|
44
|
+
...u(a)(e, ["valueType", "ifShow", "auth"])
|
|
45
45
|
}), {
|
|
46
46
|
default: c(() => [
|
|
47
|
-
(
|
|
47
|
+
(o(), r(m(_(s, [e?.content]))))
|
|
48
48
|
]),
|
|
49
49
|
_: 2
|
|
50
|
-
}, 1040)) : e.valueType === "batchActionGroup" ? (
|
|
50
|
+
}, 1040)) : e.valueType === "batchActionGroup" ? (o(), r($, n({
|
|
51
51
|
key: 2,
|
|
52
52
|
ref_for: !0
|
|
53
53
|
}, {
|
|
54
|
-
...
|
|
55
|
-
selectedRows:
|
|
56
|
-
}), null, 16)) : e.valueType === "exportGroup" ? (
|
|
54
|
+
...u(a)(e, ["valueType"]),
|
|
55
|
+
selectedRows: p?.selectedRows
|
|
56
|
+
}), null, 16)) : e.valueType === "exportGroup" ? (o(), r(b, n({
|
|
57
57
|
key: 3,
|
|
58
58
|
ref_for: !0
|
|
59
59
|
}, {
|
|
60
|
-
...
|
|
61
|
-
selectedRowKeys:
|
|
62
|
-
}), null, 16)) :
|
|
60
|
+
...u(a)(e, ["valueType"]),
|
|
61
|
+
selectedRowKeys: p?.selectedRowKeys
|
|
62
|
+
}), null, 16)) : S("", !0)
|
|
63
63
|
], 64))), 128))
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
@@ -67,5 +67,5 @@ const I = /* @__PURE__ */ k({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
H as default
|
|
71
71
|
};
|
|
@@ -1,63 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, useSlots as _, computed as s, createElementBlock as r, openBlock as i, normalizeStyle as S, normalizeClass as g, unref as n, createBlock as l, createCommentVNode as a, renderSlot as p, mergeProps as C, createSlots as h, withCtx as c, isVNode as d, resolveDynamicComponent as m, toDisplayString as u } from "vue";
|
|
2
2
|
import "../ap-title/ApTitle.vue.mjs";
|
|
3
|
-
import { omit as
|
|
3
|
+
import { omit as $ } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import { useNamespace as B } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import N from "../ap-title/ApTitle.vue2.mjs";
|
|
7
|
+
const b = { key: 2 }, z = { key: 2 }, T = /* @__PURE__ */ v({
|
|
8
8
|
__name: "ApCard",
|
|
9
9
|
props: {
|
|
10
10
|
titleProps: {},
|
|
11
11
|
padding: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const e =
|
|
15
|
-
() =>
|
|
16
|
-
),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var f, n, a;
|
|
48
|
-
return [
|
|
49
|
-
t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) : P("", !0),
|
|
50
|
-
k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), { key: 1 })) : (r(), o("div", A, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.prefix), 1))
|
|
51
|
-
];
|
|
52
|
-
}),
|
|
53
|
-
key: "1"
|
|
54
|
-
} : void 0
|
|
55
|
-
]), 1040, ["class"])) : P("", !0),
|
|
56
|
-
d(i.$slots, "default")
|
|
57
|
-
], 6);
|
|
58
|
-
};
|
|
13
|
+
setup(x) {
|
|
14
|
+
const e = x, t = _(), { b: f } = B("ap-card"), P = s(
|
|
15
|
+
() => $(e?.titleProps || {}, ["prefix", "suffix"])
|
|
16
|
+
), y = s(() => Object.keys(e?.titleProps || {})?.length), k = s(() => e.padding ?? "var(--ap-card-padding, 12px 16px)");
|
|
17
|
+
return (o, D) => (i(), r("div", {
|
|
18
|
+
class: g([n(f)()]),
|
|
19
|
+
style: S({
|
|
20
|
+
padding: k.value
|
|
21
|
+
})
|
|
22
|
+
}, [
|
|
23
|
+
y.value || t?.titlePrefix || t?.titleSuffix ? (i(), l(N, C({
|
|
24
|
+
key: 0,
|
|
25
|
+
class: [`${n(f)()}-title`]
|
|
26
|
+
}, {
|
|
27
|
+
...P.value
|
|
28
|
+
}), h({ _: 2 }, [
|
|
29
|
+
t?.titleSuffix || e?.titleProps?.suffix ? {
|
|
30
|
+
name: "suffix",
|
|
31
|
+
fn: c(() => [
|
|
32
|
+
t?.titleSuffix ? p(o.$slots, "titleSuffix", { key: 0 }) : d(e?.titleProps?.suffix) ? (i(), l(m(e?.titleProps?.suffix), { key: 1 })) : (i(), r("div", b, u(e?.titleProps?.suffix), 1))
|
|
33
|
+
]),
|
|
34
|
+
key: "0"
|
|
35
|
+
} : void 0,
|
|
36
|
+
t?.titlePrefix || e?.titleProps?.prefix ? {
|
|
37
|
+
name: "prefix",
|
|
38
|
+
fn: c(() => [
|
|
39
|
+
t?.titlePrefix ? p(o.$slots, "titlePrefix", { key: 0 }) : a("", !0),
|
|
40
|
+
d(e?.titleProps?.prefix) ? (i(), l(m(e?.titleProps?.prefix), { key: 1 })) : (i(), r("div", z, u(e?.titleProps?.prefix), 1))
|
|
41
|
+
]),
|
|
42
|
+
key: "1"
|
|
43
|
+
} : void 0
|
|
44
|
+
]), 1040, ["class"])) : a("", !0),
|
|
45
|
+
p(o.$slots, "default")
|
|
46
|
+
], 6));
|
|
59
47
|
}
|
|
60
48
|
});
|
|
61
49
|
export {
|
|
62
|
-
|
|
50
|
+
T as default
|
|
63
51
|
};
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApCopyProps as
|
|
3
|
-
import { IconApAdLineCopy as
|
|
1
|
+
import { defineComponent as b, Text as c, isVNode as f, computed as p, createVNode as r, Fragment as C } from "vue";
|
|
2
|
+
import { ApCopyProps as T } from "./constans.mjs";
|
|
3
|
+
import { IconApAdLineCopy as h } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { message as
|
|
6
|
-
import { isNull as
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
const
|
|
5
|
+
import { message as y } from "@aplus-frontend/antdv";
|
|
6
|
+
import { isNull as k, isUndefined as P } from "lodash-unified";
|
|
7
|
+
import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import { useLocale as A } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
const B = /* @__PURE__ */ b({
|
|
10
10
|
name: "CopyBtn",
|
|
11
|
-
props:
|
|
11
|
+
props: T(),
|
|
12
12
|
setup(n, {
|
|
13
|
-
slots:
|
|
13
|
+
slots: m
|
|
14
14
|
}) {
|
|
15
15
|
const {
|
|
16
|
-
b:
|
|
17
|
-
e:
|
|
18
|
-
m:
|
|
19
|
-
} =
|
|
20
|
-
t:
|
|
21
|
-
} =
|
|
22
|
-
t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(n.text ||
|
|
23
|
-
|
|
16
|
+
b: d,
|
|
17
|
+
e: l,
|
|
18
|
+
m: x
|
|
19
|
+
} = j("ap-copy"), {
|
|
20
|
+
t: a
|
|
21
|
+
} = A(), g = (t) => {
|
|
22
|
+
t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(n.text || s() || "").then(() => {
|
|
23
|
+
y.success(a("ap.apCopy.copySuccess"));
|
|
24
24
|
}).catch(() => {
|
|
25
|
-
|
|
25
|
+
y.error(a("ap.apCopy.copyError"));
|
|
26
26
|
});
|
|
27
|
-
},
|
|
27
|
+
}, v = (t) => {
|
|
28
28
|
if (t.length === 1) {
|
|
29
29
|
const e = t[0];
|
|
30
|
-
if (e.type ===
|
|
30
|
+
if (e.type === c || e.type.toString() === "Symbol(Text)" || f(e) && typeof e.children == "string")
|
|
31
31
|
return !0;
|
|
32
32
|
}
|
|
33
33
|
return !1;
|
|
34
|
-
},
|
|
34
|
+
}, S = (t) => {
|
|
35
35
|
if (!t.length) return "";
|
|
36
36
|
const e = t[0];
|
|
37
|
-
return e.type ===
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, s = (t) => !(P(t) || j(t) || typeof t == "string" && t === ""), o = m(() => {
|
|
37
|
+
return e.type === c || e.type.toString() === "Symbol(Text)" ? String(e.children) : f(e) && typeof e.children == "string" ? e.children : "";
|
|
38
|
+
}, s = () => {
|
|
39
|
+
const t = m.default?.();
|
|
40
|
+
return t && v(t) ? S(t) : null;
|
|
41
|
+
}, u = (t) => !(k(t) || P(t) || typeof t == "string" && t === ""), o = p(() => {
|
|
43
42
|
if (typeof n.textStyle == "string")
|
|
44
43
|
switch (n.textStyle) {
|
|
45
44
|
case "link":
|
|
@@ -56,26 +55,26 @@ const D = /* @__PURE__ */ C({
|
|
|
56
55
|
...n.textStyle
|
|
57
56
|
};
|
|
58
57
|
return {};
|
|
59
|
-
}), i =
|
|
60
|
-
return () => r(
|
|
61
|
-
class: [
|
|
58
|
+
}), i = p(() => s() || n.text || "");
|
|
59
|
+
return () => r(C, null, [r("div", {
|
|
60
|
+
class: [d()]
|
|
62
61
|
}, [r("div", {
|
|
63
|
-
class: [
|
|
62
|
+
class: [l("text"), typeof o.value == "string" && x(o.value)],
|
|
64
63
|
style: typeof o.value != "string" && o.value,
|
|
65
64
|
title: typeof o.value == "string" ? i.value : ""
|
|
66
|
-
}, [
|
|
65
|
+
}, [u(i.value) ? n.link ? r("a", {
|
|
67
66
|
href: n.link,
|
|
68
67
|
target: "_blank"
|
|
69
|
-
}, [i.value]) : i.value : "--"]),
|
|
70
|
-
class: [
|
|
71
|
-
onClick: n.disableCopy ? void 0 :
|
|
72
|
-
}, [r(
|
|
68
|
+
}, [i.value]) : i.value : "--"]), u(i.value) && !n.disableCopy ? r("div", {
|
|
69
|
+
class: [l("copy-btn"), "copy-btn"],
|
|
70
|
+
onClick: n.disableCopy ? void 0 : g
|
|
71
|
+
}, [r(h, {
|
|
73
72
|
size: n.size
|
|
74
73
|
}, null)]) : r("div", {
|
|
75
|
-
class: [
|
|
74
|
+
class: [l("copy-btn"), "copy-btn"]
|
|
76
75
|
}, null)])]);
|
|
77
76
|
}
|
|
78
77
|
});
|
|
79
78
|
export {
|
|
80
|
-
|
|
79
|
+
B as default
|
|
81
80
|
};
|