下载地址https://unpkg.com/browse/element-ui@2.15.6/版本自己可以改

如何下载在网站看https://www.jianshu.com/p/6b58bdc9fc6f

快速入门&布局

image.png

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  7. </head>
  8. <body>
  9. <div id="app">
  10. <el-row>
  11. <el-button>默认按钮</el-button>
  12. <el-button type="primary">主要按钮</el-button>
  13. <el-button type="success">成功按钮</el-button>
  14. <el-button type="info">信息按钮</el-button>
  15. <el-button type="warning">警告按钮</el-button>
  16. <el-button type="danger">危险按钮</el-button>
  17. </el-row>
  18. <el-row>
  19. <el-button plain>朴素按钮</el-button>
  20. <el-button type="primary" plain>主要按钮</el-button>
  21. <el-button type="success" plain>成功按钮</el-button>
  22. <el-button type="info" plain>信息按钮</el-button>
  23. <el-button type="warning" plain>警告按钮</el-button>
  24. <el-button type="danger" plain>危险按钮</el-button>
  25. </el-row>
  26. <el-row>
  27. <el-button round>圆角按钮</el-button>
  28. <el-button type="primary" round>主要按钮</el-button>
  29. <el-button type="success" round>成功按钮</el-button>
  30. <el-button type="info" round>信息按钮</el-button>
  31. <el-button type="warning" round>警告按钮</el-button>
  32. <el-button type="danger" round>危险按钮</el-button>
  33. </el-row>
  34. <el-row>
  35. <el-button icon="el-icon-search" circle></el-button>
  36. <el-button type="primary" icon="el-icon-edit" circle></el-button>
  37. <el-button type="success" icon="el-icon-check" circle></el-button>
  38. <el-button type="info" icon="el-icon-message" circle></el-button>
  39. <el-button type="warning" icon="el-icon-star-off" circle></el-button>
  40. <el-button type="danger" icon="el-icon-delete" circle></el-button>
  41. </el-row>
  42. </div>
  43. <script src="./js/vue.js"></script><!-- vue 必须先于 elementUI 的 index.js-->
  44. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  45. <script>
  46. new Vue({
  47. el: "#app",
  48. })
  49. </script>
  50. </body>
  51. </html>

vue 必须先于 elementUI 的 index.js

image.png
总之还是复制粘贴就ok,懒得演示了

表格

image.png