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

QQ小程序button组件open-type 的合法值有更新 #11722

Closed
ggpcn opened this issue Apr 25, 2022 · 5 comments · Fixed by #11736
Closed

QQ小程序button组件open-type 的合法值有更新 #11722

ggpcn opened this issue Apr 25, 2022 · 5 comments · Fixed by #11736
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers T-qq Target - 编译到 QQ 小程序 V-3 Version - 3.x

Comments

@ggpcn
Copy link

ggpcn commented Apr 25, 2022

这个特性解决了什么问题?

腾讯QQ小程序增加了若干open-type 的合法值,详见https://q.qq.com/wiki/develop/miniprogram/component/form/button.html

这个 API 长什么样?

比如目前QQ小程序支持添加频道的open-type有效值openGuildProfile,taro暂时还未支持,希望能够同步补全目前缺失的值。

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Apr 25, 2022
@AdvancedCat
Copy link
Member

button组件的open-type属性是透传的,并未枚举。可以提供一下你的demo

@AdvancedCat AdvancedCat self-assigned this Apr 26, 2022
@AdvancedCat AdvancedCat added V-3 Version - 3.x T-qq Target - 编译到 QQ 小程序 labels Apr 26, 2022
@ggpcn
Copy link
Author

ggpcn commented Apr 26, 2022

button组件的open-type属性是透传的,并未枚举。可以提供一下你的demo

您好,我使用的Taro 3.4.7
···
<button type="button" openType="openGuildProfile" guild-id="123456">加入官频</button>
···

比如这段代码,button中的guild-id无法在小程序中传递,导致腾讯获取不到频道ID。

@AdvancedCat
Copy link
Member

@ggpcn 我懂了,其实只要能支持传递 guild-id 参数即可。欢迎提PR哦

@AdvancedCat AdvancedCat added the good first issue Good for newcomers label Apr 26, 2022
@ggpcn
Copy link
Author

ggpcn commented Apr 26, 2022

@ggpcn 我懂了,其实只要能支持传递 guild-id 参数即可。欢迎提PR哦

对对,就是大佬理解的这个意思,如果可以的话,恳求大佬直接添加一下,我水平有限,还在摸索学习阶段。

@AdvancedCat AdvancedCat removed their assignment Apr 26, 2022
@AdvancedCat
Copy link
Member

等待有兴趣的小伙伴认领,无人认领,我会在明天添加该属性。谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers T-qq Target - 编译到 QQ 小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants