@byteluck-fe/model-driven-core-all 2.23.0-beta.9 → 2.23.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/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # `runtime-all`
2
-
3
- > TODO: description
4
-
5
- ## Usage
6
-
7
- ```
8
- const runtimeAll = require('runtime-all');
9
-
10
- // TODO: DEMONSTRATE API
11
- ```
1
+ # `runtime-all`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const runtimeAll = require('runtime-all');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -124,7 +124,7 @@ function _ts_generator(thisArg, body) {
124
124
  }
125
125
  import { getHackerControl } from './getHackerControl';
126
126
  import { nativeFetch, loadRemoteControl } from './loadRemoteScripts';
127
- import { RulesMessage } from '@byteluck-fe/model-driven-shared';
127
+ import { getLocaleText } from '@byteluck-fe/locale-message';
128
128
  export function registerByteluckControls(url, payload) {
129
129
  return _registerByteluckControls.apply(this, arguments);
130
130
  }
@@ -153,7 +153,7 @@ function _registerByteluckControls() {
153
153
  components = JSON.parse(componentsStr);
154
154
  return [
155
155
  4,
156
- loadRemoteControl("".concat(url, "/").concat(payload.type, ".js?v=").concat(version), payload.globalModules)
156
+ loadRemoteControl("".concat(url, "/").concat(payload.type, ".js?v=").concat(version, "&").concat(payload.isPc === false ? 'mobile' : 'desktop'), payload.globalModules)
157
157
  ];
158
158
  case 2:
159
159
  controls = _state.sent();
@@ -166,7 +166,7 @@ function _registerByteluckControls() {
166
166
  }
167
167
  });
168
168
  if (control === undefined) {
169
- control = getHackerControl(item.id, payload.type, RulesMessage.getMessage('loadCtrlError'));
169
+ control = getHackerControl(item.id, payload.type, getLocaleText('CMD.loadCtrlError', null, '内置组件加载错误'));
170
170
  }
171
171
  byteluckControls.set(item.id, {
172
172
  props: item,
@@ -212,7 +212,7 @@ function _registerCustomControls() {
212
212
  } else {
213
213
  url = item.designer;
214
214
  }
215
- url += '?v=' + item.version;
215
+ url += '?v=' + item.version + '&' + (payload.isPc === false ? 'mobile' : 'desktop');
216
216
  return [
217
217
  4,
218
218
  loadRemoteControl(url, refLibs)