From baf1c91a7573573ef095990cb3bf65675b7145f7 Mon Sep 17 00:00:00 2001 From: rex Date: Sun, 3 Feb 2019 21:28:30 +0800 Subject: [PATCH] =?UTF-8?q?[new=20feature]=20GoodsActionIcon:=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=A4=96=E9=83=A8=E6=A0=B7=E5=BC=8F=E7=B1=BBicon-clas?= =?UTF-8?q?s=E3=80=81text-class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit re #1260 --- packages/goods-action-icon/index.less | 4 ++-- packages/goods-action-icon/index.ts | 2 ++ packages/goods-action-icon/index.wxml | 3 ++- packages/goods-action/README.md | 13 +++++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/goods-action-icon/index.less b/packages/goods-action-icon/index.less index 19be80ec..9a93ad65 100644 --- a/packages/goods-action-icon/index.less +++ b/packages/goods-action-icon/index.less @@ -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; diff --git a/packages/goods-action-icon/index.ts b/packages/goods-action-icon/index.ts index 3a3ea908..bc55dd1d 100644 --- a/packages/goods-action-icon/index.ts +++ b/packages/goods-action-icon/index.ts @@ -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: { diff --git a/packages/goods-action-icon/index.wxml b/packages/goods-action-icon/index.wxml index 9801e3b7..9593ac88 100644 --- a/packages/goods-action-icon/index.wxml +++ b/packages/goods-action-icon/index.wxml @@ -26,7 +26,8 @@ name="{{ icon }}" info="{{ info }}" class="van-goods-action-icon__icon" + custom-class="icon-class" /> - {{ text }} + {{ text }} diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index 3968b794..355457a3 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -119,6 +119,19 @@ Page({ |-----------|-----------|-----------| | click | 按钮点击事件回调 | - | +### GoodsActionIcon 外部样式类 + +| 类名 | 说明 | +|-----------|-----------| +| icon-class | 图标样式类 | +| text-class | 文字样式类 | + +### GoodsActionButton 外部样式类 + +| 类名 | 说明 | +|-----------|-----------| +| custom-class | 根节点样式类 | + ### 更新日志 | 版本 | 类型 | 内容 |