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
|
@@ -108,9 +108,16 @@ export default {
|
|
|
108
108
|
watch: {
|
|
109
109
|
visibleTabs(tabs) {
|
|
110
110
|
const formRef = this.getFormRef();
|
|
111
|
-
|
|
111
|
+
/* 当前表单根组件是 formDynamicFieldMixin,没有 isFieldControlEnabled。
|
|
112
|
+
开关与 publish_dev 的该方法一致:formConfig.dynamicFieldEnabled。
|
|
113
|
+
直接调用缺失方法会在页签显隐时抛 TypeError。 */
|
|
114
|
+
const fieldControlOn = !!(
|
|
112
115
|
formRef
|
|
113
|
-
&& formRef.
|
|
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 : "";
|