@farris/jit-engine 1.3.301 → 1.3.302

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,4 +1,4 @@
1
- 1.3.301
1
+ 1.3.302
2
2
 
3
3
  移动页面标题、tab过滤条件修复
4
4
 
@@ -144,6 +144,7 @@ class VueViewModelsCreator {
144
144
  this.handleValidProps(item.component.template, item.form);
145
145
  }
146
146
  }
147
+ this.addcontrolStateExtend(item, options);
147
148
  }
148
149
  if (!toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(item.allowEmpty) || !toolhepler_1.ToolHelper.isNullOrUndefinedOrEmpty(item.entityDisplayName)) {
149
150
  const relateEntity = vue_entities_creator_1.VueEntitiesCreator.getSingleInstance().getEntityInfoByBindto(viewModelParameter.entity, item.bindTo);
@@ -155,11 +156,6 @@ class VueViewModelsCreator {
155
156
  }
156
157
  }
157
158
  });
158
- viewModelList.forEach((item) => {
159
- if (item.component && item.component.template) {
160
- this.addcontrolStateExtend(item, options);
161
- }
162
- });
163
159
  return viewModelList;
164
160
  }
165
161
  addUiState(item, options) {
@@ -684,7 +680,12 @@ class VueViewModelsCreator {
684
680
  control[controlProperty + '_originalValue'] = lodash_1.cloneDeep(control[controlProperty]);
685
681
  state.originalValue[stateProperty] = lodash_1.cloneDeep(control[controlProperty]);
686
682
  if (control[controlProperty] instanceof vue_state_1.VueState) {
687
- control[controlProperty].value = `uiState.${this.generateStateName(control.id)}.${stateProperty}`;
683
+ const path = `${this.generateStateName(control.id)}.${stateProperty}`;
684
+ const vueState = new vue_state_1.VueState({
685
+ path,
686
+ "type": "Variable"
687
+ });
688
+ control[controlProperty] = vueState;
688
689
  }
689
690
  else {
690
691
  control[controlProperty] = `uiState.${this.generateStateName(control.id)}.${stateProperty}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/jit-engine",
3
- "version": "1.3.301",
3
+ "version": "1.3.302",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {