@sdata/web-vue 4.4.3 → 4.5.1
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 +74 -9
- package/dist/sd.min.css +2 -2
- package/es/_components/auto-tooltip/auto-tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/client-only.vue_vue_type_script_setup_true_lang.js +1 -1
- 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.vue_vue_type_script_setup_true_lang.js +1 -1
- 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.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/select-view/select-view.vue.d.ts +1 -1
- package/es/_components/select-view/select-view.vue_vue_type_script_setup_true_lang.js +2 -2
- 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-component-ref.d.ts +1 -1
- package/es/_hooks/use-responsive.js +6 -1
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.d.ts +1 -1
- package/es/_utils/date.js +6 -3
- package/es/_utils/debounce.d.ts +4 -1
- package/es/_utils/debounce.js +8 -1
- package/es/_utils/get-value-by-path.d.ts +1 -0
- package/es/_utils/get-value-by-path.js +9 -9
- 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/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +3 -2
- 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 +8 -4
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +18 -5
- package/es/anchor/utils.d.ts +1 -1
- package/es/anchor/utils.js +4 -2
- package/es/auto-complete/auto-complete.vue.d.ts +4 -4
- package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +22 -9
- package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +16 -23
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +36 -20
- package/es/avatar/style/index.css +4 -0
- package/es/avatar/style/index.scss +5 -0
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +24 -13
- package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/basic-crud-table/basic-crud-modal.vue.d.ts +1 -1
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +24 -15
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +4 -4
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +58 -37
- package/es/basic-crud-table/index.d.ts +12 -12
- package/es/bloom-menu/bloom-menu.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +64 -22
- package/es/border-beam/styles.js +20 -7
- package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/breadcrumb/breadcrumb.vue_vue_type_script_setup_true_lang.js +6 -4
- 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 +19 -13
- package/es/button/index.d.ts +3 -3
- package/es/calendar/__test__/real-transitions.js +10 -0
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/calendar/core/config.js +17 -20
- package/es/calendar/core/events.js +59 -41
- package/es/calendar/core/i18n.d.ts +1 -1
- package/es/calendar/core/i18n.js +2 -2
- package/es/calendar/core/index.d.ts +6 -6
- package/es/calendar/core/index.js +1 -1
- package/es/calendar/core/view.js +10 -7
- package/es/calendar/modules/drag-and-drop.js +80 -30
- package/es/calendar/utils/date.d.ts +4 -4
- package/es/calendar/utils/date.js +20 -11
- package/es/card/card-actions.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/card/card-meta.vue_vue_type_script_setup_true_lang.js +13 -10
- package/es/card/card.vue_vue_type_script_setup_true_lang.js +17 -11
- package/es/card/context.d.ts +2 -0
- 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.vue_vue_type_script_setup_true_lang.js +13 -10
- package/es/cascader/base-cascader-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader-column.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/cascader/cascader-option.vue_vue_type_script_setup_true_lang.js +8 -21
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +27 -12
- package/es/cascader/cascader-search-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader.vue.d.ts +1 -1
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +37 -17
- package/es/cascader/context.d.ts +2 -2
- package/es/cascader/hooks/use-lazy-load.d.ts +6 -0
- package/es/cascader/hooks/use-lazy-load.js +35 -0
- package/es/cascader/interface.d.ts +4 -0
- package/es/cascader/utils.d.ts +2 -2
- package/es/cascader/utils.js +10 -8
- package/es/checkbox/checkbox-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/checkbox/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +17 -2
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/gradient-thumb.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/color-picker/hooks/use-control-block.js +5 -1
- package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/panel.vue_vue_type_script_setup_true_lang.js +31 -12
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +7 -15
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/context.d.ts +5 -1
- package/es/config-provider/context.js +2 -1
- package/es/config-provider/global-theme.d.ts +3 -0
- package/es/config-provider/global-theme.js +49 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +39 -37
- package/es/config-provider/theme.d.ts +1 -0
- package/es/config-provider/theme.js +5 -3
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +33 -25
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +38 -6
- package/es/date-picker/hooks/use-is-disabled-date.d.ts +2 -2
- package/es/date-picker/hooks/use-is-disabled-date.js +4 -5
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +28 -0
- 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 +2 -2
- 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 +1 -1
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/date-picker/pickers/date-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/month-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/quarter-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/week-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/year-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +28 -0
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +24 -3
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +10 -9
- package/es/descriptions/interface.d.ts +1 -0
- package/es/divider/divider.vue_vue_type_script_setup_true_lang.js +5 -3
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +28 -24
- 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 +3 -6
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +15 -13
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +17 -13
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/ellipsis/ellipsis.vue.d.ts +2 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +23 -8
- package/es/ellipsis/index.d.ts +3 -0
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +24 -9
- package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +34 -18
- package/es/file-previewer/pdfjs-worker.min.mjs +4 -4
- package/es/file-previewer/use-pdf-js.js +57 -38
- 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 +54 -15
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +11 -8
- package/es/grid/context.d.ts +2 -2
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +8 -7
- package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +11 -12
- package/es/grid/style/col.scss +2 -2
- package/es/grid/style/index.css +42 -0
- package/es/grid/utils/index.js +5 -2
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon-component/add-from-icon-font-cn.js +5 -1
- package/es/icon-component/icon-font.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/icon.js +292 -292
- package/es/image/hooks/use-image-drag.js +4 -2
- 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 +14 -10
- package/es/image/preview-action.vue.d.ts +6 -2
- package/es/image/preview-action.vue_vue_type_script_setup_true_lang.js +12 -3
- 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 +7 -9
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +17 -22
- package/es/index.css +74 -9
- package/es/index.d.ts +6 -6
- package/es/input/index.d.ts +3 -3
- 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 +1 -1
- package/es/input/input-search.vue.d.ts +1 -1
- package/es/input/input-search.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/input/input.vue_vue_type_script_setup_true_lang.js +7 -8
- package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +14 -7
- package/es/input-mask/mask-engine.js +1 -1
- package/es/input-number/decimal.d.ts +3 -0
- package/es/input-number/decimal.js +49 -0
- package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +60 -27
- package/es/input-tag/input-tag.vue_vue_type_script_setup_true_lang.js +34 -16
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/utils.js +4 -2
- 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 +2 -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 +1 -1
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/index.d.ts +3 -3
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list.vue.d.ts +1 -1
- package/es/list/list.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/locale/interface.d.ts +4 -0
- package/es/locale/lang/en-us.js +4 -0
- package/es/locale/lang/zh-cn.js +4 -0
- package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/overflow-wrap.vue_vue_type_script_setup_true_lang.js +13 -3
- package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/sub-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/index.js +2 -1
- package/es/message/message-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/hooks/use-draggable.js +3 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +2 -2
- 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.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/index.js +5 -2
- package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/number-flow/number-flow-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/pagination/interface.d.ts +1 -0
- 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.vue_vue_type_script_setup_true_lang.js +2 -2
- 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 +5 -5
- package/es/progress/line.vue_vue_type_script_setup_true_lang.js +3 -3
- 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 +3 -3
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +23 -12
- package/es/radio/radio-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/radio/radio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +9 -7
- package/es/regex-vis/layout.js +1 -1
- package/es/regex-vis/parser/parser.js +1 -1
- package/es/regex-vis/regex-vis.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/result/403.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/404.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/500.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/index.d.ts +7 -6
- package/es/result/result.vue.d.ts +2 -2
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rich-text-editor/nodes/inline-component-node.js +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 +2 -2
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +1 -1
- package/es/secret/index.d.ts +4 -15
- package/es/secret/interface.d.ts +6 -0
- package/es/secret/secret.vue.d.ts +1 -5
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/index.d.ts +3 -3
- package/es/select/interface.d.ts +5 -0
- package/es/select/select-dropdown.vue.d.ts +3 -1
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +9 -5
- package/es/select/select.vue.d.ts +1 -1
- package/es/select/select.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/select/utils.js +1 -1
- package/es/selectable-card/index.d.ts +4 -52
- package/es/selectable-card/selectable-card.vue.d.ts +3 -20
- package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/selectable-card/types.d.ts +17 -0
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-recording-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-skill-tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-stop-loading-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/interface.d.ts +14 -0
- package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +6 -8
- 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 +9 -4
- 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 +3 -3
- package/es/space/space.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/spin/dot-loading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/split/index.d.ts +1 -0
- package/es/split/interface.d.ts +7 -7
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +8 -4
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/steps/index.d.ts +2 -0
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/switch/index.d.ts +4 -3
- package/es/switch/switch.vue.d.ts +1 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/table/index.d.ts +3 -3
- package/es/table/table-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-operation-td.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-operation-th.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-tbody.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +14 -3
- package/es/table/table-thead.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-tr.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table.vue.d.ts +1 -1
- package/es/table/table.vue_vue_type_script_setup_true_lang.js +14 -5
- package/es/table/utils.js +1 -1
- package/es/tabs/index.d.ts +19 -57
- package/es/tabs/style/index.css +17 -1
- package/es/tabs/style/index.scss +17 -1
- package/es/tabs/tab-pane.vue.d.ts +1 -13
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +26 -5
- package/es/tabs/tabs-button.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav.vue_vue_type_script_setup_true_lang.js +10 -5
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +10 -5
- package/es/tabs/tabs.vue_vue_type_script_setup_true_lang.js +8 -7
- package/es/tag/index.d.ts +10 -10
- package/es/tag/tag.vue.d.ts +4 -4
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/textarea/index.d.ts +1 -0
- package/es/textarea/style/index.css +2 -2
- package/es/textarea/style/index.scss +3 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/theme-provider/index.d.ts +1 -0
- 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/index.d.ts +1 -0
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/range-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- package/es/timeline/index.d.ts +2 -0
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/transfer-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +3 -5
- 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/node-switcher.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +3 -3
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-filter-tree-node.js +2 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/trigger/interface.d.ts +4 -1
- package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +11 -5
- package/es/typography/base.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/typography/paragraph.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/title.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography-operations.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/utils/inner-text-renderer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/style/index.css +9 -6
- package/es/upload/style/index.scss +12 -6
- package/es/upload/upload-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-picture-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/upload/upload-progress.vue_vue_type_script_setup_true_lang.js +42 -11
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/verification-code/index.d.ts +1 -0
- package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/index.d.ts +5 -3
- package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +4 -1
- package/json/vetur-attributes.json +4 -0
- package/json/vetur-tags.json +2 -1
- package/json/web-types.json +9 -1
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import virtual_list_default from "../_components/virtual-list/index.js";
|
|
@@ -107,13 +107,16 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
107
107
|
const dropdownRef = ref();
|
|
108
108
|
const optionRefs = ref({});
|
|
109
109
|
const innerPopupVisible = ref(false);
|
|
110
|
+
watch([mergedDisabled, () => props.readonly], ([disabled, readonly]) => {
|
|
111
|
+
if (disabled || readonly) innerPopupVisible.value = false;
|
|
112
|
+
});
|
|
110
113
|
const computedPopupVisible = computed(() => innerPopupVisible.value && validOptionInfos.value.length > 0);
|
|
111
114
|
const virtualListRef = ref();
|
|
112
115
|
const { mergedDropdownVirtualListProps } = useDropdownVirtualListProps(computed(() => props.virtualListProps));
|
|
113
116
|
const component = computed(() => mergedDropdownVirtualListProps.value ? "div" : "li");
|
|
114
117
|
const resolvedVirtualListProps = computed(() => resolveDropdownVirtualListProps(mergedDropdownVirtualListProps.value, props.triggerProps, DEFAULT_AUTOCOMPLETE_VIRTUAL_ITEM_SIZE));
|
|
115
118
|
const handlePopupVisibleChange = (popupVisible) => {
|
|
116
|
-
if (popupVisible && props.readonly) return;
|
|
119
|
+
if (popupVisible && (props.readonly || mergedDisabled.value)) return;
|
|
117
120
|
innerPopupVisible.value = popupVisible;
|
|
118
121
|
};
|
|
119
122
|
const strictFilterOption = (inputValue, option) => {
|
|
@@ -141,8 +144,9 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
141
144
|
emit("clear", event);
|
|
142
145
|
};
|
|
143
146
|
const handleSelect = (key, _event) => {
|
|
144
|
-
var _optionInfoMap$get, _inputRef$value;
|
|
145
|
-
|
|
147
|
+
var _optionInfoMap$get$va, _optionInfoMap$get, _inputRef$value;
|
|
148
|
+
if (props.readonly || mergedDisabled.value) return;
|
|
149
|
+
const value = String((_optionInfoMap$get$va = (_optionInfoMap$get = optionInfoMap.get(key)) === null || _optionInfoMap$get === void 0 ? void 0 : _optionInfoMap$get.value) !== null && _optionInfoMap$get$va !== void 0 ? _optionInfoMap$get$va : "");
|
|
146
150
|
emit("select", value);
|
|
147
151
|
handleChange(value);
|
|
148
152
|
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.blur();
|
|
@@ -162,6 +166,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
162
166
|
component,
|
|
163
167
|
dropdownRef,
|
|
164
168
|
optionRefs,
|
|
169
|
+
virtualListRef,
|
|
165
170
|
onSelect: handleSelect,
|
|
166
171
|
onPopupVisibleChange: handlePopupVisibleChange
|
|
167
172
|
});
|
|
@@ -179,7 +184,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
179
184
|
if (!item.disabled) setActiveKey();
|
|
180
185
|
};
|
|
181
186
|
const mergedTriggerProps = computed(() => {
|
|
182
|
-
var _props$floatingOption, _props$triggerProps;
|
|
187
|
+
var _props$popupContainer, _props$floatingOption, _props$triggerProps;
|
|
183
188
|
return _objectSpread2(_objectSpread2({
|
|
184
189
|
trigger: "focus",
|
|
185
190
|
position: "bl",
|
|
@@ -190,7 +195,8 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
190
195
|
preventFocus: true,
|
|
191
196
|
popupOffset: 4,
|
|
192
197
|
disabled: mergedDisabled.value,
|
|
193
|
-
autoFitPopupWidth: true
|
|
198
|
+
autoFitPopupWidth: true,
|
|
199
|
+
popupContainer: (_props$popupContainer = props.popupContainer) !== null && _props$popupContainer !== void 0 ? _props$popupContainer : void 0
|
|
194
200
|
}, 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 });
|
|
195
201
|
});
|
|
196
202
|
const focus = () => {
|
|
@@ -233,7 +239,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
233
239
|
onClick: ($event) => handleOptionClick(item, $event),
|
|
234
240
|
onMouseenter: ($event) => handleOptionMouseEnter(item),
|
|
235
241
|
onMouseleave: ($event) => handleOptionMouseLeave(item)
|
|
236
|
-
}, [createElementVNode("span", { class: normalizeClass(`${unref(optionPrefixCls)}-content`) }, [unref(slots).option
|
|
242
|
+
}, [createElementVNode("span", { class: normalizeClass(`${unref(optionPrefixCls)}-content`) }, [unref(slots).option ? renderSlot(_ctx.$slots, "option", { data: item }, void 0, void 0, 0) : (openBlock(), createBlock(unref(Ellipsis), { key: 1 }, {
|
|
237
243
|
default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
|
|
238
244
|
_: 2
|
|
239
245
|
}, 1024))], 2)], 42, _hoisted_2))]),
|
|
@@ -250,8 +256,15 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
250
256
|
"virtual-list": withCtx(() => [createVNode(unref(virtual_list_default), mergeProps({
|
|
251
257
|
ref_key: "virtualListRef",
|
|
252
258
|
ref: virtualListRef
|
|
253
|
-
}, resolvedVirtualListProps.value, {
|
|
254
|
-
|
|
259
|
+
}, resolvedVirtualListProps.value, {
|
|
260
|
+
items: unref(validOptions),
|
|
261
|
+
onScroll: handleDropdownScroll,
|
|
262
|
+
onReachBottom: handleDropdownReachBottom
|
|
263
|
+
}), {
|
|
264
|
+
item: withCtx(({ item }) => [(openBlock(), createBlock(unref(ReuseOption), {
|
|
265
|
+
key: item.key,
|
|
266
|
+
item
|
|
267
|
+
}, null, 8, ["item"]))]),
|
|
255
268
|
_: 1
|
|
256
269
|
}, 16, ["items"])]),
|
|
257
270
|
footer: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { getAllElements } from "../_utils/vue-utils.js";
|
|
5
5
|
import Popover from "../popover/index.js";
|
|
6
6
|
import { avatarGroupInjectionKey } from "./context.js";
|
|
7
7
|
import avatar_default from "./avatar.js";
|
|
8
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive,
|
|
9
|
-
import { createReusableTemplate } from "@vueuse/core";
|
|
8
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive, toDisplayString, toRef, unref, useSlots, withCtx } from "vue";
|
|
10
9
|
//#region components/avatar/avatar-group.vue?vue&type=script&setup=true&lang.ts
|
|
11
10
|
var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "AvatarGroup" }), {}, {
|
|
12
11
|
__name: "avatar-group",
|
|
@@ -28,7 +27,6 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
28
27
|
setup(__props) {
|
|
29
28
|
const props = __props;
|
|
30
29
|
const slots = useSlots();
|
|
31
|
-
const [DefineAvatarContent, ReuseAvatarContent] = createReusableTemplate();
|
|
32
30
|
const RenderVNodes = defineComponent({
|
|
33
31
|
name: "AvatarGroupRenderVNodes",
|
|
34
32
|
props: { content: {
|
|
@@ -46,13 +44,11 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
46
44
|
var _configCtx$rtl;
|
|
47
45
|
return (_configCtx$rtl = configCtx === null || configCtx === void 0 ? void 0 : configCtx.rtl) !== null && _configCtx$rtl !== void 0 ? _configCtx$rtl : false;
|
|
48
46
|
});
|
|
49
|
-
const
|
|
50
|
-
const getChildren = () => {
|
|
47
|
+
const children = computed(() => {
|
|
51
48
|
var _slots$default, _slots$default2;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
49
|
+
return getAllElements((_slots$default = (_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)) !== null && _slots$default !== void 0 ? _slots$default : []);
|
|
50
|
+
});
|
|
51
|
+
const total = computed(() => children.value.length);
|
|
56
52
|
const getVisibleAvatars = (children) => props.maxCount > 0 ? children.slice(0, props.maxCount) : children;
|
|
57
53
|
const getOverflowAvatars = (children) => props.maxCount > 0 ? children.slice(props.maxCount) : [];
|
|
58
54
|
provide(avatarGroupInjectionKey, reactive({
|
|
@@ -64,20 +60,17 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
64
60
|
rtl
|
|
65
61
|
}));
|
|
66
62
|
return (_ctx, _cache) => {
|
|
67
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), { [`${unref(prefixCls)}-rtl`]: rtl.value }]) }, [createVNode(unref(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, 1032, ["class", "style"])]),
|
|
77
|
-
_: 2
|
|
78
|
-
}, 1040)) : createCommentVNode("", true)]),
|
|
63
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), { [`${unref(prefixCls)}-rtl`]: rtl.value }]) }, [createVNode(unref(RenderVNodes), { content: getVisibleAvatars(children.value) }, null, 8, ["content"]), getOverflowAvatars(children.value).length > 0 ? (openBlock(), createBlock(unref(Popover), normalizeProps(mergeProps({ key: 0 }, __props.maxPopoverTriggerProps)), {
|
|
64
|
+
content: withCtx(() => [createElementVNode("div", { class: normalizeClass(`${unref(avatarPrefixCls)}-group-popover`) }, [createVNode(unref(RenderVNodes), { content: getOverflowAvatars(children.value) }, null, 8, ["content"])], 2)]),
|
|
65
|
+
default: withCtx(() => [createVNode(avatar_default, {
|
|
66
|
+
class: normalizeClass(`${unref(prefixCls)}-max-count-avatar`),
|
|
67
|
+
style: normalizeStyle(__props.maxStyle)
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [createTextVNode(" +" + toDisplayString(getOverflowAvatars(children.value).length), 1)]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["class", "style"])]),
|
|
79
72
|
_: 1
|
|
80
|
-
}
|
|
73
|
+
}, 16)) : createCommentVNode("", true)], 2);
|
|
81
74
|
};
|
|
82
75
|
}
|
|
83
76
|
}));
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNumber } from "../_utils/is.js";
|
|
5
|
+
import { getAllElements } from "../_utils/vue-utils.js";
|
|
5
6
|
import resize_observer_v2_default from "../_components/resize-observer-v2.js";
|
|
6
7
|
import IconLoading from "../icon/icon-loading/index.js";
|
|
7
8
|
import { useIndex } from "../_hooks/use-index.js";
|
|
8
9
|
import IconImageClose from "../icon/icon-image-close/index.js";
|
|
9
10
|
import { avatarGroupInjectionKey } from "./context.js";
|
|
10
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, toRefs, unref, useAttrs, useSlots, watch, withCtx } from "vue";
|
|
11
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, onUpdated, openBlock, ref, renderSlot, toRefs, unref, useAttrs, useSlots, watch, withCtx } from "vue";
|
|
11
12
|
//#region components/avatar/avatar.vue?vue&type=script&setup=true&lang.ts
|
|
12
13
|
var _hoisted_1 = ["src"];
|
|
13
14
|
var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Avatar" }), {}, {
|
|
@@ -74,7 +75,12 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
74
75
|
return _objectSpread2(_objectSpread2({}, triggerIconStyle), addon);
|
|
75
76
|
};
|
|
76
77
|
const emit = __emit;
|
|
77
|
-
|
|
78
|
+
/**
|
|
79
|
+
* @zh 可点击的头像交互图标
|
|
80
|
+
* @en Clickable avatar interaction icon
|
|
81
|
+
* @slot trigger-icon
|
|
82
|
+
*/
|
|
83
|
+
const slots = useSlots();
|
|
78
84
|
const attrs = useAttrs();
|
|
79
85
|
const props = __props;
|
|
80
86
|
const { shape, autoFixFontSize, triggerType, triggerIconStyle } = toRefs(props);
|
|
@@ -99,10 +105,23 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
99
105
|
var _groupCtx$autoFixFont;
|
|
100
106
|
return (_groupCtx$autoFixFont = groupCtx === null || groupCtx === void 0 ? void 0 : groupCtx.autoFixFontSize) !== null && _groupCtx$autoFixFont !== void 0 ? _groupCtx$autoFixFont : autoFixFontSize.value;
|
|
101
107
|
});
|
|
102
|
-
const isImage =
|
|
108
|
+
const isImage = computed(() => {
|
|
109
|
+
var _slots$default, _slots$default2;
|
|
110
|
+
const firstChild = getAllElements((_slots$default = (_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)) !== null && _slots$default !== void 0 ? _slots$default : [])[0];
|
|
111
|
+
if (typeof (firstChild === null || firstChild === void 0 ? void 0 : firstChild.type) === "object" || typeof (firstChild === null || firstChild === void 0 ? void 0 : firstChild.type) === "function") {
|
|
112
|
+
var _wrapperRef$value;
|
|
113
|
+
const tag = (_wrapperRef$value = wrapperRef.value) === null || _wrapperRef$value === void 0 || (_wrapperRef$value = _wrapperRef$value.firstElementChild) === null || _wrapperRef$value === void 0 ? void 0 : _wrapperRef$value.tagName;
|
|
114
|
+
return tag === "IMG" || tag === "PICTURE";
|
|
115
|
+
}
|
|
116
|
+
return (firstChild === null || firstChild === void 0 ? void 0 : firstChild.type) === "img" || (firstChild === null || firstChild === void 0 ? void 0 : firstChild.type) === "picture";
|
|
117
|
+
});
|
|
103
118
|
const hasError = ref(false);
|
|
104
119
|
const shouldLoad = ref(true);
|
|
105
120
|
const isLoaded = ref(false);
|
|
121
|
+
watch(() => props.imageUrl, () => {
|
|
122
|
+
hasError.value = false;
|
|
123
|
+
isLoaded.value = false;
|
|
124
|
+
});
|
|
106
125
|
const index = groupCtx ? useIndex({
|
|
107
126
|
itemRef,
|
|
108
127
|
selector: `.${prefixCls}`
|
|
@@ -116,7 +135,9 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
116
135
|
if (groupCtx) {
|
|
117
136
|
var _mergedSize$value;
|
|
118
137
|
style.zIndex = groupCtx.zIndexAscend ? index.value + 1 : groupCtx.total - index.value;
|
|
119
|
-
|
|
138
|
+
const margin = index.value !== 0 ? `-${((_mergedSize$value = mergedSize.value) !== null && _mergedSize$value !== void 0 ? _mergedSize$value : 40) / 4}px` : "0";
|
|
139
|
+
style.marginLeft = rtl.value ? "0" : margin;
|
|
140
|
+
style.marginRight = rtl.value ? margin : void 0;
|
|
120
141
|
}
|
|
121
142
|
return style;
|
|
122
143
|
});
|
|
@@ -126,24 +147,23 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
126
147
|
triggerType: triggerType.value
|
|
127
148
|
}));
|
|
128
149
|
const autoFixFontSizeHandler = () => {
|
|
129
|
-
|
|
150
|
+
nextTick(() => {
|
|
130
151
|
var _mergedSize$value2;
|
|
131
152
|
if (!wrapperRef.value || !itemRef.value) return;
|
|
153
|
+
if (isImage.value || props.imageUrl || !mergedAutoFixFontSize.value) {
|
|
154
|
+
wrapperRef.value.style.transform = "";
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
132
157
|
const textWidth = wrapperRef.value.clientWidth;
|
|
133
158
|
const avatarWidth = (_mergedSize$value2 = mergedSize.value) !== null && _mergedSize$value2 !== void 0 ? _mergedSize$value2 : itemRef.value.offsetWidth;
|
|
134
159
|
const scale = avatarWidth / (textWidth + 8);
|
|
135
|
-
|
|
160
|
+
wrapperRef.value.style.transform = avatarWidth && scale < 1 ? `scale(${scale}) translateX(-50%)` : "";
|
|
136
161
|
shouldLoad.value = true;
|
|
137
162
|
});
|
|
138
163
|
};
|
|
139
|
-
onMounted(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
if (mergedAutoFixFontSize.value) autoFixFontSizeHandler();
|
|
143
|
-
});
|
|
144
|
-
watch(() => props.size, () => {
|
|
145
|
-
if (mergedAutoFixFontSize.value) autoFixFontSizeHandler();
|
|
146
|
-
});
|
|
164
|
+
onMounted(autoFixFontSizeHandler);
|
|
165
|
+
onUpdated(autoFixFontSizeHandler);
|
|
166
|
+
watch([mergedSize, mergedAutoFixFontSize], autoFixFontSizeHandler);
|
|
147
167
|
const cls = computed(() => [prefixCls, `${prefixCls}-${mergedShape.value}`]);
|
|
148
168
|
const wrapperCls = computed(() => isImage.value || props.imageUrl ? `${prefixCls}-image` : `${prefixCls}-text`);
|
|
149
169
|
const onClick = (e) => {
|
|
@@ -187,11 +207,7 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
187
207
|
!(hasError.value || !shouldLoad.value) ? (openBlock(), createElementBlock("img", {
|
|
188
208
|
key: 2,
|
|
189
209
|
src: __props.imageUrl,
|
|
190
|
-
style: normalizeStyle({
|
|
191
|
-
width: __props.size + "px",
|
|
192
|
-
height: __props.size + "px",
|
|
193
|
-
objectFit: __props.objectFit
|
|
194
|
-
}),
|
|
210
|
+
style: normalizeStyle({ objectFit: __props.objectFit }),
|
|
195
211
|
alt: "avatar",
|
|
196
212
|
onLoad: handleImgLoad,
|
|
197
213
|
onError: handleImgError
|
|
@@ -159,4 +159,9 @@ $avatar-prefix-cls: string.unquote('#{theme.$prefix}-avatar');
|
|
|
159
159
|
// 气泡内头像使用正向间距,需覆盖条带布局写入的内联 margin-left
|
|
160
160
|
margin-left: $avatar-group-popover-item-spacing !important;
|
|
161
161
|
}
|
|
162
|
+
|
|
163
|
+
&-group-popover &-rtl:not(:first-child) {
|
|
164
|
+
margin-right: $avatar-group-popover-item-spacing !important;
|
|
165
|
+
margin-left: 0 !important;
|
|
166
|
+
}
|
|
162
167
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isString } from "../_utils/is.js";
|
|
4
4
|
import { off, on } from "../_utils/dom.js";
|
|
5
5
|
import { throttleByRaf } from "../_utils/throttle-by-raf.js";
|
|
6
6
|
import { useI18n } from "../locale/index.js";
|
|
7
7
|
import IconToTop from "../icon/icon-to-top/index.js";
|
|
8
|
-
import { Transition, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, onMounted, onUnmounted, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
|
8
|
+
import { Transition, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, onMounted, onUnmounted, openBlock, ref, renderSlot, unref, watch, withCtx } from "vue";
|
|
9
9
|
import BTween from "b-tween";
|
|
10
10
|
//#region components/back-top/back-top.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var _hoisted_1 = ["aria-label"];
|
|
@@ -48,7 +48,7 @@ var back_top_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
48
48
|
const prefixCls = getPrefixCls("back-top");
|
|
49
49
|
const visible = ref(false);
|
|
50
50
|
const target = ref();
|
|
51
|
-
|
|
51
|
+
let tween;
|
|
52
52
|
const scrollHandler = throttleByRaf(() => {
|
|
53
53
|
if (target.value) {
|
|
54
54
|
const { visibleHeight } = props;
|
|
@@ -61,26 +61,36 @@ var back_top_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
61
61
|
return container;
|
|
62
62
|
};
|
|
63
63
|
onMounted(() => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
watch(() => props.targetContainer, (container, _previous, onCleanup) => {
|
|
65
|
+
target.value = container ? getContainer(container) : document.documentElement;
|
|
66
|
+
visible.value = false;
|
|
67
|
+
if (target.value) {
|
|
68
|
+
const eventTarget = container ? target.value : window;
|
|
69
|
+
on(eventTarget, "scroll", scrollHandler);
|
|
70
|
+
scrollHandler();
|
|
71
|
+
onCleanup(() => {
|
|
72
|
+
off(eventTarget, "scroll", scrollHandler);
|
|
73
|
+
scrollHandler.cancel();
|
|
74
|
+
tween === null || tween === void 0 || tween.stop();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}, { immediate: true });
|
|
70
78
|
});
|
|
79
|
+
watch(() => props.visibleHeight, scrollHandler);
|
|
71
80
|
onUnmounted(() => {
|
|
72
81
|
scrollHandler.cancel();
|
|
73
|
-
|
|
82
|
+
tween === null || tween === void 0 || tween.stop();
|
|
74
83
|
});
|
|
75
84
|
const scrollToTop = () => {
|
|
85
|
+
tween === null || tween === void 0 || tween.stop();
|
|
76
86
|
if (target.value) {
|
|
77
87
|
var _window$matchMedia, _window;
|
|
78
|
-
if ((_window$matchMedia = (_window = window).matchMedia) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.call(_window, "(prefers-reduced-motion: reduce)").matches) {
|
|
88
|
+
if (props.duration <= 0 || ((_window$matchMedia = (_window = window).matchMedia) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.call(_window, "(prefers-reduced-motion: reduce)").matches)) {
|
|
79
89
|
target.value.scrollTop = 0;
|
|
80
90
|
return;
|
|
81
91
|
}
|
|
82
92
|
const { scrollTop } = target.value;
|
|
83
|
-
new BTween({
|
|
93
|
+
tween = new BTween({
|
|
84
94
|
from: { scrollTop },
|
|
85
95
|
to: { scrollTop: 0 },
|
|
86
96
|
easing: props.easing,
|
|
@@ -88,7 +98,8 @@ var back_top_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
88
98
|
onUpdate: (keys) => {
|
|
89
99
|
if (target.value) target.value.scrollTop = keys.scrollTop;
|
|
90
100
|
}
|
|
91
|
-
})
|
|
101
|
+
});
|
|
102
|
+
tween.start();
|
|
92
103
|
}
|
|
93
104
|
};
|
|
94
105
|
return (_ctx, _cache) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import NumberFlow from "../number-flow/index.js";
|
|
5
5
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref, useSlots } from "vue";
|
|
@@ -48,11 +48,11 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
48
48
|
});
|
|
49
49
|
const hasCount = computed(() => __props.count != null);
|
|
50
50
|
const countValue = computed(() => Math.max(Number(__props.count) || 0, 0));
|
|
51
|
-
const wrapperClassName =
|
|
51
|
+
const wrapperClassName = () => [prefixCls, {
|
|
52
52
|
[`${prefixCls}-status`]: __props.status,
|
|
53
53
|
[`${prefixCls}-no-children`]: !slots.default,
|
|
54
54
|
[`${prefixCls}-rtl`]: rtl.value
|
|
55
|
-
}]
|
|
55
|
+
}];
|
|
56
56
|
const computedDotStyle = computed(() => {
|
|
57
57
|
const style = _objectSpread2({}, __props.dotStyle);
|
|
58
58
|
const [leftOffset, topOffset] = __props.offset;
|
|
@@ -66,7 +66,7 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
66
66
|
const displayCount = computed(() => isCountOverflow.value ? __props.maxCount : countValue.value);
|
|
67
67
|
const displaySuffix = computed(() => isCountOverflow.value ? "+" : void 0);
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
|
-
return openBlock(), createElementBlock("span", { class: normalizeClass(wrapperClassName
|
|
69
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(wrapperClassName()) }, [
|
|
70
70
|
renderSlot(_ctx.$slots, "default"),
|
|
71
71
|
_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
|
|
72
72
|
key: 0,
|
|
@@ -108,7 +108,7 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
108
108
|
"suffix",
|
|
109
109
|
"animated"
|
|
110
110
|
])], 6)) : createCommentVNode("", true),
|
|
111
|
-
__props.status && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
|
|
111
|
+
!_ctx.$slots.content && __props.status && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
|
|
112
112
|
key: 5,
|
|
113
113
|
class: normalizeClass(`${unref(prefixCls)}-number`),
|
|
114
114
|
style: normalizeStyle(mergedStyle.value)
|
|
@@ -15,7 +15,7 @@ type __VLS_Props = {
|
|
|
15
15
|
valueTransformer?: (data: UnknownRecord) => UnknownRecord;
|
|
16
16
|
beforeSubmit?: (context: BasicCrudTableModalSubmitContext<TableData>) => MaybePromise<boolean | void>;
|
|
17
17
|
};
|
|
18
|
-
declare function open(row?: TableData): Promise<
|
|
18
|
+
declare function open(row?: TableData): Promise<boolean>;
|
|
19
19
|
type __VLS_ModelProps = {
|
|
20
20
|
'visible'?: boolean;
|
|
21
21
|
'model'?: UnknownRecord;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/asyncToGenerator.js";
|
|
3
3
|
import JsonForm from "../json-form/index.js";
|
|
4
4
|
import Modal from "../modal/index.js";
|
|
5
|
-
import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, openBlock, renderList, renderSlot, shallowRef, unref, useModel, useSlots, withCtx } from "vue";
|
|
5
|
+
import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, openBlock, renderList, renderSlot, shallowRef, unref, useModel, useSlots, withCtx } from "vue";
|
|
6
6
|
import { cloneDeep } from "es-toolkit";
|
|
7
7
|
//#region components/basic-crud-table/basic-crud-modal.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var basic_crud_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "BasicCrudModal" }), {}, {
|
|
@@ -41,26 +41,34 @@ var basic_crud_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
41
41
|
row: editingRow.value,
|
|
42
42
|
model: model.value
|
|
43
43
|
}));
|
|
44
|
-
const formSlotNames =
|
|
44
|
+
const formSlotNames = () => Object.keys(slots).filter((name) => !["title", "footer"].includes(name));
|
|
45
|
+
let openRequestId = 0;
|
|
46
|
+
onBeforeUnmount(() => {
|
|
47
|
+
openRequestId++;
|
|
48
|
+
});
|
|
45
49
|
function open(_x) {
|
|
46
50
|
return _open.apply(this, arguments);
|
|
47
51
|
}
|
|
48
52
|
function _open() {
|
|
49
53
|
_open = _asyncToGenerator(function* (row) {
|
|
50
54
|
var _formRef$value;
|
|
55
|
+
const requestId = ++openRequestId;
|
|
51
56
|
type.value = row ? "edit" : "create";
|
|
52
57
|
editingRow.value = row;
|
|
53
58
|
model.value = cloneDeep(initialModel.value);
|
|
54
59
|
if (row) try {
|
|
55
60
|
const detail = __props.detailApi ? yield __props.detailApi(row) : cloneDeep(_objectSpread2({}, row));
|
|
61
|
+
if (requestId !== openRequestId) return false;
|
|
56
62
|
model.value = __props.valueTransformer ? __props.valueTransformer(detail) : detail;
|
|
57
63
|
} catch (error) {
|
|
58
|
-
emit("error", error);
|
|
59
|
-
return;
|
|
64
|
+
if (requestId === openRequestId) emit("error", error);
|
|
65
|
+
return false;
|
|
60
66
|
}
|
|
61
67
|
visible.value = true;
|
|
62
68
|
yield nextTick();
|
|
69
|
+
if (requestId !== openRequestId) return false;
|
|
63
70
|
(_formRef$value = formRef.value) === null || _formRef$value === void 0 || _formRef$value.clearValidate();
|
|
71
|
+
return true;
|
|
64
72
|
});
|
|
65
73
|
return _open.apply(this, arguments);
|
|
66
74
|
}
|
|
@@ -69,15 +77,15 @@ var basic_crud_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
69
77
|
}
|
|
70
78
|
function _handleBeforeOk() {
|
|
71
79
|
_handleBeforeOk = _asyncToGenerator(function* () {
|
|
72
|
-
var _formRef$value2;
|
|
73
|
-
if (yield (_formRef$value2 = formRef.value) === null || _formRef$value2 === void 0 ? void 0 : _formRef$value2.validate()) return false;
|
|
74
|
-
const context = {
|
|
75
|
-
type: type.value,
|
|
76
|
-
row: editingRow.value,
|
|
77
|
-
model: model.value
|
|
78
|
-
};
|
|
79
|
-
if (__props.beforeSubmit && (yield __props.beforeSubmit(context)) === false) return false;
|
|
80
80
|
try {
|
|
81
|
+
var _formRef$value2;
|
|
82
|
+
if (yield (_formRef$value2 = formRef.value) === null || _formRef$value2 === void 0 ? void 0 : _formRef$value2.validate()) return false;
|
|
83
|
+
const context = {
|
|
84
|
+
type: type.value,
|
|
85
|
+
row: editingRow.value,
|
|
86
|
+
model: model.value
|
|
87
|
+
};
|
|
88
|
+
if (__props.beforeSubmit && (yield __props.beforeSubmit(context)) === false) return false;
|
|
81
89
|
const api = type.value === "create" ? __props.createApi : __props.updateApi;
|
|
82
90
|
const result = api ? yield api(model.value) : void 0;
|
|
83
91
|
emit("success", result, context);
|
|
@@ -91,6 +99,7 @@ var basic_crud_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
91
99
|
}
|
|
92
100
|
function handleClose() {
|
|
93
101
|
var _formRef$value3, _formRef$value4;
|
|
102
|
+
openRequestId++;
|
|
94
103
|
model.value = cloneDeep(initialModel.value);
|
|
95
104
|
editingRow.value = void 0;
|
|
96
105
|
type.value = "create";
|
|
@@ -117,7 +126,7 @@ var basic_crud_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
117
126
|
ref: formRef,
|
|
118
127
|
modelValue: model.value,
|
|
119
128
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
|
|
120
|
-
}, __props.modalFormProps), createSlots({ _: 2 }, [renderList(formSlotNames
|
|
129
|
+
}, __props.modalFormProps), createSlots({ _: 2 }, [renderList(formSlotNames(), (name) => {
|
|
121
130
|
return {
|
|
122
131
|
name,
|
|
123
132
|
fn: withCtx((data) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, data), slotContext.value))))])
|
|
@@ -88,7 +88,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
88
88
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
89
89
|
"onUpdate:model"?: ((value: UnknownRecord) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
|
-
open: (row?: TableData) => Promise<
|
|
91
|
+
open: (row?: TableData) => Promise<boolean>;
|
|
92
92
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
93
93
|
formRef: import("vue").ShallowRef<({
|
|
94
94
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -351,7 +351,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
351
351
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
352
352
|
"onUpdate:model"?: ((value: UnknownRecord) => any) | undefined;
|
|
353
353
|
}>, "type" | "open" | "formRef"> & {
|
|
354
|
-
open: (row?: TableData) => Promise<
|
|
354
|
+
open: (row?: TableData) => Promise<boolean>;
|
|
355
355
|
type: "create" | "edit";
|
|
356
356
|
formRef: ({
|
|
357
357
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -515,7 +515,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
515
515
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
516
516
|
"onUpdate:model"?: ((value: UnknownRecord) => any) | undefined;
|
|
517
517
|
}>, {
|
|
518
|
-
open: (row?: TableData) => Promise<
|
|
518
|
+
open: (row?: TableData) => Promise<boolean>;
|
|
519
519
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
520
520
|
formRef: import("vue").ShallowRef<({
|
|
521
521
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -778,7 +778,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
778
778
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
779
779
|
"onUpdate:model"?: ((value: UnknownRecord) => any) | undefined;
|
|
780
780
|
}>, "type" | "open" | "formRef"> & {
|
|
781
|
-
open: (row?: TableData) => Promise<
|
|
781
|
+
open: (row?: TableData) => Promise<boolean>;
|
|
782
782
|
type: "create" | "edit";
|
|
783
783
|
formRef: ({
|
|
784
784
|
$: import("vue").ComponentInternalInstance;
|