diff --git a/packages/goods-action-icon/index.ts b/packages/goods-action-icon/index.ts index 65feadfa..57b2c9e1 100644 --- a/packages/goods-action-icon/index.ts +++ b/packages/goods-action-icon/index.ts @@ -12,6 +12,10 @@ VantComponent({ dot: Boolean, info: String, icon: String, + classPrefix: { + type: String, + value: 'van-icon', + }, disabled: Boolean, loading: Boolean, }, diff --git a/packages/goods-action-icon/index.wxml b/packages/goods-action-icon/index.wxml index 65b7ced3..c7696855 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 }}" + 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 09ef71c4..cc4e2ed5 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -117,6 +117,7 @@ Page({ | send-message-path | 会话内消息卡片点击跳转小程序路径 | _string_ | 当前分享路径 | | send-message-img | sendMessageImg | _string_ | 截图 | | show-message-card | 显示会话内消息卡片 | _string_ | `false` | +| class-prefix `v1.10.1` | 类名前缀 | _string_ | `van-icon` | ### GoodsActionButton Props