fix chrome bug

This commit is contained in:
tangjinzhou 2018-02-01 17:07:44 +08:00
parent 3035b83e15
commit 45442bb8b2
5 changed files with 13 additions and 12 deletions

View File

@ -1,2 +1,3 @@
@import "./themes/default";
@import "./core/index";
@import "./vue-antd";

View File

@ -0,0 +1,6 @@
html {
overflow-y: auto !important;
}
body {
position: relative !important;
}

View File

@ -1,8 +1,6 @@
<script>
import { Menu } from 'antd'
import * as AllDemo from '../demo'
import Header from './header'
const MenuItem = Menu.Item
export default {
render () {
const { name, demo } = this.$route.params // eslint-disable-line
@ -15,11 +13,11 @@ export default {
<div class='site'>
<Header />
<div class='main-wrapper'>
<Menu class='nav' selectedKeys={[name]}>
{Object.keys(AllDemo).map(d => <MenuItem key={d}>
<a-menu class='nav' selectedKeys={[name]}>
{Object.keys(AllDemo).map(d => <a-menu-item key={d}>
<router-link to={{ path: `/components/${lang}/${d}` }}>{d}</router-link>
</MenuItem>)}
</Menu>
</a-menu-item>)}
</a-menu>
<div class='content main-container'>
{Demo ? <Demo /> : '正在紧急开发中...'}
</div>

View File

@ -1,6 +1,8 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>

View File

@ -1,18 +1,12 @@
@import './theme/static/index.less';
#app {
height: 100%;
}
.site {
display: flex;
flex-direction: column;
height: 100%;
.nav {
width: 200px;
overflow-y: scroll;
}
.content {
flex: 1;
overflow-y: scroll;
}
#header {
padding: 0 50px;