chore(Button): improve format

This commit is contained in:
chenjiahan 2020-05-24 19:45:22 +08:00
parent d80ec54186
commit 5c62936325
3 changed files with 3 additions and 3 deletions

View File

@ -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` | - |

View File

@ -77,7 +77,7 @@ VantComponent({
this.$emit('click');
}
},
noop() {},
},
});

View File

@ -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;"
/>