[bugfix] GoodsAction: fix document error, fix disabled & loading not work

This commit is contained in:
rex 2019-03-20 21:04:38 +08:00 committed by GitHub
parent b5238ed753
commit ca3b9e6510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -8,6 +8,7 @@
disabled="{{ disabled }}" disabled="{{ disabled }}"
open-type="{{ openType }}" open-type="{{ openType }}"
custom-class="custom-class" custom-class="custom-class"
business-id="{{ businessId }}"
session-from="{{ sessionFrom }}" session-from="{{ sessionFrom }}"
app-parameter="{{ appParameter }}" app-parameter="{{ appParameter }}"
send-message-img="{{ sendMessageImg }}" send-message-img="{{ sendMessageImg }}"
@ -20,6 +21,7 @@
bindopensetting="bindOpenSetting" bindopensetting="bindOpenSetting"
bindgetuserinfo="bindGetUserInfo" bindgetuserinfo="bindGetUserInfo"
bindgetphonenumber="bindGetPhoneNumber" bindgetphonenumber="bindGetPhoneNumber"
bindlaunchapp="bindLaunchApp"
> >
{{ text }} {{ text }}
</van-button> </van-button>

View File

@ -11,7 +11,9 @@ VantComponent({
props: { props: {
text: String, text: String,
info: String, info: String,
icon: String icon: String,
disabled: Boolean,
loading: Boolean
}, },
methods: { methods: {

View File

@ -6,6 +6,7 @@
loading="{{ loading }}" loading="{{ loading }}"
disabled="{{ disabled }}" disabled="{{ disabled }}"
open-type="{{ openType }}" open-type="{{ openType }}"
business-id="{{ businessId }}"
custom-class="van-goods-action-icon" custom-class="van-goods-action-icon"
session-from="{{ sessionFrom }}" session-from="{{ sessionFrom }}"
app-parameter="{{ appParameter }}" app-parameter="{{ appParameter }}"
@ -19,6 +20,7 @@
bindopensetting="bindOpenSetting" bindopensetting="bindOpenSetting"
bindgetuserinfo="bindGetUserInfo" bindgetuserinfo="bindGetUserInfo"
bindgetphonenumber="bindGetPhoneNumber" bindgetphonenumber="bindGetPhoneNumber"
bindlaunchapp="bindLaunchApp"
> >
<view class="van-goods-action-icon__content van-hairline--right"> <view class="van-goods-action-icon__content van-hairline--right">
<van-icon <van-icon

View File

@ -80,7 +80,6 @@ Page({
| url | 跳转链接 | `String` | - | | url | 跳转链接 | `String` | - |
| link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | `String` | `navigateTo` | | link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | `String` | `navigateTo` |
| id | 标识符 | `String` | - | | id | 标识符 | `String` | - |
| type | 按钮类型,可选值为 `primary` `warning` `danger` | `String` | `default` |
| disabled | 是否禁用按钮 | `Boolean` | `false` | | disabled | 是否禁用按钮 | `Boolean` | `false` |
| loading | 是否显示为加载状态 | `Boolean` | `false` | | loading | 是否显示为加载状态 | `Boolean` | `false` |
| open-type | 微信开放能力,具体支持可参考 [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/component/button.html) | `String` | - | | open-type | 微信开放能力,具体支持可参考 [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/component/button.html) | `String` | - |