Commit 78b6d601 by Jaxon

chron: 项目基础配置

1 parent 5ec91995
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
"cSpell.words": [ "cSpell.words": [
"vuex", "vuex",
"Cascader", "Cascader",
"glsx" "glsx",
"vant"
], ],
"workbench.tree.indent": 24, "workbench.tree.indent": 24,
"explorer.compactFolders": false, "explorer.compactFolders": false,
......
<template> <template>
<div id="app"> <div id="app" :class="$route.meta.showTabBar ? 'tab-bar-page' : ''">
<template v-if="showWindow"> <template v-if="showWindow">
<transition name="fade"> <transition name="fade">
<keep-alive v-if="$route.meta.keepAlive"> <keep-alive v-if="$route.meta.keepAlive">
...@@ -51,4 +51,14 @@ export default { ...@@ -51,4 +51,14 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
#app {
height: 100%;
overflow: hidden;
box-sizing: border-box;
padding-bottom: calc(env(safe-area-inset-bottom) / 1.5);
background-color: transparent;
}
.tab-bar-page {
padding-bottom: calc(46px + (env(safe-area-inset-bottom) / 1.5)) !important;
}
</style> </style>
...@@ -7,6 +7,9 @@ body #app { ...@@ -7,6 +7,9 @@ body #app {
background-color: #fff; background-color: #fff;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
height: 100%; height: 100%;
overflow: hidden;
background-color: transparent;
// overflow: hidden; // overflow: hidden;
--themeColor: #3975c6; --themeColor: #3975c6;
/* 兼容 IOS<11.2 先constant再env */ /* 兼容 IOS<11.2 先constant再env */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!