mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-01-15 01:38:11 +00:00
🐛 修复form组件删除bug
This commit is contained in:
parent
a50be19eed
commit
3d077ce7a5
@ -83,7 +83,7 @@ const FormItems = (props: FormItemsProps) => {
|
||||
};
|
||||
|
||||
const handleDelItem = (item: baseFormUnion) => {
|
||||
let newData = formData.filter(v => v.type !== item.type);
|
||||
let newData = formData.filter(v => v.id !== item.id);
|
||||
setFormData(newData);
|
||||
onChange && onChange(newData);
|
||||
};
|
||||
|
||||
@ -70,6 +70,10 @@ const Login = () => {
|
||||
登录
|
||||
</Button>
|
||||
</Form.Item>
|
||||
<div className={styles.safeWrap}>
|
||||
登录后即代表您已经遵循
|
||||
<Button type="link">《Dooring平台使用安全声明》</Button>
|
||||
</div>
|
||||
</Form>
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user