1. 以按钮组的方式出现,常用于多项类似操作。
![在这里插入图片描述](https://img-blog.csdnimg.cn/e57bb68c6c414903bbbaa2dbb469e22c.jpeg#pic_center)
<el-button-group>
<el-button type="primary" icon="el-icon-arrow-left">上一页</el-button>
<el-button type="primary">下一页<i class="el-icon-arrow-right el-icon--right"></i></el-button>
</el-button-group>
<el-button-group>
<el-button type="primary" icon="el-icon-edit"></el-button>
<el-button type="primary" icon="el-icon-share"></el-button>
<el-button type="primary" icon="el-icon-delete"></el-button>
</el-button-group>`
> 使用el-button-group标签来嵌套你的按钮。
2.点击按钮后进行数据加载操作,在按钮上显示加载状态。
![在这里插入图片描述](https://img-blog.csdnimg.cn/7657944a6ff0474fbc4378689b51543d.jpeg#pic_center)
<el-button type="primary" :loading="true">加载中</el-button>
> 要设置为 loading 状态,只要设置loading属性为true即可。
3.Button 组件提供除了默认值以外的三种尺寸,可以在不同场景下选择合适的按钮尺寸。
<el-row>
<el-button>默认按钮</el-button>
<el-button size="medium">中等按钮</el-button>
<el-button size="small">小型按钮</el-button>
<el-button size="mini">超小按钮</el-button>
</el-row>
<el-row>
<el-button round>默认按钮</el-button>
<el-button size="medium" round>中等按钮</el-button>
<el-button size="small" round>小型按钮</el-button>
<el-button size="mini" round>超小按钮</el-button>
</el-row>
> 额外的尺寸:medium、small、mini,通过设置size属性来配置它们。
Attributes
![在这里插入图片描述](https://img-blog.csdnimg.cn/79882b1585fd4b15b745b141c4a96250.jpeg#pic_center)