@airpower/web 0.2.45 → 0.2.47
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 +5 -6
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -981,20 +981,19 @@ class DecoratorUtil {
|
|
|
981
981
|
* @param isObject `可选` 是否是对象配置
|
|
982
982
|
*/
|
|
983
983
|
static getClassConfig(Class, classConfigKey, isObject = false) {
|
|
984
|
-
let classConfig = Reflect.get(Class, classConfigKey);
|
|
984
|
+
let classConfig = Reflect.get(new Class(), classConfigKey);
|
|
985
|
+
const SuperClass = Reflect.getPrototypeOf(Class);
|
|
985
986
|
if (!isObject) {
|
|
986
987
|
if (classConfig) {
|
|
987
988
|
return classConfig;
|
|
988
989
|
}
|
|
989
|
-
|
|
990
|
-
if (!SuperClass2 || SuperClass2.prototype.constructor.name === Transformer.name) {
|
|
990
|
+
if (!SuperClass || SuperClass.prototype.constructor.name === Transformer.name) {
|
|
991
991
|
return void 0;
|
|
992
992
|
}
|
|
993
|
-
return this.getClassConfig(
|
|
993
|
+
return this.getClassConfig(SuperClass, classConfigKey);
|
|
994
994
|
}
|
|
995
995
|
classConfig = classConfig || {};
|
|
996
|
-
|
|
997
|
-
if (!SuperClass || SuperClass.constructor.name === Transformer.name) {
|
|
996
|
+
if (!SuperClass || SuperClass.prototype.constructor.name === Transformer.name) {
|
|
998
997
|
return classConfig;
|
|
999
998
|
}
|
|
1000
999
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airpower/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.47",
|
|
5
5
|
"description": "AirPower-Web",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hamm",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@airpower/enum": "^0.0.10",
|
|
43
43
|
"@airpower/i18n": "^0.0.4",
|
|
44
|
-
"@airpower/transformer": "^0.1.
|
|
44
|
+
"@airpower/transformer": "^0.1.13",
|
|
45
45
|
"@airpower/util": "^0.1.3",
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.1",
|
|
47
47
|
"axios": "^1.8.4",
|