iview 表格自定义render函数,如何放入radio单选?

图片说明

https://www.jianshu.com/p/fb224febe0e3

render函数中这样写,就可以实现。

render:(h, params) => {
return h('RadioGroup', [
h('Radio', {
style:{
margin:"15px 0px 10px",
display:"block"
},
props:{
"label":"组长"
},
on: {
click: () => {

                },
                change:() =>{

                }
              }
            }, '组长'),
            h('Radio', {
              style:{
                margin:"10px 0px 15px",
                display:"block"
              },
              props:{
                "label":"组员"
              },
              on: {
                click: () => {

                }
              }
            }, '组员')
          ]);
        }