@airpower/web 1.2.0 → 1.2.1
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/dist/main.js +9 -6
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -9000,18 +9000,21 @@ function requireCryptoJs() {
|
|
|
9000
9000
|
}
|
|
9001
9001
|
var cryptoJsExports = requireCryptoJs();
|
|
9002
9002
|
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
9003
|
-
var __defProp$4 = Object.defineProperty;
|
|
9004
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9005
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9006
9003
|
class Enum {
|
|
9004
|
+
/**
|
|
9005
|
+
* ### 枚举的值
|
|
9006
|
+
*/
|
|
9007
|
+
key;
|
|
9008
|
+
/**
|
|
9009
|
+
* ### 枚举的描述
|
|
9010
|
+
*/
|
|
9011
|
+
label;
|
|
9007
9012
|
/**
|
|
9008
9013
|
* ### 实例化创建一个枚举项目
|
|
9009
9014
|
* @param key 枚举值
|
|
9010
9015
|
* @param label 枚举描述
|
|
9011
9016
|
*/
|
|
9012
9017
|
constructor(key, label) {
|
|
9013
|
-
__publicField(this, "key");
|
|
9014
|
-
__publicField(this, "label");
|
|
9015
9018
|
this.key = key;
|
|
9016
9019
|
if (label) {
|
|
9017
9020
|
this.label = label;
|
|
@@ -9031,7 +9034,7 @@ class Enum {
|
|
|
9031
9034
|
*/
|
|
9032
9035
|
static getLabel(key, defaultLabel = "-") {
|
|
9033
9036
|
const item = this.get(key);
|
|
9034
|
-
return
|
|
9037
|
+
return item?.label || defaultLabel;
|
|
9035
9038
|
}
|
|
9036
9039
|
/**
|
|
9037
9040
|
* ### 将枚举转为数组
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airpower/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "AirPower-Web",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hamm",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@airpower/enum": "^1.2.
|
|
42
|
+
"@airpower/enum": "^1.2.1",
|
|
43
43
|
"@airpower/i18n": "^1.2.0",
|
|
44
44
|
"@airpower/transformer": "^1.2.0",
|
|
45
|
-
"@airpower/util": "^1.2.
|
|
45
|
+
"@airpower/util": "^1.2.1",
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.1",
|
|
47
47
|
"axios": "^1.10.0",
|
|
48
48
|
"element-plus": "^2.10.3",
|