@blueking/ediatable 0.0.1-beta.3 → 0.0.1-beta.30
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 +600 -0
- package/package.json +11 -2
- package/typings/components/checkbox-column.vue.d.ts +27 -0
- package/typings/components/date-time-picker-column.vue.d.ts +54 -0
- package/typings/components/db-icon/index.d.ts +4 -4
- package/typings/components/fixed-column.vue.d.ts +21 -27
- package/typings/components/head-column.vue.d.ts +36 -41
- package/typings/components/input-column.vue.d.ts +68 -0
- package/typings/components/operation-column.vue.d.ts +21 -0
- package/typings/components/select-column.vue.d.ts +73 -0
- package/typings/components/tag-input-column.vue.d.ts +57 -0
- package/typings/components/text-plain-column.vue.d.ts +38 -0
- package/typings/ediatable.vue.d.ts +18 -4
- package/typings/hooks/useIsWidthOverflow.d.ts +1 -1
- package/typings/hooks/useValidtor.d.ts +3 -3
- package/typings/vue2.d.ts +15 -7
- package/typings/vue3.d.ts +9 -7
- package/vue2/index.es.min.js +3682 -10672
- package/vue2/index.iife.min.js +6288 -16056
- package/vue2/index.umd.min.js +3684 -14000
- package/vue2/vue2.css +227 -206
- package/vue3/index.es.min.js +1546 -1205
- package/vue3/index.iife.min.js +3672 -14002
- package/vue3/index.umd.min.js +3310 -2872
- package/vue3/vue3.css +176 -80
- package/typings/components/date-time-picker.vue.d.ts +0 -63
- package/typings/components/input.vue.d.ts +0 -73
- package/typings/components/operation.vue.d.ts +0 -42
- package/typings/components/select.vue.d.ts +0 -65
- package/typings/components/tag-input.vue.d.ts +0 -60
|
@@ -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,35 +1,29 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
fixed?: '
|
|
2
|
+
fixed?: 'left' | 'right';
|
|
3
3
|
}
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_WithDefaults<P, D> = {
|
|
15
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
16
|
-
default: D[K];
|
|
17
|
-
}> : P[K];
|
|
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>;
|
|
18
13
|
};
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
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<{}>, {
|
|
16
|
+
fixed: "left" | "right";
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
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;
|
|
22
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
26
|
new (): {
|
|
24
27
|
$slots: S;
|
|
25
28
|
};
|
|
26
29
|
};
|
|
27
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
-
type __VLS_TypePropsToOption<T> = {
|
|
29
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
-
} : {
|
|
32
|
-
type: import('vue').PropType<T[K]>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,52 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
minWidth?: number;
|
|
1
|
+
import { JSX } from 'vue/jsx-runtime';
|
|
2
|
+
export interface Props {
|
|
3
|
+
fixed?: 'left' | 'right';
|
|
5
4
|
maxWidth?: number;
|
|
6
|
-
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
width?: number;
|
|
8
|
+
renderAppend?: () => JSX.Element;
|
|
9
|
+
memo?: string;
|
|
7
10
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
declare var __VLS_inheritedAttrs: {};
|
|
12
|
+
declare const __VLS_refs: {
|
|
13
|
+
columnRef: import("vue").ThHTMLAttributes & import("vue").ReservedProps;
|
|
14
|
+
};
|
|
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<{}>, {
|
|
21
28
|
minWidth: number;
|
|
22
29
|
width: number;
|
|
23
|
-
required: boolean;
|
|
24
|
-
fixed: "right" | "left";
|
|
25
30
|
maxWidth: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
fixed: "left" | "right";
|
|
32
|
+
required: boolean;
|
|
33
|
+
renderAppend: () => JSX.Element;
|
|
34
|
+
memo: string;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
37
|
export default _default;
|
|
31
|
-
type
|
|
32
|
-
[K in keyof
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
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;
|
|
39
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
44
|
new (): {
|
|
41
45
|
$slots: S;
|
|
42
46
|
};
|
|
43
47
|
};
|
|
44
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
-
type __VLS_TypePropsToOption<T> = {
|
|
46
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
-
} : {
|
|
49
|
-
type: import('vue').PropType<T[K]>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type Rules } from '../hooks/useValidtor';
|
|
2
|
+
interface Props {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
rules?: Rules;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
type?: string;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
isShowBlur?: boolean;
|
|
10
|
+
precision?: number;
|
|
11
|
+
maxlength?: number;
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare let __VLS_typeProps: Props;
|
|
15
|
+
type __VLS_PublicProps = {
|
|
16
|
+
modelValue?: number | string;
|
|
17
|
+
} & typeof __VLS_typeProps;
|
|
18
|
+
declare var __VLS_inheritedAttrs: {};
|
|
19
|
+
declare const __VLS_refs: {
|
|
20
|
+
rootRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
21
|
+
};
|
|
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, {
|
|
31
|
+
getValue: () => Promise<number | string>;
|
|
32
|
+
focus: () => void;
|
|
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;
|
|
42
|
+
onFocus?: (() => any) | undefined;
|
|
43
|
+
onSubmit?: ((value: string | number) => any) | undefined;
|
|
44
|
+
onClear?: (() => any) | undefined;
|
|
45
|
+
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
type: string;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
max: number;
|
|
51
|
+
rules: Rules;
|
|
52
|
+
clearable: boolean;
|
|
53
|
+
min: number;
|
|
54
|
+
isShowBlur: boolean;
|
|
55
|
+
precision: number;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
58
|
+
export default _default;
|
|
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;
|
|
64
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
removeable?: boolean;
|
|
3
|
+
showCopy?: boolean;
|
|
4
|
+
showAdd?: boolean;
|
|
5
|
+
showRemove?: boolean;
|
|
6
|
+
}
|
|
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<{
|
|
12
|
+
onCopy?: (() => any) | undefined;
|
|
13
|
+
onRemove?: (() => any) | undefined;
|
|
14
|
+
onAdd?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
removeable: boolean;
|
|
17
|
+
showCopy: boolean;
|
|
18
|
+
showAdd: boolean;
|
|
19
|
+
showRemove: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type Rules } from '../hooks/useValidtor';
|
|
2
|
+
type IKey = boolean | number | string | string[];
|
|
3
|
+
export interface IListItem {
|
|
4
|
+
value: IKey;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
list?: Array<IListItem>;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
rules?: Rules;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
multipleMode?: string;
|
|
16
|
+
showSelectAll?: boolean;
|
|
17
|
+
clearable?: boolean;
|
|
18
|
+
displayKey?: string;
|
|
19
|
+
idKey?: string;
|
|
20
|
+
}
|
|
21
|
+
declare let __VLS_typeProps: Props;
|
|
22
|
+
type __VLS_PublicProps = {
|
|
23
|
+
modelValue?: IKey;
|
|
24
|
+
} & typeof __VLS_typeProps;
|
|
25
|
+
declare var __VLS_inheritedAttrs: {};
|
|
26
|
+
declare const __VLS_refs: {
|
|
27
|
+
rootRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
28
|
+
};
|
|
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, {
|
|
40
|
+
getValue: () => Promise<IKey>;
|
|
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<{
|
|
47
|
+
onChange?: ((value: IKey) => any) | undefined;
|
|
48
|
+
onError?: ((result: boolean) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((modelValue: IKey) => any) | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
placeholder: string;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
rules: Rules;
|
|
54
|
+
clearable: boolean;
|
|
55
|
+
multiple: boolean;
|
|
56
|
+
showSelectAll: boolean;
|
|
57
|
+
multipleMode: string;
|
|
58
|
+
list: Array<IListItem>;
|
|
59
|
+
idKey: string;
|
|
60
|
+
displayKey: string;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
63
|
+
export default _default;
|
|
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;
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type Rules } from '../hooks/useValidtor';
|
|
2
|
+
interface Props {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
single?: boolean;
|
|
5
|
+
rules?: Rules;
|
|
6
|
+
clearable?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare let __VLS_typeProps: Props;
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
modelValue?: string[];
|
|
11
|
+
} & typeof __VLS_typeProps;
|
|
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;
|
|
16
|
+
};
|
|
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, {
|
|
30
|
+
getValue: () => Promise<string[] | undefined>;
|
|
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<{
|
|
37
|
+
onChange?: ((value: string[]) => any) | undefined;
|
|
38
|
+
onError?: ((result: boolean) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((modelValue: string[]) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
placeholder: string;
|
|
42
|
+
rules: Rules;
|
|
43
|
+
clearable: boolean;
|
|
44
|
+
single: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
47
|
+
export default _default;
|
|
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;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type Rules } from '../hooks/useValidtor';
|
|
2
|
+
export interface Props {
|
|
3
|
+
data?: string | number;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
rules?: Rules;
|
|
7
|
+
}
|
|
8
|
+
export interface Exposes {
|
|
9
|
+
getValue: () => Promise<string | number>;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_12: {};
|
|
12
|
+
declare var __VLS_inheritedAttrs: {};
|
|
13
|
+
declare const __VLS_refs: {
|
|
14
|
+
textRef: import("vue").HTMLAttributes & import("vue").ReservedProps;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_templateResult: {
|
|
17
|
+
slots: {
|
|
18
|
+
default?(_: typeof __VLS_12): any;
|
|
19
|
+
};
|
|
20
|
+
refs: __VLS_PickRefsExpose<typeof __VLS_refs>;
|
|
21
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = typeof __VLS_templateResult['slots'];
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
25
|
+
getValue: () => Promise<string | number>;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_PickRefsExpose<T> = T extends object ? {
|
|
30
|
+
[K in keyof T]: (T[K] extends any[] ? Parameters<T[K][0]['expose']>[0][] : T[K] extends {
|
|
31
|
+
expose?: (exposed: infer E) => void;
|
|
32
|
+
} ? E : T[K]) | null;
|
|
33
|
+
} : never;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
import './lib/bk-icon/iconcool.js';
|
|
2
2
|
import './lib/bk-icon/style.css';
|
|
3
|
-
import '
|
|
3
|
+
import { type Props as HeadColumnProps } from './components/head-column.vue';
|
|
4
4
|
import 'tippy.js/dist/tippy.css';
|
|
5
5
|
import 'tippy.js/themes/light.css';
|
|
6
|
+
export interface Props {
|
|
7
|
+
theadList?: IHead[];
|
|
8
|
+
}
|
|
6
9
|
import type { InjectionKey, Ref } from 'vue';
|
|
10
|
+
export type IHead = HeadColumnProps & {
|
|
11
|
+
title?: string;
|
|
12
|
+
memo?: string;
|
|
13
|
+
};
|
|
7
14
|
export declare const renderTablekey: InjectionKey<{
|
|
8
15
|
isOverflow: Ref<boolean>;
|
|
9
16
|
rowWidth: Ref<number>;
|
|
17
|
+
isScrollToLeft: Ref<boolean>;
|
|
18
|
+
isScrollToRight: Ref<boolean>;
|
|
10
19
|
}>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
|
+
theadList: IHead[];
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
23
|
+
default: any;
|
|
24
|
+
data: any;
|
|
25
|
+
}> & {
|
|
26
|
+
default: any;
|
|
27
|
+
data: any;
|
|
14
28
|
}>;
|
|
15
29
|
export default _default;
|
|
16
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,7 +4,7 @@ export type Rules = Array<{
|
|
|
4
4
|
}>;
|
|
5
5
|
export default function (rules: Rules | undefined): {
|
|
6
6
|
validator: (targetValue: any) => Promise<boolean>;
|
|
7
|
-
loading: import("vue").Ref<boolean>;
|
|
8
|
-
error: import("vue").Ref<boolean>;
|
|
9
|
-
message: import("vue").Ref<string>;
|
|
7
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
error: import("vue").Ref<boolean, boolean>;
|
|
9
|
+
message: import("vue").Ref<string, string>;
|
|
10
10
|
};
|
package/typings/vue2.d.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import DateTimePickerColumn from './components/date-time-picker.vue';
|
|
2
|
-
import InputColumn from './components/input.vue';
|
|
1
|
+
import DateTimePickerColumn from './components/date-time-picker-column.vue';
|
|
2
|
+
import InputColumn from './components/input-column.vue';
|
|
3
3
|
import FixedColumn from './components/fixed-column.vue';
|
|
4
4
|
import HeadColumn from './components/head-column.vue';
|
|
5
|
-
import OperationColumn from './components/operation.vue';
|
|
6
|
-
import SelectColumn from './components/select.vue';
|
|
7
|
-
import TagInputColumn from './components/tag-input.vue';
|
|
8
|
-
import TextPlainColumn from './components/text-plain.vue';
|
|
5
|
+
import OperationColumn from './components/operation-column.vue';
|
|
6
|
+
import SelectColumn from './components/select-column.vue';
|
|
7
|
+
import TagInputColumn from './components/tag-input-column.vue';
|
|
8
|
+
import TextPlainColumn from './components/text-plain-column.vue';
|
|
9
|
+
import CheckboxColumn from './components/checkbox-column.vue';
|
|
10
|
+
export { type IHead } from './ediatable.vue';
|
|
9
11
|
export * from './hooks/useValidtor';
|
|
10
|
-
export { DateTimePickerColumn, InputColumn, FixedColumn, HeadColumn, OperationColumn, SelectColumn, TagInputColumn, TextPlainColumn, };
|
|
12
|
+
export { DateTimePickerColumn, InputColumn, FixedColumn, HeadColumn, OperationColumn, SelectColumn, TagInputColumn, TextPlainColumn, CheckboxColumn, };
|
|
11
13
|
declare const _default: {
|
|
12
14
|
name: string;
|
|
15
|
+
props: {
|
|
16
|
+
theadList: {
|
|
17
|
+
type: ArrayConstructor;
|
|
18
|
+
default: never[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
13
21
|
created(): void;
|
|
14
22
|
mounted(): void;
|
|
15
23
|
beforeDestroy(): void;
|
package/typings/vue3.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import Ediatable from './ediatable.vue';
|
|
2
|
-
import DateTimePickerColumn from './components/date-time-picker.vue';
|
|
3
|
-
import InputColumn from './components/input.vue';
|
|
2
|
+
import DateTimePickerColumn from './components/date-time-picker-column.vue';
|
|
3
|
+
import InputColumn from './components/input-column.vue';
|
|
4
4
|
import FixedColumn from './components/fixed-column.vue';
|
|
5
5
|
import HeadColumn from './components/head-column.vue';
|
|
6
|
-
import OperationColumn from './components/operation.vue';
|
|
7
|
-
import SelectColumn from './components/select.vue';
|
|
8
|
-
import TagInputColumn from './components/tag-input.vue';
|
|
9
|
-
import TextPlainColumn from './components/text-plain.vue';
|
|
6
|
+
import OperationColumn from './components/operation-column.vue';
|
|
7
|
+
import SelectColumn from './components/select-column.vue';
|
|
8
|
+
import TagInputColumn from './components/tag-input-column.vue';
|
|
9
|
+
import TextPlainColumn from './components/text-plain-column.vue';
|
|
10
|
+
import CheckboxColumn from './components/checkbox-column.vue';
|
|
11
|
+
export { type IHead } from './ediatable.vue';
|
|
10
12
|
export * from './hooks/useValidtor';
|
|
11
|
-
export { Ediatable, DateTimePickerColumn, InputColumn, FixedColumn, HeadColumn, OperationColumn, SelectColumn, TagInputColumn, TextPlainColumn, };
|
|
13
|
+
export { Ediatable, DateTimePickerColumn, InputColumn, FixedColumn, HeadColumn, OperationColumn, SelectColumn, TagInputColumn, TextPlainColumn, CheckboxColumn, };
|
|
12
14
|
export default Ediatable;
|