uni-helper / vite-plugin-uni-layouts

为 Vite 下的 uni-app 提供类 nuxt 的 layouts 系统
MIT License
25 stars 6 forks source link

使用name去切换布局失败,是要先注册好layout里面要用的组件吗 #30

Closed catdddmouse closed 2 months ago

catdddmouse commented 3 months ago

Describe the bug

直接用name的话是可以的,但是name改成响应式就不行了

image image

Reproduction

const supervisorLayout = ref('default') ![image](https://github.com/uni-helper/vite-plugin-uni-layouts/assets/130121308/61d40f50-fe95-4240-87cd-b2b5ad6ed76e) ### System Info "@uni-helper/vite-plugin-uni-layouts": "^0.1.7", ### Used Package Manager npm ### Validations - [X] Follow our [Code of Conduct](https://github.com/uni-helper/.github/blob/main/CODE_OF_CONDUCT.md) - [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. - [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Skiyee commented 2 months ago

需要在使用自定义布局页面禁用布局

使用说明:动态布局和额外插槽

无使用 vite-plugin-uni-pages 禁用方法:pages.json下禁用

使用 vite-plugin-uni-pages 禁用方法:route-block