@opentinyvue/vue-grid 2.26.0 → 2.28.0

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,29 +1,29 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-grid",
3
3
  "type": "module",
4
- "version": "2.26.0",
4
+ "version": "2.28.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/utils": "~3.26.0",
12
- "@opentinyvue/vue-common": "~2.26.0",
13
- "@opentinyvue/vue-directive": "~2.26.0",
14
- "@opentinyvue/vue-dropdown": "~2.26.0",
15
- "@opentinyvue/vue-dropdown-item": "~2.26.0",
16
- "@opentinyvue/vue-dropdown-menu": "~2.26.0",
17
- "@opentinyvue/vue-exception": "~2.26.0",
18
- "@opentinyvue/vue-icon": "~2.26.0",
19
- "@opentinyvue/vue-loading": "~2.26.0",
20
- "@opentinyvue/vue-locale": "~2.26.0",
21
- "@opentinyvue/vue-modal": "~2.26.0",
22
- "@opentinyvue/vue-pager": "~2.26.0",
23
- "@opentinyvue/vue-renderless": "~3.26.0",
24
- "@opentinyvue/vue-tag": "~2.26.0",
25
- "@opentinyvue/vue-theme": "~3.26.0",
26
- "@opentinyvue/vue-tooltip": "~2.26.0"
11
+ "@opentinyvue/utils": "~3.28.0",
12
+ "@opentinyvue/vue-common": "~2.28.0",
13
+ "@opentinyvue/vue-directive": "~2.28.0",
14
+ "@opentinyvue/vue-dropdown": "~2.28.0",
15
+ "@opentinyvue/vue-dropdown-item": "~2.28.0",
16
+ "@opentinyvue/vue-dropdown-menu": "~2.28.0",
17
+ "@opentinyvue/vue-exception": "~2.28.0",
18
+ "@opentinyvue/vue-icon": "~2.28.0",
19
+ "@opentinyvue/vue-loading": "~2.28.0",
20
+ "@opentinyvue/vue-locale": "~2.28.0",
21
+ "@opentinyvue/vue-modal": "~2.28.0",
22
+ "@opentinyvue/vue-pager": "~2.28.0",
23
+ "@opentinyvue/vue-renderless": "~3.28.0",
24
+ "@opentinyvue/vue-tag": "~2.28.0",
25
+ "@opentinyvue/vue-theme": "~3.28.0",
26
+ "@opentinyvue/vue-tooltip": "~2.28.0"
27
27
  },
28
28
  "types": "index.d.ts",
29
29
  "scripts": {
@@ -5,3 +5,4 @@ export * from './useData';
5
5
  export * from './useHeader';
6
6
  export * from './useCellEvent';
7
7
  export * from './useCellSpan';
8
+ export * from './useNormalData';
@@ -0,0 +1,7 @@
1
+ export declare const useNormalData: ({ props, tableFullColumn }: {
2
+ props: any;
3
+ tableFullColumn: any;
4
+ }) => {
5
+ rawData: any;
6
+ rawDataVersion: any;
7
+ };
package/src/config.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  declare const GlobalConfig: {
2
2
  validConfig: {
3
3
  message: string;
4
+ highlightError: boolean;
4
5
  icon: any;
5
6
  };
6
7
  editConfig: {
@@ -13,6 +13,7 @@ declare const Methods: {
13
13
  loadTableData(datas: any, notRefresh: any): any;
14
14
  reloadData(datas: any): any;
15
15
  loadData(datas: any): Promise<unknown>;
16
+ updateRawData(datas: any): void;
16
17
  getOriginRow(row: any): any;
17
18
  setOriginRow(row: any, record: any): void;
18
19
  reloadRow(row: any, record: any, field: any): any;
@@ -20,6 +21,19 @@ declare const Methods: {
20
21
  loadColumn(columns: any): Promise<any>;
21
22
  /** 设置数据查找缓存,对数据进行备份,深度克隆 */
22
23
  updateCache(backup?: boolean, deepCopy?: boolean): void;
24
+ getRaw(object: any): any;
25
+ /**
26
+ * 递归地将 Proxy 对象(如 Vue 3 的响应式对象)转换为普通对象。
27
+ * @param {any} data 待处理的数据
28
+ * @returns {any} 转换后的普通对象或原始数据
29
+ */
30
+ deepUnwrap(data: any): any;
31
+ /**
32
+ * 复制 Map,并递归地将 Map 的值中包含的 Proxy 转换为普通对象。
33
+ * @param {Map<any, any>} originalMap 原始 Map
34
+ * @returns {Map<any, any>} 复制并解包后的新 Map
35
+ */
36
+ cloneMapAndUnwrap(originalMap: any): any;
23
37
  cacheColumnMap(options: any): void;
24
38
  getRowNode(tr: any): {
25
39
  item: any;
@@ -34,7 +48,7 @@ declare const Methods: {
34
48
  getRowIndex(row: any): any;
35
49
  getColumnIndex(column: any): any;
36
50
  hasIndexColumn(column: any): boolean;
37
- defineField(row: any, copy: any): any;
51
+ defineField(row: any, copy: any, editorColumns: any, cache: any): any;
38
52
  isTemporaryRow(row: any): any;
39
53
  createData(records: any, copy: any): Promise<unknown>;
40
54
  createRow(records: any): Promise<unknown>;
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  */
36
36
  validCellRules(type: any, row: any, column: any, defaultValue: any): Promise<void>;
37
37
  _clearValidate(): any;
38
+ clearValidateMap(): void;
38
39
  triggerValidate(type: any): Promise<void>;
39
40
  showValidTooltip(params: any): void;
40
41
  clostValidTooltip(): any;