@byteluck-fe/model-driven-engine 2.23.1-beta.3-zt → 2.23.1-beta.4-zt

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.
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2022-04-15 14:06:03
4
- * @LastEditors: SuperLuckyqi
5
- * @LastEditTime: 2024-11-08 11:17:53
6
- * @FilePath: /model-driven/packages/engine/src/plugins/StylePlugin.ts
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2022-04-15 14:06:03
4
+ * @LastEditors: SuperLuckyqi
5
+ * @LastEditTime: 2024-11-08 11:17:53
6
+ * @FilePath: /model-driven/packages/engine/src/plugins/StylePlugin.ts
7
7
  */ function _class_call_check(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
9
9
  throw new TypeError("Cannot call a class as a function");
@@ -61,8 +61,7 @@ export var StylePlugin = /*#__PURE__*/ function() {
61
61
  dom === null || dom === void 0 ? void 0 : dom.appendChild(style);
62
62
  var cssStyleText;
63
63
  if (this.isPc) {
64
- cssStyleText = compiledStyle;
65
- // `.render-engine-${engine.id} ${compiledStyle} `
64
+ cssStyleText = ".render-engine-".concat(engine.id, "{ ").concat(compiledStyle, " } ");
66
65
  } else {
67
66
  cssStyleText = compiledStyle;
68
67
  }