diff --git a/packages/goods-action-button/index.ts b/packages/goods-action-button/index.ts index 255f7925..24412273 100644 --- a/packages/goods-action-button/index.ts +++ b/packages/goods-action-button/index.ts @@ -6,6 +6,8 @@ VantComponent({ props: { text: String, + loading: Boolean, + disabled: Boolean, type: { type: String, value: 'danger' diff --git a/packages/goods-action-button/index.wxml b/packages/goods-action-button/index.wxml index 1dcf10f4..a4e6084e 100644 --- a/packages/goods-action-button/index.wxml +++ b/packages/goods-action-button/index.wxml @@ -2,6 +2,8 @@ square size="large" type="{{ type }}" + loading="{{ loading }}" + disabled="{{ disabled }}" bind:click="onClick" > {{ text }} diff --git a/packages/goods-action/README.md b/packages/goods-action/README.md index a64b8c21..cbfbc446 100644 --- a/packages/goods-action/README.md +++ b/packages/goods-action/README.md @@ -80,6 +80,8 @@ Page({ |-----------|-----------|-----------|-------------| | text | 按钮文字 | `String` | - | | type | 按钮类型 | `String` | `danger` | +| disabled | 是否禁用按钮 | `Boolean` | `false` | +| loading | 是否显示为加载状态 | `Boolean` | `false` | | url | 跳转链接 | `String` | - | | link-type | 链接跳转类型,可选值为 `redirectTo` `switchTab` `reLaunch` | `String` | `navigateTo` |