Skip to content

Commit

Permalink
feat(goods-action-button): add custom-style prop support (#5659)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonwong666 authored Jan 16, 2024
1 parent 628008e commit ff8fe1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/goods-action-button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ VantComponent({
type: String,
value: 'danger',
},
customStyle: {
type: String,
value: '',
},
},

methods: {
Expand Down
1 change: 1 addition & 0 deletions packages/goods-action-button/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
1 change: 1 addition & 0 deletions packages/goods-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Page({
| send-message-path | 会话内消息卡片点击跳转小程序路径 | _string_ | 当前分享路径 |
| send-message-img | sendMessageImg | _string_ | 截图 |
| show-message-card | 显示会话内消息卡片 | _string_ | `false` |
| custom-style `v1.11.3` | 自定义样式 | _string_ | '' |

### Events

Expand Down

0 comments on commit ff8fe1c

Please sign in to comment.