plain-design 1.0.0-beta.138 → 1.0.0-beta.139

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,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.138",
3
+ "version": "1.0.0-beta.139",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -41,16 +41,6 @@
41
41
  "react-transition-group": "4.4.5"
42
42
  },
43
43
  "devDependencies": {
44
- "@vue/cli-plugin-eslint": "4.5.19",
45
- "@vue/compiler-sfc": "3.4.3",
46
- "@vue/eslint-config-typescript": "^7.0.0",
47
- "babel-plugin-import": "1.13.8",
48
- "babel-plugin-syntax-jsx": "6.18.0",
49
- "eslint": "6.8.0",
50
- "eslint-plugin-vue": "7.20.0",
51
- "exceljs": "^4.2.1",
52
- "file-saver": "^2.0.5",
53
-
54
44
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
55
45
  "@babel/plugin-transform-class-properties": "^7.22.3",
56
46
  "@babel/preset-env": "^7.13.15",
@@ -66,13 +56,22 @@
66
56
  "@typescript-eslint/eslint-plugin": "^4.18.0",
67
57
  "@typescript-eslint/parser": "^4.18.0",
68
58
  "@vue/cli-plugin-babel": "~5.0.0",
59
+ "@vue/cli-plugin-eslint": "4.5.19",
69
60
  "@vue/cli-plugin-typescript": "~5.0.0",
70
61
  "@vue/cli-service": "~5.0.0",
62
+ "@vue/compiler-sfc": "3.4.3",
63
+ "@vue/eslint-config-typescript": "^7.0.0",
71
64
  "autoprefixer": "^8.6.5",
72
65
  "axios": "^1.7.7",
66
+ "babel-plugin-import": "1.13.8",
67
+ "babel-plugin-syntax-jsx": "6.18.0",
73
68
  "core-js": "^3.8.3",
74
69
  "cross-env": "^7.0.3",
75
70
  "css-loader": "3.6.0",
71
+ "eslint": "6.8.0",
72
+ "eslint-plugin-vue": "7.20.0",
73
+ "exceljs": "^4.2.1",
74
+ "file-saver": "^2.0.5",
76
75
  "fork-ts-checker-webpack-plugin": "^6.2.4",
77
76
  "mini-css-extract-plugin": "^1.4.1",
78
77
  "postcss": "^8.2.13",
@@ -86,7 +85,7 @@
86
85
  "ts-loader": "^9.4.2",
87
86
  "ts-node": "^9.1.1",
88
87
  "tslib": "^2.5.0",
89
- "typescript": "^5.5.4",
88
+ "typescript": "^5.8.3",
90
89
  "url-loader": "^4.1.1",
91
90
  "vue-template-compiler": "2.7.15",
92
91
  "webpack-bundle-analyzer": "^4.4.1",
@@ -30,7 +30,7 @@ export function convertRowToSelected<DATA extends PlainObject | PlainObject[] |
30
30
  selected[value] = row[key];
31
31
  return selected;
32
32
  }, {} as any);
33
- return Array.isArray(row) ? row.map((i) => convert(i)) : convert(row);
33
+ return Array.isArray(row) ? (row.map((i) => convert(i)) as any) : convert(row);
34
34
  }
35
35
 
36
36
  /**
@@ -52,5 +52,5 @@ export function convertSelectedToRow<DATA extends PlainObject | PlainObject[] |
52
52
  row[key] = selected[value];
53
53
  return row;
54
54
  }, {} as any);
55
- return Array.isArray(selected) ? selected.map((i) => convert(i)) : convert(selected);
55
+ return Array.isArray(selected) ? (selected.map((i) => convert(i)) as any) : convert(selected);
56
56
  }
@@ -73,7 +73,7 @@ export const i18n = (() => {
73
73
  for (let i = 0, j = array.length; i < j; i++) {
74
74
  const property = array[i];
75
75
  let value = current[property];
76
- if (i === j - 1) return !options ? value : formatLang(value, options);
76
+ if (i === j - 1) return !options ? value : formatLang(value, options)!;
77
77
  if (!value) return '';
78
78
  current = value;
79
79
  }