mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(GoodsActionButton): add icon prop
This commit is contained in:
parent
2b82dcc3dd
commit
b83bed3b6c
@ -12,6 +12,7 @@ export default createComponent({
|
||||
...routeProps,
|
||||
type: String,
|
||||
text: String,
|
||||
icon: String,
|
||||
color: String,
|
||||
loading: Boolean,
|
||||
disabled: Boolean,
|
||||
@ -49,6 +50,7 @@ export default createComponent({
|
||||
square
|
||||
size="large"
|
||||
type={this.type}
|
||||
icon={this.icon}
|
||||
color={this.color}
|
||||
loading={this.loading}
|
||||
disabled={this.disabled}
|
||||
|
@ -5,7 +5,7 @@
|
||||
height: @goods-action-button-height;
|
||||
font-weight: @font-weight-bold;
|
||||
font-size: @font-size-md;
|
||||
line-height: normal;
|
||||
line-height: @goods-action-button-height;
|
||||
border: none;
|
||||
|
||||
&--first {
|
||||
|
@ -104,6 +104,7 @@ Use `info` prop to show badge in icon
|
||||
| text | Button text | *string* | - |
|
||||
| type | Button type, Can be set to `primary` `info` `warning` `danger` | *string* | `default` |
|
||||
| color `v2.1.8` | Button color, support linear-gradient | *string* | - |
|
||||
| icon `2.4.4` | Left Icon | *string* | - |
|
||||
| primary | Is primary button (red color) | *boolean* | `false` |
|
||||
| disabled | Whether to disable button | *boolean* | `false` |
|
||||
| loading | Whether show loading status | *boolean* | `false` |
|
||||
|
@ -108,6 +108,7 @@ export default {
|
||||
| text | 按钮文字 | *string* | - |
|
||||
| type | 按钮类型,可选值为 `primary` `info` `warning` `danger` | *string* | `default` |
|
||||
| color `v2.1.8` | 按钮颜色,支持传入`linear-gradient`渐变色 | *string* | - |
|
||||
| icon `2.4.4` | 左侧图标名称或图片链接,可选值见 [Icon 组件](#/zh-CN/icon) | *string* | - |
|
||||
| disabled | 是否禁用按钮 | *boolean* | `false` | - |
|
||||
| loading | 是否显示为加载状态 | *boolean* | `false` | - |
|
||||
| url | 点击后跳转的链接地址 | *string* | - |
|
||||
|
Loading…
x
Reference in New Issue
Block a user