当点击页面时出现
Cannot read property 'setAttribute' of null TypeError: Cannot read property 'setAttribute' of null at VueComponent.removeTabindex (webpack-internal:///./node_modules/element-ui/lib/element-ui.common.js:249:60) at VueComponent.hide (webpack-internal:///./node_modules/element-ui/lib/element-ui.common.js:238:500) at Object.eval [as documentHandler] (webpack-internal:///./node_modules/element-ui/lib/utils/clickoutside.js:33:36) at eval (webpack-internal:///./node_modules/element-ui/lib/utils/clickoutside.js:22:22) at Array.forEach (<anonymous>) at HTMLDocument.eval (webpack-internal:///./node_modules/element-ui/lib/utils/clickoutside.js:21:12)
是因为使用了el-dropdown组件,该组件需要搭配el-dropdown-menu一起使用。