@aplus-frontend/ui 6.26.2 → 6.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
- package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
- package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
- package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
- package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
- package/es/src/ag-grid/index.vue.mjs +251 -268
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
- package/es/src/ag-grid/renderer/date-range.mjs +11 -12
- package/es/src/ag-grid/renderer/date.mjs +12 -13
- package/es/src/ag-grid/renderer/radio.mjs +9 -10
- package/es/src/ag-grid/renderer/select.mjs +10 -17
- package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
- package/es/src/ap-action/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
- package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
- package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
- package/es/src/ap-button/utils/index.mjs +27 -28
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
- package/es/src/ap-descriptions/formatter/index.mjs +60 -61
- package/es/src/ap-descriptions/helper.mjs +6 -6
- package/es/src/ap-download/ap-download.vue.mjs +42 -46
- package/es/src/ap-download/hooks/index.mjs +13 -13
- package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
- package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
- package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
- package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
- package/es/src/ap-field/date/index.vue.mjs +66 -68
- package/es/src/ap-field/date-range/index.vue.mjs +99 -107
- package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
- package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
- package/es/src/ap-field/hooks/use-options.mjs +11 -11
- package/es/src/ap-field/number/helper.mjs +17 -17
- package/es/src/ap-field/number/index.vue.mjs +2 -4
- package/es/src/ap-field/radio/index.vue.mjs +38 -42
- package/es/src/ap-field/radio/read.vue2.mjs +12 -13
- package/es/src/ap-field/rate/index.vue.mjs +23 -25
- package/es/src/ap-field/segmented/index.vue.mjs +38 -39
- package/es/src/ap-field/select/index.vue.mjs +90 -107
- package/es/src/ap-field/select/read.vue2.mjs +13 -20
- package/es/src/ap-field/select/use-select-options.mjs +24 -25
- package/es/src/ap-field/slider/index.vue.mjs +28 -30
- package/es/src/ap-field/switch/index.vue.mjs +38 -39
- package/es/src/ap-field/text/index.vue2.mjs +43 -52
- package/es/src/ap-field/text/password.vue.mjs +20 -22
- package/es/src/ap-field/text-area/index.vue.mjs +25 -31
- package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
- package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
- package/es/src/ap-field/tree-select/use-request.mjs +40 -41
- package/es/src/ap-form/ap-form.vue2.mjs +127 -142
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
- package/es/src/ap-form/hooks/use-watch.mjs +25 -26
- package/es/src/ap-form/item/index.vue.mjs +76 -81
- package/es/src/ap-form/item-group/index.vue.mjs +20 -20
- package/es/src/ap-form/items/date/index.vue.mjs +18 -21
- package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +2 -4
- package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/es/src/ap-form/items/select/index.vue.mjs +30 -36
- package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
- package/es/src/ap-form/items/text/password.vue.mjs +12 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
- package/es/src/ap-form/list/index.vue.mjs +26 -26
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
- package/es/src/ap-form/provider/index.vue.mjs +24 -24
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/search-form/index.vue.mjs +96 -103
- package/es/src/ap-form/search-form/utils.mjs +17 -17
- package/es/src/ap-form/set/index.vue.mjs +16 -20
- package/es/src/ap-form/utils/get.mjs +11 -11
- package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
- package/es/src/ap-grid/editable/index.vue.mjs +102 -116
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
- package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
- package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
- package/es/src/ap-grid/index.vue.mjs +309 -334
- package/es/src/ap-grid/utils/col.mjs +78 -81
- package/es/src/ap-grid/utils/editable.mjs +17 -18
- package/es/src/ap-grid/utils/renderer.mjs +7 -11
- package/es/src/ap-grid/utils/table.mjs +45 -46
- package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
- package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
- package/es/src/ap-list/index.vue.mjs +120 -131
- package/es/src/ap-modal/utils/createModal.mjs +60 -67
- package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
- package/es/src/ap-modal/utils/methods.mjs +17 -22
- package/es/src/ap-modal/utils/util.mjs +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +113 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +44 -53
- package/es/src/ap-table/ap-table.vue2.mjs +270 -303
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
- package/es/src/ap-table/components/setting/utils.mjs +44 -46
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
- package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
- package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
- package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
- package/es/src/ap-table/utils.mjs +123 -130
- package/es/src/ap-upload/apUpload.vue.mjs +43 -46
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
- package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
- package/es/src/ap-upload/hooks/useOss.mjs +35 -35
- package/es/src/ap-upload/utils/accept.mjs +37 -38
- package/es/src/ap-upload/utils/returnData.mjs +14 -14
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
- package/es/src/business/ap-appendix/utils/index.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
- package/es/src/business/ap-copy/ApCopy.mjs +38 -39
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
- package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
- package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
- package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
- package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
- package/es/src/business/ap-keep-alive/hook.mjs +14 -20
- package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/utils.mjs +25 -26
- package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
- package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
- package/es/src/business/ap-summary/utils.mjs +23 -29
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
- package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
- package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
- package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
- package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
- package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
- package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
- package/es/src/business/ap-value-select-card/utils.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
- package/es/src/business/batch-input-group/index.vue.mjs +113 -127
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
- package/es/src/business/hooks/useGridRefresh.mjs +11 -12
- package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
- package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
- package/es/src/business/hooks/usePageListApTable.mjs +27 -32
- package/es/src/business/hooks/useTableRefresh.mjs +39 -41
- package/es/src/check-card/index.vue2.mjs +51 -56
- package/es/src/config-provider/config-provider.mjs +12 -12
- package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
- package/es/src/config-provider/hooks/use-locale.mjs +17 -17
- package/es/src/editable-table/form-item.vue.mjs +82 -88
- package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
- package/es/src/editable-table/index.vue.mjs +100 -113
- package/es/src/editable-table/utils.mjs +88 -95
- package/es/src/hooks/useControllableValue.mjs +18 -18
- package/es/src/hooks/useResize.mjs +16 -16
- package/es/src/mask/index.vue.mjs +11 -11
- package/es/src/resize-observer/index.vue.mjs +20 -22
- package/es/src/scroll-bar/index.vue.mjs +2 -8
- package/es/src/scroll-bar/internal.vue.mjs +59 -65
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
- package/es/src/scroll-view/index.vue.mjs +40 -42
- package/es/src/splitter/Splitter.vue2.mjs +48 -52
- package/es/src/splitter/hooks/useItems.mjs +14 -15
- package/es/src/splitter/hooks/useResize.mjs +31 -34
- package/es/src/splitter/hooks/useSizes.mjs +34 -34
- package/es/src/text/index.vue.mjs +24 -24
- package/es/src/utils/config-provider-preset.mjs +17 -21
- package/es/src/utils/copy.mjs +9 -9
- package/es/src/utils/index.mjs +43 -43
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/renderer/checkbox.js +1 -1
- package/lib/src/ag-grid/renderer/date-range.js +1 -1
- package/lib/src/ag-grid/renderer/date.js +1 -1
- package/lib/src/ag-grid/renderer/radio.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/renderer/tree-select.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/hooks/use-options.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/utils/get.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-modal/utils/methods.js +1 -1
- package/lib/src/ap-modal/utils/util.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/ap-upload/utils/accept.js +1 -1
- package/lib/src/ap-upload/utils/returnData.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/utils/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/hook.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/utils.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/useGridRefresh.js +1 -1
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useResize.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResize.js +1 -1
- package/lib/src/splitter/hooks/useSizes.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/copy.js +1 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
- package/theme/index.css +2 -1
|
@@ -3,7 +3,6 @@ import { ApFormItemSlots } from '../../interface';
|
|
|
3
3
|
import { LegacyDataNode, FieldNames, Key } from '@aplus-frontend/antdv/es/vc-tree-select/interface';
|
|
4
4
|
import { ComponentInternalInstance, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
5
5
|
import { FieldMode, ApFieldTreeSelectProps } from '../../../ap-field';
|
|
6
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
7
6
|
import { ChangeEventExtra, FieldNames, DefaultOptionType, BaseOptionType, SimpleModeConfig, LegacyDataNode } from '@aplus-frontend/antdv/es/vc-tree-select/TreeSelect';
|
|
8
7
|
import { SelectHandler } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
9
8
|
import { BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
@@ -15,6 +14,7 @@ import { ExpandAction } from '@aplus-frontend/antdv/es/vc-tree/props';
|
|
|
15
14
|
import { Recordable } from '../../../type';
|
|
16
15
|
import { TreeSelectProps } from '@aplus-frontend/antdv';
|
|
17
16
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
17
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
18
18
|
import { OnCleanup } from '@vue/reactivity';
|
|
19
19
|
declare function __VLS_template(): {
|
|
20
20
|
attrs: Partial<{}>;
|
|
@@ -51,7 +51,7 @@ declare function __VLS_template(): {
|
|
|
51
51
|
readonly mode?: FieldMode | undefined;
|
|
52
52
|
readonly class?: unknown;
|
|
53
53
|
readonly style?: unknown;
|
|
54
|
-
readonly size?:
|
|
54
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
55
55
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
56
56
|
readonly onChange?: ((value: unknown, labelList: any[], extra: ChangeEventExtra) => void) | undefined;
|
|
57
57
|
readonly onClick?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -825,7 +825,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
825
825
|
readonly mode?: FieldMode | undefined;
|
|
826
826
|
readonly class?: unknown;
|
|
827
827
|
readonly style?: unknown;
|
|
828
|
-
readonly size?:
|
|
828
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
829
829
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
830
830
|
readonly onChange?: ((value: unknown, labelList: any[], extra: ChangeEventExtra) => void) | undefined;
|
|
831
831
|
readonly onClick?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x, ref as S, computed as g, createBlock as F, openBlock as k, normalizeProps as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as g, createBlock as F, openBlock as k, normalizeProps as d, guardReactiveProps as s, unref as o, createSlots as u, withCtx as n, createVNode as C, mergeProps as P, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { isUndefined as q, omit as
|
|
5
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { isUndefined as q, omit as m, pick as $ } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as b } from "../../constant.mjs";
|
|
6
6
|
import N from "../../item/index.vue.mjs";
|
|
7
7
|
import R from "../../../ap-field/tree-select/index.vue.mjs";
|
|
8
8
|
const E = /* @__PURE__ */ B({
|
|
@@ -54,49 +54,43 @@ const E = /* @__PURE__ */ B({
|
|
|
54
54
|
placeholder: {},
|
|
55
55
|
disabled: { type: Boolean, default: void 0 }
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
return h({
|
|
57
|
+
setup(_, { expose: v }) {
|
|
58
|
+
const e = _, i = x(), r = S(), h = g(() => ({
|
|
59
|
+
placeholder: e.placeholder,
|
|
60
|
+
disabled: e.disabled,
|
|
61
|
+
...e.field || {},
|
|
62
|
+
bordered: e.bordered ? !1 : q(e.field?.bordered) ? !0 : e.field?.bordered
|
|
63
|
+
}));
|
|
64
|
+
return v({
|
|
68
65
|
focus: () => {
|
|
69
|
-
|
|
70
|
-
(e = a.value) == null || e.focus();
|
|
66
|
+
r.value?.focus();
|
|
71
67
|
},
|
|
72
68
|
blur: () => {
|
|
73
|
-
|
|
74
|
-
(e = a.value) == null || e.blur();
|
|
69
|
+
r.value?.blur();
|
|
75
70
|
},
|
|
76
|
-
request: (
|
|
77
|
-
|
|
78
|
-
(d = a.value) == null || d.request(e, r);
|
|
71
|
+
request: (t, p) => {
|
|
72
|
+
r.value?.request(t, p);
|
|
79
73
|
}
|
|
80
|
-
}), (
|
|
81
|
-
default:
|
|
82
|
-
C(
|
|
74
|
+
}), (t, p) => (k(), F(N, d(s(o(m)(e, ["field", "placeholder", "disabled"]))), u({
|
|
75
|
+
default: n(() => [
|
|
76
|
+
C(o(R), P(h.value, {
|
|
83
77
|
ref_key: "treeSelectRef",
|
|
84
|
-
ref:
|
|
85
|
-
}),
|
|
86
|
-
|
|
87
|
-
name:
|
|
88
|
-
fn:
|
|
89
|
-
|
|
78
|
+
ref: r
|
|
79
|
+
}), u({ _: 2 }, [
|
|
80
|
+
f(o(m)(i, o(b)), (y, l) => ({
|
|
81
|
+
name: l,
|
|
82
|
+
fn: n((a) => [
|
|
83
|
+
c(t.$slots, l, d(s(a || {})))
|
|
90
84
|
])
|
|
91
85
|
}))
|
|
92
86
|
]), 1040)
|
|
93
87
|
]),
|
|
94
88
|
_: 2
|
|
95
89
|
}, [
|
|
96
|
-
|
|
97
|
-
name:
|
|
98
|
-
fn:
|
|
99
|
-
|
|
90
|
+
f(o($)(i, o(b)), (y, l) => ({
|
|
91
|
+
name: l,
|
|
92
|
+
fn: n((a) => [
|
|
93
|
+
c(t.$slots, l, d(s(a || {})))
|
|
100
94
|
])
|
|
101
95
|
}))
|
|
102
96
|
]), 1040));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, onMounted as V, computed as f, unref as o, renderSlot as K } from "vue";
|
|
2
2
|
import { useInjectForm as g } from "../context.mjs";
|
|
3
3
|
import { isArray as h } from "lodash-unified";
|
|
4
|
-
const
|
|
4
|
+
const L = /* @__PURE__ */ k({
|
|
5
5
|
name: "ApFormList",
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -9,47 +9,47 @@ const b = /* @__PURE__ */ v({
|
|
|
9
9
|
initialValue: {},
|
|
10
10
|
transform: { type: [Function, Object] }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
let
|
|
14
|
-
const
|
|
12
|
+
setup(p) {
|
|
13
|
+
let a = 1;
|
|
14
|
+
const s = [], t = p, { model: l, updateModel: m, internalInstance: d } = g();
|
|
15
15
|
V(() => {
|
|
16
|
-
|
|
16
|
+
d?.registerField({
|
|
17
17
|
name: t.name,
|
|
18
18
|
initialValue: t.initialValue,
|
|
19
19
|
transform: t.transform
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
const n = i
|
|
25
|
-
return
|
|
22
|
+
const i = f(() => t.name ? h(t.name) ? t.name.reduce((e, n) => e?.[n], o(l)) : l?.value[t.name] : null);
|
|
23
|
+
function y(e = void 0) {
|
|
24
|
+
const n = o(i) ? [...o(i), e] : [e], r = a;
|
|
25
|
+
return s.push(r), a += 1, m?.(t.name, n), r;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
let n = i
|
|
29
|
-
n = [...n.slice(0, e), ...n.slice(e + 1)],
|
|
27
|
+
function v(e) {
|
|
28
|
+
let n = o(i) || [];
|
|
29
|
+
n = [...n.slice(0, e), ...n.slice(e + 1)], s.splice(e, 1), m?.(t.name, n);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function F() {
|
|
32
|
+
return c.value.map((e) => e.key);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
add:
|
|
36
|
-
remove:
|
|
37
|
-
getFieldKeys:
|
|
38
|
-
},
|
|
39
|
-
let
|
|
40
|
-
return typeof
|
|
41
|
-
key:
|
|
34
|
+
const _ = {
|
|
35
|
+
add: y,
|
|
36
|
+
remove: v,
|
|
37
|
+
getFieldKeys: F
|
|
38
|
+
}, c = f(() => (o(i) || []).map((n, r) => {
|
|
39
|
+
let u = s[r];
|
|
40
|
+
return typeof u > "u" && (s[r] = a, u = a, a += 1), {
|
|
41
|
+
key: u,
|
|
42
42
|
fieldName: r,
|
|
43
43
|
name: [t.name, r].flat(),
|
|
44
44
|
value: n
|
|
45
45
|
};
|
|
46
46
|
}));
|
|
47
47
|
return (e, n) => K(e.$slots, "default", {
|
|
48
|
-
fields:
|
|
49
|
-
actions:
|
|
48
|
+
fields: c.value,
|
|
49
|
+
actions: _
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
L as default
|
|
55
55
|
};
|
|
@@ -2,12 +2,12 @@ import { ApFormModalFormProps } from '../interface';
|
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
|
-
import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
6
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
9
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
10
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
13
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -28,7 +28,7 @@ declare function __VLS_template(): {
|
|
|
28
28
|
$: ComponentInternalInstance;
|
|
29
29
|
$data: {};
|
|
30
30
|
$props: {
|
|
31
|
-
readonly size?:
|
|
31
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
32
32
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
33
33
|
readonly layout?: string | undefined;
|
|
34
34
|
readonly disabled?: boolean | undefined;
|
|
@@ -1188,7 +1188,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1188
1188
|
$: ComponentInternalInstance;
|
|
1189
1189
|
$data: {};
|
|
1190
1190
|
$props: {
|
|
1191
|
-
readonly size?:
|
|
1191
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
1192
1192
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
1193
1193
|
readonly layout?: string | undefined;
|
|
1194
1194
|
readonly disabled?: boolean | undefined;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { isVNode as O, defineComponent as z, useSlots as E, ref as d, watch as $, cloneVNode as q, computed as A, createVNode as n, mergeProps as m, unref as a, createElementBlock as D, openBlock as b, Fragment as L, createBlock as T, createCommentVNode as G, withCtx as v, createElementVNode as K, normalizeClass as W, normalizeStyle as H, renderSlot as C, resolveDynamicComponent as B, createTextVNode as J, toDisplayString as Q } from "vue";
|
|
2
|
+
import { Button as y, Flex as X, Space as Y, Modal as Z } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { getSingleVNode as
|
|
5
|
+
import { getSingleVNode as ee } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { omit as
|
|
8
|
-
import { useControllableValue as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
13
|
-
function
|
|
14
|
-
return typeof
|
|
7
|
+
import { omit as te } from "lodash-unified";
|
|
8
|
+
import { useControllableValue as le } from "../../hooks/useControllableValue.mjs";
|
|
9
|
+
import { useLocale as oe } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import ne from "../ap-form.vue2.mjs";
|
|
13
|
+
function k(i) {
|
|
14
|
+
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !O(i);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Se = /* @__PURE__ */ z({
|
|
17
17
|
name: "ApFormModalForm",
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -91,187 +91,155 @@ const Re = /* @__PURE__ */ D({
|
|
|
91
91
|
submitTimeout: {}
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:open"],
|
|
94
|
-
setup(
|
|
95
|
-
expose:
|
|
96
|
-
emit:
|
|
94
|
+
setup(i, {
|
|
95
|
+
expose: P,
|
|
96
|
+
emit: w
|
|
97
97
|
}) {
|
|
98
|
-
const
|
|
99
|
-
value:
|
|
100
|
-
updateValue:
|
|
101
|
-
} =
|
|
98
|
+
const t = i, c = E(), N = w, o = d(), F = d(0), r = d(), s = d(!1), {
|
|
99
|
+
value: S,
|
|
100
|
+
updateValue: u
|
|
101
|
+
} = le(t, N, {
|
|
102
102
|
valuePropName: "open",
|
|
103
103
|
defaultValue: !1,
|
|
104
104
|
beforeUpdateValue(e) {
|
|
105
|
-
return e && (
|
|
105
|
+
return e && (F.value += 1), !0;
|
|
106
106
|
}
|
|
107
107
|
}), {
|
|
108
|
-
t:
|
|
109
|
-
} =
|
|
110
|
-
b:
|
|
111
|
-
e:
|
|
112
|
-
} =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
e && c.value && ((t = e.setFieldsValue) == null || t.call(e, c.value), c.value = void 0);
|
|
108
|
+
t: f
|
|
109
|
+
} = oe(), x = ae("uiMode", "aplus"), {
|
|
110
|
+
b: M,
|
|
111
|
+
e: p
|
|
112
|
+
} = se("ap-form-modal-form");
|
|
113
|
+
$(() => o.value, (e) => {
|
|
114
|
+
e && r.value && (e.setFieldsValue?.(r.value), r.value = void 0);
|
|
116
115
|
});
|
|
117
|
-
const
|
|
116
|
+
const g = ee(c.trigger), h = g ? q(g, {
|
|
118
117
|
onClick: () => {
|
|
119
|
-
|
|
118
|
+
u(!0);
|
|
120
119
|
}
|
|
121
|
-
}) : null,
|
|
122
|
-
var t, l, r, d;
|
|
120
|
+
}) : null, R = A(() => {
|
|
123
121
|
const e = [];
|
|
124
|
-
if (
|
|
122
|
+
if (t.submitter === !1)
|
|
125
123
|
return null;
|
|
126
|
-
if (
|
|
127
|
-
let
|
|
128
|
-
e.push(
|
|
129
|
-
onClick:
|
|
130
|
-
disabled:
|
|
131
|
-
},
|
|
132
|
-
default: () => [
|
|
124
|
+
if (t.showCancel) {
|
|
125
|
+
let l;
|
|
126
|
+
e.push(n(y, {
|
|
127
|
+
onClick: V,
|
|
128
|
+
disabled: s.value
|
|
129
|
+
}, k(l = f("ap.common.cancelText")) ? l : {
|
|
130
|
+
default: () => [l]
|
|
133
131
|
}));
|
|
134
132
|
}
|
|
135
|
-
return
|
|
133
|
+
return t.submitter?.resetButtonProps !== !1 && e.push(n(y, m(t.submitter?.resetButtonProps || {}, {
|
|
136
134
|
key: "reset",
|
|
137
|
-
disabled:
|
|
138
|
-
onClick:
|
|
135
|
+
disabled: s.value,
|
|
136
|
+
onClick: _,
|
|
139
137
|
htmlType: "reset"
|
|
140
138
|
}), {
|
|
141
|
-
default: () =>
|
|
142
|
-
|
|
143
|
-
return [((n = a.submitter) == null ? void 0 : n.resetText) || y("ap.common.resetText")];
|
|
144
|
-
}
|
|
145
|
-
})), ((r = a.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, b({
|
|
139
|
+
default: () => [t.submitter?.resetText || f("ap.common.resetText")]
|
|
140
|
+
})), t.submitter?.submitButtonProps !== !1 && e.push(n(y, m({
|
|
146
141
|
type: "primary",
|
|
147
142
|
key: "submit",
|
|
148
143
|
htmlType: "submit"
|
|
149
|
-
},
|
|
150
|
-
loading:
|
|
144
|
+
}, t.submitter?.submitButtonProps || {}, {
|
|
145
|
+
loading: s.value
|
|
151
146
|
}), {
|
|
152
|
-
default: () =>
|
|
153
|
-
|
|
154
|
-
return [((n = a.submitter) == null ? void 0 : n.submitText) || y("ap.common.okText")];
|
|
155
|
-
}
|
|
156
|
-
})), u(te, {
|
|
147
|
+
default: () => [t.submitter?.submitText || f("ap.common.okText")]
|
|
148
|
+
})), n(X, {
|
|
157
149
|
justify: "flex-end",
|
|
158
|
-
key:
|
|
159
|
-
class: [
|
|
150
|
+
key: a(F),
|
|
151
|
+
class: [p("footer"), a(x) === "admin" ? p("footer-admin") : null]
|
|
160
152
|
}, {
|
|
161
|
-
default: () => [
|
|
153
|
+
default: () => [c.submitter ? c.submitter(e) : n(Y, null, k(e) ? e : {
|
|
162
154
|
default: () => [e]
|
|
163
155
|
})]
|
|
164
156
|
});
|
|
165
157
|
});
|
|
166
|
-
function
|
|
167
|
-
|
|
168
|
-
a.submitter !== !1 && ((e = o.value) == null || e.resetFields(), (l = (t = a.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
|
|
158
|
+
function _() {
|
|
159
|
+
t.submitter !== !1 && (o.value?.resetFields(), t.submitter?.onReset?.());
|
|
169
160
|
}
|
|
170
|
-
async function
|
|
171
|
-
|
|
172
|
-
if (a.submitter !== !1)
|
|
161
|
+
async function U(e) {
|
|
162
|
+
if (t.submitter !== !1)
|
|
173
163
|
try {
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
if (
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
clearTimeout(
|
|
164
|
+
t.submitter?.onSubmit?.(), s.value = !0;
|
|
165
|
+
const l = t.onFinish?.(e);
|
|
166
|
+
if (t.submitTimeout && l instanceof Promise) {
|
|
167
|
+
const I = setTimeout(() => s.value = !1, t.submitTimeout);
|
|
168
|
+
l.finally(() => {
|
|
169
|
+
clearTimeout(I), s.value = !1;
|
|
180
170
|
});
|
|
181
171
|
}
|
|
182
|
-
await
|
|
172
|
+
await l && u(!1);
|
|
183
173
|
} finally {
|
|
184
|
-
|
|
174
|
+
s.value = !1;
|
|
185
175
|
}
|
|
186
176
|
}
|
|
187
|
-
function
|
|
188
|
-
s
|
|
177
|
+
function V() {
|
|
178
|
+
a(s) || u(!1);
|
|
189
179
|
}
|
|
190
|
-
function
|
|
191
|
-
!e && s
|
|
180
|
+
function j(e) {
|
|
181
|
+
!e && a(s) || u(e);
|
|
192
182
|
}
|
|
193
|
-
return
|
|
183
|
+
return P({
|
|
194
184
|
resetFields: async () => {
|
|
195
|
-
|
|
196
|
-
(e = o.value) == null || e.resetFields();
|
|
185
|
+
o.value?.resetFields();
|
|
197
186
|
},
|
|
198
187
|
clearValidate: (e) => {
|
|
199
|
-
|
|
200
|
-
(t = o.value) == null || t.clearValidate(e);
|
|
201
|
-
},
|
|
202
|
-
validateFields: (e, t) => {
|
|
203
|
-
var l;
|
|
204
|
-
return (l = o.value) == null ? void 0 : l.validateFields(e, t);
|
|
188
|
+
o.value?.clearValidate(e);
|
|
205
189
|
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
190
|
+
validateFields: (e, l) => o.value?.validateFields(e, l),
|
|
191
|
+
getFieldsValue: (e) => o.value?.getFieldsValue(e),
|
|
192
|
+
validate: (e, l) => o.value?.validate(e, l),
|
|
193
|
+
scrollToField: (e, l = {}) => {
|
|
194
|
+
o.value?.scrollToField(e, l);
|
|
209
195
|
},
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return (l = o.value) == null ? void 0 : l.validate(e, t);
|
|
213
|
-
},
|
|
214
|
-
scrollToField: (e, t = {}) => {
|
|
215
|
-
var l;
|
|
216
|
-
(l = o.value) == null || l.scrollToField(e, t);
|
|
217
|
-
},
|
|
218
|
-
setFieldValue: (e, t) => {
|
|
219
|
-
var l, r;
|
|
220
|
-
(r = (l = o.value) == null ? void 0 : l.setFieldValue) == null || r.call(l, e, t);
|
|
196
|
+
setFieldValue: (e, l) => {
|
|
197
|
+
o.value?.setFieldValue?.(e, l);
|
|
221
198
|
},
|
|
222
199
|
setFieldsValue: (e) => {
|
|
223
|
-
var t, l;
|
|
224
200
|
if (!o.value) {
|
|
225
|
-
|
|
201
|
+
r.value = e;
|
|
226
202
|
return;
|
|
227
203
|
}
|
|
228
|
-
|
|
229
|
-
},
|
|
230
|
-
getInternalInstance: (e) => {
|
|
231
|
-
var t;
|
|
232
|
-
return (t = o.value) == null ? void 0 : t.getInternalInstance(e);
|
|
204
|
+
o.value?.setFieldsValue?.(e);
|
|
233
205
|
},
|
|
206
|
+
getInternalInstance: (e) => o.value?.getInternalInstance(e),
|
|
234
207
|
getFieldsValueTransformed(e) {
|
|
235
|
-
|
|
236
|
-
return (t = o.value) == null ? void 0 : t.getFieldsValueTransformed(e);
|
|
208
|
+
return o.value?.getFieldsValueTransformed(e);
|
|
237
209
|
},
|
|
238
|
-
validateFieldsReturnTransformed(e,
|
|
239
|
-
|
|
240
|
-
return (l = o.value) == null ? void 0 : l.validateFieldsReturnTransformed(e, t);
|
|
210
|
+
validateFieldsReturnTransformed(e, l) {
|
|
211
|
+
return o.value?.validateFieldsReturnTransformed(e, l);
|
|
241
212
|
}
|
|
242
|
-
}), (e,
|
|
243
|
-
open:
|
|
213
|
+
}), (e, l) => (b(), D(L, null, [n(a(Z), m(e.modalProps, {
|
|
214
|
+
open: a(S),
|
|
244
215
|
footer: null,
|
|
245
216
|
width: e.width,
|
|
246
|
-
class:
|
|
217
|
+
class: a(M)(),
|
|
247
218
|
"body-style": {
|
|
248
219
|
padding: "0px !important"
|
|
249
220
|
},
|
|
250
|
-
"onUpdate:open":
|
|
251
|
-
onCancel:
|
|
221
|
+
"onUpdate:open": j,
|
|
222
|
+
onCancel: V
|
|
252
223
|
}), {
|
|
253
|
-
title:
|
|
254
|
-
default:
|
|
224
|
+
title: v(() => [C(e.$slots, "title", {}, () => [J(Q(t.title), 1)])]),
|
|
225
|
+
default: v(() => [n(ne, m({
|
|
255
226
|
ref_key: "formRef",
|
|
256
227
|
ref: o
|
|
257
|
-
},
|
|
258
|
-
onFinish:
|
|
228
|
+
}, a(te)(t, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
|
|
229
|
+
onFinish: U
|
|
259
230
|
}), {
|
|
260
|
-
default:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
class: X(s(F)("content"))
|
|
265
|
-
}, [w(e.$slots, "default")], 6), (g(), P(N(O.value)))];
|
|
266
|
-
}),
|
|
231
|
+
default: v(() => [K("div", {
|
|
232
|
+
style: H(e.modalProps?.bodyStyle),
|
|
233
|
+
class: W(a(p)("content"))
|
|
234
|
+
}, [C(e.$slots, "default")], 6), (b(), T(B(R.value)))]),
|
|
267
235
|
_: 3
|
|
268
236
|
}, 16)]),
|
|
269
237
|
_: 3
|
|
270
|
-
}, 16, ["open", "width", "class"]),
|
|
238
|
+
}, 16, ["open", "width", "class"]), a(h) ? (b(), T(B(a(h)), {
|
|
271
239
|
key: 0
|
|
272
|
-
})) :
|
|
240
|
+
})) : G("", !0)], 64));
|
|
273
241
|
}
|
|
274
242
|
});
|
|
275
243
|
export {
|
|
276
|
-
|
|
244
|
+
Se as default
|
|
277
245
|
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as s, ref as
|
|
2
|
-
import { useInjectFormProvider as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, ref as m, renderSlot as F } from "vue";
|
|
2
|
+
import { useInjectFormProvider as g, useProvideFormProvider as u } from "./context.mjs";
|
|
3
|
+
const a = /* @__PURE__ */ s({
|
|
4
4
|
name: "ApFormProvider",
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
onFormChange: { type: Function },
|
|
8
8
|
onFormFinish: { type: Function }
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
10
|
+
setup(i) {
|
|
11
|
+
const n = i, e = m({}), t = g();
|
|
12
12
|
return u({
|
|
13
|
-
triggerFormChange(r,
|
|
14
|
-
|
|
15
|
-
changedFields:
|
|
16
|
-
forms:
|
|
17
|
-
}),
|
|
13
|
+
triggerFormChange(r, o) {
|
|
14
|
+
n?.onFormChange && n.onFormChange(r, {
|
|
15
|
+
changedFields: o,
|
|
16
|
+
forms: e.value
|
|
17
|
+
}), t?.triggerFormChange(r, o);
|
|
18
18
|
},
|
|
19
|
-
triggerFormFinish: (r,
|
|
20
|
-
|
|
21
|
-
values:
|
|
22
|
-
forms:
|
|
23
|
-
}),
|
|
19
|
+
triggerFormFinish: (r, o) => {
|
|
20
|
+
n?.onFormFinish && n.onFormFinish(r, {
|
|
21
|
+
values: o,
|
|
22
|
+
forms: e.value
|
|
23
|
+
}), t?.triggerFormFinish(r, o);
|
|
24
24
|
},
|
|
25
|
-
registerForm: (r,
|
|
26
|
-
r && (
|
|
27
|
-
...
|
|
28
|
-
[r]:
|
|
29
|
-
}),
|
|
25
|
+
registerForm: (r, o) => {
|
|
26
|
+
r && (e.value = {
|
|
27
|
+
...e.value,
|
|
28
|
+
[r]: o
|
|
29
|
+
}), t?.registerForm(r, o);
|
|
30
30
|
},
|
|
31
31
|
unregisterForm: (r) => {
|
|
32
|
-
const
|
|
33
|
-
delete
|
|
32
|
+
const o = { ...e.value };
|
|
33
|
+
delete o[r], e.value = o, t?.unregisterForm(r);
|
|
34
34
|
}
|
|
35
|
-
}), (r,
|
|
35
|
+
}), (r, o) => F(r.$slots, "default");
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
a as default
|
|
40
40
|
};
|