微信小程序xr-frame,引入组件得问题
1. 选用模板
TS-基础模板
2. xr-frame
3. 相关代码
组件代码
components/xr-start/index.json
{
"component": true,
"renderer": "xr-frame",
"usingComponents": {}
}
components/xr-start/index.wxml
<xr-scene>
<xr-camera clear-color="0.4 0.8 0.6 1" />
</xr-scene>
引入组件
pages/index/index.json
{
"usingComponents": {
"xr-start": "/miniprogram/components/xr-start/index"
},
"disableScroll": true
}
4. 问题
大佬们,相对地址和绝对地址都试过了,还是一直找不到组件
推荐文章: