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

代码提示 showShareMenu 中没有 menus 属性,可正常编译运行 #7588

Open
VinciShark opened this issue Sep 10, 2020 · 1 comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@VinciShark
Copy link

VinciShark commented Sep 10, 2020

相关平台

微信小程序

小程序基础库: 2.13.0
使用框架: React

复现步骤

任意合法位置添加代码:

Taro.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline']
    })

期望结果

无代码检查警告

实际结果

出现代码检查警告:

Taro.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline']
    })

环境信息

� Taro v3.0.9


  Taro CLI 3.0.9 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.3 - C:\Program Files\nodejs\node.EXE       
      Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 10, 2020
@towry
Copy link

towry commented Jun 20, 2022

Taro 源码里是 showShareItems,但是最新的微信文档里是 menus,不知道是 taro会将 showShareItems 转为 menus还是 taro 没有对应微信小程序文档进行更新?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants