叶枫

Results 198 comments of 叶枫

> i have the same issue. eslint: 7.2

@BenjaminVanRyseghem

> > > That's just how javascript works.... just string ![image](https://user-images.githubusercontent.com/7971419/183833181-c9c3de3d-760d-4e7c-b097-6fe8afb50ceb.png)

> I'm not getting the component to call onDragEnd, the onDragStart function is called but the drag end is never called. Would anyone have any ideas? > > ![image](https://user-images.githubusercontent.com/19439397/176445801-55602289-963b-4b4c-9db3-488b56cb09bd.png) >...

有加过,不过 Taro 的好多 API 都没了,使用起来不完善

现有能满足就不增加 API 了,到时候只会是负累,可以自己封装 Form,对于需要使用的语法糖,自己隋意添加。 ``` form.setFields( [ [[field.name, 'userName'], 'XiaoMing'], [[field.name, 'gender'], 'Male'], ].map(item => ({ name: item[0], value: item[1] })) ); ```

setFieldsValue 包含了设置 error, setFields 需要自己设置 error ``` form.setFields( [ [[field.name, 'userName'], 'XiaoMing'], [[field.name, 'gender'], 'Male'], ].map(item => ({ name: item[0], value: item[1],error:[] })) ); ```