Vite 下 uni-app 的可定制布局框架 安装 pnpm i -D @uni-helper/vite-plugin-uni-layouts 使用 配置 // vite.config.tsimport{defineConfig}from'vite'importunifrom'@dcloudio/vite-plugin-uni'importUniLayoutsfrom'@uni-helper/vite-plugin-uni-layouts'exportdefaultdefineConfig({plugins:[UniLayouts(),uni...
如果你使用vite-plugin-uni-pages, 只需使用 route-block <routelang="json"> { "layout": "anyLayout" } </route> TODO [x] ref 支持 [x] 动态布局 [ ] 类型安全 Readme Keywords none Install npm i@snicesoft/vite-plugin-uni-layouts
为Vite 下的 uni-app 提供类 nuxt 的 layouts 系统. Contribute to uni-helper/vite-plugin-uni-layouts development by creating an account on GitHub.
importUniLayoutsfrom'@uni-helper/vite-plugin-uni-layouts' // https://vitejs.dev/config/ exportdefaultdefineConfig({ plugins:[UniLayouts(),uni()], }); }) 2 changes: 1 addition & 1 deletion2pnpm-workspace.yaml Original file line numberDiff line numberDiff line change ...