sykj 1.0.0 → 1.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/README.md +56 -0
- package/dist/style.css +1 -0
- package/dist/sy-ui.cjs.js +2 -0
- package/dist/sy-ui.es.js +2695 -0
- package/dist/sy-ui.umd.js +2 -0
- package/index.d.ts +7 -0
- package/lib/common.d.ts +23 -0
- package/lib/index.d.ts +2 -0
- package/main/index.d.ts +2 -0
- package/main/utils/copyHtml.d.ts +1 -0
- package/main/utils/withInstall.d.ts +4 -0
- package/package.json +31 -11
- package/packages/button/index.d.ts +49 -0
- package/packages/button/src/index.vue.d.ts +28 -0
- package/packages/date/index.d.ts +145 -0
- package/packages/date/src/index.vue.d.ts +78 -0
- package/packages/datetime/index.d.ts +190 -0
- package/packages/datetime/src/index.vue.d.ts +105 -0
- package/packages/dialog/index.d.ts +48 -0
- package/packages/dialog/src/index.vue.d.ts +31 -0
- package/packages/directives/index.d.ts +2 -0
- package/packages/form/index.d.ts +264 -0
- package/packages/form/src/index.vue.d.ts +104 -0
- package/packages/hooks/index.d.ts +3 -0
- package/packages/hooks/useFakeProgress.d.ts +72 -0
- package/packages/hooks/useKeyCombo.d.ts +4 -0
- package/packages/hooks/useTheme.d.ts +6 -0
- package/packages/icon/index.d.ts +32 -0
- package/packages/icon/src/index.vue.d.ts +9 -0
- package/packages/input/index.d.ts +64 -0
- package/packages/input/src/index.vue.d.ts +40 -0
- package/packages/keyboard/index.d.ts +14 -0
- package/packages/keyboard/src/Keyboardcon.vue.d.ts +2 -0
- package/packages/keyboard/src/utils/fetchFile.d.ts +2 -0
- package/packages/keyboard/src/utils/focus.d.ts +2 -0
- package/packages/keyboard/src/utils/store.d.ts +19 -0
- package/packages/list/index.d.ts +98 -0
- package/packages/list/src/index.vue.d.ts +41 -0
- package/packages/list/src/item.vue.d.ts +12 -0
- package/packages/loading/index.d.ts +14 -0
- package/packages/loading/src/Loading1.vue.d.ts +2 -0
- package/packages/loading/src/Loading2.vue.d.ts +12 -0
- package/packages/loading/src/index.vue.d.ts +5 -0
- package/packages/message/index.d.ts +31 -0
- package/packages/message/src/index.vue.d.ts +31 -0
- package/packages/message-box/index.d.ts +18 -0
- package/packages/message-box/src/index.vue.d.ts +20 -0
- package/packages/select/index.d.ts +256 -0
- package/packages/select/src/index.vue.d.ts +144 -0
- package/packages/time/index.d.ts +205 -0
- package/packages/time/src/index.vue.d.ts +114 -0
- package/baseDict-BDMct_Gn.js +0 -4
- package/baseDict-BcPniuRQ.cjs +0 -1
- package/chowder-BcPniuRQ.cjs +0 -1
- package/chowder-DYxpcVy9.js +0 -4
- package/style.css +0 -1
- package/sykj.cjs +0 -37
- package/sykj.js +0 -2806
- package/sykj.umd.cjs +0 -37
- /package/{favicon.ico → dist/favicon.ico} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
modelValue?: string | number;
|
|
3
|
+
type?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
enter?: boolean;
|
|
7
|
+
clearable?: boolean;
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
align?: 'left' | 'center' | 'right';
|
|
10
|
+
maxlength?: string | number;
|
|
11
|
+
}
|
|
12
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
prefix?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
suffix?: (props: typeof __VLS_3) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
+
blur: (evt: FocusEvent) => any;
|
|
20
|
+
focus: (evt: FocusEvent) => any;
|
|
21
|
+
"update:modelValue": (value: string) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
23
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
24
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
type: string;
|
|
28
|
+
size: "small" | "medium" | "large";
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
placeholder: string;
|
|
31
|
+
clearable: boolean;
|
|
32
|
+
align: "left" | "center" | "right";
|
|
33
|
+
maxlength: string | number;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const SyKeyboard: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: undefined;
|
|
11
|
+
__isTeleport?: undefined;
|
|
12
|
+
__isSuspense?: undefined;
|
|
13
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & 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 & import("vue").Plugin));
|
|
14
|
+
export default SyKeyboard;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class Keyboard {
|
|
2
|
+
key: any;
|
|
3
|
+
open: any;
|
|
4
|
+
close: any;
|
|
5
|
+
currentElement: EventTarget | null;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
declare const keyboard: {
|
|
9
|
+
key: any;
|
|
10
|
+
open: any;
|
|
11
|
+
close: any;
|
|
12
|
+
currentElement: {
|
|
13
|
+
addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void;
|
|
14
|
+
dispatchEvent: (event: Event) => boolean;
|
|
15
|
+
removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
|
|
16
|
+
} | null;
|
|
17
|
+
};
|
|
18
|
+
export type TypeKeyboard = typeof keyboard;
|
|
19
|
+
export { keyboard };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const SyList: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/index.vue").ListProps<any>> & Readonly<{
|
|
3
|
+
onScroll?: ((payload: {
|
|
4
|
+
event: Event;
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
visibleItems: unknown[];
|
|
8
|
+
}) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
scroll: (payload: {
|
|
11
|
+
event: Event;
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
visibleItems: unknown[];
|
|
15
|
+
}) => any;
|
|
16
|
+
}, import("vue").PublicProps, {
|
|
17
|
+
height: string | number;
|
|
18
|
+
itemHeight: number;
|
|
19
|
+
items: any[];
|
|
20
|
+
virtual: boolean;
|
|
21
|
+
buffer: number;
|
|
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<import("./src/index.vue").ListProps<any>> & Readonly<{
|
|
30
|
+
onScroll?: ((payload: {
|
|
31
|
+
event: Event;
|
|
32
|
+
start: number;
|
|
33
|
+
end: number;
|
|
34
|
+
visibleItems: unknown[];
|
|
35
|
+
}) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, {
|
|
37
|
+
height: string | number;
|
|
38
|
+
itemHeight: number;
|
|
39
|
+
items: any[];
|
|
40
|
+
virtual: boolean;
|
|
41
|
+
buffer: number;
|
|
42
|
+
}>;
|
|
43
|
+
__isFragment?: undefined;
|
|
44
|
+
__isTeleport?: undefined;
|
|
45
|
+
__isSuspense?: undefined;
|
|
46
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./src/index.vue").ListProps<any>> & Readonly<{
|
|
47
|
+
onScroll?: ((payload: {
|
|
48
|
+
event: Event;
|
|
49
|
+
start: number;
|
|
50
|
+
end: number;
|
|
51
|
+
visibleItems: unknown[];
|
|
52
|
+
}) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
54
|
+
scroll: (payload: {
|
|
55
|
+
event: Event;
|
|
56
|
+
start: number;
|
|
57
|
+
end: number;
|
|
58
|
+
visibleItems: unknown[];
|
|
59
|
+
}) => any;
|
|
60
|
+
}, string, {
|
|
61
|
+
height: string | number;
|
|
62
|
+
itemHeight: number;
|
|
63
|
+
items: any[];
|
|
64
|
+
virtual: boolean;
|
|
65
|
+
buffer: number;
|
|
66
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ((new () => {
|
|
67
|
+
$slots: {
|
|
68
|
+
item?: ((props: {
|
|
69
|
+
item: any;
|
|
70
|
+
index: number;
|
|
71
|
+
}) => any) | undefined;
|
|
72
|
+
} & {
|
|
73
|
+
default?: ((props: {}) => any) | undefined;
|
|
74
|
+
};
|
|
75
|
+
}) & import("vue").Plugin)));
|
|
76
|
+
export declare const SyListItem: {
|
|
77
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
78
|
+
itemHeight: number;
|
|
79
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
80
|
+
P: {};
|
|
81
|
+
B: {};
|
|
82
|
+
D: {};
|
|
83
|
+
C: {};
|
|
84
|
+
M: {};
|
|
85
|
+
Defaults: {};
|
|
86
|
+
}, Readonly<{
|
|
87
|
+
itemHeight: number;
|
|
88
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
89
|
+
__isFragment?: undefined;
|
|
90
|
+
__isTeleport?: undefined;
|
|
91
|
+
__isSuspense?: undefined;
|
|
92
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
93
|
+
itemHeight: number;
|
|
94
|
+
}> & 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 () => {
|
|
95
|
+
$slots: {
|
|
96
|
+
default?: ((props: {}) => any) | undefined;
|
|
97
|
+
};
|
|
98
|
+
}) & import("vue").Plugin)));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface ListProps<T = any> {
|
|
2
|
+
items?: T[];
|
|
3
|
+
virtual?: boolean;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
itemHeight?: number;
|
|
6
|
+
buffer?: number;
|
|
7
|
+
itemKey?: string | ((item: T, index: number) => string | number);
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = ListProps;
|
|
10
|
+
type ScrollPayload = {
|
|
11
|
+
event: Event;
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
visibleItems: unknown[];
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_4: {
|
|
17
|
+
item: any;
|
|
18
|
+
index: number;
|
|
19
|
+
}, __VLS_9: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
item?: (props: typeof __VLS_4) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_9) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
scroll: (payload: ScrollPayload) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onScroll?: ((payload: ScrollPayload) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
height: string | number;
|
|
31
|
+
itemHeight: number;
|
|
32
|
+
items: any[];
|
|
33
|
+
virtual: boolean;
|
|
34
|
+
buffer: number;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
itemHeight: number;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
5
|
+
default?: ((props: {}) => any) | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const SyLoading: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/index.vue").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<import("./src/index.vue").Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: undefined;
|
|
11
|
+
__isTeleport?: undefined;
|
|
12
|
+
__isSuspense?: undefined;
|
|
13
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./src/index.vue").Props> & 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 & import("vue").Plugin));
|
|
14
|
+
export default SyLoading;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
size: {
|
|
3
|
+
default: number;
|
|
4
|
+
};
|
|
5
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
size: {
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
}>> & Readonly<{}>, {
|
|
10
|
+
size: number;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
type: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type MsgType = 'info' | 'success' | 'warning' | 'error';
|
|
2
|
+
interface MsgOptions {
|
|
3
|
+
message: string;
|
|
4
|
+
type?: MsgType;
|
|
5
|
+
duration?: number;
|
|
6
|
+
icon?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function SyMessage(options: string | MsgOptions): {
|
|
9
|
+
id: number;
|
|
10
|
+
close: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare namespace SyMessage {
|
|
13
|
+
var info: (msg: string | MsgOptions) => {
|
|
14
|
+
id: number;
|
|
15
|
+
close: () => void;
|
|
16
|
+
};
|
|
17
|
+
var success: (msg: string | MsgOptions) => {
|
|
18
|
+
id: number;
|
|
19
|
+
close: () => void;
|
|
20
|
+
};
|
|
21
|
+
var warning: (msg: string | MsgOptions) => {
|
|
22
|
+
id: number;
|
|
23
|
+
close: () => void;
|
|
24
|
+
};
|
|
25
|
+
var error: (msg: string | MsgOptions) => {
|
|
26
|
+
id: number;
|
|
27
|
+
close: () => void;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export { SyMessage };
|
|
31
|
+
export default SyMessage;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface MessageItem {
|
|
2
|
+
id: number;
|
|
3
|
+
message: string;
|
|
4
|
+
type: 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
duration: number;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
timer?: number | null;
|
|
8
|
+
remaining?: number;
|
|
9
|
+
startAt?: number;
|
|
10
|
+
icon?: string;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
messages: MessageItem[];
|
|
14
|
+
};
|
|
15
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
close: (...args: any[]) => void;
|
|
17
|
+
pause: (...args: any[]) => void;
|
|
18
|
+
resume: (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onPause?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onResume?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
|
+
icon?: ((props: {}) => any) | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
2
|
+
export interface DialogOptions {
|
|
3
|
+
title?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
confirmText?: string;
|
|
6
|
+
cancelText?: string;
|
|
7
|
+
inputPlaceholder?: string;
|
|
8
|
+
inputValue?: string;
|
|
9
|
+
icon?: 'tip' | 'warning' | 'error';
|
|
10
|
+
}
|
|
11
|
+
declare const SyMessageBox: {
|
|
12
|
+
tip(message: string | VNode, title?: string, options?: DialogOptions): Promise<unknown>;
|
|
13
|
+
alert(message: string | VNode, title?: string, options?: DialogOptions): Promise<unknown>;
|
|
14
|
+
confirm(message: string | VNode, title?: string, options?: DialogOptions): Promise<unknown>;
|
|
15
|
+
prompt(message: string | VNode, title?: string, options?: DialogOptions): Promise<unknown>;
|
|
16
|
+
};
|
|
17
|
+
export { SyMessageBox };
|
|
18
|
+
export default SyMessageBox;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
type?: 'tip' | 'alert' | 'confirm' | 'prompt';
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string | VNode;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
inputPlaceholder?: string;
|
|
9
|
+
inputValue?: string;
|
|
10
|
+
icon?: 'tip' | 'warning' | 'error';
|
|
11
|
+
closeOnClickModal?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
requestClose: (...args: any[]) => void;
|
|
15
|
+
closed: (...args: any[]) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
+
onRequestClose?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export declare const SySelect: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: import("vue").PropType<any>;
|
|
5
|
+
default: null;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
type: import("vue").PropType<{
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
loadingOption: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
labelKey: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
valueKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
placeholder: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
filterable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
clearable: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
max: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
height: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
onRequestClose?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
|
+
requestClose: (...args: any[]) => void;
|
|
63
|
+
closed: (...args: any[]) => void;
|
|
64
|
+
"update:modelValue": (...args: any[]) => void;
|
|
65
|
+
}, import("vue").PublicProps, {
|
|
66
|
+
title: string;
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
placeholder: string;
|
|
69
|
+
modelValue: any;
|
|
70
|
+
clearable: boolean;
|
|
71
|
+
options: {
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
}[];
|
|
74
|
+
loadingOption: boolean;
|
|
75
|
+
labelKey: string;
|
|
76
|
+
valueKey: string;
|
|
77
|
+
multiple: boolean;
|
|
78
|
+
filterable: boolean;
|
|
79
|
+
max: number;
|
|
80
|
+
height: number;
|
|
81
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
82
|
+
P: {};
|
|
83
|
+
B: {};
|
|
84
|
+
D: {};
|
|
85
|
+
C: {};
|
|
86
|
+
M: {};
|
|
87
|
+
Defaults: {};
|
|
88
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
89
|
+
modelValue: {
|
|
90
|
+
type: import("vue").PropType<any>;
|
|
91
|
+
default: null;
|
|
92
|
+
};
|
|
93
|
+
options: {
|
|
94
|
+
type: import("vue").PropType<{
|
|
95
|
+
[x: string]: any;
|
|
96
|
+
}[]>;
|
|
97
|
+
default: () => never[];
|
|
98
|
+
};
|
|
99
|
+
loadingOption: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
labelKey: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
valueKey: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
placeholder: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
title: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
multiple: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
filterable: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
clearable: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
disabled: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
max: {
|
|
136
|
+
type: NumberConstructor;
|
|
137
|
+
default: number;
|
|
138
|
+
};
|
|
139
|
+
height: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
default: number;
|
|
142
|
+
};
|
|
143
|
+
}>> & Readonly<{
|
|
144
|
+
onRequestClose?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
}>, {}, {}, {}, {}, {
|
|
148
|
+
title: string;
|
|
149
|
+
disabled: boolean;
|
|
150
|
+
placeholder: string;
|
|
151
|
+
modelValue: any;
|
|
152
|
+
clearable: boolean;
|
|
153
|
+
options: {
|
|
154
|
+
[x: string]: any;
|
|
155
|
+
}[];
|
|
156
|
+
loadingOption: boolean;
|
|
157
|
+
labelKey: string;
|
|
158
|
+
valueKey: string;
|
|
159
|
+
multiple: boolean;
|
|
160
|
+
filterable: boolean;
|
|
161
|
+
max: number;
|
|
162
|
+
height: number;
|
|
163
|
+
}>;
|
|
164
|
+
__isFragment?: undefined;
|
|
165
|
+
__isTeleport?: undefined;
|
|
166
|
+
__isSuspense?: undefined;
|
|
167
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
168
|
+
modelValue: {
|
|
169
|
+
type: import("vue").PropType<any>;
|
|
170
|
+
default: null;
|
|
171
|
+
};
|
|
172
|
+
options: {
|
|
173
|
+
type: import("vue").PropType<{
|
|
174
|
+
[x: string]: any;
|
|
175
|
+
}[]>;
|
|
176
|
+
default: () => never[];
|
|
177
|
+
};
|
|
178
|
+
loadingOption: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
labelKey: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
default: string;
|
|
185
|
+
};
|
|
186
|
+
valueKey: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
placeholder: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
title: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
multiple: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
filterable: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
206
|
+
clearable: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
disabled: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
max: {
|
|
215
|
+
type: NumberConstructor;
|
|
216
|
+
default: number;
|
|
217
|
+
};
|
|
218
|
+
height: {
|
|
219
|
+
type: NumberConstructor;
|
|
220
|
+
default: number;
|
|
221
|
+
};
|
|
222
|
+
}>> & Readonly<{
|
|
223
|
+
onRequestClose?: ((...args: any[]) => any) | undefined;
|
|
224
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
225
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
226
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
227
|
+
requestClose: (...args: any[]) => void;
|
|
228
|
+
closed: (...args: any[]) => void;
|
|
229
|
+
"update:modelValue": (...args: any[]) => void;
|
|
230
|
+
}, string, {
|
|
231
|
+
title: string;
|
|
232
|
+
disabled: boolean;
|
|
233
|
+
placeholder: string;
|
|
234
|
+
modelValue: any;
|
|
235
|
+
clearable: boolean;
|
|
236
|
+
options: {
|
|
237
|
+
[x: string]: any;
|
|
238
|
+
}[];
|
|
239
|
+
loadingOption: boolean;
|
|
240
|
+
labelKey: string;
|
|
241
|
+
valueKey: string;
|
|
242
|
+
multiple: boolean;
|
|
243
|
+
filterable: boolean;
|
|
244
|
+
max: number;
|
|
245
|
+
height: number;
|
|
246
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ((new () => {
|
|
247
|
+
$slots: {
|
|
248
|
+
option?: ((props: {
|
|
249
|
+
option: {
|
|
250
|
+
[x: string]: any;
|
|
251
|
+
isSelected: boolean;
|
|
252
|
+
};
|
|
253
|
+
}) => any) | undefined;
|
|
254
|
+
};
|
|
255
|
+
}) & import("vue").Plugin)));
|
|
256
|
+
export default SySelect;
|