<van-floating-bubble icon="plus" axis="xy" magnetic="x"></van-floating-bubble>

- 发布:2025-04-28 22:09
- 更新:2025-04-28 22:36
- 阅读:300
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows11 26100.3775
HBuilderX类型: Alpha
HBuilderX版本号: 4.63
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: Mate60 pro
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
显示正常
显示正常
实际结果:
直接报错不显示
直接报错不显示
bug描述:
引入vant4的组件之后,直接就报错了
组件为浮动按钮:<van-floating-bubble icon="plus" axis="xy" magnetic="x"></van-floating-bubble>
报错信息如下:
22:06:51.792 [Vue warn]: Current renderer does not support string target for Teleports. (missing querySelector renderer option)
at <VanFloatingBubbleicon="plus"axis="xy"magnetic="x">
at <IndexpageId=1pagePath="pages/index/index"pageQuery={} ...>
22:06:51.792 [Vue warn]: Invalid Teleport target on mount:null(object)
at <VanFloatingBubbleicon="plus"axis="xy"magnetic="x">
at <IndexpageId=1pagePath="pages/index/index"pageQuery={} ...>
22:06:51.792 [Vue warn]: Unhandled error during execution of mounted hook
at <VanFloatingBubbleicon="plus"axis="xy"magnetic="x">
at <IndexpageId=1pagePath="pages/index/index"__pageQuery={} ...>
22:06:51.792 TypeError: Cannot read property 'innerWidth' of undefined
1 个回复
DCloud_UNI_JBB
是运行在什么端呢