iview table中利用render动态循环输出

{
                    title: "类型",
                    key: "organizaName",
                    render:(h,params) =>{
                      let arr =['类型一','类型二'];
                      let newArr = [];
                      arr.forEach((element,index) => {
                         newArr.push( h("span", {
                           style:{color:'red'}
                         },element))
                        })
                      return h('div',newArr)
                    }
                },

 

相关文章:

  • 2021-11-30
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案