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)
                    }
                },
原文地址:https://www.cnblogs.com/chenwan1218/p/13559748.html