iview在table中使用render渲染RadioGroup 其渲染出来的组件不能选中?

在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: "抽查",
          }
        })
      ]);
      }

图片描述

阅读 7.1k
1 个回答

数据没有做双向绑定,所以导致组件不能选中

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进