@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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as m, ref as v, useSlots as b, computed as h, createBlock as y, openBlock as B, unref as t, mergeProps as C, createSlots as _, withCtx as x, renderSlot as g } from "vue";
|
|
2
|
+
import { omit as k } from "lodash-unified";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { Rate as
|
|
5
|
-
import { useControllableValue as
|
|
6
|
-
const D = /* @__PURE__ */
|
|
4
|
+
import { Rate as w } from "@aplus-frontend/antdv";
|
|
5
|
+
import { useControllableValue as R } from "../../hooks/useControllableValue.mjs";
|
|
6
|
+
const D = /* @__PURE__ */ m({
|
|
7
7
|
name: "ApFieldRate",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -31,30 +31,28 @@ const D = /* @__PURE__ */ v({
|
|
|
31
31
|
defaultValue: {}
|
|
32
32
|
},
|
|
33
33
|
emits: ["update:value"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
(t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
34
|
+
setup(o, { expose: l, emit: r }) {
|
|
35
|
+
const e = o, a = v(), u = r, n = b(), { value: d, updateValue: s } = R(e, u), f = h(() => e.mode === "read" ? !0 : e.disabled);
|
|
36
|
+
function c() {
|
|
37
|
+
a.value?.focus?.();
|
|
39
38
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
(t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
39
|
+
function i() {
|
|
40
|
+
a.value?.blur?.();
|
|
43
41
|
}
|
|
44
|
-
return
|
|
45
|
-
focus:
|
|
46
|
-
blur:
|
|
47
|
-
}), (
|
|
42
|
+
return l({
|
|
43
|
+
focus: c,
|
|
44
|
+
blur: i
|
|
45
|
+
}), (p, V) => (B(), y(t(w), C(t(k)(e, ["mode", "defaultValue"]), {
|
|
48
46
|
ref_key: "rateRef",
|
|
49
|
-
ref:
|
|
50
|
-
value:
|
|
51
|
-
disabled:
|
|
52
|
-
"onUpdate:value":
|
|
53
|
-
}),
|
|
54
|
-
|
|
47
|
+
ref: a,
|
|
48
|
+
value: t(d),
|
|
49
|
+
disabled: f.value,
|
|
50
|
+
"onUpdate:value": t(s)
|
|
51
|
+
}), _({ _: 2 }, [
|
|
52
|
+
n.character ? {
|
|
55
53
|
name: "character",
|
|
56
|
-
fn:
|
|
57
|
-
|
|
54
|
+
fn: x(() => [
|
|
55
|
+
g(p.$slots, "character")
|
|
58
56
|
]),
|
|
59
57
|
key: "0"
|
|
60
58
|
} : void 0
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { isFunction as
|
|
1
|
+
import { defineComponent as B, ref as C, useSlots as S, onMounted as h, computed as U, unref as t, createVNode as s, Fragment as a, createBlock as i, createElementBlock as V, openBlock as u, resolveDynamicComponent as _, mergeProps as N, withCtx as q, renderSlot as z, normalizeProps as F, guardReactiveProps as P } from "vue";
|
|
2
|
+
import { Spin as T, Segmented as O } from "@aplus-frontend/antdv";
|
|
3
|
+
import { isFunction as f, isUndefined as R, isString as w, isNumber as A, omit as D } from "lodash-unified";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import { useControllableValue as
|
|
7
|
-
const
|
|
5
|
+
import E from "../hooks/use-options.mjs";
|
|
6
|
+
import { useControllableValue as M } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const K = /* @__PURE__ */ B({
|
|
8
8
|
name: "ApFieldSegmented",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -40,53 +40,52 @@ const L = /* @__PURE__ */ C({
|
|
|
40
40
|
request: {}
|
|
41
41
|
},
|
|
42
42
|
emits: ["update:value"],
|
|
43
|
-
setup(
|
|
44
|
-
emit:
|
|
43
|
+
setup(c, {
|
|
44
|
+
emit: v
|
|
45
45
|
}) {
|
|
46
|
-
const o =
|
|
47
|
-
options:
|
|
48
|
-
updateOptions:
|
|
49
|
-
} =
|
|
50
|
-
value:
|
|
46
|
+
const o = c, {
|
|
47
|
+
options: p,
|
|
48
|
+
updateOptions: y
|
|
49
|
+
} = E(o), g = v, {
|
|
50
|
+
value: d,
|
|
51
51
|
updateValue: b
|
|
52
|
-
} =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
} = M(o, g), r = C(!1), k = S();
|
|
53
|
+
h(() => {
|
|
54
|
+
f(o.request) && (r.value = !0, o.request().then((e) => y(e)).finally(() => {
|
|
55
|
+
r.value = !1;
|
|
56
56
|
}));
|
|
57
57
|
});
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})]) : u(a, null, [n || o.emptyText]);
|
|
58
|
+
const x = U(() => {
|
|
59
|
+
const e = t(d);
|
|
60
|
+
if (R(e))
|
|
61
|
+
return s(a, null, [o.emptyText]);
|
|
62
|
+
const l = t(p)?.find((m) => m === e || m?.value === e);
|
|
63
|
+
if (w(l) || A(l))
|
|
64
|
+
return s(a, null, [l]);
|
|
65
|
+
const n = l?.label || k.label;
|
|
66
|
+
return f(n) ? s(a, null, [n?.({
|
|
67
|
+
...l
|
|
68
|
+
})]) : s(a, null, [n || o.emptyText]);
|
|
70
69
|
});
|
|
71
|
-
return (e,
|
|
70
|
+
return (e, l) => r.value ? (u(), i(t(T), {
|
|
72
71
|
key: 0,
|
|
73
72
|
size: "small"
|
|
74
|
-
})) : (
|
|
73
|
+
})) : (u(), V(a, {
|
|
75
74
|
key: 1
|
|
76
|
-
}, [e.mode === "read" ? (
|
|
75
|
+
}, [e.mode === "read" ? (u(), i(_(x.value), {
|
|
77
76
|
key: 0
|
|
78
|
-
})) : (
|
|
77
|
+
})) : (u(), i(t(O), N({
|
|
79
78
|
key: 1
|
|
80
|
-
},
|
|
81
|
-
value:
|
|
82
|
-
options:
|
|
83
|
-
"onUpdate:value":
|
|
79
|
+
}, t(D)(o, ["onUpdate:value", "value", "defaultValue", "options"]), {
|
|
80
|
+
value: t(d),
|
|
81
|
+
options: t(p),
|
|
82
|
+
"onUpdate:value": t(b)
|
|
84
83
|
}), {
|
|
85
|
-
label:
|
|
84
|
+
label: q((n) => [z(e.$slots, "label", F(P(n)))]),
|
|
86
85
|
_: 3
|
|
87
86
|
}, 16, ["value", "options", "onUpdate:value"]))], 64));
|
|
88
87
|
}
|
|
89
88
|
});
|
|
90
89
|
export {
|
|
91
|
-
|
|
90
|
+
K as default
|
|
92
91
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { debounce as
|
|
3
|
-
import { Select as
|
|
1
|
+
import { defineComponent as M, ref as g, onMounted as D, watch as R, computed as p, unref as a, createElementBlock as z, createBlock as E, openBlock as S, toDisplayString as U, mergeProps as K, createSlots as H, renderList as $, withCtx as w, renderSlot as j, normalizeProps as W, guardReactiveProps as Y, createVNode as G } from "vue";
|
|
2
|
+
import { debounce as J, isFunction as B, isArray as Q, isNil as X, omit as Z } from "lodash-unified";
|
|
3
|
+
import { Select as ee, Spin as oe } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { useDefaultPlaceholder as
|
|
6
|
-
import { useSelectOptions as
|
|
7
|
-
import { useControllableValue as
|
|
8
|
-
const
|
|
5
|
+
import { useDefaultPlaceholder as te } from "../hooks/use-default-placeholder.mjs";
|
|
6
|
+
import { useSelectOptions as le, SELECT_ALL_VALUE_KEY as f } from "./use-select-options.mjs";
|
|
7
|
+
import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs";
|
|
8
|
+
const ne = { key: 0 }, fe = /* @__PURE__ */ M({
|
|
9
9
|
name: "ApFieldSelect",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -97,44 +97,42 @@ const ie = { key: 0 }, he = /* @__PURE__ */ z({
|
|
|
97
97
|
searchDelay: { default: 300 }
|
|
98
98
|
},
|
|
99
99
|
emits: ["update:value"],
|
|
100
|
-
setup(
|
|
101
|
-
let
|
|
102
|
-
const
|
|
103
|
-
if (!
|
|
100
|
+
setup(C, { expose: F, emit: b }) {
|
|
101
|
+
let r = 0;
|
|
102
|
+
const o = C, N = J((e) => {
|
|
103
|
+
if (!B(o.request))
|
|
104
104
|
return;
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
s([]),
|
|
108
|
-
|
|
105
|
+
r += 1;
|
|
106
|
+
const l = r;
|
|
107
|
+
s([]), n.value = !0, o.request(e).then((t) => {
|
|
108
|
+
r === l && (s(t), n.value = !1);
|
|
109
109
|
});
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if (!b(e.request))
|
|
110
|
+
}, o.searchDelay), O = (e, l) => {
|
|
111
|
+
const t = o.fieldNames?.label || "label";
|
|
112
|
+
return typeof l?.[t] == "string" && l[t].toLowerCase().indexOf(e.toLowerCase()) > -1;
|
|
113
|
+
}, { options: u, updateOptions: s } = le(o), m = g(), n = g(o?.loading || !1), A = b;
|
|
114
|
+
async function d(e = !0) {
|
|
115
|
+
if (!B(o.request))
|
|
117
116
|
return;
|
|
118
|
-
|
|
119
|
-
const
|
|
117
|
+
n.value = !0, r += 1;
|
|
118
|
+
const l = r;
|
|
120
119
|
try {
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
120
|
+
e && s([]);
|
|
121
|
+
const t = await o.request(void 0, o.params);
|
|
122
|
+
if (l !== r)
|
|
124
123
|
return;
|
|
125
|
-
s(
|
|
124
|
+
s(t);
|
|
126
125
|
} finally {
|
|
127
|
-
|
|
126
|
+
n.value = !1;
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
(o = e.onFocus) == null || o.call(e, t), e.refetchOnFocus && u > 0 && !r.value && d(!0);
|
|
129
|
+
function V(e) {
|
|
130
|
+
o.onFocus?.(e), o.refetchOnFocus && r > 0 && !n.value && d(!0);
|
|
133
131
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}),
|
|
137
|
-
() =>
|
|
132
|
+
D(() => {
|
|
133
|
+
o.lazy || d();
|
|
134
|
+
}), R(
|
|
135
|
+
() => o.params,
|
|
138
136
|
() => {
|
|
139
137
|
d();
|
|
140
138
|
},
|
|
@@ -142,37 +140,30 @@ const ie = { key: 0 }, he = /* @__PURE__ */ z({
|
|
|
142
140
|
deep: !0
|
|
143
141
|
}
|
|
144
142
|
);
|
|
145
|
-
const { value: c, updateValue:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
(y) => y[l] === t
|
|
160
|
-
);
|
|
161
|
-
return (n == null ? void 0 : n[o]) || e.emptyText;
|
|
162
|
-
}), T = p(() => {
|
|
163
|
-
const t = !!(e != null && e.showSearch), o = e.searchMode;
|
|
164
|
-
let l = {};
|
|
165
|
-
return t && (l = o === "request" ? {
|
|
143
|
+
const { value: c, updateValue: v } = ae(o, A), x = te("Select", o), I = p(() => {
|
|
144
|
+
const e = a(c);
|
|
145
|
+
if (!e)
|
|
146
|
+
return o.emptyText;
|
|
147
|
+
const l = o.fieldNames?.label || "label", t = o.fieldNames?.value || "value";
|
|
148
|
+
return Q(e) ? e.map(
|
|
149
|
+
(i) => a(u).find((q) => q[t] === i)?.[l]
|
|
150
|
+
).filter(Boolean).join("、") || o.emptyText : a(u).find(
|
|
151
|
+
(i) => i[t] === e
|
|
152
|
+
)?.[l] || o.emptyText;
|
|
153
|
+
}), _ = p(() => {
|
|
154
|
+
const e = !!o?.showSearch, l = o.searchMode;
|
|
155
|
+
let t = {};
|
|
156
|
+
return e && (t = l === "request" ? {
|
|
166
157
|
showArrow: !1,
|
|
167
158
|
defaultActiveFirstOption: !1,
|
|
168
|
-
onSearch:
|
|
169
|
-
notFoundContent:
|
|
159
|
+
onSearch: N,
|
|
160
|
+
notFoundContent: n.value ? void 0 : null,
|
|
170
161
|
filterOption: !1
|
|
171
162
|
} : {
|
|
172
163
|
showArrow: !0,
|
|
173
|
-
filterOption:
|
|
164
|
+
filterOption: X(o?.filterOption) ? O : o?.filterOption
|
|
174
165
|
}), {
|
|
175
|
-
...
|
|
166
|
+
...Z(o, [
|
|
176
167
|
"mode",
|
|
177
168
|
"value",
|
|
178
169
|
"onUpdate:value",
|
|
@@ -182,67 +173,59 @@ const ie = { key: 0 }, he = /* @__PURE__ */ z({
|
|
|
182
173
|
"onFocus",
|
|
183
174
|
"onBeforeSelect"
|
|
184
175
|
]),
|
|
185
|
-
placeholder: a(
|
|
186
|
-
...
|
|
176
|
+
placeholder: a(x),
|
|
177
|
+
...t
|
|
187
178
|
};
|
|
188
|
-
}),
|
|
189
|
-
() =>
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}).filter((t) => t !== m)
|
|
193
|
-
), _ = p(() => {
|
|
194
|
-
if (!e.multiple || !e.addAll)
|
|
179
|
+
}), y = p(
|
|
180
|
+
() => u.value.map((e) => e[o.fieldNames?.value || "value"]).filter((e) => e !== f)
|
|
181
|
+
), P = p(() => {
|
|
182
|
+
if (!o.multiple || !o.addAll)
|
|
195
183
|
return a(c);
|
|
196
|
-
if (
|
|
197
|
-
(
|
|
198
|
-
var o;
|
|
199
|
-
return t[((o = e.fieldNames) == null ? void 0 : o.value) || "value"] === m;
|
|
200
|
-
}
|
|
184
|
+
if (u.value.some(
|
|
185
|
+
(e) => e[o.fieldNames?.value || "value"] === f
|
|
201
186
|
)) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
return [
|
|
187
|
+
const e = a(y), l = a(c) || [];
|
|
188
|
+
if (e.length && e.every((t) => l?.includes(t)))
|
|
189
|
+
return [f];
|
|
205
190
|
}
|
|
206
191
|
return a(c);
|
|
207
192
|
});
|
|
208
|
-
function
|
|
209
|
-
return
|
|
193
|
+
function k(e) {
|
|
194
|
+
return o.multiple && e.includes(f) ? v(a(y)) : v(e);
|
|
210
195
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
213
|
-
(t = v.value) == null || t.focus();
|
|
196
|
+
function L() {
|
|
197
|
+
m.value?.focus();
|
|
214
198
|
}
|
|
215
|
-
function
|
|
216
|
-
|
|
217
|
-
(t = v.value) == null || t.blur();
|
|
199
|
+
function T() {
|
|
200
|
+
m.value?.blur();
|
|
218
201
|
}
|
|
219
|
-
return
|
|
220
|
-
focus:
|
|
221
|
-
blur:
|
|
202
|
+
return F({
|
|
203
|
+
focus: L,
|
|
204
|
+
blur: T,
|
|
222
205
|
request: d
|
|
223
|
-
}), (
|
|
206
|
+
}), (e, l) => e.mode === "read" ? (S(), z("span", ne, U(I.value), 1)) : (S(), E(a(ee), K({
|
|
224
207
|
key: 1,
|
|
225
208
|
ref_key: "selectRef",
|
|
226
|
-
ref:
|
|
209
|
+
ref: m,
|
|
227
210
|
"allow-clear": ""
|
|
228
|
-
},
|
|
229
|
-
mode:
|
|
230
|
-
value:
|
|
231
|
-
options: a(
|
|
232
|
-
loading:
|
|
233
|
-
"onUpdate:value":
|
|
234
|
-
onFocus:
|
|
235
|
-
}),
|
|
236
|
-
|
|
237
|
-
name:
|
|
238
|
-
fn:
|
|
239
|
-
|
|
211
|
+
}, _.value, {
|
|
212
|
+
mode: e.multiple ? "multiple" : void 0,
|
|
213
|
+
value: P.value,
|
|
214
|
+
options: a(u),
|
|
215
|
+
loading: n.value,
|
|
216
|
+
"onUpdate:value": k,
|
|
217
|
+
onFocus: V
|
|
218
|
+
}), H({ _: 2 }, [
|
|
219
|
+
$(e.$slots, (t, h) => ({
|
|
220
|
+
name: h,
|
|
221
|
+
fn: w((i) => [
|
|
222
|
+
j(e.$slots, h, W(Y(i || {})))
|
|
240
223
|
])
|
|
241
224
|
})),
|
|
242
|
-
|
|
225
|
+
n.value ? {
|
|
243
226
|
name: "notFoundContent",
|
|
244
|
-
fn:
|
|
245
|
-
|
|
227
|
+
fn: w(() => [
|
|
228
|
+
G(a(oe), { size: "small" })
|
|
246
229
|
]),
|
|
247
230
|
key: "0"
|
|
248
231
|
} : void 0
|
|
@@ -250,5 +233,5 @@ const ie = { key: 0 }, he = /* @__PURE__ */ z({
|
|
|
250
233
|
}
|
|
251
234
|
});
|
|
252
235
|
export {
|
|
253
|
-
|
|
236
|
+
fe as default
|
|
254
237
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isArray as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, computed as s, createElementBlock as d, createCommentVNode as c, openBlock as u, toDisplayString as m } from "vue";
|
|
2
|
+
import { isArray as y } from "lodash-unified";
|
|
3
|
+
const f = { key: 0 }, C = /* @__PURE__ */ i({
|
|
4
4
|
name: "ApFieldSelectRead",
|
|
5
5
|
__name: "read",
|
|
6
6
|
props: {
|
|
@@ -91,28 +91,21 @@ const S = { key: 0 }, v = /* @__PURE__ */ y({
|
|
|
91
91
|
params: {},
|
|
92
92
|
searchDelay: {}
|
|
93
93
|
},
|
|
94
|
-
setup(
|
|
95
|
-
const e =
|
|
96
|
-
var r, p, i;
|
|
94
|
+
setup(l) {
|
|
95
|
+
const e = l, r = s(() => {
|
|
97
96
|
const o = e.value;
|
|
98
97
|
if (!o)
|
|
99
98
|
return e.emptyText;
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
).filter(Boolean).join("、") || e.emptyText;
|
|
108
|
-
const t = (i = e.options) == null ? void 0 : i.find(
|
|
109
|
-
(a) => a[l] === o
|
|
110
|
-
);
|
|
111
|
-
return (t == null ? void 0 : t[n]) || e.emptyText;
|
|
99
|
+
const t = e.fieldNames?.label || "label", a = e.fieldNames?.value || "value";
|
|
100
|
+
return y(o) ? o.map(
|
|
101
|
+
(n) => e.options?.find((p) => p[a] === n)?.[t]
|
|
102
|
+
).filter(Boolean).join("、") || e.emptyText : e.options?.find(
|
|
103
|
+
(n) => n[a] === o
|
|
104
|
+
)?.[t] || e.emptyText;
|
|
112
105
|
});
|
|
113
|
-
return (o,
|
|
106
|
+
return (o, t) => o.mode === "read" ? (u(), d("span", f, m(r.value), 1)) : c("", !0);
|
|
114
107
|
}
|
|
115
108
|
});
|
|
116
109
|
export {
|
|
117
|
-
|
|
110
|
+
C as default
|
|
118
111
|
};
|
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import "../../config-provider/index.mjs";
|
|
2
|
-
import { ref as
|
|
3
|
-
import { useLocale as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[
|
|
8
|
-
[((i = t.fieldNames) == null ? void 0 : i.value) || "value"]: A
|
|
2
|
+
import { ref as r, watch as c } from "vue";
|
|
3
|
+
import { useLocale as f } from "../../config-provider/hooks/use-locale.mjs";
|
|
4
|
+
const m = "SELECTABLE_ALL_VALUE_KEY", E = (l) => {
|
|
5
|
+
const e = r(l?.options || []), { t: n } = f(), u = {
|
|
6
|
+
[l.fieldNames?.label || "label"]: n("ap.common.all"),
|
|
7
|
+
[l.fieldNames?.value || "value"]: m
|
|
9
8
|
};
|
|
10
|
-
function
|
|
11
|
-
const a =
|
|
12
|
-
if (!
|
|
9
|
+
function i(t) {
|
|
10
|
+
const a = l.addAll;
|
|
11
|
+
if (!l.multiple || !a)
|
|
13
12
|
return !1;
|
|
14
|
-
const
|
|
15
|
-
return
|
|
13
|
+
const d = Math.min(0, a === !0 ? 0 : a);
|
|
14
|
+
return t.length > d;
|
|
16
15
|
}
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
if (!
|
|
20
|
-
e.value =
|
|
16
|
+
function o(t) {
|
|
17
|
+
if (t) {
|
|
18
|
+
if (!i(t)) {
|
|
19
|
+
e.value = t;
|
|
21
20
|
return;
|
|
22
21
|
}
|
|
23
|
-
e.value = [
|
|
22
|
+
e.value = [u, ...t];
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
|
-
return
|
|
27
|
-
() =>
|
|
28
|
-
(
|
|
29
|
-
|
|
25
|
+
return c(
|
|
26
|
+
() => l.options,
|
|
27
|
+
(t) => {
|
|
28
|
+
o(t);
|
|
30
29
|
},
|
|
31
30
|
{
|
|
32
31
|
deep: !0
|
|
33
32
|
}
|
|
34
33
|
), {
|
|
35
34
|
options: e,
|
|
36
|
-
updateOptions:
|
|
35
|
+
updateOptions: o
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
38
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
m as SELECT_ALL_VALUE_KEY,
|
|
40
|
+
E as default,
|
|
41
|
+
E as useSelectOptions
|
|
43
42
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Slider as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as g, computed as k, unref as t, createElementBlock as C, createBlock as S, openBlock as n, Fragment as _, createTextVNode as P, toDisplayString as T, mergeProps as V, createSlots as b, renderList as h, withCtx as F, renderSlot as R, normalizeProps as U, guardReactiveProps as A } from "vue";
|
|
2
|
+
import { Slider as $ } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { isNil as
|
|
5
|
-
import { useControllableValue as
|
|
6
|
-
const I = /* @__PURE__ */
|
|
4
|
+
import { isNil as N, isArray as w, omit as z } from "lodash-unified";
|
|
5
|
+
import { useControllableValue as D } from "../../hooks/useControllableValue.mjs";
|
|
6
|
+
const I = /* @__PURE__ */ B({
|
|
7
7
|
name: "ApFieldSlider",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -41,27 +41,25 @@ const I = /* @__PURE__ */ x({
|
|
|
41
41
|
emptyText: { default: "--" }
|
|
42
42
|
},
|
|
43
43
|
emits: ["update:value"],
|
|
44
|
-
setup(
|
|
45
|
-
const
|
|
46
|
-
const e =
|
|
47
|
-
return
|
|
44
|
+
setup(u, { expose: i, emit: p }) {
|
|
45
|
+
const s = x(), o = g(), l = u, d = p, { value: a, updateValue: f } = D(l, d), m = k(() => {
|
|
46
|
+
const e = t(a);
|
|
47
|
+
return N(e) ? l.emptyText : w(e) ? `${e[0]}-${e[1]}` : e;
|
|
48
48
|
});
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
(t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
49
|
+
function c() {
|
|
50
|
+
o.value?.focus?.();
|
|
52
51
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
(t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
52
|
+
function v() {
|
|
53
|
+
o.value?.blur?.();
|
|
56
54
|
}
|
|
57
|
-
return
|
|
58
|
-
focus:
|
|
59
|
-
blur:
|
|
60
|
-
}), (e,
|
|
61
|
-
T(
|
|
62
|
-
], 64)) : (
|
|
55
|
+
return i({
|
|
56
|
+
focus: c,
|
|
57
|
+
blur: v
|
|
58
|
+
}), (e, E) => e.mode === "read" ? (n(), C(_, { key: 0 }, [
|
|
59
|
+
P(T(m.value), 1)
|
|
60
|
+
], 64)) : (n(), S(t($), V(
|
|
63
61
|
{ key: 1 },
|
|
64
|
-
|
|
62
|
+
t(z)(l, [
|
|
65
63
|
"value",
|
|
66
64
|
"onUpdate:value",
|
|
67
65
|
"mode",
|
|
@@ -70,15 +68,15 @@ const I = /* @__PURE__ */ x({
|
|
|
70
68
|
]),
|
|
71
69
|
{
|
|
72
70
|
ref_key: "sliderRef",
|
|
73
|
-
ref:
|
|
74
|
-
value:
|
|
75
|
-
"onUpdate:value":
|
|
71
|
+
ref: o,
|
|
72
|
+
value: t(a),
|
|
73
|
+
"onUpdate:value": t(f)
|
|
76
74
|
}
|
|
77
|
-
),
|
|
78
|
-
|
|
79
|
-
name:
|
|
80
|
-
fn:
|
|
81
|
-
|
|
75
|
+
), b({ _: 2 }, [
|
|
76
|
+
h(s, (L, r) => ({
|
|
77
|
+
name: r,
|
|
78
|
+
fn: F((y) => [
|
|
79
|
+
R(e.$slots, r, U(A(y || {})))
|
|
82
80
|
])
|
|
83
81
|
}))
|
|
84
82
|
]), 1040, ["value", "onUpdate:value"]));
|