1. // buttondetail.vue文件
2. <template>
3. <div>
4.
5. <h2>type属性控制颜色</h2>
6. <el-row>
7. <el-button>默认按钮</el-button>
8. <el-button type="primary">主要按钮</el-button>
9. <el-button type="success">成功按钮</el-button>
10. <el-button type="info">信息按钮</el-button>
11. <el-button type="warning">警告按钮</el-button>
12. <el-button type="danger">危险按钮</el-button>
13. </el-row>
14.
15. <h2>size属性控制大小</h2>
16. <el-row>
17. <el-button size="medium">中等按钮</el-button>
18. <el-button size="small">小按钮</el-button>
19. <el-button size="mini">mini按钮</el-button>
20. </el-row>
21.
22. <h2>plain属性鼠标移动按钮上颜色加深</h2>
23. <el-row>
24. <el-button plain>朴素按钮</el-button>
25. <el-button type="primary" plain>主要按钮</el-button>
26. <el-button type="success" plain>成功按钮</el-button>
27. <el-button type="info" plain>信息按钮</el-button>
28. <el-button type="warning" plain>警告按钮</el-button>
29. <el-button type="danger" plain>危险按钮</el-button>
30. </el-row>
31.
32. <h2>round属性控制圆角</h2>
33. <el-row>
34. <el-button round>圆角按钮</el-button>
35. <el-button type="primary" round>主要按钮</el-button>
36. <el-button type="success" round>成功按钮</el-button>
37. <el-button type="info" round>信息按钮</el-button>
38. <el-button type="warning" round>警告按钮</el-button>
39. <el-button type="danger" round>危险按钮</el-button>
40. </el-row>
41.
42. <h2>circle圆形按钮,与icon搭配使用显示图标</h2>
43. <el-row>
44. <el-button icon="el-icon-search" circle></el-button>
45. <el-button type="primary" icon="el-icon-edit" circle></el-button>
46. <el-button type="success" icon="el-icon-check" circle></el-button>
47. <el-button type="info" icon="el-icon-message" circle></el-button>
48. <el-button type="warning" icon="el-icon-star-off" circle></el-button>
49. <el-button type="danger" icon="el-icon-delete" circle></el-button>
50. </el-row>
51.
52. <h2>autofocus按钮聚焦</h2>
53. <el-row>
54. <el-button autofocus>聚焦</el-button>
55. </el-row>
56.
57. <h2>loading加载状态</h2>
58. <el-row>
59. <el-button type="primary" loading>加载中</el-button>
60. </el-row>
61.
62. <h2>disabled禁用</h2>
63. <el-row>
64. <el-button disabled type="success">按钮禁用状态</el-button>
65. </el-row>
66.
67. <h2>el-button-group是按钮组</h2>
68. <el-button-group>
69. <el-button type="primary" icon="el-icon-arrow-left">上一页</el-button>
70. <el-button type="primary">下一页<i class="el-icon-arrow-right el-icon--right"></i></el-button>
71. </el-button-group>
72. <el-button-group>
73. <el-button type="primary" icon="el-icon-edit"></el-button>
74. <el-button type="primary" icon="el-icon-share"></el-button>
75. <el-button type="primary" icon="el-icon-delete"></el-button>
76. </el-button-group>
77.
78. </div>
79. </template>