@blueking/ediatable 0.0.1-beta.28 → 0.0.1-beta.29
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/package.json +1 -1
- package/typings/components/checkbox-column.vue.d.ts +25 -0
- package/typings/components/date-time-picker-column.vue.d.ts +24 -41
- package/typings/components/db-icon/index.d.ts +4 -4
- package/typings/components/fixed-column.vue.d.ts +18 -26
- package/typings/components/head-column.vue.d.ts +23 -42
- package/typings/components/input-column.vue.d.ts +32 -54
- package/typings/components/operation-column.vue.d.ts +8 -35
- package/typings/components/select-column.vue.d.ts +30 -56
- package/typings/components/tag-input-column.vue.d.ts +31 -42
- package/typings/components/text-plain-column.vue.d.ts +38 -0
- package/typings/ediatable.vue.d.ts +34 -0
- package/typings/hooks/useIsWidthOverflow.d.ts +1 -1
- package/typings/hooks/useValidtor.d.ts +3 -3
- package/typings/vue2.d.ts +2 -1
- package/typings/vue3.d.ts +2 -1
- package/vue2/index.es.min.js +86 -22
- package/vue2/index.iife.min.js +2810 -2186
- package/vue2/index.umd.min.js +87 -23
- package/vue2/vue2.css +20 -0
- package/vue3/index.es.min.js +88 -24
- package/vue3/index.iife.min.js +88 -24
- package/vue3/index.umd.min.js +107 -23
- package/vue3/vue3.css +20 -0
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Rules } from '../hooks/useValidtor';
|
|
2
|
+
interface Props {
|
|
3
|
+
rules?: Rules;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare let __VLS_typeProps: Props;
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
} & typeof __VLS_typeProps;
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
11
|
+
getValue: () => Promise<boolean>;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (modelValue: boolean) => any;
|
|
14
|
+
} & {
|
|
15
|
+
error: (result: boolean) => any;
|
|
16
|
+
submit: (value: boolean) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
onError?: ((result: boolean) => any) | undefined;
|
|
19
|
+
onSubmit?: ((value: boolean) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
rules: Rules;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -14,58 +14,41 @@ declare let __VLS_typeProps: Props;
|
|
|
14
14
|
type __VLS_PublicProps = {
|
|
15
15
|
modelValue?: ValueType;
|
|
16
16
|
} & typeof __VLS_typeProps;
|
|
17
|
-
declare
|
|
18
|
-
declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
declare var __VLS_inheritedAttrs: {};
|
|
18
|
+
declare const __VLS_refs: {};
|
|
19
|
+
declare const __VLS_templateResult: {
|
|
20
|
+
slots: Readonly<Slots> & Slots;
|
|
21
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
22
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
25
26
|
getValue: () => Promise<ValueType>;
|
|
26
|
-
},
|
|
27
|
-
"update:modelValue": (modelValue: ValueType) =>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
rules: undefined;
|
|
33
|
-
type: undefined;
|
|
34
|
-
disabled: boolean;
|
|
35
|
-
clearable: boolean;
|
|
36
|
-
}>>> & {
|
|
27
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (modelValue: ValueType) => any;
|
|
29
|
+
} & {
|
|
30
|
+
change: (value: any) => any;
|
|
31
|
+
error: (result: boolean) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
37
33
|
onChange?: ((value: any) => any) | undefined;
|
|
38
34
|
onError?: ((result: boolean) => any) | undefined;
|
|
39
35
|
"onUpdate:modelValue"?: ((modelValue: ValueType) => any) | undefined;
|
|
40
|
-
}
|
|
36
|
+
}>, {
|
|
41
37
|
type: any;
|
|
42
38
|
placeholder: string;
|
|
43
|
-
rules: Rules;
|
|
44
39
|
disabled: boolean;
|
|
40
|
+
rules: Rules;
|
|
45
41
|
clearable: boolean;
|
|
46
|
-
}, {}>;
|
|
47
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
48
44
|
export default _default;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
type __VLS_Prettify<T> = {
|
|
56
|
-
[K in keyof T]: T[K];
|
|
57
|
-
} & {};
|
|
45
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
46
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
47
|
+
expose?: (exposed: infer E) => void;
|
|
48
|
+
} ? E : T[K]) | null;
|
|
49
|
+
} : never;
|
|
58
50
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
51
|
new (): {
|
|
60
52
|
$slots: S;
|
|
61
53
|
};
|
|
62
54
|
};
|
|
63
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
64
|
-
type __VLS_TypePropsToOption<T> = {
|
|
65
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
66
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
67
|
-
} : {
|
|
68
|
-
type: import('vue').PropType<T[K]>;
|
|
69
|
-
required: true;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
type: {
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
required: true;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
type: BooleanConstructor;
|
|
9
9
|
default: boolean;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
type: {
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
required: true;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
-
}
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
21
|
svg: boolean;
|
|
22
|
-
}, {}>;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
23
|
export default _default;
|
|
@@ -1,37 +1,29 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
fixed?: 'left' | 'right';
|
|
3
3
|
}
|
|
4
|
-
declare
|
|
5
|
-
|
|
4
|
+
declare var __VLS_0: {};
|
|
5
|
+
declare var __VLS_inheritedAttrs: {};
|
|
6
|
+
declare const __VLS_refs: {};
|
|
7
|
+
declare const __VLS_templateResult: {
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: typeof __VLS_0): any;
|
|
10
|
+
};
|
|
11
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
12
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
6
13
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
10
|
-
fixed: string;
|
|
11
|
-
}>>>, {
|
|
14
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
16
|
fixed: "left" | "right";
|
|
13
|
-
}, {}>;
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
19
|
export default _default;
|
|
16
|
-
type
|
|
17
|
-
[K in keyof
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
type __VLS_Prettify<T> = {
|
|
22
|
-
[K in keyof T]: T[K];
|
|
23
|
-
} & {};
|
|
20
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
21
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
22
|
+
expose?: (exposed: infer E) => void;
|
|
23
|
+
} ? E : T[K]) | null;
|
|
24
|
+
} : never;
|
|
24
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
26
|
new (): {
|
|
26
27
|
$slots: S;
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
-
type __VLS_TypePropsToOption<T> = {
|
|
31
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
-
} : {
|
|
34
|
-
type: import('vue').PropType<T[K]>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -8,30 +8,23 @@ export interface Props {
|
|
|
8
8
|
renderAppend?: () => JSX.Element;
|
|
9
9
|
memo?: string;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}> & {
|
|
15
|
-
default: any;
|
|
16
|
-
append: any;
|
|
11
|
+
declare var __VLS_inheritedAttrs: {};
|
|
12
|
+
declare const __VLS_refs: {
|
|
13
|
+
columnRef: import("vue").ThHTMLAttributes & import("vue").ReservedProps;
|
|
17
14
|
};
|
|
18
|
-
declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
fixed: undefined;
|
|
32
|
-
renderAppend: undefined;
|
|
33
|
-
memo: string;
|
|
34
|
-
}>>>, {
|
|
15
|
+
declare const __VLS_templateResult: {
|
|
16
|
+
slots: Readonly<{
|
|
17
|
+
default: any;
|
|
18
|
+
append: any;
|
|
19
|
+
}> & {
|
|
20
|
+
default: any;
|
|
21
|
+
append: any;
|
|
22
|
+
};
|
|
23
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
24
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
35
28
|
minWidth: number;
|
|
36
29
|
width: number;
|
|
37
30
|
maxWidth: number;
|
|
@@ -39,28 +32,16 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
39
32
|
required: boolean;
|
|
40
33
|
renderAppend: () => JSX.Element;
|
|
41
34
|
memo: string;
|
|
42
|
-
}, {}>;
|
|
43
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
44
37
|
export default _default;
|
|
45
|
-
type
|
|
46
|
-
[K in keyof
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
type __VLS_Prettify<T> = {
|
|
51
|
-
[K in keyof T]: T[K];
|
|
52
|
-
} & {};
|
|
38
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
39
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
40
|
+
expose?: (exposed: infer E) => void;
|
|
41
|
+
} ? E : T[K]) | null;
|
|
42
|
+
} : never;
|
|
53
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
44
|
new (): {
|
|
55
45
|
$slots: S;
|
|
56
46
|
};
|
|
57
47
|
};
|
|
58
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
-
type __VLS_TypePropsToOption<T> = {
|
|
60
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
-
} : {
|
|
63
|
-
type: import('vue').PropType<T[K]>;
|
|
64
|
-
required: true;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
@@ -15,76 +15,54 @@ declare let __VLS_typeProps: Props;
|
|
|
15
15
|
type __VLS_PublicProps = {
|
|
16
16
|
modelValue?: number | string;
|
|
17
17
|
} & typeof __VLS_typeProps;
|
|
18
|
-
declare
|
|
19
|
-
|
|
18
|
+
declare var __VLS_inheritedAttrs: {};
|
|
19
|
+
declare const __VLS_refs: {
|
|
20
|
+
rootRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
20
21
|
};
|
|
21
|
-
declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
clearable: boolean;
|
|
31
|
-
}>, {
|
|
22
|
+
declare const __VLS_templateResult: {
|
|
23
|
+
slots: {
|
|
24
|
+
blur?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
27
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
30
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
32
31
|
getValue: () => Promise<number | string>;
|
|
33
32
|
focus: () => void;
|
|
34
|
-
},
|
|
35
|
-
"update:modelValue": (modelValue: string | number) =>
|
|
36
|
-
|
|
37
|
-
error: (result: boolean) =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
type: string;
|
|
45
|
-
min: number;
|
|
46
|
-
max: number;
|
|
47
|
-
isShowBlur: boolean;
|
|
48
|
-
precision: number;
|
|
49
|
-
clearable: boolean;
|
|
50
|
-
}>>> & {
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (modelValue: string | number) => any;
|
|
35
|
+
} & {
|
|
36
|
+
error: (result: boolean) => any;
|
|
37
|
+
focus: () => any;
|
|
38
|
+
submit: (value: string | number) => any;
|
|
39
|
+
clear: () => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
41
|
+
onError?: ((result: boolean) => any) | undefined;
|
|
51
42
|
onFocus?: (() => any) | undefined;
|
|
52
43
|
onSubmit?: ((value: string | number) => any) | undefined;
|
|
53
|
-
onError?: ((result: boolean) => any) | undefined;
|
|
54
|
-
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
55
44
|
onClear?: (() => any) | undefined;
|
|
56
|
-
|
|
45
|
+
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
46
|
+
}>, {
|
|
57
47
|
type: string;
|
|
58
48
|
placeholder: string;
|
|
59
|
-
rules: Rules;
|
|
60
49
|
disabled: boolean;
|
|
50
|
+
max: number;
|
|
51
|
+
rules: Rules;
|
|
61
52
|
clearable: boolean;
|
|
62
53
|
min: number;
|
|
63
|
-
max: number;
|
|
64
54
|
isShowBlur: boolean;
|
|
65
55
|
precision: number;
|
|
66
|
-
}, {}>;
|
|
67
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
68
58
|
export default _default;
|
|
69
|
-
type
|
|
70
|
-
[K in keyof
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
type __VLS_Prettify<T> = {
|
|
75
|
-
[K in keyof T]: T[K];
|
|
76
|
-
} & {};
|
|
59
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
60
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
61
|
+
expose?: (exposed: infer E) => void;
|
|
62
|
+
} ? E : T[K]) | null;
|
|
63
|
+
} : never;
|
|
77
64
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
65
|
new (): {
|
|
79
66
|
$slots: S;
|
|
80
67
|
};
|
|
81
68
|
};
|
|
82
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
83
|
-
type __VLS_TypePropsToOption<T> = {
|
|
84
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
85
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
86
|
-
} : {
|
|
87
|
-
type: import('vue').PropType<T[K]>;
|
|
88
|
-
required: true;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
@@ -4,45 +4,18 @@ interface Props {
|
|
|
4
4
|
showAdd?: boolean;
|
|
5
5
|
showRemove?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
add: () => void;
|
|
14
|
-
copy: () => void;
|
|
15
|
-
remove: () => void;
|
|
16
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
17
|
-
removeable: boolean;
|
|
18
|
-
showCopy: boolean;
|
|
19
|
-
showAdd: boolean;
|
|
20
|
-
showRemove: boolean;
|
|
21
|
-
}>>> & {
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
copy: () => any;
|
|
9
|
+
remove: () => any;
|
|
10
|
+
add: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
22
12
|
onCopy?: (() => any) | undefined;
|
|
23
|
-
onAdd?: (() => any) | undefined;
|
|
24
13
|
onRemove?: (() => any) | undefined;
|
|
25
|
-
|
|
14
|
+
onAdd?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
26
16
|
removeable: boolean;
|
|
27
17
|
showCopy: boolean;
|
|
28
18
|
showAdd: boolean;
|
|
29
19
|
showRemove: boolean;
|
|
30
|
-
}, {}>;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
21
|
export default _default;
|
|
32
|
-
type __VLS_WithDefaults<P, D> = {
|
|
33
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
-
default: D[K];
|
|
35
|
-
}> : P[K];
|
|
36
|
-
};
|
|
37
|
-
type __VLS_Prettify<T> = {
|
|
38
|
-
[K in keyof T]: T[K];
|
|
39
|
-
} & {};
|
|
40
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
-
type __VLS_TypePropsToOption<T> = {
|
|
42
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
-
} : {
|
|
45
|
-
type: import('vue').PropType<T[K]>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Rules } from '../hooks/useValidtor';
|
|
2
|
-
type IKey = number | string | string[]
|
|
2
|
+
type IKey = boolean | number | string | string[];
|
|
3
3
|
export interface IListItem {
|
|
4
4
|
value: IKey;
|
|
5
5
|
label: string;
|
|
@@ -22,49 +22,35 @@ declare let __VLS_typeProps: Props;
|
|
|
22
22
|
type __VLS_PublicProps = {
|
|
23
23
|
modelValue?: IKey;
|
|
24
24
|
} & typeof __VLS_typeProps;
|
|
25
|
-
declare
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
optionRender: any;
|
|
25
|
+
declare var __VLS_inheritedAttrs: {};
|
|
26
|
+
declare const __VLS_refs: {
|
|
27
|
+
rootRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
29
28
|
};
|
|
30
|
-
declare const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
idKey: string;
|
|
42
|
-
}>, {
|
|
29
|
+
declare const __VLS_templateResult: {
|
|
30
|
+
slots: Readonly<{
|
|
31
|
+
optionRender: any;
|
|
32
|
+
}> & {
|
|
33
|
+
optionRender: any;
|
|
34
|
+
};
|
|
35
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
36
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
39
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
43
40
|
getValue: () => Promise<IKey>;
|
|
44
|
-
},
|
|
45
|
-
"update:modelValue": (modelValue: IKey) =>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
placeholder: string;
|
|
51
|
-
textarea: boolean;
|
|
52
|
-
rules: () => never[];
|
|
53
|
-
disabled: boolean;
|
|
54
|
-
multiple: boolean;
|
|
55
|
-
showSelectAll: boolean;
|
|
56
|
-
clearable: boolean;
|
|
57
|
-
multipleMode: undefined;
|
|
58
|
-
displayKey: string;
|
|
59
|
-
idKey: string;
|
|
60
|
-
}>>> & {
|
|
41
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
"update:modelValue": (modelValue: IKey) => any;
|
|
43
|
+
} & {
|
|
44
|
+
change: (value: IKey) => any;
|
|
45
|
+
error: (result: boolean) => any;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
61
47
|
onChange?: ((value: IKey) => any) | undefined;
|
|
62
48
|
onError?: ((result: boolean) => any) | undefined;
|
|
63
49
|
"onUpdate:modelValue"?: ((modelValue: IKey) => any) | undefined;
|
|
64
|
-
}
|
|
50
|
+
}>, {
|
|
65
51
|
placeholder: string;
|
|
66
|
-
rules: Rules;
|
|
67
52
|
disabled: boolean;
|
|
53
|
+
rules: Rules;
|
|
68
54
|
clearable: boolean;
|
|
69
55
|
multiple: boolean;
|
|
70
56
|
showSelectAll: boolean;
|
|
@@ -72,28 +58,16 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
72
58
|
list: Array<IListItem>;
|
|
73
59
|
idKey: string;
|
|
74
60
|
displayKey: string;
|
|
75
|
-
}, {}>;
|
|
76
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
77
63
|
export default _default;
|
|
78
|
-
type
|
|
79
|
-
[K in keyof
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
type __VLS_Prettify<T> = {
|
|
84
|
-
[K in keyof T]: T[K];
|
|
85
|
-
} & {};
|
|
64
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
65
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
66
|
+
expose?: (exposed: infer E) => void;
|
|
67
|
+
} ? E : T[K]) | null;
|
|
68
|
+
} : never;
|
|
86
69
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
87
70
|
new (): {
|
|
88
71
|
$slots: S;
|
|
89
72
|
};
|
|
90
73
|
};
|
|
91
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
92
|
-
type __VLS_TypePropsToOption<T> = {
|
|
93
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
94
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
95
|
-
} : {
|
|
96
|
-
type: import('vue').PropType<T[K]>;
|
|
97
|
-
required: true;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
@@ -9,60 +9,49 @@ declare let __VLS_typeProps: Props;
|
|
|
9
9
|
type __VLS_PublicProps = {
|
|
10
10
|
modelValue?: string[];
|
|
11
11
|
} & typeof __VLS_typeProps;
|
|
12
|
-
declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
default: any;
|
|
17
|
-
tip: any;
|
|
12
|
+
declare var __VLS_inheritedAttrs: {};
|
|
13
|
+
declare const __VLS_refs: {
|
|
14
|
+
rootRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
15
|
+
popRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
18
16
|
};
|
|
19
|
-
declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
declare const __VLS_templateResult: {
|
|
18
|
+
slots: Readonly<{
|
|
19
|
+
default: any;
|
|
20
|
+
tip: any;
|
|
21
|
+
}> & {
|
|
22
|
+
default: any;
|
|
23
|
+
tip: any;
|
|
24
|
+
};
|
|
25
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
26
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
29
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
25
30
|
getValue: () => Promise<string[] | undefined>;
|
|
26
|
-
},
|
|
27
|
-
"update:modelValue": (modelValue: string[]) =>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
single: boolean;
|
|
33
|
-
rules: undefined;
|
|
34
|
-
clearable: boolean;
|
|
35
|
-
}>>> & {
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
"update:modelValue": (modelValue: string[]) => any;
|
|
33
|
+
} & {
|
|
34
|
+
change: (value: string[]) => any;
|
|
35
|
+
error: (result: boolean) => any;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
37
|
onChange?: ((value: string[]) => any) | undefined;
|
|
37
38
|
onError?: ((result: boolean) => any) | undefined;
|
|
38
39
|
"onUpdate:modelValue"?: ((modelValue: string[]) => any) | undefined;
|
|
39
|
-
}
|
|
40
|
+
}>, {
|
|
40
41
|
placeholder: string;
|
|
41
42
|
rules: Rules;
|
|
42
43
|
clearable: boolean;
|
|
43
44
|
single: boolean;
|
|
44
|
-
}, {}>;
|
|
45
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
47
|
export default _default;
|
|
47
|
-
type
|
|
48
|
-
[K in keyof
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
type __VLS_Prettify<T> = {
|
|
53
|
-
[K in keyof T]: T[K];
|
|
54
|
-
} & {};
|
|
48
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
49
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
50
|
+
expose?: (exposed: infer E) => void;
|
|
51
|
+
} ? E : T[K]) | null;
|
|
52
|
+
} : never;
|
|
55
53
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
54
|
new (): {
|
|
57
55
|
$slots: S;
|
|
58
56
|
};
|
|
59
57
|
};
|
|
60
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|