单选和多选在table里的报错问题Blocked aria-hidden on a <input> element because the element that just
单选在main.js里 //table单选报错问题 Vue.directive('removeAriaHidden', { bind(el, binding) { const ariaEls = el.querySelectorAll('.el-radio__original') ariaEls.forEach((item) => { item.removeAttribute('aria-hidden') }) } })
多选在main.js里 //table单选报错问题 Vue.directive('removeAriaHidden', { bind(el, binding) { const ariaEls = el.querySelectorAll('.el-checkbox__original') ariaEls.forEach((item) => { item.removeAttribute('aria-hidden') }) } })
使用 <el-radio v-model="enterpriseIds" :label="scope.row.sort" @input="onRowSelected(scope.row)" v-removeAriaHidden /> 或者 <el-radio-group v-model="ruleForm.isLimit" v-removeAriaHidden> <el-radio :value="2" :label="false" size="large">否</el-radio> <el-radio :value="1" :label="true" size="large">是</el-radio> </el-radio-group>
本文来自博客园,作者:prince11,转载请注明原文链接:https://www.cnblogs.com/prince11/p/18410170