猿问
antd组件的methods怎么调用
ant design组件里类似于这种方法是怎么调用的,这不像组件的参数。不知道怎么使用,求教。
千万里不及你
浏览 2022
回答 2
2回答
BIG阳
如果我按钮事件是在另一个组件这个怎么传输,给组件绑定ref打印出来的是这样的
0
0
0
大话西游666
constructor(props) { super(props); this.carouselRef = null; this.setCarouselRef = el => { this.carouselRef = el; }; } componentDidMount() { // 调用 if (this.carouselRef) this.carouselRef.next(); } // render部分 <Carousel ref={this.setCarouselRef} ></Carousel>
0
0
0
随时随地看视频
慕课网APP
我要回答