mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
chore(Button): improve format
This commit is contained in:
parent
d80ec54186
commit
5c62936325
@ -120,7 +120,7 @@
|
||||
| size | 按钮尺寸,可选值为 `normal` `large` `small` `mini` | _string_ | `normal` | - |
|
||||
| color | 按钮颜色,支持传入`linear-gradient`渐变色 | _string_ | - | 1.0.0 |
|
||||
| icon | 左侧图标名称或图片链接,可选值见 [Icon 组件](#/icon) | _string_ | - | - |
|
||||
| class-prefix | 类名前缀 用法等同于[Icon 组件](#/icon) | _string_ | `van-icon` | - |
|
||||
| class-prefix | 图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/icon) | _string_ | `van-icon` | - |
|
||||
| plain | 是否为朴素按钮 | _boolean_ | `false` | - |
|
||||
| block | 是否为块级元素 | _boolean_ | `false` | - |
|
||||
| round | 是否为圆形按钮 | _boolean_ | `false` | - |
|
||||
|
@ -77,7 +77,7 @@ VantComponent({
|
||||
this.$emit('click');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
noop() {},
|
||||
},
|
||||
});
|
||||
|
@ -40,7 +40,7 @@
|
||||
wx:if="{{ icon }}"
|
||||
size="1.2em"
|
||||
name="{{ icon }}"
|
||||
class-prefix="{{classPrefix}}"
|
||||
class-prefix="{{ classPrefix }}"
|
||||
class="van-button__icon"
|
||||
custom-style="line-height: inherit;"
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user