0
点赞
收藏
分享

微信扫一扫

《vue 3.0探险记》- 尝试安装Element UI Plus

楚木巽 2021-09-28 阅读 46

在之前的一篇文章中《vue 3.0探险记》- 尝试安装Element UI,本以为element ui不支持vue3.0了,然而现在看来是我错了。Element UI Plus登场了,我来探索探索。

Element UI Plus github: https://github.com/element-plus/element-plus
Element UI Plus 指南:https://element-plus.gitee.io/#/zh-CN

开始尝试

第一步: 安装
npm install element-plus --save

第二步:引入Element UI 到项目里面(全部引入)

第三步: 使用

在app.vue中添加几个button:

  <div>
    <el-row>
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>
  </div>
第四步:运行

举报

相关推荐

0 条评论