提交 2f499332 编写于 作者: Q qiang

fix(h5): uni-layout class

上级 c89dbdf9
...@@ -10066,7 +10066,13 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le ...@@ -10066,7 +10066,13 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le
const topWindowTsx = __UNI_FEATURE_TOPWINDOW__ ? createTopWindowTsx(topWindow, layoutState, windowState) : null; const topWindowTsx = __UNI_FEATURE_TOPWINDOW__ ? createTopWindowTsx(topWindow, layoutState, windowState) : null;
const leftWindowTsx = __UNI_FEATURE_LEFTWINDOW__ ? createLeftWindowTsx(leftWindow, layoutState, windowState) : null; const leftWindowTsx = __UNI_FEATURE_LEFTWINDOW__ ? createLeftWindowTsx(leftWindow, layoutState, windowState) : null;
const rightWindowTsx = __UNI_FEATURE_RIGHTWINDOW__ ? createRightWindowTsx(rightWindow, layoutState, windowState) : null; const rightWindowTsx = __UNI_FEATURE_RIGHTWINDOW__ ? createRightWindowTsx(rightWindow, layoutState, windowState) : null;
return vue.createVNode("uni-layout", null, { return vue.createVNode("uni-layout", {
"class": {
"uni-app--showtopwindow": __UNI_FEATURE_TOPWINDOW__ && layoutState.showTopWindow,
"uni-app--showleftwindow": __UNI_FEATURE_LEFTWINDOW__ && layoutState.showLeftWindow,
"uni-app--showrightwindow": __UNI_FEATURE_RIGHTWINDOW__ && layoutState.showRightWindow
}
}, {
default: () => [topWindowTsx, vue.createVNode("uni-content", null, { default: () => [topWindowTsx, vue.createVNode("uni-content", null, {
default: () => [vue.createVNode("uni-main", null, _isSlot$1(routerVNode) ? routerVNode : { default: () => [vue.createVNode("uni-main", null, _isSlot$1(routerVNode) ? routerVNode : {
default: () => [routerVNode], default: () => [routerVNode],
...@@ -10075,7 +10081,7 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le ...@@ -10075,7 +10081,7 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le
_: 2 _: 2
})], })],
_: 2 _: 2
}); }, 8, ["class"]);
} }
function useShowTabBar(emit2) { function useShowTabBar(emit2) {
const route = vueRouter.useRoute(); const route = vueRouter.useRoute();
......
...@@ -18680,7 +18680,13 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le ...@@ -18680,7 +18680,13 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le
const topWindowTsx = __UNI_FEATURE_TOPWINDOW__ ? createTopWindowTsx(topWindow, layoutState, windowState) : null; const topWindowTsx = __UNI_FEATURE_TOPWINDOW__ ? createTopWindowTsx(topWindow, layoutState, windowState) : null;
const leftWindowTsx = __UNI_FEATURE_LEFTWINDOW__ ? createLeftWindowTsx(leftWindow, layoutState, windowState) : null; const leftWindowTsx = __UNI_FEATURE_LEFTWINDOW__ ? createLeftWindowTsx(leftWindow, layoutState, windowState) : null;
const rightWindowTsx = __UNI_FEATURE_RIGHTWINDOW__ ? createRightWindowTsx(rightWindow, layoutState, windowState) : null; const rightWindowTsx = __UNI_FEATURE_RIGHTWINDOW__ ? createRightWindowTsx(rightWindow, layoutState, windowState) : null;
return createVNode("uni-layout", null, { return createVNode("uni-layout", {
"class": {
"uni-app--showtopwindow": __UNI_FEATURE_TOPWINDOW__ && layoutState.showTopWindow,
"uni-app--showleftwindow": __UNI_FEATURE_LEFTWINDOW__ && layoutState.showLeftWindow,
"uni-app--showrightwindow": __UNI_FEATURE_RIGHTWINDOW__ && layoutState.showRightWindow
}
}, {
default: () => [topWindowTsx, createVNode("uni-content", null, { default: () => [topWindowTsx, createVNode("uni-content", null, {
default: () => [createVNode("uni-main", null, _isSlot$2(routerVNode) ? routerVNode : { default: () => [createVNode("uni-main", null, _isSlot$2(routerVNode) ? routerVNode : {
default: () => [routerVNode], default: () => [routerVNode],
...@@ -18689,7 +18695,7 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le ...@@ -18689,7 +18695,7 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le
_: 2 _: 2
})], })],
_: 2 _: 2
}); }, 8, ["class"]);
} }
function useShowTabBar(emit2) { function useShowTabBar(emit2) {
const route = useRoute(); const route = useRoute();
......
...@@ -311,7 +311,16 @@ function createLayoutTsx( ...@@ -311,7 +311,16 @@ function createLayoutTsx(
? createRightWindowTsx(rightWindow, layoutState!, windowState!) ? createRightWindowTsx(rightWindow, layoutState!, windowState!)
: null : null
return ( return (
<uni-layout> <uni-layout
class={{
'uni-app--showtopwindow':
__UNI_FEATURE_TOPWINDOW__ && layoutState!.showTopWindow,
'uni-app--showleftwindow':
__UNI_FEATURE_LEFTWINDOW__ && layoutState!.showLeftWindow,
'uni-app--showrightwindow':
__UNI_FEATURE_RIGHTWINDOW__ && layoutState!.showRightWindow,
}}
>
{topWindowTsx} {topWindowTsx}
<uni-content> <uni-content>
<uni-main>{routerVNode}</uni-main> <uni-main>{routerVNode}</uni-main>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册