鍍金池/ 問答/網(wǎng)絡(luò)安全  HTML/ iview在table中使用render渲染RadioGroup 其渲染出來的組

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: "抽重點(diǎn)核查",
          }
        }),
        h("Radio", {
          props: {
            label: "抽查",
          }
        })
      ]);
      }

圖片描述

回答
編輯回答
負(fù)我心

數(shù)據(jù)沒有做雙向綁定,所以導(dǎo)致組件不能選中

2017年1月16日 12:55