11<template >
22 <div class =" wrapper" >
33 <header class =" header" >
4- <v-header ></ v-header >
4+ <v-header / >
55 </header >
6- <div class =" sidebar " >
7- <v-sidebar ></ v-sidebar >
6+ <div class =" widget-form " >
7+ <widgetForm / >
88 </div >
9- <div id =" container" >
10- <div
11- class =" handle-sidebar"
12- :class =" showSidebar?'el-icon-caret-left':'el-icon-caret-right'"
13- @click =" toggleSidebar()"
14- ></div >
15- <div style =" min-width : 1100px ;" >
16- <transition name =" move" mode =" out-in" >
17- <router-view ></router-view >
18- </transition >
19- </div >
9+ <div class =" design-form" >
10+ <designForm />
11+ </div >
12+ <div class =" widget-config" >
13+ <widgetConfig />
2014 </div >
2115 </div >
2216</template >
2317
2418<script >
2519import vHeader from " @/components/header.vue" ;
26- import vSidebar from " @/components/sidebar.vue" ;
20+ import widgetForm from " @/components/widget-form.vue" ;
21+ import designForm from " @/components/design-form.vue" ;
22+ import widgetConfig from " @/components/widget-config.vue" ;
2723export default {
2824 components: {
2925 vHeader,
30- vSidebar
26+ widgetForm,
27+ designForm,
28+ widgetConfig
3129 },
3230 data () {
3331 return {
34- showSidebar: true ,
35- dom_container: " "
3632 };
3733 },
3834 methods: {
39- toggleSidebar () {
40- this .showSidebar
41- ? (document .getElementById (" container" ).style .left = 0 )
42- : (document .getElementById (" container" ).style .left = " 200px" );
43- this .showSidebar = ! this .showSidebar ;
44- }
35+
4536 },
4637 mounted () {
47- this .$nextTick (function () {
48- window . dom_container = document . getElementById ( " container " );
38+ this .$nextTick (function () {
39+
4940 });
5041 }
5142};
@@ -59,9 +50,9 @@ export default {
5950 color : #fff ;
6051 background : #242f42 ;
6152}
62- .sidebar {
53+ .widget-form {
6354 position : absolute ;
64- width : 200 px ;
55+ width : 300 px ;
6556 left : 0 ;
6657 top : 70px ;
6758 bottom : 0 ;
@@ -73,39 +64,25 @@ export default {
7364 display : none ;
7465}
7566
76- #container {
67+ .design-form {
7768 background : none repeat scroll 0 0 #fff ;
7869 position : absolute ;
79- left : 200 px ;
80- right : 0 ;
70+ left : 300 px ;
71+ right : 300 px ;
8172 top : 70px ;
8273 bottom : 0 ;
8374 padding : 40px ;
8475 box-sizing : border-box ;
8576 overflow : auto ;
86- transition : 0.3s ;
8777}
88- .handle-sidebar {
78+ .widget-config {
8979 position : absolute ;
90- top : 0 ;
91- left : 0 ;
92- font-size : 30px ;
93- }
94- @media screen and (min-width : 720px ) {
95- .handle-sidebar {
96- display : none ;
97- }
98- .user-info {
99- padding-right : 50px ;
100- }
101- }
102- .move-enter-active ,
103- .move-leave-active {
104- transition : opacity 0.5s ;
105- }
106- .move-enter ,
107- .move-leave {
108- opacity : 0 ;
80+ width : 300px ;
81+ right : 0 ;
82+ top : 70px ;
83+ bottom : 0 ;
84+ background : #324157 ;
85+ -ms-overflow-style : none ;
10986}
11087 </style >
11188
0 commit comments