Sfoglia il codice sorgente

refactor: default layout

菲鸽 2 anni fa
parent
commit
e78403152a
1 ha cambiato i file con 10 aggiunte e 11 eliminazioni
  1. 10 11
      src/layouts/default.vue

+ 10 - 11
src/layouts/default.vue

@@ -1,23 +1,22 @@
 <template>
   <view class="default-layout">
     <slot />
-    <view class="text-gray-400 m-auto mt-12">[default layout]</view>
   </view>
 </template>
 
 <style lang="scss">
-.default-layout {
-  display: flex;
-  flex-direction: column;
-
-  // #ifdef MP-WEIXIN
+page {
   height: 100%;
+  overflow: auto;
+}
 
-  // #endif
-  // #ifndef MP-WEIXIN
-  min-height: 100%;
+body {
+  height: 100%;
+  overflow: auto;
+}
 
-  // #endif
-  overflow: hidden;
+.default-layout {
+  height: 100%;
+  overflow: auto;
 }
 </style>