star-horse-lowcode 2.8.15 → 2.8.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/README.md +2 -2
- package/dist/index.es.js +18 -13
- package/dist/types/index.d.ts +17 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ app.use(StarHorseLowCode,{
|
|
|
22
22
|
//不传此参数则使用插件内部的axios header配置参数
|
|
23
23
|
//axiosInstance:axiosInstance,
|
|
24
24
|
//增加国际化配置
|
|
25
|
-
//lang:'
|
|
25
|
+
//lang:'zh_CN'||'en_US'||'zh_TW'||'ja_JP'||'de_DE' //默认为zh_CN
|
|
26
26
|
elementPlusOptions: {
|
|
27
27
|
locale: zhCn,
|
|
28
28
|
//...其它配置
|
|
@@ -363,6 +363,6 @@ barcode 条形码组件
|
|
|
363
363
|
修复StarHorseJsonEditor 双向数据绑定时,修改数据不响应问题
|
|
364
364
|
48. 2025-09-06 升级依赖插件
|
|
365
365
|
49. 2025-09-08 修复StarHorseDraggable 组件插槽和设计与非设计模式时的数据控制问题
|
|
366
|
-
50. 2025-09-12
|
|
366
|
+
50. 2025-09-12 增加国际化语言包,中文(zh_CN)英文(en_US),繁体中文(zh_TW),日文(ja_JP),德文(de_DE)
|
|
367
367
|
|
|
368
368
|
|
package/dist/index.es.js
CHANGED
|
@@ -68631,11 +68631,11 @@ const de_DE = {
|
|
|
68631
68631
|
};
|
|
68632
68632
|
|
|
68633
68633
|
var LangType = /* @__PURE__ */ ((LangType2) => {
|
|
68634
|
-
LangType2["EN_US"] = "
|
|
68635
|
-
LangType2["ZH_CN"] = "
|
|
68636
|
-
LangType2["ZH_TW"] = "
|
|
68637
|
-
LangType2["JA_JP"] = "
|
|
68638
|
-
LangType2["DE_DE"] = "
|
|
68634
|
+
LangType2["EN_US"] = "en_US";
|
|
68635
|
+
LangType2["ZH_CN"] = "zh_CN";
|
|
68636
|
+
LangType2["ZH_TW"] = "zh_TW";
|
|
68637
|
+
LangType2["JA_JP"] = "ja_JP";
|
|
68638
|
+
LangType2["DE_DE"] = "de_DE";
|
|
68639
68639
|
return LangType2;
|
|
68640
68640
|
})(LangType || {});
|
|
68641
68641
|
|
|
@@ -68644,11 +68644,11 @@ function getLang() {
|
|
|
68644
68644
|
}
|
|
68645
68645
|
|
|
68646
68646
|
const language$1 = {
|
|
68647
|
-
|
|
68648
|
-
|
|
68649
|
-
|
|
68650
|
-
|
|
68651
|
-
|
|
68647
|
+
[LangType.ZH_CN]: zh_CN,
|
|
68648
|
+
[LangType.EN_US]: en_US,
|
|
68649
|
+
[LangType.ZH_TW]: zh_TW,
|
|
68650
|
+
[LangType.JA_JP]: ja_JP,
|
|
68651
|
+
[LangType.DE_DE]: de_DE
|
|
68652
68652
|
};
|
|
68653
68653
|
const currentLang = window.__starHorseHostLang__ || getLang() || LangType.ZH_CN;
|
|
68654
68654
|
const isEn = currentLang === LangType.EN_US;
|
|
@@ -68656,18 +68656,23 @@ const isZH = currentLang === LangType.ZH_CN;
|
|
|
68656
68656
|
let langSet = language$1[currentLang];
|
|
68657
68657
|
function i18n(key, ...args) {
|
|
68658
68658
|
const result = langSet[key];
|
|
68659
|
-
const resultList = [];
|
|
68660
68659
|
if (result === void 0) {
|
|
68661
68660
|
return `[${key}]`;
|
|
68662
68661
|
} else {
|
|
68663
|
-
|
|
68662
|
+
if (typeof result === "function") {
|
|
68663
|
+
if (args.length > 0) {
|
|
68664
|
+
return result(...args);
|
|
68665
|
+
}
|
|
68666
|
+
return result;
|
|
68667
|
+
}
|
|
68668
|
+
const resultList = [result];
|
|
68664
68669
|
args.forEach((arg) => {
|
|
68665
68670
|
const temp = langSet[arg];
|
|
68666
68671
|
if (temp) {
|
|
68667
68672
|
resultList.push(temp);
|
|
68668
68673
|
}
|
|
68669
68674
|
});
|
|
68670
|
-
return resultList.join("
|
|
68675
|
+
return resultList.join("en_US" === LangType.EN_US ? " " : "");
|
|
68671
68676
|
}
|
|
68672
68677
|
}
|
|
68673
68678
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ default: any[];
|
|
|
104
104
|
};
|
|
105
105
|
btnTextContinue: {
|
|
106
106
|
type: StringConstructor;
|
|
107
|
-
default:
|
|
107
|
+
default: any;
|
|
108
108
|
};
|
|
109
109
|
title: {
|
|
110
110
|
type: StringConstructor;
|
|
@@ -199,7 +199,7 @@ default: any[];
|
|
|
199
199
|
};
|
|
200
200
|
btnTextContinue: {
|
|
201
201
|
type: StringConstructor;
|
|
202
|
-
default:
|
|
202
|
+
default: any;
|
|
203
203
|
};
|
|
204
204
|
title: {
|
|
205
205
|
type: StringConstructor;
|
|
@@ -3041,11 +3041,11 @@ showFormItem: boolean;
|
|
|
3041
3041
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3042
3042
|
|
|
3043
3043
|
declare enum LangType {
|
|
3044
|
-
EN_US = "
|
|
3045
|
-
ZH_CN = "
|
|
3046
|
-
ZH_TW = "
|
|
3047
|
-
JA_JP = "
|
|
3048
|
-
DE_DE = "
|
|
3044
|
+
EN_US = "en_US",
|
|
3045
|
+
ZH_CN = "zh_CN",
|
|
3046
|
+
ZH_TW = "zh_TW",
|
|
3047
|
+
JA_JP = "ja_JP",
|
|
3048
|
+
DE_DE = "de_DE"
|
|
3049
3049
|
}
|
|
3050
3050
|
|
|
3051
3051
|
/**
|
|
@@ -4292,7 +4292,7 @@ of<T>(...items: T[]): T[];
|
|
|
4292
4292
|
readonly [Symbol.species]: ArrayConstructor;
|
|
4293
4293
|
};
|
|
4294
4294
|
default: () => {
|
|
4295
|
-
name:
|
|
4295
|
+
name: any;
|
|
4296
4296
|
value: string;
|
|
4297
4297
|
}[];
|
|
4298
4298
|
};
|
|
@@ -4375,7 +4375,7 @@ of<T>(...items: T[]): T[];
|
|
|
4375
4375
|
readonly [Symbol.species]: ArrayConstructor;
|
|
4376
4376
|
};
|
|
4377
4377
|
default: () => {
|
|
4378
|
-
name:
|
|
4378
|
+
name: any;
|
|
4379
4379
|
value: string;
|
|
4380
4380
|
}[];
|
|
4381
4381
|
};
|
|
@@ -4626,7 +4626,7 @@ of<T>(...items: T[]): T[];
|
|
|
4626
4626
|
readonly [Symbol.species]: ArrayConstructor;
|
|
4627
4627
|
};
|
|
4628
4628
|
default: () => {
|
|
4629
|
-
name:
|
|
4629
|
+
name: any;
|
|
4630
4630
|
value: string;
|
|
4631
4631
|
}[];
|
|
4632
4632
|
};
|
|
@@ -4732,7 +4732,7 @@ of<T>(...items: T[]): T[];
|
|
|
4732
4732
|
readonly [Symbol.species]: ArrayConstructor;
|
|
4733
4733
|
};
|
|
4734
4734
|
default: () => {
|
|
4735
|
-
name:
|
|
4735
|
+
name: any;
|
|
4736
4736
|
value: string;
|
|
4737
4737
|
}[];
|
|
4738
4738
|
};
|
|
@@ -5961,7 +5961,7 @@ default: boolean;
|
|
|
5961
5961
|
};
|
|
5962
5962
|
treeTitle: {
|
|
5963
5963
|
type: StringConstructor;
|
|
5964
|
-
default: () =>
|
|
5964
|
+
default: () => any;
|
|
5965
5965
|
};
|
|
5966
5966
|
expand: {
|
|
5967
5967
|
type: BooleanConstructor;
|
|
@@ -6016,7 +6016,7 @@ type: PropType<ApiUrls>;
|
|
|
6016
6016
|
};
|
|
6017
6017
|
btnTitle: {
|
|
6018
6018
|
type: StringConstructor;
|
|
6019
|
-
default: () =>
|
|
6019
|
+
default: () => any;
|
|
6020
6020
|
};
|
|
6021
6021
|
btnVisible: {
|
|
6022
6022
|
type: BooleanConstructor;
|
|
@@ -6024,7 +6024,7 @@ default: boolean;
|
|
|
6024
6024
|
};
|
|
6025
6025
|
rmvTitle: {
|
|
6026
6026
|
type: StringConstructor;
|
|
6027
|
-
default: () =>
|
|
6027
|
+
default: () => any;
|
|
6028
6028
|
};
|
|
6029
6029
|
rmvVisible: {
|
|
6030
6030
|
type: BooleanConstructor;
|
|
@@ -6076,7 +6076,7 @@ default: boolean;
|
|
|
6076
6076
|
};
|
|
6077
6077
|
treeTitle: {
|
|
6078
6078
|
type: StringConstructor;
|
|
6079
|
-
default: () =>
|
|
6079
|
+
default: () => any;
|
|
6080
6080
|
};
|
|
6081
6081
|
expand: {
|
|
6082
6082
|
type: BooleanConstructor;
|
|
@@ -6131,7 +6131,7 @@ type: PropType<ApiUrls>;
|
|
|
6131
6131
|
};
|
|
6132
6132
|
btnTitle: {
|
|
6133
6133
|
type: StringConstructor;
|
|
6134
|
-
default: () =>
|
|
6134
|
+
default: () => any;
|
|
6135
6135
|
};
|
|
6136
6136
|
btnVisible: {
|
|
6137
6137
|
type: BooleanConstructor;
|
|
@@ -6139,7 +6139,7 @@ default: boolean;
|
|
|
6139
6139
|
};
|
|
6140
6140
|
rmvTitle: {
|
|
6141
6141
|
type: StringConstructor;
|
|
6142
|
-
default: () =>
|
|
6142
|
+
default: () => any;
|
|
6143
6143
|
};
|
|
6144
6144
|
rmvVisible: {
|
|
6145
6145
|
type: BooleanConstructor;
|