fan-components 1.0.9 → 1.0.10
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/LICENSE +21 -0
- package/README.en.md +141 -0
- package/README.md +141 -0
- package/dist/components/Dropdown/index.d.ts +4 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/Dropdown/src/dropdown.d.ts +21 -0
- package/dist/components/Dropdown/src/dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown/src/dropdown.vue.d.ts +110 -0
- package/dist/components/Dropdown/src/dropdown.vue.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/src/Form.vue.d.ts +23 -0
- package/dist/components/Form/src/Form.vue.d.ts.map +1 -0
- package/dist/components/Form/src/FormItem.vue.d.ts +23 -0
- package/dist/components/Form/src/FormItem.vue.d.ts.map +1 -0
- package/dist/components/Form/src/form.d.ts +47 -0
- package/dist/components/Form/src/form.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/src/Input.d.ts +25 -0
- package/dist/components/Input/src/Input.d.ts.map +1 -0
- package/dist/components/Input/src/Input.vue.d.ts +114 -0
- package/dist/components/Input/src/Input.vue.d.ts.map +1 -0
- package/dist/components/Message/index.d.ts +3 -0
- package/dist/components/Message/index.d.ts.map +1 -0
- package/dist/components/Message/src/message.d.ts +21 -0
- package/dist/components/Message/src/message.d.ts.map +1 -0
- package/dist/components/Message/src/message.vue.d.ts +93 -0
- package/dist/components/Message/src/message.vue.d.ts.map +1 -0
- package/dist/components/Message/src/methods.d.ts +24 -0
- package/dist/components/Message/src/methods.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +4 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/src/select.d.ts +35 -0
- package/dist/components/Select/src/select.d.ts.map +1 -0
- package/dist/components/Select/src/select.vue.d.ts +105 -0
- package/dist/components/Select/src/select.vue.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Switch/src/switch.d.ts +17 -0
- package/dist/components/Switch/src/switch.d.ts.map +1 -0
- package/dist/components/Switch/src/switch.vue.d.ts +90 -0
- package/dist/components/Switch/src/switch.vue.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tooltip/src/tooltip.d.ts +20 -0
- package/dist/components/Tooltip/src/tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/src/tooltip.vue.d.ts +91 -0
- package/dist/components/Tooltip/src/tooltip.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/types.d.ts +8 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/package.json +2 -2
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/rander-vnode.d.ts +8 -0
- package/dist/utils/rander-vnode.d.ts.map +1 -0
- package/dist/utils/use-click-outside.d.ts +5 -0
- package/dist/utils/use-click-outside.d.ts.map +1 -0
- package/dist/utils/use-event-listener.d.ts +4 -0
- package/dist/utils/use-event-listener.d.ts.map +1 -0
- package/dist/utils/use-zIndex.d.ts +8 -0
- package/dist/utils/use-zIndex.d.ts.map +1 -0
- package/package.json +5 -2
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
clearable: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
showPassword: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
placeholder: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
readonly: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
autocomplete: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: false;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
autofocus: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
required: false;
|
|
43
|
+
};
|
|
44
|
+
form: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: false;
|
|
47
|
+
};
|
|
48
|
+
}>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "input" | "change" | "focus" | "blur" | "clear")[], "update:modelValue" | "input" | "change" | "focus" | "blur" | "clear", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
type: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
size: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
};
|
|
68
|
+
clearable: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
required: false;
|
|
71
|
+
};
|
|
72
|
+
showPassword: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
required: false;
|
|
75
|
+
};
|
|
76
|
+
placeholder: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
required: false;
|
|
79
|
+
};
|
|
80
|
+
readonly: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
required: false;
|
|
83
|
+
};
|
|
84
|
+
autocomplete: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: false;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
autofocus: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
required: false;
|
|
92
|
+
};
|
|
93
|
+
form: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
required: false;
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
onInput?: (...args: any[]) => any;
|
|
99
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
100
|
+
onChange?: (...args: any[]) => any;
|
|
101
|
+
onFocus?: (...args: any[]) => any;
|
|
102
|
+
onBlur?: (...args: any[]) => any;
|
|
103
|
+
onClear?: (...args: any[]) => any;
|
|
104
|
+
}>, {
|
|
105
|
+
type: string;
|
|
106
|
+
disabled: boolean;
|
|
107
|
+
readonly: boolean;
|
|
108
|
+
autocomplete: string;
|
|
109
|
+
autofocus: boolean;
|
|
110
|
+
clearable: boolean;
|
|
111
|
+
showPassword: boolean;
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
|
+
export default _default;
|
|
114
|
+
//# sourceMappingURL=Input.vue?vue&type=script&setup=true&lang.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.vue?vue&type=script&setup=true&lang.d.ts","sourceRoot":"","sources":["../../../../packages/components/Input/src/Input.vue?vue&type=script&setup=true&lang.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2Gc,GAAG,UAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjF7B,wBAqME"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/components/Message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { VNode, ComponentInternalInstance } from "vue";
|
|
2
|
+
export interface MessageProps {
|
|
3
|
+
message?: string | VNode;
|
|
4
|
+
duration?: number;
|
|
5
|
+
showClose?: boolean;
|
|
6
|
+
type?: "success" | "info" | "warning" | "danger";
|
|
7
|
+
onDestroy: () => void;
|
|
8
|
+
id: string;
|
|
9
|
+
zIndex: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
transitionName?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MessageContext {
|
|
14
|
+
id: string;
|
|
15
|
+
vnode: VNode;
|
|
16
|
+
vm: ComponentInternalInstance;
|
|
17
|
+
props: MessageProps;
|
|
18
|
+
destroy: () => void;
|
|
19
|
+
}
|
|
20
|
+
export type CreateMessageProps = Omit<MessageProps, "onDestroy" | "id" | "zIndex">;
|
|
21
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../packages/components/Message/src/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,yBAAyB,EAAE,MAAM,KAAK,CAAC;AAC5D,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,EAAE,EAAE,yBAAyB,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AACD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,GAAG,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
message: {
|
|
3
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
duration: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
showClose: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
type: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
onDestroy: {
|
|
21
|
+
type: FunctionConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
id: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
zIndex: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
offset: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
transitionName: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
message: {
|
|
46
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
47
|
+
required: false;
|
|
48
|
+
};
|
|
49
|
+
duration: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
required: false;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
showClose: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
required: false;
|
|
57
|
+
};
|
|
58
|
+
type: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: false;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
onDestroy: {
|
|
64
|
+
type: FunctionConstructor;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
id: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
zIndex: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
offset: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
default: number;
|
|
79
|
+
};
|
|
80
|
+
transitionName: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
required: false;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
}>> & Readonly<{}>, {
|
|
86
|
+
type: string;
|
|
87
|
+
duration: number;
|
|
88
|
+
showClose: boolean;
|
|
89
|
+
offset: number;
|
|
90
|
+
transitionName: string;
|
|
91
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default _default;
|
|
93
|
+
//# sourceMappingURL=message.vue?vue&type=script&setup=true&lang.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.vue?vue&type=script&setup=true&lang.d.ts","sourceRoot":"","sources":["../../../../packages/components/Message/src/message.vue?vue&type=script&setup=true&lang.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA8Fc,GAAG,UAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9E7B,wBA6HE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CreateMessageProps, MessageContext } from "./message";
|
|
2
|
+
export declare const createMessage: (props: CreateMessageProps) => {
|
|
3
|
+
id: string;
|
|
4
|
+
vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
vm: import("vue").ComponentInternalInstance;
|
|
8
|
+
props: {
|
|
9
|
+
id: string;
|
|
10
|
+
zIndex: any;
|
|
11
|
+
onDestroy: () => void;
|
|
12
|
+
message?: string | import("vue").VNode;
|
|
13
|
+
duration?: number;
|
|
14
|
+
showClose?: boolean;
|
|
15
|
+
type?: "success" | "info" | "warning" | "danger";
|
|
16
|
+
offset?: number;
|
|
17
|
+
transitionName?: string;
|
|
18
|
+
};
|
|
19
|
+
destroy: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const getLastInstance: () => MessageContext | undefined;
|
|
22
|
+
export declare const getLastBottomOffset: (id: string) => any;
|
|
23
|
+
export declare const closeAll: () => void;
|
|
24
|
+
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../../packages/components/Message/src/methods.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKpE,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB;;;;;;;;;;;;;;;;;;CAuCtD,CAAC;AAEF,eAAO,MAAM,eAAe,kCAE3B,CAAC;AACF,eAAO,MAAM,mBAAmB,GAAI,IAAI,MAAM,QAS7C,CAAC;AAEF,eAAO,MAAM,QAAQ,YAIpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/components/Select/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAE7B,eAAO,MAAM,QAAQ,KAAsB,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { VNode } from "vue";
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type RenderLabelFunc = (option: SelectOption) => VNode;
|
|
8
|
+
export type CustomFilterFunc = (value: string) => SelectOption[];
|
|
9
|
+
export type CustomFilterRemoteFunc = (value: string) => Promise<SelectOption[]>;
|
|
10
|
+
export interface SelectProps {
|
|
11
|
+
modelValue: string;
|
|
12
|
+
options?: SelectOption[];
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
renderLabel?: RenderLabelFunc;
|
|
17
|
+
filterable?: boolean;
|
|
18
|
+
filterMethod?: CustomFilterFunc;
|
|
19
|
+
remote?: boolean;
|
|
20
|
+
remoteMethod?: CustomFilterRemoteFunc;
|
|
21
|
+
}
|
|
22
|
+
export interface SelectStates {
|
|
23
|
+
inputValue: string;
|
|
24
|
+
selectedOption: null | SelectOption;
|
|
25
|
+
mouseHover: boolean;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
highlightIndex: number;
|
|
28
|
+
}
|
|
29
|
+
export interface SelectEmits {
|
|
30
|
+
(e: "change", value: string): void;
|
|
31
|
+
(e: "update:modelValue", value: string): void;
|
|
32
|
+
(e: "visible-change", value: boolean): void;
|
|
33
|
+
(e: "clear"): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../packages/components/Select/src/select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AACjC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,KAAK,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,EAAE,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;AAChF,MAAM,WAAW,WAAW;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC;AACD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,IAAI,GAAG,YAAY,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,CAAC,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5C,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACpB"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
options: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
clearable: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
};
|
|
25
|
+
renderLabel: {
|
|
26
|
+
type: FunctionConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
filterable: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
33
|
+
filterMethod: {
|
|
34
|
+
type: FunctionConstructor;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
37
|
+
remote: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
remoteMethod: {
|
|
42
|
+
type: FunctionConstructor;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
}>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "visible-change" | "clear")[], "change" | "update:modelValue" | "visible-change" | "clear", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
modelValue: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
options: {
|
|
53
|
+
type: ArrayConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
default: () => never[];
|
|
56
|
+
};
|
|
57
|
+
placeholder: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
disabled: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
required: false;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
clearable: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
required: false;
|
|
70
|
+
};
|
|
71
|
+
renderLabel: {
|
|
72
|
+
type: FunctionConstructor;
|
|
73
|
+
required: false;
|
|
74
|
+
};
|
|
75
|
+
filterable: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
79
|
+
filterMethod: {
|
|
80
|
+
type: FunctionConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
remote: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
required: false;
|
|
86
|
+
};
|
|
87
|
+
remoteMethod: {
|
|
88
|
+
type: FunctionConstructor;
|
|
89
|
+
required: false;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
onChange?: (...args: any[]) => any;
|
|
93
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
94
|
+
"onVisible-change"?: (...args: any[]) => any;
|
|
95
|
+
onClear?: (...args: any[]) => any;
|
|
96
|
+
}>, {
|
|
97
|
+
options: unknown[];
|
|
98
|
+
placeholder: string;
|
|
99
|
+
disabled: boolean;
|
|
100
|
+
clearable: boolean;
|
|
101
|
+
filterable: boolean;
|
|
102
|
+
remote: boolean;
|
|
103
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
104
|
+
export default _default;
|
|
105
|
+
//# sourceMappingURL=select.vue?vue&type=script&setup=true&lang.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.vue?vue&type=script&setup=true&lang.d.ts","sourceRoot":"","sources":["../../../../packages/components/Select/src/select.vue?vue&type=script&setup=true&lang.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAkOc,GAAG,UAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArM7B,wBAqRE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/components/Switch/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAE7B,eAAO,MAAM,QAAQ,KAAsB,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type SwitchValueType = boolean | string | number;
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
modelValue: SwitchValueType;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
activeText?: string;
|
|
6
|
+
inactiveText?: string;
|
|
7
|
+
activeValue?: SwitchValueType;
|
|
8
|
+
inactiveValue?: SwitchValueType;
|
|
9
|
+
name?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
size?: "small" | "large";
|
|
12
|
+
}
|
|
13
|
+
export interface SwitchEmits {
|
|
14
|
+
(e: "update:modelValue", value: SwitchValueType): void;
|
|
15
|
+
(e: "change", value: SwitchValueType): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../packages/components/Switch/src/switch.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACxD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IACvD,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;CAC7C"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
disabled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
activeText: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
inactiveText: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
activeValue: {
|
|
19
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
20
|
+
required: false;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
inactiveValue: {
|
|
24
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
25
|
+
required: false;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
name: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
id: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
modelValue: {
|
|
44
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
disabled: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
required: false;
|
|
50
|
+
};
|
|
51
|
+
activeText: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
};
|
|
55
|
+
inactiveText: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
};
|
|
59
|
+
activeValue: {
|
|
60
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
61
|
+
required: false;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
inactiveValue: {
|
|
65
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
66
|
+
required: false;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
name: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
required: false;
|
|
72
|
+
};
|
|
73
|
+
id: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
required: false;
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
required: false;
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{
|
|
82
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
83
|
+
onChange?: (...args: any[]) => any;
|
|
84
|
+
}>, {
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
activeValue: string | number | boolean;
|
|
87
|
+
inactiveValue: string | number | boolean;
|
|
88
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
89
|
+
export default _default;
|
|
90
|
+
//# sourceMappingURL=switch.vue?vue&type=script&setup=true&lang.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.vue?vue&type=script&setup=true&lang.d.ts","sourceRoot":"","sources":["../../../../packages/components/Switch/src/switch.vue?vue&type=script&setup=true&lang.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+Dc,GAAG,UAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhD7B,wBA+EE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/components/Tooltip/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAE9B,eAAO,MAAM,SAAS,KAAuB,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Placement, Options } from "@popperjs/core";
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
content?: string;
|
|
4
|
+
trigger?: "hover" | "click";
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
manual?: boolean;
|
|
7
|
+
popperOptions?: Partial<Options>;
|
|
8
|
+
transition?: string;
|
|
9
|
+
openDelay?: number;
|
|
10
|
+
closeDelay?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface TooltipEmits {
|
|
13
|
+
(e: "visible-change", value: boolean): void;
|
|
14
|
+
(e: "click-outside", value: boolean): void;
|
|
15
|
+
}
|
|
16
|
+
export interface TooltipInstance {
|
|
17
|
+
show: () => void;
|
|
18
|
+
hide: () => void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../packages/components/Tooltip/src/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzD,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5C,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB"}
|