@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,96 +1,91 @@
|
|
|
1
1
|
import "../index.mjs";
|
|
2
|
-
import { merge as
|
|
2
|
+
import { merge as c, cloneDeep as F } from "lodash-unified";
|
|
3
3
|
import { ref as R } from "vue";
|
|
4
4
|
import { useKeepAliveFlag as w } from "./useKeepAliveFlag.mjs";
|
|
5
5
|
import { useTableRefresh as V } from "./useTableRefresh.mjs";
|
|
6
|
-
function E(
|
|
7
|
-
const
|
|
8
|
-
isShowRowSelection:
|
|
9
|
-
clearSelectionOnRequest:
|
|
10
|
-
transformSearchFormValues:
|
|
11
|
-
api:
|
|
12
|
-
tableRefresh:
|
|
13
|
-
virtual:
|
|
14
|
-
clearDataOnDeactivated:
|
|
15
|
-
...
|
|
16
|
-
} =
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
(r = (e = t.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
6
|
+
function E(a) {
|
|
7
|
+
const r = R(null), {
|
|
8
|
+
isShowRowSelection: i = !0,
|
|
9
|
+
clearSelectionOnRequest: f = !0,
|
|
10
|
+
transformSearchFormValues: o,
|
|
11
|
+
api: s,
|
|
12
|
+
tableRefresh: d = !0,
|
|
13
|
+
virtual: m,
|
|
14
|
+
clearDataOnDeactivated: p = !0,
|
|
15
|
+
...v
|
|
16
|
+
} = a || {};
|
|
17
|
+
let l = null;
|
|
18
|
+
const n = () => {
|
|
19
|
+
r.value?.rowSelection?.clearAll();
|
|
21
20
|
};
|
|
22
21
|
V({
|
|
23
|
-
...b(
|
|
24
|
-
apTableRef:
|
|
22
|
+
...b(d),
|
|
23
|
+
apTableRef: r
|
|
25
24
|
});
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, { isDeactivated: g } = w({
|
|
33
|
-
afterDeactivated: c
|
|
25
|
+
const u = () => {
|
|
26
|
+
r.value?.submit();
|
|
27
|
+
}, S = () => {
|
|
28
|
+
r.value?.reset();
|
|
29
|
+
}, { isDeactivated: h } = w({
|
|
30
|
+
afterDeactivated: u
|
|
34
31
|
});
|
|
35
|
-
return [
|
|
32
|
+
return [c(
|
|
36
33
|
{
|
|
37
34
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
38
35
|
scroll: { x: "100%", y: "100%" },
|
|
39
36
|
columnResizable: !0,
|
|
40
|
-
request:
|
|
41
|
-
if (
|
|
37
|
+
request: s ? async (e) => {
|
|
38
|
+
if (h() && p)
|
|
42
39
|
return {
|
|
43
40
|
data: [],
|
|
44
41
|
total: 0
|
|
45
42
|
};
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
49
|
-
const { records:
|
|
50
|
-
return
|
|
51
|
-
data:
|
|
43
|
+
l = e.sort;
|
|
44
|
+
const t = o ? o(e) : e;
|
|
45
|
+
if (!s) throw new Error("api is not defined");
|
|
46
|
+
const { records: g, total: A } = await s(t);
|
|
47
|
+
return f && n(), {
|
|
48
|
+
data: g,
|
|
52
49
|
total: A
|
|
53
50
|
};
|
|
54
51
|
} : void 0,
|
|
55
|
-
rowSelection:
|
|
52
|
+
rowSelection: i ? {
|
|
56
53
|
fixed: "left",
|
|
57
54
|
columnWidth: 38
|
|
58
55
|
} : void 0,
|
|
59
56
|
ref(e) {
|
|
60
|
-
|
|
57
|
+
r.value = e;
|
|
61
58
|
},
|
|
62
|
-
virtual:
|
|
59
|
+
virtual: c(
|
|
63
60
|
{
|
|
64
61
|
oSize: 20,
|
|
65
62
|
y: 20
|
|
66
63
|
},
|
|
67
|
-
|
|
64
|
+
m
|
|
68
65
|
),
|
|
69
66
|
// 新UI规范,需要都添加分割线
|
|
70
67
|
card: !0
|
|
71
68
|
},
|
|
72
|
-
|
|
69
|
+
v
|
|
73
70
|
), {
|
|
74
|
-
reload:
|
|
75
|
-
reset:
|
|
71
|
+
reload: u,
|
|
72
|
+
reset: S,
|
|
76
73
|
getSearchFormValues: (e = !0) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return a ? a(r) : r;
|
|
74
|
+
const t = r.value?.getSearchFormValues(!!e) || {};
|
|
75
|
+
return o ? o(t) : t;
|
|
80
76
|
},
|
|
81
|
-
getApGridInstance: () =>
|
|
77
|
+
getApGridInstance: () => r.value,
|
|
82
78
|
getSearchFormValuesAndSorted: (e = !0) => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return r.sort = n && F(n), a ? a(r) : r;
|
|
79
|
+
const t = r.value?.getSearchFormValues(!!e) || {};
|
|
80
|
+
return t.sort = l && F(l), o ? o(t) : t;
|
|
86
81
|
},
|
|
87
|
-
clearSelection:
|
|
82
|
+
clearSelection: n
|
|
88
83
|
}];
|
|
89
84
|
}
|
|
90
|
-
function b(
|
|
91
|
-
return
|
|
85
|
+
function b(a) {
|
|
86
|
+
return a === !0 ? {} : a === !1 ? {
|
|
92
87
|
refreshBefore: () => !1
|
|
93
|
-
} :
|
|
88
|
+
} : a;
|
|
94
89
|
}
|
|
95
90
|
export {
|
|
96
91
|
E as usePageListApGrid
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { merge as p, cloneDeep as h } from "lodash-unified";
|
|
2
2
|
import { ref as S } from "vue";
|
|
3
3
|
import { useTableRefresh as b } from "./useTableRefresh.mjs";
|
|
4
|
-
function g(
|
|
5
|
-
return
|
|
4
|
+
function g(o) {
|
|
5
|
+
return o === !0 ? {} : o === !1 ? {
|
|
6
6
|
refreshBefore: () => !1
|
|
7
|
-
} :
|
|
7
|
+
} : o;
|
|
8
8
|
}
|
|
9
|
-
function I(
|
|
10
|
-
const
|
|
9
|
+
function I(o) {
|
|
10
|
+
const r = S(null), {
|
|
11
11
|
isShowRowSelection: u = !0,
|
|
12
12
|
clearSelectionOnRequest: i = !0,
|
|
13
|
-
transformSearchFormValues:
|
|
14
|
-
api:
|
|
13
|
+
transformSearchFormValues: a,
|
|
14
|
+
api: s,
|
|
15
15
|
tableRefresh: f = !1,
|
|
16
16
|
...m
|
|
17
|
-
} =
|
|
18
|
-
let
|
|
17
|
+
} = o || {};
|
|
18
|
+
let l = null;
|
|
19
19
|
const c = () => {
|
|
20
|
-
|
|
21
|
-
(r = (e = a.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
20
|
+
r.value?.rowSelection?.clearAll();
|
|
22
21
|
};
|
|
23
22
|
return b({
|
|
24
23
|
...g(f),
|
|
25
|
-
apTableRef:
|
|
24
|
+
apTableRef: r
|
|
26
25
|
}), [p(
|
|
27
26
|
{
|
|
28
27
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
@@ -31,18 +30,18 @@ function I(s) {
|
|
|
31
30
|
columnResizable: !0,
|
|
32
31
|
// 表格header吸顶效果
|
|
33
32
|
class: "ap-table--sticky",
|
|
34
|
-
request:
|
|
35
|
-
|
|
36
|
-
const
|
|
33
|
+
request: s ? async (e) => {
|
|
34
|
+
l = e.sort;
|
|
35
|
+
const t = a ? a(e) : e;
|
|
37
36
|
try {
|
|
38
|
-
if (!
|
|
39
|
-
const { records:
|
|
37
|
+
if (!s) throw new Error("api is not defined");
|
|
38
|
+
const { records: n, total: d } = await s(t);
|
|
40
39
|
return i && c(), {
|
|
41
|
-
data:
|
|
40
|
+
data: n,
|
|
42
41
|
total: d
|
|
43
42
|
};
|
|
44
|
-
} catch (
|
|
45
|
-
return console.error(
|
|
43
|
+
} catch (n) {
|
|
44
|
+
return console.error(n), {
|
|
46
45
|
data: [],
|
|
47
46
|
total: 0
|
|
48
47
|
};
|
|
@@ -54,7 +53,7 @@ function I(s) {
|
|
|
54
53
|
columnWidth: 50
|
|
55
54
|
} : void 0,
|
|
56
55
|
ref(e) {
|
|
57
|
-
|
|
56
|
+
r.value = e;
|
|
58
57
|
},
|
|
59
58
|
// 新UI规范,需要都添加分割线
|
|
60
59
|
card: !0
|
|
@@ -62,23 +61,19 @@ function I(s) {
|
|
|
62
61
|
m
|
|
63
62
|
), {
|
|
64
63
|
reload: () => {
|
|
65
|
-
|
|
66
|
-
(e = a.value) == null || e.submit();
|
|
64
|
+
r.value?.submit();
|
|
67
65
|
},
|
|
68
66
|
reset: () => {
|
|
69
|
-
|
|
70
|
-
(e = a.value) == null || e.reset();
|
|
67
|
+
r.value?.reset();
|
|
71
68
|
},
|
|
72
69
|
getSearchFormValues: (e) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return o ? o(r) : r;
|
|
70
|
+
const t = r.value?.getSearchFormValues(e) || {};
|
|
71
|
+
return a ? a(t) : t;
|
|
76
72
|
},
|
|
77
|
-
getApTableInstance: () =>
|
|
73
|
+
getApTableInstance: () => r.value,
|
|
78
74
|
getSearchFormValuesAndSorted: (e) => {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return r.sort = n && h(n), o ? o(r) : r;
|
|
75
|
+
const t = r.value?.getSearchFormValues(e) || {};
|
|
76
|
+
return t.sort = l && h(l), a ? a(t) : t;
|
|
82
77
|
},
|
|
83
78
|
clearSelection: c
|
|
84
79
|
}];
|
|
@@ -1,59 +1,57 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as f, onMounted as T, nextTick as b, onActivated as p, onDeactivated as S } from "vue";
|
|
2
2
|
import "../../index.mjs";
|
|
3
|
-
import { useGlobalConfig as
|
|
4
|
-
function
|
|
3
|
+
import { useGlobalConfig as m } from "../../config-provider/hooks/use-global-config.mjs";
|
|
4
|
+
function h(e) {
|
|
5
5
|
return e === "admin" ? window : (window.top !== window ? window.top : window) ?? window;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
return
|
|
7
|
+
function s(e, t) {
|
|
8
|
+
return t.document.querySelector(e);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
function g(e, t = ".demo", n) {
|
|
11
|
+
const o = s(t, n);
|
|
12
|
+
o && (o.scrollTop = e);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
|
|
14
|
+
function y(e) {
|
|
15
|
+
const t = m("scrollYDomName"), n = m("uiMode"), o = h(n.value ?? "aplus");
|
|
16
|
+
let u = !0;
|
|
17
|
+
const c = f(0), a = f(0), v = (["reset", "submit", void 0].includes(e?.refreshType) ? e?.refreshType : "submit") ?? "submit", w = e?.refreshBefore ?? (() => !0);
|
|
18
|
+
let d = !0;
|
|
19
|
+
const i = (l) => {
|
|
20
|
+
if (u === !1) return;
|
|
21
|
+
const r = l.target;
|
|
22
|
+
a.value = r.scrollTop;
|
|
23
23
|
};
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
return T(() => {
|
|
25
|
+
b(() => {
|
|
26
|
+
d = !1;
|
|
27
27
|
});
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
28
|
+
}), p(() => {
|
|
29
|
+
const l = w?.();
|
|
30
|
+
if (d) {
|
|
31
31
|
setTimeout(() => {
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const r = s(t.value, o);
|
|
33
|
+
r && r.addEventListener("scroll", i);
|
|
34
34
|
});
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
s
|
|
37
|
+
l && setTimeout(() => {
|
|
38
|
+
u = !0, e?.apTableRef?.value?.[v](), e?.apTableRef?.value?.scrollBar?.x?.scroll?.(c.value), g(
|
|
39
|
+
a.value,
|
|
40
|
+
t.value,
|
|
41
|
+
o
|
|
43
42
|
);
|
|
44
|
-
const
|
|
45
|
-
|
|
43
|
+
const r = s(t.value, o);
|
|
44
|
+
r && r.addEventListener("scroll", i);
|
|
46
45
|
});
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
u && u.removeEventListener("scroll", b);
|
|
46
|
+
}), S(() => {
|
|
47
|
+
u = !1, c.value = e?.apTableRef?.value?.scrollBar?.x?.getCurrentScroll?.() ?? 0;
|
|
48
|
+
const l = s(t.value, o);
|
|
49
|
+
l && l.removeEventListener("scroll", i);
|
|
52
50
|
}), {
|
|
53
|
-
tableScrollX:
|
|
54
|
-
tableScrollY:
|
|
51
|
+
tableScrollX: c,
|
|
52
|
+
tableScrollY: a
|
|
55
53
|
};
|
|
56
54
|
}
|
|
57
55
|
export {
|
|
58
|
-
|
|
56
|
+
y as useTableRefresh
|
|
59
57
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Skeleton as
|
|
1
|
+
import { defineComponent as T, computed as i, unref as o, createVNode as u, Fragment as E, watch as F, watchEffect as I, createElementBlock as h, openBlock as d, withModifiers as W, normalizeClass as y, normalizeStyle as $, createBlock as p, renderSlot as j, createCommentVNode as m, resolveDynamicComponent as b, createElementVNode as D } from "vue";
|
|
2
|
+
import { Skeleton as M } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import "../hooks/index.mjs";
|
|
5
|
-
import { isFunction as
|
|
6
|
-
import { useInjectCheckCard as
|
|
7
|
-
import
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useControllableValue as
|
|
10
|
-
const
|
|
5
|
+
import { isFunction as C } from "lodash-unified";
|
|
6
|
+
import { useInjectCheckCard as O } from "./context.mjs";
|
|
7
|
+
import U from "./checked.svg.mjs";
|
|
8
|
+
import { useNamespace as q } from "../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useControllableValue as A } from "../hooks/useControllableValue.mjs";
|
|
10
|
+
const G = ["src"], x = /* @__PURE__ */ T({
|
|
11
11
|
name: "CheckCard",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -49,93 +49,88 @@ const K = ["src"], oe = /* @__PURE__ */ I({
|
|
|
49
49
|
content: {}
|
|
50
50
|
},
|
|
51
51
|
emits: ["update:checked"],
|
|
52
|
-
setup(
|
|
53
|
-
emit:
|
|
52
|
+
setup(z, {
|
|
53
|
+
emit: S
|
|
54
54
|
}) {
|
|
55
|
-
const a =
|
|
56
|
-
b:
|
|
57
|
-
m:
|
|
58
|
-
e:
|
|
59
|
-
em:
|
|
60
|
-
} =
|
|
55
|
+
const a = z, {
|
|
56
|
+
b: B,
|
|
57
|
+
m: c,
|
|
58
|
+
e: s,
|
|
59
|
+
em: f
|
|
60
|
+
} = q("check-card"), N = S, l = O(), {
|
|
61
61
|
value: r,
|
|
62
|
-
updateValue:
|
|
63
|
-
} =
|
|
62
|
+
updateValue: g
|
|
63
|
+
} = A(a, N, {
|
|
64
64
|
valuePropName: "checked",
|
|
65
65
|
defaultValuePropName: "defaultChecked"
|
|
66
|
-
}), n =
|
|
66
|
+
}), n = i(() => {
|
|
67
67
|
const e = {
|
|
68
68
|
...a
|
|
69
69
|
}, t = o(l);
|
|
70
70
|
return t && (e.disabled = e.disabled || t.disabled, e.bordered = e.bordered || t.bordered, e.loading = e.loading || t.loading, e.size = e.size || t.size, e.indicatorSize = e.indicatorSize || t.indicatorSize, e.stopPropagation = e.stopPropagation || t.stopPropagation, e.style = e.style ? e.style : t.style), e;
|
|
71
|
-
}),
|
|
71
|
+
}), P = i(() => {
|
|
72
72
|
const e = o(n);
|
|
73
|
-
return [
|
|
74
|
-
}),
|
|
73
|
+
return [B(), c(e.size), o(r) ? c("checked") : null, e.bordered ? c("bordered") : null, e.disabled ? c("disabled") : null];
|
|
74
|
+
}), V = i(() => {
|
|
75
75
|
const e = o(n);
|
|
76
76
|
return {
|
|
77
77
|
...e.style || {},
|
|
78
78
|
"--check-card-indicator-size": `${e.indicatorSize || 14}px`
|
|
79
79
|
};
|
|
80
|
-
}),
|
|
80
|
+
}), v = i(() => {
|
|
81
81
|
const e = a.title;
|
|
82
82
|
if (!e)
|
|
83
83
|
return;
|
|
84
|
-
const t =
|
|
85
|
-
return
|
|
86
|
-
class: [
|
|
84
|
+
const t = C(e) ? e(o(r)) : u(E, null, [e]);
|
|
85
|
+
return u("div", {
|
|
86
|
+
class: [s("title"), n.value.disabled ? f("title", "disabled") : null]
|
|
87
87
|
}, [t]);
|
|
88
|
-
}),
|
|
88
|
+
}), k = i(() => {
|
|
89
89
|
if (!a.content)
|
|
90
90
|
return;
|
|
91
|
-
const e =
|
|
92
|
-
return
|
|
93
|
-
class: [
|
|
91
|
+
const e = C(a.content) ? a.content(o(r)) : a.content;
|
|
92
|
+
return u("div", {
|
|
93
|
+
class: [s("content"), n.value.disabled ? f("content", "disabled") : null]
|
|
94
94
|
}, [e]);
|
|
95
95
|
});
|
|
96
|
-
function
|
|
96
|
+
function _(e) {
|
|
97
97
|
const t = o(n).stopPropagation;
|
|
98
98
|
return t ? t === !0 ? e.target !== e.currentTarget : t(e) : !1;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
E(e) || n.value.loading || n.value.disabled || (l.value ? (i = (t = l.value) == null ? void 0 : t.toggleOption) == null || i.call(t, a.value) : k(!o(r)));
|
|
100
|
+
function w(e) {
|
|
101
|
+
_(e) || n.value.loading || n.value.disabled || (l.value ? l.value?.toggleOption?.(a.value) : g(!o(r)));
|
|
103
102
|
}
|
|
104
|
-
return
|
|
103
|
+
return F(() => l.value, (e) => {
|
|
105
104
|
if (!e)
|
|
106
105
|
return;
|
|
107
106
|
const t = e.multiple ? (e.value || []).includes(a.value) : e.value === a.value;
|
|
108
|
-
|
|
107
|
+
g(t);
|
|
109
108
|
}, {
|
|
110
109
|
immediate: !0
|
|
111
|
-
}),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
style: M(T.value),
|
|
119
|
-
class: z(w.value),
|
|
120
|
-
onClick: D(F, ["stop"])
|
|
121
|
-
}, [n.value.loading ? (c(), f(o(q), {
|
|
110
|
+
}), I((e) => {
|
|
111
|
+
l.value?.registerValue?.(a.value), e(() => l.value?.cancelValue?.(a.value));
|
|
112
|
+
}), (e, t) => (d(), h("div", {
|
|
113
|
+
style: $(V.value),
|
|
114
|
+
class: y(P.value),
|
|
115
|
+
onClick: W(w, ["stop"])
|
|
116
|
+
}, [n.value.loading ? (d(), p(o(M), {
|
|
122
117
|
key: 0,
|
|
123
118
|
active: ""
|
|
124
|
-
})) :
|
|
119
|
+
})) : j(e.$slots, "default", {
|
|
125
120
|
key: 1,
|
|
126
121
|
checked: o(r)
|
|
127
|
-
}, () => [
|
|
122
|
+
}, () => [v.value ? (d(), p(b(v.value), {
|
|
128
123
|
key: 0
|
|
129
|
-
})) :
|
|
124
|
+
})) : m("", !0), k.value ? (d(), p(b(k.value), {
|
|
130
125
|
key: 1
|
|
131
|
-
})) :
|
|
126
|
+
})) : m("", !0)]), o(r) ? (d(), h("div", {
|
|
132
127
|
key: 2,
|
|
133
|
-
class:
|
|
134
|
-
}, [
|
|
135
|
-
src: o(
|
|
136
|
-
}, null, 8,
|
|
128
|
+
class: y(o(s)("checked-icon"))
|
|
129
|
+
}, [D("img", {
|
|
130
|
+
src: o(U)
|
|
131
|
+
}, null, 8, G)], 2)) : m("", !0)], 6));
|
|
137
132
|
}
|
|
138
133
|
});
|
|
139
134
|
export {
|
|
140
|
-
|
|
135
|
+
x as default
|
|
141
136
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { isVNode as p, ref as s, defineComponent as C, computed as
|
|
1
|
+
import { isVNode as p, ref as s, defineComponent as C, computed as r, unref as t, watch as d, createVNode as v, renderSlot as M } from "vue";
|
|
2
2
|
import { ConfigProvider as P } from "@aplus-frontend/antdv";
|
|
3
|
-
import { useGlobalConfig as
|
|
3
|
+
import { useGlobalConfig as u, provideGlobalConfig as h } from "./hooks/use-global-config.mjs";
|
|
4
4
|
import { configProviderProps as U } from "./config-provider-props.mjs";
|
|
5
5
|
import { mergeAntdProviderConfigWithCache as w, mergeAntdProvideConfig as A } from "../utils/config-provider-preset.mjs";
|
|
6
6
|
import { DEFAULT_NAMESPACE as D, DEFAULT_UIMODE as N } from "./constants.mjs";
|
|
7
7
|
function b(e) {
|
|
8
8
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const i = s({}), S = /* @__PURE__ */ C({
|
|
11
11
|
name: "AplusConfigProvider",
|
|
12
12
|
props: U(),
|
|
13
13
|
setup(e, {
|
|
14
|
-
slots:
|
|
14
|
+
slots: l
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const n = u("namespace"), a = u("uiMode"), f = r(() => e.namespace ? e.namespace : t(n) ? t(n) : D), c = r(() => e.uiMode ? e.uiMode : t(a) ? t(a) : N), m = r(() => ({
|
|
17
17
|
namespace: t(f),
|
|
18
18
|
aplusLocale: e.aplusLocale,
|
|
19
19
|
api: e.api,
|
|
@@ -26,20 +26,20 @@ const n = s({}), S = /* @__PURE__ */ C({
|
|
|
26
26
|
scrollYDomName: e.scrollYDomName,
|
|
27
27
|
viewCacheOption: e.viewCacheOption,
|
|
28
28
|
searchForm: e.searchForm
|
|
29
|
-
})),
|
|
30
|
-
return
|
|
31
|
-
|
|
29
|
+
})), g = h(m);
|
|
30
|
+
return d(() => e, (o) => {
|
|
31
|
+
i.value = w(A(o), i.value);
|
|
32
32
|
}, {
|
|
33
33
|
deep: !0,
|
|
34
34
|
immediate: !0
|
|
35
|
-
}), typeof window < "u" &&
|
|
35
|
+
}), typeof window < "u" && d(() => t(c), (o) => {
|
|
36
36
|
document.documentElement.dataset.aplusUiMode = o;
|
|
37
37
|
}, {
|
|
38
38
|
immediate: !0
|
|
39
39
|
}), () => {
|
|
40
40
|
let o;
|
|
41
|
-
return v(P,
|
|
42
|
-
config:
|
|
41
|
+
return v(P, i.value, b(o = M(l, "default", {
|
|
42
|
+
config: g?.value
|
|
43
43
|
})) ? o : {
|
|
44
44
|
default: () => [o]
|
|
45
45
|
});
|
|
@@ -48,5 +48,5 @@ const n = s({}), S = /* @__PURE__ */ C({
|
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
50
50
|
S as ConfigProvider,
|
|
51
|
-
|
|
51
|
+
i as globalConfigCached
|
|
52
52
|
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { configProviderContextKey as
|
|
3
|
-
import { localeContextKey as
|
|
1
|
+
import { ref as p, getCurrentInstance as a, inject as m, computed as s, provide as d, unref as g } from "vue";
|
|
2
|
+
import { configProviderContextKey as v } from "../constants.mjs";
|
|
3
|
+
import { localeContextKey as C } from "./use-locale.mjs";
|
|
4
4
|
import { namespaceContextKey as y } from "./use-namespace.mjs";
|
|
5
|
-
const l = (e) => Object.keys(e),
|
|
5
|
+
const l = (e) => Object.keys(e), f = p();
|
|
6
6
|
function x(e, o = void 0) {
|
|
7
|
-
const
|
|
8
|
-
return e ?
|
|
9
|
-
var n;
|
|
10
|
-
return ((n = r.value) == null ? void 0 : n[e]) ?? o;
|
|
11
|
-
}) : r;
|
|
7
|
+
const t = a() ? m(v, f) : f;
|
|
8
|
+
return e ? s(() => t.value?.[e] ?? o) : t;
|
|
12
9
|
}
|
|
13
|
-
const O = (e, o,
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
10
|
+
const O = (e, o, t = !1) => {
|
|
11
|
+
const r = !!a(), n = r ? x() : void 0, c = o?.provide ?? (r ? d : void 0);
|
|
12
|
+
if (!c)
|
|
16
13
|
return;
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
return
|
|
14
|
+
const i = s(() => {
|
|
15
|
+
const u = g(e);
|
|
16
|
+
return n?.value ? b(n.value, u) : u;
|
|
20
17
|
});
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
), (
|
|
18
|
+
return c(v, i), c(y, i.value.namespace), c(
|
|
19
|
+
C,
|
|
20
|
+
s(() => i.value.aplusLocale)
|
|
21
|
+
), (t || !f.value) && (f.value = i.value), i;
|
|
25
22
|
}, b = (e, o) => {
|
|
26
|
-
const
|
|
27
|
-
for (const
|
|
28
|
-
n
|
|
29
|
-
return
|
|
23
|
+
const t = [.../* @__PURE__ */ new Set([...l(e), ...l(o)])], r = {};
|
|
24
|
+
for (const n of t)
|
|
25
|
+
r[n] = o[n] !== void 0 ? o[n] : e[n];
|
|
26
|
+
return r;
|
|
30
27
|
};
|
|
31
28
|
export {
|
|
32
29
|
l as keysOf,
|