
- 发布:2025-03-26 23:31
- 更新:2025-03-26 23:31
- 阅读:74
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: macos 15.3.2
HBuilderX类型: 正式
HBuilderX版本号: 4.57
手机系统: HarmonyOS NEXT
手机系统版本号: HarmonyOS NEXT Developer Beta2
手机厂商: 模拟器
手机机型: 鸿蒙模拟器
页面类型: nvue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
<list id="page" class="page" ref="pagemain" :bounce="true" :enable-back-to-top="true" :show-scrollbar="false" isSwiperList="true" @scroll="page_onScroll">
<zRefresh @refresh="onrefresh(index1)" :refreshing="refreshing" @pullingdown="onpullingdown"
refreshText="refreshText">
</zRefresh>
<!-- 不固定,随着竖向滚动条滑动 -->
<cell>
<view id="intro-box" class="intro-box" ref="intro_box">
<view class="backtop" ref="topRef" style="height: 0;"></view>
/////////省略代碼
</view>
</view>
</cell>
</list>
<!-- 不固定,随着竖向滚动条滑动 -->
<cell>
<view id="intro-box" class="intro-box" ref="intro_box">
<view class="backtop" ref="topRef" style="height: 0;"></view>
/////////省略代碼
</view>
</view>
</cell>
</list>
操作步骤:
运行到鸿蒙模拟器
运行到鸿蒙模拟器
预期结果:
错
错
实际结果:
以上报错
以上报错
bug描述:
在安卓、ios运行都没有问题
在鸿蒙上运行出现以下报错,页面混乱。
[Vue warn]: Failed to resolve component: cell\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:22.972 [Vue warn]: Failed to resolve component: waterfall\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:22.972 [Vue warn]: Failed to resolve component: list\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:22.983 [Vue warn]: Failed to resolve component: refresh\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Z2Refresh onRefresh=fn refreshing=false onPullingdown=fn<bound onpullingdown> ... > \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:22.983 [Vue warn]: Failed to resolve component: loading-indicator\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Z2Refresh onRefresh=fn refreshing=false onPullingdown=fn<bound onpullingdown> ... > \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:22.993 ReferenceError: dom is not defined
23:16:22.993 at Proxy.readyStart (app-service.js:9029:9)
23:16:22.993 at Proxy.onReady (app-service.js:8979:12)
23:16:22.993 at callWithErrorHandling (http://localhost/file12.js:3075:21)
23:16:22.993 at callWithAsyncErrorHandling (http://localhost/file12.js:3082:17)
23:16:22.993 at Array.<anonymous> (http://localhost/file12.js:5559:19)
23:16:22.993 at invokeArrayFns2 (http://localhost/file12.js:625:19)
23:16:22.994 at invokeHook (http://localhost/file12.js:16265:21)
23:16:22.994 at http://localhost/file12.js:20188:13
23:16:23.226 [Vue warn]: Failed to resolve component: cell\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:23.226 [Vue warn]: Failed to resolve component: waterfall\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
23:16:23.226 [Vue warn]: Failed to resolve component: list\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. \n at <Home pageId=1 pagePath="pages/home/home" pageQuery= { ... } ... >
0 个回复