Comments (5)
How to set up without requiring layout
There is currently no option to simply not apply layout,You can create an empty layout, such as src/layouts/plain.ts
<!-- src/layouts/plain.vue -->
<template>
<router-view />
</template>
in your page
<route lang="yaml">
meta:
layout: plain
</route>
from vite-plugin-vue-layouts.
How to set up without requiring layout
I seem to have missed something, the default Layouts
has already been implemented → eaaa8c3
from vite-plugin-vue-layouts.
You can avoid using layout by setting it in your .vue
file as follows, it works in version 0.11.0.
If it doesn't work, perhaps you need to restart the program.
<route lang="yaml">
meta:
layout: false
</route>
I'm sorry to comment in a closed issue, but I hope to be able to help others who encounter this problem.
from vite-plugin-vue-layouts.
How to set up without requiring layout
I seem to have missed something, the default
Layouts
has already been implemented → eaaa8c3
no effect
from vite-plugin-vue-layouts.
no effect
@wen403
Hi, I'm sorry it didn't work, but if you can, please open a new issue with a minimum repository so we can track and fix the issue. 😭
from vite-plugin-vue-layouts.
Related Issues (20)
- Maybe there's something wrong with this regex? HOT 1
- Need to add support for Vite 5.0 HOT 2
- MODULE_ID_VIRTUAL need start '\0' HOT 3
- unable to work with `unplugin-vue-router/vite` HOT 5
- default layout not processed when using sub folder without a layout HOT 7
- Routing nesting problem HOT 2
- Nested page render the default layout even set to another layout HOT 2
- The routing nesting problem is still unresolved HOT 5
- Why are ['node_modules', '**/__*__/*'] excluded by default? HOT 7
- Does Named Views support? HOT 1
- File changes in version 0.11.0 do not trigger hot updates of vite (vite5.0.11) HOT 5
- Params route inherit default layout HOT 3
- Nested Pages (unplugin-vue-router) nest the layout pages HOT 3
- It seems doesn't work will with .jsx file. HOT 1
- HMR does not works when work with `unplugin-vue-router` HOT 1
- Not working with nested pages HOT 4
- Empty file route should not generate layout HOT 1
- [Feature Request] Allow `defaultLayout` accept a function
- Nested Pages - disable Layout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-vue-layouts.