[new feature] GoodsActionIcon: 新增外部样式类icon-class、text-class

re #1260
This commit is contained in:
rex 2019-02-03 21:28:30 +08:00 committed by GitHub
parent fdfda6ba9a
commit baf1c91a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

View File

@ -5,10 +5,10 @@
border: none !important;
&__content {
height: 100%;
display: flex;
line-height: 1;
height: 100%;
font-size: 10px;
line-height: 1;
color: @gray-darker;
flex-direction: column;
justify-content: center;

View File

@ -4,6 +4,8 @@ import { button } from '../mixins/button';
import { openType } from '../mixins/open-type';
VantComponent({
classes: ['icon-class', 'text-class'],
mixins: [link, button, openType],
props: {

View File

@ -26,7 +26,8 @@
name="{{ icon }}"
info="{{ info }}"
class="van-goods-action-icon__icon"
custom-class="icon-class"
/>
{{ text }}
<text class="text-class">{{ text }}</text>
</view>
</van-button>

View File

@ -119,6 +119,19 @@ Page({
|-----------|-----------|-----------|
| click | 按钮点击事件回调 | - |
### GoodsActionIcon 外部样式类
| 类名 | 说明 |
|-----------|-----------|
| icon-class | 图标样式类 |
| text-class | 文字样式类 |
### GoodsActionButton 外部样式类
| 类名 | 说明 |
|-----------|-----------|
| custom-class | 根节点样式类 |
### 更新日志
| 版本 | 类型 | 内容 |