@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,8 +1,7 @@
|
|
|
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
|
-
import
|
|
5
|
-
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/asyncToGenerator.js";
|
|
4
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/asyncToGenerator.js";
|
|
6
5
|
import Button from "../button/index.js";
|
|
7
6
|
import Spin from "../spin/index.js";
|
|
8
7
|
import Link from "../link/index.js";
|
|
@@ -11,7 +10,7 @@ import Space from "../space/index.js";
|
|
|
11
10
|
import Table from "../table/index.js";
|
|
12
11
|
import Toolbar from "../toolbar/index.js";
|
|
13
12
|
import basic_crud_modal_default from "./basic-crud-modal.js";
|
|
14
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
|
|
13
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
|
|
15
14
|
import { isFunction, isNil, isString, omitBy } from "es-toolkit";
|
|
16
15
|
//#region components/basic-crud-table/basic-crud-table.vue?vue&type=script&setup=true&lang.ts
|
|
17
16
|
var _hoisted_1 = ["aria-busy"];
|
|
@@ -140,14 +139,14 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
140
139
|
[`${prefixCls}-full-height`]: __props.fullHeight,
|
|
141
140
|
[`${prefixCls}-loading`]: loading.value
|
|
142
141
|
}]);
|
|
143
|
-
const toolbarSlotNames =
|
|
142
|
+
const toolbarSlotNames = () => getForwardedSlotNames("toolbar__", [
|
|
144
143
|
"default",
|
|
145
144
|
"action_prepend",
|
|
146
145
|
"action_middle",
|
|
147
146
|
"action_append"
|
|
148
|
-
])
|
|
149
|
-
const tableSlotNames =
|
|
150
|
-
const modalSlotNames =
|
|
147
|
+
]);
|
|
148
|
+
const tableSlotNames = () => getForwardedSlotNames("table__", ["action_prepend", "action_append"]);
|
|
149
|
+
const modalSlotNames = () => getForwardedSlotNames("modal__");
|
|
151
150
|
const resolvedColumns = computed(() => __props.showActionColumn ? [...__props.columns, {
|
|
152
151
|
title: "操作",
|
|
153
152
|
dataIndex: "__basic_crud_action__",
|
|
@@ -190,18 +189,26 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
190
189
|
function isObjectResult(value) {
|
|
191
190
|
return !!value && typeof value === "object" && Array.isArray(value.data);
|
|
192
191
|
}
|
|
192
|
+
let fetchRequestId = 0;
|
|
193
|
+
onBeforeUnmount(() => {
|
|
194
|
+
fetchRequestId++;
|
|
195
|
+
deleteContentRequestId++;
|
|
196
|
+
});
|
|
193
197
|
function handleFetchData() {
|
|
194
198
|
return _handleFetchData.apply(this, arguments);
|
|
195
199
|
}
|
|
196
200
|
function _handleFetchData() {
|
|
197
201
|
_handleFetchData = _asyncToGenerator(function* (fetchParams = params.value) {
|
|
198
202
|
if (isNil(__props.fetchTableApi)) return;
|
|
203
|
+
const requestId = ++fetchRequestId;
|
|
199
204
|
loading.value = true;
|
|
200
205
|
try {
|
|
201
206
|
const requestParams = __props.fetchExcludeEmptyValues ? omitBy(fetchParams, (value) => value === "" || value === null || value === void 0) : fetchParams;
|
|
202
207
|
const response = yield __props.fetchTableApi(requestParams);
|
|
203
|
-
|
|
208
|
+
if (requestId !== fetchRequestId) return;
|
|
204
209
|
const result = isFunction(__props.tableDataTransformer) ? yield __props.tableDataTransformer(response) : response;
|
|
210
|
+
if (requestId !== fetchRequestId) return;
|
|
211
|
+
fetchData.value = response;
|
|
205
212
|
if (Array.isArray(result)) {
|
|
206
213
|
tableData.value = result;
|
|
207
214
|
total.value = result.length;
|
|
@@ -212,9 +219,9 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
212
219
|
} else return;
|
|
213
220
|
emit("tableFetched", tableData.value, result);
|
|
214
221
|
} catch (error) {
|
|
215
|
-
emit("error", error);
|
|
222
|
+
if (requestId === fetchRequestId) emit("error", error);
|
|
216
223
|
} finally {
|
|
217
|
-
loading.value = false;
|
|
224
|
+
if (requestId === fetchRequestId) loading.value = false;
|
|
218
225
|
}
|
|
219
226
|
});
|
|
220
227
|
return _handleFetchData.apply(this, arguments);
|
|
@@ -270,36 +277,51 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
270
277
|
function _handleEdit() {
|
|
271
278
|
_handleEdit = _asyncToGenerator(function* (row, context) {
|
|
272
279
|
var _modalRef$value2;
|
|
273
|
-
yield (_modalRef$value2 = modalRef.value) === null || _modalRef$value2 === void 0 ? void 0 : _modalRef$value2.open(row);
|
|
274
|
-
emit("edit", row, context);
|
|
280
|
+
if (yield (_modalRef$value2 = modalRef.value) === null || _modalRef$value2 === void 0 ? void 0 : _modalRef$value2.open(row)) emit("edit", row, context);
|
|
275
281
|
});
|
|
276
282
|
return _handleEdit.apply(this, arguments);
|
|
277
283
|
}
|
|
278
284
|
const deleteConfirmContent = ref("确定要删除此条记录吗?");
|
|
279
285
|
const pendingDeleteRow = shallowRef();
|
|
286
|
+
let deleteContentRequestId = 0;
|
|
280
287
|
function resolveDeleteContent(row) {
|
|
281
288
|
if (isString(__props.deleteContent)) return __props.deleteContent;
|
|
282
289
|
if (isFunction(__props.deleteContent)) return __props.deleteContent(row);
|
|
283
290
|
const name = __props.deleteNameKey ? row[__props.deleteNameKey] : void 0;
|
|
284
291
|
return name ? `确定删除【${String(name)}】吗?` : "确定要删除此条记录吗?";
|
|
285
292
|
}
|
|
286
|
-
function handleDeletePopupChange(
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
if (
|
|
293
|
+
function handleDeletePopupChange(_x3, _x4) {
|
|
294
|
+
return _handleDeletePopupChange.apply(this, arguments);
|
|
295
|
+
}
|
|
296
|
+
function _handleDeletePopupChange() {
|
|
297
|
+
_handleDeletePopupChange = _asyncToGenerator(function* (visible, row) {
|
|
298
|
+
if (!visible) {
|
|
299
|
+
if (pendingDeleteRow.value === row) {
|
|
300
|
+
pendingDeleteRow.value = void 0;
|
|
301
|
+
deleteContentRequestId++;
|
|
302
|
+
}
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
pendingDeleteRow.value = row;
|
|
306
|
+
const requestId = ++deleteContentRequestId;
|
|
307
|
+
deleteConfirmContent.value = "确定要删除此条记录吗?";
|
|
308
|
+
try {
|
|
309
|
+
const content = yield resolveDeleteContent(row);
|
|
310
|
+
if (requestId === deleteContentRequestId) deleteConfirmContent.value = content;
|
|
311
|
+
} catch (error) {
|
|
312
|
+
if (requestId === deleteContentRequestId) emit("error", error);
|
|
313
|
+
}
|
|
292
314
|
});
|
|
293
|
-
|
|
315
|
+
return _handleDeletePopupChange.apply(this, arguments);
|
|
294
316
|
}
|
|
295
|
-
function executeDelete(
|
|
317
|
+
function executeDelete(_x5, _x6) {
|
|
296
318
|
return _executeDelete.apply(this, arguments);
|
|
297
319
|
}
|
|
298
320
|
function _executeDelete() {
|
|
299
321
|
_executeDelete = _asyncToGenerator(function* (row, context) {
|
|
300
|
-
if (__props.beforeDelete && (yield __props.beforeDelete(row)) === false) return false;
|
|
301
|
-
emit("delete", row, context);
|
|
302
322
|
try {
|
|
323
|
+
if (__props.beforeDelete && (yield __props.beforeDelete(row)) === false) return false;
|
|
324
|
+
emit("delete", row, context);
|
|
303
325
|
if (__props.deleteApi) yield __props.deleteApi(row);
|
|
304
326
|
yield handleFetchData();
|
|
305
327
|
return true;
|
|
@@ -310,12 +332,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
310
332
|
});
|
|
311
333
|
return _executeDelete.apply(this, arguments);
|
|
312
334
|
}
|
|
313
|
-
function
|
|
314
|
-
const row = pendingDeleteRow.value;
|
|
315
|
-
if (!row) return Promise.resolve(false);
|
|
316
|
-
return executeDelete(row);
|
|
317
|
-
}
|
|
318
|
-
function handleModalSuccess(_x5, _x6) {
|
|
335
|
+
function handleModalSuccess(_x7, _x8) {
|
|
319
336
|
return _handleModalSuccess.apply(this, arguments);
|
|
320
337
|
}
|
|
321
338
|
function _handleModalSuccess() {
|
|
@@ -325,7 +342,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
325
342
|
});
|
|
326
343
|
return _handleModalSuccess.apply(this, arguments);
|
|
327
344
|
}
|
|
328
|
-
function handlePageChange(
|
|
345
|
+
function handlePageChange(_x9) {
|
|
329
346
|
return _handlePageChange.apply(this, arguments);
|
|
330
347
|
}
|
|
331
348
|
function _handlePageChange() {
|
|
@@ -335,7 +352,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
335
352
|
});
|
|
336
353
|
return _handlePageChange.apply(this, arguments);
|
|
337
354
|
}
|
|
338
|
-
function handlePageSizeChange(
|
|
355
|
+
function handlePageSizeChange(_x10) {
|
|
339
356
|
return _handlePageSizeChange.apply(this, arguments);
|
|
340
357
|
}
|
|
341
358
|
function _handlePageSizeChange() {
|
|
@@ -346,7 +363,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
346
363
|
});
|
|
347
364
|
return _handlePageSizeChange.apply(this, arguments);
|
|
348
365
|
}
|
|
349
|
-
function handleTableChange(
|
|
366
|
+
function handleTableChange(_x11, _x12) {
|
|
350
367
|
return _handleTableChange.apply(this, arguments);
|
|
351
368
|
}
|
|
352
369
|
function _handleTableChange() {
|
|
@@ -436,7 +453,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
436
453
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "toolbar__action_prepend")]),
|
|
437
454
|
key: "1"
|
|
438
455
|
} : void 0,
|
|
439
|
-
renderList(toolbarSlotNames
|
|
456
|
+
renderList(toolbarSlotNames(), (name) => {
|
|
440
457
|
return {
|
|
441
458
|
name,
|
|
442
459
|
fn: withCtx((data) => [renderSlot(_ctx.$slots, `toolbar__${name}`, normalizeProps(guardReactiveProps(data)))])
|
|
@@ -476,7 +493,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
476
493
|
key: 1,
|
|
477
494
|
content: deleteConfirmContent.value,
|
|
478
495
|
type: "warning",
|
|
479
|
-
"on-before-ok":
|
|
496
|
+
"on-before-ok": () => executeDelete(data.record),
|
|
480
497
|
onPopupVisibleChange: (visible) => handleDeletePopupChange(visible, data.record)
|
|
481
498
|
}, {
|
|
482
499
|
default: withCtx(() => [createVNode(unref(Link), mergeProps({
|
|
@@ -487,13 +504,17 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
487
504
|
_: 1
|
|
488
505
|
}, 16)]),
|
|
489
506
|
_: 2
|
|
490
|
-
}, 1032, [
|
|
507
|
+
}, 1032, [
|
|
508
|
+
"content",
|
|
509
|
+
"on-before-ok",
|
|
510
|
+
"onPopupVisibleChange"
|
|
511
|
+
])) : createCommentVNode("", true),
|
|
491
512
|
renderSlot(_ctx.$slots, "table__action_append", normalizeProps(guardReactiveProps(data)))
|
|
492
513
|
]),
|
|
493
514
|
_: 2
|
|
494
515
|
}, 1024)]),
|
|
495
516
|
_: 2
|
|
496
|
-
}, [renderList(tableSlotNames
|
|
517
|
+
}, [renderList(tableSlotNames(), (name) => {
|
|
497
518
|
return {
|
|
498
519
|
name,
|
|
499
520
|
fn: withCtx((data) => [renderSlot(_ctx.$slots, `table__${name}`, normalizeProps(guardReactiveProps(data)))])
|
|
@@ -523,7 +544,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
523
544
|
onSuccess: handleModalSuccess,
|
|
524
545
|
onClose: _cache[3] || (_cache[3] = ($event) => emit("modalClose")),
|
|
525
546
|
onError: _cache[4] || (_cache[4] = ($event) => emit("error", $event))
|
|
526
|
-
}, createSlots({ _: 2 }, [renderList(modalSlotNames
|
|
547
|
+
}, createSlots({ _: 2 }, [renderList(modalSlotNames(), (name) => {
|
|
527
548
|
return {
|
|
528
549
|
name,
|
|
529
550
|
fn: withCtx((data) => [renderSlot(_ctx.$slots, `modal__${name}`, normalizeProps(guardReactiveProps(data)))])
|
|
@@ -84,7 +84,7 @@ declare const BasicCrudTable: {
|
|
|
84
84
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
85
85
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
87
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
88
88
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
89
89
|
formRef: import("vue").ShallowRef<({
|
|
90
90
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -347,7 +347,7 @@ declare const BasicCrudTable: {
|
|
|
347
347
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
348
348
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
349
349
|
}>, "type" | "open" | "formRef"> & {
|
|
350
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
350
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
351
351
|
type: "create" | "edit";
|
|
352
352
|
formRef: ({
|
|
353
353
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -511,7 +511,7 @@ declare const BasicCrudTable: {
|
|
|
511
511
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
512
512
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
513
513
|
}>, {
|
|
514
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
514
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
515
515
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
516
516
|
formRef: import("vue").ShallowRef<({
|
|
517
517
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -774,7 +774,7 @@ declare const BasicCrudTable: {
|
|
|
774
774
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
775
775
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
776
776
|
}>, "type" | "open" | "formRef"> & {
|
|
777
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
777
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
778
778
|
type: "create" | "edit";
|
|
779
779
|
formRef: ({
|
|
780
780
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -994,7 +994,7 @@ declare const BasicCrudTable: {
|
|
|
994
994
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
995
995
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
996
996
|
}>, {
|
|
997
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
997
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
998
998
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
999
999
|
formRef: import("vue").ShallowRef<({
|
|
1000
1000
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1257,7 +1257,7 @@ declare const BasicCrudTable: {
|
|
|
1257
1257
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1258
1258
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
1259
1259
|
}>, "type" | "open" | "formRef"> & {
|
|
1260
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
1260
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
1261
1261
|
type: "create" | "edit";
|
|
1262
1262
|
formRef: ({
|
|
1263
1263
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1421,7 +1421,7 @@ declare const BasicCrudTable: {
|
|
|
1421
1421
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1422
1422
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
1423
1423
|
}>, {
|
|
1424
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
1424
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
1425
1425
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
1426
1426
|
formRef: import("vue").ShallowRef<({
|
|
1427
1427
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1684,7 +1684,7 @@ declare const BasicCrudTable: {
|
|
|
1684
1684
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1685
1685
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
1686
1686
|
}>, "type" | "open" | "formRef"> & {
|
|
1687
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
1687
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
1688
1688
|
type: "create" | "edit";
|
|
1689
1689
|
formRef: ({
|
|
1690
1690
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1886,7 +1886,7 @@ declare const BasicCrudTable: {
|
|
|
1886
1886
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1887
1887
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
1888
1888
|
}>, {
|
|
1889
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
1889
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
1890
1890
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
1891
1891
|
formRef: import("vue").ShallowRef<({
|
|
1892
1892
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -2149,7 +2149,7 @@ declare const BasicCrudTable: {
|
|
|
2149
2149
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2150
2150
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
2151
2151
|
}>, "type" | "open" | "formRef"> & {
|
|
2152
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
2152
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
2153
2153
|
type: "create" | "edit";
|
|
2154
2154
|
formRef: ({
|
|
2155
2155
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -2313,7 +2313,7 @@ declare const BasicCrudTable: {
|
|
|
2313
2313
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2314
2314
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
2315
2315
|
}>, {
|
|
2316
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
2316
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
2317
2317
|
type: import("vue").ComputedRef<"create" | "edit">;
|
|
2318
2318
|
formRef: import("vue").ShallowRef<({
|
|
2319
2319
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -2576,7 +2576,7 @@ declare const BasicCrudTable: {
|
|
|
2576
2576
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2577
2577
|
"onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
|
|
2578
2578
|
}>, "type" | "open" | "formRef"> & {
|
|
2579
|
-
open: (row?: import("../index.ts").TableData) => Promise<
|
|
2579
|
+
open: (row?: import("../index.ts").TableData) => Promise<boolean>;
|
|
2580
2580
|
type: "create" | "edit";
|
|
2581
2581
|
formRef: ({
|
|
2582
2582
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1,4 +1,4 @@
|
|
|
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 IconClose from "../icon/icon-close/index.js";
|
|
4
4
|
import { useI18n } from "../locale/index.js";
|
|
@@ -161,10 +161,10 @@ var bloom_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
161
161
|
}
|
|
162
162
|
function handlePopupVisibleChange(visible) {
|
|
163
163
|
if (visible) {
|
|
164
|
-
popupVisible.value = true;
|
|
165
164
|
window.clearTimeout(closeTimer);
|
|
166
165
|
captureTriggerStyle();
|
|
167
166
|
setOpen(true);
|
|
167
|
+
if (isOpen.value) popupVisible.value = true;
|
|
168
168
|
} else {
|
|
169
169
|
var _panelRootRef$value;
|
|
170
170
|
if (document.activeElement instanceof HTMLElement && ((_panelRootRef$value = panelRootRef.value) === null || _panelRootRef$value === void 0 ? void 0 : _panelRootRef$value.contains(document.activeElement))) focusTrigger();
|
|
@@ -200,6 +200,7 @@ var bloom_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
200
200
|
function focusPanel(attempt = 0) {
|
|
201
201
|
nextTick(() => {
|
|
202
202
|
var _panelRootRef$value2, _panelRootRef$value3;
|
|
203
|
+
if (!isOpen.value || !popupVisible.value) return;
|
|
203
204
|
const firstItem = (_panelRootRef$value2 = panelRootRef.value) === null || _panelRootRef$value2 === void 0 ? void 0 : _panelRootRef$value2.querySelector(`.${prefixCls}-item:not(:disabled)`);
|
|
204
205
|
const closeButton = (_panelRootRef$value3 = panelRootRef.value) === null || _panelRootRef$value3 === void 0 ? void 0 : _panelRootRef$value3.querySelector(`.${prefixCls}-close`);
|
|
205
206
|
const target = firstItem !== null && firstItem !== void 0 ? firstItem : closeButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
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 { registerPulseInstance } from "./pulseDriver.js";
|
|
4
4
|
import { generateBeamCSS, getPulseDriverConfig, sizePresets, sizeThemePresets } from "./styles.js";
|
|
@@ -112,6 +112,7 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
112
112
|
systemTheme.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
113
113
|
}
|
|
114
114
|
let mediaQueryCleanup = null;
|
|
115
|
+
const reducedMotion = ref(false);
|
|
115
116
|
onMounted(() => {
|
|
116
117
|
updateSystemTheme();
|
|
117
118
|
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
|
@@ -119,7 +120,16 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
119
120
|
systemTheme.value = e.matches ? "dark" : "light";
|
|
120
121
|
};
|
|
121
122
|
mq.addEventListener("change", handler);
|
|
122
|
-
|
|
123
|
+
const motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
124
|
+
const updateMotion = () => {
|
|
125
|
+
reducedMotion.value = motionQuery.matches;
|
|
126
|
+
};
|
|
127
|
+
updateMotion();
|
|
128
|
+
motionQuery.addEventListener("change", updateMotion);
|
|
129
|
+
mediaQueryCleanup = () => {
|
|
130
|
+
mq.removeEventListener("change", handler);
|
|
131
|
+
motionQuery.removeEventListener("change", updateMotion);
|
|
132
|
+
};
|
|
123
133
|
});
|
|
124
134
|
onUnmounted(() => {
|
|
125
135
|
mediaQueryCleanup === null || mediaQueryCleanup === void 0 || mediaQueryCleanup();
|
|
@@ -279,30 +289,33 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
279
289
|
return null;
|
|
280
290
|
}
|
|
281
291
|
onMounted(() => {
|
|
292
|
+
let observedChild = null;
|
|
282
293
|
const detect = () => {
|
|
283
|
-
if (props.borderRadius != null) return;
|
|
284
294
|
const child = getSlotElement();
|
|
285
|
-
if (
|
|
295
|
+
if (child !== observedChild && mutationObserver && wrapperRef.value) {
|
|
296
|
+
mutationObserver.disconnect();
|
|
297
|
+
mutationObserver.observe(wrapperRef.value, { childList: true });
|
|
298
|
+
if (child) mutationObserver.observe(child, {
|
|
299
|
+
attributes: true,
|
|
300
|
+
attributeFilter: ["class", "style"]
|
|
301
|
+
});
|
|
302
|
+
observedChild = child;
|
|
303
|
+
setupPulseGlowScale();
|
|
304
|
+
}
|
|
305
|
+
if (!child) {
|
|
306
|
+
detectedRadius.value = null;
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
286
309
|
const computed = getComputedStyle(child);
|
|
287
310
|
const raw = parseFloat(computed.borderTopLeftRadius);
|
|
288
|
-
if (!isNaN(raw) && raw
|
|
311
|
+
if (!isNaN(raw) && raw >= 0) detectedRadius.value = raw;
|
|
289
312
|
};
|
|
290
313
|
nextTick(() => {
|
|
291
|
-
detect();
|
|
292
314
|
const el = wrapperRef.value;
|
|
293
315
|
if (!el) return;
|
|
294
316
|
mutationObserver = new MutationObserver(detect);
|
|
295
|
-
mutationObserver.observe(el, {
|
|
296
|
-
|
|
297
|
-
subtree: false,
|
|
298
|
-
attributes: true,
|
|
299
|
-
attributeFilter: ["class", "style"]
|
|
300
|
-
});
|
|
301
|
-
const child = getSlotElement();
|
|
302
|
-
if (child) mutationObserver.observe(child, {
|
|
303
|
-
attributes: true,
|
|
304
|
-
attributeFilter: ["class", "style"]
|
|
305
|
-
});
|
|
317
|
+
mutationObserver.observe(el, { childList: true });
|
|
318
|
+
detect();
|
|
306
319
|
});
|
|
307
320
|
});
|
|
308
321
|
let intersectionCleanup = null;
|
|
@@ -320,14 +333,23 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
320
333
|
mutationObserver === null || mutationObserver === void 0 || mutationObserver.disconnect();
|
|
321
334
|
});
|
|
322
335
|
watch(() => props.active, (active) => {
|
|
323
|
-
if (active
|
|
324
|
-
|
|
336
|
+
if (active) {
|
|
337
|
+
isActive.value = true;
|
|
338
|
+
isFading.value = false;
|
|
339
|
+
} else if (!active && isActive.value && !isFading.value) {
|
|
340
|
+
if (shouldReduceMotion()) {
|
|
341
|
+
isActive.value = false;
|
|
342
|
+
emit("deactivate");
|
|
343
|
+
} else isFading.value = true;
|
|
344
|
+
}
|
|
325
345
|
});
|
|
326
346
|
onUnmounted(() => {
|
|
327
347
|
intersectionCleanup === null || intersectionCleanup === void 0 || intersectionCleanup();
|
|
328
348
|
});
|
|
329
349
|
let resizeObserverCleanup = null;
|
|
350
|
+
let resizeGeneration = 0;
|
|
330
351
|
function setupPulseGlowScale() {
|
|
352
|
+
const generation = ++resizeGeneration;
|
|
331
353
|
resizeObserverCleanup === null || resizeObserverCleanup === void 0 || resizeObserverCleanup();
|
|
332
354
|
resizeObserverCleanup = null;
|
|
333
355
|
if (props.size !== "pulse-outside") {
|
|
@@ -345,7 +367,13 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
345
367
|
const clamp = (value) => Math.max(MIN_SCALE, Math.min(MAX_SCALE, value));
|
|
346
368
|
const measure = () => {
|
|
347
369
|
const child = getSlotElement();
|
|
348
|
-
if (!child)
|
|
370
|
+
if (!child) {
|
|
371
|
+
pulseGlowScale.value = {
|
|
372
|
+
x: 1,
|
|
373
|
+
y: 1
|
|
374
|
+
};
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
349
377
|
const rect = child.getBoundingClientRect();
|
|
350
378
|
if (!rect.width || !rect.height) return;
|
|
351
379
|
const x = +clamp(rect.width / REF_WIDTH).toFixed(3);
|
|
@@ -356,6 +384,7 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
356
384
|
};
|
|
357
385
|
};
|
|
358
386
|
nextTick(() => {
|
|
387
|
+
if (generation !== resizeGeneration || !wrapperRef.value) return;
|
|
359
388
|
measure();
|
|
360
389
|
if (typeof ResizeObserver === "undefined") return;
|
|
361
390
|
const child = getSlotElement();
|
|
@@ -367,7 +396,10 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
367
396
|
}
|
|
368
397
|
watch(() => props.size, () => setupPulseGlowScale());
|
|
369
398
|
onMounted(() => setupPulseGlowScale());
|
|
370
|
-
onUnmounted(() =>
|
|
399
|
+
onUnmounted(() => {
|
|
400
|
+
resizeGeneration++;
|
|
401
|
+
resizeObserverCleanup === null || resizeObserverCleanup === void 0 || resizeObserverCleanup();
|
|
402
|
+
});
|
|
371
403
|
function handleAnimationEnd(e) {
|
|
372
404
|
if (e.pseudoElement) return;
|
|
373
405
|
const animationName = e.animationName || "";
|
|
@@ -461,8 +493,18 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
461
493
|
driverConfig,
|
|
462
494
|
isActive,
|
|
463
495
|
isFading,
|
|
464
|
-
isVisible
|
|
496
|
+
isVisible,
|
|
497
|
+
reducedMotion
|
|
465
498
|
], () => syncPulseDriver());
|
|
499
|
+
watch(reducedMotion, (reduce) => {
|
|
500
|
+
if (!reduce) return;
|
|
501
|
+
if (isFlowing.value) finishFlow();
|
|
502
|
+
if (isFading.value) {
|
|
503
|
+
isActive.value = false;
|
|
504
|
+
isFading.value = false;
|
|
505
|
+
emit("deactivate");
|
|
506
|
+
}
|
|
507
|
+
});
|
|
466
508
|
onUnmounted(() => {
|
|
467
509
|
if (unregisterPulse) {
|
|
468
510
|
unregisterPulse();
|
package/es/border-beam/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
//#region components/border-beam/styles.ts
|
|
3
3
|
/**
|
|
4
4
|
* Size presets for border radius and dimensions
|
|
@@ -2578,12 +2578,25 @@ function flowOverlayCSS(options) {
|
|
|
2578
2578
|
* @param options
|
|
2579
2579
|
*/
|
|
2580
2580
|
function generateBeamCSS(options) {
|
|
2581
|
-
const
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2581
|
+
const render = {
|
|
2582
|
+
"line": generateLineVariantCSS,
|
|
2583
|
+
"sm": generateSmallVariantCSS,
|
|
2584
|
+
"md": generateBorderVariantCSS,
|
|
2585
|
+
"pulse-inner": generatePulseInnerVariantCSS,
|
|
2586
|
+
"pulse-outside": generatePulseOuterVariantCSS
|
|
2587
|
+
}[options.size];
|
|
2588
|
+
const selector = `[data-beam="${options.id}"]`;
|
|
2589
|
+
return `${render(options)}
|
|
2590
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2591
|
+
${selector}, ${selector}::before, ${selector}::after,
|
|
2592
|
+
${selector} [data-beam-bloom] {
|
|
2593
|
+
animation: none !important;
|
|
2594
|
+
}
|
|
2595
|
+
${selector}[data-active] {
|
|
2596
|
+
--beam-opacity-${options.id}: 1;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
`;
|
|
2587
2600
|
}
|
|
2588
2601
|
/**
|
|
2589
2602
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
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 { useI18n } from "../locale/index.js";
|
|
4
4
|
import IconMore from "../icon/icon-more/index.js";
|
|
@@ -7,7 +7,7 @@ import dropdown_option_default from "../dropdown/dropdown-option.js";
|
|
|
7
7
|
import Dropdown from "../dropdown/index.js";
|
|
8
8
|
import IconObliqueLine from "../icon/icon-oblique-line/index.js";
|
|
9
9
|
import { breadcrumbInjectKey } from "./context.js";
|
|
10
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
10
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, onBeforeUpdate, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, watchEffect, withCtx } from "vue";
|
|
11
11
|
import { createReusableTemplate } from "@vueuse/core";
|
|
12
12
|
//#region components/breadcrumb/breadcrumb-item.vue?vue&type=script&setup=true&lang.ts
|
|
13
13
|
var _hoisted_1 = ["aria-label"];
|
|
@@ -30,7 +30,13 @@ var breadcrumb_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
30
30
|
const prefixCls = getPrefixCls("breadcrumb-item");
|
|
31
31
|
const breadcrumbCtx = inject(breadcrumbInjectKey, void 0);
|
|
32
32
|
const dropdownVisible = ref(false);
|
|
33
|
-
const hasDroplist =
|
|
33
|
+
const hasDroplist = ref(false);
|
|
34
|
+
const syncDroplist = () => {
|
|
35
|
+
hasDroplist.value = Boolean(props.droplist || slots.droplist);
|
|
36
|
+
if (!hasDroplist.value) dropdownVisible.value = false;
|
|
37
|
+
};
|
|
38
|
+
watchEffect(syncDroplist);
|
|
39
|
+
onBeforeUpdate(syncDroplist);
|
|
34
40
|
const show = computed(() => {
|
|
35
41
|
if (breadcrumbCtx && breadcrumbCtx.needHide) {
|
|
36
42
|
if (props.index > 1 && props.index <= breadcrumbCtx.total - breadcrumbCtx.maxCount) return false;
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { getAllElements } from "../_utils/vue-utils.js";
|
|
4
4
|
import { useI18n } from "../locale/index.js";
|
|
5
5
|
import { breadcrumbInjectKey } from "./context.js";
|
|
6
6
|
import breadcrumb_item_default from "./breadcrumb-item.js";
|
|
7
|
-
import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, normalizeClass, openBlock, provide, reactive, ref, renderList, renderSlot, toDisplayString, toRef, unref, useSlots, watchEffect, withCtx } from "vue";
|
|
7
|
+
import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, normalizeClass, onBeforeUpdate, openBlock, provide, reactive, ref, renderList, renderSlot, toDisplayString, toRef, unref, useSlots, watchEffect, withCtx } from "vue";
|
|
8
8
|
//#region components/breadcrumb/breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _hoisted_1 = ["aria-label"];
|
|
10
10
|
var _hoisted_2 = { key: 0 };
|
|
@@ -33,12 +33,14 @@ var breadcrumb_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
33
33
|
needHide,
|
|
34
34
|
slots
|
|
35
35
|
}));
|
|
36
|
-
|
|
36
|
+
const syncRouteTotal = () => {
|
|
37
37
|
if (!slots.default) {
|
|
38
38
|
var _props$routes$length, _props$routes;
|
|
39
39
|
total.value = (_props$routes$length = (_props$routes = props.routes) === null || _props$routes === void 0 ? void 0 : _props$routes.length) !== null && _props$routes$length !== void 0 ? _props$routes$length : 0;
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
|
+
watchEffect(syncRouteTotal);
|
|
43
|
+
onBeforeUpdate(syncRouteTotal);
|
|
42
44
|
const routeEntries = computed(() => {
|
|
43
45
|
var _props$routes2;
|
|
44
46
|
if (!((_props$routes2 = props.routes) === null || _props$routes2 === void 0 ? void 0 : _props$routes2.length)) return [];
|
|
@@ -1,4 +1,4 @@
|
|
|
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 { buttonGroupInjectionKey } from "./context.js";
|
|
4
4
|
import { createElementBlock, defineComponent, normalizeClass, openBlock, provide, reactive, renderSlot, toRefs, unref } from "vue";
|