@tmagic/table 1.3.16 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tmagic-table.js +1 -1
- package/dist/tmagic-table.umd.cjs +1 -0
- package/package.json +14 -13
- package/src/Table.vue +2 -1
- package/src/index.ts +2 -0
- package/src/schema.ts +3 -3
- package/types/ActionsColumn.vue.d.ts +11 -11
- package/types/ComponentColumn.vue.d.ts +11 -11
- package/types/ExpandColumn.vue.d.ts +11 -11
- package/types/PopoverColumn.vue.d.ts +11 -11
- package/types/Table.vue.d.ts +15 -14
- package/types/TextColumn.vue.d.ts +11 -11
- package/types/index.d.ts +2 -0
- package/types/schema.d.ts +3 -3
package/dist/tmagic-table.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.4.0-beta.1",
|
|
3
3
|
"name": "@tmagic/table",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -29,32 +29,33 @@
|
|
|
29
29
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tmagic/design": "1.
|
|
33
|
-
"@tmagic/form": "1.
|
|
34
|
-
"@tmagic/utils": "1.
|
|
32
|
+
"@tmagic/design": "1.4.0-beta.1",
|
|
33
|
+
"@tmagic/form": "1.4.0-beta.1",
|
|
34
|
+
"@tmagic/utils": "1.4.0-beta.1",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
|
-
"vue": "^3.
|
|
36
|
+
"vue": "^3.4.21"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tmagic/form": "1.
|
|
40
|
-
"vue": "^3.
|
|
39
|
+
"@tmagic/form": "1.4.0-beta.1",
|
|
40
|
+
"vue": "^3.4.21"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/color": "^3.0.1",
|
|
44
44
|
"@types/lodash-es": "^4.17.4",
|
|
45
45
|
"@types/node": "^18.19.0",
|
|
46
46
|
"@vitejs/plugin-vue": "^4.5.2",
|
|
47
|
-
"@vue/compiler-sfc": "^3.
|
|
48
|
-
"@vue/test-utils": "^2.
|
|
47
|
+
"@vue/compiler-sfc": "^3.4.21",
|
|
48
|
+
"@vue/test-utils": "^2.4.4",
|
|
49
49
|
"rimraf": "^3.0.2",
|
|
50
50
|
"sass": "^1.35.1",
|
|
51
|
-
"typescript": "^5.
|
|
52
|
-
"vite": "^5.
|
|
53
|
-
"vue-tsc": "^
|
|
51
|
+
"typescript": "^5.4.2",
|
|
52
|
+
"vite": "^5.1.6",
|
|
53
|
+
"vue-tsc": "^2.0.6"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "npm run build:type && vite build",
|
|
57
57
|
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
|
58
|
-
"clear:type": "rimraf ./types"
|
|
58
|
+
"clear:type": "rimraf ./types",
|
|
59
|
+
"type:check": "vue-tsc --noEmit"
|
|
59
60
|
}
|
|
60
61
|
}
|
package/src/Table.vue
CHANGED
|
@@ -72,6 +72,7 @@ import ActionsColumn from './ActionsColumn.vue';
|
|
|
72
72
|
import ComponentColumn from './ComponentColumn.vue';
|
|
73
73
|
import ExpandColumn from './ExpandColumn.vue';
|
|
74
74
|
import PopoverColumn from './PopoverColumn.vue';
|
|
75
|
+
import type { ColumnConfig } from './schema';
|
|
75
76
|
import TextColumn from './TextColumn.vue';
|
|
76
77
|
|
|
77
78
|
defineOptions({
|
|
@@ -81,7 +82,7 @@ defineOptions({
|
|
|
81
82
|
const props = withDefaults(
|
|
82
83
|
defineProps<{
|
|
83
84
|
data: any[];
|
|
84
|
-
columns?:
|
|
85
|
+
columns?: ColumnConfig[];
|
|
85
86
|
/** 合并行或列的计算方法 */
|
|
86
87
|
spanMethod?: (data: { row: any; column: any; rowIndex: number; columnIndex: number }) => [number, number];
|
|
87
88
|
loading?: boolean;
|
package/src/index.ts
CHANGED
package/src/schema.ts
CHANGED
|
@@ -20,10 +20,10 @@ import { FormConfig, FormValue } from '@tmagic/form';
|
|
|
20
20
|
|
|
21
21
|
export interface ColumnActionConfig {
|
|
22
22
|
type?: 'delete' | 'copy' | 'edit';
|
|
23
|
-
buttonType
|
|
23
|
+
buttonType?: string;
|
|
24
24
|
display?: (row: any) => boolean;
|
|
25
|
-
text
|
|
26
|
-
name
|
|
25
|
+
text?: string | ((row: any) => string);
|
|
26
|
+
name?: string;
|
|
27
27
|
tooltip?: string;
|
|
28
28
|
tooltipPlacement?: string;
|
|
29
29
|
icon?: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
columns: any[];
|
|
4
4
|
config: ColumnConfig;
|
|
5
5
|
rowkeyName?: string | undefined;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
11
11
|
editState: () => never[];
|
|
12
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
"after-action": (...args: any[]) => void;
|
|
14
|
-
}, string, import("vue").
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
15
|
columns: any[];
|
|
16
16
|
config: ColumnConfig;
|
|
17
17
|
rowkeyName?: string | undefined;
|
|
@@ -30,15 +30,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
30
|
editState: any;
|
|
31
31
|
}, {}>;
|
|
32
32
|
export default _default;
|
|
33
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
-
} : {
|
|
38
|
-
type: import('vue').PropType<T[K]>;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
33
|
type __VLS_WithDefaults<P, D> = {
|
|
43
34
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
35
|
default: D[K];
|
|
@@ -47,3 +38,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
47
38
|
type __VLS_Prettify<T> = {
|
|
48
39
|
[K in keyof T]: T[K];
|
|
49
40
|
} & {};
|
|
41
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
+
type __VLS_TypePropsToOption<T> = {
|
|
43
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
+
} : {
|
|
46
|
+
type: import('vue').PropType<T[K]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
config: ColumnConfig;
|
|
4
4
|
}>, {
|
|
5
5
|
config: () => {};
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
7
|
config: ColumnConfig;
|
|
8
8
|
}>, {
|
|
9
9
|
config: () => {};
|
|
@@ -11,15 +11,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
11
11
|
config: ColumnConfig;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
14
|
type __VLS_WithDefaults<P, D> = {
|
|
24
15
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
16
|
default: D[K];
|
|
@@ -28,3 +19,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
28
19
|
type __VLS_Prettify<T> = {
|
|
29
20
|
[K in keyof T]: T[K];
|
|
30
21
|
} & {};
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToOption<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
config: ColumnConfig;
|
|
4
4
|
}>, {
|
|
5
5
|
config: () => {};
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
7
|
config: ColumnConfig;
|
|
8
8
|
}>, {
|
|
9
9
|
config: () => {};
|
|
@@ -11,15 +11,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
11
11
|
config: ColumnConfig;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
14
|
type __VLS_WithDefaults<P, D> = {
|
|
24
15
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
16
|
default: D[K];
|
|
@@ -28,3 +19,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
28
19
|
type __VLS_Prettify<T> = {
|
|
29
20
|
[K in keyof T]: T[K];
|
|
30
21
|
} & {};
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToOption<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
config: ColumnConfig;
|
|
4
4
|
}>, {
|
|
5
5
|
config: () => {};
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
7
|
config: ColumnConfig;
|
|
8
8
|
}>, {
|
|
9
9
|
config: () => {};
|
|
@@ -11,15 +11,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
11
11
|
config: ColumnConfig;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
14
|
type __VLS_WithDefaults<P, D> = {
|
|
24
15
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
16
|
default: D[K];
|
|
@@ -28,3 +19,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
28
19
|
type __VLS_Prettify<T> = {
|
|
29
20
|
[K in keyof T]: T[K];
|
|
30
21
|
} & {};
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToOption<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
package/types/Table.vue.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ColumnConfig } from './schema';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
3
|
data: any[];
|
|
3
|
-
columns?:
|
|
4
|
+
columns?: ColumnConfig[] | undefined;
|
|
4
5
|
/** 合并行或列的计算方法 */
|
|
5
6
|
spanMethod?: ((data: {
|
|
6
7
|
row: any;
|
|
@@ -38,9 +39,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
39
|
"selection-change": (...args: any[]) => void;
|
|
39
40
|
"expand-change": (...args: any[]) => void;
|
|
40
41
|
"cell-click": (...args: any[]) => void;
|
|
41
|
-
}, string, import("vue").
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
42
43
|
data: any[];
|
|
43
|
-
columns?:
|
|
44
|
+
columns?: ColumnConfig[] | undefined;
|
|
44
45
|
/** 合并行或列的计算方法 */
|
|
45
46
|
spanMethod?: ((data: {
|
|
46
47
|
row: any;
|
|
@@ -75,22 +76,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
75
76
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
76
77
|
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
77
78
|
}, {
|
|
78
|
-
columns:
|
|
79
|
+
columns: ColumnConfig[];
|
|
79
80
|
loading: boolean;
|
|
80
81
|
showHeader: boolean;
|
|
81
82
|
defaultExpandAll: boolean;
|
|
82
83
|
border: boolean;
|
|
83
84
|
}, {}>;
|
|
84
85
|
export default _default;
|
|
85
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
86
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
87
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
88
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
89
|
-
} : {
|
|
90
|
-
type: import('vue').PropType<T[K]>;
|
|
91
|
-
required: true;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
86
|
type __VLS_WithDefaults<P, D> = {
|
|
95
87
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
96
88
|
default: D[K];
|
|
@@ -99,3 +91,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
99
91
|
type __VLS_Prettify<T> = {
|
|
100
92
|
[K in keyof T]: T[K];
|
|
101
93
|
} & {};
|
|
94
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
type __VLS_TypePropsToOption<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
config: ColumnConfig;
|
|
4
4
|
editState?: any;
|
|
5
5
|
}>, {
|
|
6
6
|
config: () => {};
|
|
7
7
|
editState: () => {};
|
|
8
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
9
9
|
config: ColumnConfig;
|
|
10
10
|
editState?: any;
|
|
11
11
|
}>, {
|
|
@@ -16,15 +16,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
16
|
editState: any;
|
|
17
17
|
}, {}>;
|
|
18
18
|
export default _default;
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
19
|
type __VLS_WithDefaults<P, D> = {
|
|
29
20
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
21
|
default: D[K];
|
|
@@ -33,3 +24,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
33
24
|
type __VLS_Prettify<T> = {
|
|
34
25
|
[K in keyof T]: T[K];
|
|
35
26
|
} & {};
|
|
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
|
+
};
|
package/types/index.d.ts
CHANGED
package/types/schema.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormConfig, FormValue } from '@tmagic/form';
|
|
2
2
|
export interface ColumnActionConfig {
|
|
3
3
|
type?: 'delete' | 'copy' | 'edit';
|
|
4
|
-
buttonType
|
|
4
|
+
buttonType?: string;
|
|
5
5
|
display?: (row: any) => boolean;
|
|
6
|
-
text
|
|
7
|
-
name
|
|
6
|
+
text?: string | ((row: any) => string);
|
|
7
|
+
name?: string;
|
|
8
8
|
tooltip?: string;
|
|
9
9
|
tooltipPlacement?: string;
|
|
10
10
|
icon?: any;
|