vantui icon indicating copy to clipboard operation
vantui copied to clipboard

Notify 传递参数无效

Open StringKe opened this issue 2 years ago • 3 comments

这个 Issue 涉及以下平台:

  • [x] 微信小程序
  • [ ] 支付宝小程序
  • [ ] 百度小程序
  • [ ] 头条小程序
  • [ ] 快手小程序
  • [ ] QQ 轻应用
  • [ ] Web 平台(H5)

BUG 描述 https://github.com/AntmJS/vantui/blob/main/packages/vantui/src/notify/index.tsx#L64

源代码中似乎忘了合并 porps

复现步骤

期望结果

实际结果

截图 CleanShot 2022-10-21 at 17 27 33 CleanShot 2022-10-21 at 17 28 11@2x

环境

附加信息

StringKe avatar Oct 21 '22 09:10 StringKe

复现代码发一下

hisanshao avatar Oct 25 '22 02:10 hisanshao

使用的此模板 https://github.com/AntmJS/temptaro/blob/main/src/components/container/index.tsx#L180 并修改了 container 的实现,在 180 行加入了 notify,其他文件未动。

    <View className={className}>
      <Notify  id='vanNotify' />
      {props.children}
    </View>

StringKe avatar Oct 25 '22 03:10 StringKe

是的不能放在container中,需要在每个页面设置唯一的id,通过selector唤起

zuolung avatar Jan 09 '23 07:01 zuolung