File tree Expand file tree Collapse file tree 4 files changed +58
-3
lines changed
Expand file tree Collapse file tree 4 files changed +58
-3
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div id =" app" >
3- <router-view />
3+ <div class =" fm-header" >
4+ <img class =" fm-logo" src =" ./assets/logo.png" >
5+ <div class =" fm-title" >表单设计器</div >
6+
7+ <div class =" fm-link" >
8+ <a href =" https://github.com/GavinZhuLei/vue-form-making" >GitHub</a >
9+ <a href =" https://gitee.com/gavinzhulei/vue-form-making" >码云</a >
10+ </div >
11+ </div >
12+ <div class =" fm-container" ><router-view /></div >
413 </div >
514</template >
615
@@ -12,6 +21,47 @@ export default {
1221 </script >
1322
1423<style lang="scss">
24+ .fm-header {
25+ height : 50px ;
26+ box-shadow : 0 2px 10px rgba (70 ,160 ,252 , 0.6 );
27+ padding : 0 10px ;
28+ background-image : linear-gradient (to right ,#1278f6 ,#00b4aa );
29+
30+ .fm-logo {
31+ height : 26px ;
32+ vertical-align : middle ;
33+ }
34+ .fm-title {
35+ display : inline-block ;
36+ line-height : 50px ;
37+ vertical-align : middle ;
38+ color : #fff ;
39+ font-size : 20px ;
40+ font-weight : 600 ;
41+ opacity : 0.8 ;
42+ margin-left : 6px ;
43+ }
44+ .fm-link {
45+ height : 50px ;
46+ float : right ;
47+
48+ a {
49+ color : #fff ;
50+ text-decoration : none ;
51+ font-size : 14px ;
52+ line-height : 50px ;
53+ font-weight : 500 ;
54+ margin-left : 10px ;
55+
56+ & :hover {
57+ opacity : 0.8 ;
58+ }
59+ }
60+ }
61+ }
62+ .fm-container {
63+ height : calc (100% - 50px );
64+ }
1565* , :after , :before {
1666 -webkit-box-sizing : border-box ;
1767 -moz-box-sizing : border-box ;
Original file line number Diff line number Diff line change 5555 </el-aside >
5656 <el-container class =" center-container" direction =" vertical" >
5757 <el-header class =" btn-bar" style =" height : 45px ;" >
58- <el-button type =" text" size =" medium" @click =" handleGoGithub" >GitHub</el-button >
58+ <!-- < el-button type="text" size="medium" @click="handleGoGithub">GitHub</el-button> -- >
5959 <el-button type =" text" size =" medium" icon =" el-icon-view" @click =" handlePreview" >预览</el-button >
6060 <el-button type =" text" size =" medium" icon =" el-icon-tickets" @click =" handleGenerateJson" >生成JSON</el-button >
6161 <el-button type =" text" size =" medium" icon =" el-icon-document" @click =" handleGenerateCode" >生成代码</el-button >
6262 </el-header >
63- <el-main >
63+ <el-main :class = " {'widget-empty': widgetForm.list.length == 0} " >
6464
6565 <widget-form ref =" widgetForm" :data =" widgetForm" :select.sync =" widgetFormSelect" ></widget-form >
6666 </el-main >
@@ -259,4 +259,9 @@ export default {
259259@import ' ../styles/cover.scss' ;
260260@import ' ../styles/index.scss' ;
261261
262+ .widget-empty {
263+ background : url (' ../assets/form_empty.png' ) no-repeat ;
264+ background-position : 50% ;
265+ }
266+
262267 </style >
You can’t perform that action at this time.
0 commit comments