@byteluck-fe/model-driven-engine 2.22.3-beta.1 → 2.22.3-beta.10

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.
@@ -329,7 +329,7 @@ function _ts_generator(thisArg, body) {
329
329
  }
330
330
  }
331
331
  import { isDataBind } from '@byteluck-fe/model-driven-core';
332
- import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, RulesMessage, updateValueFromKeys, warn, Watcher, isBuiltInControls } from '@byteluck-fe/model-driven-shared';
332
+ import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, updateValueFromKeys, warn, Watcher, isBuiltInControls } from '@byteluck-fe/model-driven-shared';
333
333
  import { Runtime } from './Runtime';
334
334
  import { Store } from './Store';
335
335
  import { findItem, proxyState } from './proxyState';
@@ -360,7 +360,6 @@ var Engine = /*#__PURE__*/ function(Watcher) {
360
360
  _this.$options = Object.freeze(props);
361
361
  var _this_$options = _this.$options, _this_$options_autoMount = _this_$options.autoMount, autoMount = _this_$options_autoMount === void 0 ? true : _this_$options_autoMount, schema = _this_$options.schema, beforeCreateInstance = _this_$options.beforeCreateInstance, externalParams = _this_$options.externalParams, _this_$options_language = _this_$options.// fieldModel,
362
362
  language, language = _this_$options_language === void 0 ? DEFAULT_LOCALE : _this_$options_language, _this_$options_debug = _this_$options.debug, debug = _this_$options_debug === void 0 ? false : _this_$options_debug, messagesI18n = _this_$options.messagesI18n, children = _this_$options.children;
363
- RulesMessage.setLocale(language, messagesI18n);
364
363
  _this.debug = debug;
365
364
  _this.runtime = new Runtime({
366
365
  schema: schema,
@@ -2,7 +2,7 @@
2
2
  * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
3
  * @Date: 2022-04-15 14:06:03
4
4
  * @LastEditors: SuperLuckyqi
5
- * @LastEditTime: 2024-07-24 11:38:32
5
+ * @LastEditTime: 2025-04-10 10:23:07
6
6
  * @FilePath: /model-driven/packages/engine/src/plugins/StylePlugin.ts
7
7
  */ function _class_call_check(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
@@ -61,7 +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 = "[data-engine-id='".concat(engine.id, "']{ ").concat(compiledStyle, " }");
64
+ cssStyleText = ".render-engine-".concat(engine.id, "{ ").concat(compiledStyle, " }");
65
65
  } else {
66
66
  cssStyleText = compiledStyle;
67
67
  }