提交 0a3e9f02 编写于 作者: fxy060608's avatar fxy060608

feat(h5): nvue

上级 5b762be8
......@@ -145,6 +145,11 @@ function beforeEach (to, from, next, routes) {
if (__PLATFORM__ === 'h5') {
if (to.meta && to.meta.name) {
document.body.className = 'uni-body ' + to.meta.name
if (to.meta.isNVue) {
document.body.setAttribute('nvue', '')
} else {
document.body.removeAttribute('nvue')
}
}
}
......
......@@ -107,6 +107,9 @@ export default {
if (__PLATFORM__ === 'h5') {
if (entryRoute.meta && entryRoute.meta.name) {
document.body.className = 'uni-body ' + entryRoute.meta.name
if (entryRoute.meta.isNVue) {
document.body.setAttribute('nvue', '')
}
}
}
......
......@@ -120,3 +120,9 @@ uni-page {
.uni-fade-leave-active {
opacity: 0
}
[nvue] uni-view {
display: flex;
flex-direction: column;
box-sizing: border-box;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册