使用refs传递事件

91 阅读1分钟

想要使用AntDesign中的setFieldsValue,但是会发现setFieldsValue是form组件的事件。所以想到用ref进行组件间的传递事件。 首先引入:

image.png

然后使用

image.png