控制台报错

来源:5-4 方案落地:封装 langSelect 组件

你说努力多好

2022-02-15

  1. runtime-core.esm-bundler.js?5c40:6875 [Vue warn]: Extraneous non-props attributes (tabindex, aria-describedby, class, style) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
    at <Index icon=“language” tabindex=“0” aria-describedby=“el-popper-7260” … >
    at <ElPopper arrowOffset=5 appendToBody=true autoClose=0 … >
    at
    at <ElPopper ref=“triggerVnode” visible=false onUpdate:visible=fn … >
    at <ElDropdown trigger=“click” onCommand=fn class=“international” >
    at
    at
    at <Index onVnodeUnmounted=fn ref=Ref< undefined > >
    at
    at

  2. [Vue warn]: Extraneous non-emits event listeners (mouseenter, mouseleave) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the “emits” option.
    at <Index icon=“language” tabindex=“0” aria-describedby=“el-popper-7260” … >

  3. Runtime directive used on component with non-element root node. The directives will not function as intended.
    at <Index icon=“language” tabindex=“0” aria-describedby=“el-popper-7260” … >

  4. [Vue warn]: A plugin must either be a function or an object with an “install” function.

  5. Component “default” in record with path “/” is a function that does not return a Promise. If you were passing a functional component, make sure to add a “displayName” to the component. This will break in production if not fixed.

写回答

1回答

Sunday

2022-02-16

你好

这是一个 vue 的警告。建议你 给组件仅呈现一个根元素

0
7
weixin_慕侠9557684
回复
Ex_Life
给 svg-icon 外面加个DIV就好了
2022-12-24
共7条回复

基于Vue3新标准,打造后台综合解决方案

基于Vue3重写Vue-element-admin,打造后台前端综合解决方案

1941 学习 · 1687 问题

查看课程