mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-14 08:51:28 +08:00
fix chrome bug
This commit is contained in:
parent
3035b83e15
commit
45442bb8b2
@ -1,2 +1,3 @@
|
||||
@import "./themes/default";
|
||||
@import "./core/index";
|
||||
@import "./vue-antd";
|
||||
|
6
components/style/vue-antd.less
Normal file
6
components/style/vue-antd.less
Normal file
@ -0,0 +1,6 @@
|
||||
html {
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
body {
|
||||
position: relative !important;
|
||||
}
|
@ -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>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user