打印this.$slots.get('default')
![小葛](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/000/48/91/49_avatar_mid.jpg?v=1638955922)
- 发布:2024-02-04 17:04
- 更新:2024-02-04 17:04
- 阅读:313
产品分类: uni-app x/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows10
HBuilderX版本号: 4.01
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 模拟器
手机机型: 雷电模拟器
操作步骤:
预期结果:
获取到插槽dom
获取到插槽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的标签
0 个回复