问题描述:

html:<el-radio label="6" disabled='true'>radio不可用</el-radio>

报错:type check failed for prop "disabled". Expected Boolean, got String with value "true".

解決方法:

html:

<el-radio label="6" :disabled='radioType'>radio不可用</el-radio>

js:

export default {

  data() {

      return {

        radioType:true,

                 }

            }

}

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐