antd 动态加载多个组件

    if(dataIndex === 'filepath'){
            return(
              <div className={styles.Cell}
                   key={key}>
                {this.state.files.map(item =>{ return  <FileButton file=
                    {item [dataIndex]}/>})} 
              </div>
            );
          }
发布了180 篇原创文章 · 获赞 27 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/sinat_28238111/article/details/102903666