Skip to content

Commit

Permalink
fix: remove share components event and update onCreateLiveActivity ev…
Browse files Browse the repository at this point in the history
…ent Props
  • Loading branch information
erweixin committed Feb 3, 2025
1 parent 6820926 commit 1c6cb7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/shared/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const Button = {
'hover-stay-time': '70',
name: NO_DEFAULT_VALUE,
bindagreeprivacyauthorization: NO_DEFAULT_VALUE,
bindcreateliveactivity: NO_DEFAULT_VALUE,
...touchEvents
}

Expand Down
8 changes: 6 additions & 2 deletions packages/taro-components/types/Button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ interface ButtonProps extends StandardProps {
*/
sessionFrom?: string
/** 一次性订阅消息的模板 notify_type
* 可参考: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message-2.html
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message-2.html
* 生效时机:`open-type="liveActivity"`
* @supported weapp
*/
Expand Down Expand Up @@ -295,7 +295,7 @@ interface ButtonProps extends StandardProps {
* 生效时机:`open-type="liveActivity"`
* @supported weapp
*/
onCreateLiveActivity?: CommonEventFunction
onCreateLiveActivity?: CommonEventFunction<ButtonProps.onCreateLiveActivityEventDetail>
}
declare namespace ButtonProps {
/** size 的合法值 */
Expand Down Expand Up @@ -541,6 +541,10 @@ declare namespace ButtonProps {
/* 用户授权结果 */
authSetting: Record<string, boolean>
}

interface onCreateLiveActivityEventDetail {
code: string
}
}
/** 按钮
* @classification forms
Expand Down

0 comments on commit 1c6cb7f

Please sign in to comment.