-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wanglin
committed
Jul 14, 2017
1 parent
6730864
commit 68b9b0f
Showing
7 changed files
with
355 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<template> | ||
<div id="components-layout-demo-fixed-sider"> | ||
<v-layout> | ||
<v-sider :style="{ overflow: 'auto', height: '100vh', position: 'fixed', left: 0 }"> | ||
<div class="logo"></div> | ||
<v-menu theme="dark" :mode="collapsed?'vertical':'inline'" :data="menuData"> | ||
<template scope="{data}"> | ||
<i v-if="data.icon" :class="'anticon anticon-' + data.icon"></i> | ||
<span :class="{'nav-text':data.icon}">{{data.name}}</span> | ||
</template> | ||
<template scope="{data}" slot="sub"> | ||
<i v-if="data.icon" :class="'anticon anticon-' + data.icon"></i> | ||
<span class="nav-text">{{data.name}}</span> | ||
</template> | ||
</v-menu> | ||
</v-sider> | ||
<v-layout :style="{ marginLeft: '200px' }"> | ||
<v-header :style="{ background: '#fff', padding: 0 }"></v-header> | ||
<v-content :style="{ margin: '24px 16px 0', overflow: 'initial' }"> | ||
<div :style="{ padding: 24, background: '#fff', textAlign: 'center' }">... | ||
<br /> | ||
Really | ||
<br />...<br />...<br />...<br /> | ||
long | ||
<br />...<br />...<br />...<br />...<br />...<br />... | ||
<br />...<br />...<br />...<br />...<br />...<br />... | ||
<br />...<br />...<br />...<br />...<br />...<br />... | ||
<br />...<br />...<br />...<br />...<br />...<br />... | ||
<br />...<br />...<br />...<br />...<br />...<br />... | ||
<br />...<br />...<br />...<br />...<br />...<br />... | ||
<br />...<br />...<br />...<br />...<br />...<br /> | ||
content | ||
</div> | ||
</v-content> | ||
<v-footer :style="{ textAlign: 'center' }"> | ||
Ant Design ©2016 Created by Ant UED | ||
</v-footer> | ||
</v-layout> | ||
</v-layout> | ||
</div> | ||
</template> | ||
|
||
<script lang="babel"> | ||
export default{ | ||
data() { | ||
return { | ||
menuData: [{ | ||
name: 'nav 1', | ||
icon: 'user', | ||
}, { | ||
name: 'nav 2', | ||
icon: 'video-camera', | ||
}, { | ||
name: 'nav 3', | ||
icon: 'upload', | ||
}, { | ||
name: 'nav 4', | ||
icon: 'bar-chart', | ||
selected: true, | ||
}, { | ||
name: 'nav 5', | ||
icon: 'cloud-o', | ||
}, { | ||
name: 'nav 6', | ||
icon: 'appstore-o', | ||
}, { | ||
name: 'nav 7', | ||
icon: 'team', | ||
}, { | ||
name: 'nav 8', | ||
icon: 'shop', | ||
}] | ||
} | ||
}, | ||
mounted() { | ||
let removeDom = document.querySelectorAll('.page-wrapper > header')[0]; | ||
if (removeDom) removeDom.remove(); | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="less"> | ||
#components-layout-demo-fixed-sider .logo { | ||
height: 32px; | ||
background: #333; | ||
border-radius: 6px; | ||
margin: 16px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<div id="components-layout-demo-fixed"> | ||
<v-layout> | ||
<v-header :style="{position: 'fixed', width: '100%', top: 0}"> | ||
<div class="logo"></div> | ||
<v-menu theme="dark" mode="horizontal" :data="menuData" :style="{lineHeight: '64px'}"></v-menu> | ||
</v-header> | ||
|
||
<v-content :style="{ padding: '0 50px', marginTop: '64px' }"> | ||
<v-breadcrumb :style="{ margin: '12px 0' }"> | ||
<v-breadcrumb-item>Home</v-breadcrumb-item> | ||
<v-breadcrumb-item href="">List</v-breadcrumb-item> | ||
<v-breadcrumb-item href="">App</v-breadcrumb-item> | ||
</v-breadcrumb> | ||
<div style="padding: 24px; background: #fff; min-height: 360px;">Content</div> | ||
</v-content> | ||
<v-footer :style="{ textAlign: 'center' }"> | ||
Ant Design ©2016 Created by Ant UED | ||
</v-footer> | ||
</v-layout> | ||
</div> | ||
</template> | ||
|
||
<script lang="babel"> | ||
export default{ | ||
data() { | ||
return { | ||
menuData: [{ | ||
name: 'nav 1', | ||
selected: true | ||
}, { | ||
name: 'nav 2', | ||
}, { | ||
name: 'nav 3', | ||
}], | ||
}; | ||
}, | ||
mounted() { | ||
let removeDom = document.querySelectorAll('.page-wrapper > header')[0]; | ||
if (removeDom) removeDom.remove(); | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="less"> | ||
#components-layout-demo-fixed .logo { | ||
width: 120px; | ||
height: 31px; | ||
background: #333; | ||
border-radius: 6px; | ||
margin: 16px 24px 16px 0; | ||
float: left; | ||
} | ||
</style> |
Oops, something went wrong.