@sdata/web-vue 4.4.0 → 4.4.2
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 +20 -5
- package/dist/sd.min.css +2 -2
- package/es/_utils/global-config.js +9 -5
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +5 -8
- package/es/anchor/utils.d.ts +1 -1
- package/es/anchor/utils.js +6 -1
- package/es/auto-complete/auto-complete.vue.d.ts +6 -6
- package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +22 -6
- package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/avatar/style/index.css +1 -1
- package/es/avatar/style/index.scss +2 -1
- package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +59 -42
- package/es/basic-crud-table/basic-crud-modal.vue.d.ts +22 -22
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +66 -66
- package/es/basic-crud-table/index.d.ts +198 -198
- package/es/bloom-menu/bloom-menu.vue.d.ts +1 -1
- package/es/bloom-menu/bloom-menu.vue_vue_type_script_setup_true_lang.js +16 -3
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +32 -18
- package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/core/config.js +4 -1
- package/es/calendar/core/events.js +22 -2
- package/es/calendar/default-theme.scss +1 -1
- package/es/calendar/style/index.css +2 -2
- package/es/carousel/carousel.vue.d.ts +5 -1
- package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +55 -12
- package/es/carousel/index.d.ts +15 -3
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/checkbox/checkbox.vue.d.ts +2 -0
- package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +12 -6
- package/es/checkbox/index.d.ts +6 -0
- package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +13 -5
- package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/hooks/use-control-block.d.ts +1 -1
- package/es/color-picker/hooks/use-control-block.js +6 -6
- package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +7 -6
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +7 -1
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +23 -8
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +16 -7
- package/es/date-picker/hooks/use-range-header-value.js +1 -1
- package/es/drawer/drawer.vue.d.ts +2 -2
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +5 -12
- package/es/drawer/index.d.ts +3 -3
- package/es/dropdown/dropdown-panel.vue.d.ts +0 -9
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +0 -4
- package/es/dropdown/dropdown.vue.d.ts +16 -3
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +24 -3
- package/es/dropdown/index.d.ts +25 -0
- package/es/dropdown/interface.d.ts +2 -0
- package/es/ellipsis/ellipsis.vue.d.ts +2 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +37 -8
- package/es/ellipsis/index.d.ts +3 -0
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +3 -0
- package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +1 -4
- package/es/file-previewer/file-previewer.vue.d.ts +0 -3
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +3 -6
- package/es/file-previewer/index.d.ts +0 -9
- package/es/form/context.d.ts +1 -2
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/form/form.vue.d.ts +3 -3
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +5 -7
- package/es/form/index.d.ts +6 -6
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/grid/hook/use-responsive-state.js +15 -4
- package/es/grid/hook/use-responsive-value.js +3 -2
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-components.d.ts +1 -1
- package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/{icon-faceBook-circle-fill → icon-facebook-circle-fill}/index.d.ts +5 -5
- package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/icon/index.d.ts +1 -1
- package/es/icon.js +1162 -300
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +5 -3
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/index.css +20 -5
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +25 -11
- package/es/input-mask/mask-engine.d.ts +4 -0
- package/es/input-mask/mask-engine.js +12 -1
- package/es/input-number/index.d.ts +15 -0
- package/es/input-number/input-number.vue.d.ts +9 -0
- package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +47 -14
- package/es/json-form/index.d.ts +11 -11
- package/es/json-form/json-form-item.vue.d.ts +3 -6
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +14 -15
- package/es/json-form/json-form.vue.d.ts +7 -10
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +17 -16
- package/es/json-form/style/index.css +15 -0
- package/es/json-form/style/index.scss +21 -0
- package/es/json-form/types.d.ts +1 -0
- package/es/json-form/utils.d.ts +1 -1
- package/es/json-form/utils.js +20 -13
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/layout/hooks/use-has-sider.js +23 -2
- package/es/layout/interface.d.ts +1 -1
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/locale/interface.d.ts +7 -0
- package/es/locale/lang/en-us.js +5 -0
- package/es/locale/lang/zh-cn.js +5 -0
- package/es/mention/index.d.ts +15 -0
- package/es/mention/mention.vue.d.ts +10 -1
- package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +16 -9
- package/es/message/index.js +1 -1
- package/es/modal/index.js +9 -1
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +15 -16
- package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +27 -3
- package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +15 -3
- package/es/notification/index.js +5 -2
- package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +27 -8
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/pagination/page-item-ellipsis.vue.d.ts +9 -0
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +19 -3
- package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +10 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -11
- package/es/popover/index.d.ts +2 -0
- package/es/popover/popover.vue.d.ts +4 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +10 -3
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +1 -2
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +10 -10
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +6 -4
- package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +16 -13
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +2 -0
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +20 -9
- package/es/slider/utils.js +1 -1
- package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +7 -0
- package/es/statistic/index.d.ts +0 -3
- package/es/statistic/statistic.vue.d.ts +0 -2
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +0 -5
- package/es/style/icon.scss +2 -2
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/tag/index.d.ts +8 -8
- package/es/tag/tag.vue.d.ts +4 -4
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +1 -2
- package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +14 -8
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +10 -3
- package/es/trigger/index.d.ts +0 -6
- package/es/trigger/interface.d.ts +1 -2
- package/es/trigger/trigger.vue.d.ts +0 -2
- package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +0 -4
- package/es/typography/base.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/typography/interface.d.ts +0 -4
- package/es/typography/utils/getInnerText.js +11 -10
- package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +7 -5
- package/es/upload/utils.d.ts +1 -2
- package/es/verification-code/index.d.ts +12 -3
- package/es/verification-code/verification-code.vue.d.ts +6 -1
- package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +29 -5
- package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +4 -2
- package/json/vetur-attributes.json +22 -10
- package/json/vetur-tags.json +10 -4
- package/json/web-types.json +43 -17
- package/package.json +1 -1
- /package/es/icon/{icon-faceBook-circle-fill/icon-faceBook-circle-fill.vue.d.ts → icon-facebook-circle-fill/icon-facebook-circle-fill.vue.d.ts} +0 -0
|
@@ -366,13 +366,14 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
366
366
|
var _mergedConfig$value$s;
|
|
367
367
|
const popoverButtons = resolvedPopover.value.showButtons;
|
|
368
368
|
const configButtons = (_mergedConfig$value$s = mergedConfig.value.showButtons) !== null && _mergedConfig$value$s !== void 0 ? _mergedConfig$value$s : DEFAULT_SHOW_BUTTONS;
|
|
369
|
-
const sourceButtons =
|
|
369
|
+
const sourceButtons = popoverButtons !== void 0 ? popoverButtons : configButtons;
|
|
370
|
+
if (sourceButtons.length === 0) return [];
|
|
370
371
|
return [
|
|
371
372
|
"previous",
|
|
372
373
|
"next",
|
|
373
374
|
...mergedConfig.value.allowClose !== false ? ["close"] : []
|
|
374
375
|
].filter((button) => {
|
|
375
|
-
return
|
|
376
|
+
return sourceButtons.includes(button);
|
|
376
377
|
});
|
|
377
378
|
});
|
|
378
379
|
const resolvedDisableButtons = computed(() => {
|
|
@@ -652,6 +653,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
652
653
|
}
|
|
653
654
|
function teardown(triggerCloseEvent, currentStepIndex, previousActiveStep = activeStep.value) {
|
|
654
655
|
var _mergedConfig$value$o, _mergedConfig$value, _activeOnDestroyed$va;
|
|
656
|
+
if (!isInitialized.value) return;
|
|
655
657
|
const element = activeElement.value;
|
|
656
658
|
clearElementState(element);
|
|
657
659
|
previousElement.value = element;
|
|
@@ -690,6 +692,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
690
692
|
var _activeOnDestroyed$va2, _step$onHighlightStar, _step$onHighlighted;
|
|
691
693
|
const element = resolveStepElement(step);
|
|
692
694
|
if (!element) return;
|
|
695
|
+
const wasActive = isInitialized.value;
|
|
693
696
|
const previousActiveStep = activeStep.value;
|
|
694
697
|
const previousActiveElement = activeElement.value;
|
|
695
698
|
if (previousActiveStep && previousActiveElement && previousActiveElement !== element) {
|
|
@@ -704,7 +707,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
704
707
|
activeElement.value = element;
|
|
705
708
|
activeIndex.value = stepIndex;
|
|
706
709
|
isInitialized.value = true;
|
|
707
|
-
syncVisible(true);
|
|
710
|
+
if (!wasActive) syncVisible(true);
|
|
708
711
|
if (typeof stepIndex === "number") syncCurrent(stepIndex);
|
|
709
712
|
invokeHook((_step$onHighlightStar = step.onHighlightStarted) !== null && _step$onHighlightStar !== void 0 ? _step$onHighlightStar : mergedConfig.value.onHighlightStarted, element, step);
|
|
710
713
|
if (mergedConfig.value.smoothScroll) {
|
|
@@ -860,7 +863,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
860
863
|
event.stopImmediatePropagation();
|
|
861
864
|
handleOverlayClick();
|
|
862
865
|
}
|
|
863
|
-
function
|
|
866
|
+
function handleKeydown(event) {
|
|
864
867
|
if (!isActive.value || mergedConfig.value.allowKeyboardControl === false) return;
|
|
865
868
|
if (event.key === "Escape") {
|
|
866
869
|
closeTour();
|
|
@@ -902,7 +905,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
902
905
|
if (!mounted.value || !isActive.value) return;
|
|
903
906
|
placePopover();
|
|
904
907
|
});
|
|
905
|
-
useEventListener("
|
|
908
|
+
useEventListener("keydown", handleKeydown);
|
|
906
909
|
useEventListener(document, "click", handleDocumentClick, { capture: true });
|
|
907
910
|
const controllerRef = shallowRef({
|
|
908
911
|
isActive: () => isActive.value,
|
|
@@ -963,8 +966,8 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
963
966
|
closeTourForce();
|
|
964
967
|
releaseDialogLayer();
|
|
965
968
|
});
|
|
966
|
-
watch(
|
|
967
|
-
if (!mounted.value) return;
|
|
969
|
+
watch(() => props.visible, (visible) => {
|
|
970
|
+
if (!mounted.value || typeof visible !== "boolean") return;
|
|
968
971
|
if (visible) {
|
|
969
972
|
driveTo();
|
|
970
973
|
return;
|
|
@@ -1076,7 +1079,10 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
1076
1079
|
class: normalizeClass([`${unref(prefixCls)}-popover-arrow`, arrowClasses.value]),
|
|
1077
1080
|
style: normalizeStyle(arrowStyle.value)
|
|
1078
1081
|
}, null, 6),
|
|
1079
|
-
createElementVNode("div", mergeProps({
|
|
1082
|
+
createElementVNode("div", mergeProps({
|
|
1083
|
+
id: popoverContentId,
|
|
1084
|
+
class: `${unref(prefixCls)}-content`
|
|
1085
|
+
}, resolvedPopover.value.contentProps, { style: resolvedPopover.value.contentStyle }), [hasTitle.value ? (openBlock(), createElementBlock("header", mergeProps({
|
|
1080
1086
|
key: 0,
|
|
1081
1087
|
id: popoverTitleId,
|
|
1082
1088
|
ref_key: "titleRef",
|
|
@@ -48,7 +48,7 @@ var transfer_view_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
48
48
|
const checked = computed(() => props.dataInfo.selected.length > 0 && props.dataInfo.selected.length === props.dataInfo.allValidValues.length);
|
|
49
49
|
const indeterminate = computed(() => props.dataInfo.selected.length > 0 && props.dataInfo.selected.length < props.dataInfo.allValidValues.length);
|
|
50
50
|
const handleSelectAllChange = (value) => {
|
|
51
|
-
if (Boolean(value)) transferCtx === null || transferCtx === void 0 || transferCtx.onSelect([...props.selected, ...props.dataInfo.allValidValues]);
|
|
51
|
+
if (Boolean(value)) transferCtx === null || transferCtx === void 0 || transferCtx.onSelect([.../* @__PURE__ */ new Set([...props.selected, ...props.dataInfo.allValidValues])]);
|
|
52
52
|
else transferCtx === null || transferCtx === void 0 || transferCtx.onSelect(props.selected.filter((value) => !props.dataInfo.allValidValues.includes(value)));
|
|
53
53
|
};
|
|
54
54
|
const filteredData = computed(() => props.dataInfo.data.filter((item) => {
|
|
@@ -222,7 +222,7 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
222
222
|
setDragStatus("dragEnd", e);
|
|
223
223
|
}
|
|
224
224
|
function onDragOver(e) {
|
|
225
|
-
if (!draggable) return;
|
|
225
|
+
if (!draggable.value) return;
|
|
226
226
|
e.stopPropagation();
|
|
227
227
|
e.preventDefault();
|
|
228
228
|
setDragStatus("dragOver", e);
|
|
@@ -462,13 +462,20 @@ var tree_select_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
462
462
|
return (_checkStrategy$value = checkStrategy.value) !== null && _checkStrategy$value !== void 0 ? _checkStrategy$value : props.treeCheckedStrategy;
|
|
463
463
|
});
|
|
464
464
|
const mergedTreeProps = computed(() => {
|
|
465
|
-
var _ref3, _props$ellipsis2, _treeProps$value3;
|
|
465
|
+
var _props$treeProps$defa, _props$treeProps, _ref3, _props$ellipsis2, _treeProps$value3;
|
|
466
466
|
const resolvedVirtualListProps = resolveDropdownVirtualListProps(mergedDropdownVirtualListProps.value, props.triggerProps);
|
|
467
|
+
const defaultExpandAll = (_props$treeProps$defa = (_props$treeProps = props.treeProps) === null || _props$treeProps === void 0 ? void 0 : _props$treeProps.defaultExpandAll) !== null && _props$treeProps$defa !== void 0 ? _props$treeProps$defa : false;
|
|
467
468
|
if (virtualScroll.value !== false) {
|
|
468
469
|
var _ref2, _props$ellipsis, _treeProps$value2;
|
|
469
|
-
return _objectSpread2(_objectSpread2({}, treeProps.value), {}, {
|
|
470
|
+
return _objectSpread2(_objectSpread2({}, treeProps.value), {}, {
|
|
471
|
+
ellipsis: (_ref2 = (_props$ellipsis = props.ellipsis) !== null && _props$ellipsis !== void 0 ? _props$ellipsis : (_treeProps$value2 = treeProps.value) === null || _treeProps$value2 === void 0 ? void 0 : _treeProps$value2.ellipsis) !== null && _ref2 !== void 0 ? _ref2 : true,
|
|
472
|
+
defaultExpandAll
|
|
473
|
+
}, resolvedVirtualListProps ? { virtualListProps: resolvedVirtualListProps } : {});
|
|
470
474
|
}
|
|
471
|
-
const nextTreeProps = _objectSpread2(_objectSpread2({}, treeProps.value), {}, {
|
|
475
|
+
const nextTreeProps = _objectSpread2(_objectSpread2({}, treeProps.value), {}, {
|
|
476
|
+
ellipsis: (_ref3 = (_props$ellipsis2 = props.ellipsis) !== null && _props$ellipsis2 !== void 0 ? _props$ellipsis2 : (_treeProps$value3 = treeProps.value) === null || _treeProps$value3 === void 0 ? void 0 : _treeProps$value3.ellipsis) !== null && _ref3 !== void 0 ? _ref3 : true,
|
|
477
|
+
defaultExpandAll
|
|
478
|
+
});
|
|
472
479
|
delete nextTreeProps.virtualListProps;
|
|
473
480
|
return nextTreeProps;
|
|
474
481
|
});
|
package/es/trigger/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ declare const Trigger: {
|
|
|
13
13
|
popupTranslate?: import("./interface").TriggerPopupTranslate;
|
|
14
14
|
showArrow?: boolean;
|
|
15
15
|
alignPoint?: boolean;
|
|
16
|
-
popupHoverStay?: boolean;
|
|
17
16
|
blurToClose?: boolean;
|
|
18
17
|
clickToClose?: boolean;
|
|
19
18
|
clickOutsideToClose?: boolean;
|
|
@@ -68,7 +67,6 @@ declare const Trigger: {
|
|
|
68
67
|
popupOffset: number;
|
|
69
68
|
showArrow: boolean;
|
|
70
69
|
alignPoint: boolean;
|
|
71
|
-
popupHoverStay: boolean;
|
|
72
70
|
blurToClose: boolean;
|
|
73
71
|
clickToClose: boolean;
|
|
74
72
|
clickOutsideToClose: boolean;
|
|
@@ -108,7 +106,6 @@ declare const Trigger: {
|
|
|
108
106
|
popupTranslate?: import("./interface").TriggerPopupTranslate;
|
|
109
107
|
showArrow?: boolean;
|
|
110
108
|
alignPoint?: boolean;
|
|
111
|
-
popupHoverStay?: boolean;
|
|
112
109
|
blurToClose?: boolean;
|
|
113
110
|
clickToClose?: boolean;
|
|
114
111
|
clickOutsideToClose?: boolean;
|
|
@@ -157,7 +154,6 @@ declare const Trigger: {
|
|
|
157
154
|
popupOffset: number;
|
|
158
155
|
showArrow: boolean;
|
|
159
156
|
alignPoint: boolean;
|
|
160
|
-
popupHoverStay: boolean;
|
|
161
157
|
blurToClose: boolean;
|
|
162
158
|
clickToClose: boolean;
|
|
163
159
|
clickOutsideToClose: boolean;
|
|
@@ -194,7 +190,6 @@ declare const Trigger: {
|
|
|
194
190
|
popupTranslate?: import("./interface").TriggerPopupTranslate;
|
|
195
191
|
showArrow?: boolean;
|
|
196
192
|
alignPoint?: boolean;
|
|
197
|
-
popupHoverStay?: boolean;
|
|
198
193
|
blurToClose?: boolean;
|
|
199
194
|
clickToClose?: boolean;
|
|
200
195
|
clickOutsideToClose?: boolean;
|
|
@@ -249,7 +244,6 @@ declare const Trigger: {
|
|
|
249
244
|
popupOffset: number;
|
|
250
245
|
showArrow: boolean;
|
|
251
246
|
alignPoint: boolean;
|
|
252
|
-
popupHoverStay: boolean;
|
|
253
247
|
blurToClose: boolean;
|
|
254
248
|
clickToClose: boolean;
|
|
255
249
|
clickOutsideToClose: boolean;
|
|
@@ -16,7 +16,6 @@ export interface TriggerProps {
|
|
|
16
16
|
popupTranslate?: TriggerPopupTranslate;
|
|
17
17
|
showArrow?: boolean;
|
|
18
18
|
alignPoint?: boolean;
|
|
19
|
-
popupHoverStay?: boolean;
|
|
20
19
|
blurToClose?: boolean;
|
|
21
20
|
clickToClose?: boolean;
|
|
22
21
|
clickOutsideToClose?: boolean;
|
|
@@ -41,7 +40,7 @@ export interface TriggerProps {
|
|
|
41
40
|
updateAtScroll?: boolean;
|
|
42
41
|
autoFitTransformOrigin?: boolean;
|
|
43
42
|
hideEmpty?: boolean;
|
|
44
|
-
|
|
43
|
+
openedClass?: string | string[] | Record<string, boolean>;
|
|
45
44
|
autoFitPosition?: boolean;
|
|
46
45
|
renderToBody?: boolean;
|
|
47
46
|
preventFocus?: boolean;
|
|
@@ -15,7 +15,6 @@ type TriggerProps = {
|
|
|
15
15
|
popupTranslate?: TriggerPopupTranslate;
|
|
16
16
|
showArrow?: boolean;
|
|
17
17
|
alignPoint?: boolean;
|
|
18
|
-
popupHoverStay?: boolean;
|
|
19
18
|
blurToClose?: boolean;
|
|
20
19
|
clickToClose?: boolean;
|
|
21
20
|
clickOutsideToClose?: boolean;
|
|
@@ -75,7 +74,6 @@ declare const __VLS_base: import("vue").DefineComponent<TriggerProps, {}, {}, {}
|
|
|
75
74
|
popupOffset: number;
|
|
76
75
|
showArrow: boolean;
|
|
77
76
|
alignPoint: boolean;
|
|
78
|
-
popupHoverStay: boolean;
|
|
79
77
|
blurToClose: boolean;
|
|
80
78
|
clickToClose: boolean;
|
|
81
79
|
clickOutsideToClose: boolean;
|
|
@@ -165,6 +165,7 @@ var base_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
165
165
|
copy(text, props.clipboardProps);
|
|
166
166
|
isCopied.value = true;
|
|
167
167
|
emit("copy", text);
|
|
168
|
+
if (copyTimer) clearTimeout(copyTimer);
|
|
168
169
|
copyTimer = setTimeout(() => isCopied.value = false, props.copyDelay);
|
|
169
170
|
};
|
|
170
171
|
const onExpandClick = () => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Options as ClipboardOptions } from 'copy-to-clipboard';
|
|
2
|
-
import type { VNode } from 'vue';
|
|
3
2
|
export interface EllipsisConfig {
|
|
4
3
|
rows?: number;
|
|
5
4
|
expandable?: boolean;
|
|
@@ -51,6 +50,3 @@ export interface ParagraphProps extends BaseProps {
|
|
|
51
50
|
blockquote: boolean;
|
|
52
51
|
spacing: 'default' | 'close';
|
|
53
52
|
}
|
|
54
|
-
export interface TextProps extends BaseProps {
|
|
55
|
-
icon?: VNode;
|
|
56
|
-
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import inner_text_renderer_default from "./inner-text-renderer.js";
|
|
2
2
|
import { createApp } from "vue";
|
|
3
3
|
//#region components/typography/utils/getInnerText.ts
|
|
4
|
-
var container;
|
|
5
4
|
function getInnerText(node) {
|
|
6
5
|
if (!node) return "";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
6
|
+
const container = document.createElement("div");
|
|
7
|
+
container.setAttribute("aria-hidden", "true");
|
|
8
|
+
container.style.cssText = "position:fixed;top:0;left:0;width:0;height:0;overflow:hidden;";
|
|
9
|
+
document.body.appendChild(container);
|
|
12
10
|
const vm = createApp(inner_text_renderer_default, { content: node });
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
try {
|
|
12
|
+
vm.mount(container);
|
|
13
|
+
return container.innerText;
|
|
14
|
+
} finally {
|
|
15
|
+
vm.unmount();
|
|
16
|
+
container.remove();
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
19
|
//#endregion
|
|
19
20
|
export { getInnerText as default };
|
|
@@ -56,7 +56,7 @@ var upload_list_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
56
56
|
if ((_file$value$file = file.value.file) === null || _file$value$file === void 0 ? void 0 : _file$value$file.type) type = file.value.file.type;
|
|
57
57
|
else {
|
|
58
58
|
var _file$value$name$spli, _file$value$name;
|
|
59
|
-
const extension = (_file$value$name$spli = (_file$value$name = file.value.name) === null || _file$value$name === void 0 ? void 0 : _file$value$name.split(".")
|
|
59
|
+
const extension = (_file$value$name$spli = (_file$value$name = file.value.name) === null || _file$value$name === void 0 ? void 0 : _file$value$name.split(".").pop()) !== null && _file$value$name$spli !== void 0 ? _file$value$name$spli : "";
|
|
60
60
|
if ([
|
|
61
61
|
"png",
|
|
62
62
|
"jpg",
|
|
@@ -119,6 +119,7 @@ var upload_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
119
119
|
"error": (_fileItem) => true
|
|
120
120
|
},
|
|
121
121
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
122
|
+
let uidCounter = 0;
|
|
122
123
|
const props = __props;
|
|
123
124
|
const emit = __emit;
|
|
124
125
|
const attrs = useAttrs();
|
|
@@ -225,6 +226,7 @@ var upload_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
225
226
|
if (file) {
|
|
226
227
|
file.status = "error";
|
|
227
228
|
file.percent = 0;
|
|
229
|
+
emit("error", file);
|
|
228
230
|
updateFileList(file);
|
|
229
231
|
}
|
|
230
232
|
};
|
|
@@ -236,8 +238,8 @@ var upload_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
236
238
|
}
|
|
237
239
|
for (const item of innerFileList.value) if (item.status === "init") uploadFile(item);
|
|
238
240
|
};
|
|
239
|
-
const initUpload = (file
|
|
240
|
-
const uid = `${Date.now()}-${
|
|
241
|
+
const initUpload = (file) => {
|
|
242
|
+
const uid = `${Date.now()}-${uidCounter++}`;
|
|
241
243
|
const fileItem = reactive({
|
|
242
244
|
uid,
|
|
243
245
|
file,
|
|
@@ -256,13 +258,13 @@ var upload_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
256
258
|
emit("exceedLimit", innerFileList.value, files);
|
|
257
259
|
return;
|
|
258
260
|
}
|
|
259
|
-
files.forEach((file
|
|
261
|
+
files.forEach((file) => {
|
|
260
262
|
if (isFunction(props.onBeforeUpload)) Promise.resolve(props.onBeforeUpload(file)).then((result) => {
|
|
261
|
-
if (result) initUpload(isBoolean(result) ? file : result
|
|
263
|
+
if (result) initUpload(isBoolean(result) ? file : result);
|
|
262
264
|
}).catch((error) => {
|
|
263
265
|
console.error(error);
|
|
264
266
|
});
|
|
265
|
-
else initUpload(file
|
|
267
|
+
else initUpload(file);
|
|
266
268
|
});
|
|
267
269
|
};
|
|
268
270
|
const removeFile = (fileItem) => {
|
package/es/upload/utils.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FileStatus, RequestOption, UploadRequest } from './interfaces';
|
|
2
2
|
export declare const getProgressStatus: (status?: FileStatus) => "normal" | "success" | "danger";
|
|
3
|
-
export declare const processFileList: (fileList?: FileItem[]) => FileItem[];
|
|
4
3
|
export declare const uploadRequest: ({ fileItem, action, name: originName, data: originData, headers, withCredentials, onProgress, onSuccess, onError, }: RequestOption) => UploadRequest;
|
|
5
4
|
export declare const loopDirectory: (itemList: DataTransferItemList, accept: string | undefined, callback: (files: File[]) => void) => void;
|
|
6
5
|
export declare const isImage: (file: File) => boolean;
|
|
@@ -34,7 +34,10 @@ declare const VerificationCode: {
|
|
|
34
34
|
onInput?: ((_inputValue: string, _index: number, _event: Event) => any) | undefined;
|
|
35
35
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
36
36
|
onFinish?: ((_value: string) => any) | undefined;
|
|
37
|
-
}>, {
|
|
37
|
+
}>, {
|
|
38
|
+
focus: () => void;
|
|
39
|
+
blur: () => void;
|
|
40
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
41
|
change: (_value: string) => void;
|
|
39
42
|
input: (_inputValue: string, _index: number, _event: Event) => void;
|
|
40
43
|
"update:modelValue": (_value: string) => void;
|
|
@@ -85,7 +88,10 @@ declare const VerificationCode: {
|
|
|
85
88
|
onInput?: ((_inputValue: string, _index: number, _event: Event) => any) | undefined;
|
|
86
89
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
87
90
|
onFinish?: ((_value: string) => any) | undefined;
|
|
88
|
-
}>, {
|
|
91
|
+
}>, {
|
|
92
|
+
focus: () => void;
|
|
93
|
+
blur: () => void;
|
|
94
|
+
}, {}, {}, {}, {
|
|
89
95
|
length: number;
|
|
90
96
|
disabled: boolean;
|
|
91
97
|
error: boolean;
|
|
@@ -128,7 +134,10 @@ declare const VerificationCode: {
|
|
|
128
134
|
onInput?: ((_inputValue: string, _index: number, _event: Event) => any) | undefined;
|
|
129
135
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
130
136
|
onFinish?: ((_value: string) => any) | undefined;
|
|
131
|
-
}>, {
|
|
137
|
+
}>, {
|
|
138
|
+
focus: () => void;
|
|
139
|
+
blur: () => void;
|
|
140
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
132
141
|
change: (_value: string) => void;
|
|
133
142
|
input: (_inputValue: string, _index: number, _event: Event) => void;
|
|
134
143
|
"update:modelValue": (_value: string) => void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type PropType, type VNode } from 'vue';
|
|
2
2
|
import type { Size } from '../_utils/constant';
|
|
3
|
+
declare function focus(): void;
|
|
4
|
+
declare function blur(): void;
|
|
3
5
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
6
|
modelValue: StringConstructor;
|
|
5
7
|
defaultValue: {
|
|
@@ -27,7 +29,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
27
29
|
formatter: {
|
|
28
30
|
type: PropType<(inputValue: string, index: number, value: string) => string | boolean>;
|
|
29
31
|
};
|
|
30
|
-
}>, {
|
|
32
|
+
}>, {
|
|
33
|
+
focus: typeof focus;
|
|
34
|
+
blur: typeof blur;
|
|
35
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
36
|
change: (_value: string) => void;
|
|
32
37
|
input: (_inputValue: string, _index: number, _event: Event) => void;
|
|
33
38
|
"update:modelValue": (_value: string) => void;
|
|
@@ -4,7 +4,7 @@ import { isExist, isFunction, isString, isUndefined } from "../_utils/is.js";
|
|
|
4
4
|
import { useI18n } from "../locale/index.js";
|
|
5
5
|
import { ArrowLeft, ArrowRight, Backspace } from "../_utils/keycode.js";
|
|
6
6
|
import Input from "../input/index.js";
|
|
7
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, unref, watch } from "vue";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, nextTick, normalizeClass, openBlock, ref, renderList, unref, watch } from "vue";
|
|
8
8
|
//#region components/verification-code/verification-code.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _hoisted_1 = ["aria-label"];
|
|
10
10
|
var verification_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "VerificationCode" }), {}, {
|
|
@@ -49,7 +49,7 @@ var verification_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
49
49
|
"finish": (_value) => true,
|
|
50
50
|
"input": (_inputValue, _index, _event) => true
|
|
51
51
|
},
|
|
52
|
-
setup(__props, { emit: __emit }) {
|
|
52
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
53
53
|
const props = __props;
|
|
54
54
|
const emit = __emit;
|
|
55
55
|
const { t } = useI18n();
|
|
@@ -67,19 +67,30 @@ var verification_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
67
67
|
const newValue = String(mergedValue.value).split("");
|
|
68
68
|
return Array.from({ length: props.length }, (_, index) => isExist(newValue[index]) ? String(newValue[index]) : "");
|
|
69
69
|
});
|
|
70
|
-
const innerValue = ref(filledValue.value);
|
|
70
|
+
const innerValue = ref(filledValue.value.slice());
|
|
71
71
|
watch(mergedValue, () => {
|
|
72
|
-
innerValue.value = filledValue.value;
|
|
72
|
+
innerValue.value = filledValue.value.slice();
|
|
73
73
|
});
|
|
74
74
|
function setInputRef(element, index) {
|
|
75
75
|
if (element) inputRefList.value[index] = element;
|
|
76
76
|
}
|
|
77
77
|
function updateValue() {
|
|
78
78
|
const value = innerValue.value.join("").trim();
|
|
79
|
+
const prevModelValue = props.modelValue;
|
|
79
80
|
emit("update:modelValue", value);
|
|
80
81
|
emit("change", value);
|
|
81
82
|
if (value.length === props.length) emit("finish", value);
|
|
82
83
|
focusFirstEmptyInput();
|
|
84
|
+
nextTick(() => keepControl(prevModelValue));
|
|
85
|
+
}
|
|
86
|
+
function keepControl(prevModelValue) {
|
|
87
|
+
if (props.modelValue === void 0 || props.modelValue !== prevModelValue) return;
|
|
88
|
+
const restored = filledValue.value.slice();
|
|
89
|
+
innerValue.value = restored;
|
|
90
|
+
inputRefList.value.forEach((cell, index) => {
|
|
91
|
+
const inputEl = cell === null || cell === void 0 ? void 0 : cell.inputRef;
|
|
92
|
+
if (inputEl && inputEl.value !== restored[index]) inputEl.value = restored[index];
|
|
93
|
+
});
|
|
83
94
|
}
|
|
84
95
|
function handleFocus(index) {
|
|
85
96
|
inputRefList.value[index].focus();
|
|
@@ -134,7 +145,8 @@ var verification_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
134
145
|
}
|
|
135
146
|
}
|
|
136
147
|
function handleInput(index, value, event) {
|
|
137
|
-
|
|
148
|
+
const trimmed = (value || "").trim();
|
|
149
|
+
let character = trimmed.charAt(trimmed.length - 1);
|
|
138
150
|
emit("input", character, index, event);
|
|
139
151
|
if (isFunction(props.formatter)) {
|
|
140
152
|
const result = props.formatter(character, index, innerValue.value.join(""));
|
|
@@ -144,6 +156,18 @@ var verification_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
144
156
|
innerValue.value[index] = character;
|
|
145
157
|
updateValue();
|
|
146
158
|
}
|
|
159
|
+
function focus() {
|
|
160
|
+
focusFirstEmptyInput();
|
|
161
|
+
}
|
|
162
|
+
function blur() {
|
|
163
|
+
const active = document.activeElement;
|
|
164
|
+
const cell = inputRefList.value.find((cell) => (cell === null || cell === void 0 ? void 0 : cell.inputRef) === active);
|
|
165
|
+
if (cell) cell.blur();
|
|
166
|
+
}
|
|
167
|
+
__expose({
|
|
168
|
+
focus,
|
|
169
|
+
blur
|
|
170
|
+
});
|
|
147
171
|
return (_ctx, _cache) => {
|
|
148
172
|
return openBlock(), createElementBlock("div", {
|
|
149
173
|
class: normalizeClass(unref(prefixCls)),
|
|
@@ -202,7 +202,7 @@ var watermark_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
202
202
|
let defaultWidth = 120;
|
|
203
203
|
let defaultHeight = 28;
|
|
204
204
|
if (!image.value && ctx.measureText) {
|
|
205
|
-
ctx.font = `${fontSize.value}px ${fontFamily.value}`;
|
|
205
|
+
ctx.font = `${fontStyle.value} normal ${fontWeight.value} ${fontSize.value}px ${fontFamily.value}`;
|
|
206
206
|
const widths = contents.value.map((item) => ctx.measureText(item).width);
|
|
207
207
|
defaultWidth = Math.ceil(Math.max(...widths));
|
|
208
208
|
defaultHeight = fontSize.value * contents.value.length + (contents.value.length - 1) * 3;
|
|
@@ -234,7 +234,9 @@ var watermark_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
234
234
|
const drawImage = () => {
|
|
235
235
|
ctx.restore();
|
|
236
236
|
if (isStaggered.value) ctx.drawImage(canvas, 0, 0, canvasWidth, canvasHeight, canvasWidth, canvasHeight, canvasWidth, canvasHeight);
|
|
237
|
-
grayscale.value
|
|
237
|
+
if (grayscale.value) try {
|
|
238
|
+
canvasToGray(canvas);
|
|
239
|
+
} catch (_unused) {}
|
|
238
240
|
appendWatermark(canvas.toDataURL(), fillWidth);
|
|
239
241
|
};
|
|
240
242
|
if (image.value) {
|
|
@@ -928,6 +928,12 @@
|
|
|
928
928
|
"sd-dropdown/select": {
|
|
929
929
|
"description": "Triggered when the user selects"
|
|
930
930
|
},
|
|
931
|
+
"sd-dropdown/scroll": {
|
|
932
|
+
"description": "Triggered when the panel scrolls"
|
|
933
|
+
},
|
|
934
|
+
"sd-dropdown/reach-bottom": {
|
|
935
|
+
"description": "Triggered when the panel is scrolled to the bottom"
|
|
936
|
+
},
|
|
931
937
|
"sd-dropdown/popup-visible": {
|
|
932
938
|
"description": "Whether the popup is visible",
|
|
933
939
|
"type": "boolean"
|
|
@@ -953,6 +959,10 @@
|
|
|
953
959
|
"description": "Whether to hide popup when the user selects",
|
|
954
960
|
"type": "boolean"
|
|
955
961
|
},
|
|
962
|
+
"sd-dropdown/is-empty": {
|
|
963
|
+
"description": "Whether the dropdown content is empty (shows the empty state and hides the footer)",
|
|
964
|
+
"type": "boolean"
|
|
965
|
+
},
|
|
956
966
|
"sd-empty/description": {
|
|
957
967
|
"description": "Description",
|
|
958
968
|
"type": "string"
|
|
@@ -1176,8 +1186,7 @@
|
|
|
1176
1186
|
"type": "string"
|
|
1177
1187
|
},
|
|
1178
1188
|
"sd-form/scroll-to-first-error": {
|
|
1179
|
-
"description": "Scroll to the first error field after verification fails"
|
|
1180
|
-
"type": "boolean"
|
|
1189
|
+
"description": "Scroll to the first error field after verification fails; accepts a scrollIntoView options object"
|
|
1181
1190
|
},
|
|
1182
1191
|
"sd-grid-col/span": {
|
|
1183
1192
|
"description": "Number of grid space",
|
|
@@ -1419,15 +1428,19 @@
|
|
|
1419
1428
|
"description": "Zoom rate, only for scroll zoom",
|
|
1420
1429
|
"type": "number"
|
|
1421
1430
|
},
|
|
1431
|
+
"sd-input-number/string-mode": {
|
|
1432
|
+
"description": "Enables high-precision decimal support; update:modelValue emits string values. The accepted digit string is kept verbatim instead of being converted to Number, avoiding precision loss beyond Number.MAX_SAFE_INTEGER",
|
|
1433
|
+
"type": "boolean"
|
|
1434
|
+
},
|
|
1422
1435
|
"sd-input-password/visibility-change": {
|
|
1423
|
-
"description": "Callback when visibility changes"
|
|
1436
|
+
"description": "Callback when visibility changes; the payload follows the visibility semantics (true means masked)"
|
|
1424
1437
|
},
|
|
1425
1438
|
"sd-input-password/visibility": {
|
|
1426
|
-
"description": "Whether is
|
|
1439
|
+
"description": "Whether the input is in the masked (hidden) state. `true` renders the input masked (type=password, shows the eye-invisible icon)",
|
|
1427
1440
|
"type": "boolean"
|
|
1428
1441
|
},
|
|
1429
1442
|
"sd-input-password/default-visibility": {
|
|
1430
|
-
"description": "
|
|
1443
|
+
"description": "Whether the input is masked by default",
|
|
1431
1444
|
"type": "boolean"
|
|
1432
1445
|
},
|
|
1433
1446
|
"sd-input-password/invisible-button": {
|
|
@@ -1472,6 +1485,9 @@
|
|
|
1472
1485
|
"description": "Whether the maximum width is limited to the parent container width",
|
|
1473
1486
|
"type": "boolean"
|
|
1474
1487
|
},
|
|
1488
|
+
"sd-json-form/model-value": {
|
|
1489
|
+
"description": "Form data object (v-model)"
|
|
1490
|
+
},
|
|
1475
1491
|
"sd-kv-list/type": {
|
|
1476
1492
|
"description": "Editor type. Uses two Input components by default"
|
|
1477
1493
|
},
|
|
@@ -2527,10 +2543,6 @@
|
|
|
2527
2543
|
"description": "Decimal reserved digits (used in digital mode)",
|
|
2528
2544
|
"type": "number"
|
|
2529
2545
|
},
|
|
2530
|
-
"sd-statistic/separator": {
|
|
2531
|
-
"description": "Carry separator (used in number mode)",
|
|
2532
|
-
"type": "string"
|
|
2533
|
-
},
|
|
2534
2546
|
"sd-statistic/show-group-separator": {
|
|
2535
2547
|
"description": "Whether to display the carry separator (used in number mode)",
|
|
2536
2548
|
"type": "boolean"
|
|
@@ -3326,7 +3338,7 @@
|
|
|
3326
3338
|
"description": "Triggered when the selected value changes"
|
|
3327
3339
|
},
|
|
3328
3340
|
"sd-transfer/search": {
|
|
3329
|
-
"description": "Triggered when the
|
|
3341
|
+
"description": "Triggered when the search input value changes (on Enter, blur, or clearing the input — not on every keystroke)"
|
|
3330
3342
|
},
|
|
3331
3343
|
"sd-transfer/data": {
|
|
3332
3344
|
"description": "Data of the transfer"
|
package/json/vetur-tags.json
CHANGED
|
@@ -427,13 +427,16 @@
|
|
|
427
427
|
"attributes": [
|
|
428
428
|
"popup-visible-change",
|
|
429
429
|
"select",
|
|
430
|
+
"scroll",
|
|
431
|
+
"reach-bottom",
|
|
430
432
|
"popup-visible",
|
|
431
433
|
"default-popup-visible",
|
|
432
434
|
"trigger",
|
|
433
435
|
"position",
|
|
434
436
|
"popup-container",
|
|
435
437
|
"popup-max-height",
|
|
436
|
-
"hide-on-select"
|
|
438
|
+
"hide-on-select",
|
|
439
|
+
"is-empty"
|
|
437
440
|
]
|
|
438
441
|
},
|
|
439
442
|
"sd-ellipsis": {
|
|
@@ -624,7 +627,9 @@
|
|
|
624
627
|
"attributes": []
|
|
625
628
|
},
|
|
626
629
|
"sd-input-number": {
|
|
627
|
-
"attributes": [
|
|
630
|
+
"attributes": [
|
|
631
|
+
"string-mode"
|
|
632
|
+
]
|
|
628
633
|
},
|
|
629
634
|
"sd-input-tag": {
|
|
630
635
|
"attributes": []
|
|
@@ -658,7 +663,9 @@
|
|
|
658
663
|
"attributes": []
|
|
659
664
|
},
|
|
660
665
|
"sd-json-form": {
|
|
661
|
-
"attributes": [
|
|
666
|
+
"attributes": [
|
|
667
|
+
"model-value"
|
|
668
|
+
]
|
|
662
669
|
},
|
|
663
670
|
"sd-kv-list": {
|
|
664
671
|
"attributes": [
|
|
@@ -1182,7 +1189,6 @@
|
|
|
1182
1189
|
"extra",
|
|
1183
1190
|
"start",
|
|
1184
1191
|
"precision",
|
|
1185
|
-
"separator",
|
|
1186
1192
|
"show-group-separator",
|
|
1187
1193
|
"animation",
|
|
1188
1194
|
"animation-duration",
|