Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(goods-action-button): add custom-style prop support #5659

Merged
merged 3 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: {
landluck marked this conversation as resolved.
Show resolved Hide resolved
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
Loading