@gct-paas/core 0.0.1 → 0.1.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.
|
@@ -143,15 +143,18 @@ class PluginPgkUtil {
|
|
|
143
143
|
plugins.forEach((plugin) => {
|
|
144
144
|
const module = moduleMap[plugin.key];
|
|
145
145
|
if (platform === Platform.WEB) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
() => new
|
|
149
|
-
|
|
146
|
+
const cls = module.web ?? module.default;
|
|
147
|
+
if (cls) {
|
|
148
|
+
_gct.register.designer.web.register(plugin.key, () => new cls());
|
|
149
|
+
}
|
|
150
150
|
} else {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
const cls = module.mobile ?? module.default;
|
|
152
|
+
if (cls) {
|
|
153
|
+
_gct.register.designer.mobile.register(
|
|
154
|
+
plugin.key,
|
|
155
|
+
() => new cls()
|
|
156
|
+
);
|
|
157
|
+
}
|
|
155
158
|
}
|
|
156
159
|
});
|
|
157
160
|
});
|
|
@@ -175,15 +178,15 @@ class PluginPgkUtil {
|
|
|
175
178
|
configs.forEach((plugin) => {
|
|
176
179
|
const module = moduleMap[plugin.key];
|
|
177
180
|
if (platform === Platform.WEB) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
() => new
|
|
181
|
-
|
|
181
|
+
const cls = module.web ?? module.default;
|
|
182
|
+
if (cls) {
|
|
183
|
+
_gct.register.designer.web.register(plugin.key, () => new cls());
|
|
184
|
+
}
|
|
182
185
|
} else {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
() => new
|
|
186
|
-
|
|
186
|
+
const cls = module.mobile ?? module.default;
|
|
187
|
+
if (cls) {
|
|
188
|
+
_gct.register.designer.mobile.register(plugin.key, () => new cls());
|
|
189
|
+
}
|
|
187
190
|
}
|
|
188
191
|
});
|
|
189
192
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"vue-i18n": "9.6.5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@gct-paas/build": "0.
|
|
60
|
-
"@gct-paas/cli": "0.
|
|
59
|
+
"@gct-paas/build": "0.1.1",
|
|
60
|
+
"@gct-paas/cli": "0.1.1",
|
|
61
61
|
"@types/path-browserify": "^1.0.3",
|
|
62
62
|
"@types/qs": "^6.9.18",
|
|
63
63
|
"fs-extra": "^11.3.0"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"vue": "^3.x"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "7a166eedf06af8342dfe256c5c57dfe2a304a9bd"
|
|
69
69
|
}
|