@aplus-frontend/ui 6.26.1 → 6.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
- package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
- package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
- package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
- package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
- package/es/src/ag-grid/index.vue.mjs +251 -268
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
- package/es/src/ag-grid/renderer/date-range.mjs +11 -12
- package/es/src/ag-grid/renderer/date.mjs +12 -13
- package/es/src/ag-grid/renderer/radio.mjs +9 -10
- package/es/src/ag-grid/renderer/select.mjs +10 -17
- package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
- package/es/src/ap-action/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
- package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
- package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
- package/es/src/ap-button/utils/index.mjs +27 -28
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
- package/es/src/ap-descriptions/formatter/index.mjs +60 -61
- package/es/src/ap-descriptions/helper.mjs +6 -6
- package/es/src/ap-download/ap-download.vue.mjs +42 -46
- package/es/src/ap-download/hooks/index.mjs +13 -13
- package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
- package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
- package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
- package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
- package/es/src/ap-field/date/index.vue.mjs +66 -68
- package/es/src/ap-field/date-range/index.vue.mjs +99 -107
- package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
- package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
- package/es/src/ap-field/hooks/use-options.mjs +11 -11
- package/es/src/ap-field/number/helper.mjs +17 -17
- package/es/src/ap-field/number/index.vue.mjs +2 -4
- package/es/src/ap-field/radio/index.vue.mjs +38 -42
- package/es/src/ap-field/radio/read.vue2.mjs +12 -13
- package/es/src/ap-field/rate/index.vue.mjs +23 -25
- package/es/src/ap-field/segmented/index.vue.mjs +38 -39
- package/es/src/ap-field/select/index.vue.mjs +90 -107
- package/es/src/ap-field/select/read.vue2.mjs +13 -20
- package/es/src/ap-field/select/use-select-options.mjs +24 -25
- package/es/src/ap-field/slider/index.vue.mjs +28 -30
- package/es/src/ap-field/switch/index.vue.mjs +38 -39
- package/es/src/ap-field/text/index.vue2.mjs +43 -52
- package/es/src/ap-field/text/password.vue.mjs +20 -22
- package/es/src/ap-field/text-area/index.vue.mjs +25 -31
- package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
- package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
- package/es/src/ap-field/tree-select/use-request.mjs +40 -41
- package/es/src/ap-form/ap-form.vue2.mjs +127 -142
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
- package/es/src/ap-form/hooks/use-watch.mjs +25 -26
- package/es/src/ap-form/item/index.vue.mjs +76 -81
- package/es/src/ap-form/item-group/index.vue.mjs +20 -20
- package/es/src/ap-form/items/date/index.vue.mjs +18 -21
- package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +2 -4
- package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/es/src/ap-form/items/select/index.vue.mjs +30 -36
- package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
- package/es/src/ap-form/items/text/password.vue.mjs +12 -14
- package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
- package/es/src/ap-form/list/index.vue.mjs +26 -26
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
- package/es/src/ap-form/provider/index.vue.mjs +24 -24
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/es/src/ap-form/search-form/index.vue.mjs +96 -103
- package/es/src/ap-form/search-form/utils.mjs +17 -17
- package/es/src/ap-form/set/index.vue.mjs +16 -20
- package/es/src/ap-form/utils/get.mjs +11 -11
- package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
- package/es/src/ap-grid/editable/index.vue.mjs +102 -116
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
- package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
- package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
- package/es/src/ap-grid/index.vue.mjs +309 -334
- package/es/src/ap-grid/utils/col.mjs +78 -81
- package/es/src/ap-grid/utils/editable.mjs +17 -18
- package/es/src/ap-grid/utils/renderer.mjs +7 -11
- package/es/src/ap-grid/utils/table.mjs +45 -46
- package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
- package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
- package/es/src/ap-list/index.vue.mjs +120 -131
- package/es/src/ap-modal/utils/createModal.mjs +60 -67
- package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
- package/es/src/ap-modal/utils/methods.mjs +17 -22
- package/es/src/ap-modal/utils/util.mjs +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +114 -127
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
- package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
- package/es/src/ap-table/ap-table.vue2.mjs +270 -303
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
- package/es/src/ap-table/components/setting/utils.mjs +44 -46
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
- package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
- package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
- package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
- package/es/src/ap-table/utils.mjs +123 -130
- package/es/src/ap-upload/apUpload.vue.mjs +43 -46
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
- package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
- package/es/src/ap-upload/hooks/useOss.mjs +35 -35
- package/es/src/ap-upload/utils/accept.mjs +37 -38
- package/es/src/ap-upload/utils/returnData.mjs +14 -14
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
- package/es/src/business/ap-appendix/utils/index.mjs +13 -13
- package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
- package/es/src/business/ap-copy/ApCopy.mjs +38 -39
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
- package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
- package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
- package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
- package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
- package/es/src/business/ap-keep-alive/hook.mjs +14 -20
- package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
- package/es/src/business/ap-keep-alive/utils.mjs +25 -26
- package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
- package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
- package/es/src/business/ap-summary/utils.mjs +23 -29
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
- package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
- package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
- package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
- package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
- package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
- package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
- package/es/src/business/ap-value-select-card/utils.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
- package/es/src/business/batch-input-group/index.vue.mjs +113 -127
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
- package/es/src/business/hooks/useGridRefresh.mjs +11 -12
- package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
- package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
- package/es/src/business/hooks/usePageListApTable.mjs +27 -32
- package/es/src/business/hooks/useTableRefresh.mjs +39 -41
- package/es/src/check-card/index.vue2.mjs +51 -56
- package/es/src/config-provider/config-provider.mjs +12 -12
- package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
- package/es/src/config-provider/hooks/use-locale.mjs +17 -17
- package/es/src/editable-table/form-item.vue.mjs +82 -88
- package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
- package/es/src/editable-table/index.vue.mjs +100 -113
- package/es/src/editable-table/utils.mjs +88 -95
- package/es/src/hooks/useControllableValue.mjs +18 -18
- package/es/src/hooks/useResize.mjs +16 -16
- package/es/src/mask/index.vue.mjs +11 -11
- package/es/src/resize-observer/index.vue.mjs +20 -22
- package/es/src/scroll-bar/index.vue.mjs +2 -8
- package/es/src/scroll-bar/internal.vue.mjs +59 -65
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
- package/es/src/scroll-view/index.vue.mjs +40 -42
- package/es/src/splitter/Splitter.vue2.mjs +48 -52
- package/es/src/splitter/hooks/useItems.mjs +14 -15
- package/es/src/splitter/hooks/useResize.mjs +31 -34
- package/es/src/splitter/hooks/useSizes.mjs +34 -34
- package/es/src/text/index.vue.mjs +24 -24
- package/es/src/utils/config-provider-preset.mjs +17 -21
- package/es/src/utils/copy.mjs +9 -9
- package/es/src/utils/index.mjs +43 -43
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/renderer/checkbox.js +1 -1
- package/lib/src/ag-grid/renderer/date-range.js +1 -1
- package/lib/src/ag-grid/renderer/date.js +1 -1
- package/lib/src/ag-grid/renderer/radio.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/renderer/tree-select.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/hooks/use-options.js +1 -1
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-form/utils/get.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-modal/utils/methods.js +1 -1
- package/lib/src/ap-modal/utils/util.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/ap-upload/utils/accept.js +1 -1
- package/lib/src/ap-upload/utils/returnData.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/utils/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/hook.js +1 -1
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/utils.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/useGridRefresh.js +1 -1
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/hooks/useResize.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/index.vue.js +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResize.js +1 -1
- package/lib/src/splitter/hooks/useSizes.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/copy.js +1 -1
- package/lib/src/utils/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +7 -7
- package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
- package/theme/index.css +7 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as z, useSlots as D, ref as T, unref as o, computed as g, createVNode as
|
|
1
|
+
import { defineComponent as z, useSlots as D, ref as T, unref as o, computed as g, createVNode as u, Fragment as s, createBlock as m, createElementBlock as E, openBlock as f, resolveDynamicComponent as K, mergeProps as k, createSlots as v, renderList as V, withCtx as p, renderSlot as B, normalizeProps as b, guardReactiveProps as w } from "vue";
|
|
2
2
|
import { Switch as A, Popconfirm as L } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, isFunction as R, omit as P } from "lodash-unified";
|
|
5
|
-
import { isDef as
|
|
5
|
+
import { isDef as d } from "@fruits-chain/utils";
|
|
6
6
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
7
7
|
const O = /* @__PURE__ */ z({
|
|
8
8
|
name: "ApFieldSwitch",
|
|
@@ -53,69 +53,68 @@ const O = /* @__PURE__ */ z({
|
|
|
53
53
|
setup(S, {
|
|
54
54
|
emit: _
|
|
55
55
|
}) {
|
|
56
|
-
const
|
|
57
|
-
value:
|
|
58
|
-
updateValue:
|
|
56
|
+
const i = D(), e = S, F = _, {
|
|
57
|
+
value: t,
|
|
58
|
+
updateValue: r
|
|
59
59
|
} = j(e, F, {
|
|
60
60
|
valuePropName: "checked"
|
|
61
|
-
}),
|
|
62
|
-
async function
|
|
63
|
-
if (!
|
|
64
|
-
if (!
|
|
65
|
-
|
|
61
|
+
}), c = T(!1);
|
|
62
|
+
async function C(n, a) {
|
|
63
|
+
if (!d(e.confirm)) {
|
|
64
|
+
if (!d(e.onAction)) {
|
|
65
|
+
r(n);
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
c.value = !0;
|
|
69
69
|
try {
|
|
70
|
-
await e.onAction(n,
|
|
70
|
+
await e.onAction(n, a) && r(n);
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
c.value = !1;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
async function N() {
|
|
77
|
-
const n = o(
|
|
78
|
-
if (!
|
|
79
|
-
|
|
77
|
+
const n = o(t) === e.checkedValue ? e.unCheckedValue : e.checkedValue;
|
|
78
|
+
if (!d(e.onAction)) {
|
|
79
|
+
r(n);
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
await e.onAction(n) &&
|
|
82
|
+
await e.onAction(n) && r(n);
|
|
83
83
|
}
|
|
84
84
|
const $ = g(() => {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return (n, u) => n.mode === "read" ? (h(), k(K($.value), {
|
|
85
|
+
const n = o(t);
|
|
86
|
+
return M(n) ? u(s, null, [e.emptyText]) : n === e.checkedValue ? u(s, null, [e.checkedChildren || i.checkedChildren?.() || `${e.checkedValue}`]) : u(s, null, [e.unCheckedChildren || i.unCheckedChildren?.() || `${e.unCheckedValue}`]);
|
|
87
|
+
}), U = g(() => d(e.confirm) ? R(e.confirm) ? e.confirm(o(t)) : e.confirm : {});
|
|
88
|
+
return (n, a) => n.mode === "read" ? (f(), m(K($.value), {
|
|
90
89
|
key: 0
|
|
91
|
-
})) : (
|
|
90
|
+
})) : (f(), E(s, {
|
|
92
91
|
key: 1
|
|
93
|
-
}, [!o(
|
|
92
|
+
}, [!o(d)(n.confirm) || n.disabled ? (f(), m(o(A), k({
|
|
94
93
|
key: 0
|
|
95
94
|
}, o(P)(e, "onUpdate:checked"), {
|
|
96
|
-
checked: o(
|
|
97
|
-
loading: n.loading ??
|
|
98
|
-
onClick:
|
|
95
|
+
checked: o(t),
|
|
96
|
+
loading: n.loading ?? c.value,
|
|
97
|
+
onClick: C
|
|
99
98
|
}), v({
|
|
100
99
|
_: 2
|
|
101
|
-
}, [V(
|
|
102
|
-
name:
|
|
103
|
-
fn:
|
|
104
|
-
}))]), 1040, ["checked", "loading"])) : (
|
|
100
|
+
}, [V(i, (y, l) => ({
|
|
101
|
+
name: l,
|
|
102
|
+
fn: p((h) => [B(n.$slots, l, b(w(h || {})))])
|
|
103
|
+
}))]), 1040, ["checked", "loading"])) : (f(), m(o(L), k({
|
|
105
104
|
key: 1,
|
|
106
|
-
disabled:
|
|
105
|
+
disabled: c.value
|
|
107
106
|
}, U.value, {
|
|
108
107
|
onConfirm: N
|
|
109
108
|
}), {
|
|
110
|
-
default:
|
|
111
|
-
checked: o(
|
|
112
|
-
loading: n.loading ??
|
|
113
|
-
onClick:
|
|
109
|
+
default: p(() => [u(o(A), k(o(P)(e, "onUpdate:checked"), {
|
|
110
|
+
checked: o(t),
|
|
111
|
+
loading: n.loading ?? c.value,
|
|
112
|
+
onClick: C
|
|
114
113
|
}), v({
|
|
115
114
|
_: 2
|
|
116
|
-
}, [V(
|
|
117
|
-
name:
|
|
118
|
-
fn:
|
|
115
|
+
}, [V(i, (y, l) => ({
|
|
116
|
+
name: l,
|
|
117
|
+
fn: p((h) => [B(n.$slots, l, b(w(h || {})))])
|
|
119
118
|
}))]), 1040, ["checked", "loading"])]),
|
|
120
119
|
_: 3
|
|
121
120
|
}, 16, ["disabled"]))], 64));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Input as
|
|
1
|
+
import { isVNode as g, defineComponent as C, ref as S, useSlots as _, createVNode as i, mergeProps as V, unref as p, computed as w, createBlock as R, openBlock as T, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { Input as U } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import { useDefaultPlaceholder as
|
|
6
|
-
import { useControllableValue as
|
|
7
|
-
function
|
|
8
|
-
return typeof
|
|
4
|
+
import { omit as z } from "lodash-unified";
|
|
5
|
+
import { useDefaultPlaceholder as F } from "../hooks/use-default-placeholder.mjs";
|
|
6
|
+
import { useControllableValue as M } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
function N(n) {
|
|
8
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !g(n);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const K = /* @__PURE__ */ C({
|
|
11
11
|
name: "ApFieldText",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -92,54 +92,45 @@ const G = /* @__PURE__ */ V({
|
|
|
92
92
|
beforeInput: {}
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:value"],
|
|
95
|
-
setup(
|
|
96
|
-
expose:
|
|
97
|
-
emit:
|
|
95
|
+
setup(n, {
|
|
96
|
+
expose: d,
|
|
97
|
+
emit: c
|
|
98
98
|
}) {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
(
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
value:
|
|
113
|
-
|
|
114
|
-
} = P(o, h), g = O("Text", o);
|
|
115
|
-
function C(e) {
|
|
116
|
-
var d, c, f;
|
|
117
|
-
const n = e.target.value || "", r = o.beforeInput ? (d = o.beforeInput) == null ? void 0 : d.call(o, n) : n, l = (f = (c = u.value) == null ? void 0 : c.$el) == null ? void 0 : f.querySelector("input");
|
|
118
|
-
l && (l.value = r), I(r);
|
|
99
|
+
const t = S(), l = _(), f = (o) => {
|
|
100
|
+
t.value?.focus(o);
|
|
101
|
+
}, m = () => {
|
|
102
|
+
t.value?.blur();
|
|
103
|
+
}, y = (o, u, a) => {
|
|
104
|
+
t.value?.setSelectionRange(o, u, a);
|
|
105
|
+
}, x = () => {
|
|
106
|
+
t.value?.select();
|
|
107
|
+
}, v = c, e = n, {
|
|
108
|
+
value: r,
|
|
109
|
+
updateValue: B
|
|
110
|
+
} = M(e, v), b = F("Text", e);
|
|
111
|
+
function h(o) {
|
|
112
|
+
const u = o.target.value || "", a = e.beforeInput ? e.beforeInput?.(u) : u, s = t.value?.$el?.querySelector("input");
|
|
113
|
+
s && (s.value = a), B(a);
|
|
119
114
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}) : s("span", null, [o.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), p(i) || o.emptyText, o.suffix || ((n = t == null ? void 0 : t.suffix) == null ? void 0 : n.call(t))]);
|
|
115
|
+
function I() {
|
|
116
|
+
return e.mode === "edit" ? i(U, V(z(e, ["mode", "emptyText", "value", "onUpdate:value", "beforeInput"]), {
|
|
117
|
+
placeholder: p(b),
|
|
118
|
+
value: p(r),
|
|
119
|
+
onInput: h,
|
|
120
|
+
ref: t
|
|
121
|
+
}), N(l) ? l : {
|
|
122
|
+
default: () => [l]
|
|
123
|
+
}) : i("span", null, [e.prefix || l?.prefix?.(), p(r) || e.emptyText, e.suffix || l?.suffix?.()]);
|
|
130
124
|
}
|
|
131
|
-
return
|
|
132
|
-
focus:
|
|
133
|
-
blur:
|
|
134
|
-
setSelectionRange:
|
|
135
|
-
select:
|
|
136
|
-
input:
|
|
137
|
-
|
|
138
|
-
return (e = u.value) == null ? void 0 : e.input;
|
|
139
|
-
})
|
|
140
|
-
}), (e, n) => (z(), U(F(S())));
|
|
125
|
+
return d({
|
|
126
|
+
focus: f,
|
|
127
|
+
blur: m,
|
|
128
|
+
setSelectionRange: y,
|
|
129
|
+
select: x,
|
|
130
|
+
input: w(() => t.value?.input)
|
|
131
|
+
}), (o, u) => (T(), R(j(I())));
|
|
141
132
|
}
|
|
142
133
|
});
|
|
143
134
|
export {
|
|
144
|
-
|
|
135
|
+
K as default
|
|
145
136
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isVNode as x, defineComponent as h, useSlots as C, ref as g, unref as i, createVNode as
|
|
1
|
+
import { isVNode as x, defineComponent as h, useSlots as C, ref as g, unref as i, createVNode as e, mergeProps as w, Fragment as P, createBlock as U, openBlock as V, resolveDynamicComponent as _ } from "vue";
|
|
2
2
|
import { Input as S, Space as T } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { omit as I } from "lodash-unified";
|
|
5
5
|
import { EyeOutlined as O, EyeInvisibleOutlined as j } from "@ant-design/icons-vue";
|
|
6
6
|
import { useDefaultPlaceholder as k } from "../hooks/use-default-placeholder.mjs";
|
|
7
7
|
import { useControllableValue as d } from "../../hooks/useControllableValue.mjs";
|
|
8
|
-
function E(
|
|
9
|
-
return typeof
|
|
8
|
+
function E(t) {
|
|
9
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !x(t);
|
|
10
10
|
}
|
|
11
11
|
const G = /* @__PURE__ */ h({
|
|
12
12
|
name: "ApFieldTextPassword",
|
|
@@ -105,52 +105,50 @@ const G = /* @__PURE__ */ h({
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
emits: ["update:value", "update:visible"],
|
|
108
|
-
setup(
|
|
108
|
+
setup(t, {
|
|
109
109
|
expose: c,
|
|
110
110
|
emit: f
|
|
111
111
|
}) {
|
|
112
|
-
const s = f,
|
|
112
|
+
const s = f, o = t, a = C(), u = g(), {
|
|
113
113
|
value: m,
|
|
114
114
|
updateValue: y
|
|
115
|
-
} = d(
|
|
115
|
+
} = d(o, s), v = k("TextPassword", o), {
|
|
116
116
|
value: b,
|
|
117
117
|
updateValue: r
|
|
118
|
-
} = d(
|
|
118
|
+
} = d(o, s, {
|
|
119
119
|
valuePropName: "visible"
|
|
120
120
|
});
|
|
121
121
|
function B() {
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
return
|
|
122
|
+
const n = i(m), l = i(b);
|
|
123
|
+
if (o.mode === "edit")
|
|
124
|
+
return e(S.Password, w(I(o, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
|
|
125
125
|
placeholder: i(v),
|
|
126
|
-
value:
|
|
126
|
+
value: n,
|
|
127
127
|
"onUpdate:value": y,
|
|
128
|
-
visible:
|
|
128
|
+
visible: l,
|
|
129
129
|
"onUpdate:visible": r,
|
|
130
130
|
ref: u
|
|
131
131
|
}), E(a) ? a : {
|
|
132
132
|
default: () => [a]
|
|
133
133
|
});
|
|
134
|
-
let p =
|
|
135
|
-
return
|
|
136
|
-
default: () => [
|
|
134
|
+
let p = e(P, null, [o.emptyText]);
|
|
135
|
+
return n && (p = e(T, null, {
|
|
136
|
+
default: () => [e("span", null, [l ? n : "********"]), e("span", {
|
|
137
137
|
style: {
|
|
138
138
|
cursor: "pointer"
|
|
139
139
|
},
|
|
140
|
-
onClick: () => r(!
|
|
141
|
-
}, [
|
|
140
|
+
onClick: () => r(!l)
|
|
141
|
+
}, [l ? e(O, null, null) : e(j, null, null)])]
|
|
142
142
|
})), p;
|
|
143
143
|
}
|
|
144
144
|
return c({
|
|
145
145
|
focus: () => {
|
|
146
|
-
|
|
147
|
-
(e = u.value) == null || e.focus();
|
|
146
|
+
u.value?.focus();
|
|
148
147
|
},
|
|
149
148
|
blur: () => {
|
|
150
|
-
|
|
151
|
-
(e = u.value) == null || e.blur();
|
|
149
|
+
u.value?.blur();
|
|
152
150
|
}
|
|
153
|
-
}), (
|
|
151
|
+
}), (n, l) => (V(), U(_(B())));
|
|
154
152
|
}
|
|
155
153
|
});
|
|
156
154
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isNil as
|
|
1
|
+
import { defineComponent as v, ref as B, computed as b, createElementBlock as h, createBlock as I, openBlock as p, normalizeClass as A, unref as e, toDisplayString as C, mergeProps as g } from "vue";
|
|
2
|
+
import { isNil as z, omit as T } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { Input as
|
|
6
|
-
import { useDefaultPlaceholder as
|
|
7
|
-
import { useControllableValue as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
const
|
|
5
|
+
import { Input as k } from "@aplus-frontend/antdv";
|
|
6
|
+
import { useDefaultPlaceholder as w } from "../hooks/use-default-placeholder.mjs";
|
|
7
|
+
import { useControllableValue as R } from "../../hooks/useControllableValue.mjs";
|
|
8
|
+
import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const D = /* @__PURE__ */ v({
|
|
10
10
|
name: "ApFieldTextArea",
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -60,38 +60,32 @@ const O = /* @__PURE__ */ h({
|
|
|
60
60
|
beforeInput: {}
|
|
61
61
|
},
|
|
62
62
|
emits: ["update:value"],
|
|
63
|
-
setup(
|
|
64
|
-
const
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
u && (u.value = r), x(r);
|
|
63
|
+
setup(s, { expose: i, emit: d }) {
|
|
64
|
+
const t = B(), a = s, c = d, { value: l, updateValue: f } = R(a, c), { b: m } = _("field-text-area"), y = w("TextArea", a);
|
|
65
|
+
function x(o) {
|
|
66
|
+
const n = o.target.value || "", r = a.beforeInput ? a.beforeInput?.(n) : n, u = t.value?.$el?.querySelector("textarea");
|
|
67
|
+
u && (u.value = r), f(r);
|
|
69
68
|
}
|
|
70
|
-
return
|
|
71
|
-
focus: (
|
|
72
|
-
|
|
73
|
-
(a = l.value) == null || a.focus(e);
|
|
69
|
+
return i({
|
|
70
|
+
focus: (o) => {
|
|
71
|
+
t.value?.focus(o);
|
|
74
72
|
},
|
|
75
73
|
blur: () => {
|
|
76
|
-
|
|
77
|
-
(e = l.value) == null || e.blur();
|
|
74
|
+
t.value?.blur();
|
|
78
75
|
},
|
|
79
|
-
resizableTextArea:
|
|
80
|
-
|
|
81
|
-
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
82
|
-
})
|
|
83
|
-
}), (e, a) => e.mode === "read" ? (d(), C("span", {
|
|
76
|
+
resizableTextArea: b(() => t.value?.resizableTextArea)
|
|
77
|
+
}), (o, n) => o.mode === "read" ? (p(), h("span", {
|
|
84
78
|
key: 0,
|
|
85
|
-
class:
|
|
86
|
-
},
|
|
79
|
+
class: A(e(m)())
|
|
80
|
+
}, C(e(z)(e(l)) || e(l) === "" ? o.emptyText : e(l)), 3)) : (p(), I(e(k).TextArea, g({ key: 1 }, e(T)(a, ["onUpdate:value", "value", "beforeInput"]), {
|
|
87
81
|
ref_key: "textAreaRef",
|
|
88
|
-
ref:
|
|
89
|
-
placeholder:
|
|
90
|
-
value:
|
|
91
|
-
onInput:
|
|
82
|
+
ref: t,
|
|
83
|
+
placeholder: e(y),
|
|
84
|
+
value: e(l),
|
|
85
|
+
onInput: x
|
|
92
86
|
}), null, 16, ["placeholder", "value"]));
|
|
93
87
|
}
|
|
94
88
|
});
|
|
95
89
|
export {
|
|
96
|
-
|
|
90
|
+
D as default
|
|
97
91
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Space as
|
|
1
|
+
import { isVNode as F, defineComponent as L, useSlots as R, ref as _, computed as E, unref as e, createVNode as d, Fragment as g, createBlock as S, openBlock as v, resolveDynamicComponent as K, mergeProps as U, createSlots as z, renderList as M, withCtx as B, renderSlot as j, normalizeProps as q, guardReactiveProps as O } from "vue";
|
|
2
|
+
import { Space as $, Tag as H, TreeSelect as W, Spin as G } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isArray as
|
|
5
|
-
import { useRequest as
|
|
6
|
-
import { useControllableValue as
|
|
7
|
-
function
|
|
8
|
-
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !
|
|
4
|
+
import { isArray as J, omit as Q } from "lodash-unified";
|
|
5
|
+
import { useRequest as X } from "./use-request.mjs";
|
|
6
|
+
import { useControllableValue as Y } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
function w(r) {
|
|
8
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !F(r);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const de = /* @__PURE__ */ L({
|
|
11
11
|
name: "ApFieldTreeSelect",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -170,77 +170,73 @@ const ie = /* @__PURE__ */ E({
|
|
|
170
170
|
},
|
|
171
171
|
emits: ["update:value"],
|
|
172
172
|
setup(r, {
|
|
173
|
-
expose:
|
|
174
|
-
emit:
|
|
173
|
+
expose: C,
|
|
174
|
+
emit: x
|
|
175
175
|
}) {
|
|
176
|
-
const
|
|
177
|
-
value:
|
|
178
|
-
updateValue:
|
|
179
|
-
} =
|
|
180
|
-
treeData:
|
|
181
|
-
loading:
|
|
182
|
-
request:
|
|
183
|
-
} =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
for (const p of l) {
|
|
193
|
-
if (u.find((R) => R === p[L]) && o.push(p[f]), o.length === u.length)
|
|
176
|
+
const o = r, N = R(), T = x, p = _(), {
|
|
177
|
+
value: f,
|
|
178
|
+
updateValue: b
|
|
179
|
+
} = Y(o, T), {
|
|
180
|
+
treeData: c,
|
|
181
|
+
loading: m,
|
|
182
|
+
request: y
|
|
183
|
+
} = X(o), D = E(() => {
|
|
184
|
+
let t;
|
|
185
|
+
const u = e(f), i = J(u) ? u : [u].filter(Boolean);
|
|
186
|
+
if (!i.length)
|
|
187
|
+
return d(g, null, [o.emptyText]);
|
|
188
|
+
const n = [], s = o.fieldNames?.label || "label", P = o.fieldNames?.value || "value";
|
|
189
|
+
function h(a) {
|
|
190
|
+
for (const l of a) {
|
|
191
|
+
if (i.find((A) => A === l[P]) && n.push(l[s]), n.length === i.length)
|
|
194
192
|
return;
|
|
195
|
-
|
|
193
|
+
l.children?.length && h(l.children);
|
|
196
194
|
}
|
|
197
195
|
}
|
|
198
|
-
return
|
|
196
|
+
return h(e(c)), n.length ? n.length === 1 ? d("span", null, [n[0]]) : d($, {
|
|
199
197
|
size: 4
|
|
200
|
-
},
|
|
198
|
+
}, w(t = n.map((a, l) => d(H, {
|
|
201
199
|
style: "margin-right: 0px",
|
|
202
|
-
key: `${
|
|
203
|
-
},
|
|
204
|
-
default: () => [
|
|
205
|
-
}))) ?
|
|
206
|
-
default: () => [
|
|
207
|
-
}) : d(
|
|
200
|
+
key: `${a}-${l}`
|
|
201
|
+
}, w(a) ? a : {
|
|
202
|
+
default: () => [a]
|
|
203
|
+
}))) ? t : {
|
|
204
|
+
default: () => [t]
|
|
205
|
+
}) : d(g, null, [o.emptyText]);
|
|
208
206
|
});
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
(t = (e = s.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
207
|
+
function V() {
|
|
208
|
+
p.value?.focus?.();
|
|
212
209
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
215
|
-
(t = (e = s.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
210
|
+
function k() {
|
|
211
|
+
p.value?.blur?.();
|
|
216
212
|
}
|
|
217
|
-
function
|
|
218
|
-
return
|
|
213
|
+
function I(t) {
|
|
214
|
+
return y(t);
|
|
219
215
|
}
|
|
220
|
-
return
|
|
221
|
-
request:
|
|
222
|
-
focus:
|
|
223
|
-
blur:
|
|
224
|
-
}), (
|
|
216
|
+
return C({
|
|
217
|
+
request: y,
|
|
218
|
+
focus: V,
|
|
219
|
+
blur: k
|
|
220
|
+
}), (t, u) => t.mode === "read" ? (v(), S(K(D.value), {
|
|
225
221
|
key: 0
|
|
226
|
-
})) : (
|
|
222
|
+
})) : (v(), S(e(W), U({
|
|
227
223
|
key: 1
|
|
228
|
-
},
|
|
224
|
+
}, e(Q)(o, ["onUpdate:value", "value", "treeData", "loadData"]), {
|
|
229
225
|
ref_key: "treeSelectRef",
|
|
230
|
-
ref:
|
|
231
|
-
value:
|
|
232
|
-
"tree-data":
|
|
233
|
-
loading:
|
|
234
|
-
"load-data":
|
|
235
|
-
"onUpdate:value":
|
|
236
|
-
}),
|
|
226
|
+
ref: p,
|
|
227
|
+
value: e(f),
|
|
228
|
+
"tree-data": e(c),
|
|
229
|
+
loading: e(m),
|
|
230
|
+
"load-data": t.loadData ? I : void 0,
|
|
231
|
+
"onUpdate:value": e(b)
|
|
232
|
+
}), z({
|
|
237
233
|
_: 2
|
|
238
|
-
}, [
|
|
239
|
-
name:
|
|
240
|
-
fn:
|
|
241
|
-
})),
|
|
234
|
+
}, [M(N, (i, n) => ({
|
|
235
|
+
name: n,
|
|
236
|
+
fn: B((s) => [j(t.$slots, n, q(O(s || {})))])
|
|
237
|
+
})), e(m) ? {
|
|
242
238
|
name: "notFoundContent",
|
|
243
|
-
fn:
|
|
239
|
+
fn: B(() => [d(e(G), {
|
|
244
240
|
size: "small"
|
|
245
241
|
})]),
|
|
246
242
|
key: "0"
|
|
@@ -248,5 +244,5 @@ const ie = /* @__PURE__ */ E({
|
|
|
248
244
|
}
|
|
249
245
|
});
|
|
250
246
|
export {
|
|
251
|
-
|
|
247
|
+
de as default
|
|
252
248
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { isArray as
|
|
3
|
-
import { Space as
|
|
4
|
-
function
|
|
5
|
-
return typeof
|
|
1
|
+
import { isVNode as h, defineComponent as g, computed as B, createVNode as l, Fragment as c, createBlock as w, openBlock as x, resolveDynamicComponent as C } from "vue";
|
|
2
|
+
import { isArray as N } from "lodash-unified";
|
|
3
|
+
import { Space as S, Tag as T } from "@aplus-frontend/antdv";
|
|
4
|
+
function s(a) {
|
|
5
|
+
return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !h(a);
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const I = /* @__PURE__ */ g({
|
|
8
8
|
name: "ApFieldTreeSelectRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -147,36 +147,34 @@ const _ = /* @__PURE__ */ x({
|
|
|
147
147
|
type: Boolean
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
|
-
setup(
|
|
151
|
-
const e =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
for (const d of t) {
|
|
161
|
-
if (i.find((B) => B === d[g]) && o.push(d[h]), o.length === i.length)
|
|
150
|
+
setup(a) {
|
|
151
|
+
const e = a, u = B(() => {
|
|
152
|
+
let r;
|
|
153
|
+
const p = e.value, d = N(p) ? p : [p].filter(Boolean);
|
|
154
|
+
if (!d.length)
|
|
155
|
+
return l(c, null, [e.emptyText]);
|
|
156
|
+
const o = [], m = e.fieldNames?.label || "label", y = e.fieldNames?.value || "value";
|
|
157
|
+
function i(t) {
|
|
158
|
+
for (const n of t) {
|
|
159
|
+
if (d.find((f) => f === n[y]) && o.push(n[m]), o.length === d.length)
|
|
162
160
|
return;
|
|
163
|
-
|
|
161
|
+
n.children?.length && i(n.children);
|
|
164
162
|
}
|
|
165
163
|
}
|
|
166
|
-
return
|
|
164
|
+
return i(e.treeData), o.length ? o.length === 1 ? l("span", null, [o[0]]) : l(S, {
|
|
167
165
|
size: 4
|
|
168
|
-
},
|
|
166
|
+
}, s(r = o.map((t, n) => l(T, {
|
|
169
167
|
style: "margin-right: 0px",
|
|
170
|
-
key: `${t}-${
|
|
171
|
-
},
|
|
168
|
+
key: `${t}-${n}`
|
|
169
|
+
}, s(t) ? t : {
|
|
172
170
|
default: () => [t]
|
|
173
|
-
}))) ?
|
|
174
|
-
default: () => [
|
|
175
|
-
}) :
|
|
171
|
+
}))) ? r : {
|
|
172
|
+
default: () => [r]
|
|
173
|
+
}) : l(c, null, [e.emptyText]);
|
|
176
174
|
});
|
|
177
|
-
return (
|
|
175
|
+
return (r, p) => (x(), w(C(u.value)));
|
|
178
176
|
}
|
|
179
177
|
});
|
|
180
178
|
export {
|
|
181
|
-
|
|
179
|
+
I as default
|
|
182
180
|
};
|