请问uni-app什么时候可以支持微信XR-Frame小程序开发?目前看好像是还不支持,请问有计划没?

- 发布:2023-01-30 14:18
- 更新:2024-01-15 16:06
- 阅读:1781
请问uni-app什么时候可以支持微信XR-Frame小程序开发?

目前给出的方案是采用上面老哥的建议:
-
把 xr-frame 组件 放在 wxcomponents 目录
-
并在 pages.json 中的 usingComponents 声明,或者,使用 import 引入
例如:import xrStart from '@/wxcomponents/xr-start' export default { components: { xrStart }, /// .... }
-
然后正常编写代码即可

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信
uni-app vue3 使用 xr-frame 组件。下面 demo可直接运行
https://gitcode.net/xiurensha5731/uni-app-questions/-/tree/q/weixin-xr-frame
供各位参考。
-
-
回复 s***@qq.com: 你可以具体指出我 demo 中的哪一行代码需要补充 width/height 吗?我尝试复现你的问题
2024-03-26 16:23
-
https://gitcode.net/xiurensha5731/uni-app-questions/-/blob/q/weixin-xr-frame/src/components/xr.vue 这个文件的 line3? line4?
2024-03-26 16:23
-
-
回复 DCloud_UNI_OttoJi: 不好意思刚刚看到,是https://gitcode.net/xiurensha5731/uni-app-questions/-/blob/q/weixin-xr-frame/src/pages/index/index.vue line6-7,编译之后在微信开发者工具里面看页面元素,xr-start元素没有渲染出来width和height,在开发者工具中手写renderWidth和renderHeight后才会不模糊
2024-04-01 10:55
-
z***@qq.com
请问如何设置xr-frame的width和height属性呢?真机测试的时候,这两属性设置失败,导致画面模糊
2023-02-15 17:09
r***@foxmail.com
回复 z***@qq.com: 不要用vue3,用vue2才能用
2023-02-22 16:46
我是小菜鸟副本
您好,请问在哪里可以下载xr-frame组件
2023-10-30 15:33
1***@qq.com
回复 z***@qq.com: 请问你解决了吗,我使用的vue3
2024-08-08 11:33