vue2升vue3后部分异常解决

element-ui 升为 element-plus

首先建议参考element-plus官方站点: https://element-plus.org/zh-CN/

部分组件标签直接变更

如 el-submenu 变更为 el-sub-menu

浏览器提示 ElementPlusError: [ElOnlyChild] no valid child node found

哪个页面有该提示就搜 "slot=" ,然后到element-plus官方站点查现在应该怎么写。如 中的 button 原来是这么写的

<el-button slot="reference" type="warning" plain size="small">下载</el-button>

element-plus官网里改成这么写了

<template #reference>
  <el-button type="warning" plain size="small">下载</el-button>
</template>

目前发现有相关提示的标签有:

  • el-popconfirm
  • el-popover
posted @   我是包子  阅读(2329)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
历史上的今天:
2022-04-20 echarts 各个配置项详细说明总结
点击右上角即可分享
微信分享提示