1. 引入@babel/polyfill; 2. 布局样式兼容IE11
@@ -4,7 +4,7 @@ const isBuildLib = process.env.VUE_CLI_BUILD_TARGET === 'lib'
module.exports = {
presets: [
['@vue/app', {
- useBuiltIns: isBuildLib ? false : 'usage'
+ useBuiltIns: isBuildLib ? false : 'entry'
}]
]
}
@@ -95,6 +95,7 @@ $just-trans: all .2s ease-in-out;
.app-main {
+ display: block;
padding-left: $side-width;
height: 100%;
transition: $just-trans;
@@ -1,6 +1,7 @@
html, body {
width: 100%;
+ overflow: hidden;
body {
@@ -1,3 +1,4 @@
+import '@babel/polyfill'
import Vue from 'vue'
import RouterTab from '../src'