控制台报错
来源:5-4 方案落地:封装 langSelect 组件
你说努力多好
2022-02-15
-
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 -
[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” … > -
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” … > -
[Vue warn]: A plugin must either be a function or an object with an “install” function.
-
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 的警告。建议你 给组件仅呈现一个根元素
072022-12-24
相似问题