小码问答,有问必答!

Extraneous non-emits event listeners were passed to component如何解决

我自己做了个组件,<template>下直接是个<el-dialog>,给dialog中table的row添加了个select事件报如下异常:

Extraneous non-emits event listeners (select) 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. 

请大神们给指导。

WEB前端

收藏

1个回答

我要回答