@tmagic/table 1.2.0-beta.25 → 1.2.0-beta.26
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 +6 -6
- package/types/ActionsColumn.vue.d.ts +13 -91
- package/types/ExpandColumn.vue.d.ts +7 -61
- package/types/PopoverColumn.vue.d.ts +7 -61
- package/types/Table.vue.d.ts +34 -176
- package/types/TextColumn.vue.d.ts +9 -69
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.0-beta.
|
|
2
|
+
"version": "1.2.0-beta.26",
|
|
3
3
|
"name": "@tmagic/table",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tmagic/design": "1.2.0-beta.
|
|
37
|
-
"@tmagic/form": "1.2.0-beta.
|
|
38
|
-
"@tmagic/utils": "1.2.0-beta.
|
|
36
|
+
"@tmagic/design": "1.2.0-beta.26",
|
|
37
|
+
"@tmagic/form": "1.2.0-beta.26",
|
|
38
|
+
"@tmagic/utils": "1.2.0-beta.26",
|
|
39
39
|
"lodash-es": "^4.17.21",
|
|
40
40
|
"vue": "^3.2.37"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@tmagic/form": "1.2.0-beta.
|
|
43
|
+
"@tmagic/form": "1.2.0-beta.26",
|
|
44
44
|
"vue": "^3.2.37"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"typescript": "^4.7.4",
|
|
56
56
|
"vite": "^3.1.3",
|
|
57
57
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
58
|
-
"vue-tsc": "^1.0.
|
|
58
|
+
"vue-tsc": "^1.0.11"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,93 +1,15 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
config: ColumnConfig;
|
|
14
|
-
rowkeyName?: string | undefined;
|
|
15
|
-
editState?: any;
|
|
16
|
-
}>, {
|
|
17
|
-
columns: () => never[];
|
|
18
|
-
config: () => {};
|
|
19
|
-
rowkeyName: string;
|
|
20
|
-
editState: () => never[];
|
|
21
|
-
}>>> & {
|
|
22
|
-
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "columns" | "config" | "rowkeyName" | "editState">;
|
|
24
|
-
$attrs: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
};
|
|
27
|
-
$refs: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
$slots: Readonly<{
|
|
31
|
-
[name: string]: import("vue").Slot | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
34
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
35
|
-
$emit: (event: "after-action", ...args: any[]) => void;
|
|
36
|
-
$el: any;
|
|
37
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
38
|
-
columns: any[];
|
|
39
|
-
config: ColumnConfig;
|
|
40
|
-
rowkeyName?: string | undefined;
|
|
41
|
-
editState?: any;
|
|
42
|
-
}>, {
|
|
43
|
-
columns: () => never[];
|
|
44
|
-
config: () => {};
|
|
45
|
-
rowkeyName: string;
|
|
46
|
-
editState: () => never[];
|
|
47
|
-
}>>> & {
|
|
48
|
-
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-action"[], string, {
|
|
50
|
-
columns: any[];
|
|
51
|
-
config: ColumnConfig;
|
|
52
|
-
rowkeyName: string;
|
|
53
|
-
editState: any;
|
|
54
|
-
}> & {
|
|
55
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
68
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
69
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
70
|
-
};
|
|
71
|
-
$forceUpdate: () => void;
|
|
72
|
-
$nextTick: typeof import("vue").nextTick;
|
|
73
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
74
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
75
|
-
columns: any[];
|
|
76
|
-
config: ColumnConfig;
|
|
77
|
-
rowkeyName?: string | undefined;
|
|
78
|
-
editState?: any;
|
|
79
|
-
}>, {
|
|
80
|
-
columns: () => never[];
|
|
81
|
-
config: () => {};
|
|
82
|
-
rowkeyName: string;
|
|
83
|
-
editState: () => never[];
|
|
84
|
-
}>>> & {
|
|
85
|
-
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
86
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
87
|
-
__isFragment?: undefined;
|
|
88
|
-
__isTeleport?: undefined;
|
|
89
|
-
__isSuspense?: undefined;
|
|
90
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
columns: any[];
|
|
4
|
+
config: ColumnConfig;
|
|
5
|
+
rowkeyName?: string | undefined;
|
|
6
|
+
editState?: any;
|
|
7
|
+
}>, {
|
|
8
|
+
columns: () => never[];
|
|
9
|
+
config: () => {};
|
|
10
|
+
rowkeyName: string;
|
|
11
|
+
editState: () => never[];
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-action"[], "after-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
91
13
|
columns: any[];
|
|
92
14
|
config: ColumnConfig;
|
|
93
15
|
rowkeyName?: string | undefined;
|
|
@@ -99,12 +21,12 @@ declare const _default: {
|
|
|
99
21
|
editState: () => never[];
|
|
100
22
|
}>>> & {
|
|
101
23
|
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
102
|
-
}, {
|
|
24
|
+
}, {
|
|
103
25
|
columns: any[];
|
|
104
26
|
config: ColumnConfig;
|
|
105
27
|
rowkeyName: string;
|
|
106
28
|
editState: any;
|
|
107
|
-
}
|
|
29
|
+
}>;
|
|
108
30
|
export default _default;
|
|
109
31
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
110
32
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,69 +1,15 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): {
|
|
4
|
-
$: import("vue").ComponentInternalInstance;
|
|
5
|
-
$data: {};
|
|
6
|
-
$props: Partial<{
|
|
7
|
-
config: ColumnConfig;
|
|
8
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
config: ColumnConfig;
|
|
10
|
-
}>, {
|
|
11
|
-
config: () => {};
|
|
12
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config">;
|
|
13
|
-
$attrs: {
|
|
14
|
-
[x: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
$refs: {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
$slots: Readonly<{
|
|
20
|
-
[name: string]: import("vue").Slot | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
23
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
24
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
25
|
-
$el: any;
|
|
26
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
27
|
-
config: ColumnConfig;
|
|
28
|
-
}>, {
|
|
29
|
-
config: () => {};
|
|
30
|
-
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
31
|
-
config: ColumnConfig;
|
|
32
|
-
}> & {
|
|
33
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
47
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
48
|
-
};
|
|
49
|
-
$forceUpdate: () => void;
|
|
50
|
-
$nextTick: typeof import("vue").nextTick;
|
|
51
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
52
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
53
|
-
config: ColumnConfig;
|
|
54
|
-
}>, {
|
|
55
|
-
config: () => {};
|
|
56
|
-
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
57
|
-
__isFragment?: undefined;
|
|
58
|
-
__isTeleport?: undefined;
|
|
59
|
-
__isSuspense?: undefined;
|
|
60
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
61
3
|
config: ColumnConfig;
|
|
62
4
|
}>, {
|
|
63
5
|
config: () => {};
|
|
64
|
-
}
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
65
7
|
config: ColumnConfig;
|
|
66
|
-
}
|
|
8
|
+
}>, {
|
|
9
|
+
config: () => {};
|
|
10
|
+
}>>>, {
|
|
11
|
+
config: ColumnConfig;
|
|
12
|
+
}>;
|
|
67
13
|
export default _default;
|
|
68
14
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
15
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,69 +1,15 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): {
|
|
4
|
-
$: import("vue").ComponentInternalInstance;
|
|
5
|
-
$data: {};
|
|
6
|
-
$props: Partial<{
|
|
7
|
-
config: ColumnConfig;
|
|
8
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
config: ColumnConfig;
|
|
10
|
-
}>, {
|
|
11
|
-
config: () => {};
|
|
12
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config">;
|
|
13
|
-
$attrs: {
|
|
14
|
-
[x: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
$refs: {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
$slots: Readonly<{
|
|
20
|
-
[name: string]: import("vue").Slot | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
23
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
24
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
25
|
-
$el: any;
|
|
26
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
27
|
-
config: ColumnConfig;
|
|
28
|
-
}>, {
|
|
29
|
-
config: () => {};
|
|
30
|
-
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
31
|
-
config: ColumnConfig;
|
|
32
|
-
}> & {
|
|
33
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
47
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
48
|
-
};
|
|
49
|
-
$forceUpdate: () => void;
|
|
50
|
-
$nextTick: typeof import("vue").nextTick;
|
|
51
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
52
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
53
|
-
config: ColumnConfig;
|
|
54
|
-
}>, {
|
|
55
|
-
config: () => {};
|
|
56
|
-
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
57
|
-
__isFragment?: undefined;
|
|
58
|
-
__isTeleport?: undefined;
|
|
59
|
-
__isSuspense?: undefined;
|
|
60
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
61
3
|
config: ColumnConfig;
|
|
62
4
|
}>, {
|
|
63
5
|
config: () => {};
|
|
64
|
-
}
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
65
7
|
config: ColumnConfig;
|
|
66
|
-
}
|
|
8
|
+
}>, {
|
|
9
|
+
config: () => {};
|
|
10
|
+
}>>>, {
|
|
11
|
+
config: ColumnConfig;
|
|
12
|
+
}>;
|
|
67
13
|
export default _default;
|
|
68
14
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
15
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
package/types/Table.vue.d.ts
CHANGED
|
@@ -1,174 +1,36 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
columns: () => never[];
|
|
35
|
-
loading: boolean;
|
|
36
|
-
showHeader: boolean;
|
|
37
|
-
defaultExpandAll: boolean;
|
|
38
|
-
border: boolean;
|
|
39
|
-
}>>> & {
|
|
40
|
-
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
43
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
45
|
-
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
47
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "columns" | "loading" | "showHeader" | "defaultExpandAll" | "border">;
|
|
48
|
-
$attrs: {
|
|
49
|
-
[x: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
$refs: {
|
|
52
|
-
[x: string]: unknown;
|
|
53
|
-
};
|
|
54
|
-
$slots: Readonly<{
|
|
55
|
-
[name: string]: import("vue").Slot | undefined;
|
|
56
|
-
}>;
|
|
57
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
58
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
59
|
-
$emit: (event: "after-action" | "sort-change" | "select" | "select-all" | "selection-change" | "expand-change" | "cell-click", ...args: any[]) => void;
|
|
60
|
-
$el: any;
|
|
61
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
62
|
-
data: any[];
|
|
63
|
-
columns?: any[] | undefined;
|
|
64
|
-
/** 合并行或列的计算方法 */
|
|
65
|
-
spanMethod?: ((data: {
|
|
66
|
-
row: any;
|
|
67
|
-
column: any;
|
|
68
|
-
rowIndex: number;
|
|
69
|
-
columnIndex: number;
|
|
70
|
-
}) => [number, number]) | undefined;
|
|
71
|
-
loading?: boolean | undefined;
|
|
72
|
-
/** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
|
|
73
|
-
bodyHeight?: string | number | undefined;
|
|
74
|
-
/** 是否显示表头 */
|
|
75
|
-
showHeader?: boolean | undefined;
|
|
76
|
-
/** 空数据时显示的文本内容 */
|
|
77
|
-
emptyText?: string | undefined;
|
|
78
|
-
/** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
|
|
79
|
-
defaultExpandAll?: boolean | undefined;
|
|
80
|
-
rowkeyName?: string | undefined;
|
|
81
|
-
/** 是否带有纵向边框 */
|
|
82
|
-
border?: boolean | undefined;
|
|
83
|
-
}>, {
|
|
84
|
-
columns: () => never[];
|
|
85
|
-
loading: boolean;
|
|
86
|
-
showHeader: boolean;
|
|
87
|
-
defaultExpandAll: boolean;
|
|
88
|
-
border: boolean;
|
|
89
|
-
}>>> & {
|
|
90
|
-
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
94
|
-
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
95
|
-
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
toggleRowSelection: (row: any, selected: boolean) => void;
|
|
99
|
-
toggleRowExpansion: (row: any, expanded: boolean) => void;
|
|
100
|
-
clearSelection: () => void;
|
|
101
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("after-action" | "sort-change" | "select" | "select-all" | "selection-change" | "expand-change" | "cell-click")[], string, {
|
|
102
|
-
columns: any[];
|
|
103
|
-
loading: boolean;
|
|
104
|
-
showHeader: boolean;
|
|
105
|
-
defaultExpandAll: boolean;
|
|
106
|
-
border: boolean;
|
|
107
|
-
}> & {
|
|
108
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
112
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
113
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
114
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
118
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
119
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
120
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
121
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
122
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
123
|
-
};
|
|
124
|
-
$forceUpdate: () => void;
|
|
125
|
-
$nextTick: typeof import("vue").nextTick;
|
|
126
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
127
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
128
|
-
data: any[];
|
|
129
|
-
columns?: any[] | undefined;
|
|
130
|
-
/** 合并行或列的计算方法 */
|
|
131
|
-
spanMethod?: ((data: {
|
|
132
|
-
row: any;
|
|
133
|
-
column: any;
|
|
134
|
-
rowIndex: number;
|
|
135
|
-
columnIndex: number;
|
|
136
|
-
}) => [number, number]) | undefined;
|
|
137
|
-
loading?: boolean | undefined;
|
|
138
|
-
/** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
|
|
139
|
-
bodyHeight?: string | number | undefined;
|
|
140
|
-
/** 是否显示表头 */
|
|
141
|
-
showHeader?: boolean | undefined;
|
|
142
|
-
/** 空数据时显示的文本内容 */
|
|
143
|
-
emptyText?: string | undefined;
|
|
144
|
-
/** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
|
|
145
|
-
defaultExpandAll?: boolean | undefined;
|
|
146
|
-
rowkeyName?: string | undefined;
|
|
147
|
-
/** 是否带有纵向边框 */
|
|
148
|
-
border?: boolean | undefined;
|
|
149
|
-
}>, {
|
|
150
|
-
columns: () => never[];
|
|
151
|
-
loading: boolean;
|
|
152
|
-
showHeader: boolean;
|
|
153
|
-
defaultExpandAll: boolean;
|
|
154
|
-
border: boolean;
|
|
155
|
-
}>>> & {
|
|
156
|
-
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
157
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
158
|
-
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
159
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
160
|
-
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
161
|
-
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
162
|
-
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
163
|
-
} & import("vue").ShallowUnwrapRef<{
|
|
164
|
-
toggleRowSelection: (row: any, selected: boolean) => void;
|
|
165
|
-
toggleRowExpansion: (row: any, expanded: boolean) => void;
|
|
166
|
-
clearSelection: () => void;
|
|
167
|
-
}> & {} & import("vue").ComponentCustomProperties;
|
|
168
|
-
__isFragment?: undefined;
|
|
169
|
-
__isTeleport?: undefined;
|
|
170
|
-
__isSuspense?: undefined;
|
|
171
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
data: any[];
|
|
3
|
+
columns?: any[] | undefined;
|
|
4
|
+
/** 合并行或列的计算方法 */
|
|
5
|
+
spanMethod?: ((data: {
|
|
6
|
+
row: any;
|
|
7
|
+
column: any;
|
|
8
|
+
rowIndex: number;
|
|
9
|
+
columnIndex: number;
|
|
10
|
+
}) => [number, number]) | undefined;
|
|
11
|
+
loading?: boolean | undefined;
|
|
12
|
+
/** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
|
|
13
|
+
bodyHeight?: string | number | undefined;
|
|
14
|
+
/** 是否显示表头 */
|
|
15
|
+
showHeader?: boolean | undefined;
|
|
16
|
+
/** 空数据时显示的文本内容 */
|
|
17
|
+
emptyText?: string | undefined;
|
|
18
|
+
/** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
|
|
19
|
+
defaultExpandAll?: boolean | undefined;
|
|
20
|
+
rowkeyName?: string | undefined;
|
|
21
|
+
/** 是否带有纵向边框 */
|
|
22
|
+
border?: boolean | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
columns: () => never[];
|
|
25
|
+
loading: boolean;
|
|
26
|
+
showHeader: boolean;
|
|
27
|
+
defaultExpandAll: boolean;
|
|
28
|
+
border: boolean;
|
|
29
|
+
}>, {
|
|
30
|
+
toggleRowSelection: (row: any, selected: boolean) => void;
|
|
31
|
+
toggleRowExpansion: (row: any, expanded: boolean) => void;
|
|
32
|
+
clearSelection: () => void;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("after-action" | "sort-change" | "select" | "select-all" | "selection-change" | "expand-change" | "cell-click")[], "after-action" | "select" | "sort-change" | "select-all" | "selection-change" | "expand-change" | "cell-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
172
34
|
data: any[];
|
|
173
35
|
columns?: any[] | undefined;
|
|
174
36
|
/** 合并行或列的计算方法 */
|
|
@@ -205,16 +67,12 @@ declare const _default: {
|
|
|
205
67
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
206
68
|
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
207
69
|
}, {
|
|
208
|
-
toggleRowSelection: (row: any, selected: boolean) => void;
|
|
209
|
-
toggleRowExpansion: (row: any, expanded: boolean) => void;
|
|
210
|
-
clearSelection: () => void;
|
|
211
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("after-action" | "sort-change" | "select" | "select-all" | "selection-change" | "expand-change" | "cell-click")[], "after-action" | "select" | "sort-change" | "select-all" | "selection-change" | "expand-change" | "cell-click", {
|
|
212
70
|
columns: any[];
|
|
213
71
|
loading: boolean;
|
|
214
72
|
showHeader: boolean;
|
|
215
73
|
defaultExpandAll: boolean;
|
|
216
74
|
border: boolean;
|
|
217
|
-
}
|
|
75
|
+
}>;
|
|
218
76
|
export default _default;
|
|
219
77
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
220
78
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,80 +1,20 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): {
|
|
4
|
-
$: import("vue").ComponentInternalInstance;
|
|
5
|
-
$data: {};
|
|
6
|
-
$props: Partial<{
|
|
7
|
-
config: ColumnConfig;
|
|
8
|
-
editState: any;
|
|
9
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
-
config: ColumnConfig;
|
|
11
|
-
editState?: any;
|
|
12
|
-
}>, {
|
|
13
|
-
config: () => {};
|
|
14
|
-
editState: () => {};
|
|
15
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config" | "editState">;
|
|
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, {}>> | null;
|
|
26
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
27
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
28
|
-
$el: any;
|
|
29
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
-
config: ColumnConfig;
|
|
31
|
-
editState?: any;
|
|
32
|
-
}>, {
|
|
33
|
-
config: () => {};
|
|
34
|
-
editState: () => {};
|
|
35
|
-
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
36
|
-
config: ColumnConfig;
|
|
37
|
-
editState: any;
|
|
38
|
-
}> & {
|
|
39
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
52
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
53
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
54
|
-
};
|
|
55
|
-
$forceUpdate: () => void;
|
|
56
|
-
$nextTick: typeof import("vue").nextTick;
|
|
57
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
58
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
59
|
-
config: ColumnConfig;
|
|
60
|
-
editState?: any;
|
|
61
|
-
}>, {
|
|
62
|
-
config: () => {};
|
|
63
|
-
editState: () => {};
|
|
64
|
-
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
65
|
-
__isFragment?: undefined;
|
|
66
|
-
__isTeleport?: undefined;
|
|
67
|
-
__isSuspense?: undefined;
|
|
68
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
69
3
|
config: ColumnConfig;
|
|
70
4
|
editState?: any;
|
|
71
5
|
}>, {
|
|
72
6
|
config: () => {};
|
|
73
7
|
editState: () => {};
|
|
74
|
-
}
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
config: ColumnConfig;
|
|
10
|
+
editState?: any;
|
|
11
|
+
}>, {
|
|
12
|
+
config: () => {};
|
|
13
|
+
editState: () => {};
|
|
14
|
+
}>>>, {
|
|
75
15
|
config: ColumnConfig;
|
|
76
16
|
editState: any;
|
|
77
|
-
}
|
|
17
|
+
}>;
|
|
78
18
|
export default _default;
|
|
79
19
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
80
20
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|