From 3d1d27641b32286f6b732bb920fab832b531e51e Mon Sep 17 00:00:00 2001
From: johnsonwong666 <64689255+johnsonwong666@users.noreply.github.com>
Date: Mon, 3 Jul 2023 17:08:16 +0800
Subject: [PATCH] feat(icon): add_icon_info_class (#5458)
---
packages/goods-action-icon/index.ts | 2 +-
packages/goods-action-icon/index.wxml | 1 +
packages/goods-action/README.md | 1 +
.../test/__snapshots__/demo.spec.ts.snap | 27 ++++++++++++-------
.../grid/test/__snapshots__/demo.spec.ts.snap | 4 +--
packages/icon/README.md | 1 +
packages/icon/index.ts | 1 +
packages/icon/index.wxml | 2 +-
.../icon/test/__snapshots__/demo.spec.ts.snap | 6 ++---
9 files changed, 29 insertions(+), 16 deletions(-)
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"
>