@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,66 @@
|
|
|
1
|
+
export declare const ZyBadge: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
value?: number | string;
|
|
4
|
+
max?: number;
|
|
5
|
+
isDot?: boolean;
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
type?: "primary" | "success" | "warning" | "info" | "danger";
|
|
8
|
+
showZero?: boolean;
|
|
9
|
+
effect?: "" | "ping";
|
|
10
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
11
|
+
type: "primary" | "success" | "warning" | "info" | "danger";
|
|
12
|
+
effect: "" | "ping";
|
|
13
|
+
value: number | string;
|
|
14
|
+
max: number;
|
|
15
|
+
isDot: boolean;
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
showZero: boolean;
|
|
18
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
19
|
+
P: {};
|
|
20
|
+
B: {};
|
|
21
|
+
D: {};
|
|
22
|
+
C: {};
|
|
23
|
+
M: {};
|
|
24
|
+
Defaults: {};
|
|
25
|
+
}, Readonly<{
|
|
26
|
+
value?: number | string;
|
|
27
|
+
max?: number;
|
|
28
|
+
isDot?: boolean;
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
type?: "primary" | "success" | "warning" | "info" | "danger";
|
|
31
|
+
showZero?: boolean;
|
|
32
|
+
effect?: "" | "ping";
|
|
33
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
34
|
+
type: "primary" | "success" | "warning" | "info" | "danger";
|
|
35
|
+
effect: "" | "ping";
|
|
36
|
+
value: number | string;
|
|
37
|
+
max: number;
|
|
38
|
+
isDot: boolean;
|
|
39
|
+
hidden: boolean;
|
|
40
|
+
showZero: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
__isFragment?: never;
|
|
43
|
+
__isTeleport?: never;
|
|
44
|
+
__isSuspense?: never;
|
|
45
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
46
|
+
value?: number | string;
|
|
47
|
+
max?: number;
|
|
48
|
+
isDot?: boolean;
|
|
49
|
+
hidden?: boolean;
|
|
50
|
+
type?: "primary" | "success" | "warning" | "info" | "danger";
|
|
51
|
+
showZero?: boolean;
|
|
52
|
+
effect?: "" | "ping";
|
|
53
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
54
|
+
type: "primary" | "success" | "warning" | "info" | "danger";
|
|
55
|
+
effect: "" | "ping";
|
|
56
|
+
value: number | string;
|
|
57
|
+
max: number;
|
|
58
|
+
isDot: boolean;
|
|
59
|
+
hidden: boolean;
|
|
60
|
+
showZero: boolean;
|
|
61
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
62
|
+
$slots: {
|
|
63
|
+
default?: (props: {}) => any;
|
|
64
|
+
};
|
|
65
|
+
})>;
|
|
66
|
+
export default ZyBadge;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | '';
|
|
4
|
+
/**
|
|
5
|
+
* 承载的动效:press 按压 / sweep 图标块 + 色块扫入 / fill 悬停扩散 + 立体底座。
|
|
6
|
+
* fill 是**键帽主题的形态**:图纸主题下不成立,会按 press 渲染。
|
|
7
|
+
*/
|
|
8
|
+
effect?: 'press' | 'sweep' | 'fill';
|
|
9
|
+
/** sweep 下放进左侧图标块:字符串按本库图标名(src/assets/icons/ 的文件名)解析,传组件直接渲染;其它动效透传 ElButton */
|
|
10
|
+
icon?: string | Component;
|
|
11
|
+
/** 尺寸:large / default / small(对齐 Element) */
|
|
12
|
+
size?: 'large' | 'default' | 'small';
|
|
13
|
+
round?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_13: {}, __VLS_25: {}, __VLS_27: {}, __VLS_29: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
20
|
+
} & {
|
|
21
|
+
icon?: (props: typeof __VLS_13) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_25) => any;
|
|
24
|
+
} & {
|
|
25
|
+
default?: (props: typeof __VLS_27) => any;
|
|
26
|
+
} & {
|
|
27
|
+
default?: (props: typeof __VLS_29) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
30
|
+
size: "large" | "default" | "small";
|
|
31
|
+
type: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
32
|
+
effect: "press" | "sweep" | "fill";
|
|
33
|
+
icon: string | Component;
|
|
34
|
+
round: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const ZyButton: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
type?: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
4
|
+
effect?: "press" | "sweep" | "fill";
|
|
5
|
+
icon?: string | import("vue").Component;
|
|
6
|
+
size?: "large" | "default" | "small";
|
|
7
|
+
round?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
11
|
+
size: "large" | "default" | "small";
|
|
12
|
+
type: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
13
|
+
effect: "press" | "sweep" | "fill";
|
|
14
|
+
icon: string | import("vue").Component;
|
|
15
|
+
round: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
19
|
+
P: {};
|
|
20
|
+
B: {};
|
|
21
|
+
D: {};
|
|
22
|
+
C: {};
|
|
23
|
+
M: {};
|
|
24
|
+
Defaults: {};
|
|
25
|
+
}, Readonly<{
|
|
26
|
+
type?: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
27
|
+
effect?: "press" | "sweep" | "fill";
|
|
28
|
+
icon?: string | import("vue").Component;
|
|
29
|
+
size?: "large" | "default" | "small";
|
|
30
|
+
round?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
34
|
+
size: "large" | "default" | "small";
|
|
35
|
+
type: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
36
|
+
effect: "press" | "sweep" | "fill";
|
|
37
|
+
icon: string | import("vue").Component;
|
|
38
|
+
round: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
loading: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
__isFragment?: never;
|
|
43
|
+
__isTeleport?: never;
|
|
44
|
+
__isSuspense?: never;
|
|
45
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
46
|
+
type?: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
47
|
+
effect?: "press" | "sweep" | "fill";
|
|
48
|
+
icon?: string | import("vue").Component;
|
|
49
|
+
size?: "large" | "default" | "small";
|
|
50
|
+
round?: boolean;
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
loading?: boolean;
|
|
53
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
54
|
+
size: "large" | "default" | "small";
|
|
55
|
+
type: "primary" | "success" | "warning" | "danger" | "info" | "";
|
|
56
|
+
effect: "press" | "sweep" | "fill";
|
|
57
|
+
icon: string | import("vue").Component;
|
|
58
|
+
round: boolean;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
loading: boolean;
|
|
61
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
62
|
+
$slots: {
|
|
63
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
64
|
+
} & {
|
|
65
|
+
icon?: (props: {}) => any;
|
|
66
|
+
} & {
|
|
67
|
+
default?: (props: {}) => any;
|
|
68
|
+
} & {
|
|
69
|
+
default?: (props: {}) => any;
|
|
70
|
+
} & {
|
|
71
|
+
default?: (props: {}) => any;
|
|
72
|
+
};
|
|
73
|
+
})>;
|
|
74
|
+
export default ZyButton;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 抬起时机:always 常驻抬起 / hover 悬停抬起 / never 一直压住 */
|
|
3
|
+
shadow?: 'always' | 'hover' | 'never';
|
|
4
|
+
/** 悬停铺色:false 不铺;true 铺兜底色;传颜色则铺这一档色 */
|
|
5
|
+
hoverFill?: boolean | string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
header?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_3) => 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
|
+
shadow: "always" | "hover" | "never";
|
|
15
|
+
hoverFill: boolean | string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const ZyCard: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
shadow?: "always" | "hover" | "never";
|
|
4
|
+
hoverFill?: boolean | string;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
6
|
+
shadow: "always" | "hover" | "never";
|
|
7
|
+
hoverFill: boolean | string;
|
|
8
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<{
|
|
16
|
+
shadow?: "always" | "hover" | "never";
|
|
17
|
+
hoverFill?: boolean | string;
|
|
18
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
19
|
+
shadow: "always" | "hover" | "never";
|
|
20
|
+
hoverFill: boolean | string;
|
|
21
|
+
}>;
|
|
22
|
+
__isFragment?: never;
|
|
23
|
+
__isTeleport?: never;
|
|
24
|
+
__isSuspense?: never;
|
|
25
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
26
|
+
shadow?: "always" | "hover" | "never";
|
|
27
|
+
hoverFill?: boolean | string;
|
|
28
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
29
|
+
shadow: "always" | "hover" | "never";
|
|
30
|
+
hoverFill: boolean | string;
|
|
31
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
32
|
+
$slots: {
|
|
33
|
+
header?: (props: {}) => any;
|
|
34
|
+
} & {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
};
|
|
37
|
+
})>;
|
|
38
|
+
export default ZyCard;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 变体(不传时继承 ZyCheckboxGroup):'' 方形填充 + 回弹勾选 / checkmark 方框描边不填充 / tick 实心圆打勾 */
|
|
3
|
+
effect?: '' | 'checkmark' | 'tick';
|
|
4
|
+
/** 尺寸:不传时继承 ZyCheckboxGroup / 表单 / 全局配置 */
|
|
5
|
+
size?: 'large' | 'default' | 'small';
|
|
6
|
+
/** 组内取值(配合 ZyCheckboxGroup 使用) */
|
|
7
|
+
value?: string | number | boolean;
|
|
8
|
+
/** 禁用:不传时继承 ZyCheckboxGroup */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue?: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_13: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_13) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
effect: "" | "checkmark" | "tick";
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 尺寸:large / default / small(对齐 Element) */
|
|
3
|
+
size?: 'large' | 'default' | 'small';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: (string | number)[];
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_13: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_13) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
size: "large" | "default" | "small";
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare const ZyCheckbox: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
effect?: "" | "checkmark" | "tick";
|
|
4
|
+
size?: "large" | "default" | "small";
|
|
5
|
+
value?: string | number | boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
}> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
}, import("vue").PublicProps, {
|
|
14
|
+
effect: "" | "checkmark" | "tick";
|
|
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?: "" | "checkmark" | "tick";
|
|
25
|
+
size?: "large" | "default" | "small";
|
|
26
|
+
value?: string | number | boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
} & {
|
|
29
|
+
modelValue?: boolean;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, {
|
|
33
|
+
effect: "" | "checkmark" | "tick";
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
__isFragment?: never;
|
|
37
|
+
__isTeleport?: never;
|
|
38
|
+
__isSuspense?: never;
|
|
39
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
40
|
+
effect?: "" | "checkmark" | "tick";
|
|
41
|
+
size?: "large" | "default" | "small";
|
|
42
|
+
value?: string | number | boolean;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
} & {
|
|
45
|
+
modelValue?: boolean;
|
|
46
|
+
}> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
48
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
"update:modelValue": (value: boolean) => any;
|
|
50
|
+
}, string, {
|
|
51
|
+
effect: "" | "checkmark" | "tick";
|
|
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 ZyCheckboxGroup: import("../utils/withInstall").SFCWithInstall<{
|
|
61
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
62
|
+
size?: "large" | "default" | "small";
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
} & {
|
|
65
|
+
modelValue?: (string | number)[];
|
|
66
|
+
}> & Readonly<{
|
|
67
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
68
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
70
|
+
}, import("vue").PublicProps, {
|
|
71
|
+
size: "large" | "default" | "small";
|
|
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
|
+
size?: "large" | "default" | "small";
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
} & {
|
|
84
|
+
modelValue?: (string | number)[];
|
|
85
|
+
}> & Readonly<{
|
|
86
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
87
|
+
}>, {}, {}, {}, {}, {
|
|
88
|
+
size: "large" | "default" | "small";
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
__isFragment?: never;
|
|
92
|
+
__isTeleport?: never;
|
|
93
|
+
__isSuspense?: never;
|
|
94
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
95
|
+
size?: "large" | "default" | "small";
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
} & {
|
|
98
|
+
modelValue?: (string | number)[];
|
|
99
|
+
}> & Readonly<{
|
|
100
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
101
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
102
|
+
"update:modelValue": (value: (string | number)[]) => any;
|
|
103
|
+
}, string, {
|
|
104
|
+
size: "large" | "default" | "small";
|
|
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 default ZyCheckbox;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 位数 */
|
|
3
|
+
length?: number;
|
|
4
|
+
/** 校验状态:error 从后往前抽空并清掉验证码;success 各格并成色带 + 打勾,同时锁住输入 */
|
|
5
|
+
status?: 'idle' | 'error' | 'success';
|
|
6
|
+
/** 格子尺寸:large 52 / default 44 / small 36(高度按 1.18 倍) */
|
|
7
|
+
size?: 'large' | 'default' | 'small';
|
|
8
|
+
/** 掩码:格子显示圆点而不是数字 */
|
|
9
|
+
mask?: boolean;
|
|
10
|
+
/** 当前格的闪烁光标 */
|
|
11
|
+
caret?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
/** 验证码(只保留数字):v-model */
|
|
16
|
+
modelValue?: string;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
20
|
+
focus: () => void | undefined;
|
|
21
|
+
blur: () => void | undefined;
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (value: string) => any;
|
|
24
|
+
} & {
|
|
25
|
+
complete: (code: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
|
+
onComplete?: ((code: string) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
size: "large" | "default" | "small";
|
|
31
|
+
length: number;
|
|
32
|
+
mask: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
status: "idle" | "error" | "success";
|
|
35
|
+
caret: boolean;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const ZyCodeInput: import("../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
length?: number;
|
|
3
|
+
status?: "idle" | "error" | "success";
|
|
4
|
+
size?: "large" | "default" | "small";
|
|
5
|
+
mask?: boolean;
|
|
6
|
+
caret?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
} & {
|
|
9
|
+
modelValue?: string;
|
|
10
|
+
}, {
|
|
11
|
+
focus: () => void | undefined;
|
|
12
|
+
blur: () => void | undefined;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
|
+
} & {
|
|
16
|
+
complete: (code: string) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
18
|
+
length?: number;
|
|
19
|
+
status?: "idle" | "error" | "success";
|
|
20
|
+
size?: "large" | "default" | "small";
|
|
21
|
+
mask?: boolean;
|
|
22
|
+
caret?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
} & {
|
|
25
|
+
modelValue?: string;
|
|
26
|
+
}> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
|
+
onComplete?: ((code: string) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
size: "large" | "default" | "small";
|
|
31
|
+
length: number;
|
|
32
|
+
mask: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
status: "idle" | "error" | "success";
|
|
35
|
+
caret: boolean;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
37
|
+
export default ZyCodeInput;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ZyDatePicker: import("../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
2
|
+
export default ZyDatePicker;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
width?: string;
|
|
4
|
+
/** 标题左侧的图标名(src/assets/icons 下的文件名),留空则不显示图标块 */
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** 挂到 body 上,默认 true:关掉会留在原地,被祖先的 transform / overflow 困住(遮罩只盖住那一块) */
|
|
7
|
+
appendToBody?: boolean;
|
|
8
|
+
/** 点遮罩关闭,默认 false:表单里误点一次就把填的内容丢了 */
|
|
9
|
+
closeOnClickModal?: boolean;
|
|
10
|
+
showClose?: boolean;
|
|
11
|
+
/** 关闭即销毁内容,表单弹窗常用(避免上次输入残留) */
|
|
12
|
+
destroyOnClose?: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
modelValue?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_14: {}, __VLS_21: {}, __VLS_24: {};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
21
|
+
} & {
|
|
22
|
+
header?: (props: typeof __VLS_14) => any;
|
|
23
|
+
} & {
|
|
24
|
+
default?: (props: typeof __VLS_21) => any;
|
|
25
|
+
} & {
|
|
26
|
+
footer?: (props: typeof __VLS_24) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (value: boolean) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
title: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
width: string;
|
|
36
|
+
appendToBody: boolean;
|
|
37
|
+
closeOnClickModal: boolean;
|
|
38
|
+
showClose: boolean;
|
|
39
|
+
destroyOnClose: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare const ZyDialog: import("../utils/withInstall").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
title?: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
appendToBody?: boolean;
|
|
7
|
+
closeOnClickModal?: boolean;
|
|
8
|
+
showClose?: boolean;
|
|
9
|
+
destroyOnClose?: boolean;
|
|
10
|
+
} & {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
}> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
|
+
}, import("vue").PublicProps, {
|
|
17
|
+
title: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
width: string;
|
|
20
|
+
appendToBody: boolean;
|
|
21
|
+
closeOnClickModal: boolean;
|
|
22
|
+
showClose: boolean;
|
|
23
|
+
destroyOnClose: boolean;
|
|
24
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
25
|
+
P: {};
|
|
26
|
+
B: {};
|
|
27
|
+
D: {};
|
|
28
|
+
C: {};
|
|
29
|
+
M: {};
|
|
30
|
+
Defaults: {};
|
|
31
|
+
}, Readonly<{
|
|
32
|
+
title?: string;
|
|
33
|
+
width?: string;
|
|
34
|
+
icon?: string;
|
|
35
|
+
appendToBody?: boolean;
|
|
36
|
+
closeOnClickModal?: boolean;
|
|
37
|
+
showClose?: boolean;
|
|
38
|
+
destroyOnClose?: boolean;
|
|
39
|
+
} & {
|
|
40
|
+
modelValue?: boolean;
|
|
41
|
+
}> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, {
|
|
44
|
+
title: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
width: string;
|
|
47
|
+
appendToBody: boolean;
|
|
48
|
+
closeOnClickModal: boolean;
|
|
49
|
+
showClose: boolean;
|
|
50
|
+
destroyOnClose: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
__isFragment?: never;
|
|
53
|
+
__isTeleport?: never;
|
|
54
|
+
__isSuspense?: never;
|
|
55
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
56
|
+
title?: string;
|
|
57
|
+
width?: string;
|
|
58
|
+
icon?: string;
|
|
59
|
+
appendToBody?: boolean;
|
|
60
|
+
closeOnClickModal?: boolean;
|
|
61
|
+
showClose?: boolean;
|
|
62
|
+
destroyOnClose?: boolean;
|
|
63
|
+
} & {
|
|
64
|
+
modelValue?: boolean;
|
|
65
|
+
}> & Readonly<{
|
|
66
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
67
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
68
|
+
"update:modelValue": (value: boolean) => any;
|
|
69
|
+
}, string, {
|
|
70
|
+
title: string;
|
|
71
|
+
icon: string;
|
|
72
|
+
width: string;
|
|
73
|
+
appendToBody: boolean;
|
|
74
|
+
closeOnClickModal: boolean;
|
|
75
|
+
showClose: boolean;
|
|
76
|
+
destroyOnClose: boolean;
|
|
77
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
78
|
+
$slots: {
|
|
79
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
80
|
+
} & {
|
|
81
|
+
header?: (props: {}) => any;
|
|
82
|
+
} & {
|
|
83
|
+
default?: (props: {}) => any;
|
|
84
|
+
} & {
|
|
85
|
+
footer?: (props: {}) => any;
|
|
86
|
+
};
|
|
87
|
+
})>;
|
|
88
|
+
export default ZyDialog;
|