@pisell/materials 1.0.199 → 1.0.201
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/lowcode/item/meta.ts +1 -1
- package/lowcode/table/meta.ts +18 -3
- package/package.json +2 -2
package/lowcode/item/meta.ts
CHANGED
package/lowcode/table/meta.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import snippets from "./snippets";
|
|
2
2
|
import button from "../button/meta";
|
|
3
3
|
|
|
4
|
+
const getI18n = (item: {
|
|
5
|
+
"type": string,
|
|
6
|
+
"key": string,
|
|
7
|
+
"en": string,
|
|
8
|
+
"zh-CN": string,
|
|
9
|
+
"zh-HK": string
|
|
10
|
+
} | string) => {
|
|
11
|
+
if (typeof item === "string") {
|
|
12
|
+
return item
|
|
13
|
+
}
|
|
14
|
+
if (item.type === 'i18n') {
|
|
15
|
+
return item["zh-CN"] || item['zh-HK'] || item['en']
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
4
19
|
export default {
|
|
5
20
|
snippets,
|
|
6
21
|
componentName: "Table",
|
|
@@ -1058,7 +1073,7 @@ export default {
|
|
|
1058
1073
|
options: target.parent.parent.parent
|
|
1059
1074
|
.getPropValue("columns")
|
|
1060
1075
|
.map((item) => ({
|
|
1061
|
-
title: item.title || item.key,
|
|
1076
|
+
title: getI18n(item.title) || item.key,
|
|
1062
1077
|
value: item.key,
|
|
1063
1078
|
disabled: fieldsKey.includes(item.key),
|
|
1064
1079
|
})),
|
|
@@ -1215,7 +1230,7 @@ export default {
|
|
|
1215
1230
|
options: target.parent.parent.parent
|
|
1216
1231
|
.getPropValue("columns")
|
|
1217
1232
|
.map((item) => ({
|
|
1218
|
-
title: item.title || item.key,
|
|
1233
|
+
title: getI18n(item.title) || item.key,
|
|
1219
1234
|
value: item.key,
|
|
1220
1235
|
disabled: fieldsKey.includes(item.key),
|
|
1221
1236
|
})),
|
|
@@ -1438,7 +1453,7 @@ export default {
|
|
|
1438
1453
|
options: target.parent.parent.parent
|
|
1439
1454
|
.getPropValue("columns")
|
|
1440
1455
|
.map((item) => ({
|
|
1441
|
-
title: item.title || item.key,
|
|
1456
|
+
title: getI18n(item.title) || item.key,
|
|
1442
1457
|
value: item.key,
|
|
1443
1458
|
disabled: fieldsKey.includes(item.key),
|
|
1444
1459
|
})),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.201",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@dnd-kit/utilities": "^3.2.1",
|
|
58
58
|
"ahooks": "^3.7.6",
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
|
-
"@pisell/icon": "0.0.8",
|
|
61
60
|
"@pisell/utils": "1.0.21",
|
|
61
|
+
"@pisell/icon": "0.0.8",
|
|
62
62
|
"@pisell/date-picker": "1.0.67"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|