From fd41bd823aed1a2323f2f8d5a500d7e73e1f8e4d Mon Sep 17 00:00:00 2001 From: johnsonwong666 <64689255+johnsonwong666@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:41:05 +0800 Subject: [PATCH] feat(button): add button-id prop & agreePrivacyAuthorization event support (#5533) --- packages/button/README.md | 1 + packages/button/index.wxml | 2 +- packages/dialog/README.md | 3 ++- packages/dialog/index.ts | 1 + packages/dialog/index.wxml | 8 ++++---- packages/goods-action-button/index.wxml | 2 ++ packages/goods-action/README.md | 1 + .../goods-action/test/__snapshots__/demo.spec.ts.snap | 8 ++++++++ packages/mixins/button.ts | 1 + 9 files changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/button/README.md b/packages/button/README.md index 79a8d7370..daf2b7fff 100644 --- a/packages/button/README.md +++ b/packages/button/README.md @@ -120,6 +120,7 @@ | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | id | 标识符 | _string_ | - | +| button-id `v1.10.25`| 标识符,作为原生button组件的id值 | _string_ | - | | type | 按钮类型,可选值为 `primary` `info` `warning` `danger` | _string_ | `default` | | size | 按钮尺寸,可选值为 `normal` `large` `small` `mini` | _string_ | `normal` | | color `v1.0.0` | 按钮颜色,支持传入`linear-gradient`渐变色 | _string_ | - | diff --git a/packages/button/index.wxml b/packages/button/index.wxml index bfe8bce81..e7f60f19c 100644 --- a/packages/button/index.wxml +++ b/packages/button/index.wxml @@ -2,7 +2,7 @@