straw-ui-vue 0.1.21 → 0.1.22
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/components/st-cascade/index.d.ts +3 -11
- package/dist/components/st-cascade/st-cascade-panel.d.ts +2 -5
- package/dist/components/st-cascade/st-cascade.d.ts +2 -7
- package/dist/components/st-cascade/types.d.ts +10 -0
- package/dist/components/st-checkbox/useCheckboxGroupState.d.ts +2 -0
- package/dist/components/st-color-picker/index.d.ts +94 -12
- package/dist/components/st-color-picker/st-color-picker-panel.d.ts +9 -2
- package/dist/components/st-color-picker/st-color-picker.d.ts +9 -2
- package/dist/components/st-color-picker/types.d.ts +16 -0
- package/dist/components/st-date-picker/index.d.ts +85 -19
- package/dist/components/st-date-picker/st-date-picker-panel.d.ts +9 -4
- package/dist/components/st-date-picker/st-date-picker.d.ts +2 -5
- package/dist/components/st-date-picker/types.d.ts +18 -4
- package/dist/components/st-datetime-picker/index.d.ts +89 -19
- package/dist/components/st-datetime-picker/st-datetime-picker-panel.d.ts +9 -4
- package/dist/components/st-datetime-picker/st-datetime-picker.d.ts +2 -5
- package/dist/components/st-datetime-picker/types.d.ts +18 -4
- package/dist/components/st-dialog/useDialogState.d.ts +2 -0
- package/dist/components/st-divider/useDividerState.d.ts +2 -0
- package/dist/components/st-drawer/useDrawerState.d.ts +2 -0
- package/dist/components/st-empty/types.d.ts +5 -0
- package/dist/components/st-form-control/types.d.ts +6 -8
- package/dist/components/st-form-description/index.d.ts +1 -3
- package/dist/components/st-form-description/st-form-description.d.ts +2 -5
- package/dist/components/st-form-description/types.d.ts +5 -0
- package/dist/components/st-form-field/index.d.ts +1 -11
- package/dist/components/st-form-field/st-form-field.d.ts +2 -9
- package/dist/components/st-form-field/types.d.ts +5 -6
- package/dist/components/st-form-item/index.d.ts +1 -3
- package/dist/components/st-form-item/st-form-item.d.ts +2 -5
- package/dist/components/st-form-item/types.d.ts +6 -8
- package/dist/components/st-form-label/index.d.ts +1 -3
- package/dist/components/st-form-label/st-form-label.d.ts +2 -5
- package/dist/components/st-form-label/types.d.ts +5 -0
- package/dist/components/st-form-message/index.d.ts +1 -3
- package/dist/components/st-form-message/st-form-message.d.ts +2 -5
- package/dist/components/st-form-message/types.d.ts +5 -0
- package/dist/components/st-input/index.d.ts +1863 -607
- package/dist/components/st-input/st-input-group-input.d.ts +9 -2
- package/dist/components/st-input/st-input-group-textarea.d.ts +9 -2
- package/dist/components/st-input/st-input-number.d.ts +10 -3
- package/dist/components/st-input/st-input.d.ts +165 -57
- package/dist/components/st-input/st-textarea.d.ts +167 -57
- package/dist/components/st-input/types.d.ts +50 -0
- package/dist/components/st-label/index.d.ts +1 -3
- package/dist/components/st-label/st-label.d.ts +2 -5
- package/dist/components/st-label/types.d.ts +5 -0
- package/dist/components/st-menu/index.d.ts +14 -82
- package/dist/components/st-menu/st-menu-content.d.ts +1 -6
- package/dist/components/st-menu/st-menu-divider.d.ts +1 -4
- package/dist/components/st-menu/st-menu-group.d.ts +0 -4
- package/dist/components/st-menu/st-menu-item.d.ts +0 -4
- package/dist/components/st-menu/st-menu-trigger.d.ts +1 -6
- package/dist/components/st-menu/types.d.ts +54 -0
- package/dist/components/st-menu/useMenuState.d.ts +60 -0
- package/dist/components/st-pagination/index.d.ts +1 -7
- package/dist/components/st-pagination/st-pagination.d.ts +2 -9
- package/dist/components/st-popover/index.d.ts +17 -47
- package/dist/components/st-popover/st-popover-arrow.d.ts +1 -8
- package/dist/components/st-popover/st-popover-content.d.ts +0 -6
- package/dist/components/st-popover/st-popover-trigger.d.ts +0 -6
- package/dist/components/st-popover/st-popover.d.ts +11 -12
- package/dist/components/st-popover/types.d.ts +45 -14
- package/dist/components/st-popover/usePopoverState.d.ts +62 -0
- package/dist/components/st-progress/index.d.ts +1 -5
- package/dist/components/st-progress/st-progress.d.ts +2 -7
- package/dist/components/st-progress/types.d.ts +5 -0
- package/dist/components/st-radio/useRadioGroupState.d.ts +2 -0
- package/dist/components/st-scrollbar/index.d.ts +1 -3
- package/dist/components/st-scrollbar/st-scrollbar.d.ts +2 -5
- package/dist/components/st-scrollbar/types.d.ts +0 -6
- package/dist/components/st-segmented/index.d.ts +43 -8
- package/dist/components/st-segmented/st-segmented.d.ts +9 -2
- package/dist/components/st-select/index.d.ts +19 -93
- package/dist/components/st-select/st-select-content.d.ts +1 -8
- package/dist/components/st-select/st-select-empty.d.ts +1 -8
- package/dist/components/st-select/st-select-group.d.ts +1 -8
- package/dist/components/st-select/st-select-item.d.ts +0 -6
- package/dist/components/st-select/st-select-trigger.d.ts +6 -12
- package/dist/components/st-select/st-select.d.ts +2 -7
- package/dist/components/st-select/types.d.ts +68 -0
- package/dist/components/st-select/useSelectState.d.ts +55 -0
- package/dist/components/st-sidebar/index.d.ts +13 -3
- package/dist/components/st-sidebar/st-sidebar.d.ts +5 -1
- package/dist/components/st-sidebar/useSidebarState.d.ts +2 -0
- package/dist/components/st-sidebar-item/index.d.ts +13 -3
- package/dist/components/st-sidebar-item/st-sidebar-item.d.ts +5 -1
- package/dist/components/st-skeleton/index.d.ts +3 -11
- package/dist/components/st-skeleton/st-skeleton-item.d.ts +2 -5
- package/dist/components/st-skeleton/st-skeleton.d.ts +2 -7
- package/dist/components/st-skeleton/types.d.ts +10 -6
- package/dist/components/st-slider/index.d.ts +1 -17
- package/dist/components/st-slider/st-slider.d.ts +2 -19
- package/dist/components/st-slider/types.d.ts +8 -0
- package/dist/components/st-splitter/index.d.ts +14 -6
- package/dist/components/st-splitter/st-splitter.d.ts +7 -6
- package/dist/components/st-splitter/useSplitter.d.ts +0 -8
- package/dist/components/st-splitter/useSplitterState.d.ts +2 -0
- package/dist/components/st-splitter-panel/index.d.ts +6 -3
- package/dist/components/st-splitter-panel/st-splitter-panel.d.ts +4 -5
- package/dist/components/st-tabs/index.d.ts +26 -6
- package/dist/components/st-tabs/st-tabs-pane.d.ts +5 -1
- package/dist/components/st-tabs/useTabsState.d.ts +12 -0
- package/dist/components/st-tag/index.d.ts +1 -20
- package/dist/components/st-tag/st-tag.d.ts +3 -13
- package/dist/components/st-tag/types.d.ts +40 -51
- package/dist/components/st-time-picker/index.d.ts +102 -14
- package/dist/components/st-time-picker/st-time-picker-panel.d.ts +9 -2
- package/dist/components/st-time-picker/st-time-picker.d.ts +9 -2
- package/dist/components/st-time-picker/types.d.ts +18 -6
- package/dist/components/st-toggle/index.d.ts +15 -13
- package/dist/components/st-toggle/st-toggle.d.ts +11 -10
- package/dist/components/st-tooltip/index.d.ts +27 -352
- package/dist/components/st-tooltip/st-tooltip.d.ts +14 -10
- package/dist/components/st-tooltip/types.d.ts +10 -97
- package/dist/components/st-tree/index.d.ts +48 -73
- package/dist/components/st-tree/st-tree-node.d.ts +9 -2
- package/dist/components/st-tree/st-tree.d.ts +15 -69
- package/dist/components/st-tree/types.d.ts +6 -1
- package/dist/components/st-tree/useTreeStyleState.d.ts +2 -0
- package/dist/directive/v-intersection.d.ts +3 -15
- package/dist/directive/v-resize.d.ts +3 -15
- package/dist/dist--ubF9h1Q.js +335 -0
- package/dist/global.d.ts +0 -3
- package/dist/index.d.ts +2 -8
- package/dist/straw-ui.js +3767 -4269
- package/dist/useDialogState-Cs1mp3-Y.js +5 -0
- package/dist/utils/device.d.ts +20 -21
- package/dist/utils/z-index.d.ts +9 -39
- package/package.json +5 -5
- package/dist/components/st-tooltip/st-tooltip-container.d.ts +0 -44
- package/dist/components/st-tooltip/st-tooltip-content.d.ts +0 -30
- package/dist/components/st-tooltip/st-tooltip-trigger.d.ts +0 -23
- package/dist/context-B_FwxbY6.js +0 -4
- package/dist/utils/id.d.ts +0 -4
|
@@ -1,107 +1,82 @@
|
|
|
1
1
|
export declare const StTree: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
list: import('./types.d.ts').StTreeListItem[];
|
|
4
|
-
labelKey?: string;
|
|
5
|
-
valueKey?: string;
|
|
6
|
-
childrenKey?: string;
|
|
7
|
-
indent?: number;
|
|
8
|
-
treeClass?: import('vue').ClassValue;
|
|
9
|
-
treeStyle?: import('vue').StyleValue;
|
|
10
|
-
nodeClass?: import('vue').ClassValue;
|
|
11
|
-
nodeStyle?: import('vue').StyleValue;
|
|
12
|
-
nodeContentClass?: import('vue').ClassValue;
|
|
13
|
-
nodeContentStyle?: import('vue').StyleValue;
|
|
14
|
-
nodeIconClass?: import('vue').ClassValue;
|
|
15
|
-
nodeLabelClass?: import('vue').ClassValue;
|
|
16
|
-
expandIconClass?: import('vue').ClassValue;
|
|
17
|
-
} & {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTreeProps & {
|
|
18
3
|
modelValue?: string | number | undefined;
|
|
19
4
|
expandedKeys?: (string | number)[];
|
|
20
5
|
}> & Readonly<{
|
|
21
6
|
onSelect?: (value: string | number) => any;
|
|
22
|
-
"onUpdate:modelValue"?: (
|
|
7
|
+
"onUpdate:modelValue"?: (...args: unknown[]) => any;
|
|
8
|
+
onExpand?: (value: string | number, expanded: boolean) => any;
|
|
23
9
|
"onUpdate:expandedKeys"?: (value: (string | number)[]) => any;
|
|
24
10
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
11
|
select: (value: string | number) => any;
|
|
26
|
-
"update:modelValue": (
|
|
12
|
+
"update:modelValue": (...args: unknown[]) => any;
|
|
13
|
+
expand: (value: string | number, expanded: boolean) => any;
|
|
27
14
|
"update:expandedKeys": (value: (string | number)[]) => any;
|
|
28
|
-
}, import('vue').PublicProps, {
|
|
29
|
-
indent: number;
|
|
30
|
-
labelKey: string;
|
|
31
|
-
valueKey: string;
|
|
32
|
-
childrenKey: string;
|
|
33
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
15
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
34
16
|
P: {};
|
|
35
17
|
B: {};
|
|
36
18
|
D: {};
|
|
37
19
|
C: {};
|
|
38
20
|
M: {};
|
|
39
21
|
Defaults: {};
|
|
40
|
-
}, Readonly<{
|
|
41
|
-
list: import('./types.d.ts').StTreeListItem[];
|
|
42
|
-
labelKey?: string;
|
|
43
|
-
valueKey?: string;
|
|
44
|
-
childrenKey?: string;
|
|
45
|
-
indent?: number;
|
|
46
|
-
treeClass?: import('vue').ClassValue;
|
|
47
|
-
treeStyle?: import('vue').StyleValue;
|
|
48
|
-
nodeClass?: import('vue').ClassValue;
|
|
49
|
-
nodeStyle?: import('vue').StyleValue;
|
|
50
|
-
nodeContentClass?: import('vue').ClassValue;
|
|
51
|
-
nodeContentStyle?: import('vue').StyleValue;
|
|
52
|
-
nodeIconClass?: import('vue').ClassValue;
|
|
53
|
-
nodeLabelClass?: import('vue').ClassValue;
|
|
54
|
-
expandIconClass?: import('vue').ClassValue;
|
|
55
|
-
} & {
|
|
22
|
+
}, Readonly<import('./types.d.ts').StTreeProps & {
|
|
56
23
|
modelValue?: string | number | undefined;
|
|
57
24
|
expandedKeys?: (string | number)[];
|
|
58
25
|
}> & Readonly<{
|
|
59
26
|
onSelect?: (value: string | number) => any;
|
|
60
|
-
"onUpdate:modelValue"?: (
|
|
27
|
+
"onUpdate:modelValue"?: (...args: unknown[]) => any;
|
|
28
|
+
onExpand?: (value: string | number, expanded: boolean) => any;
|
|
61
29
|
"onUpdate:expandedKeys"?: (value: (string | number)[]) => any;
|
|
62
|
-
}>, {}, {}, {}, {}, {
|
|
63
|
-
indent: number;
|
|
64
|
-
labelKey: string;
|
|
65
|
-
valueKey: string;
|
|
66
|
-
childrenKey: string;
|
|
67
|
-
}>;
|
|
30
|
+
}>, {}, {}, {}, {}, {}>;
|
|
68
31
|
__isFragment?: never;
|
|
69
32
|
__isTeleport?: never;
|
|
70
33
|
__isSuspense?: never;
|
|
71
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
72
|
-
list: import('./types.d.ts').StTreeListItem[];
|
|
73
|
-
labelKey?: string;
|
|
74
|
-
valueKey?: string;
|
|
75
|
-
childrenKey?: string;
|
|
76
|
-
indent?: number;
|
|
77
|
-
treeClass?: import('vue').ClassValue;
|
|
78
|
-
treeStyle?: import('vue').StyleValue;
|
|
79
|
-
nodeClass?: import('vue').ClassValue;
|
|
80
|
-
nodeStyle?: import('vue').StyleValue;
|
|
81
|
-
nodeContentClass?: import('vue').ClassValue;
|
|
82
|
-
nodeContentStyle?: import('vue').StyleValue;
|
|
83
|
-
nodeIconClass?: import('vue').ClassValue;
|
|
84
|
-
nodeLabelClass?: import('vue').ClassValue;
|
|
85
|
-
expandIconClass?: import('vue').ClassValue;
|
|
86
|
-
} & {
|
|
34
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTreeProps & {
|
|
87
35
|
modelValue?: string | number | undefined;
|
|
88
36
|
expandedKeys?: (string | number)[];
|
|
89
37
|
}> & Readonly<{
|
|
90
38
|
onSelect?: (value: string | number) => any;
|
|
91
|
-
"onUpdate:modelValue"?: (
|
|
39
|
+
"onUpdate:modelValue"?: (...args: unknown[]) => any;
|
|
40
|
+
onExpand?: (value: string | number, expanded: boolean) => any;
|
|
92
41
|
"onUpdate:expandedKeys"?: (value: (string | number)[]) => any;
|
|
93
42
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
94
43
|
select: (value: string | number) => any;
|
|
95
|
-
"update:modelValue": (
|
|
44
|
+
"update:modelValue": (...args: unknown[]) => any;
|
|
45
|
+
expand: (value: string | number, expanded: boolean) => any;
|
|
96
46
|
"update:expandedKeys": (value: (string | number)[]) => any;
|
|
97
|
-
}, string, {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
47
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
48
|
+
$slots: import('./types.d.ts').StTreeSlots;
|
|
49
|
+
}) & {
|
|
50
|
+
StTreeNode: {
|
|
51
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
52
|
+
P: {};
|
|
53
|
+
B: {};
|
|
54
|
+
D: {};
|
|
55
|
+
C: {};
|
|
56
|
+
M: {};
|
|
57
|
+
Defaults: {};
|
|
58
|
+
}, Readonly<import('./types.d.ts').StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
59
|
+
__isFragment?: never;
|
|
60
|
+
__isTeleport?: never;
|
|
61
|
+
__isSuspense?: never;
|
|
62
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
63
|
+
$slots: import('./types.d.ts').StTreeNodeSlots;
|
|
64
|
+
});
|
|
104
65
|
};
|
|
105
|
-
export declare const StTreeNode:
|
|
66
|
+
export declare const StTreeNode: {
|
|
67
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
68
|
+
P: {};
|
|
69
|
+
B: {};
|
|
70
|
+
D: {};
|
|
71
|
+
C: {};
|
|
72
|
+
M: {};
|
|
73
|
+
Defaults: {};
|
|
74
|
+
}, Readonly<import('./types.d.ts').StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
75
|
+
__isFragment?: never;
|
|
76
|
+
__isTeleport?: never;
|
|
77
|
+
__isSuspense?: never;
|
|
78
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
79
|
+
$slots: import('./types.d.ts').StTreeNodeSlots;
|
|
80
|
+
});
|
|
106
81
|
export default StTree;
|
|
107
82
|
export type * from './types.d.ts';
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { StTreeNodeProps } from './types.d.ts';
|
|
2
|
-
|
|
1
|
+
import { StTreeNodeProps, StTreeNodeSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StTreeNodeSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<StTreeNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StTreeNodeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
3
5
|
declare const _default: typeof __VLS_export;
|
|
4
6
|
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -1,63 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
/**
|
|
5
|
-
* 树数据列表
|
|
6
|
-
* */
|
|
7
|
-
list: StTreeListItem[];
|
|
8
|
-
/**
|
|
9
|
-
* 显示文本的字段名
|
|
10
|
-
* */
|
|
11
|
-
labelKey?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 值的字段名
|
|
14
|
-
* */
|
|
15
|
-
valueKey?: string;
|
|
16
|
-
/**
|
|
17
|
-
* 子节点的字段名
|
|
18
|
-
* */
|
|
19
|
-
childrenKey?: string;
|
|
20
|
-
/**
|
|
21
|
-
* 节点缩进距离
|
|
22
|
-
* */
|
|
23
|
-
indent?: number;
|
|
24
|
-
/**
|
|
25
|
-
* tree 容器 class
|
|
26
|
-
* */
|
|
27
|
-
treeClass?: ClassValue;
|
|
28
|
-
/**
|
|
29
|
-
* tree 容器 style
|
|
30
|
-
* */
|
|
31
|
-
treeStyle?: StyleValue;
|
|
32
|
-
/**
|
|
33
|
-
* 节点 class
|
|
34
|
-
* */
|
|
35
|
-
nodeClass?: ClassValue;
|
|
36
|
-
/**
|
|
37
|
-
* 节点 style
|
|
38
|
-
* */
|
|
39
|
-
nodeStyle?: StyleValue;
|
|
40
|
-
/**
|
|
41
|
-
* 节点内容 class
|
|
42
|
-
* */
|
|
43
|
-
nodeContentClass?: ClassValue;
|
|
44
|
-
/**
|
|
45
|
-
* 节点内容 style
|
|
46
|
-
* */
|
|
47
|
-
nodeContentStyle?: StyleValue;
|
|
48
|
-
/**
|
|
49
|
-
* 节点图标 class
|
|
50
|
-
* */
|
|
51
|
-
nodeIconClass?: ClassValue;
|
|
52
|
-
/**
|
|
53
|
-
* 节点标签 class
|
|
54
|
-
* */
|
|
55
|
-
nodeLabelClass?: ClassValue;
|
|
56
|
-
/**
|
|
57
|
-
* 展开图标 class
|
|
58
|
-
* */
|
|
59
|
-
expandIconClass?: ClassValue;
|
|
60
|
-
};
|
|
1
|
+
import { StTreeProps, StTreeSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Props = StTreeProps;
|
|
3
|
+
type __VLS_Slots = StTreeSlots;
|
|
61
4
|
type __VLS_ModelProps = {
|
|
62
5
|
/**
|
|
63
6
|
* 选中值的双向绑定
|
|
@@ -69,19 +12,22 @@ type __VLS_ModelProps = {
|
|
|
69
12
|
'expandedKeys'?: (string | number)[];
|
|
70
13
|
};
|
|
71
14
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
72
|
-
declare const
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
16
|
select: (value: string | number) => any;
|
|
74
|
-
"update:modelValue": (
|
|
17
|
+
"update:modelValue": (...args: unknown[]) => any;
|
|
18
|
+
expand: (value: string | number, expanded: boolean) => any;
|
|
75
19
|
"update:expandedKeys": (value: (string | number)[]) => any;
|
|
76
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
77
21
|
onSelect?: (value: string | number) => any;
|
|
78
|
-
"onUpdate:modelValue"?: (
|
|
22
|
+
"onUpdate:modelValue"?: (...args: unknown[]) => any;
|
|
23
|
+
onExpand?: (value: string | number, expanded: boolean) => any;
|
|
79
24
|
"onUpdate:expandedKeys"?: (value: (string | number)[]) => any;
|
|
80
|
-
}>, {
|
|
81
|
-
|
|
82
|
-
labelKey: string;
|
|
83
|
-
valueKey: string;
|
|
84
|
-
childrenKey: string;
|
|
85
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
86
27
|
declare const _default: typeof __VLS_export;
|
|
87
28
|
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -83,7 +83,7 @@ export interface StTreeEmits {
|
|
|
83
83
|
/** 更新选中值事件 */
|
|
84
84
|
'update:modelValue': [value: string | number | undefined];
|
|
85
85
|
/** 选择节点事件 */
|
|
86
|
-
select: [value: string | number
|
|
86
|
+
select: [value: string | number];
|
|
87
87
|
/** 展开/收起节点事件 */
|
|
88
88
|
expand: [value: string | number, expanded: boolean];
|
|
89
89
|
}
|
|
@@ -110,6 +110,11 @@ export interface StTreeExpose {
|
|
|
110
110
|
collapseAll: () => void;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* 树节点组件事件接口
|
|
115
|
+
* */
|
|
116
|
+
export interface StTreeNodeEmits {}
|
|
117
|
+
|
|
113
118
|
/**
|
|
114
119
|
* 树节点属性接口
|
|
115
120
|
* */
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* 用于监听元素与视口(或指定根元素)的交叉状态
|
|
5
|
-
*/
|
|
6
|
-
export declare const vIntersection: {
|
|
7
|
-
name: string;
|
|
8
|
-
mounted(el: HTMLElement, binding: {
|
|
9
|
-
value: IntersectionDirectiveValue;
|
|
10
|
-
}): void;
|
|
11
|
-
updated(el: HTMLElement, binding: {
|
|
12
|
-
value: IntersectionDirectiveValue;
|
|
13
|
-
}): void;
|
|
14
|
-
unmounted(el: HTMLElement): void;
|
|
15
|
-
};
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
2
|
+
import { IntersectionDirectiveValue } from './types.ts';
|
|
3
|
+
export declare const vIntersection: ObjectDirective<HTMLElement, IntersectionDirectiveValue>;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* 用于监听元素尺寸变化
|
|
5
|
-
*/
|
|
6
|
-
export declare const vResize: {
|
|
7
|
-
name: string;
|
|
8
|
-
mounted(el: HTMLElement, binding: {
|
|
9
|
-
value: ResizeDirectiveValue;
|
|
10
|
-
}): void;
|
|
11
|
-
updated(el: HTMLElement, binding: {
|
|
12
|
-
value: ResizeDirectiveValue;
|
|
13
|
-
}): void;
|
|
14
|
-
unmounted(el: HTMLElement): void;
|
|
15
|
-
};
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
2
|
+
import { ResizeDirectiveValue } from './types.ts';
|
|
3
|
+
export declare const vResize: ObjectDirective<HTMLElement, ResizeDirectiveValue>;
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { computed as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, hasInjectionContext as i, inject as a, isRef as o, nextTick as s, onMounted as c, onScopeDispose as l, provide as u, ref as d, shallowReadonly as f, shallowRef as p, toValue as m, unref as h, watch as g, watchEffect as _ } from "vue";
|
|
2
|
+
//#region node_modules/@vueuse/shared/dist/index.js
|
|
3
|
+
function v(e, t) {
|
|
4
|
+
return r() ? (l(e, t), !0) : !1;
|
|
5
|
+
}
|
|
6
|
+
function y(e) {
|
|
7
|
+
let n = !1, r, i = t(!0);
|
|
8
|
+
return ((...t) => (n ||= (r = i.run(() => e(...t)), !0), r));
|
|
9
|
+
}
|
|
10
|
+
var b = /* @__PURE__ */ new WeakMap(), x = (...e) => {
|
|
11
|
+
let t = e[0], o = n()?.proxy ?? r();
|
|
12
|
+
if (o == null && !i()) throw Error("injectLocal must be called in setup");
|
|
13
|
+
return o && b.has(o) && t in b.get(o) ? b.get(o)[t] : a(...e);
|
|
14
|
+
};
|
|
15
|
+
function S(e, t) {
|
|
16
|
+
let i = n()?.proxy ?? r();
|
|
17
|
+
if (i == null) throw Error("provideLocal must be called in setup");
|
|
18
|
+
b.has(i) || b.set(i, Object.create(null));
|
|
19
|
+
let a = b.get(i);
|
|
20
|
+
return a[e] = t, u(e, t);
|
|
21
|
+
}
|
|
22
|
+
function C(e, t) {
|
|
23
|
+
let n = t?.injectionKey || Symbol(e.name || "InjectionState"), r = t?.defaultValue;
|
|
24
|
+
return [(...t) => {
|
|
25
|
+
let r = e(...t);
|
|
26
|
+
return S(n, r), r;
|
|
27
|
+
}, () => x(n, r)];
|
|
28
|
+
}
|
|
29
|
+
var w = typeof window < "u" && typeof document < "u";
|
|
30
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
31
|
+
var T = Object.prototype.toString, E = (e) => T.call(e) === "[object Object]", D = (e, t, n) => Math.min(n, Math.max(t, e)), O = () => {}, k = /* @__PURE__ */ A();
|
|
32
|
+
function A() {
|
|
33
|
+
var e, t;
|
|
34
|
+
return w && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
35
|
+
}
|
|
36
|
+
function j(e, t = !1, n = "Timeout") {
|
|
37
|
+
return new Promise((r, i) => {
|
|
38
|
+
t ? setTimeout(i, e, n) : setTimeout(r, e);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function M(e) {
|
|
42
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
43
|
+
}
|
|
44
|
+
function N(e) {
|
|
45
|
+
return Array.isArray(e) ? e : [e];
|
|
46
|
+
}
|
|
47
|
+
function P(e, t = !1) {
|
|
48
|
+
function n(n, { flush: r = "sync", deep: i = !1, timeout: a, throwOnTimeout: o } = {}) {
|
|
49
|
+
let c = null, l = [new Promise((a) => {
|
|
50
|
+
c = g(e, (e) => {
|
|
51
|
+
n(e) !== t && (c ? c() : s(() => c?.()), a(e));
|
|
52
|
+
}, {
|
|
53
|
+
flush: r,
|
|
54
|
+
deep: i,
|
|
55
|
+
immediate: !0
|
|
56
|
+
});
|
|
57
|
+
})];
|
|
58
|
+
return a != null && l.push(j(a, o).then(() => m(e)).finally(() => c?.())), Promise.race(l);
|
|
59
|
+
}
|
|
60
|
+
function r(r, i) {
|
|
61
|
+
if (!o(r)) return n((e) => e === r, i);
|
|
62
|
+
let { flush: a = "sync", deep: c = !1, timeout: l, throwOnTimeout: u } = i ?? {}, d = null, f = [new Promise((n) => {
|
|
63
|
+
d = g([e, r], ([e, r]) => {
|
|
64
|
+
t !== (e === r) && (d ? d() : s(() => d?.()), n(e));
|
|
65
|
+
}, {
|
|
66
|
+
flush: a,
|
|
67
|
+
deep: c,
|
|
68
|
+
immediate: !0
|
|
69
|
+
});
|
|
70
|
+
})];
|
|
71
|
+
return l != null && f.push(j(l, u).then(() => m(e)).finally(() => (d?.(), m(e)))), Promise.race(f);
|
|
72
|
+
}
|
|
73
|
+
function i(e) {
|
|
74
|
+
return n((e) => !!e, e);
|
|
75
|
+
}
|
|
76
|
+
function a(e) {
|
|
77
|
+
return r(null, e);
|
|
78
|
+
}
|
|
79
|
+
function c(e) {
|
|
80
|
+
return r(void 0, e);
|
|
81
|
+
}
|
|
82
|
+
function l(e) {
|
|
83
|
+
return n(Number.isNaN, e);
|
|
84
|
+
}
|
|
85
|
+
function u(e, t) {
|
|
86
|
+
return n((t) => {
|
|
87
|
+
let n = Array.from(t);
|
|
88
|
+
return n.includes(e) || n.includes(m(e));
|
|
89
|
+
}, t);
|
|
90
|
+
}
|
|
91
|
+
function d(e) {
|
|
92
|
+
return f(1, e);
|
|
93
|
+
}
|
|
94
|
+
function f(e = 1, t) {
|
|
95
|
+
let r = -1;
|
|
96
|
+
return n(() => (r += 1, r >= e), t);
|
|
97
|
+
}
|
|
98
|
+
return Array.isArray(m(e)) ? {
|
|
99
|
+
toMatch: n,
|
|
100
|
+
toContains: u,
|
|
101
|
+
changed: d,
|
|
102
|
+
changedTimes: f,
|
|
103
|
+
get not() {
|
|
104
|
+
return P(e, !t);
|
|
105
|
+
}
|
|
106
|
+
} : {
|
|
107
|
+
toMatch: n,
|
|
108
|
+
toBe: r,
|
|
109
|
+
toBeTruthy: i,
|
|
110
|
+
toBeNull: a,
|
|
111
|
+
toBeNaN: l,
|
|
112
|
+
toBeUndefined: c,
|
|
113
|
+
changed: d,
|
|
114
|
+
changedTimes: f,
|
|
115
|
+
get not() {
|
|
116
|
+
return P(e, !t);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function F(e) {
|
|
121
|
+
return P(e);
|
|
122
|
+
}
|
|
123
|
+
function I(e = 0, t = {}) {
|
|
124
|
+
let n = h(e), r = p(e), { max: i = Infinity, min: a = -Infinity } = t, o = (e = 1) => r.value = Math.max(Math.min(i, r.value + e), a), s = (e = 1) => r.value = Math.min(Math.max(a, r.value - e), i), c = () => r.value, l = (e) => r.value = Math.max(a, Math.min(i, e));
|
|
125
|
+
return {
|
|
126
|
+
count: f(r),
|
|
127
|
+
inc: o,
|
|
128
|
+
dec: s,
|
|
129
|
+
get: c,
|
|
130
|
+
set: l,
|
|
131
|
+
reset: (e = n) => (n = e, l(e))
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function L(e, t, n = {}) {
|
|
135
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = p(!1), o;
|
|
136
|
+
function s() {
|
|
137
|
+
o &&= (clearTimeout(o), void 0);
|
|
138
|
+
}
|
|
139
|
+
function c() {
|
|
140
|
+
a.value = !1, s();
|
|
141
|
+
}
|
|
142
|
+
function l(...n) {
|
|
143
|
+
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
144
|
+
a.value = !1, o = void 0, e(...n);
|
|
145
|
+
}, m(t));
|
|
146
|
+
}
|
|
147
|
+
return r && (a.value = !0, w && l()), v(c), {
|
|
148
|
+
isPending: f(a),
|
|
149
|
+
start: l,
|
|
150
|
+
stop: c
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function R(e, t, n) {
|
|
154
|
+
return g(e, t, {
|
|
155
|
+
...n,
|
|
156
|
+
immediate: !0
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region node_modules/@vueuse/core/dist/index.js
|
|
161
|
+
var z = w ? window : void 0;
|
|
162
|
+
w && window.document, w && window.navigator, w && window.location;
|
|
163
|
+
function B(e) {
|
|
164
|
+
let t = m(e);
|
|
165
|
+
return t?.$el ?? t;
|
|
166
|
+
}
|
|
167
|
+
function V(...t) {
|
|
168
|
+
let n = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), r = e(() => {
|
|
169
|
+
let e = N(m(t[0])).filter((e) => e != null);
|
|
170
|
+
return e.every((e) => typeof e != "string") ? e : void 0;
|
|
171
|
+
});
|
|
172
|
+
return R(() => [
|
|
173
|
+
r.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
|
|
174
|
+
N(m(r.value ? t[1] : t[0])),
|
|
175
|
+
N(h(r.value ? t[2] : t[1])),
|
|
176
|
+
m(r.value ? t[3] : t[2])
|
|
177
|
+
], ([e, t, r, i], a, o) => {
|
|
178
|
+
if (!e?.length || !t?.length || !r?.length) return;
|
|
179
|
+
let s = E(i) ? { ...i } : i, c = e.flatMap((e) => t.flatMap((t) => r.map((r) => n(e, t, r, s))));
|
|
180
|
+
o(() => {
|
|
181
|
+
c.forEach((e) => e());
|
|
182
|
+
});
|
|
183
|
+
}, { flush: "post" });
|
|
184
|
+
}
|
|
185
|
+
var H = !1;
|
|
186
|
+
function U(e, t, n = {}) {
|
|
187
|
+
let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
188
|
+
if (!r) return s ? {
|
|
189
|
+
stop: O,
|
|
190
|
+
cancel: O,
|
|
191
|
+
trigger: O
|
|
192
|
+
} : O;
|
|
193
|
+
if (k && !H) {
|
|
194
|
+
H = !0;
|
|
195
|
+
let e = { passive: !0 };
|
|
196
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", O, e)), r.document.documentElement.addEventListener("click", O, e);
|
|
197
|
+
}
|
|
198
|
+
let c = !0, l = (e) => m(i).some((t) => {
|
|
199
|
+
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
200
|
+
{
|
|
201
|
+
let n = B(t);
|
|
202
|
+
return n && (e.target === n || e.composedPath().includes(n));
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
function u(e) {
|
|
206
|
+
let t = m(e);
|
|
207
|
+
return t && t.$.subTree.shapeFlag === 16;
|
|
208
|
+
}
|
|
209
|
+
function d(e, t) {
|
|
210
|
+
let n = m(e), r = n.$.subTree && n.$.subTree.children;
|
|
211
|
+
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
212
|
+
}
|
|
213
|
+
let f = (n) => {
|
|
214
|
+
let r = B(e);
|
|
215
|
+
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
216
|
+
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
217
|
+
c = !0;
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
t(n);
|
|
221
|
+
}
|
|
222
|
+
}, p = !1, h = [
|
|
223
|
+
V(r, "click", (e) => {
|
|
224
|
+
p || (p = !0, setTimeout(() => {
|
|
225
|
+
p = !1;
|
|
226
|
+
}, 0), f(e));
|
|
227
|
+
}, {
|
|
228
|
+
passive: !0,
|
|
229
|
+
capture: a
|
|
230
|
+
}),
|
|
231
|
+
V(r, "pointerdown", (t) => {
|
|
232
|
+
let n = B(e);
|
|
233
|
+
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
234
|
+
}, { passive: !0 }),
|
|
235
|
+
o && V(r, "blur", (n) => {
|
|
236
|
+
setTimeout(() => {
|
|
237
|
+
let i = B(e), a = r.document.activeElement;
|
|
238
|
+
for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
|
|
239
|
+
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
240
|
+
}, 0);
|
|
241
|
+
}, { passive: !0 })
|
|
242
|
+
].filter(Boolean), g = () => h.forEach((e) => e());
|
|
243
|
+
return s ? {
|
|
244
|
+
stop: g,
|
|
245
|
+
cancel: () => {
|
|
246
|
+
c = !1;
|
|
247
|
+
},
|
|
248
|
+
trigger: (e) => {
|
|
249
|
+
c = !0, f(e), c = !1;
|
|
250
|
+
}
|
|
251
|
+
} : g;
|
|
252
|
+
}
|
|
253
|
+
function W() {
|
|
254
|
+
let e = p(!1), t = n();
|
|
255
|
+
return t && c(() => {
|
|
256
|
+
e.value = !0;
|
|
257
|
+
}, t), e;
|
|
258
|
+
}
|
|
259
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
260
|
+
function G(t) {
|
|
261
|
+
let n = W();
|
|
262
|
+
return e(() => (n.value, !!t()));
|
|
263
|
+
}
|
|
264
|
+
function K(e, t, n) {
|
|
265
|
+
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? O, onSuccess: o = O, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? p(t) : d(t), f = p(!1), h = p(!1), g = p(void 0), _ = 0;
|
|
266
|
+
async function v(n = 0, ...r) {
|
|
267
|
+
let i = _ += 1;
|
|
268
|
+
s && (u.value = m(t)), g.value = void 0, f.value = !1, h.value = !0, n > 0 && await j(n);
|
|
269
|
+
let c = typeof e == "function" ? e(...r) : e;
|
|
270
|
+
try {
|
|
271
|
+
let e = await c;
|
|
272
|
+
return i === _ && (u.value = e, f.value = !0), o(e), e;
|
|
273
|
+
} catch (e) {
|
|
274
|
+
if (i === _ && (g.value = e), a(e), l) throw e;
|
|
275
|
+
} finally {
|
|
276
|
+
i === _ && (h.value = !1);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
r && v(i);
|
|
280
|
+
let y = {
|
|
281
|
+
state: u,
|
|
282
|
+
isReady: f,
|
|
283
|
+
isLoading: h,
|
|
284
|
+
error: g,
|
|
285
|
+
execute: v,
|
|
286
|
+
executeImmediate: (...e) => v(0, ...e)
|
|
287
|
+
};
|
|
288
|
+
function b() {
|
|
289
|
+
return new Promise((e, t) => {
|
|
290
|
+
F(h).toBe(!1).then(() => e(y)).catch(t);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
...y,
|
|
295
|
+
then(e, t) {
|
|
296
|
+
return b().then(e, t);
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
var q = Symbol("vueuse-ssr-width");
|
|
301
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
302
|
+
function J() {
|
|
303
|
+
let e = i() ? x(q, null) : null;
|
|
304
|
+
return typeof e == "number" ? e : void 0;
|
|
305
|
+
}
|
|
306
|
+
function Y(t, n = {}) {
|
|
307
|
+
let { window: r = z, ssrWidth: i = /* @__PURE__ */ J() } = n, a = /* @__PURE__ */ G(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), o = p(typeof i == "number"), s = p(), c = p(!1);
|
|
308
|
+
return _(() => {
|
|
309
|
+
if (o.value) {
|
|
310
|
+
o.value = !a.value, c.value = m(t).split(",").some((e) => {
|
|
311
|
+
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
|
|
312
|
+
return n && a && (a = i >= M(n[1])), r && a && (a = i <= M(r[1])), t ? !a : a;
|
|
313
|
+
});
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
a.value && (s.value = r.matchMedia(m(t)), c.value = s.value.matches);
|
|
317
|
+
}), V(s, "change", (e) => {
|
|
318
|
+
c.value = e.matches;
|
|
319
|
+
}, { passive: !0 }), e(() => c.value);
|
|
320
|
+
}
|
|
321
|
+
async function X(e) {
|
|
322
|
+
return new Promise((t, n) => {
|
|
323
|
+
let r = new Image(), { src: i, srcset: a, sizes: o, class: s, loading: c, crossorigin: l, referrerPolicy: u, width: d, height: f, decoding: p, fetchPriority: m, ismap: h, usemap: g } = e;
|
|
324
|
+
r.src = i, a != null && (r.srcset = a), o != null && (r.sizes = o), s != null && (r.className = s), c != null && (r.loading = c), l != null && (r.crossOrigin = l), u != null && (r.referrerPolicy = u), d != null && (r.width = d), f != null && (r.height = f), p != null && (r.decoding = p), m != null && (r.fetchPriority = m), h != null && (r.isMap = h), g != null && (r.useMap = g), r.onload = () => t(r), r.onerror = n;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function Z(e, t = {}) {
|
|
328
|
+
let n = K(() => X(m(e)), void 0, {
|
|
329
|
+
resetOnExecute: !0,
|
|
330
|
+
...t
|
|
331
|
+
});
|
|
332
|
+
return g(() => m(e), () => n.execute(t.delay), { deep: !0 }), n;
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
export { D as a, I as c, Y as i, L as l, V as n, y as o, Z as r, C as s, U as t };
|
package/dist/global.d.ts
CHANGED
|
@@ -100,9 +100,6 @@ declare module 'vue' {
|
|
|
100
100
|
StTimePickerPanel: typeof Components.StTimePickerPanel;
|
|
101
101
|
StToggle: typeof Components.StToggle;
|
|
102
102
|
StTooltip: typeof Components.StTooltip;
|
|
103
|
-
StTooltipContainer: typeof Components.StTooltipContainer;
|
|
104
|
-
StTooltipContent: typeof Components.StTooltipContent;
|
|
105
|
-
StTooltipTrigger: typeof Components.StTooltipTrigger;
|
|
106
103
|
StTree: typeof Components.StTree;
|
|
107
104
|
StTreeNode: typeof Components.StTreeNode;
|
|
108
105
|
}
|