@sdata/web-vue 4.4.1 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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 +3 -0
- 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/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.d.ts +9 -8
- package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +9 -6
- 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/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-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.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
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
2
|
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
3
|
-
import { getCurrentInstance, inject } from "vue";
|
|
3
|
+
import { getCurrentInstance, inject, ref } from "vue";
|
|
4
4
|
//#region components/_utils/global-config.ts
|
|
5
5
|
var COMPONENT_PREFIX = "Sd";
|
|
6
6
|
var CLASS_PREFIX = "sd";
|
|
7
7
|
var GLOBAL_CONFIG_NAME = "$sd";
|
|
8
|
+
var globalClassPrefix = ref(void 0);
|
|
8
9
|
var getComponentPrefix = (options) => {
|
|
9
10
|
var _options$componentPre;
|
|
10
11
|
return (_options$componentPre = options === null || options === void 0 ? void 0 : options.componentPrefix) !== null && _options$componentPre !== void 0 ? _options$componentPre : COMPONENT_PREFIX;
|
|
11
12
|
};
|
|
12
13
|
var setGlobalConfig = (app, options) => {
|
|
13
|
-
if (options === null || options === void 0 ? void 0 : options.classPrefix)
|
|
14
|
+
if (options === null || options === void 0 ? void 0 : options.classPrefix) {
|
|
15
|
+
globalClassPrefix.value = options.classPrefix;
|
|
16
|
+
app.config.globalProperties[GLOBAL_CONFIG_NAME] = _objectSpread2(_objectSpread2({}, app.config.globalProperties[GLOBAL_CONFIG_NAME]), {}, { classPrefix: options.classPrefix });
|
|
17
|
+
}
|
|
14
18
|
};
|
|
15
19
|
var getPrefixCls = (componentName) => {
|
|
16
|
-
var _ref, _configProvider$prefi, _instance$appContext$;
|
|
20
|
+
var _ref, _ref2, _configProvider$prefi, _instance$appContext$;
|
|
17
21
|
const instance = getCurrentInstance();
|
|
18
|
-
const configProvider = inject(configProviderInjectionKey, void 0);
|
|
19
|
-
const prefix = (_ref = (_configProvider$prefi = configProvider === null || configProvider === void 0 ? void 0 : configProvider.prefixCls) !== null && _configProvider$prefi !== void 0 ? _configProvider$prefi : instance === null || instance === void 0 || (_instance$appContext$ = instance.appContext.config.globalProperties[GLOBAL_CONFIG_NAME]) === null || _instance$appContext$ === void 0 ? void 0 : _instance$appContext$.classPrefix) !== null && _ref !== void 0 ? _ref : CLASS_PREFIX;
|
|
22
|
+
const configProvider = instance ? inject(configProviderInjectionKey, void 0) : void 0;
|
|
23
|
+
const prefix = (_ref = (_ref2 = (_configProvider$prefi = configProvider === null || configProvider === void 0 ? void 0 : configProvider.prefixCls) !== null && _configProvider$prefi !== void 0 ? _configProvider$prefi : globalClassPrefix.value) !== null && _ref2 !== void 0 ? _ref2 : instance === null || instance === void 0 || (_instance$appContext$ = instance.appContext.config.globalProperties[GLOBAL_CONFIG_NAME]) === null || _instance$appContext$ === void 0 ? void 0 : _instance$appContext$.classPrefix) !== null && _ref !== void 0 ? _ref : CLASS_PREFIX;
|
|
20
24
|
if (componentName) return `${prefix}-${componentName}`;
|
|
21
25
|
return prefix;
|
|
22
26
|
};
|
|
@@ -3,6 +3,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
|
|
|
3
3
|
import { isNumber, isWindow } from "../_utils/is.js";
|
|
4
4
|
import { getElement, off, on } from "../_utils/dom.js";
|
|
5
5
|
import { throttleByRaf } from "../_utils/throttle-by-raf.js";
|
|
6
|
+
import Affix from "../affix/index.js";
|
|
6
7
|
import { useI18n } from "../locale/index.js";
|
|
7
8
|
import { anchorInjectionKey } from "./context.js";
|
|
8
9
|
import { BOUNDARY_POSITIONS, slide } from "./utils.js";
|
|
@@ -118,11 +119,12 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
118
119
|
};
|
|
119
120
|
const handleClick = (e, hash) => {
|
|
120
121
|
if (!props.changeHash) e.preventDefault();
|
|
122
|
+
const preHash = currentLink.value;
|
|
121
123
|
if (hash) {
|
|
122
124
|
scrollIntoView(hash);
|
|
123
125
|
handleAnchorChange(hash);
|
|
124
126
|
}
|
|
125
|
-
emit("select", hash,
|
|
127
|
+
emit("select", hash, preHash);
|
|
126
128
|
};
|
|
127
129
|
const scrollIntoView = (hash) => {
|
|
128
130
|
try {
|
|
@@ -141,7 +143,7 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
141
143
|
const targetTop = top - diff;
|
|
142
144
|
slide(el, targetTop, () => {
|
|
143
145
|
isScrolling.value = false;
|
|
144
|
-
});
|
|
146
|
+
}, props.smooth);
|
|
145
147
|
isScrolling.value = true;
|
|
146
148
|
} catch (e) {
|
|
147
149
|
console.error(e);
|
|
@@ -156,11 +158,6 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
156
158
|
}
|
|
157
159
|
});
|
|
158
160
|
const handleAnchorChange = (hash) => {
|
|
159
|
-
if (!links[hash] && anchorRef.value) {
|
|
160
|
-
const element = getElement(`a[data-href='${hash}']`, anchorRef.value);
|
|
161
|
-
if (!element) return;
|
|
162
|
-
links[hash] = element;
|
|
163
|
-
}
|
|
164
161
|
if (hash !== currentLink.value) {
|
|
165
162
|
currentLink.value = hash;
|
|
166
163
|
nextTick(() => {
|
|
@@ -224,7 +221,7 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
224
221
|
[`${prefixCls}-line-less`]: props.lineLess,
|
|
225
222
|
[`${prefixCls}-horizontal`]: props.direction === "horizontal"
|
|
226
223
|
}]);
|
|
227
|
-
const wrapperComponent = computed(() => props.affix ?
|
|
224
|
+
const wrapperComponent = computed(() => props.affix ? Affix : "div");
|
|
228
225
|
const wrapperProps = computed(() => {
|
|
229
226
|
if (!props.affix) return {};
|
|
230
227
|
return {
|
package/es/anchor/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function slide(el: HTMLElement, top: number, cb: () => void): void;
|
|
1
|
+
export declare function slide(el: HTMLElement, top: number, cb: () => void, smooth?: boolean): void;
|
|
2
2
|
export declare const BOUNDARY_POSITIONS: readonly ["start", "end", "center", "nearest"];
|
|
3
3
|
export type BoundaryPosition = (typeof BOUNDARY_POSITIONS)[number];
|
package/es/anchor/utils.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { isFunction } from "../_utils/is.js";
|
|
2
2
|
import BTween from "b-tween";
|
|
3
3
|
//#region components/anchor/utils.ts
|
|
4
|
-
function slide(el, top, cb) {
|
|
4
|
+
function slide(el, top, cb, smooth = true) {
|
|
5
|
+
if (!smooth) {
|
|
6
|
+
el.scrollTop = top;
|
|
7
|
+
cb();
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
5
10
|
new BTween({
|
|
6
11
|
from: { scrollTop: el.scrollTop },
|
|
7
12
|
to: { scrollTop: top },
|
|
@@ -3,17 +3,17 @@ import type { VirtualListProps } from '../_components/virtual-list/interface';
|
|
|
3
3
|
import type { FloatingOptions } from '../_utils/floating';
|
|
4
4
|
import type { FilterOption, SelectOptionData, SelectOptionGroup, SelectOptionInfo } from '../select/interface';
|
|
5
5
|
import { type TriggerProps } from '../trigger';
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_18: {
|
|
7
7
|
data: SelectOptionInfo;
|
|
8
|
-
},
|
|
8
|
+
}, __VLS_67: {}, __VLS_82: {}, __VLS_85: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
option?: (props: typeof
|
|
10
|
+
option?: (props: typeof __VLS_18) => any;
|
|
11
11
|
} & {
|
|
12
|
-
footer?: (props: typeof
|
|
12
|
+
footer?: (props: typeof __VLS_67) => any;
|
|
13
13
|
} & {
|
|
14
|
-
prefix?: (props: typeof
|
|
14
|
+
prefix?: (props: typeof __VLS_82) => any;
|
|
15
15
|
} & {
|
|
16
|
-
suffix?: (props: typeof
|
|
16
|
+
suffix?: (props: typeof __VLS_85) => any;
|
|
17
17
|
};
|
|
18
18
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
19
|
modelValue: {
|
|
@@ -9,13 +9,14 @@ import { resolveDropdownVirtualListProps } from "../_utils/virtual-dropdown.js";
|
|
|
9
9
|
import Trigger from "../trigger/index.js";
|
|
10
10
|
import Ellipsis from "../ellipsis/index.js";
|
|
11
11
|
import Input from "../input/index.js";
|
|
12
|
-
import { getKeyFromValue } from "../select/utils.js";
|
|
12
|
+
import { getKeyFromValue, isGroupOptionInfo } from "../select/utils.js";
|
|
13
13
|
import { useSelect } from "../select/hooks/use-select.js";
|
|
14
14
|
import select_dropdown_default from "../select/select-dropdown.js";
|
|
15
15
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toRef, unref, useAttrs, useSlots, watch, withCtx } from "vue";
|
|
16
16
|
import { createReusableTemplate } from "@vueuse/core";
|
|
17
17
|
//#region components/auto-complete/auto-complete.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
-
var _hoisted_1 = [
|
|
18
|
+
var _hoisted_1 = ["aria-label"];
|
|
19
|
+
var _hoisted_2 = [
|
|
19
20
|
"aria-disabled",
|
|
20
21
|
"onClick",
|
|
21
22
|
"onMouseenter",
|
|
@@ -90,6 +91,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
90
91
|
const [DefineOption, ReuseOption] = createReusableTemplate();
|
|
91
92
|
const prefixCls = getPrefixCls("auto-complete");
|
|
92
93
|
const optionPrefixCls = getPrefixCls("select-option");
|
|
94
|
+
const groupPrefixCls = getPrefixCls("select-group");
|
|
93
95
|
const { mergedDisabled, eventHandlers } = useFormItem({ disabled: toRef(props, "disabled") });
|
|
94
96
|
const { mergedAllowClear } = useAllowClear(toRef(props, "allowClear"));
|
|
95
97
|
const innerValue = ref(props.defaultValue);
|
|
@@ -115,8 +117,8 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
115
117
|
innerPopupVisible.value = popupVisible;
|
|
116
118
|
};
|
|
117
119
|
const strictFilterOption = (inputValue, option) => {
|
|
118
|
-
var _option$label;
|
|
119
|
-
return Boolean((_option$label = option.label)
|
|
120
|
+
var _ref, _option$label;
|
|
121
|
+
return Boolean(String((_ref = (_option$label = option.label) !== null && _option$label !== void 0 ? _option$label : option.value) !== null && _ref !== void 0 ? _ref : "").includes(inputValue));
|
|
120
122
|
};
|
|
121
123
|
const mergedFilterOption = computed(() => {
|
|
122
124
|
if (isFunction(props.filterOption)) return props.filterOption;
|
|
@@ -206,7 +208,21 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
206
208
|
});
|
|
207
209
|
return (_ctx, _cache) => {
|
|
208
210
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineOption), null, {
|
|
209
|
-
default: withCtx(({ item }) => [
|
|
211
|
+
default: withCtx(({ item }) => [unref(isGroupOptionInfo)(item) ? (openBlock(), createElementBlock("li", {
|
|
212
|
+
key: item.key,
|
|
213
|
+
role: "group",
|
|
214
|
+
"aria-label": item.label,
|
|
215
|
+
class: normalizeClass(unref(groupPrefixCls))
|
|
216
|
+
}, [createElementVNode("div", { class: normalizeClass(`${unref(groupPrefixCls)}-title`) }, [createVNode(unref(Ellipsis), null, {
|
|
217
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
|
|
218
|
+
_: 2
|
|
219
|
+
}, 1024)], 2), (openBlock(true), createElementBlock(Fragment, null, renderList(item.options, (child) => {
|
|
220
|
+
return openBlock(), createBlock(unref(ReuseOption), {
|
|
221
|
+
key: child.key,
|
|
222
|
+
item: child
|
|
223
|
+
}, null, 8, ["item"]);
|
|
224
|
+
}), 128))], 10, _hoisted_1)) : (openBlock(), createElementBlock("li", {
|
|
225
|
+
key: 1,
|
|
210
226
|
ref: (element) => setOptionRef(item.key, element),
|
|
211
227
|
class: normalizeClass([unref(optionPrefixCls), {
|
|
212
228
|
[`${unref(optionPrefixCls)}-active`]: unref(activeKey) === item.key,
|
|
@@ -220,7 +236,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
220
236
|
}, [createElementVNode("span", { class: normalizeClass(`${unref(optionPrefixCls)}-content`) }, [unref(slots).option && item.value ? renderSlot(_ctx.$slots, "option", { data: item }, void 0, void 0, 0) : (openBlock(), createBlock(unref(Ellipsis), { key: 1 }, {
|
|
221
237
|
default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
|
|
222
238
|
_: 2
|
|
223
|
-
}, 1024))], 2)], 42,
|
|
239
|
+
}, 1024))], 2)], 42, _hoisted_2))]),
|
|
224
240
|
_: 3
|
|
225
241
|
}), createVNode(unref(Trigger), mergeProps(mergedTriggerProps.value, { onPopupVisibleChange: handlePopupVisibleChange }), {
|
|
226
242
|
content: withCtx(() => [createVNode(select_dropdown_default, {
|
|
@@ -40,6 +40,7 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
const prefixCls = getPrefixCls("avatar-group");
|
|
43
|
+
const avatarPrefixCls = getPrefixCls("avatar");
|
|
43
44
|
const configCtx = inject(configProviderInjectionKey, void 0);
|
|
44
45
|
const rtl = computed(() => {
|
|
45
46
|
var _configCtx$rtl;
|
|
@@ -65,7 +66,7 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
65
66
|
return (_ctx, _cache) => {
|
|
66
67
|
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), { [`${unref(prefixCls)}-rtl`]: rtl.value }]) }, [createVNode(unref(DefineAvatarContent), null, {
|
|
67
68
|
default: withCtx(({ children }) => [createVNode(unref(RenderVNodes), { content: getVisibleAvatars(children) }, null, 8, ["content"]), getOverflowAvatars(children).length > 0 ? (openBlock(), createBlock(unref(Popover), normalizeProps(mergeProps({ key: 0 }, __props.maxPopoverTriggerProps)), {
|
|
68
|
-
content: withCtx(() => [createElementVNode("div",
|
|
69
|
+
content: withCtx(() => [createElementVNode("div", { class: normalizeClass(`${unref(avatarPrefixCls)}-group-popover`) }, [createVNode(unref(RenderVNodes), { content: getOverflowAvatars(children) }, null, 8, ["content"])], 2)]),
|
|
69
70
|
default: withCtx(() => [createVNode(avatar_default, {
|
|
70
71
|
class: normalizeClass(`${unref(prefixCls)}-max-count-avatar`),
|
|
71
72
|
style: normalizeStyle(__props.maxStyle)
|
|
@@ -120,11 +120,11 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
120
120
|
}
|
|
121
121
|
return style;
|
|
122
122
|
});
|
|
123
|
-
const computedTriggerIconStyle = useTriggerIconStyle({
|
|
123
|
+
const computedTriggerIconStyle = computed(() => useTriggerIconStyle({
|
|
124
124
|
triggerIconStyle: triggerIconStyle === null || triggerIconStyle === void 0 ? void 0 : triggerIconStyle.value,
|
|
125
125
|
inlineStyle: attrs.style,
|
|
126
126
|
triggerType: triggerType.value
|
|
127
|
-
});
|
|
127
|
+
}));
|
|
128
128
|
const autoFixFontSizeHandler = () => {
|
|
129
129
|
if (!isImage.value && !props.imageUrl) nextTick(() => {
|
|
130
130
|
var _mergedSize$value2;
|
|
@@ -201,7 +201,7 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
201
201
|
}), _ctx.$slots["trigger-icon"] ? (openBlock(), createElementBlock("div", {
|
|
202
202
|
key: 0,
|
|
203
203
|
class: normalizeClass(`${unref(prefixCls)}-trigger-icon-${unref(triggerType)}`),
|
|
204
|
-
style: normalizeStyle(
|
|
204
|
+
style: normalizeStyle(computedTriggerIconStyle.value)
|
|
205
205
|
}, [renderSlot(_ctx.$slots, "trigger-icon")], 6)) : createCommentVNode("", true)], 6);
|
|
206
206
|
};
|
|
207
207
|
}
|
|
@@ -156,6 +156,7 @@ $avatar-prefix-cls: string.unquote('#{theme.$prefix}-avatar');
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
&-group-popover &:not(:first-child) {
|
|
159
|
-
margin-left
|
|
159
|
+
// 气泡内头像使用正向间距,需覆盖条带布局写入的内联 margin-left
|
|
160
|
+
margin-left: $avatar-group-popover-item-spacing !important;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
@@ -47,7 +47,7 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
47
47
|
return (_configCtx$rtl = configCtx === null || configCtx === void 0 ? void 0 : configCtx.rtl) !== null && _configCtx$rtl !== void 0 ? _configCtx$rtl : false;
|
|
48
48
|
});
|
|
49
49
|
const hasCount = computed(() => __props.count != null);
|
|
50
|
-
const countValue = computed(() => Number(__props.count));
|
|
50
|
+
const countValue = computed(() => Math.max(Number(__props.count) || 0, 0));
|
|
51
51
|
const wrapperClassName = computed(() => [prefixCls, {
|
|
52
52
|
[`${prefixCls}-status`]: __props.status,
|
|
53
53
|
[`${prefixCls}-no-children`]: !slots.default,
|
|
@@ -56,7 +56,8 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
56
56
|
const computedDotStyle = computed(() => {
|
|
57
57
|
const style = _objectSpread2({}, __props.dotStyle);
|
|
58
58
|
const [leftOffset, topOffset] = __props.offset;
|
|
59
|
-
|
|
59
|
+
const horizontalMargin = rtl.value ? "marginLeft" : "marginRight";
|
|
60
|
+
if (leftOffset) style[horizontalMargin] = `${-leftOffset}px`;
|
|
60
61
|
if (topOffset) style.marginTop = `${topOffset}px`;
|
|
61
62
|
return style;
|
|
62
63
|
});
|
|
@@ -65,46 +66,62 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
65
66
|
const displayCount = computed(() => isCountOverflow.value ? __props.maxCount : countValue.value);
|
|
66
67
|
const displaySuffix = computed(() => isCountOverflow.value ? "+" : void 0);
|
|
67
68
|
return (_ctx, _cache) => {
|
|
68
|
-
return openBlock(), createElementBlock("span", { class: normalizeClass(wrapperClassName.value) }, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
[`${unref(prefixCls)}-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
69
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(wrapperClassName.value) }, [
|
|
70
|
+
renderSlot(_ctx.$slots, "default"),
|
|
71
|
+
_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: normalizeClass(`${unref(prefixCls)}-custom-dot`),
|
|
74
|
+
style: normalizeStyle(computedDotStyle.value)
|
|
75
|
+
}, [renderSlot(_ctx.$slots, "content")], 6)) : __props.text && !__props.color && !__props.status ? (openBlock(), createElementBlock("span", {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: normalizeClass(`${unref(prefixCls)}-text`),
|
|
78
|
+
style: normalizeStyle(computedDotStyle.value)
|
|
79
|
+
}, toDisplayString(__props.text), 7)) : __props.status || __props.color && !hasCount.value ? (openBlock(), createElementBlock("span", {
|
|
80
|
+
key: 2,
|
|
81
|
+
class: normalizeClass(`${unref(prefixCls)}-status-wrapper`)
|
|
82
|
+
}, [createElementVNode("span", {
|
|
83
|
+
class: normalizeClass([`${unref(prefixCls)}-status-dot`, {
|
|
84
|
+
[`${unref(prefixCls)}-status-${__props.status}`]: __props.status,
|
|
85
|
+
[`${unref(prefixCls)}-color-${__props.color}`]: __props.color
|
|
86
|
+
}]),
|
|
87
|
+
style: normalizeStyle(mergedStyle.value),
|
|
88
|
+
"aria-hidden": "true"
|
|
89
|
+
}, null, 6), __props.text ? (openBlock(), createElementBlock("span", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: normalizeClass(`${unref(prefixCls)}-status-text`)
|
|
92
|
+
}, toDisplayString(__props.text), 3)) : createCommentVNode("", true)], 2)) : (__props.dot || __props.color) && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
|
|
93
|
+
key: 3,
|
|
94
|
+
role: "status",
|
|
95
|
+
"aria-label": String(countValue.value),
|
|
96
|
+
class: normalizeClass([`${unref(prefixCls)}-dot`, { [`${unref(prefixCls)}-color-${__props.color}`]: __props.color }]),
|
|
97
|
+
style: normalizeStyle(mergedStyle.value)
|
|
98
|
+
}, null, 14, _hoisted_1)) : countValue.value !== 0 ? (openBlock(), createElementBlock("span", {
|
|
99
|
+
key: 4,
|
|
100
|
+
class: normalizeClass(`${unref(prefixCls)}-number`),
|
|
101
|
+
style: normalizeStyle(mergedStyle.value)
|
|
102
|
+
}, [createVNode(unref(NumberFlow), {
|
|
103
|
+
value: displayCount.value,
|
|
104
|
+
suffix: displaySuffix.value,
|
|
105
|
+
animated: __props.animation
|
|
106
|
+
}, null, 8, [
|
|
107
|
+
"value",
|
|
108
|
+
"suffix",
|
|
109
|
+
"animated"
|
|
110
|
+
])], 6)) : createCommentVNode("", true),
|
|
111
|
+
__props.status && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
|
|
112
|
+
key: 5,
|
|
113
|
+
class: normalizeClass(`${unref(prefixCls)}-number`),
|
|
114
|
+
style: normalizeStyle(mergedStyle.value)
|
|
115
|
+
}, [createVNode(unref(NumberFlow), {
|
|
116
|
+
value: displayCount.value,
|
|
117
|
+
suffix: displaySuffix.value,
|
|
118
|
+
animated: __props.animation
|
|
119
|
+
}, null, 8, [
|
|
120
|
+
"value",
|
|
121
|
+
"suffix",
|
|
122
|
+
"animated"
|
|
123
|
+
])], 6)) : createCommentVNode("", true)
|
|
124
|
+
], 2);
|
|
108
125
|
};
|
|
109
126
|
}
|
|
110
127
|
}));
|
|
@@ -29,14 +29,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
29
29
|
$data: {};
|
|
30
30
|
$props: {
|
|
31
31
|
readonly schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
|
|
32
|
+
readonly modelValue?: import("..").JsonFormModel | undefined;
|
|
32
33
|
readonly adapter?: import("..").JsonFormAdapter | undefined;
|
|
33
34
|
readonly model?: import("..").JsonFormModel | undefined;
|
|
34
35
|
readonly hideLabel?: boolean | undefined;
|
|
35
36
|
readonly hideAsterisk?: boolean | undefined;
|
|
36
37
|
readonly showColon?: boolean | undefined;
|
|
37
38
|
readonly component?: (string | import("vue").Component) | undefined;
|
|
38
|
-
readonly modelValue?: import("..").JsonFormModel | undefined;
|
|
39
|
-
readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
|
|
39
|
+
readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
|
|
40
40
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
41
41
|
$attrs: import("vue").Attrs;
|
|
42
42
|
$refs: {
|
|
@@ -48,20 +48,19 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
48
|
$root: import("vue").ComponentPublicInstance | null;
|
|
49
49
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
50
50
|
$host: Element | null;
|
|
51
|
-
$emit: (event: "update:modelValue", value: import("..").JsonFormModel
|
|
51
|
+
$emit: (event: "update:modelValue", value: import("..").JsonFormModel) => void;
|
|
52
52
|
$el: any;
|
|
53
53
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
54
54
|
schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
|
|
55
|
+
modelValue?: import("..").JsonFormModel;
|
|
55
56
|
adapter?: import("..").JsonFormAdapter;
|
|
56
57
|
model?: import("..").JsonFormModel;
|
|
57
58
|
hideLabel?: boolean;
|
|
58
59
|
hideAsterisk?: boolean;
|
|
59
60
|
showColon?: boolean;
|
|
60
61
|
component?: string | import("vue").Component;
|
|
61
|
-
} & {
|
|
62
|
-
modelValue?: import("..").JsonFormModel | undefined;
|
|
63
62
|
}> & Readonly<{
|
|
64
|
-
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel
|
|
63
|
+
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
|
|
65
64
|
}>, {
|
|
66
65
|
validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
67
66
|
validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
@@ -70,9 +69,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
70
69
|
setFields: (data: Record<string, import("../form/interface").FieldData>) => void | undefined;
|
|
71
70
|
scrollToField: (field: string) => void | undefined;
|
|
72
71
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
-
"update:modelValue": (value: import("..").JsonFormModel
|
|
72
|
+
"update:modelValue": (value: import("..").JsonFormModel) => any;
|
|
74
73
|
}, string, {
|
|
75
74
|
component: string | import("vue").Component;
|
|
75
|
+
modelValue: import("..").JsonFormModel;
|
|
76
76
|
showColon: boolean;
|
|
77
77
|
hideLabel: boolean;
|
|
78
78
|
hideAsterisk: boolean;
|
|
@@ -100,6 +100,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
100
100
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
101
101
|
} & Readonly<{
|
|
102
102
|
component: string | import("vue").Component;
|
|
103
|
+
modelValue: import("..").JsonFormModel;
|
|
103
104
|
showColon: boolean;
|
|
104
105
|
hideLabel: boolean;
|
|
105
106
|
hideAsterisk: boolean;
|
|
@@ -107,17 +108,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
107
108
|
adapter: import("..").JsonFormAdapter;
|
|
108
109
|
}> & Omit<Readonly<{
|
|
109
110
|
schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
|
|
111
|
+
modelValue?: import("..").JsonFormModel;
|
|
110
112
|
adapter?: import("..").JsonFormAdapter;
|
|
111
113
|
model?: import("..").JsonFormModel;
|
|
112
114
|
hideLabel?: boolean;
|
|
113
115
|
hideAsterisk?: boolean;
|
|
114
116
|
showColon?: boolean;
|
|
115
117
|
component?: string | import("vue").Component;
|
|
116
|
-
} & {
|
|
117
|
-
modelValue?: import("..").JsonFormModel | undefined;
|
|
118
118
|
}> & Readonly<{
|
|
119
|
-
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel
|
|
120
|
-
}>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
|
|
119
|
+
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
|
|
120
|
+
}>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "modelValue" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
|
|
121
121
|
validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
122
122
|
validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
123
123
|
resetFields: (field?: string | string[] | undefined) => void | undefined;
|
|
@@ -137,14 +137,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
137
137
|
$data: {};
|
|
138
138
|
$props: {
|
|
139
139
|
readonly schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
|
|
140
|
+
readonly modelValue?: import("..").JsonFormModel | undefined;
|
|
140
141
|
readonly adapter?: import("..").JsonFormAdapter | undefined;
|
|
141
142
|
readonly model?: import("..").JsonFormModel | undefined;
|
|
142
143
|
readonly hideLabel?: boolean | undefined;
|
|
143
144
|
readonly hideAsterisk?: boolean | undefined;
|
|
144
145
|
readonly showColon?: boolean | undefined;
|
|
145
146
|
readonly component?: (string | import("vue").Component) | undefined;
|
|
146
|
-
readonly modelValue?: import("..").JsonFormModel | undefined;
|
|
147
|
-
readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
|
|
147
|
+
readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
|
|
148
148
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
149
149
|
$attrs: import("vue").Attrs;
|
|
150
150
|
$refs: {
|
|
@@ -156,20 +156,19 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
156
156
|
$root: import("vue").ComponentPublicInstance | null;
|
|
157
157
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
158
158
|
$host: Element | null;
|
|
159
|
-
$emit: (event: "update:modelValue", value: import("..").JsonFormModel
|
|
159
|
+
$emit: (event: "update:modelValue", value: import("..").JsonFormModel) => void;
|
|
160
160
|
$el: any;
|
|
161
161
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
162
162
|
schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
|
|
163
|
+
modelValue?: import("..").JsonFormModel;
|
|
163
164
|
adapter?: import("..").JsonFormAdapter;
|
|
164
165
|
model?: import("..").JsonFormModel;
|
|
165
166
|
hideLabel?: boolean;
|
|
166
167
|
hideAsterisk?: boolean;
|
|
167
168
|
showColon?: boolean;
|
|
168
169
|
component?: string | import("vue").Component;
|
|
169
|
-
} & {
|
|
170
|
-
modelValue?: import("..").JsonFormModel | undefined;
|
|
171
170
|
}> & Readonly<{
|
|
172
|
-
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel
|
|
171
|
+
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
|
|
173
172
|
}>, {
|
|
174
173
|
validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
175
174
|
validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
@@ -178,9 +177,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
178
177
|
setFields: (data: Record<string, import("../form/interface").FieldData>) => void | undefined;
|
|
179
178
|
scrollToField: (field: string) => void | undefined;
|
|
180
179
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
181
|
-
"update:modelValue": (value: import("..").JsonFormModel
|
|
180
|
+
"update:modelValue": (value: import("..").JsonFormModel) => any;
|
|
182
181
|
}, string, {
|
|
183
182
|
component: string | import("vue").Component;
|
|
183
|
+
modelValue: import("..").JsonFormModel;
|
|
184
184
|
showColon: boolean;
|
|
185
185
|
hideLabel: boolean;
|
|
186
186
|
hideAsterisk: boolean;
|
|
@@ -208,6 +208,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
208
208
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
209
209
|
} & Readonly<{
|
|
210
210
|
component: string | import("vue").Component;
|
|
211
|
+
modelValue: import("..").JsonFormModel;
|
|
211
212
|
showColon: boolean;
|
|
212
213
|
hideLabel: boolean;
|
|
213
214
|
hideAsterisk: boolean;
|
|
@@ -215,17 +216,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
215
216
|
adapter: import("..").JsonFormAdapter;
|
|
216
217
|
}> & Omit<Readonly<{
|
|
217
218
|
schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
|
|
219
|
+
modelValue?: import("..").JsonFormModel;
|
|
218
220
|
adapter?: import("..").JsonFormAdapter;
|
|
219
221
|
model?: import("..").JsonFormModel;
|
|
220
222
|
hideLabel?: boolean;
|
|
221
223
|
hideAsterisk?: boolean;
|
|
222
224
|
showColon?: boolean;
|
|
223
225
|
component?: string | import("vue").Component;
|
|
224
|
-
} & {
|
|
225
|
-
modelValue?: import("..").JsonFormModel | undefined;
|
|
226
226
|
}> & Readonly<{
|
|
227
|
-
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel
|
|
228
|
-
}>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
|
|
227
|
+
"onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
|
|
228
|
+
}>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "modelValue" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
|
|
229
229
|
validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
230
230
|
validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
|
|
231
231
|
resetFields: (field?: string | string[] | undefined) => void | undefined;
|