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_ | - |