@maxtropy/v-components 0.1.6-beta.7 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mx-vcomponents.es.js +7671 -4912
- package/dist/style.css +1 -1
- package/dist/types/components/button/MxButton.vue.d.ts +31 -0
- package/dist/types/components/button/index.d.ts +7 -0
- package/dist/types/components/checkbox/MxCheckbox.vue.d.ts +7 -0
- package/dist/types/components/checkbox/MxCheckboxGroup.vue.d.ts +7 -0
- package/dist/types/components/checkbox/index.d.ts +241 -0
- package/dist/types/components/index.d.ts +11 -1
- package/dist/types/components/input/MxInput.vue.d.ts +7 -0
- package/dist/types/components/input/index.d.ts +7 -0
- package/dist/types/components/radio/MxRadio.vue.d.ts +7 -0
- package/dist/types/components/radio/MxRadioButton.vue.d.ts +7 -0
- package/dist/types/components/radio/MxRadioGroup.vue.d.ts +7 -0
- package/dist/types/components/radio/index.d.ts +101 -0
- package/dist/types/components/select/MxOption.vue.d.ts +7 -0
- package/dist/types/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/dist/types/components/select/MxSelect.vue.d.ts +7 -0
- package/dist/types/components/select/index.d.ts +101 -0
- package/dist/types/components/switch/MxSwitch.vue.d.ts +2 -0
- package/dist/types/components/switch/index.d.ts +7 -0
- package/package.json +5 -2
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { ElCheckboxButton } from 'element-plus';
|
|
2
|
+
import MxCheckbox from './MxCheckbox.vue';
|
|
3
|
+
declare module 'vue' {
|
|
4
|
+
interface GlobalComponents {
|
|
5
|
+
MxCheckbox: typeof MxCheckbox;
|
|
6
|
+
MxCheckboxGroup: typeof MxCheckboxGroup;
|
|
7
|
+
MxCheckboxButton: typeof ElCheckboxButton;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default MxCheckbox;
|
|
11
|
+
export declare const MxCheckboxGroup: {
|
|
12
|
+
new (...args: any[]): {
|
|
13
|
+
$: import("vue").ComponentInternalInstance;
|
|
14
|
+
$data: {};
|
|
15
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
16
|
+
$attrs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
$refs: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
$slots: Readonly<{
|
|
23
|
+
[name: string]: import("vue").Slot | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
26
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
27
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
28
|
+
$el: any;
|
|
29
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
30
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
43
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
45
|
+
};
|
|
46
|
+
$forceUpdate: () => void;
|
|
47
|
+
$nextTick: typeof import("vue").nextTick;
|
|
48
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
49
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
50
|
+
__isFragment?: undefined;
|
|
51
|
+
__isTeleport?: undefined;
|
|
52
|
+
__isSuspense?: undefined;
|
|
53
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
54
|
+
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
55
|
+
});
|
|
56
|
+
export declare const MxCheckboxButton: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
57
|
+
modelValue: {
|
|
58
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
label: {
|
|
62
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
63
|
+
};
|
|
64
|
+
indeterminate: BooleanConstructor;
|
|
65
|
+
disabled: BooleanConstructor;
|
|
66
|
+
checked: BooleanConstructor;
|
|
67
|
+
name: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
trueLabel: {
|
|
72
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
falseLabel: {
|
|
76
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
79
|
+
id: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
controls: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
border: BooleanConstructor;
|
|
88
|
+
size: {
|
|
89
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
+
__epPropKey: true;
|
|
93
|
+
};
|
|
94
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
95
|
+
validateEvent: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
101
|
+
modelValue: {
|
|
102
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
103
|
+
default: undefined;
|
|
104
|
+
};
|
|
105
|
+
label: {
|
|
106
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
107
|
+
};
|
|
108
|
+
indeterminate: BooleanConstructor;
|
|
109
|
+
disabled: BooleanConstructor;
|
|
110
|
+
checked: BooleanConstructor;
|
|
111
|
+
name: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
trueLabel: {
|
|
116
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
falseLabel: {
|
|
120
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
123
|
+
id: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: undefined;
|
|
126
|
+
};
|
|
127
|
+
controls: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
131
|
+
border: BooleanConstructor;
|
|
132
|
+
size: {
|
|
133
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
134
|
+
readonly required: false;
|
|
135
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
136
|
+
__epPropKey: true;
|
|
137
|
+
};
|
|
138
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
139
|
+
validateEvent: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
}>> & {
|
|
144
|
+
onChange?: ((val: import("element-plus").CheckboxValueType) => any) | undefined;
|
|
145
|
+
"onUpdate:modelValue"?: ((val: import("element-plus").CheckboxValueType) => any) | undefined;
|
|
146
|
+
}>>;
|
|
147
|
+
slots: Readonly<{
|
|
148
|
+
[name: string]: import("vue").Slot | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
isFocused: import("vue").Ref<boolean>;
|
|
151
|
+
isChecked: import("vue").ComputedRef<boolean>;
|
|
152
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
|
153
|
+
checkboxButtonSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
154
|
+
model: import("vue").WritableComputedRef<any>;
|
|
155
|
+
handleChange: (e: Event) => void;
|
|
156
|
+
checkboxGroup: ({
|
|
157
|
+
modelValue?: import("vue").WritableComputedRef<any> | undefined;
|
|
158
|
+
changeEvent?: ((...args: any) => any) | undefined;
|
|
159
|
+
} & import("vue").ToRefs<Pick<import("element-plus").CheckboxGroupProps, "fill" | "size" | "disabled" | "validateEvent" | "min" | "max" | "textColor">>) | undefined;
|
|
160
|
+
ns: {
|
|
161
|
+
namespace: import("vue").ComputedRef<string>;
|
|
162
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
163
|
+
e: (element?: string | undefined) => string;
|
|
164
|
+
m: (modifier?: string | undefined) => string;
|
|
165
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
166
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
167
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
168
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
169
|
+
is: {
|
|
170
|
+
(name: string, state: boolean | undefined): string;
|
|
171
|
+
(name: string): string;
|
|
172
|
+
};
|
|
173
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
174
|
+
cssVarName: (name: string) => string;
|
|
175
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
176
|
+
cssVarBlockName: (name: string) => string;
|
|
177
|
+
};
|
|
178
|
+
activeStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
179
|
+
labelKls: import("vue").ComputedRef<string[]>;
|
|
180
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
181
|
+
"update:modelValue": (val: import("element-plus").CheckboxValueType) => boolean;
|
|
182
|
+
change: (val: import("element-plus").CheckboxValueType) => boolean;
|
|
183
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
184
|
+
modelValue: {
|
|
185
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
186
|
+
default: undefined;
|
|
187
|
+
};
|
|
188
|
+
label: {
|
|
189
|
+
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
190
|
+
};
|
|
191
|
+
indeterminate: BooleanConstructor;
|
|
192
|
+
disabled: BooleanConstructor;
|
|
193
|
+
checked: BooleanConstructor;
|
|
194
|
+
name: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: undefined;
|
|
197
|
+
};
|
|
198
|
+
trueLabel: {
|
|
199
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
200
|
+
default: undefined;
|
|
201
|
+
};
|
|
202
|
+
falseLabel: {
|
|
203
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
204
|
+
default: undefined;
|
|
205
|
+
};
|
|
206
|
+
id: {
|
|
207
|
+
type: StringConstructor;
|
|
208
|
+
default: undefined;
|
|
209
|
+
};
|
|
210
|
+
controls: {
|
|
211
|
+
type: StringConstructor;
|
|
212
|
+
default: undefined;
|
|
213
|
+
};
|
|
214
|
+
border: BooleanConstructor;
|
|
215
|
+
size: {
|
|
216
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
217
|
+
readonly required: false;
|
|
218
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
219
|
+
__epPropKey: true;
|
|
220
|
+
};
|
|
221
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
222
|
+
validateEvent: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
}>> & {
|
|
227
|
+
onChange?: ((val: import("element-plus").CheckboxValueType) => any) | undefined;
|
|
228
|
+
"onUpdate:modelValue"?: ((val: import("element-plus").CheckboxValueType) => any) | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
modelValue: string | number | boolean;
|
|
231
|
+
id: string;
|
|
232
|
+
disabled: boolean;
|
|
233
|
+
name: string;
|
|
234
|
+
validateEvent: boolean;
|
|
235
|
+
border: boolean;
|
|
236
|
+
indeterminate: boolean;
|
|
237
|
+
checked: boolean;
|
|
238
|
+
trueLabel: string | number;
|
|
239
|
+
falseLabel: string | number;
|
|
240
|
+
controls: string;
|
|
241
|
+
}>>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import MxButton from './button';
|
|
2
|
+
import MxInput from './input';
|
|
1
3
|
import SwitchStaff from './switchstaff';
|
|
2
4
|
import HeadNavigation from './headnavigation';
|
|
5
|
+
import MxSwitch from './switch';
|
|
6
|
+
import MxSelect, { MxOption, MxOptionGroup } from './select';
|
|
7
|
+
import MxRadio from './radio';
|
|
8
|
+
import MxCheckbox, { MxCheckboxButton, MxCheckboxGroup } from './checkbox';
|
|
3
9
|
import SiderMenu from './sidermenu';
|
|
4
10
|
import UserContent from './usercontent';
|
|
5
11
|
import SystemContent from './systemcontent';
|
|
@@ -7,4 +13,8 @@ import BreadCrumb from './breadcrumb';
|
|
|
7
13
|
import BasicLayout from './basiclayout';
|
|
8
14
|
import AuthorizedPermission from './authorizedpermission';
|
|
9
15
|
import { usePermission, useStaffTitle, useIntegratedAuthorityList } from '../utils/hooks';
|
|
10
|
-
export { SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, };
|
|
16
|
+
export { MxInput, MxButton, MxSwitch, MxSelect, MxOption, MxOptionGroup, MxRadio, MxCheckbox, MxCheckboxButton, MxCheckboxGroup, SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, };
|
|
17
|
+
declare const _default: {
|
|
18
|
+
install: any;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import MxRadio from './MxRadio.vue';
|
|
2
|
+
import RadioGroup from './MxRadioGroup.vue';
|
|
3
|
+
import RadioButton from './MxRadioButton.vue';
|
|
4
|
+
declare module 'vue' {
|
|
5
|
+
interface GlobalComponents {
|
|
6
|
+
MxRadio: typeof MxRadio;
|
|
7
|
+
MxRadioGroup: typeof RadioGroup;
|
|
8
|
+
MxRadioButton: typeof RadioButton;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default MxRadio;
|
|
12
|
+
export declare const MxRadioGroup: {
|
|
13
|
+
new (...args: any[]): {
|
|
14
|
+
$: import("vue").ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
17
|
+
$attrs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
$refs: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
$slots: Readonly<{
|
|
24
|
+
[name: string]: import("vue").Slot | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
27
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
28
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
29
|
+
$el: any;
|
|
30
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
31
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
46
|
+
};
|
|
47
|
+
$forceUpdate: () => void;
|
|
48
|
+
$nextTick: typeof import("vue").nextTick;
|
|
49
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
50
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
51
|
+
__isFragment?: undefined;
|
|
52
|
+
__isTeleport?: undefined;
|
|
53
|
+
__isSuspense?: undefined;
|
|
54
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
55
|
+
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
56
|
+
});
|
|
57
|
+
export declare const MxRadioButton: {
|
|
58
|
+
new (...args: any[]): {
|
|
59
|
+
$: import("vue").ComponentInternalInstance;
|
|
60
|
+
$data: {};
|
|
61
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
62
|
+
$attrs: {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
$refs: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
$slots: Readonly<{
|
|
69
|
+
[name: string]: import("vue").Slot | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
72
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
73
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
74
|
+
$el: any;
|
|
75
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
76
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
89
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
90
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
91
|
+
};
|
|
92
|
+
$forceUpdate: () => void;
|
|
93
|
+
$nextTick: typeof import("vue").nextTick;
|
|
94
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
95
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
96
|
+
__isFragment?: undefined;
|
|
97
|
+
__isTeleport?: undefined;
|
|
98
|
+
__isSuspense?: undefined;
|
|
99
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
|
+
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
101
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Partial<Record<string | number, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import MxSelect from './MxSelect.vue';
|
|
2
|
+
import Option from './MxOption.vue';
|
|
3
|
+
import OptionGroup from './MxOptionGroup.vue';
|
|
4
|
+
declare module 'vue' {
|
|
5
|
+
interface GlobalComponents {
|
|
6
|
+
MxSelect: typeof MxSelect;
|
|
7
|
+
MxOption: typeof Option;
|
|
8
|
+
MxOptionGroup: typeof OptionGroup;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default MxSelect;
|
|
12
|
+
export declare const MxOption: {
|
|
13
|
+
new (...args: any[]): {
|
|
14
|
+
$: import("vue").ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
17
|
+
$attrs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
$refs: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
$slots: Readonly<{
|
|
24
|
+
[name: string]: import("vue").Slot | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
27
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
28
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
29
|
+
$el: any;
|
|
30
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
31
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
46
|
+
};
|
|
47
|
+
$forceUpdate: () => void;
|
|
48
|
+
$nextTick: typeof import("vue").nextTick;
|
|
49
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
50
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
51
|
+
__isFragment?: undefined;
|
|
52
|
+
__isTeleport?: undefined;
|
|
53
|
+
__isSuspense?: undefined;
|
|
54
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
55
|
+
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
56
|
+
});
|
|
57
|
+
export declare const MxOptionGroup: {
|
|
58
|
+
new (...args: any[]): {
|
|
59
|
+
$: import("vue").ComponentInternalInstance;
|
|
60
|
+
$data: {};
|
|
61
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
62
|
+
$attrs: {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
$refs: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
$slots: Readonly<{
|
|
69
|
+
[name: string]: import("vue").Slot | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
72
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
73
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
74
|
+
$el: any;
|
|
75
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
76
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
89
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
90
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
91
|
+
};
|
|
92
|
+
$forceUpdate: () => void;
|
|
93
|
+
$nextTick: typeof import("vue").nextTick;
|
|
94
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
95
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
96
|
+
__isFragment?: undefined;
|
|
97
|
+
__isTeleport?: undefined;
|
|
98
|
+
__isSuspense?: undefined;
|
|
99
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
|
+
$slots: Partial<Record<string | number, (_: {}) => any>>;
|
|
101
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxtropy/v-components",
|
|
3
|
-
"version": "0.1.6
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -55,7 +55,9 @@
|
|
|
55
55
|
"rimraf": "^3.0.2",
|
|
56
56
|
"sass": "^1.49.7",
|
|
57
57
|
"typescript": "^4.4.4",
|
|
58
|
-
"unplugin-
|
|
58
|
+
"unplugin-auto-import": "^0.17.3",
|
|
59
|
+
"unplugin-element-plus": "^0.7.2",
|
|
60
|
+
"unplugin-vue-components": "^0.26.0",
|
|
59
61
|
"vite": "^4.3.4",
|
|
60
62
|
"vitepress": "1.0.0-alpha.75",
|
|
61
63
|
"vitepress-theme-demoblock": "^2.0.2",
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
"vue-tsc": "^1.6.4"
|
|
65
67
|
},
|
|
66
68
|
"dependencies": {
|
|
69
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
67
70
|
"@types/lodash-es": "^4.17.7",
|
|
68
71
|
"element-plus": ">=2.3.4",
|
|
69
72
|
"lodash-es": ">=4",
|