前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >vue3常见问题及解决办法(一)——Failed to resolve component: Popconfirm

vue3常见问题及解决办法(一)——Failed to resolve component: Popconfirm

作者头像
用户1637609
发布2022-05-26 08:12:28
15.4K0
发布2022-05-26 08:12:28
举报
文章被收录于专栏:马洪彪马洪彪

问题描述

出现警告: runtime-core.esm-bundler.js:6584 [Vue warn]: Failed to resolve component: Popconfirm If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. at <List onVnodeUnmounted=fn ref=Ref< undefined > key="/lims/wf/resultentry/bysample/sample/List" >

问题分析

处理组件“Popconfirm”失败。 源文件在"/lims/wf/resultentry/bysample/sample/List"。 文件中删除时提示用户确认删除,使用了一个提示确认对话框组件,该组件未import。

代码语言:javascript
复制
<Popconfirm title="确定删除吗?" @confirm="onDeleteRow(props)">
    <a>删除</a>
</Popconfirm>

解决办法

引入该组件的定义。 import { Popconfirm } from 'ant-design-vue'

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-05-25,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 问题描述
  • 问题分析
  • 解决办法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档