Closed zwyao314 closed 2 years ago
代码:
this.tabs.forEach(tab => { let formRef = this.$refs[tab.key]; if (tab.isForm) { let formValidator = formRef.validateForm(); // 该子组件的方法为undefined } });
代码: