cloud-web-corejs 1.0.324 → 1.0.325

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.324",
4
+ "version": "1.0.325",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "check:package-resources": "node build/check-package-resources.js",
@@ -108,9 +108,16 @@ export default {
108
108
  watch: {
109
109
  visibleTabs(tabs) {
110
110
  const formRef = this.getFormRef();
111
- if (
111
+ /* 当前表单根组件是 formDynamicFieldMixin,没有 isFieldControlEnabled。
112
+ 开关与 publish_dev 的该方法一致:formConfig.dynamicFieldEnabled。
113
+ 直接调用缺失方法会在页签显隐时抛 TypeError。 */
114
+ const fieldControlOn = !!(
112
115
  formRef
113
- && formRef.isFieldControlEnabled()
116
+ && formRef.formConfig
117
+ && formRef.formConfig.dynamicFieldEnabled
118
+ );
119
+ if (
120
+ fieldControlOn
114
121
  && !tabs.some(tab => tab.options.name === this.activeTabName)
115
122
  ) {
116
123
  this.activeTabName = tabs.length ? tabs[0].options.name : "";