@tmagic/table 1.4.4 → 1.4.5
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.4.
|
|
2
|
+
"version": "1.4.5",
|
|
3
3
|
"name": "@tmagic/table",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -29,33 +29,30 @@
|
|
|
29
29
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"
|
|
33
|
-
"@tmagic/form": "1.4.4",
|
|
34
|
-
"@tmagic/utils": "1.4.4",
|
|
35
|
-
"lodash-es": "^4.17.21",
|
|
36
|
-
"vue": "^3.4.21"
|
|
32
|
+
"lodash-es": "^4.17.21"
|
|
37
33
|
},
|
|
38
34
|
"peerDependencies": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
35
|
+
"vue": "^3.4.27",
|
|
36
|
+
"@tmagic/form": "1.4.5",
|
|
37
|
+
"@tmagic/utils": "1.4.5",
|
|
38
|
+
"@tmagic/design": "1.4.5"
|
|
41
39
|
},
|
|
42
40
|
"devDependencies": {
|
|
43
|
-
"@types/color": "^3.0.1",
|
|
44
41
|
"@types/lodash-es": "^4.17.4",
|
|
45
42
|
"@types/node": "^18.19.0",
|
|
46
|
-
"@vitejs/plugin-vue": "^
|
|
47
|
-
"@vue/compiler-sfc": "^3.4.
|
|
48
|
-
"@vue/test-utils": "^2.4.
|
|
43
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
44
|
+
"@vue/compiler-sfc": "^3.4.27",
|
|
45
|
+
"@vue/test-utils": "^2.4.6",
|
|
49
46
|
"rimraf": "^3.0.2",
|
|
50
|
-
"sass": "^1.
|
|
47
|
+
"sass": "^1.77.0",
|
|
51
48
|
"typescript": "^5.4.2",
|
|
52
|
-
"vite": "^5.
|
|
53
|
-
"vue-tsc": "^2.0.
|
|
49
|
+
"vite": "^5.2.11",
|
|
50
|
+
"vue-tsc": "^2.0.16"
|
|
54
51
|
},
|
|
55
52
|
"scripts": {
|
|
56
53
|
"build": "npm run build:type && vite build",
|
|
57
54
|
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
|
58
55
|
"clear:type": "rimraf ./types",
|
|
59
|
-
"type
|
|
56
|
+
"check:type": "vue-tsc --noEmit --project tsconfig.build.json"
|
|
60
57
|
}
|
|
61
58
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
columns: any[];
|
|
4
|
-
config: ColumnConfig
|
|
4
|
+
config: ColumnConfig<any>;
|
|
5
5
|
rowkeyName?: string | undefined;
|
|
6
6
|
editState?: any;
|
|
7
7
|
}>, {
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
13
|
"after-action": (...args: any[]) => void;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
15
|
columns: any[];
|
|
16
|
-
config: ColumnConfig
|
|
16
|
+
config: ColumnConfig<any>;
|
|
17
17
|
rowkeyName?: string | undefined;
|
|
18
18
|
editState?: any;
|
|
19
19
|
}>, {
|
|
@@ -25,11 +25,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
25
|
"onAfter-action"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
columns: any[];
|
|
28
|
-
config: ColumnConfig
|
|
28
|
+
config: ColumnConfig<any>;
|
|
29
29
|
rowkeyName: string;
|
|
30
30
|
editState: any;
|
|
31
31
|
}, {}>;
|
|
32
32
|
export default _default;
|
|
33
|
+
|
|
33
34
|
type __VLS_WithDefaults<P, D> = {
|
|
34
35
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
36
|
default: D[K];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
config: ColumnConfig
|
|
3
|
+
config: ColumnConfig<any>;
|
|
4
4
|
}>, {
|
|
5
5
|
config: () => {};
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
|
-
config: ColumnConfig
|
|
7
|
+
config: ColumnConfig<any>;
|
|
8
8
|
}>, {
|
|
9
9
|
config: () => {};
|
|
10
10
|
}>>>, {
|
|
11
|
-
config: ColumnConfig
|
|
11
|
+
config: ColumnConfig<any>;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
config: ColumnConfig
|
|
3
|
+
config: ColumnConfig<any>;
|
|
4
4
|
}>, {
|
|
5
5
|
config: () => {};
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
|
-
config: ColumnConfig
|
|
7
|
+
config: ColumnConfig<any>;
|
|
8
8
|
}>, {
|
|
9
9
|
config: () => {};
|
|
10
10
|
}>>>, {
|
|
11
|
-
config: ColumnConfig
|
|
11
|
+
config: ColumnConfig<any>;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
config: ColumnConfig
|
|
3
|
+
config: ColumnConfig<any>;
|
|
4
4
|
}>, {
|
|
5
5
|
config: () => {};
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
|
-
config: ColumnConfig
|
|
7
|
+
config: ColumnConfig<any>;
|
|
8
8
|
}>, {
|
|
9
9
|
config: () => {};
|
|
10
10
|
}>>>, {
|
|
11
|
-
config: ColumnConfig
|
|
11
|
+
config: ColumnConfig<any>;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithDefaults<P, D> = {
|
package/types/Table.vue.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
76
76
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
columns: ColumnConfig[];
|
|
79
|
+
columns: ColumnConfig<any>[];
|
|
80
80
|
loading: boolean;
|
|
81
81
|
showHeader: boolean;
|
|
82
82
|
defaultExpandAll: boolean;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ColumnConfig } from './schema';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
config: ColumnConfig
|
|
3
|
+
config: ColumnConfig<any>;
|
|
4
4
|
editState?: any;
|
|
5
5
|
}>, {
|
|
6
6
|
config: () => {};
|
|
7
7
|
editState: () => {};
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
9
|
-
config: ColumnConfig
|
|
9
|
+
config: ColumnConfig<any>;
|
|
10
10
|
editState?: any;
|
|
11
11
|
}>, {
|
|
12
12
|
config: () => {};
|
|
13
13
|
editState: () => {};
|
|
14
14
|
}>>>, {
|
|
15
|
-
config: ColumnConfig
|
|
15
|
+
config: ColumnConfig<any>;
|
|
16
16
|
editState: any;
|
|
17
17
|
}, {}>;
|
|
18
18
|
export default _default;
|