diff --git a/packages/goods-action-icon/index.ts b/packages/goods-action-icon/index.ts index 840972a5..1e9c3e72 100644 --- a/packages/goods-action-icon/index.ts +++ b/packages/goods-action-icon/index.ts @@ -3,7 +3,7 @@ import { button } from '../mixins/button'; import { link } from '../mixins/link'; VantComponent({ - classes: ['icon-class', 'text-class'], + classes: ['icon-class', 'text-class', 'info-class'], mixins: [link, button], diff --git a/packages/goods-action-icon/index.wxml b/packages/goods-action-icon/index.wxml index b19e795c..d43c5673 100644 --- a/packages/goods-action-icon/index.wxml +++ b/packages/goods-action-icon/index.wxml @@ -32,6 +32,7 @@ class-prefix="{{ classPrefix }}" class="van-goods-action-icon__icon" custom-class="icon-class" + info-class="info-class" /> {{ text }} diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index 16bc7a90..93de506e 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -168,6 +168,7 @@ Page({ | ---------- | ---------- | | icon-class | 图标样式类 | | text-class | 文字样式类 | +| info-class `v1.10.20` | 图标右上角文字样式类 | ### GoodsActionButton 外部样式类 diff --git a/packages/goods-action/test/__snapshots__/demo.spec.ts.snap b/packages/goods-action/test/__snapshots__/demo.spec.ts.snap index 00955dde..7ca1f42d 100644 --- a/packages/goods-action/test/__snapshots__/demo.spec.ts.snap +++ b/packages/goods-action/test/__snapshots__/demo.spec.ts.snap @@ -60,6 +60,7 @@ exports[`should render demo and match snapshot 1`] = ` @@ -125,6 +126,7 @@ exports[`should render demo and match snapshot 1`] = ` @@ -307,6 +309,7 @@ exports[`should render demo and match snapshot 1`] = ` @@ -625,6 +630,7 @@ exports[`should render demo and match snapshot 1`] = ` @@ -688,6 +694,7 @@ exports[`should render demo and match snapshot 1`] = ` @@ -866,6 +873,7 @@ exports[`should render demo and match snapshot 1`] = ` @@ -929,6 +937,7 @@ exports[`should render demo and match snapshot 1`] = ` diff --git a/packages/grid/test/__snapshots__/demo.spec.ts.snap b/packages/grid/test/__snapshots__/demo.spec.ts.snap index 1c68c7e8..2ad29c6c 100644 --- a/packages/grid/test/__snapshots__/demo.spec.ts.snap +++ b/packages/grid/test/__snapshots__/demo.spec.ts.snap @@ -1174,7 +1174,7 @@ exports[`should render demo and match snapshot 1`] = ` bind:tap="onClick" >