@gyyxds/zy-ui 0.0.0-stage → 0.0.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/CHANGELOG.md +23 -0
- package/CONTRIBUTING.md +102 -0
- package/README.md +370 -2
- package/dist/zy-ui/alert/ZyAlert.vue.d.ts +26 -0
- package/dist/zy-ui/alert/index.d.ts +54 -0
- package/dist/zy-ui/badge/ZyBadge.vue.d.ts +37 -0
- package/dist/zy-ui/badge/index.d.ts +66 -0
- package/dist/zy-ui/button/ZyButton.vue.d.ts +45 -0
- package/dist/zy-ui/button/index.d.ts +74 -0
- package/dist/zy-ui/card/ZyCard.vue.d.ts +24 -0
- package/dist/zy-ui/card/index.d.ts +38 -0
- package/dist/zy-ui/checkbox/ZyCheckbox.vue.d.ts +36 -0
- package/dist/zy-ui/checkbox/ZyCheckboxGroup.vue.d.ts +31 -0
- package/dist/zy-ui/checkbox/index.d.ts +113 -0
- package/dist/zy-ui/code-input/ZyCodeInput.vue.d.ts +38 -0
- package/dist/zy-ui/code-input/index.d.ts +37 -0
- package/dist/zy-ui/date-picker/ZyDatePicker.vue.d.ts +3 -0
- package/dist/zy-ui/date-picker/index.d.ts +2 -0
- package/dist/zy-ui/dialog/ZyDialog.vue.d.ts +48 -0
- package/dist/zy-ui/dialog/index.d.ts +88 -0
- package/dist/zy-ui/divider/ZyDivider.vue.d.ts +20 -0
- package/dist/zy-ui/divider/index.d.ts +32 -0
- package/dist/zy-ui/icon/ZyIcon.vue.d.ts +17 -0
- package/dist/zy-ui/icon/index.d.ts +16 -0
- package/dist/zy-ui/index.d.ts +1332 -0
- package/dist/zy-ui/input/ZyInput.vue.d.ts +44 -0
- package/dist/zy-ui/input/index.d.ts +88 -0
- package/dist/zy-ui/loading/ZyLoading.vue.d.ts +22 -0
- package/dist/zy-ui/loading/index.d.ts +21 -0
- package/dist/zy-ui/mega-menu/ZyMegaMenu.vue.d.ts +50 -0
- package/dist/zy-ui/mega-menu/index.d.ts +92 -0
- package/dist/zy-ui/mega-menu/types.d.ts +77 -0
- package/dist/zy-ui/pagination/ZyPagination.vue.d.ts +3 -0
- package/dist/zy-ui/pagination/index.d.ts +2 -0
- package/dist/zy-ui/panel/ZyPanel.vue.d.ts +21 -0
- package/dist/zy-ui/panel/index.d.ts +32 -0
- package/dist/zy-ui/progress/ZyProgress.vue.d.ts +24 -0
- package/dist/zy-ui/progress/index.d.ts +48 -0
- package/dist/zy-ui/radio/ZyRadio.vue.d.ts +37 -0
- package/dist/zy-ui/radio/ZyRadioButton.vue.d.ts +35 -0
- package/dist/zy-ui/radio/ZyRadioGroup.vue.d.ts +32 -0
- package/dist/zy-ui/radio/index.d.ts +169 -0
- package/dist/zy-ui/radio/radio-context.d.ts +8 -0
- package/dist/zy-ui/select/ZySelect.vue.d.ts +40 -0
- package/dist/zy-ui/select/index.d.ts +78 -0
- package/dist/zy-ui/slide-verify/ZySlideVerify.vue.d.ts +46 -0
- package/dist/zy-ui/slide-verify/index.d.ts +50 -0
- package/dist/zy-ui/space/ZySpace.vue.d.ts +25 -0
- package/dist/zy-ui/space/index.d.ts +44 -0
- package/dist/zy-ui/switch/ZySwitch.vue.d.ts +25 -0
- package/dist/zy-ui/switch/index.d.ts +25 -0
- package/dist/zy-ui/table/ZyTable.vue.d.ts +21 -0
- package/dist/zy-ui/table/index.d.ts +32 -0
- package/dist/zy-ui/tag/ZyTag.vue.d.ts +28 -0
- package/dist/zy-ui/tag/index.d.ts +46 -0
- package/dist/zy-ui/themes/basic.css +832 -0
- package/dist/zy-ui/themes/material.css +37 -0
- package/dist/zy-ui/themes/solid.css +2350 -0
- package/dist/zy-ui/time-picker/ZyTimePicker.vue.d.ts +3 -0
- package/dist/zy-ui/time-picker/index.d.ts +2 -0
- package/dist/zy-ui/tree/ZyTree.vue.d.ts +28 -0
- package/dist/zy-ui/tree/index.d.ts +44 -0
- package/dist/zy-ui/utils/withInstall.d.ts +11 -0
- package/dist/zy-ui/zy-ui.css +2 -0
- package/dist/zy-ui/zy-ui.js +1962 -0
- package/package.json +81 -4
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export declare const ZyRadio: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
effect?: "" | "underline";
|
|
4
|
+
size?: "large" | "default" | "small";
|
|
5
|
+
value?: string | number | boolean;
|
|
6
|
+
label?: string | number | boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
} & {
|
|
9
|
+
modelValue?: string | number | boolean | undefined;
|
|
10
|
+
}> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | undefined) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: string | number | boolean | undefined) => any;
|
|
14
|
+
}, import("vue").PublicProps, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, Readonly<{
|
|
24
|
+
effect?: "" | "underline";
|
|
25
|
+
size?: "large" | "default" | "small";
|
|
26
|
+
value?: string | number | boolean;
|
|
27
|
+
label?: string | number | boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
} & {
|
|
30
|
+
modelValue?: string | number | boolean | undefined;
|
|
31
|
+
}> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | undefined) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
__isFragment?: never;
|
|
37
|
+
__isTeleport?: never;
|
|
38
|
+
__isSuspense?: never;
|
|
39
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
40
|
+
effect?: "" | "underline";
|
|
41
|
+
size?: "large" | "default" | "small";
|
|
42
|
+
value?: string | number | boolean;
|
|
43
|
+
label?: string | number | boolean;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
} & {
|
|
46
|
+
modelValue?: string | number | boolean | undefined;
|
|
47
|
+
}> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | undefined) => any) | undefined;
|
|
49
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
"update:modelValue": (value: string | number | boolean | undefined) => any;
|
|
51
|
+
}, string, {
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
54
|
+
$slots: {
|
|
55
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
default?: (props: {}) => any;
|
|
58
|
+
};
|
|
59
|
+
})>;
|
|
60
|
+
export declare const ZyRadioGroup: import("../utils/withInstall").SFCWithInstall<{
|
|
61
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
62
|
+
effect?: "" | "underline";
|
|
63
|
+
size?: "large" | "default" | "small";
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
} & {
|
|
66
|
+
modelValue?: string | number | undefined;
|
|
67
|
+
}> & Readonly<{
|
|
68
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
69
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
71
|
+
}, import("vue").PublicProps, {
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
74
|
+
P: {};
|
|
75
|
+
B: {};
|
|
76
|
+
D: {};
|
|
77
|
+
C: {};
|
|
78
|
+
M: {};
|
|
79
|
+
Defaults: {};
|
|
80
|
+
}, Readonly<{
|
|
81
|
+
effect?: "" | "underline";
|
|
82
|
+
size?: "large" | "default" | "small";
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
} & {
|
|
85
|
+
modelValue?: string | number | undefined;
|
|
86
|
+
}> & Readonly<{
|
|
87
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
88
|
+
}>, {}, {}, {}, {}, {
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
__isFragment?: never;
|
|
92
|
+
__isTeleport?: never;
|
|
93
|
+
__isSuspense?: never;
|
|
94
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
95
|
+
effect?: "" | "underline";
|
|
96
|
+
size?: "large" | "default" | "small";
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
} & {
|
|
99
|
+
modelValue?: string | number | undefined;
|
|
100
|
+
}> & Readonly<{
|
|
101
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
102
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
103
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
104
|
+
}, string, {
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
107
|
+
$slots: {
|
|
108
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
default?: (props: {}) => any;
|
|
111
|
+
};
|
|
112
|
+
})>;
|
|
113
|
+
export declare const ZyRadioButton: import("../utils/withInstall").SFCWithInstall<{
|
|
114
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
115
|
+
size?: "large" | "default" | "small";
|
|
116
|
+
value?: string | number | boolean;
|
|
117
|
+
label?: string | number | boolean;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
} & {
|
|
120
|
+
modelValue?: string | number | boolean | undefined;
|
|
121
|
+
}> & Readonly<{
|
|
122
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | undefined) => any) | undefined;
|
|
123
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
124
|
+
"update:modelValue": (value: string | number | boolean | undefined) => any;
|
|
125
|
+
}, import("vue").PublicProps, {
|
|
126
|
+
disabled: boolean;
|
|
127
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
128
|
+
P: {};
|
|
129
|
+
B: {};
|
|
130
|
+
D: {};
|
|
131
|
+
C: {};
|
|
132
|
+
M: {};
|
|
133
|
+
Defaults: {};
|
|
134
|
+
}, Readonly<{
|
|
135
|
+
size?: "large" | "default" | "small";
|
|
136
|
+
value?: string | number | boolean;
|
|
137
|
+
label?: string | number | boolean;
|
|
138
|
+
disabled?: boolean;
|
|
139
|
+
} & {
|
|
140
|
+
modelValue?: string | number | boolean | undefined;
|
|
141
|
+
}> & Readonly<{
|
|
142
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | undefined) => any) | undefined;
|
|
143
|
+
}>, {}, {}, {}, {}, {
|
|
144
|
+
disabled: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
__isFragment?: never;
|
|
147
|
+
__isTeleport?: never;
|
|
148
|
+
__isSuspense?: never;
|
|
149
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
150
|
+
size?: "large" | "default" | "small";
|
|
151
|
+
value?: string | number | boolean;
|
|
152
|
+
label?: string | number | boolean;
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
} & {
|
|
155
|
+
modelValue?: string | number | boolean | undefined;
|
|
156
|
+
}> & Readonly<{
|
|
157
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | undefined) => any) | undefined;
|
|
158
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
|
+
"update:modelValue": (value: string | number | boolean | undefined) => any;
|
|
160
|
+
}, string, {
|
|
161
|
+
disabled: boolean;
|
|
162
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
163
|
+
$slots: {
|
|
164
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
165
|
+
} & {
|
|
166
|
+
default?: (props: {}) => any;
|
|
167
|
+
};
|
|
168
|
+
})>;
|
|
169
|
+
export default ZyRadio;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* ZyRadioGroup → ZyRadio 的动效继承通道。
|
|
4
|
+
*
|
|
5
|
+
* ZyRadio 未显式传 `effect` 时取组上声明的 effect,等价于 Element 自身
|
|
6
|
+
* 让 size / disabled 在组内继承的做法。
|
|
7
|
+
*/
|
|
8
|
+
export declare const ZY_RADIO_EFFECT_KEY: InjectionKey<ComputedRef<string>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 承载的聚焦动效:focus 聚焦光环 / underline 下划线扫过 / gradient 渐变光晕 */
|
|
3
|
+
effect?: 'focus' | 'underline' | 'gradient';
|
|
4
|
+
/** 实色主题下的键帽凸起形态;基础主题不改变外观 */
|
|
5
|
+
raised?: boolean;
|
|
6
|
+
size?: 'large' | 'default' | 'small';
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue?: string | number | undefined | Array<string | number>;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare var __VLS_12: string, __VLS_13: any, __VLS_15: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
[K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_15) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: string | number | (string | number)[] | undefined) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: "large" | "default" | "small";
|
|
27
|
+
effect: "focus" | "underline" | "gradient";
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
clearable: boolean;
|
|
31
|
+
raised: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const ZySelect: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
effect?: "focus" | "underline" | "gradient";
|
|
4
|
+
raised?: boolean;
|
|
5
|
+
size?: "large" | "default" | "small";
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
clearable?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
modelValue?: string | number | undefined | Array<string | number>;
|
|
11
|
+
}> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: string | number | (string | number)[] | undefined) => any;
|
|
15
|
+
}, import("vue").PublicProps, {
|
|
16
|
+
size: "large" | "default" | "small";
|
|
17
|
+
effect: "focus" | "underline" | "gradient";
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
clearable: boolean;
|
|
21
|
+
raised: boolean;
|
|
22
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<{
|
|
30
|
+
effect?: "focus" | "underline" | "gradient";
|
|
31
|
+
raised?: boolean;
|
|
32
|
+
size?: "large" | "default" | "small";
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
clearable?: boolean;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
} & {
|
|
37
|
+
modelValue?: string | number | undefined | Array<string | number>;
|
|
38
|
+
}> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, {
|
|
41
|
+
size: "large" | "default" | "small";
|
|
42
|
+
effect: "focus" | "underline" | "gradient";
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
clearable: boolean;
|
|
46
|
+
raised: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
__isFragment?: never;
|
|
49
|
+
__isTeleport?: never;
|
|
50
|
+
__isSuspense?: never;
|
|
51
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
52
|
+
effect?: "focus" | "underline" | "gradient";
|
|
53
|
+
raised?: boolean;
|
|
54
|
+
size?: "large" | "default" | "small";
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
clearable?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
} & {
|
|
59
|
+
modelValue?: string | number | undefined | Array<string | number>;
|
|
60
|
+
}> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((value: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
62
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
"update:modelValue": (value: string | number | (string | number)[] | undefined) => any;
|
|
64
|
+
}, string, {
|
|
65
|
+
size: "large" | "default" | "small";
|
|
66
|
+
effect: "focus" | "underline" | "gradient";
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
placeholder: string;
|
|
69
|
+
clearable: boolean;
|
|
70
|
+
raised: boolean;
|
|
71
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
72
|
+
$slots: {
|
|
73
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
default?: (props: {}) => any;
|
|
76
|
+
};
|
|
77
|
+
})>;
|
|
78
|
+
export default ZySelect;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type SlideVerifyState = 'idle' | 'pass' | 'fail';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 缺口位置百分比(0-100),通常由服务端下发 */
|
|
4
|
+
gap?: number;
|
|
5
|
+
/** 允许误差百分比 */
|
|
6
|
+
tolerance?: number;
|
|
7
|
+
/** 亮色底图 URL */
|
|
8
|
+
image?: string;
|
|
9
|
+
/** 深色底图 URL */
|
|
10
|
+
darkImage?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
showRefresh?: boolean;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
refreshLabel?: string;
|
|
15
|
+
idleText?: string;
|
|
16
|
+
successText?: string;
|
|
17
|
+
failText?: string;
|
|
18
|
+
};
|
|
19
|
+
declare function reset(): void;
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
21
|
+
reset: typeof reset;
|
|
22
|
+
state: import("vue").Ref<SlideVerifyState, SlideVerifyState>;
|
|
23
|
+
position: import("vue").Ref<number, number>;
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
success: (position: number) => any;
|
|
26
|
+
reset: () => any;
|
|
27
|
+
fail: (position: number) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
onSuccess?: ((position: number) => any) | undefined;
|
|
30
|
+
onReset?: (() => any) | undefined;
|
|
31
|
+
onFail?: ((position: number) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
image: string;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
ariaLabel: string;
|
|
36
|
+
gap: number;
|
|
37
|
+
tolerance: number;
|
|
38
|
+
darkImage: string;
|
|
39
|
+
showRefresh: boolean;
|
|
40
|
+
refreshLabel: string;
|
|
41
|
+
idleText: string;
|
|
42
|
+
successText: string;
|
|
43
|
+
failText: string;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const ZySlideVerify: import("../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
gap?: number;
|
|
3
|
+
tolerance?: number;
|
|
4
|
+
image?: string;
|
|
5
|
+
darkImage?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
showRefresh?: boolean;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
refreshLabel?: string;
|
|
10
|
+
idleText?: string;
|
|
11
|
+
successText?: string;
|
|
12
|
+
failText?: string;
|
|
13
|
+
}, {
|
|
14
|
+
reset: () => void;
|
|
15
|
+
state: import("vue").Ref<import("./ZySlideVerify.vue").SlideVerifyState, import("./ZySlideVerify.vue").SlideVerifyState>;
|
|
16
|
+
position: import("vue").Ref<number, number>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
success: (position: number) => any;
|
|
19
|
+
reset: () => any;
|
|
20
|
+
fail: (position: number) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
22
|
+
gap?: number;
|
|
23
|
+
tolerance?: number;
|
|
24
|
+
image?: string;
|
|
25
|
+
darkImage?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
showRefresh?: boolean;
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
refreshLabel?: string;
|
|
30
|
+
idleText?: string;
|
|
31
|
+
successText?: string;
|
|
32
|
+
failText?: string;
|
|
33
|
+
}> & Readonly<{
|
|
34
|
+
onSuccess?: ((position: number) => any) | undefined;
|
|
35
|
+
onReset?: (() => any) | undefined;
|
|
36
|
+
onFail?: ((position: number) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
image: string;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
ariaLabel: string;
|
|
41
|
+
gap: number;
|
|
42
|
+
tolerance: number;
|
|
43
|
+
darkImage: string;
|
|
44
|
+
showRefresh: boolean;
|
|
45
|
+
refreshLabel: string;
|
|
46
|
+
idleText: string;
|
|
47
|
+
successText: string;
|
|
48
|
+
failText: string;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
50
|
+
export default ZySlideVerify;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 与 ElSpace 对齐:间距预设或像素值 */
|
|
3
|
+
size?: '' | 'small' | 'default' | 'large' | number;
|
|
4
|
+
direction?: 'horizontal' | 'vertical';
|
|
5
|
+
wrap?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_13: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_13) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
size: "" | "small" | "default" | "large" | number;
|
|
15
|
+
direction: "horizontal" | "vertical";
|
|
16
|
+
wrap: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const ZySpace: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
size?: "" | "small" | "default" | "large" | number;
|
|
4
|
+
direction?: "horizontal" | "vertical";
|
|
5
|
+
wrap?: boolean;
|
|
6
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
7
|
+
size: "" | "small" | "default" | "large" | number;
|
|
8
|
+
direction: "horizontal" | "vertical";
|
|
9
|
+
wrap: boolean;
|
|
10
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<{
|
|
18
|
+
size?: "" | "small" | "default" | "large" | number;
|
|
19
|
+
direction?: "horizontal" | "vertical";
|
|
20
|
+
wrap?: boolean;
|
|
21
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
22
|
+
size: "" | "small" | "default" | "large" | number;
|
|
23
|
+
direction: "horizontal" | "vertical";
|
|
24
|
+
wrap: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
__isFragment?: never;
|
|
27
|
+
__isTeleport?: never;
|
|
28
|
+
__isSuspense?: never;
|
|
29
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
30
|
+
size?: "" | "small" | "default" | "large" | number;
|
|
31
|
+
direction?: "horizontal" | "vertical";
|
|
32
|
+
wrap?: boolean;
|
|
33
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
34
|
+
size: "" | "small" | "default" | "large" | number;
|
|
35
|
+
direction: "horizontal" | "vertical";
|
|
36
|
+
wrap: boolean;
|
|
37
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
38
|
+
$slots: {
|
|
39
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
default?: (props: {}) => any;
|
|
42
|
+
};
|
|
43
|
+
})>;
|
|
44
|
+
export default ZySpace;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 选中态的轨道文案 */
|
|
3
|
+
activeText?: string;
|
|
4
|
+
/** 未选态的轨道文案 */
|
|
5
|
+
inactiveText?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** 无障碍名称:不传则读屏只说「开关」,不带名字 */
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
label: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
activeText: string;
|
|
22
|
+
inactiveText: string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const ZySwitch: import("../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
activeText?: string;
|
|
3
|
+
inactiveText?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
} & {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
11
|
+
activeText?: string;
|
|
12
|
+
inactiveText?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
} & {
|
|
16
|
+
modelValue?: boolean;
|
|
17
|
+
}> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
label: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
activeText: string;
|
|
23
|
+
inactiveText: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
25
|
+
export default ZySwitch;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 边框形态:all(默认)台账式全网格,列之间有分隔线 / row 只有行线,去列分隔线与左右外沿 */
|
|
3
|
+
lines?: 'all' | 'row';
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_9: string, __VLS_10: any, __VLS_12: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_12) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
lines: "all" | "row";
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const ZyTable: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
lines?: "all" | "row";
|
|
4
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
5
|
+
lines: "all" | "row";
|
|
6
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<{
|
|
14
|
+
lines?: "all" | "row";
|
|
15
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
16
|
+
lines: "all" | "row";
|
|
17
|
+
}>;
|
|
18
|
+
__isFragment?: never;
|
|
19
|
+
__isTeleport?: never;
|
|
20
|
+
__isSuspense?: never;
|
|
21
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
22
|
+
lines?: "all" | "row";
|
|
23
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
24
|
+
lines: "all" | "row";
|
|
25
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
26
|
+
$slots: {
|
|
27
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
default?: (props: {}) => any;
|
|
30
|
+
};
|
|
31
|
+
})>;
|
|
32
|
+
export default ZyTable;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 与 ElTag 对齐(Element 的标签不接受空串) */
|
|
3
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
/** 前三个是 Element 的形态;fill 是本库的实色键帽材质(不往 ElTag 传) */
|
|
5
|
+
effect?: 'dark' | 'light' | 'plain' | 'fill';
|
|
6
|
+
round?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_13: {}, __VLS_15: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_13) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_15) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
type: "primary" | "success" | "warning" | "danger" | "info";
|
|
18
|
+
effect: "dark" | "light" | "plain" | "fill";
|
|
19
|
+
round: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const ZyTag: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
type?: "primary" | "success" | "warning" | "danger" | "info";
|
|
4
|
+
effect?: "dark" | "light" | "plain" | "fill";
|
|
5
|
+
round?: boolean;
|
|
6
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
7
|
+
type: "primary" | "success" | "warning" | "danger" | "info";
|
|
8
|
+
effect: "dark" | "light" | "plain" | "fill";
|
|
9
|
+
round: boolean;
|
|
10
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<{
|
|
18
|
+
type?: "primary" | "success" | "warning" | "danger" | "info";
|
|
19
|
+
effect?: "dark" | "light" | "plain" | "fill";
|
|
20
|
+
round?: boolean;
|
|
21
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
22
|
+
type: "primary" | "success" | "warning" | "danger" | "info";
|
|
23
|
+
effect: "dark" | "light" | "plain" | "fill";
|
|
24
|
+
round: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
__isFragment?: never;
|
|
27
|
+
__isTeleport?: never;
|
|
28
|
+
__isSuspense?: never;
|
|
29
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
30
|
+
type?: "primary" | "success" | "warning" | "danger" | "info";
|
|
31
|
+
effect?: "dark" | "light" | "plain" | "fill";
|
|
32
|
+
round?: boolean;
|
|
33
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
34
|
+
type: "primary" | "success" | "warning" | "danger" | "info";
|
|
35
|
+
effect: "dark" | "light" | "plain" | "fill";
|
|
36
|
+
round: boolean;
|
|
37
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
38
|
+
$slots: {
|
|
39
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
default?: (props: {}) => any;
|
|
42
|
+
} & {
|
|
43
|
+
default?: (props: {}) => any;
|
|
44
|
+
};
|
|
45
|
+
})>;
|
|
46
|
+
export default ZyTag;
|