@tmagic/table 1.4.4 → 1.4.6

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.4",
2
+ "version": "1.4.6",
3
3
  "name": "@tmagic/table",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -29,33 +29,35 @@
29
29
  "url": "https://github.com/Tencent/tmagic-editor.git"
30
30
  },
31
31
  "dependencies": {
32
- "@tmagic/design": "1.4.4",
33
- "@tmagic/form": "1.4.4",
34
- "@tmagic/utils": "1.4.4",
35
- "lodash-es": "^4.17.21",
36
- "vue": "^3.4.21"
37
- },
38
- "peerDependencies": {
39
- "@tmagic/form": "1.4.4",
40
- "vue": "^3.4.21"
32
+ "lodash-es": "^4.17.21"
41
33
  },
42
34
  "devDependencies": {
43
- "@types/color": "^3.0.1",
44
35
  "@types/lodash-es": "^4.17.4",
45
36
  "@types/node": "^18.19.0",
46
- "@vitejs/plugin-vue": "^4.5.2",
47
- "@vue/compiler-sfc": "^3.4.21",
48
- "@vue/test-utils": "^2.4.4",
37
+ "@vitejs/plugin-vue": "^5.0.4",
38
+ "@vue/compiler-sfc": "^3.4.27",
39
+ "@vue/test-utils": "^2.4.6",
49
40
  "rimraf": "^3.0.2",
50
- "sass": "^1.35.1",
51
- "typescript": "^5.4.2",
52
- "vite": "^5.1.6",
53
- "vue-tsc": "^2.0.6"
41
+ "sass": "^1.77.0",
42
+ "vite": "^5.2.11",
43
+ "vue-tsc": "^2.0.16"
44
+ },
45
+ "peerDependencies": {
46
+ "vue": "^3.4.27",
47
+ "typescript": "*",
48
+ "@tmagic/form": "1.4.6",
49
+ "@tmagic/design": "1.4.6",
50
+ "@tmagic/utils": "1.4.6"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "typescript": {
54
+ "optional": true
55
+ }
54
56
  },
55
57
  "scripts": {
56
58
  "build": "npm run build:type && vite build",
57
59
  "build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
58
60
  "clear:type": "rimraf ./types",
59
- "type:check": "vue-tsc --noEmit"
61
+ "check:type": "vue-tsc --noEmit --project tsconfig.build.json"
60
62
  }
61
63
  }
@@ -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> = {
@@ -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;