@aplus-frontend/ui 6.26.1 → 6.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
- package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
- package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
- package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
- package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
- package/es/src/ag-grid/index.vue.mjs +251 -268
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
- package/es/src/ag-grid/renderer/date-range.mjs +11 -12
- package/es/src/ag-grid/renderer/date.mjs +12 -13
- package/es/src/ag-grid/renderer/radio.mjs +9 -10
- package/es/src/ag-grid/renderer/select.mjs +10 -17
- package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
- package/es/src/ap-action/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
- package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
- package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
- package/es/src/ap-button/utils/index.mjs +27 -28
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
- package/es/src/ap-descriptions/formatter/index.mjs +60 -61
- package/es/src/ap-descriptions/helper.mjs +6 -6
- package/es/src/ap-download/ap-download.vue.mjs +42 -46
- package/es/src/ap-download/hooks/index.mjs +13 -13
- package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
- package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
- package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
- package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
- package/es/src/ap-field/date/index.vue.mjs +66 -68
- package/es/src/ap-field/date-range/index.vue.mjs +99 -107
- package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
- package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
- package/es/src/ap-field/hooks/use-options.mjs +11 -11
- package/es/src/ap-field/number/helper.mjs +17 -17
- package/es/src/ap-field/number/index.vue.mjs +2 -4
- package/es/src/ap-field/radio/index.vue.mjs +38 -42
- package/es/src/ap-field/radio/read.vue2.mjs +12 -13
- package/es/src/ap-field/rate/index.vue.mjs +23 -25
- package/es/src/ap-field/segmented/index.vue.mjs +38 -39
- package/es/src/ap-field/select/index.vue.mjs +90 -107
- package/es/src/ap-field/select/read.vue2.mjs +13 -20
- package/es/src/ap-field/select/use-select-options.mjs +24 -25
- package/es/src/ap-field/slider/index.vue.mjs +28 -30
- package/es/src/ap-field/switch/index.vue.mjs +38 -39
- package/es/src/ap-field/text/index.vue2.mjs +43 -52
- package/es/src/ap-field/text/password.vue.mjs +20 -22
- package/es/src/ap-field/text-area/index.vue.mjs +25 -31
- package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
- package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
- package/es/src/ap-field/tree-select/use-request.mjs +40 -41
- package/es/src/ap-form/ap-form.vue2.mjs +127 -142
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
- package/es/src/ap-form/hooks/use-watch.mjs +25 -26
- package/es/src/ap-form/item/index.vue.mjs +76 -81
- package/es/src/ap-form/item-group/index.vue.mjs +20 -20
- package/es/src/ap-form/items/date/index.vue.mjs +18 -21
- package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +2 -4
- package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/es/src/ap-form/items/select/index.vue.mjs +30 -36
- package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
- package/es/src/ap-form/items/text/password.vue.mjs +12 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
- package/es/src/ap-form/list/index.vue.mjs +26 -26
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
- package/es/src/ap-form/provider/index.vue.mjs +24 -24
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/search-form/index.vue.mjs +96 -103
- package/es/src/ap-form/search-form/utils.mjs +17 -17
- package/es/src/ap-form/set/index.vue.mjs +16 -20
- package/es/src/ap-form/utils/get.mjs +11 -11
- package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
- package/es/src/ap-grid/editable/index.vue.mjs +102 -116
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
- package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
- package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
- package/es/src/ap-grid/index.vue.mjs +309 -334
- package/es/src/ap-grid/utils/col.mjs +78 -81
- package/es/src/ap-grid/utils/editable.mjs +17 -18
- package/es/src/ap-grid/utils/renderer.mjs +7 -11
- package/es/src/ap-grid/utils/table.mjs +45 -46
- package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
- package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
- package/es/src/ap-list/index.vue.mjs +120 -131
- package/es/src/ap-modal/utils/createModal.mjs +60 -67
- package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
- package/es/src/ap-modal/utils/methods.mjs +17 -22
- package/es/src/ap-modal/utils/util.mjs +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +114 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
- package/es/src/ap-table/ap-table.vue2.mjs +270 -303
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
- package/es/src/ap-table/components/setting/utils.mjs +44 -46
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
- package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
- package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
- package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
- package/es/src/ap-table/utils.mjs +123 -130
- package/es/src/ap-upload/apUpload.vue.mjs +43 -46
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
- package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
- package/es/src/ap-upload/hooks/useOss.mjs +35 -35
- package/es/src/ap-upload/utils/accept.mjs +37 -38
- package/es/src/ap-upload/utils/returnData.mjs +14 -14
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
- package/es/src/business/ap-appendix/utils/index.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
- package/es/src/business/ap-copy/ApCopy.mjs +38 -39
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
- package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
- package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
- package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
- package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
- package/es/src/business/ap-keep-alive/hook.mjs +14 -20
- package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/utils.mjs +25 -26
- package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
- package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
- package/es/src/business/ap-summary/utils.mjs +23 -29
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
- package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
- package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
- package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
- package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
- package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
- package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
- package/es/src/business/ap-value-select-card/utils.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
- package/es/src/business/batch-input-group/index.vue.mjs +113 -127
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
- package/es/src/business/hooks/useGridRefresh.mjs +11 -12
- package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
- package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
- package/es/src/business/hooks/usePageListApTable.mjs +27 -32
- package/es/src/business/hooks/useTableRefresh.mjs +39 -41
- package/es/src/check-card/index.vue2.mjs +51 -56
- package/es/src/config-provider/config-provider.mjs +12 -12
- package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
- package/es/src/config-provider/hooks/use-locale.mjs +17 -17
- package/es/src/editable-table/form-item.vue.mjs +82 -88
- package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
- package/es/src/editable-table/index.vue.mjs +100 -113
- package/es/src/editable-table/utils.mjs +88 -95
- package/es/src/hooks/useControllableValue.mjs +18 -18
- package/es/src/hooks/useResize.mjs +16 -16
- package/es/src/mask/index.vue.mjs +11 -11
- package/es/src/resize-observer/index.vue.mjs +20 -22
- package/es/src/scroll-bar/index.vue.mjs +2 -8
- package/es/src/scroll-bar/internal.vue.mjs +59 -65
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
- package/es/src/scroll-view/index.vue.mjs +40 -42
- package/es/src/splitter/Splitter.vue2.mjs +48 -52
- package/es/src/splitter/hooks/useItems.mjs +14 -15
- package/es/src/splitter/hooks/useResize.mjs +31 -34
- package/es/src/splitter/hooks/useSizes.mjs +34 -34
- package/es/src/text/index.vue.mjs +24 -24
- package/es/src/utils/config-provider-preset.mjs +17 -21
- package/es/src/utils/copy.mjs +9 -9
- package/es/src/utils/index.mjs +43 -43
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/renderer/checkbox.js +1 -1
- package/lib/src/ag-grid/renderer/date-range.js +1 -1
- package/lib/src/ag-grid/renderer/date.js +1 -1
- package/lib/src/ag-grid/renderer/radio.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/renderer/tree-select.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/hooks/use-options.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/utils/get.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-modal/utils/methods.js +1 -1
- package/lib/src/ap-modal/utils/util.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/ap-upload/utils/accept.js +1 -1
- package/lib/src/ap-upload/utils/returnData.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/utils/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/hook.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/utils.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/useGridRefresh.js +1 -1
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useResize.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResize.js +1 -1
- package/lib/src/splitter/hooks/useSizes.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/copy.js +1 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +7 -7
- package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
- package/theme/index.css +7 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { getOptionValue as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
return !((n = e.value) != null && n.length) || !((i = e.options) != null && i.length) ? e.emptyText || "--" : e.options.filter((t) => e.value.indexOf(o(t)) > -1).map((t) => l(t)).join("、");
|
|
1
|
+
import { getOptionValue as n, getOptionLabel as i } from "../../ap-field/checkbox/helper.mjs";
|
|
2
|
+
function l(e) {
|
|
3
|
+
return !e.value?.length || !e.options?.length ? e.emptyText || "--" : e.options.filter((t) => e.value.indexOf(n(t)) > -1).map((t) => i(t)).join("、");
|
|
5
4
|
}
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
l as checkboxRenderer
|
|
8
7
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { getTimeFormatToZone as
|
|
2
|
-
import
|
|
3
|
-
import { isArray as
|
|
4
|
-
import { ApFieldDatePresetFormats as
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return `${i(s).format(n)}${c}${i(f).format(n)}`;
|
|
1
|
+
import { getTimeFormatToZone as n } from "@aplus-frontend/utils";
|
|
2
|
+
import m from "dayjs";
|
|
3
|
+
import { isArray as c, isString as d } from "lodash-unified";
|
|
4
|
+
import { ApFieldDatePresetFormats as u, PRESET_FORMAT_MAP as l } from "../../ap-field/date/constant.mjs";
|
|
5
|
+
function A(e) {
|
|
6
|
+
const t = e.value;
|
|
7
|
+
if (!t?.length)
|
|
8
|
+
return e.emptyText || "--";
|
|
9
|
+
const r = c(e.timezone) ? e.timezone[0]?.value : e.timezone, i = r ? n(t[0], r) : t[0], s = r ? n(t[1], r) : t[1], o = e.format || "Y-D", a = u.indexOf(o) > -1 ? l[o] : o, f = d(e.readModeSeparator) ? e.readModeSeparator : "~";
|
|
10
|
+
return `${m(i).format(a)}${f}${m(s).format(a)}`;
|
|
12
11
|
}
|
|
13
12
|
export {
|
|
14
|
-
|
|
13
|
+
A as dateRangeRenderer
|
|
15
14
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { getTimeFormatToZone as
|
|
2
|
-
import
|
|
3
|
-
import { isNil as
|
|
4
|
-
import { ApFieldDatePresetFormats as
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
if (f(e.value))
|
|
1
|
+
import { getTimeFormatToZone as a } from "@aplus-frontend/utils";
|
|
2
|
+
import r from "dayjs";
|
|
3
|
+
import { isNil as n, isArray as f } from "lodash-unified";
|
|
4
|
+
import { ApFieldDatePresetFormats as l, PRESET_FORMAT_MAP as u } from "../../ap-field/date/constant.mjs";
|
|
5
|
+
function z(e) {
|
|
6
|
+
if (n(e.value))
|
|
8
7
|
return e.emptyText || "--";
|
|
9
|
-
let m =
|
|
8
|
+
let m = r(e.value);
|
|
10
9
|
if (e.timezone) {
|
|
11
|
-
const
|
|
12
|
-
m =
|
|
10
|
+
const o = f(e.timezone) ? e.timezone[0]?.value : e.timezone;
|
|
11
|
+
m = r(a(e.value, o));
|
|
13
12
|
}
|
|
14
|
-
const t = e.format || "Y-D",
|
|
15
|
-
return m.format(
|
|
13
|
+
const t = e.format || "Y-D", i = l.indexOf(t) > -1 ? u[t] : t;
|
|
14
|
+
return m.format(i);
|
|
16
15
|
}
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
z as dateRenderer
|
|
19
18
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { isNil as
|
|
2
|
-
import { getOptionValue as
|
|
3
|
-
function
|
|
4
|
-
var r;
|
|
1
|
+
import { isNil as o, isString as a } from "lodash-unified";
|
|
2
|
+
import { getOptionValue as l, getOptionLabel as u } from "../../ap-field/radio/helper.mjs";
|
|
3
|
+
function c(t) {
|
|
5
4
|
const e = t.emptyText || "--";
|
|
6
|
-
if (
|
|
5
|
+
if (o(t.value))
|
|
7
6
|
return e;
|
|
8
|
-
const i =
|
|
9
|
-
(
|
|
7
|
+
const i = t.options?.find(
|
|
8
|
+
(r) => t.value === l(r)
|
|
10
9
|
);
|
|
11
10
|
if (!i)
|
|
12
11
|
return e;
|
|
13
|
-
const n =
|
|
14
|
-
return
|
|
12
|
+
const n = u(i);
|
|
13
|
+
return a(n) ? n : "";
|
|
15
14
|
}
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
c as radioRenderer
|
|
18
17
|
};
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { isNil as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
(i) => {
|
|
11
|
-
var r;
|
|
12
|
-
return (r = e.options.find((u) => u[o] === i)) == null ? void 0 : r[a];
|
|
13
|
-
}
|
|
14
|
-
).filter(Boolean).join("、") || n;
|
|
15
|
-
const t = e.options.find((i) => i[o] === l);
|
|
16
|
-
return (t == null ? void 0 : t[a]) || n;
|
|
1
|
+
import { isNil as r, isArray as f } from "lodash-unified";
|
|
2
|
+
function c(e) {
|
|
3
|
+
const t = e.value, a = e.emptyText || "--";
|
|
4
|
+
if (r(t))
|
|
5
|
+
return a;
|
|
6
|
+
const n = e.fieldNames?.label || "label", i = e.fieldNames?.value || "value";
|
|
7
|
+
return f(t) ? t.map(
|
|
8
|
+
(l) => e.options.find((o) => o[i] === l)?.[n]
|
|
9
|
+
).filter(Boolean).join("、") || a : e.options.find((l) => l[i] === t)?.[n] || a;
|
|
17
10
|
}
|
|
18
11
|
export {
|
|
19
|
-
|
|
12
|
+
c as selectRenderer
|
|
20
13
|
};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { isArray as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
const r = e.value, i = e.emptyText || "--", l = h(r) ? r : [r].filter(Boolean);
|
|
1
|
+
import { isArray as u, isString as d } from "lodash-unified";
|
|
2
|
+
function m(e) {
|
|
3
|
+
const r = e.value, i = e.emptyText || "--", l = u(r) ? r : [r].filter(Boolean);
|
|
5
4
|
if (!l.length)
|
|
6
5
|
return i;
|
|
7
|
-
const t = [],
|
|
6
|
+
const t = [], f = e.fieldNames?.label || "label", c = e.fieldNames?.value || "value";
|
|
8
7
|
function o(a) {
|
|
9
|
-
var s;
|
|
10
8
|
for (const n of a) {
|
|
11
|
-
if (l.find((
|
|
9
|
+
if (l.find((s) => s === n[c]) && t.push(n[f]), t.length === l.length)
|
|
12
10
|
return;
|
|
13
|
-
|
|
11
|
+
n.children?.length && o(n.children);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
return o(e.treeData), t.length ? t.filter((a) =>
|
|
14
|
+
return o(e.treeData), t.length ? t.filter((a) => d(a)).join("、") : i;
|
|
17
15
|
}
|
|
18
16
|
export {
|
|
19
|
-
|
|
17
|
+
m as treeSelectRenderer
|
|
20
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, createPropsRestProxy as b, ref as k, unref as s, computed as d, renderSlot as c, createElementBlock as u, createCommentVNode as f, openBlock as n, mergeProps as v, createBlock as m, isVNode as C, resolveDynamicComponent as B, toDisplayString as A } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
const
|
|
3
|
+
import h from "@aplus-frontend/antdv/es/button/LoadingIcon";
|
|
4
|
+
import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
const N = { key: 1 }, I = /* @__PURE__ */ y({
|
|
6
6
|
name: "ApActionItem",
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
@@ -15,36 +15,35 @@ const P = { key: 1 }, I = /* @__PURE__ */ b({
|
|
|
15
15
|
loading: { type: Boolean, default: !1 }
|
|
16
16
|
},
|
|
17
17
|
setup(o) {
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
r(t) || o.disabled || ((s = n.onClick) == null || s.call(n, e), n.onAction && (i.value = !0, n.onAction(e).finally(() => i.value = !1)));
|
|
18
|
+
const l = b(o, ["color", "disabled", "visible", "loading"]), { b: p, m: a } = L("action-item"), i = k(!1);
|
|
19
|
+
function r(e) {
|
|
20
|
+
s(t) || o.disabled || (l.onClick?.(e), l.onAction && (i.value = !0, l.onAction(e).finally(() => i.value = !1)));
|
|
22
21
|
}
|
|
23
|
-
const t =
|
|
24
|
-
|
|
22
|
+
const t = d(() => o.loading || s(i)), g = d(() => [
|
|
23
|
+
p(),
|
|
25
24
|
a(o.color),
|
|
26
25
|
o.disabled ? a("disabled") : null,
|
|
27
26
|
t.value ? a("loading") : null
|
|
28
27
|
].filter(Boolean));
|
|
29
|
-
return (e,
|
|
28
|
+
return (e, P) => c(e.$slots, "trigger", {
|
|
30
29
|
loading: t.value,
|
|
31
30
|
disabled: e.disabled,
|
|
32
|
-
onClick:
|
|
31
|
+
onClick: r
|
|
33
32
|
}, () => [
|
|
34
|
-
e.visible ? (
|
|
35
|
-
class:
|
|
36
|
-
onClick:
|
|
33
|
+
e.visible ? (n(), u("span", v({ key: 0 }, e.$attrs, {
|
|
34
|
+
class: g.value,
|
|
35
|
+
onClick: r
|
|
37
36
|
}), [
|
|
38
|
-
t.value ? (
|
|
37
|
+
t.value ? (n(), m(s(h), {
|
|
39
38
|
key: 0,
|
|
40
39
|
"prefix-cls": "btn",
|
|
41
40
|
"exist-icon": !1,
|
|
42
41
|
loading: ""
|
|
43
|
-
})) :
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
})) : f("", !0),
|
|
43
|
+
c(e.$slots, "default", {}, () => [
|
|
44
|
+
C(e.text) ? (n(), m(B(e.text), { key: 0 })) : (n(), u("span", N, A(e.text || ""), 1))
|
|
46
45
|
])
|
|
47
|
-
], 16)) :
|
|
46
|
+
], 16)) : f("", !0)
|
|
48
47
|
]);
|
|
49
48
|
}
|
|
50
49
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as v, computed as k, createBlock as
|
|
1
|
+
import { defineComponent as _, ref as v, computed as k, createBlock as n, openBlock as t, unref as o, withCtx as l, createElementVNode as w, normalizeClass as i, createVNode as u, createCommentVNode as A, normalizeProps as B, guardReactiveProps as b, renderSlot as C, createElementBlock as I, Fragment as P, renderList as D, mergeProps as m } from "vue";
|
|
2
2
|
import { Dropdown as N, Menu as $, MenuItem as h } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
4
|
import "../item-modal/index.vue2.mjs";
|
|
@@ -7,7 +7,7 @@ import { IconApAdLineDown as L } from "@aplus-frontend/icon";
|
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { isUndefined as V, omit as z } from "lodash-unified";
|
|
9
9
|
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
import
|
|
10
|
+
import c from "../item/index.vue2.mjs";
|
|
11
11
|
import M from "../item-modal/index.vue.mjs";
|
|
12
12
|
import U from "../item-popconfirm/index.vue.mjs";
|
|
13
13
|
const T = /* @__PURE__ */ _({
|
|
@@ -25,42 +25,41 @@ const T = /* @__PURE__ */ _({
|
|
|
25
25
|
onClick: {},
|
|
26
26
|
loading: { type: Boolean, default: !1 }
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const f =
|
|
28
|
+
setup(d) {
|
|
29
|
+
const f = d, p = v(!1), { e: s } = E("action-item-dropdown"), g = k(() => f.actions.filter((e) => e.visible || V(e.visible)).map((e) => ({
|
|
30
30
|
...e,
|
|
31
31
|
onAction: async (a) => {
|
|
32
|
-
var o;
|
|
33
32
|
try {
|
|
34
|
-
await
|
|
33
|
+
await e.onAction?.(a);
|
|
35
34
|
} finally {
|
|
36
35
|
p.value = !1;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
})));
|
|
40
|
-
return (e, a) => (t(),
|
|
39
|
+
return (e, a) => (t(), n(o(N), {
|
|
41
40
|
open: p.value,
|
|
42
|
-
"onUpdate:open": a[0] || (a[0] = (
|
|
41
|
+
"onUpdate:open": a[0] || (a[0] = (r) => p.value = r),
|
|
43
42
|
trigger: e.trigger,
|
|
44
43
|
placement: e.placement
|
|
45
44
|
}, {
|
|
46
|
-
overlay:
|
|
47
|
-
u(
|
|
48
|
-
default:
|
|
49
|
-
(t(!0), I(P, null, D(g.value, (
|
|
45
|
+
overlay: l(() => [
|
|
46
|
+
u(o($), null, {
|
|
47
|
+
default: l(() => [
|
|
48
|
+
(t(!0), I(P, null, D(g.value, (r, y) => (t(), n(o(h), {
|
|
50
49
|
key: y,
|
|
51
|
-
class:
|
|
50
|
+
class: i(o(s)("item"))
|
|
52
51
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
52
|
+
default: l(() => [
|
|
53
|
+
r.modalProps ? (t(), n(M, m({
|
|
55
54
|
key: 0,
|
|
56
55
|
ref_for: !0
|
|
57
|
-
},
|
|
56
|
+
}, r), null, 16)) : r.popconfirmProps ? (t(), n(U, m({
|
|
58
57
|
key: 1,
|
|
59
58
|
ref_for: !0
|
|
60
|
-
},
|
|
59
|
+
}, r), null, 16)) : (t(), n(c, m({
|
|
61
60
|
key: 2,
|
|
62
61
|
ref_for: !0
|
|
63
|
-
},
|
|
62
|
+
}, r), null, 16))
|
|
64
63
|
]),
|
|
65
64
|
_: 2
|
|
66
65
|
}, 1032, ["class"]))), 128))
|
|
@@ -68,19 +67,19 @@ const T = /* @__PURE__ */ _({
|
|
|
68
67
|
_: 1
|
|
69
68
|
})
|
|
70
69
|
]),
|
|
71
|
-
default:
|
|
70
|
+
default: l(() => [
|
|
72
71
|
w("span", {
|
|
73
|
-
class:
|
|
72
|
+
class: i(o(s)("wrapper"))
|
|
74
73
|
}, [
|
|
75
|
-
u(
|
|
76
|
-
default:
|
|
74
|
+
u(c, B(b(o(z)(f, ["actions", "trigger", "placement"]))), {
|
|
75
|
+
default: l(() => [
|
|
77
76
|
C(e.$slots, "default")
|
|
78
77
|
]),
|
|
79
78
|
_: 3
|
|
80
79
|
}, 16),
|
|
81
|
-
e.showIcon ? (t(),
|
|
80
|
+
e.showIcon ? (t(), n(o(L), {
|
|
82
81
|
key: 0,
|
|
83
|
-
class:
|
|
82
|
+
class: i(o(s)("icon"))
|
|
84
83
|
}, null, 8, ["class"])) : A("", !0)
|
|
85
84
|
], 2)
|
|
86
85
|
]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Modal as
|
|
1
|
+
import { defineComponent as s, useSlots as i, createBlock as p, openBlock as c, mergeProps as m, unref as d, createSlots as f, renderList as u, withCtx as _, renderSlot as A, normalizeProps as P, guardReactiveProps as y } from "vue";
|
|
2
|
+
import { Modal as k } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
const z = /* @__PURE__ */
|
|
4
|
+
import { omit as x } from "lodash-unified";
|
|
5
|
+
import B from "../item/index.vue2.mjs";
|
|
6
|
+
const z = /* @__PURE__ */ s({
|
|
7
7
|
name: "ApActionItemModal",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -16,23 +16,22 @@ const z = /* @__PURE__ */ c({
|
|
|
16
16
|
loading: { type: Boolean, default: !1 },
|
|
17
17
|
modalProps: { default: () => ({}) }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
async function
|
|
22
|
-
|
|
19
|
+
setup(n) {
|
|
20
|
+
const r = i(), o = n;
|
|
21
|
+
async function a(e) {
|
|
22
|
+
k.confirm({
|
|
23
23
|
...o.modalProps,
|
|
24
24
|
zIndex: 1060,
|
|
25
25
|
onOk: async () => {
|
|
26
|
-
|
|
27
|
-
(r = (n = o.modalProps).onOk) == null || r.call(n), await ((e = o.onAction) == null ? void 0 : e.call(o, t));
|
|
26
|
+
o.modalProps.onOk?.(), await o.onAction?.(e);
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
name:
|
|
34
|
-
fn:
|
|
35
|
-
|
|
30
|
+
return (e, g) => (c(), p(B, m(d(x)(o, ["modalProps", "onAction"]), { onAction: a }), f({ _: 2 }, [
|
|
31
|
+
u(r, (h, t) => ({
|
|
32
|
+
name: t,
|
|
33
|
+
fn: _((l) => [
|
|
34
|
+
A(e.$slots, t, P(y(l || {})))
|
|
36
35
|
])
|
|
37
36
|
}))
|
|
38
37
|
]), 1040));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popconfirm as
|
|
1
|
+
import { defineComponent as m, useSlots as c, createBlock as d, openBlock as u, unref as n, mergeProps as P, withCtx as t, createVNode as _, normalizeProps as p, guardReactiveProps as i, createSlots as y, renderList as C, renderSlot as x } from "vue";
|
|
2
|
+
import { Popconfirm as A } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
const I = /* @__PURE__ */
|
|
4
|
+
import { omit as B } from "lodash-unified";
|
|
5
|
+
import b from "../item/index.vue2.mjs";
|
|
6
|
+
const I = /* @__PURE__ */ m({
|
|
7
7
|
name: "ApActionItemPopconfirm",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -16,23 +16,22 @@ const I = /* @__PURE__ */ d({
|
|
|
16
16
|
loading: { type: Boolean, default: !1 },
|
|
17
17
|
popconfirmProps: { default: () => ({}) }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
async function
|
|
22
|
-
|
|
23
|
-
(t = (r = o.popconfirmProps).onConfirm) == null || t.call(r, n), await ((e = o.onAction) == null ? void 0 : e.call(o, n));
|
|
19
|
+
setup(a) {
|
|
20
|
+
const s = c(), o = a;
|
|
21
|
+
async function l(e) {
|
|
22
|
+
o.popconfirmProps.onConfirm?.(e), await o.onAction?.(e);
|
|
24
23
|
}
|
|
25
|
-
return (
|
|
24
|
+
return (e, g) => (u(), d(n(A), P(o.popconfirmProps, {
|
|
26
25
|
disabled: !o.popconfirmProps,
|
|
27
26
|
"overlay-style": { zIndex: 1060 },
|
|
28
|
-
onConfirm:
|
|
27
|
+
onConfirm: l
|
|
29
28
|
}), {
|
|
30
|
-
default:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
name:
|
|
34
|
-
fn:
|
|
35
|
-
|
|
29
|
+
default: t(() => [
|
|
30
|
+
_(b, p(i(n(B)(o, ["popconfirmProps", "onAction"]))), y({ _: 2 }, [
|
|
31
|
+
C(s, (h, r) => ({
|
|
32
|
+
name: r,
|
|
33
|
+
fn: t((f) => [
|
|
34
|
+
x(e.$slots, r, p(i(f || {})))
|
|
36
35
|
])
|
|
37
36
|
}))
|
|
38
37
|
]), 1040)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { confirmHandle as
|
|
3
|
-
import { omit as
|
|
1
|
+
import { defineComponent as a, useSlots as m, createBlock as f, openBlock as d, mergeProps as u, unref as k, createSlots as y, renderList as P, withCtx as B, renderSlot as C, normalizeProps as _, guardReactiveProps as g } from "vue";
|
|
2
|
+
import { confirmHandle as b } from "./utils/index.mjs";
|
|
3
|
+
import { omit as i } from "lodash-unified";
|
|
4
4
|
import "./ap-button.vue2.mjs";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import h from "./ap-button.vue.mjs";
|
|
6
|
+
const w = /* @__PURE__ */ a({
|
|
7
7
|
__name: "ap-confirm-button",
|
|
8
8
|
props: {
|
|
9
9
|
prefixCls: {},
|
|
@@ -32,29 +32,28 @@ const L = /* @__PURE__ */ f({
|
|
|
32
32
|
content: {},
|
|
33
33
|
confirmProps: { default: () => ({}) }
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const o =
|
|
37
|
-
|
|
38
|
-
const n = ((t = o.confirmProps) == null ? void 0 : t.onOk) || o.onClick, r = ((c = o.confirmProps) == null ? void 0 : c.title) || o.title, i = ((s = o.confirmProps) == null ? void 0 : s.content) || o.content, e = {
|
|
35
|
+
setup(c) {
|
|
36
|
+
const o = c, s = m(), l = () => {
|
|
37
|
+
const t = o.confirmProps?.onOk || o.onClick, n = o.confirmProps?.title || o.title, r = o.confirmProps?.content || o.content, e = {
|
|
39
38
|
centered: !0,
|
|
40
39
|
// 默认居中
|
|
41
|
-
onOk:
|
|
42
|
-
title:
|
|
43
|
-
content:
|
|
44
|
-
...
|
|
40
|
+
onOk: t,
|
|
41
|
+
title: n,
|
|
42
|
+
content: r,
|
|
43
|
+
...i(o.confirmProps, ["onOk", "title", "content"])
|
|
45
44
|
};
|
|
46
|
-
|
|
45
|
+
b(e);
|
|
47
46
|
};
|
|
48
|
-
return (
|
|
49
|
-
|
|
47
|
+
return (t, n) => (d(), f(h, u(k(i)(o, ["confirmProps", "onClick"]), { onClick: l }), y({ _: 2 }, [
|
|
48
|
+
P(s, (r, e) => ({
|
|
50
49
|
name: e,
|
|
51
|
-
fn:
|
|
52
|
-
|
|
50
|
+
fn: B((p) => [
|
|
51
|
+
C(t.$slots, e, _(g(p || {})))
|
|
53
52
|
])
|
|
54
53
|
}))
|
|
55
54
|
]), 1040));
|
|
56
55
|
}
|
|
57
56
|
});
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
w as default
|
|
60
59
|
};
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { Modal as
|
|
1
|
+
import { Modal as i } from "@aplus-frontend/antdv";
|
|
2
2
|
import { omit as a } from "lodash-unified";
|
|
3
|
-
function f(
|
|
4
|
-
return typeof
|
|
3
|
+
function f(o) {
|
|
4
|
+
return typeof o == "object" && typeof o.then == "function" ? o : !1;
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
var i;
|
|
6
|
+
const m = (o) => typeof o == "function" && f(o?.()), h = (o, s = "0.7") => {
|
|
8
7
|
try {
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
11
|
-
if (
|
|
8
|
+
let t = o?.toLowerCase();
|
|
9
|
+
if (t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
10
|
+
if (t.length === 4) {
|
|
12
11
|
let r = "#";
|
|
13
12
|
for (let n = 1; n < 4; n += 1)
|
|
14
|
-
r +=
|
|
15
|
-
|
|
13
|
+
r += t.slice(n, n + 1).concat(t.slice(n, n + 1));
|
|
14
|
+
t = r;
|
|
16
15
|
}
|
|
17
|
-
const
|
|
16
|
+
const e = [];
|
|
18
17
|
for (let r = 1; r < 7; r += 2)
|
|
19
|
-
|
|
20
|
-
return "rgba(" +
|
|
18
|
+
e.push(parseInt("0x" + t.slice(r, r + 2)));
|
|
19
|
+
return "rgba(" + e.join(",") + "," + s + ")";
|
|
21
20
|
}
|
|
22
|
-
if (
|
|
23
|
-
let
|
|
24
|
-
return
|
|
21
|
+
if (t && t.startsWith("rgb")) {
|
|
22
|
+
let e = t.match(/(\d(\.\d+)?)+/g);
|
|
23
|
+
return e = e?.slice(0, 3)?.concat(s), "rgba(" + e.join(",") + ")";
|
|
25
24
|
}
|
|
26
|
-
return
|
|
25
|
+
return t;
|
|
27
26
|
} catch {
|
|
28
27
|
return;
|
|
29
28
|
}
|
|
30
|
-
},
|
|
31
|
-
const { onOk:
|
|
32
|
-
return new Promise((
|
|
33
|
-
|
|
29
|
+
}, p = (o) => {
|
|
30
|
+
const { onOk: s = () => ({}) } = o;
|
|
31
|
+
return new Promise((t, c) => {
|
|
32
|
+
i.confirm({
|
|
34
33
|
onOk: async () => {
|
|
35
34
|
try {
|
|
36
|
-
await
|
|
35
|
+
await s(), t(!0);
|
|
37
36
|
} catch {
|
|
38
|
-
|
|
37
|
+
c();
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
40
|
onCancel: () => {
|
|
42
|
-
|
|
41
|
+
c();
|
|
43
42
|
},
|
|
44
|
-
...a(
|
|
43
|
+
...a(o, ["onOk"])
|
|
45
44
|
});
|
|
46
45
|
});
|
|
47
46
|
};
|
|
48
47
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
p as confirmHandle,
|
|
49
|
+
m as isAsynchronous,
|
|
51
50
|
f as isPromise,
|
|
52
|
-
|
|
51
|
+
h as transferOpacityColor
|
|
53
52
|
};
|