小葛
小葛
  • 发布:2024-02-04 17:04
  • 更新:2024-02-04 17:04
  • 阅读:313

【报Bug】uniappx中this.$slots.get('default')如何获取对应的dom

分类:uni-app x

产品分类: uni-app x/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows10

HBuilderX版本号: 4.01

手机系统: Android

手机系统版本号: Android 9.0

手机厂商: 模拟器

手机机型: 雷电模拟器

操作步骤:

打印this.$slots.get('default')

预期结果:

获取到插槽dom

实际结果:

无法获取

bug描述:

打印this.$slots.get('default')为{"getInvoke":"f () { [native code] } ","get_c":"f () { [native code] } ","get_d":"f () { [native code] } ","get_n":"f () { [native code] } ","setInvoke":"f () { [native code] } ","set_c":"f () { [native code] } ","set_d":"f () { [native code] } ","set_n":"f () { [native code] } "}

应该如何获取dom,需求获取dom然后判断里面有没有包含text的标签

2024-02-04 17:04 负责人:无 分享
已邀请:

要回复问题请先登录注册