From 6f175b2818b82c971e8b6ad2cd10d4cf0bb6a3b1 Mon Sep 17 00:00:00 2001 From: YF <2922265540@qq.com> Date: Fri, 3 Mar 2023 20:21:31 +0800 Subject: [PATCH 1/2] feat(van-goods-action-icon): Added the 'color' attribute for customizing the icon color. --- packages/goods-action-icon/index.ts | 1 + packages/goods-action-icon/index.wxml | 1 + packages/goods-action/README.md | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/goods-action-icon/index.ts b/packages/goods-action-icon/index.ts index 57b2c9e1..69131abd 100644 --- a/packages/goods-action-icon/index.ts +++ b/packages/goods-action-icon/index.ts @@ -12,6 +12,7 @@ VantComponent({ dot: Boolean, info: String, icon: String, + color: String, classPrefix: { type: String, value: 'van-icon', diff --git a/packages/goods-action-icon/index.wxml b/packages/goods-action-icon/index.wxml index c7696855..eb31610d 100644 --- a/packages/goods-action-icon/index.wxml +++ b/packages/goods-action-icon/index.wxml @@ -27,6 +27,7 @@ name="{{ icon }}" dot="{{ dot }}" info="{{ info }}" + color="{{ color }}" class-prefix="{{ classPrefix }}" class="van-goods-action-icon__icon" custom-class="icon-class" diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index 857ca9b9..6807e10d 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -104,6 +104,7 @@ Page({ | text | 按钮文字 | _string_ | - | | icon | 图标类型,可选值见`icon`组件 | _string_ | - | | info | 图标右上角提示信息 | _string \| number_ | - | +| color | 图标颜色 | _string_ | `inherit` | | url | 点击后跳转的链接地址 | _string_ | - | | link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | _string_ | `navigateTo` | | id | 标识符 | _string_ | - | From 4fd22f0a6b6b5ebcc37807ed3c85c3b40bd60e0c Mon Sep 17 00:00:00 2001 From: YF <2922265540@qq.com> Date: Mon, 6 Mar 2023 20:26:41 +0800 Subject: [PATCH 2/2] feat(van-goods-action-icon): Add the color property version requirement. --- packages/goods-action/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index 6807e10d..80518ba2 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -104,7 +104,7 @@ Page({ | text | 按钮文字 | _string_ | - | | icon | 图标类型,可选值见`icon`组件 | _string_ | - | | info | 图标右上角提示信息 | _string \| number_ | - | -| color | 图标颜色 | _string_ | `inherit` | +| color `v1.10.15` | 图标颜色 | _string_ | `inherit` | | url | 点击后跳转的链接地址 | _string_ | - | | link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | _string_ | `navigateTo` | | id | 标识符 | _string_ | - |