@tmagic/table 1.4.15 → 1.4.16

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.15",
2
+ "version": "1.4.16",
3
3
  "name": "@tmagic/table",
4
4
  "type": "module",
5
5
  "main": "dist/tmagic-table.umd.cjs",
@@ -36,20 +36,20 @@
36
36
  "devDependencies": {
37
37
  "@types/lodash-es": "^4.17.4",
38
38
  "@types/node": "^18.19.0",
39
- "@vitejs/plugin-vue": "^5.0.4",
39
+ "@vitejs/plugin-vue": "^5.1.1",
40
40
  "@vue/compiler-sfc": "^3.4.27",
41
41
  "@vue/test-utils": "^2.4.6",
42
42
  "rimraf": "^3.0.2",
43
43
  "sass": "^1.77.0",
44
- "vite": "^5.3.1",
44
+ "vite": "^5.3.5",
45
45
  "vue-tsc": "^2.0.19"
46
46
  },
47
47
  "peerDependencies": {
48
- "vue": "^3.4.27",
48
+ "vue": "^3.4.35",
49
49
  "typescript": "*",
50
- "@tmagic/design": "1.4.15",
51
- "@tmagic/form": "1.4.15",
52
- "@tmagic/utils": "1.4.15"
50
+ "@tmagic/design": "1.4.16",
51
+ "@tmagic/utils": "1.4.16",
52
+ "@tmagic/form": "1.4.16"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "typescript": {
@@ -1,8 +1,8 @@
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<any>;
5
- rowkeyName?: string | undefined;
4
+ config: ColumnConfig;
5
+ rowkeyName?: string;
6
6
  editState?: any;
7
7
  }>, {
8
8
  columns: () => never[];
@@ -13,8 +13,8 @@ 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<any>;
17
- rowkeyName?: string | undefined;
16
+ config: ColumnConfig;
17
+ rowkeyName?: string;
18
18
  editState?: any;
19
19
  }>, {
20
20
  columns: () => never[];
@@ -25,7 +25,7 @@ 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<any>;
28
+ config: ColumnConfig;
29
29
  rowkeyName: string;
30
30
  editState: any;
31
31
  }, {}>;
@@ -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<any>;
3
+ config: ColumnConfig;
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<any>;
7
+ config: ColumnConfig;
8
8
  }>, {
9
9
  config: () => {};
10
10
  }>>>, {
11
- config: ColumnConfig<any>;
11
+ config: ColumnConfig;
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<any>;
3
+ config: ColumnConfig;
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<any>;
7
+ config: ColumnConfig;
8
8
  }>, {
9
9
  config: () => {};
10
10
  }>>>, {
11
- config: ColumnConfig<any>;
11
+ config: ColumnConfig;
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<any>;
3
+ config: ColumnConfig;
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<any>;
7
+ config: ColumnConfig;
8
8
  }>, {
9
9
  config: () => {};
10
10
  }>>>, {
11
- config: ColumnConfig<any>;
11
+ config: ColumnConfig;
12
12
  }, {}>;
13
13
  export default _default;
14
14
  type __VLS_WithDefaults<P, D> = {
@@ -1,26 +1,26 @@
1
1
  import type { ColumnConfig } from './schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  data: any[];
4
- columns?: ColumnConfig<any>[] | undefined;
4
+ columns?: ColumnConfig[];
5
5
  /** 合并行或列的计算方法 */
6
- spanMethod?: ((data: {
6
+ spanMethod?: (data: {
7
7
  row: any;
8
8
  column: any;
9
9
  rowIndex: number;
10
10
  columnIndex: number;
11
- }) => [number, number]) | undefined;
12
- loading?: boolean | undefined;
11
+ }) => [number, number];
12
+ loading?: boolean;
13
13
  /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
14
- bodyHeight?: string | number | undefined;
14
+ bodyHeight?: string | number;
15
15
  /** 是否显示表头 */
16
- showHeader?: boolean | undefined;
16
+ showHeader?: boolean;
17
17
  /** 空数据时显示的文本内容 */
18
- emptyText?: string | undefined;
18
+ emptyText?: string;
19
19
  /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
20
- defaultExpandAll?: boolean | undefined;
21
- rowkeyName?: string | undefined;
20
+ defaultExpandAll?: boolean;
21
+ rowkeyName?: string;
22
22
  /** 是否带有纵向边框 */
23
- border?: boolean | undefined;
23
+ border?: boolean;
24
24
  }>, {
25
25
  columns: () => never[];
26
26
  loading: boolean;
@@ -41,26 +41,26 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
41
41
  "cell-click": (...args: any[]) => void;
42
42
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
43
43
  data: any[];
44
- columns?: ColumnConfig<any>[] | undefined;
44
+ columns?: ColumnConfig[];
45
45
  /** 合并行或列的计算方法 */
46
- spanMethod?: ((data: {
46
+ spanMethod?: (data: {
47
47
  row: any;
48
48
  column: any;
49
49
  rowIndex: number;
50
50
  columnIndex: number;
51
- }) => [number, number]) | undefined;
52
- loading?: boolean | undefined;
51
+ }) => [number, number];
52
+ loading?: boolean;
53
53
  /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
54
- bodyHeight?: string | number | undefined;
54
+ bodyHeight?: string | number;
55
55
  /** 是否显示表头 */
56
- showHeader?: boolean | undefined;
56
+ showHeader?: boolean;
57
57
  /** 空数据时显示的文本内容 */
58
- emptyText?: string | undefined;
58
+ emptyText?: string;
59
59
  /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
60
- defaultExpandAll?: boolean | undefined;
61
- rowkeyName?: string | undefined;
60
+ defaultExpandAll?: boolean;
61
+ rowkeyName?: string;
62
62
  /** 是否带有纵向边框 */
63
- border?: boolean | undefined;
63
+ border?: boolean;
64
64
  }>, {
65
65
  columns: () => never[];
66
66
  loading: boolean;
@@ -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<any>[];
79
+ columns: ColumnConfig[];
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<any>;
3
+ config: ColumnConfig;
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<any>;
9
+ config: ColumnConfig;
10
10
  editState?: any;
11
11
  }>, {
12
12
  config: () => {};
13
13
  editState: () => {};
14
14
  }>>>, {
15
- config: ColumnConfig<any>;
15
+ config: ColumnConfig;
16
16
  editState: any;
17
17
  }, {}>;
18
18
  export default _default;