Browse Source

fix(form): form-item v-if submit event error

richard1015 4 years ago
parent
commit
66f14926db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/__VUE/form/common.ts

+ 1 - 1
src/packages/__VUE/form/common.ts

@@ -44,7 +44,7 @@ export const component = {
             prop: vnode.props?.['prop'],
             rules: vnode.props?.['rules'] || []
           });
-        } else if (vnode.children?.length) {
+        } else if (Array.isArray(vnode.children) && vnode.children?.length) {
           task = task.concat(findFormItem(vnode.children as VNode[]));
         }
       });