Commit 42488b87 authored by zhangboyang's avatar zhangboyang

table换行换页

parent 197665bf
<template> <template>
<div id="app"> <div id="app">
<router-view/> <router-view v-if="isRouterAlicve"/>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'App' name: "App",
} provide() {
return { reload: this.reload };
},
data() {
return {
isRouterAlicve: true
};
},
methods: {
reload() {
this.isRouterAlicve = false;
this.$nextTick(function() {
this.isRouterAlicve = true;
});
}
}
};
</script> </script>
<style> <style>
#app { #app {
font-family: 'Avenir', Helvetica, Arial, sans-serif; font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
/* text-align: center; */ /* text-align: center; */
color: #2c3e50; color: #2c3e50;
height:100%; height: 100%;
width: 100% width: 100%;
} }
*{ * {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
body,html{ body,
margin:0 auto; html {
height:100%; margin: 0 auto;
width: 100%; height: 100%;
overflow-x: hidden; overflow-y: auto; width: 100%;
overflow-x: hidden;
overflow-y: auto;
} }
#app >div{ #app > div {
height: 100%; height: 100%;
} }
</style> </style>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment