|
1 | 1 | <template>
|
2 |
| - <div id="wrapper"> |
3 |
| - |
4 |
| - </div> |
| 2 | + <a-layout id="components-layout-demo-side" style="min-height: 100vh"> |
| 3 | + <a-layout-sider collapsible v-model="collapsed"> |
| 4 | + <div class="logo" /> |
| 5 | + <a-menu theme="dark" :defaultSelectedKeys="['1']" mode="inline"> |
| 6 | + <a-menu-item key="1"> |
| 7 | + <a-icon type="pie-chart" /> |
| 8 | + <span>Option 1</span> |
| 9 | + </a-menu-item> |
| 10 | + <a-menu-item key="2"> |
| 11 | + <a-icon type="desktop" /> |
| 12 | + <span>Option 2</span> |
| 13 | + </a-menu-item> |
| 14 | + <a-sub-menu key="sub1"> |
| 15 | + <span slot="title"><a-icon type="user" /><span>User</span></span> |
| 16 | + <a-menu-item key="3">Tom</a-menu-item> |
| 17 | + <a-menu-item key="4">Bill</a-menu-item> |
| 18 | + <a-menu-item key="5">Alex</a-menu-item> |
| 19 | + </a-sub-menu> |
| 20 | + <a-sub-menu key="sub2"> |
| 21 | + <span slot="title"><a-icon type="team" /><span>Team</span></span> |
| 22 | + <a-menu-item key="6">Team 1</a-menu-item> |
| 23 | + <a-menu-item key="8">Team 2</a-menu-item> |
| 24 | + </a-sub-menu> |
| 25 | + <a-menu-item key="9"> |
| 26 | + <a-icon type="file" /> |
| 27 | + <span>File</span> |
| 28 | + </a-menu-item> |
| 29 | + </a-menu> |
| 30 | + </a-layout-sider> |
| 31 | + <a-layout> |
| 32 | + <a-layout-header style="background: #fff; padding: 0" /> |
| 33 | + <a-layout-content style="margin: 0 16px"> |
| 34 | + <a-breadcrumb style="margin: 16px 0"> |
| 35 | + <a-breadcrumb-item>User</a-breadcrumb-item> |
| 36 | + <a-breadcrumb-item>Bill</a-breadcrumb-item> |
| 37 | + </a-breadcrumb> |
| 38 | + <div :style="{ padding: '24px', background: '#fff', minHeight: '360px' }"> |
| 39 | + Bill is a cat. |
| 40 | + </div> |
| 41 | + </a-layout-content> |
| 42 | + <a-layout-footer style="text-align: center"> |
| 43 | + Ant Design ©2018 Created by Ant UED |
| 44 | + </a-layout-footer> |
| 45 | + </a-layout> |
| 46 | + </a-layout> |
5 | 47 | </template>
|
6 |
| - |
7 | 48 | <script>
|
8 | 49 | export default {
|
9 |
| - name: 'landing-page', |
10 |
| - components: { |
11 |
| - 'down-log': DownLog |
12 |
| - }, |
13 | 50 | data () {
|
14 | 51 | return {
|
15 |
| - cache: [], |
16 |
| - status: 'idle' |
| 52 | + collapsed: false |
17 | 53 | }
|
18 |
| - }, |
19 |
| - computed: { |
20 |
| - isRunning () { |
21 |
| - return this.status === 'running' |
22 |
| - } |
23 |
| - }, |
24 |
| - mounted () { |
25 |
| -
|
26 |
| - }, |
27 |
| - methods: { |
28 | 54 | }
|
29 | 55 | }
|
30 | 56 | </script>
|
31 | 57 |
|
32 |
| - |
33 |
| - |
34 | 58 | <style>
|
35 |
| - @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro'); |
36 |
| - * { |
37 |
| - box-sizing: border-box; |
38 |
| - margin: 0; |
39 |
| - padding: 0; |
40 |
| - } |
41 |
| - body { font-family: 'Source Sans Pro', sans-serif; } |
42 |
| - #wrapper { |
43 |
| - background: |
44 |
| - radial-gradient( |
45 |
| - ellipse at top left, |
46 |
| - rgba(255, 255, 255, 1) 40%, |
47 |
| - rgba(229, 229, 229, .9) 100% |
48 |
| - ); |
49 |
| - height: 100vh; |
50 |
| - padding: 60px 80px; |
51 |
| - width: 100vw; |
| 59 | + #components-layout-demo-side .logo { |
| 60 | + height: 32px; |
| 61 | + background: rgba(255, 255, 255, 0.2); |
| 62 | + margin: 16px; |
52 | 63 | }
|
53 | 64 | </style>
|
0 commit comments