# Button
# 预览
# 使用方法
<xin-button>默认按钮</xin-button>
<xin-button icon="support">设置按钮</xin-button>
<xin-button icon="settings">设置按钮</xin-button>
<xin-button :loading="true">loading按钮</xin-button>
<xin-button :disabled="true">disabled按钮</xin-button>
<xin-button icon="settings" icon-position="right">右侧按钮</xin-button>
<xin-button-group>
<xin-button>按钮组</xin-button>
<xin-button>按钮组</xin-button>
<xin-button>按钮组</xin-button>
</xin-button-group>
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 选项支持选项
选项 | 取值 | 类型 | 作用 |
---|---|---|---|
icon | settings、info、download、error、 left、right、download、support | String | 设置内嵌图标 |
loading | true、false | Boolean | 设置loading状态 |
disabled | true、false | Boolean | 设置disabled按钮 |
icon-position | left、right | String | 设置图标位置 |