{ title:'邮费计算方式', slot:'freight', align:'center', minWidth:160, render: (h, params) => { if(this.freightList.length===1){ this.data1[params.index].freightType = this.freightList[0].keyId return h('span', this.freightList[0].keyValue) } else { return h('Select', { props: { transfer: true, value: this.data1[params.index].freightType }, style:{ width: '150px' }, on: { 'on-change': (event) => { this.data1[params.index].freightType = event }, }, }, this.freightList.map(function (item) { return h("Option",{ props:{ value: item.keyId, key: item.keyId, }, },item.keyValue) }) ) } } }
https://www.cnblogs.com/zzz-knight/p/11819979.html