Skip to content

Commit a28c67a

Browse files
committed
fix(Form): 去除type为cardList深层递归
1 parent aaa12be commit a28c67a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/core/src/Form/formList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const FormList = ({
185185
return null;
186186
}
187187
if (v.type === 'cardList') {
188-
return <FormList formListValue={v}></FormList>;
188+
return;
189189
}
190190
return (
191191
<View key={i} style={styles.form_items_container}>

packages/core/src/Form/hooks/useForm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export default function useForm<
4040
};
4141

4242
const innerValidate = () => {
43-
const { showMessages, errorMessages } = validator;
44-
console.log('errorMessages', errorMessages);
43+
const { showMessages } = validator;
4544
if (changeValidate) {
4645
showMessages?.();
4746
forceUpdate?.();

0 commit comments

Comments
 (0)