@bscomp/ep-ui 0.0.7
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 +71 -0
- package/lib/button/index.d.ts +118 -0
- package/lib/button/src/index.vue.d.ts +67 -0
- package/lib/checkbox/index.d.ts +113 -0
- package/lib/checkbox/src/index.vue.d.ts +51 -0
- package/lib/components.d.ts +19 -0
- package/lib/date-picker/index.d.ts +89 -0
- package/lib/date-picker/src/index.vue.d.ts +49 -0
- package/lib/ep-ui.js +15211 -0
- package/lib/ep-ui.js.gz +0 -0
- package/lib/ep-ui.umd.cjs +40 -0
- package/lib/favicon.ico +0 -0
- package/lib/form/index.d.ts +118 -0
- package/lib/form/src/index.vue.d.ts +84 -0
- package/lib/form/src/renderBtn.vue.d.ts +8 -0
- package/lib/form/src/renderComp.vue.d.ts +8 -0
- package/lib/hook/index.d.ts +10 -0
- package/lib/index.d.ts +14 -0
- package/lib/input/index.d.ts +83 -0
- package/lib/input/src/index.vue.d.ts +46 -0
- package/lib/radio/index.d.ts +105 -0
- package/lib/radio/src/index.vue.d.ts +52 -0
- package/lib/select/index.d.ts +170 -0
- package/lib/select/src/index.vue.d.ts +99 -0
- package/lib/style.css +1 -0
- package/lib/table/index.d.ts +3108 -0
- package/lib/table/src/ColumnSet.vue.d.ts +33 -0
- package/lib/table/src/CustomRender.vue.d.ts +20 -0
- package/lib/table/src/RowEdit.vue.d.ts +16 -0
- package/lib/table/src/index.vue.d.ts +1150 -0
- package/lib/table/src/useHooks.d.ts +8 -0
- package/lib/withInstall.d.ts +5 -0
- package/package.json +89 -0
package/lib/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const TForm: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
className: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
formOpts: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
widthSize: {
|
|
11
|
+
type: import('vue').PropType<1 | 2 | 3 | 4 | 5 | 6>;
|
|
12
|
+
validator: (value: number) => boolean;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
labelPosition: {
|
|
16
|
+
type: import('vue').PropType<"top" | "right" | "left">;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
isTrim: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onHandleEvent?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onGetRefs?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (...args: any[]) => void;
|
|
29
|
+
handleEvent: (...args: any[]) => void;
|
|
30
|
+
getRefs: (...args: any[]) => void;
|
|
31
|
+
}, import('vue').PublicProps, {
|
|
32
|
+
formOpts: Record<string, any>;
|
|
33
|
+
widthSize: 1 | 2 | 3 | 4 | 5 | 6;
|
|
34
|
+
labelPosition: "top" | "right" | "left";
|
|
35
|
+
isTrim: boolean;
|
|
36
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
+
className: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
formOpts: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
widthSize: {
|
|
52
|
+
type: import('vue').PropType<1 | 2 | 3 | 4 | 5 | 6>;
|
|
53
|
+
validator: (value: number) => boolean;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
labelPosition: {
|
|
57
|
+
type: import('vue').PropType<"top" | "right" | "left">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
isTrim: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onHandleEvent?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onGetRefs?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}>, any, {}, {}, {}, {
|
|
69
|
+
formOpts: Record<string, any>;
|
|
70
|
+
widthSize: 1 | 2 | 3 | 4 | 5 | 6;
|
|
71
|
+
labelPosition: "top" | "right" | "left";
|
|
72
|
+
isTrim: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
__isFragment?: undefined;
|
|
75
|
+
__isTeleport?: undefined;
|
|
76
|
+
__isSuspense?: undefined;
|
|
77
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
+
className: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
};
|
|
81
|
+
formOpts: {
|
|
82
|
+
type: ObjectConstructor;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
widthSize: {
|
|
86
|
+
type: import('vue').PropType<1 | 2 | 3 | 4 | 5 | 6>;
|
|
87
|
+
validator: (value: number) => boolean;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
labelPosition: {
|
|
91
|
+
type: import('vue').PropType<"top" | "right" | "left">;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
isTrim: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
onHandleEvent?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onGetRefs?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
103
|
+
"update:modelValue": (...args: any[]) => void;
|
|
104
|
+
handleEvent: (...args: any[]) => void;
|
|
105
|
+
getRefs: (...args: any[]) => void;
|
|
106
|
+
}, string, {
|
|
107
|
+
formOpts: Record<string, any>;
|
|
108
|
+
widthSize: 1 | 2 | 3 | 4 | 5 | 6;
|
|
109
|
+
labelPosition: "top" | "right" | "left";
|
|
110
|
+
isTrim: boolean;
|
|
111
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
112
|
+
$slots: Partial<Record<any, (_: {
|
|
113
|
+
scope: any;
|
|
114
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
115
|
+
scope: any;
|
|
116
|
+
}) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {}) => any>>;
|
|
117
|
+
}) & import('vue').Plugin<any[]>) & Record<string, any>;
|
|
118
|
+
export default TForm;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
className: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
/** 表单配置项说明
|
|
8
|
+
* formData object 表单提交数据
|
|
9
|
+
* rules object 验证规则
|
|
10
|
+
* fieldList Array 表单渲染数据
|
|
11
|
+
* operatorList Array 操作按钮list
|
|
12
|
+
* listTypeInfo object 下拉选项数据
|
|
13
|
+
* labelWidth String label宽度
|
|
14
|
+
*/
|
|
15
|
+
formOpts: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
widthSize: {
|
|
20
|
+
type: PropType<1 | 2 | 3 | 4 | 5 | 6>;
|
|
21
|
+
validator: (value: number) => boolean;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
labelPosition: {
|
|
25
|
+
type: PropType<"top" | "right" | "left">;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
isTrim: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"update:modelValue": (...args: any[]) => void;
|
|
34
|
+
handleEvent: (...args: any[]) => void;
|
|
35
|
+
getRefs: (...args: any[]) => void;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
className: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
/** 表单配置项说明
|
|
41
|
+
* formData object 表单提交数据
|
|
42
|
+
* rules object 验证规则
|
|
43
|
+
* fieldList Array 表单渲染数据
|
|
44
|
+
* operatorList Array 操作按钮list
|
|
45
|
+
* listTypeInfo object 下拉选项数据
|
|
46
|
+
* labelWidth String label宽度
|
|
47
|
+
*/
|
|
48
|
+
formOpts: {
|
|
49
|
+
type: ObjectConstructor;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
widthSize: {
|
|
53
|
+
type: PropType<1 | 2 | 3 | 4 | 5 | 6>;
|
|
54
|
+
validator: (value: number) => boolean;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
labelPosition: {
|
|
58
|
+
type: PropType<"top" | "right" | "left">;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
isTrim: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onHandleEvent?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onGetRefs?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
formOpts: Record<string, any>;
|
|
71
|
+
widthSize: 1 | 2 | 3 | 4 | 5 | 6;
|
|
72
|
+
labelPosition: "top" | "right" | "left";
|
|
73
|
+
isTrim: boolean;
|
|
74
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<any, (_: {
|
|
75
|
+
scope: any;
|
|
76
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
77
|
+
scope: any;
|
|
78
|
+
}) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {}) => any>>>;
|
|
79
|
+
export default _default;
|
|
80
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
|
+
new (): {
|
|
82
|
+
$slots: S;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
render: FunctionConstructor;
|
|
3
|
+
item: ObjectConstructor;
|
|
4
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
5
|
+
render: FunctionConstructor;
|
|
6
|
+
item: ObjectConstructor;
|
|
7
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
render: FunctionConstructor;
|
|
3
|
+
item: ObjectConstructor;
|
|
4
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
5
|
+
render: FunctionConstructor;
|
|
6
|
+
item: ObjectConstructor;
|
|
7
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param childnode //子元素
|
|
4
|
+
* @param parentNode // 父元素
|
|
5
|
+
* @param extra // 额外高度
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function useRemainingHeight(parentNodeRef?: any, extra?: number, childnodeRef?: any): {
|
|
9
|
+
height: import('vue').Ref<number, number>;
|
|
10
|
+
};
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as EPSelect } from './select';
|
|
2
|
+
import { default as EPInput } from './input';
|
|
3
|
+
import { default as EPCheckbox } from './checkbox';
|
|
4
|
+
import { default as EPButton } from './button';
|
|
5
|
+
import { default as EPTable } from './table';
|
|
6
|
+
import { default as TForm } from './form';
|
|
7
|
+
import { default as EPDatePicker } from './date-picker';
|
|
8
|
+
import { default as EPRadio } from './radio';
|
|
9
|
+
|
|
10
|
+
export { EPTable, TForm, EPSelect, EPButton, EPDatePicker, EPRadio, EPCheckbox, EPInput };
|
|
11
|
+
declare const _default: {
|
|
12
|
+
install: any;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare const EPInput: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: import('vue').PropType<string | number>;
|
|
4
|
+
placeholder: {
|
|
5
|
+
type: import('vue').PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
width: {
|
|
9
|
+
type: import('vue').PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
inputType: {
|
|
13
|
+
type: import('vue').PropType<"text" | "integer">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (...args: any[]) => void;
|
|
20
|
+
}, import('vue').PublicProps, {
|
|
21
|
+
placeholder: string;
|
|
22
|
+
width: string;
|
|
23
|
+
inputType: "text" | "integer";
|
|
24
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
25
|
+
P: {};
|
|
26
|
+
B: {};
|
|
27
|
+
D: {};
|
|
28
|
+
C: {};
|
|
29
|
+
M: {};
|
|
30
|
+
Defaults: {};
|
|
31
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
32
|
+
modelValue: import('vue').PropType<string | number>;
|
|
33
|
+
placeholder: {
|
|
34
|
+
type: import('vue').PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
width: {
|
|
38
|
+
type: import('vue').PropType<string>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
inputType: {
|
|
42
|
+
type: import('vue').PropType<"text" | "integer">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, {
|
|
48
|
+
placeholder: string;
|
|
49
|
+
width: string;
|
|
50
|
+
inputType: "text" | "integer";
|
|
51
|
+
}>;
|
|
52
|
+
__isFragment?: undefined;
|
|
53
|
+
__isTeleport?: undefined;
|
|
54
|
+
__isSuspense?: undefined;
|
|
55
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
+
modelValue: import('vue').PropType<string | number>;
|
|
57
|
+
placeholder: {
|
|
58
|
+
type: import('vue').PropType<string>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
width: {
|
|
62
|
+
type: import('vue').PropType<string>;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
inputType: {
|
|
66
|
+
type: import('vue').PropType<"text" | "integer">;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{
|
|
70
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
|
+
"update:modelValue": (...args: any[]) => void;
|
|
73
|
+
}, string, {
|
|
74
|
+
placeholder: string;
|
|
75
|
+
width: string;
|
|
76
|
+
inputType: "text" | "integer";
|
|
77
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
78
|
+
$slots: {
|
|
79
|
+
append?(_: {}): any;
|
|
80
|
+
prepend?(_: {}): any;
|
|
81
|
+
};
|
|
82
|
+
}) & import('vue').Plugin<any[]>) & Record<string, any>;
|
|
83
|
+
export default EPInput;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: import('vue').PropType<string | number>;
|
|
3
|
+
placeholder: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
width: {
|
|
8
|
+
type: import('vue').PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
inputType: {
|
|
12
|
+
type: import('vue').PropType<"text" | "integer">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (...args: any[]) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
modelValue: import('vue').PropType<string | number>;
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: import('vue').PropType<string>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
width: {
|
|
24
|
+
type: import('vue').PropType<string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
inputType: {
|
|
28
|
+
type: import('vue').PropType<"text" | "integer">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
placeholder: string;
|
|
35
|
+
width: string;
|
|
36
|
+
inputType: "text" | "integer";
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
38
|
+
append?(_: {}): any;
|
|
39
|
+
prepend?(_: {}): any;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const EPRadio: ({
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
type: {
|
|
4
|
+
type: import('vue').PropType<"button" | "check">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
|
9
|
+
};
|
|
10
|
+
options: {
|
|
11
|
+
type: import('vue').PropType<[] | import('./src/radio').RadioItem[]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
optionsProps: {
|
|
15
|
+
type: import('vue').PropType<{
|
|
16
|
+
value?: string | undefined;
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
disabled?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
23
|
+
type: "button" | "check";
|
|
24
|
+
optionsProps: {
|
|
25
|
+
value?: string | undefined;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
disabled?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
30
|
+
P: {};
|
|
31
|
+
B: {};
|
|
32
|
+
D: {};
|
|
33
|
+
C: {};
|
|
34
|
+
M: {};
|
|
35
|
+
Defaults: {};
|
|
36
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
type: {
|
|
38
|
+
type: import('vue').PropType<"button" | "check">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
size: {
|
|
42
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
|
43
|
+
};
|
|
44
|
+
options: {
|
|
45
|
+
type: import('vue').PropType<[] | import('./src/radio').RadioItem[]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
optionsProps: {
|
|
49
|
+
type: import('vue').PropType<{
|
|
50
|
+
value?: string | undefined;
|
|
51
|
+
label?: string | undefined;
|
|
52
|
+
disabled?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
default: () => {};
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
57
|
+
type: "button" | "check";
|
|
58
|
+
optionsProps: {
|
|
59
|
+
value?: string | undefined;
|
|
60
|
+
label?: string | undefined;
|
|
61
|
+
disabled?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
}>;
|
|
64
|
+
__isFragment?: undefined;
|
|
65
|
+
__isTeleport?: undefined;
|
|
66
|
+
__isSuspense?: undefined;
|
|
67
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
68
|
+
type: {
|
|
69
|
+
type: import('vue').PropType<"button" | "check">;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
|
74
|
+
};
|
|
75
|
+
options: {
|
|
76
|
+
type: import('vue').PropType<[] | import('./src/radio').RadioItem[]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
optionsProps: {
|
|
80
|
+
type: import('vue').PropType<{
|
|
81
|
+
value?: string | undefined;
|
|
82
|
+
label?: string | undefined;
|
|
83
|
+
disabled?: string | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
default: () => {};
|
|
86
|
+
};
|
|
87
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
88
|
+
type: "button" | "check";
|
|
89
|
+
optionsProps: {
|
|
90
|
+
value?: string | undefined;
|
|
91
|
+
label?: string | undefined;
|
|
92
|
+
disabled?: string | undefined;
|
|
93
|
+
};
|
|
94
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
95
|
+
$slots: Partial<Record<string, (_: {
|
|
96
|
+
[x: string]: any;
|
|
97
|
+
value?: string | number | boolean | undefined;
|
|
98
|
+
label?: string | undefined;
|
|
99
|
+
slot?: string | undefined;
|
|
100
|
+
disabled?: boolean | undefined;
|
|
101
|
+
}) => any>> & {
|
|
102
|
+
default?(_: {}): any;
|
|
103
|
+
};
|
|
104
|
+
}) & import('vue').Plugin<any[]>) & Record<string, any>;
|
|
105
|
+
export default EPRadio;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OptionsProps, RadioItem } from './radio';
|
|
2
|
+
|
|
3
|
+
type Optional<T> = {
|
|
4
|
+
[k in keyof T]?: T[k];
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
type?: "check" | "button";
|
|
8
|
+
options: RadioItem[] | [];
|
|
9
|
+
size?: "large" | "default" | "small";
|
|
10
|
+
optionsProps?: Optional<OptionsProps>;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
type: string;
|
|
14
|
+
optionsProps: () => {};
|
|
15
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
16
|
+
type: string;
|
|
17
|
+
optionsProps: () => {};
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
type: "button" | "check";
|
|
20
|
+
optionsProps: Optional<OptionsProps>;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
value?: string | number | boolean | undefined;
|
|
24
|
+
label?: string | undefined;
|
|
25
|
+
slot?: string | undefined;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
}) => any>> & {
|
|
28
|
+
default?(_: {}): any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|