@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,19 +1,19 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Button as w, Flex as
|
|
1
|
+
import { isVNode as J, defineComponent as K, useSlots as Q, ref as p, computed as z, unref as o, watch as P, cloneVNode as Y, createVNode as l, mergeProps as v, createElementBlock as N, openBlock as h, Fragment as Z, createBlock as M, createCommentVNode as S, withCtx as b, renderSlot as _, withModifiers as ee, normalizeClass as te, resolveDynamicComponent as L, createTextVNode as ie, toDisplayString as ne } from "vue";
|
|
2
|
+
import { Button as w, Flex as oe, Space as ae, Drawer as le } 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 se } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { isBoolean as
|
|
8
|
-
import { convertReactiveToRaw as
|
|
9
|
-
import { useControllableValue as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import
|
|
13
|
-
function U(
|
|
14
|
-
return typeof
|
|
7
|
+
import { isBoolean as re, isUndefined as ue, omit as de } from "lodash-unified";
|
|
8
|
+
import { convertReactiveToRaw as me } from "../../utils/index.mjs";
|
|
9
|
+
import { useControllableValue as ce } from "../../hooks/useControllableValue.mjs";
|
|
10
|
+
import { useLocale as fe } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import { useNamespace as pe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import ve from "../ap-form.vue2.mjs";
|
|
13
|
+
function U(r) {
|
|
14
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !J(r);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Le = /* @__PURE__ */ K({
|
|
17
17
|
name: "ApFormDrawerForm",
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -95,18 +95,17 @@ const je = /* @__PURE__ */ Q({
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
emits: ["update:open"],
|
|
98
|
-
setup(
|
|
98
|
+
setup(r, {
|
|
99
99
|
expose: j,
|
|
100
100
|
emit: E
|
|
101
101
|
}) {
|
|
102
|
-
const
|
|
102
|
+
const t = r, g = Q(), I = E, n = p(), d = p(), a = p(!1), {
|
|
103
103
|
value: C,
|
|
104
|
-
updateValue:
|
|
105
|
-
} =
|
|
104
|
+
updateValue: m
|
|
105
|
+
} = ce(t, I, {
|
|
106
106
|
valuePropName: "open",
|
|
107
107
|
defaultValue: !1
|
|
108
|
-
}),
|
|
109
|
-
var t, i, s, r;
|
|
108
|
+
}), s = z(() => {
|
|
110
109
|
const e = {
|
|
111
110
|
onResize: () => {
|
|
112
111
|
},
|
|
@@ -114,194 +113,158 @@ const je = /* @__PURE__ */ Q({
|
|
|
114
113
|
maxWidth: window.innerWidth * 0.8,
|
|
115
114
|
resizeOnOpen: !0
|
|
116
115
|
};
|
|
117
|
-
return
|
|
118
|
-
minWidth:
|
|
119
|
-
maxWidth:
|
|
120
|
-
onResize:
|
|
121
|
-
resizeOnOpen:
|
|
116
|
+
return re(t.resize) ? t.resize ? e : {} : {
|
|
117
|
+
minWidth: t.resize?.minWidth ?? e.minWidth,
|
|
118
|
+
maxWidth: t.resize?.maxWidth ?? e.maxWidth,
|
|
119
|
+
onResize: t.resize?.onResize ?? e.onResize,
|
|
120
|
+
resizeOnOpen: ue(t.resize?.resizeOnOpen) ? e.onResize : t.resize.resizeOnOpen
|
|
122
121
|
};
|
|
123
|
-
}),
|
|
124
|
-
t:
|
|
125
|
-
} =
|
|
126
|
-
e:
|
|
127
|
-
em:
|
|
128
|
-
} =
|
|
129
|
-
[
|
|
122
|
+
}), u = p(T()), {
|
|
123
|
+
t: F
|
|
124
|
+
} = fe(), {
|
|
125
|
+
e: D,
|
|
126
|
+
em: V
|
|
127
|
+
} = pe("ap-form-drawer-form"), $ = z(() => [D("resize-bar"), {
|
|
128
|
+
[V("resize-bar", "min-disabled")]: o(u) === o(s).minWidth
|
|
130
129
|
}, {
|
|
131
|
-
[
|
|
130
|
+
[V("resize-bar", "max-disabled")]: o(u) === o(s).maxWidth
|
|
132
131
|
}]);
|
|
133
|
-
P(() =>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var t;
|
|
138
|
-
e && (t = l(m)) != null && t.resizeOnOpen && (f.value = W());
|
|
132
|
+
P(() => n.value, (e) => {
|
|
133
|
+
e && d.value && (e.setFieldsValue?.(d.value), d.value = void 0);
|
|
134
|
+
}), P(() => o(C), (e) => {
|
|
135
|
+
e && o(s)?.resizeOnOpen && (u.value = T());
|
|
139
136
|
});
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return !e || e && e < n.width ? n.width : e;
|
|
137
|
+
function T() {
|
|
138
|
+
const e = o(s)?.minWidth;
|
|
139
|
+
return !e || e && e < t.width ? t.width : e;
|
|
144
140
|
}
|
|
145
|
-
const
|
|
141
|
+
const W = se(g.trigger), R = W ? Y(W, {
|
|
146
142
|
onClick: () => {
|
|
147
|
-
|
|
143
|
+
m(!0);
|
|
148
144
|
}
|
|
149
|
-
}) : null,
|
|
150
|
-
var t, i, s, r;
|
|
145
|
+
}) : null, q = z(() => {
|
|
151
146
|
const e = [];
|
|
152
|
-
if (
|
|
147
|
+
if (t.submitter === !1)
|
|
153
148
|
return null;
|
|
154
|
-
if (
|
|
155
|
-
let
|
|
156
|
-
e.push(
|
|
157
|
-
onClick:
|
|
158
|
-
disabled:
|
|
159
|
-
}, U(
|
|
160
|
-
default: () => [
|
|
149
|
+
if (t.showCancel) {
|
|
150
|
+
let i;
|
|
151
|
+
e.push(l(w, {
|
|
152
|
+
onClick: k,
|
|
153
|
+
disabled: a.value
|
|
154
|
+
}, U(i = F("ap.common.cancelText")) ? i : {
|
|
155
|
+
default: () => [i]
|
|
161
156
|
}));
|
|
162
157
|
}
|
|
163
|
-
return
|
|
158
|
+
return t.submitter?.resetButtonProps !== !1 && e.push(l(w, v(t.submitter?.resetButtonProps || {}, {
|
|
164
159
|
key: "submit",
|
|
165
|
-
disabled:
|
|
160
|
+
disabled: a.value,
|
|
166
161
|
onClick: X
|
|
167
162
|
}), {
|
|
168
|
-
default: () =>
|
|
169
|
-
|
|
170
|
-
return [((o = n.submitter) == null ? void 0 : o.resetText) || z("ap.common.resetText")];
|
|
171
|
-
}
|
|
172
|
-
})), ((s = n.submitter) == null ? void 0 : s.submitButtonProps) !== !1 && e.push(d(w, b({
|
|
163
|
+
default: () => [t.submitter?.resetText || F("ap.common.resetText")]
|
|
164
|
+
})), t.submitter?.submitButtonProps !== !1 && e.push(l(w, v({
|
|
173
165
|
type: "primary",
|
|
174
166
|
key: "submit"
|
|
175
|
-
},
|
|
176
|
-
loading:
|
|
167
|
+
}, t.submitter?.submitButtonProps || {}, {
|
|
168
|
+
loading: a.value,
|
|
177
169
|
onClick: G
|
|
178
170
|
}), {
|
|
179
|
-
default: () =>
|
|
180
|
-
|
|
181
|
-
return [((o = n.submitter) == null ? void 0 : o.submitText) || z("ap.common.okText")];
|
|
182
|
-
}
|
|
183
|
-
})), d(ae, {
|
|
171
|
+
default: () => [t.submitter?.submitText || F("ap.common.okText")]
|
|
172
|
+
})), l(oe, {
|
|
184
173
|
justify: "flex-end"
|
|
185
174
|
}, {
|
|
186
|
-
default: () => [
|
|
175
|
+
default: () => [g.submitter ? g.submitter(e) : l(ae, null, U(e) ? e : {
|
|
187
176
|
default: () => [e]
|
|
188
177
|
})]
|
|
189
178
|
});
|
|
190
179
|
});
|
|
191
|
-
function
|
|
192
|
-
|
|
193
|
-
(t = (e = m.value) == null ? void 0 : e.onResize) == null || t.call(e), document.addEventListener("mousemove", R), document.addEventListener("mouseup", k);
|
|
180
|
+
function A() {
|
|
181
|
+
s.value?.onResize?.(), document.addEventListener("mousemove", B), document.addEventListener("mouseup", x);
|
|
194
182
|
}
|
|
195
|
-
function
|
|
196
|
-
const
|
|
197
|
-
let
|
|
198
|
-
|
|
183
|
+
function B(e) {
|
|
184
|
+
const i = o(s), c = (document.body.offsetWidth || 1e3) - (e.clientX - document.body.offsetLeft), f = i?.minWidth ?? (t.width || 800), O = i?.maxWidth ?? window.innerWidth * 0.8;
|
|
185
|
+
let y = c;
|
|
186
|
+
c < f && (y = f), c > O && (y = O), u.value = y;
|
|
199
187
|
}
|
|
200
|
-
function
|
|
201
|
-
document.removeEventListener("mousemove",
|
|
188
|
+
function x() {
|
|
189
|
+
document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", x);
|
|
202
190
|
}
|
|
203
191
|
function X() {
|
|
204
|
-
|
|
205
|
-
n.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (i = (t = n.submitter) == null ? void 0 : t.onReset) == null || i.call(t));
|
|
192
|
+
t.submitter !== !1 && (n.value?.resetFields(), t.submitter?.onReset?.());
|
|
206
193
|
}
|
|
207
194
|
async function G() {
|
|
208
|
-
|
|
209
|
-
if (n.submitter !== !1)
|
|
195
|
+
if (t.submitter !== !1)
|
|
210
196
|
try {
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
clearTimeout(
|
|
197
|
+
const e = await n.value?.validateFieldsReturnTransformed();
|
|
198
|
+
t.submitter?.onSubmit?.(), a.value = !0;
|
|
199
|
+
const i = t.onFinish?.(me(e));
|
|
200
|
+
if (t.submitTimeout && i instanceof Promise) {
|
|
201
|
+
const f = setTimeout(() => a.value = !1, t.submitTimeout);
|
|
202
|
+
i.finally(() => {
|
|
203
|
+
clearTimeout(f), a.value = !1;
|
|
218
204
|
});
|
|
219
205
|
}
|
|
220
|
-
await
|
|
206
|
+
await i && m(!1);
|
|
221
207
|
} finally {
|
|
222
|
-
|
|
208
|
+
a.value = !1;
|
|
223
209
|
}
|
|
224
210
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
211
|
+
function k() {
|
|
212
|
+
o(a) || m(!1);
|
|
227
213
|
}
|
|
228
214
|
function H(e) {
|
|
229
|
-
!e &&
|
|
215
|
+
!e && o(a) || m(e);
|
|
230
216
|
}
|
|
231
217
|
return j({
|
|
232
218
|
resetFields: async () => {
|
|
233
|
-
|
|
234
|
-
(e = a.value) == null || e.resetFields();
|
|
219
|
+
n.value?.resetFields();
|
|
235
220
|
},
|
|
236
221
|
clearValidate: (e) => {
|
|
237
|
-
|
|
238
|
-
(t = a.value) == null || t.clearValidate(e);
|
|
239
|
-
},
|
|
240
|
-
validateFields: (e, t) => {
|
|
241
|
-
var i;
|
|
242
|
-
return (i = a.value) == null ? void 0 : i.validateFields(e, t);
|
|
222
|
+
n.value?.clearValidate(e);
|
|
243
223
|
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
224
|
+
validateFields: (e, i) => n.value?.validateFields(e, i),
|
|
225
|
+
getFieldsValue: (e) => n.value?.getFieldsValue(e),
|
|
226
|
+
validate: (e, i) => n.value?.validate(e, i),
|
|
227
|
+
scrollToField: (e, i = {}) => {
|
|
228
|
+
n.value?.scrollToField(e, i);
|
|
247
229
|
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
return (i = a.value) == null ? void 0 : i.validate(e, t);
|
|
251
|
-
},
|
|
252
|
-
scrollToField: (e, t = {}) => {
|
|
253
|
-
var i;
|
|
254
|
-
(i = a.value) == null || i.scrollToField(e, t);
|
|
255
|
-
},
|
|
256
|
-
setFieldValue: (e, t) => {
|
|
257
|
-
var i, s;
|
|
258
|
-
(s = (i = a.value) == null ? void 0 : i.setFieldValue) == null || s.call(i, e, t);
|
|
230
|
+
setFieldValue: (e, i) => {
|
|
231
|
+
n.value?.setFieldValue?.(e, i);
|
|
259
232
|
},
|
|
260
233
|
setFieldsValue: (e) => {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
p.value = e;
|
|
234
|
+
if (!n.value) {
|
|
235
|
+
d.value = e;
|
|
264
236
|
return;
|
|
265
237
|
}
|
|
266
|
-
|
|
267
|
-
},
|
|
268
|
-
getInternalInstance: (e) => {
|
|
269
|
-
var t;
|
|
270
|
-
return (t = a.value) == null ? void 0 : t.getInternalInstance(e);
|
|
238
|
+
n.value?.setFieldsValue?.(e);
|
|
271
239
|
},
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
return (t = a.value) == null ? void 0 : t.validateFieldsReturnTransformed(e);
|
|
279
|
-
}
|
|
280
|
-
}), (e, t) => (F(), N(ee, null, [d(l(se), b(e.drawerProps, {
|
|
281
|
-
open: l(C),
|
|
282
|
-
width: f.value,
|
|
240
|
+
getInternalInstance: (e) => n.value?.getInternalInstance(e),
|
|
241
|
+
getFieldsValueTransformed: (e) => n.value?.getFieldsValueTransformed(e),
|
|
242
|
+
validateFieldsReturnTransformed: (e) => n.value?.validateFieldsReturnTransformed(e)
|
|
243
|
+
}), (e, i) => (h(), N(Z, null, [l(o(le), v(e.drawerProps, {
|
|
244
|
+
open: o(C),
|
|
245
|
+
width: u.value,
|
|
283
246
|
"onUpdate:open": H,
|
|
284
|
-
onCancel:
|
|
247
|
+
onCancel: k
|
|
285
248
|
}), {
|
|
286
|
-
title:
|
|
287
|
-
footer:
|
|
288
|
-
default:
|
|
249
|
+
title: b(() => [_(e.$slots, "title", {}, () => [ie(ne(t.title), 1)])]),
|
|
250
|
+
footer: b(() => [(h(), M(L(q.value)))]),
|
|
251
|
+
default: b(() => [l(ve, v({
|
|
289
252
|
ref_key: "formRef",
|
|
290
|
-
ref:
|
|
291
|
-
},
|
|
292
|
-
default:
|
|
253
|
+
ref: n
|
|
254
|
+
}, o(de)(t, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
|
|
255
|
+
default: b(() => [_(e.$slots, "default")]),
|
|
293
256
|
_: 3
|
|
294
|
-
}, 16), e.resize ? (
|
|
257
|
+
}, 16), e.resize ? (h(), N("div", {
|
|
295
258
|
key: 0,
|
|
296
|
-
class:
|
|
297
|
-
onMousedown:
|
|
259
|
+
class: te($.value),
|
|
260
|
+
onMousedown: ee(A, ["stop", "prevent"])
|
|
298
261
|
}, null, 34)) : S("", !0)]),
|
|
299
262
|
_: 3
|
|
300
|
-
}, 16, ["open", "width"]),
|
|
263
|
+
}, 16, ["open", "width"]), o(R) ? (h(), M(L(o(R)), {
|
|
301
264
|
key: 0
|
|
302
265
|
})) : S("", !0)], 64));
|
|
303
266
|
}
|
|
304
267
|
});
|
|
305
268
|
export {
|
|
306
|
-
|
|
269
|
+
Le as default
|
|
307
270
|
};
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { useInjectForm as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { INTERNAL_FORM_INSTANCE_MARK as
|
|
4
|
-
import { getModelValue as
|
|
5
|
-
function
|
|
1
|
+
import { useInjectForm as I } from "../context.mjs";
|
|
2
|
+
import { ref as S, watchEffect as N, unref as c, watch as M } from "vue";
|
|
3
|
+
import { INTERNAL_FORM_INSTANCE_MARK as R } from "../constant.mjs";
|
|
4
|
+
import { getModelValue as m } from "../utils/get.mjs";
|
|
5
|
+
function o(e) {
|
|
6
6
|
try {
|
|
7
|
-
return JSON.stringify(
|
|
7
|
+
return JSON.stringify(e);
|
|
8
8
|
} catch {
|
|
9
9
|
return Math.random();
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const { internalInstance:
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
const t = ((d = r == null ? void 0 : r.value) == null ? void 0 : d.getInternalInstance(E)) || I;
|
|
12
|
+
function x(e, n, v) {
|
|
13
|
+
const { internalInstance: d, model: g } = I(), u = v?.initialValue || n?.initialValue || void 0, l = S(u);
|
|
14
|
+
let a = o(u), s = !0;
|
|
15
|
+
const h = n && "value" in n ? n : void 0;
|
|
16
|
+
return N((i) => {
|
|
17
|
+
const t = h?.value?.getInternalInstance(R) || d;
|
|
19
18
|
if (!t) {
|
|
20
|
-
|
|
19
|
+
s = !1;
|
|
21
20
|
return;
|
|
22
21
|
}
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
i(
|
|
28
|
-
}),
|
|
29
|
-
() =>
|
|
22
|
+
const r = t.registerWatch((w) => {
|
|
23
|
+
const f = m(w, c(e)), V = o(f);
|
|
24
|
+
V !== a && (l.value = f, a = V);
|
|
25
|
+
}, s);
|
|
26
|
+
i(r);
|
|
27
|
+
}), M(
|
|
28
|
+
() => c(e),
|
|
30
29
|
(i) => {
|
|
31
|
-
const t =
|
|
32
|
-
|
|
30
|
+
const t = m(c(g), i), r = o(t);
|
|
31
|
+
r !== a && (l.value = t, a = r);
|
|
33
32
|
}
|
|
34
|
-
),
|
|
33
|
+
), l;
|
|
35
34
|
}
|
|
36
35
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
x as default,
|
|
37
|
+
x as useWatch
|
|
39
38
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Form as
|
|
1
|
+
import { defineComponent as A, useSlots as D, ref as c, onMounted as L, computed as M, unref as t, cloneVNode as $, createBlock as v, openBlock as y, mergeProps as j, createSlots as q, withCtx as a, resolveDynamicComponent as E, renderList as K, createElementVNode as O, normalizeClass as Q, createVNode as s, normalizeStyle as U, renderSlot as Y, normalizeProps as G, guardReactiveProps as H } from "vue";
|
|
2
|
+
import { Form as J, Tooltip as W, TypographyText as X } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as Z } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
-
import { isFunction as
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
6
|
-
import { QuestionCircleOutlined as
|
|
4
|
+
import { isFunction as b, cloneDeep as ee, isArray as oe, omit as F } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as te } from "../constant.mjs";
|
|
6
|
+
import { QuestionCircleOutlined as le } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as re } from "../context.mjs";
|
|
9
9
|
import { isPromise as ae } from "@fruits-chain/utils";
|
|
10
10
|
import { getValidVNodeList as ne } from "../../utils/slot.mjs";
|
|
11
11
|
import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
-
const Ve = /* @__PURE__ */
|
|
12
|
+
const Ve = /* @__PURE__ */ A({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -55,102 +55,97 @@ const Ve = /* @__PURE__ */ D({
|
|
|
55
55
|
description: {},
|
|
56
56
|
customFilled: {}
|
|
57
57
|
},
|
|
58
|
-
setup(
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
ae(
|
|
63
|
-
name:
|
|
64
|
-
initialValue: ee(
|
|
65
|
-
transform:
|
|
58
|
+
setup(V, { expose: g }) {
|
|
59
|
+
const e = V, u = D(), { model: d, updateModel: B, internalInstance: h } = re(), { m, b: x } = ie("ap-form-item"), i = c(!1), r = c(), [, C] = Z();
|
|
60
|
+
L(async () => {
|
|
61
|
+
let o = b(e.initialValue) ? e.initialValue() : e.initialValue;
|
|
62
|
+
ae(o) && (o = await o), h?.registerField({
|
|
63
|
+
name: e.name,
|
|
64
|
+
initialValue: ee(o),
|
|
65
|
+
transform: e.transform
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const f = M(() => e.name ? oe(e.name) ? e.name.reduce((o, l) => o?.[l], t(d)) : d?.value[e.name] : null);
|
|
69
69
|
function k() {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
[
|
|
77
|
-
|
|
78
|
-
bordered: o.bordered ? !1 : (n = t == null ? void 0 : t.props) == null ? void 0 : n.bordered,
|
|
70
|
+
const o = u.default?.() || [];
|
|
71
|
+
if (!e.name)
|
|
72
|
+
return o[0];
|
|
73
|
+
const l = ne(o)[0];
|
|
74
|
+
return l ? $(l, {
|
|
75
|
+
[e.valuePropName]: t(f),
|
|
76
|
+
[`onUpdate:${e.valuePropName}`]: N,
|
|
77
|
+
bordered: e.bordered ? !1 : l?.props?.bordered,
|
|
79
78
|
onFocus: P,
|
|
80
|
-
onBlur:
|
|
79
|
+
onBlur: I
|
|
81
80
|
}) : null;
|
|
82
81
|
}
|
|
83
|
-
function N(
|
|
84
|
-
|
|
82
|
+
function N(o) {
|
|
83
|
+
B?.(e.name, o);
|
|
85
84
|
}
|
|
86
85
|
function P() {
|
|
87
|
-
|
|
86
|
+
i.value = !0;
|
|
87
|
+
}
|
|
88
|
+
function I() {
|
|
89
|
+
i.value = !1;
|
|
88
90
|
}
|
|
89
91
|
function S() {
|
|
90
|
-
|
|
92
|
+
r.value?.onFieldBlur();
|
|
91
93
|
}
|
|
92
94
|
function T() {
|
|
93
|
-
|
|
94
|
-
(e = a.value) == null || e.onFieldBlur();
|
|
95
|
+
r.value?.onFieldChange();
|
|
95
96
|
}
|
|
96
97
|
function w() {
|
|
97
|
-
|
|
98
|
-
(e = a.value) == null || e.onFieldChange();
|
|
99
|
-
}
|
|
100
|
-
function I() {
|
|
101
|
-
var e;
|
|
102
|
-
(e = a.value) == null || e.clearValidate();
|
|
98
|
+
r.value?.clearValidate();
|
|
103
99
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
106
|
-
(e = a.value) == null || e.resetField();
|
|
100
|
+
function _() {
|
|
101
|
+
r.value?.resetField();
|
|
107
102
|
}
|
|
108
|
-
function
|
|
109
|
-
const
|
|
110
|
-
if (!
|
|
111
|
-
return
|
|
112
|
-
const
|
|
113
|
-
return
|
|
103
|
+
function z(o = !1) {
|
|
104
|
+
const l = t(f);
|
|
105
|
+
if (!o || !e.transform)
|
|
106
|
+
return l;
|
|
107
|
+
const n = b(e.transform) ? e.transform : e.transform.transformer;
|
|
108
|
+
return e.transform ? n(l) : l;
|
|
114
109
|
}
|
|
115
|
-
return
|
|
116
|
-
onFieldBlur:
|
|
117
|
-
onFieldChange:
|
|
118
|
-
clearValidate:
|
|
119
|
-
resetField:
|
|
120
|
-
getFieldValue:
|
|
121
|
-
}), (
|
|
110
|
+
return g({
|
|
111
|
+
onFieldBlur: S,
|
|
112
|
+
onFieldChange: T,
|
|
113
|
+
clearValidate: w,
|
|
114
|
+
resetField: _,
|
|
115
|
+
getFieldValue: z
|
|
116
|
+
}), (o, l) => (y(), v(t(J).Item, j(
|
|
122
117
|
{
|
|
123
118
|
ref_key: "formItemRef",
|
|
124
|
-
ref:
|
|
119
|
+
ref: r
|
|
125
120
|
},
|
|
126
|
-
|
|
121
|
+
t(F)(e, [...t(te), "tooltip", "label", "description"]),
|
|
127
122
|
{
|
|
128
123
|
class: {
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
124
|
+
[t(m)("bordered")]: o.bordered,
|
|
125
|
+
[t(m)("focused")]: o.bordered && i.value,
|
|
126
|
+
[t(x)()]: !0
|
|
132
127
|
},
|
|
133
|
-
colon:
|
|
128
|
+
colon: o.bordered ? !1 : e.colon
|
|
134
129
|
}
|
|
135
|
-
),
|
|
136
|
-
default:
|
|
137
|
-
(
|
|
130
|
+
), q({
|
|
131
|
+
default: a(() => [
|
|
132
|
+
(y(), v(E(k())))
|
|
138
133
|
]),
|
|
139
134
|
_: 2
|
|
140
135
|
}, [
|
|
141
|
-
|
|
136
|
+
e.tooltip ? {
|
|
142
137
|
name: "tooltip",
|
|
143
|
-
fn:
|
|
144
|
-
|
|
145
|
-
class:
|
|
138
|
+
fn: a(({ class: n }) => [
|
|
139
|
+
O("span", {
|
|
140
|
+
class: Q(n)
|
|
146
141
|
}, [
|
|
147
|
-
|
|
148
|
-
title:
|
|
142
|
+
s(t(W), {
|
|
143
|
+
title: e.tooltip
|
|
149
144
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
152
|
-
style:
|
|
153
|
-
color:
|
|
145
|
+
default: a(() => [
|
|
146
|
+
s(t(le), {
|
|
147
|
+
style: U({
|
|
148
|
+
color: t(C).colorTextTertiary,
|
|
154
149
|
fontSize: "14px",
|
|
155
150
|
transform: "translateY(1px)"
|
|
156
151
|
})
|
|
@@ -162,21 +157,21 @@ const Ve = /* @__PURE__ */ D({
|
|
|
162
157
|
]),
|
|
163
158
|
key: "0"
|
|
164
159
|
} : void 0,
|
|
165
|
-
|
|
160
|
+
o.label ? {
|
|
166
161
|
name: "label",
|
|
167
|
-
fn:
|
|
168
|
-
|
|
169
|
-
content:
|
|
170
|
-
ellipsis: { tooltip:
|
|
162
|
+
fn: a(() => [
|
|
163
|
+
s(t(X), {
|
|
164
|
+
content: o.label,
|
|
165
|
+
ellipsis: { tooltip: o.label },
|
|
171
166
|
style: { "min-width": "0px", flex: "1" }
|
|
172
167
|
}, null, 8, ["content", "ellipsis"])
|
|
173
168
|
]),
|
|
174
169
|
key: "1"
|
|
175
170
|
} : void 0,
|
|
176
|
-
|
|
177
|
-
name:
|
|
178
|
-
fn:
|
|
179
|
-
|
|
171
|
+
K(t(F)(u, "default"), (n, p) => ({
|
|
172
|
+
name: p,
|
|
173
|
+
fn: a((R) => [
|
|
174
|
+
Y(o.$slots, p, G(H(R || {})))
|
|
180
175
|
])
|
|
181
176
|
}))
|
|
182
177
|
]), 1040, ["class", "colon"]));
|