From e4d6d54e969412f6e707e7589dd9455faa09b0ba Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Fri, 15 Dec 2023 16:36:42 +0800 Subject: [PATCH 1/3] fix: add custom style --- packages/goods-action-button/index.ts | 4 ++++ packages/goods-action-button/index.wxml | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/goods-action-button/index.ts b/packages/goods-action-button/index.ts index e2d2605e2..072647f91 100644 --- a/packages/goods-action-button/index.ts +++ b/packages/goods-action-button/index.ts @@ -22,6 +22,10 @@ VantComponent({ type: String, value: 'danger', }, + customStyle: { + type: String, + value: '', + }, }, methods: { diff --git a/packages/goods-action-button/index.wxml b/packages/goods-action-button/index.wxml index 1ef4a09e6..4530ab89e 100644 --- a/packages/goods-action-button/index.wxml +++ b/packages/goods-action-button/index.wxml @@ -12,6 +12,7 @@ open-type="{{ openType }}" class="{{ utils.bem('goods-action-button', [type, { first: isFirst, last: isLast, plain: plain }])}}" custom-class="van-goods-action-button__inner custom-class" + custom-style="{{customStyle}}" business-id="{{ businessId }}" session-from="{{ sessionFrom }}" app-parameter="{{ appParameter }}" From dc6eb5d08c55bba1496fb54e12cac7a9248d47cc Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Mon, 15 Jan 2024 20:41:48 +0800 Subject: [PATCH 2/3] fix(GoodsActionButton): add doc --- packages/goods-action/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index b88d26880..e237e8d4b 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -144,6 +144,8 @@ Page({ | send-message-path | 会话内消息卡片点击跳转小程序路径 | _string_ | 当前分享路径 | | send-message-img | sendMessageImg | _string_ | 截图 | | show-message-card | 显示会话内消息卡片 | _string_ | `false` | +| custom-style `v1.11.3` | 自定义样式 | _string_ | '' | + ### Events From a5bd6b3db7e50bc4d0450b0afc79a4ec20d7b048 Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Mon, 15 Jan 2024 20:44:42 +0800 Subject: [PATCH 3/3] fix(GoodsActionButton): add doc --- packages/goods-action/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index e237e8d4b..4b884ab49 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -146,7 +146,6 @@ Page({ | show-message-card | 显示会话内消息卡片 | _string_ | `false` | | custom-style `v1.11.3` | 自定义样式 | _string_ | '' | - ### Events | 事件名 | 说明 | 参数 |