@sdata/web-vue 3.30.0 → 4.1.0
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/dist/sd.css +319 -23
- package/dist/sd.min.css +2 -2
- package/es/_components/auto-tooltip/auto-tooltip.js +3 -62
- package/es/_components/auto-tooltip/auto-tooltip.vue.d.ts +17 -0
- package/es/_components/auto-tooltip/auto-tooltip.vue_vue_type_script_setup_true_lang.js +66 -0
- package/es/_components/client-only.js +3 -16
- package/es/_components/client-only.vue.d.ts +13 -0
- package/es/_components/client-only.vue_vue_type_script_setup_true_lang.js +17 -0
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/input-label/input-label.js +3 -168
- package/es/_components/input-label/input-label.vue.d.ts +59 -0
- package/es/_components/input-label/input-label.vue_vue_type_script_setup_true_lang.js +192 -0
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/resize-observer.js +3 -44
- package/es/_components/resize-observer.vue.d.ts +17 -0
- package/es/_components/resize-observer.vue_vue_type_script_setup_true_lang.js +48 -0
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/_components/select-view/select-view.js +3 -231
- package/es/_components/select-view/select-view.vue.d.ts +76 -0
- package/es/_components/select-view/select-view.vue_vue_type_script_setup_true_lang.js +269 -0
- package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/array.js +1 -6
- package/es/_utils/color.js +4 -6
- package/es/_utils/date.js +2 -2
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_utils/vue-utils.js +2 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/auto-complete/auto-complete.js +3 -389
- package/es/auto-complete/auto-complete.vue.d.ts +693 -0
- package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +293 -0
- package/es/auto-complete/index.d.ts +1667 -79
- package/es/avatar/avatar-group.js +4 -96
- package/es/avatar/avatar-group.vue.d.ts +29 -0
- package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +84 -0
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/avatar/index.d.ts +53 -51
- package/es/avatar/index.js +4 -4
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/badge/badge.js +4 -149
- package/es/badge/badge.vue.d.ts +36 -0
- package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +112 -0
- package/es/badge/index.d.ts +39 -100
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/border-beam/styles.js +1 -1
- package/es/breadcrumb/breadcrumb-item.js +3 -106
- package/es/breadcrumb/breadcrumb-item.vue.d.ts +25 -0
- package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +89 -0
- package/es/breadcrumb/breadcrumb.js +3 -115
- package/es/breadcrumb/breadcrumb.vue.d.ts +29 -0
- package/es/breadcrumb/breadcrumb.vue_vue_type_script_setup_true_lang.js +98 -0
- package/es/breadcrumb/index.d.ts +72 -79
- package/es/button/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +8 -6
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/calendar/components/headings-bar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/card/card-actions.js +5 -0
- package/es/card/card-actions.vue.d.ts +7 -0
- package/es/card/card-actions.vue_vue_type_script_setup_true_lang.js +23 -0
- package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card-meta.js +3 -47
- package/es/card/card-meta.vue.d.ts +21 -0
- package/es/card/card-meta.vue_vue_type_script_setup_true_lang.js +54 -0
- package/es/card/card.js +3 -180
- package/es/card/card.vue.d.ts +40 -0
- package/es/card/card.vue_vue_type_script_setup_true_lang.js +116 -0
- package/es/card/context.d.ts +1 -2
- package/es/card/index.d.ts +67 -871
- package/es/card/index.js +1 -1
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel.js +3 -289
- package/es/carousel/{carousel.d.ts → carousel.vue.d.ts} +8 -11
- package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +229 -0
- package/es/carousel/index.d.ts +11 -17
- package/es/carousel/index.js +1 -1
- package/es/cascader/base-cascader-panel.js +3 -70
- package/es/cascader/{base-cascader-panel.d.ts → base-cascader-panel.vue.d.ts} +20 -11
- package/es/cascader/base-cascader-panel.vue_vue_type_script_setup_true_lang.js +85 -0
- package/es/cascader/cascader-column.js +3 -75
- package/es/cascader/{cascader-column.d.ts → cascader-column.vue.d.ts} +18 -11
- package/es/cascader/cascader-column.vue_vue_type_script_setup_true_lang.js +103 -0
- package/es/cascader/cascader-option.js +3 -141
- package/es/cascader/{cascader-option.d.ts → cascader-option.vue.d.ts} +4 -3
- package/es/cascader/cascader-option.vue_vue_type_script_setup_true_lang.js +171 -0
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/cascader/cascader-search-panel.js +3 -58
- package/es/cascader/{cascader-search-panel.d.ts → cascader-search-panel.vue.d.ts} +15 -4
- package/es/cascader/cascader-search-panel.vue_vue_type_script_setup_true_lang.js +71 -0
- package/es/cascader/cascader.vue.d.ts +3 -1
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +17 -13
- package/es/checkbox/checkbox-group.js +3 -139
- package/es/checkbox/checkbox-group.vue.d.ts +41 -0
- package/es/checkbox/checkbox-group.vue_vue_type_script_setup_true_lang.js +100 -0
- package/es/checkbox/checkbox.js +3 -195
- package/es/checkbox/checkbox.vue.d.ts +39 -0
- package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +165 -0
- package/es/checkbox/icon-check.js +3 -18
- package/es/checkbox/icon-check.vue.d.ts +3 -0
- package/es/checkbox/icon-check.vue_vue_type_script_setup_true_lang.js +24 -0
- package/es/checkbox/index.d.ts +102 -294
- package/es/collapse/collapse-item.js +3 -177
- package/es/collapse/collapse-item.vue.d.ts +30 -0
- package/es/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +168 -0
- package/es/collapse/collapse.vue.d.ts +1 -1
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/index.d.ts +50 -155
- package/es/collapse/style/index.css +1 -0
- package/es/collapse/style/index.scss +1 -0
- package/es/color-picker/color-picker.js +3 -293
- package/es/color-picker/{color-picker.d.ts → color-picker.vue.d.ts} +25 -14
- package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +256 -0
- package/es/color-picker/control-bar.js +3 -54
- package/es/color-picker/{control-bar.d.ts → control-bar.vue.d.ts} +5 -4
- package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +68 -0
- package/es/color-picker/gradient-thumb.js +5 -0
- package/es/color-picker/gradient-thumb.vue.d.ts +13 -0
- package/es/color-picker/gradient-thumb.vue_vue_type_script_setup_true_lang.js +69 -0
- package/es/color-picker/index.d.ts +37 -32
- package/es/color-picker/palette.js +3 -43
- package/es/color-picker/palette.vue.d.ts +17 -0
- package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +51 -0
- package/es/color-picker/panel.js +3 -475
- package/es/color-picker/{panel.d.ts → panel.vue.d.ts} +5 -4
- package/es/color-picker/panel.vue_vue_type_script_setup_true_lang.js +453 -0
- package/es/color-picker/utils.js +12 -10
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components.d.ts +2 -0
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/date-picker/hooks/use-range-header-value.js +2 -2
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/hooks/use-time-picker-value.js +10 -8
- package/es/date-picker/index.d.ts +238 -122
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/date-picker/panels/footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/week-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue.d.ts +1 -1
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/date-picker/pickers/date-picker.js +3 -93
- package/es/date-picker/pickers/{date-picker.d.ts → date-picker.vue.d.ts} +26 -35
- package/es/date-picker/pickers/date-picker.vue_vue_type_script_setup_true_lang.js +107 -0
- package/es/date-picker/pickers/month-picker.js +3 -37
- package/es/date-picker/pickers/month-picker.vue.d.ts +38 -0
- package/es/date-picker/pickers/month-picker.vue_vue_type_script_setup_true_lang.js +51 -0
- package/es/date-picker/pickers/quarter-picker.js +3 -46
- package/es/date-picker/pickers/{quarter-picker.d.ts → quarter-picker.vue.d.ts} +14 -3
- package/es/date-picker/pickers/quarter-picker.vue_vue_type_script_setup_true_lang.js +60 -0
- package/es/date-picker/pickers/week-picker.js +3 -56
- package/es/date-picker/pickers/{week-picker.d.ts → week-picker.vue.d.ts} +15 -4
- package/es/date-picker/pickers/week-picker.vue_vue_type_script_setup_true_lang.js +70 -0
- package/es/date-picker/pickers/year-picker.js +3 -37
- package/es/date-picker/pickers/year-picker.vue.d.ts +38 -0
- package/es/date-picker/pickers/year-picker.vue_vue_type_script_setup_true_lang.js +51 -0
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +1 -1
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.js +3 -232
- package/es/descriptions/{descriptions.d.ts → descriptions.vue.d.ts} +22 -23
- package/es/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +209 -0
- package/es/descriptions/index.d.ts +18 -32
- package/es/descriptions/index.js +1 -1
- package/es/divider/divider.js +3 -71
- package/es/divider/divider.vue.d.ts +21 -0
- package/es/divider/divider.vue_vue_type_script_setup_true_lang.js +47 -0
- package/es/divider/index.d.ts +25 -66
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +1 -2
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/empty/empty.js +3 -49
- package/es/empty/empty.vue.d.ts +18 -0
- package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +44 -0
- package/es/empty/index.d.ts +20 -36
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/file-previewer/pdfjs-worker.min.mjs +4 -4
- package/es/file-previewer/use-pdf-js.js +2 -2
- package/es/form/form-item-label.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/form-item-message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +31 -30
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/style/col.scss +29 -41
- package/es/grid/style/index.css +237 -0
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/add-from-icon-font-cn.d.ts +8 -13
- package/es/icon-component/add-from-icon-font-cn.js +13 -22
- package/es/icon-component/icon-font.js +5 -0
- package/es/icon-component/icon-font.vue.d.ts +35 -0
- package/es/icon-component/icon-font.vue_vue_type_script_setup_true_lang.js +38 -0
- package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/index.d.ts +1 -13
- package/es/icon.js +5 -5
- package/es/image/hooks/use-image-drag.js +3 -1
- package/es/image/image-footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/image/index.d.ts +1 -1
- package/es/image/preview-action.js +3 -47
- package/es/image/preview-action.vue.d.ts +29 -0
- package/es/image/preview-action.vue_vue_type_script_setup_true_lang.js +55 -0
- package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-toolbar.vue.d.ts +2 -2
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +33 -23
- package/es/index.css +319 -23
- package/es/index.d.ts +2 -2
- package/es/index.js +16 -14
- package/es/index.scss +1 -1
- package/es/input/index.d.ts +1770 -136
- package/es/input/index.js +1 -1
- package/es/input/input-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/input/input-search.js +3 -140
- package/es/input/input-search.vue.d.ts +620 -0
- package/es/input/input-search.vue_vue_type_script_setup_true_lang.js +168 -0
- package/es/input/input.js +3 -487
- package/es/input/{input.d.ts → input.vue.d.ts} +42 -43
- package/es/input/input.vue_vue_type_script_setup_true_lang.js +377 -0
- package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input-mask/mask-engine.js +4 -4
- package/es/input-mask/presets.js +1 -1
- package/es/input-number/index.d.ts +1670 -106
- package/es/input-number/input-number.js +3 -529
- package/es/input-number/input-number.vue.d.ts +708 -0
- package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +384 -0
- package/es/input-tag/index.d.ts +76 -92
- package/es/input-tag/input-tag.js +3 -672
- package/es/input-tag/{input-tag.d.ts → input-tag.vue.d.ts} +52 -49
- package/es/input-tag/input-tag.vue_vue_type_script_setup_true_lang.js +585 -0
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/utils.js +4 -4
- package/es/kv-list/index.d.ts +34 -34
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/index.d.ts +2619 -93
- package/es/list/index.js +2 -2
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list-item.js +3 -54
- package/es/list/list-item.vue.d.ts +22 -0
- package/es/list/list-item.vue_vue_type_script_setup_true_lang.js +58 -0
- package/es/list/list.js +3 -383
- package/es/list/list.vue.d.ts +980 -0
- package/es/list/list.vue_vue_type_script_setup_true_lang.js +326 -0
- package/es/mention/index.d.ts +3234 -58
- package/es/mention/mention.js +3 -437
- package/es/mention/mention.vue.d.ts +1210 -0
- package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +376 -0
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/menu/hooks/use-level.js +2 -1
- package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/menu/index.d.ts +3 -3
- package/es/menu/index.js +1 -1
- package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/menu/item.js +3 -127
- package/es/menu/{item.d.ts → item.vue.d.ts} +25 -4
- package/es/menu/item.vue_vue_type_script_setup_true_lang.js +147 -0
- package/es/menu/menu.js +3 -57
- package/es/menu/menu.vue.d.ts +66 -0
- package/es/menu/menu.vue_vue_type_script_setup_true_lang.js +78 -0
- package/es/menu/overflow-wrap.js +3 -97
- package/es/menu/overflow-wrap.vue.d.ts +3 -0
- package/es/menu/overflow-wrap.vue_vue_type_script_setup_true_lang.js +114 -0
- package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/menu/sub-menu.js +3 -115
- package/es/menu/{sub-menu.d.ts → sub-menu.vue.d.ts} +27 -30
- package/es/menu/sub-menu.vue_vue_type_script_setup_true_lang.js +110 -0
- package/es/message/index.js +1 -1
- package/es/message/message-list.js +3 -45
- package/es/message/{message-list.d.ts → message-list.vue.d.ts} +9 -7
- package/es/message/message-list.vue_vue_type_script_setup_true_lang.js +64 -0
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/index.js +3 -3
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/model-selector/model-selector-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-dialog.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-logo-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-logo.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-name.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-separator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-shortcut.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-trigger-element.js +5 -0
- package/es/model-selector/model-selector-trigger-element.vue.d.ts +7 -0
- package/es/model-selector/model-selector-trigger-element.vue_vue_type_script_lang.js +18 -0
- package/es/model-selector/model-selector-trigger.vue_vue_type_script_setup_true_lang.js +4 -17
- package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/notification-list.js +3 -58
- package/es/notification/notification-list.vue.d.ts +34 -0
- package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +96 -0
- package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/number-flow/continuous.d.ts +2 -0
- package/es/number-flow/continuous.js +7 -0
- package/es/number-flow/formatter.d.ts +15 -0
- package/es/number-flow/formatter.js +54 -0
- package/es/number-flow/group-key.d.ts +11 -0
- package/es/number-flow/group-key.js +4 -0
- package/es/number-flow/index.d.ts +63 -0
- package/es/number-flow/index.js +15 -0
- package/es/number-flow/number-flow-group.js +5 -0
- package/es/number-flow/number-flow-group.vue.d.ts +12 -0
- package/es/number-flow/number-flow-group.vue_vue_type_script_setup_true_lang.js +58 -0
- package/es/number-flow/number-flow.js +5 -0
- package/es/number-flow/number-flow.vue.d.ts +20 -0
- package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +284 -0
- package/es/number-flow/style/index.css +85 -0
- package/es/number-flow/style/index.scss +93 -0
- package/es/number-flow/style/token.scss +5 -0
- package/es/number-flow/types.d.ts +46 -0
- package/es/number-flow/use-can-animate.d.ts +4 -0
- package/es/number-flow/use-can-animate.js +30 -0
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/index.d.ts +45 -49
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-options.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/pagination.js +3 -463
- package/es/pagination/{pagination.d.ts → pagination.vue.d.ts} +42 -31
- package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +454 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/progress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/qr-code/index.d.ts +18 -33
- package/es/qr-code/qr-code.vue.d.ts +6 -11
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/radio/index.d.ts +111 -289
- package/es/radio/radio-group.js +3 -168
- package/es/radio/radio-group.vue.d.ts +45 -0
- package/es/radio/radio-group.vue_vue_type_script_setup_true_lang.js +129 -0
- package/es/radio/radio.js +3 -172
- package/es/radio/radio.vue.d.ts +40 -0
- package/es/radio/radio.vue_vue_type_script_setup_true_lang.js +152 -0
- package/es/rate/index.d.ts +17 -11
- package/es/rate/rate.js +3 -269
- package/es/rate/{rate.d.ts → rate.vue.d.ts} +18 -6
- package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +220 -0
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +1 -3
- package/es/result/403.js +3 -481
- package/es/result/403.vue.d.ts +3 -0
- package/es/result/403.vue_vue_type_script_setup_true_lang.js +24 -0
- package/es/result/404.js +3 -335
- package/es/result/404.vue.d.ts +3 -0
- package/es/result/404.vue_vue_type_script_setup_true_lang.js +24 -0
- package/es/result/500.js +3 -344
- package/es/result/500.vue.d.ts +3 -0
- package/es/result/500.vue_vue_type_script_setup_true_lang.js +19 -0
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/rich-text-editor/index.d.ts +3 -3
- package/es/rich-text-editor/nodes/inline-component-node.js +1 -1
- package/es/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
- package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/sd-vue.js +17 -16
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/index.d.ts +93 -2299
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/select.js +3 -684
- package/es/select/select.vue.d.ts +450 -0
- package/es/select/select.vue_vue_type_script_setup_true_lang.js +774 -0
- package/es/select/utils.js +1 -1
- package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-recording-icon.js +5 -0
- package/es/sender/sender-recording-icon.vue.d.ts +3 -0
- package/es/sender/sender-recording-icon.vue_vue_type_script_setup_true_lang.js +38 -0
- package/es/sender/sender-skill-tag.js +5 -0
- package/es/sender/sender-skill-tag.vue.d.ts +28 -0
- package/es/sender/sender-skill-tag.vue_vue_type_script_setup_true_lang.js +59 -0
- package/es/sender/sender-stop-loading-icon.js +5 -0
- package/es/sender/sender-stop-loading-icon.vue.d.ts +3 -0
- package/es/sender/sender-stop-loading-icon.vue_vue_type_script_setup_true_lang.js +54 -0
- package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +8 -109
- package/es/sender/use-recorder.js +2 -1
- package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/shape.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/slider/slider-dots.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-marks.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-ticks.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/utils.js +1 -2
- package/es/space/index.d.ts +26 -72
- package/es/space/space.js +3 -101
- package/es/space/space.vue.d.ts +22 -0
- package/es/space/space.vue_vue_type_script_setup_true_lang.js +84 -0
- package/es/spin/dot-loading.js +3 -28
- package/es/spin/dot-loading.vue.d.ts +6 -0
- package/es/spin/dot-loading.vue_vue_type_script_setup_true_lang.js +33 -0
- package/es/spin/index.d.ts +37 -60
- package/es/spin/spin.js +3 -153
- package/es/spin/spin.vue.d.ts +27 -0
- package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +139 -0
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/statistic/countdown.vue.d.ts +9 -0
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +30 -3
- package/es/statistic/index.d.ts +15 -0
- package/es/statistic/statistic.vue.d.ts +3 -3
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +32 -63
- package/es/statistic/style/index.css +3 -0
- package/es/statistic/style/index.scss +5 -0
- package/es/statistic/utils.js +5 -5
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/style/theme/z-index.js +3 -3
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/table/hooks/use-row-selection.js +1 -1
- package/es/table/index.d.ts +449 -362
- package/es/table/index.js +1 -1
- package/es/table/table-column.js +3 -254
- package/es/table/table-column.vue.d.ts +75 -0
- package/es/table/table-column.vue_vue_type_script_setup_true_lang.js +194 -0
- package/es/table/table-operation-td.js +3 -130
- package/es/table/table-operation-td.vue.d.ts +87 -0
- package/es/table/table-operation-td.vue_vue_type_script_setup_true_lang.js +114 -0
- package/es/table/table-operation-th.js +3 -73
- package/es/table/{table-operation-th.d.ts → table-operation-th.vue.d.ts} +5 -4
- package/es/table/table-operation-th.vue_vue_type_script_setup_true_lang.js +86 -0
- package/es/table/table-tbody.js +3 -16
- package/es/table/table-tbody.vue.d.ts +14 -0
- package/es/table/table-tbody.vue_vue_type_script_setup_true_lang.js +23 -0
- package/es/table/table-td.js +3 -192
- package/es/table/{table-td.d.ts → table-td.vue.d.ts} +26 -12
- package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +218 -0
- package/es/table/table-th.js +3 -225
- package/es/table/{table-th.d.ts → table-th.vue.d.ts} +17 -6
- package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +268 -0
- package/es/table/table-thead.js +3 -16
- package/es/table/table-thead.vue.d.ts +14 -0
- package/es/table/table-thead.vue_vue_type_script_setup_true_lang.js +23 -0
- package/es/table/table-tr.js +3 -34
- package/es/table/table-tr.vue.d.ts +30 -0
- package/es/table/table-tr.vue_vue_type_script_setup_true_lang.js +48 -0
- package/es/table/table.js +3 -1637
- package/es/table/{table.d.ts → table.vue.d.ts} +41 -56
- package/es/table/table.vue_vue_type_script_setup_true_lang.js +1568 -0
- package/es/table/utils.js +1 -1
- package/es/tabs/index.d.ts +32 -33
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-button.js +3 -58
- package/es/tabs/{tabs-button.d.ts → tabs-button.vue.d.ts} +6 -3
- package/es/tabs/tabs-button.vue_vue_type_script_setup_true_lang.js +54 -0
- package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav.js +3 -297
- package/es/tabs/{tabs-nav.d.ts → tabs-nav.vue.d.ts} +23 -13
- package/es/tabs/tabs-nav.vue_vue_type_script_setup_true_lang.js +332 -0
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs.js +3 -325
- package/es/tabs/{tabs.d.ts → tabs.vue.d.ts} +25 -18
- package/es/tabs/tabs.vue_vue_type_script_setup_true_lang.js +237 -0
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/thinking-orb/engine/lattice.js +1 -1
- package/es/thinking-orb/engine/morph.js +1 -1
- package/es/thinking-orb/engine/profiles.js +1 -1
- package/es/thinking-orb/presets.js +1 -1
- package/es/thinking-orb/thinking-orb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/hooks/use-time-state.js +4 -2
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/time-picker/range-panel.js +3 -56
- package/es/time-picker/range-panel.vue.d.ts +44 -0
- package/es/time-picker/range-panel.vue_vue_type_script_setup_true_lang.js +65 -0
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/timeline/context.d.ts +1 -0
- package/es/timeline/index.d.ts +36 -426
- package/es/timeline/item.vue.d.ts +3 -0
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +7 -5
- package/es/timeline/timeline.js +3 -109
- package/es/timeline/timeline.vue.d.ts +26 -0
- package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +68 -0
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tooltip/index.d.ts +3 -0
- package/es/tooltip/interface.d.ts +1 -0
- package/es/tooltip/style/index.css +3 -0
- package/es/tooltip/style/index.scss +4 -0
- package/es/tooltip/tooltip.vue.d.ts +1 -0
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +17 -15
- package/es/transfer/transfer-list-item.js +3 -74
- package/es/transfer/transfer-list-item.vue.d.ts +30 -0
- package/es/transfer/transfer-list-item.vue_vue_type_script_setup_true_lang.js +101 -0
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/hooks/use-draggable.js +0 -2
- package/es/tree/node-switcher.js +2 -2
- package/es/tree/node-switcher.vue.d.ts +7 -43
- package/es/tree/node-switcher.vue_vue_type_script_setup_true_lang.js +85 -0
- package/es/tree/node.js +3 -20
- package/es/tree/node.vue.d.ts +15 -0
- package/es/tree/node.vue_vue_type_script_setup_true_lang.js +30 -0
- package/es/tree/transition-node-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +28 -30
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.js +3 -71
- package/es/tree-select/panel.vue.d.ts +56 -0
- package/es/tree-select/panel.vue_vue_type_script_setup_true_lang.js +75 -0
- package/es/tree-select/tree-select.vue.d.ts +5 -2
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/trigger/index.d.ts +168 -506
- package/es/trigger/trigger.js +3 -833
- package/es/trigger/trigger.vue.d.ts +108 -0
- package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +642 -0
- package/es/typography/base.js +3 -427
- package/es/typography/base.vue.d.ts +116 -0
- package/es/typography/base.vue_vue_type_script_setup_true_lang.js +314 -0
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/index.d.ts +108 -37
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/paragraph.js +3 -35
- package/es/typography/paragraph.vue.d.ts +33 -0
- package/es/typography/paragraph.vue_vue_type_script_setup_true_lang.js +42 -0
- package/es/typography/text.js +3 -22
- package/es/typography/text.vue.d.ts +27 -0
- package/es/typography/text.vue_vue_type_script_setup_true_lang.js +31 -0
- package/es/typography/title.js +3 -24
- package/es/typography/title.vue.d.ts +26 -0
- package/es/typography/title.vue_vue_type_script_setup_true_lang.js +33 -0
- package/es/typography/typography-content.js +5 -0
- package/es/typography/typography-content.vue.d.ts +9 -0
- package/es/typography/typography-content.vue_vue_type_script_setup_true_lang.js +47 -0
- package/es/typography/typography-operations.js +5 -0
- package/es/typography/typography-operations.vue.d.ts +22 -0
- package/es/typography/typography-operations.vue_vue_type_script_setup_true_lang.js +73 -0
- package/es/typography/typography.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/utils/getInnerText.d.ts +1 -1
- package/es/typography/utils/getInnerText.js +4 -5
- package/es/typography/utils/inner-text-renderer.js +5 -0
- package/es/typography/utils/inner-text-renderer.vue.d.ts +7 -0
- package/es/typography/utils/inner-text-renderer.vue_vue_type_script_setup_true_lang.js +22 -0
- package/es/typography/utils/measure.d.ts +2 -3
- package/es/typography/utils/measure.js +8 -10
- package/es/upload/index.d.ts +74 -148
- package/es/upload/style/index.css +7 -9
- package/es/upload/style/index.scss +6 -6
- package/es/upload/upload-button.js +3 -137
- package/es/upload/{upload-button.d.ts → upload-button.vue.d.ts} +18 -11
- package/es/upload/upload-button.vue_vue_type_script_setup_true_lang.js +161 -0
- package/es/upload/upload-list-item.js +3 -120
- package/es/upload/{upload-list-item.d.ts → upload-list-item.vue.d.ts} +5 -4
- package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +195 -0
- package/es/upload/upload-list.js +3 -46
- package/es/upload/upload-list.vue.d.ts +38 -0
- package/es/upload/upload-list.vue_vue_type_script_setup_true_lang.js +47 -0
- package/es/upload/upload-picture-item.js +3 -86
- package/es/upload/upload-picture-item.vue.d.ts +35 -0
- package/es/upload/upload-picture-item.vue_vue_type_script_setup_true_lang.js +147 -0
- package/es/upload/upload-progress.js +3 -73
- package/es/upload/{upload-progress.d.ts → upload-progress.vue.d.ts} +5 -4
- package/es/upload/upload-progress.vue_vue_type_script_setup_true_lang.js +75 -0
- package/es/upload/upload.js +3 -671
- package/es/upload/{upload.d.ts → upload.vue.d.ts} +50 -83
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +392 -0
- package/es/verification-code/index.d.ts +18 -24
- package/es/verification-code/verification-code.js +3 -216
- package/es/verification-code/{verification-code.d.ts → verification-code.vue.d.ts} +12 -15
- package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +192 -0
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/index.d.ts +12 -8
- package/es/watermark/watermark.js +3 -292
- package/es/watermark/{watermark.d.ts → watermark.vue.d.ts} +13 -2
- package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +303 -0
- package/json/vetur-attributes.json +74 -1352
- package/json/vetur-tags.json +94 -473
- package/json/web-types.json +2615 -5690
- package/package.json +14 -14
- package/es/_components/auto-tooltip/auto-tooltip.d.ts +0 -10
- package/es/_components/client-only.d.ts +0 -4
- package/es/_components/input-label/input-label.d.ts +0 -70
- package/es/_components/resize-observer.d.ts +0 -6
- package/es/_components/select-view/select-view.d.ts +0 -171
- package/es/auto-complete/auto-complete.d.ts +0 -146
- package/es/avatar/avatar-group.d.ts +0 -58
- package/es/badge/badge.d.ts +0 -67
- package/es/breadcrumb/breadcrumb-item.d.ts +0 -35
- package/es/breadcrumb/breadcrumb.d.ts +0 -34
- package/es/card/card-meta.d.ts +0 -18
- package/es/card/card.d.ts +0 -464
- package/es/checkbox/checkbox-group.d.ts +0 -62
- package/es/checkbox/checkbox.d.ts +0 -146
- package/es/checkbox/icon-check.d.ts +0 -2
- package/es/collapse/collapse-item.d.ts +0 -157
- package/es/color-picker/palette.d.ts +0 -16
- package/es/date-picker/pickers/month-picker.d.ts +0 -27
- package/es/date-picker/pickers/year-picker.d.ts +0 -27
- package/es/divider/divider.d.ts +0 -43
- package/es/empty/empty.d.ts +0 -20
- package/es/image/preview-action.d.ts +0 -73
- package/es/input/input-search.d.ts +0 -81
- package/es/input-number/input-number.d.ts +0 -178
- package/es/list/list-item.d.ts +0 -16
- package/es/list/list.d.ts +0 -127
- package/es/mention/mention.d.ts +0 -128
- package/es/menu/menu.d.ts +0 -455
- package/es/menu/overflow-wrap.d.ts +0 -2
- package/es/notification/notification-list.d.ts +0 -32
- package/es/overflow-list/index.d.ts +0 -81
- package/es/overflow-list/index.js +0 -10
- package/es/overflow-list/overflow-list.d.ts +0 -37
- package/es/overflow-list/overflow-list.js +0 -140
- package/es/overflow-list/style/index.css +0 -30
- package/es/overflow-list/style/index.scss +0 -20
- package/es/radio/radio-group.d.ts +0 -72
- package/es/radio/radio.d.ts +0 -140
- package/es/result/403.d.ts +0 -2
- package/es/result/404.d.ts +0 -2
- package/es/result/500.d.ts +0 -2
- package/es/select/select.d.ts +0 -1533
- package/es/space/space.d.ts +0 -45
- package/es/spin/dot-loading.d.ts +0 -10
- package/es/spin/spin.d.ts +0 -37
- package/es/table/table-column.d.ts +0 -120
- package/es/table/table-operation-td.d.ts +0 -813
- package/es/table/table-tbody.d.ts +0 -4
- package/es/table/table-thead.d.ts +0 -4
- package/es/table/table-tr.d.ts +0 -41
- package/es/time-picker/range-panel.d.ts +0 -203
- package/es/timeline/timeline.d.ts +0 -226
- package/es/transfer/transfer-list-item.d.ts +0 -45
- package/es/tree/node-switcher.vue_vue_type_script_lang.js +0 -69
- package/es/tree/node.d.ts +0 -4
- package/es/tree-select/panel.d.ts +0 -14
- package/es/trigger/trigger.d.ts +0 -366
- package/es/typography/base.d.ts +0 -171
- package/es/typography/paragraph.d.ts +0 -27
- package/es/typography/text.d.ts +0 -18
- package/es/typography/title.d.ts +0 -17
- package/es/upload/upload-list.d.ts +0 -63
- package/es/upload/upload-picture-item.d.ts +0 -24
- /package/es/{overflow-list → number-flow}/style/css.js +0 -0
- /package/es/{overflow-list → number-flow}/style/index.d.ts +0 -0
- /package/es/{overflow-list → number-flow}/style/index.js +0 -0
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
+
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
3
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import { getPrefixCls } from "../_utils/global-config.js";
|
|
5
|
+
import { isArray, isBoolean, isEmptyObject, isFunction, isNull, isNumber, isObject, isString, isUndefined } from "../_utils/is.js";
|
|
6
|
+
import virtual_list_default from "../_components/virtual-list/index.js";
|
|
7
|
+
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
8
|
+
import { useDropdownVirtualListProps } from "../_hooks/use-dropdown-virtual-list-props.js";
|
|
9
|
+
import { resolveDropdownVirtualListProps } from "../_utils/virtual-dropdown.js";
|
|
10
|
+
import { useReadonlyTip, useReadonlyTipText } from "../_hooks/use-readonly-tip.js";
|
|
11
|
+
import Trigger from "../trigger/index.js";
|
|
12
|
+
import Tooltip from "../tooltip/index.js";
|
|
13
|
+
import { getKeyFromValue, hasEmptyStringKey, isGroupOptionInfo, isValidOption } from "./utils.js";
|
|
14
|
+
import { useSelect } from "./hooks/use-select.js";
|
|
15
|
+
import select_dropdown_default from "./select-dropdown.js";
|
|
16
|
+
import Ellipsis, { PerformantEllipsis } from "../ellipsis/index.js";
|
|
17
|
+
import Checkbox from "../checkbox/index.js";
|
|
18
|
+
import { debounce } from "../_utils/debounce.js";
|
|
19
|
+
import select_view_default from "../_components/select-view/select-view.js";
|
|
20
|
+
import { useAllowSearch } from "../_hooks/use-allow-search.js";
|
|
21
|
+
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
22
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, inject, mergeProps, nextTick, normalizeClass, normalizeProps, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRef, toRefs, unref, useAttrs, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
23
|
+
import { createReusableTemplate } from "@vueuse/core";
|
|
24
|
+
//#region components/select/select.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
+
var _hoisted_1 = ["aria-label"];
|
|
26
|
+
var DEFAULT_SELECT_VIRTUAL_ITEM_SIZE = 36;
|
|
27
|
+
var select_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
28
|
+
name: "Select",
|
|
29
|
+
inheritAttrs: false
|
|
30
|
+
}), {}, {
|
|
31
|
+
__name: "select",
|
|
32
|
+
props: {
|
|
33
|
+
multiple: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: [
|
|
39
|
+
String,
|
|
40
|
+
Number,
|
|
41
|
+
Boolean,
|
|
42
|
+
Object,
|
|
43
|
+
Array
|
|
44
|
+
],
|
|
45
|
+
default: void 0
|
|
46
|
+
},
|
|
47
|
+
defaultValue: {
|
|
48
|
+
type: [
|
|
49
|
+
String,
|
|
50
|
+
Number,
|
|
51
|
+
Boolean,
|
|
52
|
+
Object,
|
|
53
|
+
Array
|
|
54
|
+
],
|
|
55
|
+
default: (props) => props.multiple ? [] : ""
|
|
56
|
+
},
|
|
57
|
+
inputValue: { type: String },
|
|
58
|
+
defaultInputValue: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ""
|
|
61
|
+
},
|
|
62
|
+
size: { type: String },
|
|
63
|
+
placeholder: String,
|
|
64
|
+
/**
|
|
65
|
+
* @zh 宽度是否适应文字内容
|
|
66
|
+
* @en Whether the width adapts to the text content
|
|
67
|
+
*/
|
|
68
|
+
fitWidth: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* @zh 最大宽度是否限制为父容器宽度
|
|
74
|
+
* @en Whether the maximum width is limited to the parent container width
|
|
75
|
+
*/
|
|
76
|
+
maxWFull: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
80
|
+
loading: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: false
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* @zh 传递给下拉加载中 Spin 的属性
|
|
86
|
+
* @en Props passed to the loading Spin in the dropdown
|
|
87
|
+
*/
|
|
88
|
+
spinProps: { type: Object },
|
|
89
|
+
disabled: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* @zh 是否为只读状态
|
|
95
|
+
* @en Whether it is read-only
|
|
96
|
+
*/
|
|
97
|
+
readonly: {
|
|
98
|
+
type: [Boolean, String],
|
|
99
|
+
default: false
|
|
100
|
+
},
|
|
101
|
+
error: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: false
|
|
104
|
+
},
|
|
105
|
+
allowClear: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: true
|
|
108
|
+
},
|
|
109
|
+
allowSearch: {
|
|
110
|
+
type: [Boolean, Object],
|
|
111
|
+
default: true
|
|
112
|
+
},
|
|
113
|
+
allowCreate: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: false
|
|
116
|
+
},
|
|
117
|
+
showArrow: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: true
|
|
120
|
+
},
|
|
121
|
+
maxTagCount: {
|
|
122
|
+
type: [Number, String],
|
|
123
|
+
default: "responsive"
|
|
124
|
+
},
|
|
125
|
+
popupContainer: { type: [String, Object] },
|
|
126
|
+
bordered: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: true
|
|
129
|
+
},
|
|
130
|
+
defaultActiveFirstOption: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: true
|
|
133
|
+
},
|
|
134
|
+
popupVisible: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: void 0
|
|
137
|
+
},
|
|
138
|
+
show: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: void 0
|
|
141
|
+
},
|
|
142
|
+
defaultPopupVisible: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: false
|
|
145
|
+
},
|
|
146
|
+
defaultShow: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
default: void 0
|
|
149
|
+
},
|
|
150
|
+
unmountOnClose: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: false
|
|
153
|
+
},
|
|
154
|
+
filterOption: {
|
|
155
|
+
type: [Boolean, Function],
|
|
156
|
+
default: true
|
|
157
|
+
},
|
|
158
|
+
options: {
|
|
159
|
+
type: Array,
|
|
160
|
+
default: () => []
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* @zh 是否使用 Ellipsis 组件渲染选项。传入 `performant-ellipsis` 时使用高性能省略实现
|
|
164
|
+
* @en Whether to render options with the Ellipsis component. Use `performant-ellipsis` for the performant implementation
|
|
165
|
+
*/
|
|
166
|
+
ellipsis: {
|
|
167
|
+
type: [Boolean, String],
|
|
168
|
+
default: true
|
|
169
|
+
},
|
|
170
|
+
virtualListProps: { type: Object },
|
|
171
|
+
triggerProps: { type: Object },
|
|
172
|
+
floatingOptions: { type: Object },
|
|
173
|
+
fallbackOption: {
|
|
174
|
+
type: [Boolean, Function],
|
|
175
|
+
default: true
|
|
176
|
+
},
|
|
177
|
+
showExtraOptions: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: true
|
|
180
|
+
},
|
|
181
|
+
valueKey: {
|
|
182
|
+
type: String,
|
|
183
|
+
default: "value"
|
|
184
|
+
},
|
|
185
|
+
searchDelay: {
|
|
186
|
+
type: Number,
|
|
187
|
+
default: 500
|
|
188
|
+
},
|
|
189
|
+
limit: {
|
|
190
|
+
type: Number,
|
|
191
|
+
default: 0
|
|
192
|
+
},
|
|
193
|
+
fieldNames: { type: Object },
|
|
194
|
+
scrollbar: {
|
|
195
|
+
type: [Boolean, Object],
|
|
196
|
+
default: true
|
|
197
|
+
},
|
|
198
|
+
showHeaderOnEmpty: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
default: false
|
|
201
|
+
},
|
|
202
|
+
showFooterOnEmpty: {
|
|
203
|
+
type: Boolean,
|
|
204
|
+
default: false
|
|
205
|
+
},
|
|
206
|
+
tagNowrap: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: false
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
emits: {
|
|
212
|
+
"update:modelValue": (_value) => true,
|
|
213
|
+
"update:inputValue": (_inputValue) => true,
|
|
214
|
+
"update:popupVisible": (_visible) => true,
|
|
215
|
+
"update:show": (_visible) => true,
|
|
216
|
+
"change": (_value) => true,
|
|
217
|
+
"inputValueChange": (_inputValue) => true,
|
|
218
|
+
"popupVisibleChange": (_visible) => true,
|
|
219
|
+
"showChange": (_visible) => true,
|
|
220
|
+
"clear": (_ev) => true,
|
|
221
|
+
"remove": (_removed) => true,
|
|
222
|
+
"search": (_inputValue) => true,
|
|
223
|
+
"dropdownScroll": (_ev) => true,
|
|
224
|
+
"dropdownReachBottom": (_ev) => true,
|
|
225
|
+
"exceedLimit": (_value, _ev) => true
|
|
226
|
+
},
|
|
227
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
228
|
+
const DEFAULT_FIELD_NAMES = {
|
|
229
|
+
value: "value",
|
|
230
|
+
label: "label",
|
|
231
|
+
children: "children",
|
|
232
|
+
disabled: "disabled",
|
|
233
|
+
tagProps: "tagProps"
|
|
234
|
+
};
|
|
235
|
+
const [DefineOptionLabel, ReuseOptionLabel] = createReusableTemplate();
|
|
236
|
+
const [DefineOptionContent, ReuseOptionContent] = createReusableTemplate();
|
|
237
|
+
const props = __props;
|
|
238
|
+
const emit = __emit;
|
|
239
|
+
const slots = useSlots();
|
|
240
|
+
const attrs = useAttrs();
|
|
241
|
+
const VNodeRenderer = ({ content }) => content;
|
|
242
|
+
const [DefineOption, ReuseOption] = createReusableTemplate();
|
|
243
|
+
const configCtx = inject(configProviderInjectionKey, void 0);
|
|
244
|
+
const mergedSpinProps = computed(() => _objectSpread2(_objectSpread2({}, configCtx === null || configCtx === void 0 ? void 0 : configCtx.selectSpinProps), props.spinProps));
|
|
245
|
+
const { size, disabled, error, options, filterOption, valueKey, multiple, popupVisible, show, defaultPopupVisible, defaultShow, showExtraOptions, loading, defaultActiveFirstOption, allowClear, allowSearch } = toRefs(props);
|
|
246
|
+
const prefixCls = getPrefixCls("select");
|
|
247
|
+
const selectViewRef = ref(null);
|
|
248
|
+
const { mergedSize, mergedDisabled, mergedError, eventHandlers } = useFormItem({
|
|
249
|
+
size,
|
|
250
|
+
disabled,
|
|
251
|
+
error
|
|
252
|
+
});
|
|
253
|
+
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
254
|
+
const { mergedAllowSearch } = useAllowSearch(allowSearch);
|
|
255
|
+
const { mergedDropdownVirtualListProps } = useDropdownVirtualListProps(computed(() => props.virtualListProps));
|
|
256
|
+
const component = computed(() => mergedDropdownVirtualListProps.value ? "div" : "li");
|
|
257
|
+
const retainInputValue = computed(() => isObject(mergedAllowSearch.value) && Boolean(mergedAllowSearch.value.retainInputValue));
|
|
258
|
+
const dropdownRef = ref();
|
|
259
|
+
const optionRefs = ref({});
|
|
260
|
+
const virtualListRef = ref();
|
|
261
|
+
const resolvedVirtualListProps = computed(() => {
|
|
262
|
+
return resolveDropdownVirtualListProps(mergedDropdownVirtualListProps.value, props.triggerProps, DEFAULT_SELECT_VIRTUAL_ITEM_SIZE);
|
|
263
|
+
});
|
|
264
|
+
const { computedPopupVisible, handlePopupVisibleChange: _handlePopupVisibleChange } = useTrigger({
|
|
265
|
+
popupVisible,
|
|
266
|
+
defaultPopupVisible,
|
|
267
|
+
show,
|
|
268
|
+
defaultShow,
|
|
269
|
+
emit
|
|
270
|
+
});
|
|
271
|
+
const { tipVisible, show: showReadonlyTip } = useReadonlyTip(toRef(props, "readonly"), mergedDisabled);
|
|
272
|
+
const readonlyTipText = useReadonlyTipText(toRef(props, "readonly"));
|
|
273
|
+
const handlePopupVisibleChange = (visible) => {
|
|
274
|
+
if (visible && props.readonly && !mergedDisabled.value) {
|
|
275
|
+
showReadonlyTip();
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
_handlePopupVisibleChange(visible);
|
|
279
|
+
};
|
|
280
|
+
const _value = ref(props.defaultValue);
|
|
281
|
+
const computedValueObjects = computed(() => {
|
|
282
|
+
var _props$modelValue;
|
|
283
|
+
const mergedValue = (_props$modelValue = props.modelValue) !== null && _props$modelValue !== void 0 ? _props$modelValue : _value.value;
|
|
284
|
+
const valueArray = [];
|
|
285
|
+
if (isArray(mergedValue)) valueArray.push(...mergedValue);
|
|
286
|
+
else if (mergedValue || isNumber(mergedValue) || isString(mergedValue) || isBoolean(mergedValue)) valueArray.push(mergedValue);
|
|
287
|
+
return valueArray.map((item) => ({
|
|
288
|
+
value: item,
|
|
289
|
+
key: getKeyFromValue(item, props.valueKey)
|
|
290
|
+
}));
|
|
291
|
+
});
|
|
292
|
+
watch(() => props.modelValue, (nextModelValue) => {
|
|
293
|
+
if (isUndefined(nextModelValue) || isNull(nextModelValue)) _value.value = multiple.value ? [] : nextModelValue;
|
|
294
|
+
});
|
|
295
|
+
const computedValueKeys = computed(() => computedValueObjects.value.map((item) => item.key));
|
|
296
|
+
const mergedFieldNames = computed(() => _objectSpread2(_objectSpread2({}, DEFAULT_FIELD_NAMES), props.fieldNames));
|
|
297
|
+
const selectedOptionMap = ref({});
|
|
298
|
+
const getRawOptionFromValueKeys = (valueKeys) => {
|
|
299
|
+
const optionMap = {};
|
|
300
|
+
valueKeys.forEach((key) => {
|
|
301
|
+
optionMap[key] = optionInfoMap.get(key);
|
|
302
|
+
});
|
|
303
|
+
return optionMap;
|
|
304
|
+
};
|
|
305
|
+
const updateSelectedOption = (valueKeys) => {
|
|
306
|
+
selectedOptionMap.value = getRawOptionFromValueKeys(valueKeys);
|
|
307
|
+
};
|
|
308
|
+
const getFallBackOption = (value) => {
|
|
309
|
+
if (isFunction(props.fallbackOption)) return props.fallbackOption(value);
|
|
310
|
+
return {
|
|
311
|
+
[mergedFieldNames.value.value]: value,
|
|
312
|
+
[mergedFieldNames.value.label]: String(isObject(value) ? value[valueKey.value] : value)
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
const shouldAppendExtraValue = (keyArray, optionKey, optionValue) => {
|
|
316
|
+
if (keyArray.includes(optionKey) || optionValue === "") return false;
|
|
317
|
+
const optionInfo = optionInfoMap.get(optionKey);
|
|
318
|
+
return !optionInfo || optionInfo.origin === "extraOptions";
|
|
319
|
+
};
|
|
320
|
+
const appendExtraValue = (valueArray, keyArray, option) => {
|
|
321
|
+
valueArray.push(option);
|
|
322
|
+
keyArray.push(option.key);
|
|
323
|
+
};
|
|
324
|
+
const getExtraValueData = () => {
|
|
325
|
+
const valueArray = [];
|
|
326
|
+
const keyArray = [];
|
|
327
|
+
if (props.allowCreate || props.fallbackOption) {
|
|
328
|
+
for (const item of computedValueObjects.value) if (shouldAppendExtraValue(keyArray, item.key, item.value)) appendExtraValue(valueArray, keyArray, item);
|
|
329
|
+
}
|
|
330
|
+
if (props.allowCreate && computedInputValue.value) {
|
|
331
|
+
const createdOption = {
|
|
332
|
+
value: computedInputValue.value,
|
|
333
|
+
key: getKeyFromValue(computedInputValue.value)
|
|
334
|
+
};
|
|
335
|
+
if (shouldAppendExtraValue(keyArray, createdOption.key, createdOption.value)) appendExtraValue(valueArray, keyArray, createdOption);
|
|
336
|
+
}
|
|
337
|
+
return valueArray;
|
|
338
|
+
};
|
|
339
|
+
const extraValueObjects = ref([]);
|
|
340
|
+
const extraOptions = computed(() => extraValueObjects.value.map((item) => {
|
|
341
|
+
let optionInfo = getFallBackOption(item.value);
|
|
342
|
+
const extraOptionRawInfo = selectedOptionMap.value[item.key];
|
|
343
|
+
if (!isUndefined(extraOptionRawInfo) && !isEmptyObject(extraOptionRawInfo)) optionInfo = _objectSpread2(_objectSpread2({}, optionInfo), extraOptionRawInfo);
|
|
344
|
+
return optionInfo;
|
|
345
|
+
}));
|
|
346
|
+
nextTick(() => {
|
|
347
|
+
watchEffect(() => {
|
|
348
|
+
const valueData = getExtraValueData();
|
|
349
|
+
if (valueData.length !== extraValueObjects.value.length) {
|
|
350
|
+
extraValueObjects.value = valueData;
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
for (let index = 0; index < valueData.length; index += 1) {
|
|
354
|
+
var _extraValueObjects$va;
|
|
355
|
+
if (valueData[index].key !== ((_extraValueObjects$va = extraValueObjects.value[index]) === null || _extraValueObjects$va === void 0 ? void 0 : _extraValueObjects$va.key)) {
|
|
356
|
+
extraValueObjects.value = valueData;
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
const _inputValue = ref(props.defaultInputValue);
|
|
363
|
+
const computedInputValue = computed(() => {
|
|
364
|
+
var _props$inputValue;
|
|
365
|
+
return (_props$inputValue = props.inputValue) !== null && _props$inputValue !== void 0 ? _props$inputValue : _inputValue.value;
|
|
366
|
+
});
|
|
367
|
+
watch(computedPopupVisible, (visible) => {
|
|
368
|
+
if (!visible && !retainInputValue.value && computedInputValue.value) updateInputValue("");
|
|
369
|
+
});
|
|
370
|
+
const getValueFromValueKeys = (valueKeys) => {
|
|
371
|
+
if (!props.multiple) {
|
|
372
|
+
var _optionInfoMap$get$va, _optionInfoMap$get;
|
|
373
|
+
return (_optionInfoMap$get$va = (_optionInfoMap$get = optionInfoMap.get(valueKeys[0])) === null || _optionInfoMap$get === void 0 ? void 0 : _optionInfoMap$get.value) !== null && _optionInfoMap$get$va !== void 0 ? _optionInfoMap$get$va : hasEmptyStringKey(optionInfoMap) ? void 0 : "";
|
|
374
|
+
}
|
|
375
|
+
return valueKeys.map((key) => {
|
|
376
|
+
var _optionInfoMap$get$va2, _optionInfoMap$get2;
|
|
377
|
+
return (_optionInfoMap$get$va2 = (_optionInfoMap$get2 = optionInfoMap.get(key)) === null || _optionInfoMap$get2 === void 0 ? void 0 : _optionInfoMap$get2.value) !== null && _optionInfoMap$get$va2 !== void 0 ? _optionInfoMap$get$va2 : "";
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
const updateValue = (valueKeys) => {
|
|
381
|
+
var _eventHandlers$value, _eventHandlers$value$;
|
|
382
|
+
const nextValue = getValueFromValueKeys(valueKeys);
|
|
383
|
+
_value.value = nextValue;
|
|
384
|
+
emit("update:modelValue", nextValue);
|
|
385
|
+
emit("change", nextValue);
|
|
386
|
+
(_eventHandlers$value = eventHandlers.value) === null || _eventHandlers$value === void 0 || (_eventHandlers$value$ = _eventHandlers$value.onChange) === null || _eventHandlers$value$ === void 0 || _eventHandlers$value$.call(_eventHandlers$value);
|
|
387
|
+
updateSelectedOption(valueKeys);
|
|
388
|
+
};
|
|
389
|
+
const updateInputValue = (inputValue) => {
|
|
390
|
+
_inputValue.value = inputValue;
|
|
391
|
+
emit("update:inputValue", inputValue);
|
|
392
|
+
emit("inputValueChange", inputValue);
|
|
393
|
+
};
|
|
394
|
+
const handleMultipleSelect = (key, ev) => {
|
|
395
|
+
if (!computedValueKeys.value.includes(key)) {
|
|
396
|
+
if (enabledOptionKeys.value.includes(key)) if (props.limit > 0 && computedValueKeys.value.length >= props.limit) {
|
|
397
|
+
const info = optionInfoMap.get(key);
|
|
398
|
+
emit("exceedLimit", info === null || info === void 0 ? void 0 : info.value, ev);
|
|
399
|
+
} else updateValue(computedValueKeys.value.concat(key));
|
|
400
|
+
} else updateValue(computedValueKeys.value.filter((valueKeyItem) => valueKeyItem !== key));
|
|
401
|
+
if (!retainInputValue.value) updateInputValue("");
|
|
402
|
+
};
|
|
403
|
+
const handleSingleSelect = (key) => {
|
|
404
|
+
if (key !== computedValueKeys.value[0]) updateValue([key]);
|
|
405
|
+
if (retainInputValue.value) {
|
|
406
|
+
const optionInfo = optionInfoMap.get(key);
|
|
407
|
+
if (optionInfo) updateInputValue(optionInfo.label);
|
|
408
|
+
}
|
|
409
|
+
handlePopupVisibleChange(false);
|
|
410
|
+
};
|
|
411
|
+
const handleSelect = (key, ev) => {
|
|
412
|
+
if (props.multiple) {
|
|
413
|
+
handleMultipleSelect(key, ev);
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
handleSingleSelect(key);
|
|
417
|
+
};
|
|
418
|
+
const handleSearch = debounce((value) => {
|
|
419
|
+
emit("search", value);
|
|
420
|
+
}, props.searchDelay);
|
|
421
|
+
const handleInputValueChange = (inputValue) => {
|
|
422
|
+
if (inputValue === computedInputValue.value) return;
|
|
423
|
+
if (!computedPopupVisible.value) handlePopupVisibleChange(true);
|
|
424
|
+
updateInputValue(inputValue);
|
|
425
|
+
if (mergedAllowSearch.value) handleSearch(inputValue);
|
|
426
|
+
};
|
|
427
|
+
const handleRemove = (key) => {
|
|
428
|
+
const optionInfo = optionInfoMap.get(key);
|
|
429
|
+
updateValue(computedValueKeys.value.filter((currentKey) => currentKey !== key));
|
|
430
|
+
emit("remove", optionInfo === null || optionInfo === void 0 ? void 0 : optionInfo.value);
|
|
431
|
+
};
|
|
432
|
+
const handleClear = (event) => {
|
|
433
|
+
event.stopPropagation();
|
|
434
|
+
const newKeys = computedValueKeys.value.filter((key) => {
|
|
435
|
+
var _optionInfoMap$get3;
|
|
436
|
+
return (_optionInfoMap$get3 = optionInfoMap.get(key)) === null || _optionInfoMap$get3 === void 0 ? void 0 : _optionInfoMap$get3.disabled;
|
|
437
|
+
});
|
|
438
|
+
updateValue(newKeys);
|
|
439
|
+
updateInputValue("");
|
|
440
|
+
emit("clear", event);
|
|
441
|
+
};
|
|
442
|
+
const handleDropdownScroll = (event) => {
|
|
443
|
+
emit("dropdownScroll", event);
|
|
444
|
+
};
|
|
445
|
+
const handleDropdownReachBottom = (event) => {
|
|
446
|
+
emit("dropdownReachBottom", event);
|
|
447
|
+
};
|
|
448
|
+
const { validOptions, optionInfoMap, validOptionInfos, enabledOptionKeys, activeKey, setActiveKey, handleKeyDown } = useSelect({
|
|
449
|
+
multiple,
|
|
450
|
+
options,
|
|
451
|
+
extraOptions,
|
|
452
|
+
inputValue: computedInputValue,
|
|
453
|
+
filterOption,
|
|
454
|
+
showExtraOptions,
|
|
455
|
+
component,
|
|
456
|
+
valueKey,
|
|
457
|
+
fieldNames: toRef(props, "fieldNames"),
|
|
458
|
+
loading,
|
|
459
|
+
popupVisible: computedPopupVisible,
|
|
460
|
+
valueKeys: computedValueKeys,
|
|
461
|
+
dropdownRef,
|
|
462
|
+
optionRefs,
|
|
463
|
+
virtualListRef,
|
|
464
|
+
defaultActiveFirstOption,
|
|
465
|
+
onSelect: handleSelect,
|
|
466
|
+
onPopupVisibleChange: handlePopupVisibleChange
|
|
467
|
+
});
|
|
468
|
+
const selectViewValue = computed(() => {
|
|
469
|
+
const result = [];
|
|
470
|
+
for (const item of computedValueObjects.value) {
|
|
471
|
+
var _optionInfo$label;
|
|
472
|
+
const optionInfo = optionInfoMap.get(item.key);
|
|
473
|
+
if (!optionInfo) continue;
|
|
474
|
+
result.push(_objectSpread2(_objectSpread2({}, optionInfo), {}, {
|
|
475
|
+
value: item.key,
|
|
476
|
+
label: (_optionInfo$label = optionInfo.label) !== null && _optionInfo$label !== void 0 ? _optionInfo$label : String(isObject(item.value) ? item.value[valueKey.value] : item.value),
|
|
477
|
+
closable: !optionInfo.disabled,
|
|
478
|
+
tagProps: optionInfo.tagProps,
|
|
479
|
+
option: optionInfo.raw
|
|
480
|
+
}));
|
|
481
|
+
}
|
|
482
|
+
return result;
|
|
483
|
+
});
|
|
484
|
+
const triggerValue = computed(() => {
|
|
485
|
+
const values = computedValueObjects.value.map((item) => item.value);
|
|
486
|
+
return props.multiple ? values : values[0];
|
|
487
|
+
});
|
|
488
|
+
const triggerDisplayValue = computed(() => {
|
|
489
|
+
var _labels$;
|
|
490
|
+
const labels = selectViewValue.value.map((item) => String(item.label));
|
|
491
|
+
return props.multiple ? labels : (_labels$ = labels[0]) !== null && _labels$ !== void 0 ? _labels$ : "";
|
|
492
|
+
});
|
|
493
|
+
const triggerSelectedOptions = computed(() => selectViewValue.value.map((item) => item.option).filter((option) => Boolean(option)));
|
|
494
|
+
const optionPrefixCls = getPrefixCls("select-option");
|
|
495
|
+
const groupPrefixCls = getPrefixCls("select-group");
|
|
496
|
+
const optionInstanceUid = getCurrentInstance().uid;
|
|
497
|
+
const optionId = (key) => `${optionPrefixCls}-${optionInstanceUid}-${key}`;
|
|
498
|
+
const isOptionVisible = (optionInfo) => isValidOption(optionInfo, {
|
|
499
|
+
inputValue: computedInputValue.value,
|
|
500
|
+
filterOption: filterOption.value
|
|
501
|
+
});
|
|
502
|
+
const isOptionSelected = (optionInfo) => computedValueKeys.value.includes(optionInfo.key);
|
|
503
|
+
const getOptionClass = (optionInfo) => [optionPrefixCls, {
|
|
504
|
+
[`${optionPrefixCls}-disabled`]: optionInfo.disabled,
|
|
505
|
+
[`${optionPrefixCls}-selected`]: isOptionSelected(optionInfo),
|
|
506
|
+
[`${optionPrefixCls}-active`]: activeKey.value === optionInfo.key,
|
|
507
|
+
[`${optionPrefixCls}-multiple`]: props.multiple
|
|
508
|
+
}];
|
|
509
|
+
const setOptionRef = (key, value) => {
|
|
510
|
+
var _value$$el;
|
|
511
|
+
const element = (_value$$el = value === null || value === void 0 ? void 0 : value.$el) !== null && _value$$el !== void 0 ? _value$$el : value;
|
|
512
|
+
if (element instanceof HTMLElement) optionRefs.value[key] = element;
|
|
513
|
+
};
|
|
514
|
+
const handleOptionClick = (optionInfo, event) => {
|
|
515
|
+
if (!optionInfo.disabled) handleSelect(optionInfo.key, event);
|
|
516
|
+
};
|
|
517
|
+
const handleOptionMouseEnter = (optionInfo) => {
|
|
518
|
+
if (!optionInfo.disabled) setActiveKey(optionInfo.key);
|
|
519
|
+
};
|
|
520
|
+
const handleOptionMouseLeave = (optionInfo) => {
|
|
521
|
+
if (!optionInfo.disabled) setActiveKey();
|
|
522
|
+
};
|
|
523
|
+
const renderLabel = ({ data }) => {
|
|
524
|
+
var _data$label;
|
|
525
|
+
if (slots.label && data) {
|
|
526
|
+
var _data$option, _optionInfoMap$get4;
|
|
527
|
+
const optionData = (_data$option = data.option) !== null && _data$option !== void 0 ? _data$option : (_optionInfoMap$get4 = optionInfoMap.get(data.value)) === null || _optionInfoMap$get4 === void 0 ? void 0 : _optionInfoMap$get4.raw;
|
|
528
|
+
if (optionData) return slots.label({ data: optionData });
|
|
529
|
+
}
|
|
530
|
+
return (_data$label = data.label) !== null && _data$label !== void 0 ? _data$label : "";
|
|
531
|
+
};
|
|
532
|
+
const renderTag = ({ data }) => {
|
|
533
|
+
var _data$option2, _optionInfoMap$get5, _slots$tag, _slots$tag2;
|
|
534
|
+
const optionData = (_data$option2 = data.option) !== null && _data$option2 !== void 0 ? _data$option2 : (_optionInfoMap$get5 = optionInfoMap.get(data.value)) === null || _optionInfoMap$get5 === void 0 ? void 0 : _optionInfoMap$get5.raw;
|
|
535
|
+
if (!optionData) return renderLabel({ data });
|
|
536
|
+
return (_slots$tag = (_slots$tag2 = slots.tag) === null || _slots$tag2 === void 0 ? void 0 : _slots$tag2.call(slots, { data: optionData })) !== null && _slots$tag !== void 0 ? _slots$tag : renderLabel({ data });
|
|
537
|
+
};
|
|
538
|
+
__expose({
|
|
539
|
+
focus: () => {
|
|
540
|
+
var _selectViewRef$value, _selectViewRef$value$;
|
|
541
|
+
return (_selectViewRef$value = selectViewRef.value) === null || _selectViewRef$value === void 0 || (_selectViewRef$value$ = _selectViewRef$value.focus) === null || _selectViewRef$value$ === void 0 ? void 0 : _selectViewRef$value$.call(_selectViewRef$value);
|
|
542
|
+
},
|
|
543
|
+
blur: () => {
|
|
544
|
+
var _selectViewRef$value2, _selectViewRef$value3;
|
|
545
|
+
return (_selectViewRef$value2 = selectViewRef.value) === null || _selectViewRef$value2 === void 0 || (_selectViewRef$value3 = _selectViewRef$value2.blur) === null || _selectViewRef$value3 === void 0 ? void 0 : _selectViewRef$value3.call(_selectViewRef$value2);
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
const comboboxInputAttrs = computed(() => ({
|
|
549
|
+
"role": "combobox",
|
|
550
|
+
"aria-expanded": computedPopupVisible.value,
|
|
551
|
+
"aria-autocomplete": mergedAllowSearch.value ? "list" : "none",
|
|
552
|
+
"aria-activedescendant": activeKey.value ? optionId(activeKey.value) : void 0
|
|
553
|
+
}));
|
|
554
|
+
const triggerSlotProps = computed(() => ({
|
|
555
|
+
value: triggerValue.value,
|
|
556
|
+
displayValue: triggerDisplayValue.value,
|
|
557
|
+
inputValue: computedInputValue.value,
|
|
558
|
+
selectedOptions: triggerSelectedOptions.value,
|
|
559
|
+
popupVisible: computedPopupVisible.value,
|
|
560
|
+
disabled: mergedDisabled.value,
|
|
561
|
+
loading: props.loading,
|
|
562
|
+
multiple: props.multiple
|
|
563
|
+
}));
|
|
564
|
+
const triggerBindings = computed(() => {
|
|
565
|
+
var _props$floatingOption, _props$triggerProps;
|
|
566
|
+
return _objectSpread2(_objectSpread2({
|
|
567
|
+
trigger: "click",
|
|
568
|
+
position: "bl",
|
|
569
|
+
popupOffset: 4,
|
|
570
|
+
animationName: "slide-dynamic-origin",
|
|
571
|
+
hideEmpty: true,
|
|
572
|
+
preventFocus: true,
|
|
573
|
+
autoFitPopupWidth: true,
|
|
574
|
+
autoFitTransformOrigin: true,
|
|
575
|
+
ariaHasPopup: "listbox",
|
|
576
|
+
disabled: mergedDisabled.value,
|
|
577
|
+
popupVisible: computedPopupVisible.value,
|
|
578
|
+
unmountOnClose: props.unmountOnClose,
|
|
579
|
+
clickToClose: !(mergedAllowSearch.value || props.allowCreate),
|
|
580
|
+
popupContainer: props.popupContainer,
|
|
581
|
+
onPopupVisibleChange: handlePopupVisibleChange
|
|
582
|
+
}, props.triggerProps), {}, { floatingOptions: (_props$floatingOption = props.floatingOptions) !== null && _props$floatingOption !== void 0 ? _props$floatingOption : (_props$triggerProps = props.triggerProps) === null || _props$triggerProps === void 0 ? void 0 : _props$triggerProps.floatingOptions });
|
|
583
|
+
});
|
|
584
|
+
const selectViewBindings = computed(() => _objectSpread2(_objectSpread2({
|
|
585
|
+
modelValue: selectViewValue.value,
|
|
586
|
+
inputValue: computedInputValue.value,
|
|
587
|
+
multiple: props.multiple,
|
|
588
|
+
disabled: mergedDisabled.value,
|
|
589
|
+
error: mergedError.value,
|
|
590
|
+
loading: props.loading,
|
|
591
|
+
allowClear: mergedAllowClear.value,
|
|
592
|
+
allowCreate: props.allowCreate,
|
|
593
|
+
allowSearch: Boolean(mergedAllowSearch.value),
|
|
594
|
+
showArrow: props.showArrow,
|
|
595
|
+
opened: computedPopupVisible.value,
|
|
596
|
+
maxTagCount: props.maxTagCount,
|
|
597
|
+
placeholder: props.placeholder,
|
|
598
|
+
fitWidth: props.fitWidth,
|
|
599
|
+
maxWFull: props.maxWFull,
|
|
600
|
+
bordered: props.bordered,
|
|
601
|
+
size: mergedSize.value,
|
|
602
|
+
tagNowrap: props.tagNowrap,
|
|
603
|
+
inputAttrs: comboboxInputAttrs.value,
|
|
604
|
+
onInputValueChange: handleInputValueChange,
|
|
605
|
+
onKeydown: handleKeyDown,
|
|
606
|
+
onRemove: handleRemove,
|
|
607
|
+
onClear: handleClear
|
|
608
|
+
}, attrs), {}, { class: [prefixCls, attrs.class] }));
|
|
609
|
+
return (_ctx, _cache) => {
|
|
610
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
611
|
+
createVNode(unref(DefineOptionLabel), null, {
|
|
612
|
+
default: withCtx(({ label }) => [props.ellipsis === false ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(label), 1)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(props.ellipsis === "performant-ellipsis" ? unref(PerformantEllipsis) : unref(Ellipsis)), { key: 1 }, {
|
|
613
|
+
default: withCtx(() => [createTextVNode(toDisplayString(label), 1)]),
|
|
614
|
+
_: 2
|
|
615
|
+
}, 1024))]),
|
|
616
|
+
_: 1
|
|
617
|
+
}),
|
|
618
|
+
createVNode(unref(DefineOptionContent), null, {
|
|
619
|
+
default: withCtx(({ optionInfo }) => [unref(slots).option ? renderSlot(_ctx.$slots, "option", { data: optionInfo.raw }, void 0, void 0, 0) : (openBlock(), createBlock(unref(ReuseOptionLabel), {
|
|
620
|
+
key: 1,
|
|
621
|
+
label: optionInfo.label
|
|
622
|
+
}, null, 8, ["label"]))]),
|
|
623
|
+
_: 3
|
|
624
|
+
}),
|
|
625
|
+
createVNode(unref(DefineOption), null, {
|
|
626
|
+
default: withCtx(({ optionInfo }) => [unref(isGroupOptionInfo)(optionInfo) ? (openBlock(), createElementBlock("li", {
|
|
627
|
+
key: optionInfo.key,
|
|
628
|
+
role: "group",
|
|
629
|
+
"aria-label": optionInfo.label,
|
|
630
|
+
class: normalizeClass(unref(groupPrefixCls))
|
|
631
|
+
}, [createElementVNode("div", { class: normalizeClass(`${unref(groupPrefixCls)}-title`) }, [createVNode(unref(ReuseOptionLabel), { label: optionInfo.label }, null, 8, ["label"])], 2), (openBlock(true), createElementBlock(Fragment, null, renderList(optionInfo.options, (child) => {
|
|
632
|
+
return openBlock(), createBlock(unref(ReuseOption), {
|
|
633
|
+
key: child.key,
|
|
634
|
+
"option-info": child
|
|
635
|
+
}, null, 8, ["option-info"]);
|
|
636
|
+
}), 128))], 10, _hoisted_1)) : isOptionVisible(optionInfo) ? (openBlock(), createBlock(resolveDynamicComponent(component.value), {
|
|
637
|
+
id: optionId(optionInfo.key),
|
|
638
|
+
key: optionInfo.key,
|
|
639
|
+
ref: (element) => setOptionRef(optionInfo.key, element),
|
|
640
|
+
class: normalizeClass(getOptionClass(optionInfo)),
|
|
641
|
+
role: "option",
|
|
642
|
+
"aria-selected": isOptionSelected(optionInfo),
|
|
643
|
+
"aria-disabled": optionInfo.disabled || void 0,
|
|
644
|
+
onClick: ($event) => handleOptionClick(optionInfo, $event),
|
|
645
|
+
onMouseenter: ($event) => handleOptionMouseEnter(optionInfo),
|
|
646
|
+
onMouseleave: ($event) => handleOptionMouseLeave(optionInfo)
|
|
647
|
+
}, {
|
|
648
|
+
default: withCtx(() => [props.multiple ? (openBlock(), createBlock(unref(Checkbox), {
|
|
649
|
+
key: 0,
|
|
650
|
+
class: normalizeClass(`${unref(optionPrefixCls)}-checkbox`),
|
|
651
|
+
"model-value": isOptionSelected(optionInfo),
|
|
652
|
+
disabled: optionInfo.disabled,
|
|
653
|
+
"uninject-group-context": ""
|
|
654
|
+
}, {
|
|
655
|
+
default: withCtx(() => [createVNode(unref(ReuseOptionContent), { "option-info": optionInfo }, null, 8, ["option-info"])]),
|
|
656
|
+
_: 2
|
|
657
|
+
}, 1032, [
|
|
658
|
+
"class",
|
|
659
|
+
"model-value",
|
|
660
|
+
"disabled"
|
|
661
|
+
])) : (openBlock(), createElementBlock("span", {
|
|
662
|
+
key: 1,
|
|
663
|
+
class: normalizeClass(`${unref(optionPrefixCls)}-content`)
|
|
664
|
+
}, [createVNode(unref(ReuseOptionContent), { "option-info": optionInfo }, null, 8, ["option-info"])], 2))]),
|
|
665
|
+
_: 2
|
|
666
|
+
}, 1064, [
|
|
667
|
+
"id",
|
|
668
|
+
"class",
|
|
669
|
+
"aria-selected",
|
|
670
|
+
"aria-disabled",
|
|
671
|
+
"onClick",
|
|
672
|
+
"onMouseenter",
|
|
673
|
+
"onMouseleave"
|
|
674
|
+
])) : createCommentVNode("", true)]),
|
|
675
|
+
_: 1
|
|
676
|
+
}),
|
|
677
|
+
createVNode(unref(Tooltip), {
|
|
678
|
+
"popup-visible": unref(tipVisible),
|
|
679
|
+
content: unref(readonlyTipText),
|
|
680
|
+
position: "top"
|
|
681
|
+
}, {
|
|
682
|
+
default: withCtx(() => [createVNode(unref(Trigger), normalizeProps(guardReactiveProps(triggerBindings.value)), {
|
|
683
|
+
content: withCtx(() => [createVNode(select_dropdown_default, {
|
|
684
|
+
ref_key: "dropdownRef",
|
|
685
|
+
ref: dropdownRef,
|
|
686
|
+
loading: props.loading,
|
|
687
|
+
"spin-props": mergedSpinProps.value,
|
|
688
|
+
empty: unref(validOptionInfos).length === 0,
|
|
689
|
+
"virtual-list": Boolean(resolvedVirtualListProps.value),
|
|
690
|
+
scrollbar: props.scrollbar,
|
|
691
|
+
"show-header-on-empty": props.showHeaderOnEmpty,
|
|
692
|
+
"show-footer-on-empty": props.showFooterOnEmpty,
|
|
693
|
+
onScroll: handleDropdownScroll,
|
|
694
|
+
onReachBottom: handleDropdownReachBottom
|
|
695
|
+
}, createSlots({
|
|
696
|
+
"virtual-list": withCtx(() => [createVNode(unref(virtual_list_default), mergeProps(resolvedVirtualListProps.value, {
|
|
697
|
+
ref_key: "virtualListRef",
|
|
698
|
+
ref: virtualListRef,
|
|
699
|
+
items: unref(validOptions)
|
|
700
|
+
}), {
|
|
701
|
+
item: withCtx(({ item }) => [createVNode(unref(ReuseOption), { "option-info": item }, null, 8, ["option-info"])]),
|
|
702
|
+
_: 1
|
|
703
|
+
}, 16, ["items"])]),
|
|
704
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(validOptions), (optionInfo) => {
|
|
705
|
+
return openBlock(), createBlock(unref(ReuseOption), {
|
|
706
|
+
key: optionInfo.key,
|
|
707
|
+
"option-info": optionInfo
|
|
708
|
+
}, null, 8, ["option-info"]);
|
|
709
|
+
}), 128))]),
|
|
710
|
+
_: 2
|
|
711
|
+
}, [
|
|
712
|
+
_ctx.$slots.empty ? {
|
|
713
|
+
name: "empty",
|
|
714
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
715
|
+
key: "0"
|
|
716
|
+
} : void 0,
|
|
717
|
+
_ctx.$slots.header ? {
|
|
718
|
+
name: "header",
|
|
719
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "header")]),
|
|
720
|
+
key: "1"
|
|
721
|
+
} : void 0,
|
|
722
|
+
_ctx.$slots.footer ? {
|
|
723
|
+
name: "footer",
|
|
724
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
725
|
+
key: "2"
|
|
726
|
+
} : void 0
|
|
727
|
+
]), 1032, [
|
|
728
|
+
"loading",
|
|
729
|
+
"spin-props",
|
|
730
|
+
"empty",
|
|
731
|
+
"virtual-list",
|
|
732
|
+
"scrollbar",
|
|
733
|
+
"show-header-on-empty",
|
|
734
|
+
"show-footer-on-empty"
|
|
735
|
+
])]),
|
|
736
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerSlotProps.value)), () => [createVNode(select_view_default, mergeProps(selectViewBindings.value, {
|
|
737
|
+
ref_key: "selectViewRef",
|
|
738
|
+
ref: selectViewRef
|
|
739
|
+
}), createSlots({
|
|
740
|
+
label: withCtx((slotProps) => [createVNode(VNodeRenderer, { content: renderLabel(slotProps) }, null, 8, ["content"])]),
|
|
741
|
+
tag: withCtx((slotProps) => [createVNode(VNodeRenderer, { content: renderTag(slotProps) }, null, 8, ["content"])]),
|
|
742
|
+
_: 2
|
|
743
|
+
}, [
|
|
744
|
+
_ctx.$slots.prefix ? {
|
|
745
|
+
name: "prefix",
|
|
746
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "prefix")]),
|
|
747
|
+
key: "0"
|
|
748
|
+
} : void 0,
|
|
749
|
+
_ctx.$slots["arrow-icon"] ? {
|
|
750
|
+
name: "arrow-icon",
|
|
751
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "arrow-icon")]),
|
|
752
|
+
key: "1"
|
|
753
|
+
} : void 0,
|
|
754
|
+
_ctx.$slots["loading-icon"] ? {
|
|
755
|
+
name: "loading-icon",
|
|
756
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "loading-icon")]),
|
|
757
|
+
key: "2"
|
|
758
|
+
} : void 0,
|
|
759
|
+
_ctx.$slots["search-icon"] ? {
|
|
760
|
+
name: "search-icon",
|
|
761
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "search-icon")]),
|
|
762
|
+
key: "3"
|
|
763
|
+
} : void 0
|
|
764
|
+
]), 1040)])]),
|
|
765
|
+
_: 3
|
|
766
|
+
}, 16)]),
|
|
767
|
+
_: 3
|
|
768
|
+
}, 8, ["popup-visible", "content"])
|
|
769
|
+
], 64);
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
}));
|
|
773
|
+
//#endregion
|
|
774
|
+
export { select_vue_vue_type_script_setup_true_lang_default as default };
|