@aplus-frontend/ui 6.26.2 → 6.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
- package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
- package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
- package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
- package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
- package/es/src/ag-grid/index.vue.mjs +251 -268
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
- package/es/src/ag-grid/renderer/date-range.mjs +11 -12
- package/es/src/ag-grid/renderer/date.mjs +12 -13
- package/es/src/ag-grid/renderer/radio.mjs +9 -10
- package/es/src/ag-grid/renderer/select.mjs +10 -17
- package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
- package/es/src/ap-action/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
- package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
- package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
- package/es/src/ap-button/utils/index.mjs +27 -28
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
- package/es/src/ap-descriptions/formatter/index.mjs +60 -61
- package/es/src/ap-descriptions/helper.mjs +6 -6
- package/es/src/ap-download/ap-download.vue.mjs +42 -46
- package/es/src/ap-download/hooks/index.mjs +13 -13
- package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
- package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
- package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
- package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
- package/es/src/ap-field/date/index.vue.mjs +66 -68
- package/es/src/ap-field/date-range/index.vue.mjs +99 -107
- package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
- package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
- package/es/src/ap-field/hooks/use-options.mjs +11 -11
- package/es/src/ap-field/number/helper.mjs +17 -17
- package/es/src/ap-field/number/index.vue.mjs +2 -4
- package/es/src/ap-field/radio/index.vue.mjs +38 -42
- package/es/src/ap-field/radio/read.vue2.mjs +12 -13
- package/es/src/ap-field/rate/index.vue.mjs +23 -25
- package/es/src/ap-field/segmented/index.vue.mjs +38 -39
- package/es/src/ap-field/select/index.vue.mjs +90 -107
- package/es/src/ap-field/select/read.vue2.mjs +13 -20
- package/es/src/ap-field/select/use-select-options.mjs +24 -25
- package/es/src/ap-field/slider/index.vue.mjs +28 -30
- package/es/src/ap-field/switch/index.vue.mjs +38 -39
- package/es/src/ap-field/text/index.vue2.mjs +43 -52
- package/es/src/ap-field/text/password.vue.mjs +20 -22
- package/es/src/ap-field/text-area/index.vue.mjs +25 -31
- package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
- package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
- package/es/src/ap-field/tree-select/use-request.mjs +40 -41
- package/es/src/ap-form/ap-form.vue2.mjs +127 -142
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
- package/es/src/ap-form/hooks/use-watch.mjs +25 -26
- package/es/src/ap-form/item/index.vue.mjs +76 -81
- package/es/src/ap-form/item-group/index.vue.mjs +20 -20
- package/es/src/ap-form/items/date/index.vue.mjs +18 -21
- package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +2 -4
- package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/es/src/ap-form/items/select/index.vue.mjs +30 -36
- package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
- package/es/src/ap-form/items/text/password.vue.mjs +12 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
- package/es/src/ap-form/list/index.vue.mjs +26 -26
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
- package/es/src/ap-form/provider/index.vue.mjs +24 -24
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/search-form/index.vue.mjs +96 -103
- package/es/src/ap-form/search-form/utils.mjs +17 -17
- package/es/src/ap-form/set/index.vue.mjs +16 -20
- package/es/src/ap-form/utils/get.mjs +11 -11
- package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
- package/es/src/ap-grid/editable/index.vue.mjs +102 -116
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
- package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
- package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
- package/es/src/ap-grid/index.vue.mjs +309 -334
- package/es/src/ap-grid/utils/col.mjs +78 -81
- package/es/src/ap-grid/utils/editable.mjs +17 -18
- package/es/src/ap-grid/utils/renderer.mjs +7 -11
- package/es/src/ap-grid/utils/table.mjs +45 -46
- package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
- package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
- package/es/src/ap-list/index.vue.mjs +120 -131
- package/es/src/ap-modal/utils/createModal.mjs +60 -67
- package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
- package/es/src/ap-modal/utils/methods.mjs +17 -22
- package/es/src/ap-modal/utils/util.mjs +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +113 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +44 -53
- package/es/src/ap-table/ap-table.vue2.mjs +270 -303
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
- package/es/src/ap-table/components/setting/utils.mjs +44 -46
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
- package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
- package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
- package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
- package/es/src/ap-table/utils.mjs +123 -130
- package/es/src/ap-upload/apUpload.vue.mjs +43 -46
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
- package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
- package/es/src/ap-upload/hooks/useOss.mjs +35 -35
- package/es/src/ap-upload/utils/accept.mjs +37 -38
- package/es/src/ap-upload/utils/returnData.mjs +14 -14
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
- package/es/src/business/ap-appendix/utils/index.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
- package/es/src/business/ap-copy/ApCopy.mjs +38 -39
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
- package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
- package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
- package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
- package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
- package/es/src/business/ap-keep-alive/hook.mjs +14 -20
- package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/utils.mjs +25 -26
- package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
- package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
- package/es/src/business/ap-summary/utils.mjs +23 -29
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
- package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
- package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
- package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
- package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
- package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
- package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
- package/es/src/business/ap-value-select-card/utils.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
- package/es/src/business/batch-input-group/index.vue.mjs +113 -127
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
- package/es/src/business/hooks/useGridRefresh.mjs +11 -12
- package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
- package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
- package/es/src/business/hooks/usePageListApTable.mjs +27 -32
- package/es/src/business/hooks/useTableRefresh.mjs +39 -41
- package/es/src/check-card/index.vue2.mjs +51 -56
- package/es/src/config-provider/config-provider.mjs +12 -12
- package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
- package/es/src/config-provider/hooks/use-locale.mjs +17 -17
- package/es/src/editable-table/form-item.vue.mjs +82 -88
- package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
- package/es/src/editable-table/index.vue.mjs +100 -113
- package/es/src/editable-table/utils.mjs +88 -95
- package/es/src/hooks/useControllableValue.mjs +18 -18
- package/es/src/hooks/useResize.mjs +16 -16
- package/es/src/mask/index.vue.mjs +11 -11
- package/es/src/resize-observer/index.vue.mjs +20 -22
- package/es/src/scroll-bar/index.vue.mjs +2 -8
- package/es/src/scroll-bar/internal.vue.mjs +59 -65
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
- package/es/src/scroll-view/index.vue.mjs +40 -42
- package/es/src/splitter/Splitter.vue2.mjs +48 -52
- package/es/src/splitter/hooks/useItems.mjs +14 -15
- package/es/src/splitter/hooks/useResize.mjs +31 -34
- package/es/src/splitter/hooks/useSizes.mjs +34 -34
- package/es/src/text/index.vue.mjs +24 -24
- package/es/src/utils/config-provider-preset.mjs +17 -21
- package/es/src/utils/copy.mjs +9 -9
- package/es/src/utils/index.mjs +43 -43
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/renderer/checkbox.js +1 -1
- package/lib/src/ag-grid/renderer/date-range.js +1 -1
- package/lib/src/ag-grid/renderer/date.js +1 -1
- package/lib/src/ag-grid/renderer/radio.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/renderer/tree-select.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/hooks/use-options.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/utils/get.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-modal/utils/methods.js +1 -1
- package/lib/src/ap-modal/utils/util.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/ap-upload/utils/accept.js +1 -1
- package/lib/src/ap-upload/utils/returnData.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/utils/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/hook.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/utils.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/useGridRefresh.js +1 -1
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useResize.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResize.js +1 -1
- package/lib/src/splitter/hooks/useSizes.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/copy.js +1 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
- package/theme/index.css +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as
|
|
1
|
+
import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as h, watch as B, unref as n, createVNode as N, mergeProps as d, createBlock as f, openBlock as s, withCtx as R, createElementBlock as S, Fragment as b, renderList as x, resolveDynamicComponent as j } from "vue";
|
|
2
2
|
import { Col as v, Row as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import { pick as D, isBoolean as I, omit as O } from "lodash-unified";
|
|
4
4
|
import { apFormItemColPropKeys as V } from "../constant.mjs";
|
|
@@ -7,9 +7,9 @@ import "../../config-provider/index.mjs";
|
|
|
7
7
|
import { isDef as G } from "../../utils/index.mjs";
|
|
8
8
|
import { useNamespace as H } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
function K(o) {
|
|
10
|
-
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !
|
|
10
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !C(o);
|
|
11
11
|
}
|
|
12
|
-
const W = /* @__PURE__ */
|
|
12
|
+
const W = /* @__PURE__ */ P({
|
|
13
13
|
name: "ApFormItemGroup",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -28,34 +28,34 @@ const W = /* @__PURE__ */ k({
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(o) {
|
|
31
|
-
const
|
|
32
|
-
b:
|
|
33
|
-
} = H("ap-form-item-group"),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}),
|
|
37
|
-
|
|
31
|
+
const p = o, c = k(), {
|
|
32
|
+
b: i
|
|
33
|
+
} = H("ap-form-item-group"), a = w([]);
|
|
34
|
+
h(() => {
|
|
35
|
+
a.value = l(c.default());
|
|
36
|
+
}), B(() => c.default(), (r) => {
|
|
37
|
+
a.value = l(r);
|
|
38
38
|
}, {
|
|
39
39
|
immediate: !0
|
|
40
40
|
});
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
const t = e.props,
|
|
41
|
+
function l(r) {
|
|
42
|
+
const m = $(r || []);
|
|
43
|
+
return n(m).map((e, g) => {
|
|
44
|
+
const t = e.props, u = D(t, V), _ = u?.span ? {} : A(p.countPerRow), y = I(t.hidden) ? !!t.hidden : G(t.hidden);
|
|
45
45
|
return {
|
|
46
46
|
key: `${g}-${E(t.name)}`,
|
|
47
|
-
node:
|
|
48
|
-
class:
|
|
47
|
+
node: N(v, d(_, u, {
|
|
48
|
+
class: y ? i("col-hidden") : ""
|
|
49
49
|
}), K(e) ? e : {
|
|
50
50
|
default: () => [e]
|
|
51
51
|
})
|
|
52
52
|
};
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
return (r,
|
|
56
|
-
class:
|
|
57
|
-
},
|
|
58
|
-
default: R(() => [(
|
|
55
|
+
return (r, m) => (s(), f(n(F), d({
|
|
56
|
+
class: n(i)()
|
|
57
|
+
}, n(O)(p, ["countPerRow"])), {
|
|
58
|
+
default: R(() => [(s(!0), S(b, null, x(a.value, (e) => (s(), f(j(e.node), {
|
|
59
59
|
key: e.key
|
|
60
60
|
}))), 128))]),
|
|
61
61
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as r, guardReactiveProps as a, unref as l, createSlots as s, withCtx as d, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -55,32 +55,29 @@ const L = /* @__PURE__ */ h({
|
|
|
55
55
|
disabled: { type: Boolean, default: void 0 }
|
|
56
56
|
},
|
|
57
57
|
setup(c) {
|
|
58
|
-
const e = c,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
name: l,
|
|
72
|
-
fn: i((d) => [
|
|
73
|
-
f(o.$slots, l, a(t(d || {})))
|
|
58
|
+
const e = c, i = B(), b = v(() => ({
|
|
59
|
+
placeholder: e.placeholder,
|
|
60
|
+
disabled: e.disabled,
|
|
61
|
+
...e.field,
|
|
62
|
+
bordered: e.bordered ? !1 : F(e.field?.bordered) ? !0 : e.field.bordered
|
|
63
|
+
}));
|
|
64
|
+
return (n, P) => (x(), y(k, r(a(l(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
65
|
+
default: d(() => [
|
|
66
|
+
g(C, r(a(b.value)), s({ _: 2 }, [
|
|
67
|
+
p(l(m)(i, l(u)), (_, o) => ({
|
|
68
|
+
name: o,
|
|
69
|
+
fn: d((t) => [
|
|
70
|
+
f(n.$slots, o, r(a(t || {})))
|
|
74
71
|
])
|
|
75
72
|
}))
|
|
76
73
|
]), 1040)
|
|
77
74
|
]),
|
|
78
75
|
_: 2
|
|
79
76
|
}, [
|
|
80
|
-
p(
|
|
81
|
-
name:
|
|
82
|
-
fn:
|
|
83
|
-
f(
|
|
77
|
+
p(l(S)(i, l(u)), (_, o) => ({
|
|
78
|
+
name: o,
|
|
79
|
+
fn: d((t) => [
|
|
80
|
+
f(n.$slots, o, r(a(t || {})))
|
|
84
81
|
])
|
|
85
82
|
}))
|
|
86
83
|
]), 1040));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as g, createBlock as v, openBlock as y, normalizeProps as a, guardReactiveProps as r, unref as o, createSlots as s, withCtx as d, createVNode as x, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { isUndefined as
|
|
5
|
-
import { apFormItemSlotNames as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const I = /* @__PURE__ */
|
|
4
|
+
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as u } from "../../constant.mjs";
|
|
6
|
+
import k from "../../item/index.vue.mjs";
|
|
7
|
+
import C from "../../../ap-field/date-range/index.vue.mjs";
|
|
8
|
+
const I = /* @__PURE__ */ h({
|
|
9
9
|
name: "ApFormItemDateRange",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -54,33 +54,30 @@ const I = /* @__PURE__ */ B({
|
|
|
54
54
|
placeholder: {},
|
|
55
55
|
disabled: { type: Boolean, default: void 0 }
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const e =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
name: a,
|
|
72
|
-
fn: n((i) => [
|
|
73
|
-
m(l.$slots, a, r(t(i || {})))
|
|
57
|
+
setup(c) {
|
|
58
|
+
const e = c, i = B(), b = g(() => ({
|
|
59
|
+
placeholder: e.placeholder,
|
|
60
|
+
disabled: e.disabled,
|
|
61
|
+
...e.field,
|
|
62
|
+
bordered: e.bordered ? !1 : F(e.field?.bordered) ? !0 : e.field?.bordered
|
|
63
|
+
}));
|
|
64
|
+
return (n, P) => (y(), v(k, a(r(o(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
65
|
+
default: d(() => [
|
|
66
|
+
x(o(C), a(r(b.value)), s({ _: 2 }, [
|
|
67
|
+
p(o(m)(i, o(u)), (_, l) => ({
|
|
68
|
+
name: l,
|
|
69
|
+
fn: d((t) => [
|
|
70
|
+
f(n.$slots, l, a(r(t || {})))
|
|
74
71
|
])
|
|
75
72
|
}))
|
|
76
73
|
]), 1040)
|
|
77
74
|
]),
|
|
78
75
|
_: 2
|
|
79
76
|
}, [
|
|
80
|
-
|
|
81
|
-
name:
|
|
82
|
-
fn:
|
|
83
|
-
|
|
77
|
+
p(o(S)(i, o(u)), (_, l) => ({
|
|
78
|
+
name: l,
|
|
79
|
+
fn: d((t) => [
|
|
80
|
+
f(n.$slots, l, a(r(t || {})))
|
|
84
81
|
])
|
|
85
82
|
}))
|
|
86
83
|
]), 1040));
|
|
@@ -2,9 +2,9 @@ import { ApFormItemNumberProps } from '../interface';
|
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
4
4
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
5
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
6
5
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
7
6
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
8
8
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
9
9
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
10
10
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
|
|
|
33
33
|
readonly mode?: FieldMode | undefined;
|
|
34
34
|
readonly class?: unknown;
|
|
35
35
|
readonly style?: unknown;
|
|
36
|
-
readonly size?:
|
|
36
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
37
37
|
readonly step?: ValueType | undefined;
|
|
38
38
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
39
39
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
@@ -506,7 +506,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
506
506
|
readonly mode?: FieldMode | undefined;
|
|
507
507
|
readonly class?: unknown;
|
|
508
508
|
readonly style?: unknown;
|
|
509
|
-
readonly size?:
|
|
509
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
510
510
|
readonly step?: ValueType | undefined;
|
|
511
511
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
512
512
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
@@ -58,12 +58,10 @@ const T = /* @__PURE__ */ y({
|
|
|
58
58
|
const h = c, n = B(), r = _();
|
|
59
59
|
return b({
|
|
60
60
|
focus: () => {
|
|
61
|
-
|
|
62
|
-
(e = r.value) == null || e.focus();
|
|
61
|
+
r.value?.focus();
|
|
63
62
|
},
|
|
64
63
|
blur: () => {
|
|
65
|
-
|
|
66
|
-
(e = r.value) == null || e.blur();
|
|
64
|
+
r.value?.blur();
|
|
67
65
|
}
|
|
68
66
|
}), (e, R) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), p({
|
|
69
67
|
default: d(() => [
|
|
@@ -52,30 +52,28 @@ const q = /* @__PURE__ */ u({
|
|
|
52
52
|
disabled: { type: Boolean, default: void 0 }
|
|
53
53
|
},
|
|
54
54
|
setup(i, { expose: d }) {
|
|
55
|
-
const n = i, p = m(),
|
|
55
|
+
const n = i, p = m(), e = c();
|
|
56
56
|
return d({
|
|
57
57
|
focus: () => {
|
|
58
|
-
|
|
59
|
-
(e = o.value) == null || e.focus();
|
|
58
|
+
e.value?.focus();
|
|
60
59
|
},
|
|
61
60
|
blur: () => {
|
|
62
|
-
|
|
63
|
-
(e = o.value) == null || e.blur();
|
|
61
|
+
e.value?.blur();
|
|
64
62
|
}
|
|
65
|
-
}), (
|
|
63
|
+
}), (o, P) => (v(), b(k, a(t(r(h)(n, ["field", "disabled"]))), _({
|
|
66
64
|
default: s(() => [
|
|
67
65
|
y(r(C), B({
|
|
68
66
|
ref_key: "radioRef",
|
|
69
|
-
ref:
|
|
70
|
-
disabled:
|
|
71
|
-
},
|
|
67
|
+
ref: e,
|
|
68
|
+
disabled: o.disabled
|
|
69
|
+
}, o.field), null, 16, ["disabled"])
|
|
72
70
|
]),
|
|
73
71
|
_: 2
|
|
74
72
|
}, [
|
|
75
73
|
x(p, (R, l) => ({
|
|
76
74
|
name: l,
|
|
77
75
|
fn: s((f) => [
|
|
78
|
-
g(
|
|
76
|
+
g(o.$slots, l, a(t(f || {})))
|
|
79
77
|
])
|
|
80
78
|
}))
|
|
81
79
|
]), 1040));
|
|
@@ -2,7 +2,6 @@ import { ApFormItemSelectProps } from '../interface';
|
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
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';
|
|
4
4
|
import { FieldMode, ApFieldSelectProps } from '../../..';
|
|
5
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
6
5
|
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
7
6
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
8
7
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -11,6 +10,7 @@ import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
|
11
10
|
import { Recordable } from '../../../type';
|
|
12
11
|
import { SelectProps } from '@aplus-frontend/antdv';
|
|
13
12
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
13
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
14
14
|
import { OnCleanup } from '@vue/reactivity';
|
|
15
15
|
declare function __VLS_template(): {
|
|
16
16
|
attrs: Partial<{}>;
|
|
@@ -49,7 +49,7 @@ declare function __VLS_template(): {
|
|
|
49
49
|
readonly mode?: FieldMode | undefined;
|
|
50
50
|
readonly class?: unknown;
|
|
51
51
|
readonly style?: unknown;
|
|
52
|
-
readonly size?:
|
|
52
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
53
53
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
54
54
|
readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
|
|
55
55
|
readonly onClick?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -74,7 +74,7 @@ declare function __VLS_template(): {
|
|
|
74
74
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
75
75
|
readonly virtual?: boolean | undefined;
|
|
76
76
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
77
|
-
readonly defaultValue?:
|
|
77
|
+
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
78
78
|
readonly id?: string | undefined;
|
|
79
79
|
readonly placeholder?: any;
|
|
80
80
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
@@ -124,7 +124,7 @@ declare function __VLS_template(): {
|
|
|
124
124
|
readonly emptyText?: string | undefined;
|
|
125
125
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
126
126
|
readonly multiple?: boolean | undefined;
|
|
127
|
-
readonly value?:
|
|
127
|
+
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
128
128
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
129
129
|
readonly searchMode?: "filter" | "request" | undefined;
|
|
130
130
|
readonly refetchOnFocus?: boolean | undefined;
|
|
@@ -680,7 +680,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
680
680
|
readonly mode?: FieldMode | undefined;
|
|
681
681
|
readonly class?: unknown;
|
|
682
682
|
readonly style?: unknown;
|
|
683
|
-
readonly size?:
|
|
683
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
684
684
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
685
685
|
readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
|
|
686
686
|
readonly onClick?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -705,7 +705,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
705
705
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
706
706
|
readonly virtual?: boolean | undefined;
|
|
707
707
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
708
|
-
readonly defaultValue?:
|
|
708
|
+
readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
709
709
|
readonly id?: string | undefined;
|
|
710
710
|
readonly placeholder?: any;
|
|
711
711
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
@@ -755,7 +755,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
755
755
|
readonly emptyText?: string | undefined;
|
|
756
756
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
757
757
|
readonly multiple?: boolean | undefined;
|
|
758
|
-
readonly value?:
|
|
758
|
+
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
759
759
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
760
760
|
readonly searchMode?: "filter" | "request" | undefined;
|
|
761
761
|
readonly refetchOnFocus?: boolean | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, useSlots as B, ref as x, computed as g, createBlock as S, openBlock as F, normalizeProps as a, guardReactiveProps as s, unref as o, createSlots as p, withCtx as d, createVNode as k, mergeProps as C, renderList as u, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { isUndefined as
|
|
5
|
-
import { apFormItemSlotNames as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const E = /* @__PURE__ */
|
|
4
|
+
import { isUndefined as P, omit as c, pick as q } from "lodash-unified";
|
|
5
|
+
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
|
+
import $ from "../../item/index.vue.mjs";
|
|
7
|
+
import N from "../../../ap-field/select/index.vue.mjs";
|
|
8
|
+
const E = /* @__PURE__ */ y({
|
|
9
9
|
name: "ApFormItemSelect",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -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 v({
|
|
57
|
+
setup(b, { expose: _ }) {
|
|
58
|
+
const e = b, n = B(), r = x(), v = g(() => ({
|
|
59
|
+
placeholder: e.placeholder,
|
|
60
|
+
disabled: e.disabled,
|
|
61
|
+
...e.field || {},
|
|
62
|
+
bordered: e.bordered ? !1 : P(e.field?.bordered) ? !0 : e.field?.bordered
|
|
63
|
+
}));
|
|
64
|
+
return _({
|
|
68
65
|
focus: () => {
|
|
69
|
-
|
|
70
|
-
(e = t.value) == null || e.focus();
|
|
66
|
+
r.value?.focus();
|
|
71
67
|
},
|
|
72
68
|
blur: () => {
|
|
73
|
-
|
|
74
|
-
(e = t.value) == null || e.blur();
|
|
69
|
+
r.value?.blur();
|
|
75
70
|
},
|
|
76
71
|
request: () => {
|
|
77
|
-
|
|
78
|
-
(e = t.value) == null || e.request();
|
|
72
|
+
r.value?.request();
|
|
79
73
|
}
|
|
80
|
-
}), (
|
|
81
|
-
default:
|
|
82
|
-
|
|
74
|
+
}), (i, A) => (F(), S($, a(s(o(c)(e, ["field", "placeholder", "disabled"]))), p({
|
|
75
|
+
default: d(() => [
|
|
76
|
+
k(o(N), C(v.value, {
|
|
83
77
|
ref_key: "selectRef",
|
|
84
|
-
ref:
|
|
85
|
-
}),
|
|
86
|
-
|
|
87
|
-
name:
|
|
88
|
-
fn:
|
|
89
|
-
|
|
78
|
+
ref: r
|
|
79
|
+
}), p({ _: 2 }, [
|
|
80
|
+
u(o(c)(n, o(m)), (h, l) => ({
|
|
81
|
+
name: l,
|
|
82
|
+
fn: d((t) => [
|
|
83
|
+
f(i.$slots, l, a(s(t || {})))
|
|
90
84
|
])
|
|
91
85
|
}))
|
|
92
86
|
]), 1040)
|
|
93
87
|
]),
|
|
94
88
|
_: 2
|
|
95
89
|
}, [
|
|
96
|
-
|
|
97
|
-
name:
|
|
98
|
-
fn:
|
|
99
|
-
|
|
90
|
+
u(o(q)(n, o(m)), (h, l) => ({
|
|
91
|
+
name: l,
|
|
92
|
+
fn: d((t) => [
|
|
93
|
+
f(i.$slots, l, a(s(t || {})))
|
|
100
94
|
])
|
|
101
95
|
}))
|
|
102
96
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x, ref as S, computed as _, createBlock as F, openBlock as k, normalizeProps as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as _, createBlock as F, openBlock as k, normalizeProps as s, guardReactiveProps as n, unref as l, createSlots as u, withCtx as i, createVNode as R, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as m, pick as A } from "lodash-unified";
|
|
@@ -54,50 +54,43 @@ const E = /* @__PURE__ */ B({
|
|
|
54
54
|
disabled: { type: Boolean, default: void 0 }
|
|
55
55
|
},
|
|
56
56
|
setup(v, { expose: h }) {
|
|
57
|
-
const { Text: g } = P,
|
|
57
|
+
const { Text: g } = P, p = x(), y = v, o = S();
|
|
58
58
|
return h({
|
|
59
59
|
focus: (e) => {
|
|
60
|
-
|
|
61
|
-
(a = l.value) == null || a.focus(e);
|
|
60
|
+
o.value?.focus(e);
|
|
62
61
|
},
|
|
63
62
|
blur: () => {
|
|
64
|
-
|
|
65
|
-
(e = l.value) == null || e.blur();
|
|
63
|
+
o.value?.blur();
|
|
66
64
|
},
|
|
67
|
-
setSelectionRange: (e,
|
|
68
|
-
|
|
69
|
-
(o = l.value) == null || o.setSelectionRange(e, a, r);
|
|
65
|
+
setSelectionRange: (e, d, a) => {
|
|
66
|
+
o.value?.setSelectionRange(e, d, a);
|
|
70
67
|
},
|
|
71
68
|
select: () => {
|
|
72
|
-
|
|
73
|
-
(e = l.value) == null || e.select();
|
|
69
|
+
o.value?.select();
|
|
74
70
|
},
|
|
75
|
-
input: _(() =>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}), (e, a) => (k(), F(N, n(i(t(m)(y, ["field", "disabled", "placeholder"]))), u({
|
|
80
|
-
default: p(() => [
|
|
81
|
-
R(t(g), C({
|
|
71
|
+
input: _(() => o.value?.input)
|
|
72
|
+
}), (e, d) => (k(), F(N, s(n(l(m)(y, ["field", "disabled", "placeholder"]))), u({
|
|
73
|
+
default: i(() => [
|
|
74
|
+
R(l(g), C({
|
|
82
75
|
ref_key: "inputRef",
|
|
83
|
-
ref:
|
|
76
|
+
ref: o,
|
|
84
77
|
disabled: e.disabled,
|
|
85
78
|
placeholder: e.placeholder
|
|
86
79
|
}, e.field), u({ _: 2 }, [
|
|
87
|
-
f(
|
|
88
|
-
name:
|
|
89
|
-
fn:
|
|
90
|
-
c(e.$slots,
|
|
80
|
+
f(l(m)(p, l(b)), (a, t) => ({
|
|
81
|
+
name: t,
|
|
82
|
+
fn: i((r) => [
|
|
83
|
+
c(e.$slots, t, s(n(r || {})))
|
|
91
84
|
])
|
|
92
85
|
}))
|
|
93
86
|
]), 1040, ["disabled", "placeholder"])
|
|
94
87
|
]),
|
|
95
88
|
_: 2
|
|
96
89
|
}, [
|
|
97
|
-
f(
|
|
98
|
-
name:
|
|
99
|
-
fn:
|
|
100
|
-
c(e.$slots,
|
|
90
|
+
f(l(A)(p, l(b)), (a, t) => ({
|
|
91
|
+
name: t,
|
|
92
|
+
fn: i((r) => [
|
|
93
|
+
c(e.$slots, t, s(n(r || {})))
|
|
101
94
|
])
|
|
102
95
|
}))
|
|
103
96
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as e, createSlots as n, withCtx as d, createVNode as k, mergeProps as P, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as S } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as u, pick as w } from "lodash-unified";
|
|
@@ -57,35 +57,33 @@ const z = /* @__PURE__ */ B({
|
|
|
57
57
|
const { Text: h } = S, p = _(), v = c, a = g();
|
|
58
58
|
return b({
|
|
59
59
|
focus: () => {
|
|
60
|
-
|
|
61
|
-
(e = a.value) == null || e.focus();
|
|
60
|
+
a.value?.focus();
|
|
62
61
|
},
|
|
63
62
|
blur: () => {
|
|
64
|
-
|
|
65
|
-
(e = a.value) == null || e.blur();
|
|
63
|
+
a.value?.blur();
|
|
66
64
|
}
|
|
67
|
-
}), (
|
|
65
|
+
}), (o, R) => (F(), x(C, t(s(e(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
68
66
|
default: d(() => [
|
|
69
|
-
k(
|
|
67
|
+
k(e(h).Password, P({
|
|
70
68
|
ref_key: "inputRef",
|
|
71
69
|
ref: a,
|
|
72
|
-
disabled:
|
|
73
|
-
placeholder:
|
|
74
|
-
},
|
|
75
|
-
i(
|
|
70
|
+
disabled: o.disabled,
|
|
71
|
+
placeholder: o.placeholder
|
|
72
|
+
}, o.field), n({ _: 2 }, [
|
|
73
|
+
i(e(u)(p, e(m)), (y, l) => ({
|
|
76
74
|
name: l,
|
|
77
75
|
fn: d((r) => [
|
|
78
|
-
f(
|
|
76
|
+
f(o.$slots, l, t(s(r || {})))
|
|
79
77
|
])
|
|
80
78
|
}))
|
|
81
79
|
]), 1040, ["disabled", "placeholder"])
|
|
82
80
|
]),
|
|
83
81
|
_: 2
|
|
84
82
|
}, [
|
|
85
|
-
i(
|
|
83
|
+
i(e(w)(p, e(m)), (y, l) => ({
|
|
86
84
|
name: l,
|
|
87
85
|
fn: d((r) => [
|
|
88
|
-
f(
|
|
86
|
+
f(o.$slots, l, t(s(r || {})))
|
|
89
87
|
])
|
|
90
88
|
}))
|
|
91
89
|
]), 1040));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, useSlots as c, ref as b, computed as x, createBlock as h, openBlock as v, normalizeProps as a, guardReactiveProps as r, unref as t, createSlots as y, withCtx as s, createVNode as B, mergeProps as A, renderList as g, renderSlot as _ } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
const $ = /* @__PURE__ */
|
|
3
|
+
import { ApField as F } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as k } from "lodash-unified";
|
|
5
|
+
import C from "../../item/index.vue.mjs";
|
|
6
|
+
const $ = /* @__PURE__ */ m({
|
|
7
7
|
name: "ApFormItemTextArea",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -51,24 +51,19 @@ const $ = /* @__PURE__ */ c({
|
|
|
51
51
|
placeholder: {},
|
|
52
52
|
disabled: { type: Boolean, default: void 0 }
|
|
53
53
|
},
|
|
54
|
-
setup(
|
|
55
|
-
const { TextArea:
|
|
56
|
-
return
|
|
54
|
+
setup(d, { expose: i }) {
|
|
55
|
+
const { TextArea: n } = F, p = c(), u = d, l = b();
|
|
56
|
+
return i({
|
|
57
57
|
focus: (e) => {
|
|
58
|
-
|
|
59
|
-
(o = l.value) == null || o.focus(e);
|
|
58
|
+
l.value?.focus(e);
|
|
60
59
|
},
|
|
61
60
|
blur: () => {
|
|
62
|
-
|
|
63
|
-
(e = l.value) == null || e.blur();
|
|
61
|
+
l.value?.blur();
|
|
64
62
|
},
|
|
65
|
-
resizableTextArea:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}), (e, o) => (y(), v(S, r(t(s(C)(f, ["field", "disabled", "placeholder"]))), B({
|
|
70
|
-
default: d(() => [
|
|
71
|
-
A(s(p), g({
|
|
63
|
+
resizableTextArea: x(() => l.value?.resizableTextArea)
|
|
64
|
+
}), (e, P) => (v(), h(C, a(r(t(k)(u, ["field", "disabled", "placeholder"]))), y({
|
|
65
|
+
default: s(() => [
|
|
66
|
+
B(t(n), A({
|
|
72
67
|
ref_key: "textAreaRef",
|
|
73
68
|
ref: l,
|
|
74
69
|
disabled: e.disabled,
|
|
@@ -77,10 +72,10 @@ const $ = /* @__PURE__ */ c({
|
|
|
77
72
|
]),
|
|
78
73
|
_: 2
|
|
79
74
|
}, [
|
|
80
|
-
|
|
81
|
-
name:
|
|
82
|
-
fn:
|
|
83
|
-
|
|
75
|
+
g(p, (z, o) => ({
|
|
76
|
+
name: o,
|
|
77
|
+
fn: s((f) => [
|
|
78
|
+
_(e.$slots, o, a(r(f || {})))
|
|
84
79
|
])
|
|
85
80
|
}))
|
|
86
81
|
]), 1040));
|