runtime-core.esm-bundler.js:38 [Vue warn]: Extraneous non-emits event listeners (showLabelDetail, success) 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.
时间: 2024-03-15 15:44:37 浏览: 339
vue-devtools-6.0.0-beta.10
这是一个 Vue.js 的警告信息,意思是组件中传递了一些非emits事件监听器(showLabelDetail和success),但是这些事件监听器无法被自动继承,因为组件渲染的是片段或文本根节点。如果这些事件监听器只是组件的自定义事件监听器,应该使用"emits"选项声明。这个警告可以通过在组件中添加emits选项来解决,例如:
```
emits: ['showLabelDetail', 'success']
```
阅读全文