在iview的表格组件中使用rander渲染RadioGroup 渲染出来的Radio组件无法选中
render: (h, params) => {
return h('RadioGroup',
{
props: {
value: this.resData.method1,
type: "button"
}
}, [h("Radio", {
props: {
label: "全部检查",
}
}),
h("Radio", {
props: {
label: "抽重点核查",
}
}),
h("Radio", {
props: {
label: "抽查",
}
})
]);
}
数据没有做双向绑定,所以导致组件不能选中