From 0438ab16c146ae1f9b6823bb36f5490e0036f5bb Mon Sep 17 00:00:00 2001 From: 1319612909 <1319612909@qq.com> Date: Tue, 24 Nov 2020 17:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AFui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/App.vue | 1 + web/src/style/basics.scss | 3 + web/src/style/main.scss | 16 +- web/src/style/mobile.scss | 89 ++++++++ web/src/view/dashboard/index.vue | 349 ++++++++++++++++------------- web/src/view/example/form/form.vue | 34 +-- web/src/view/layout/index.vue | 35 ++- 7 files changed, 332 insertions(+), 195 deletions(-) create mode 100644 web/src/style/mobile.scss diff --git a/web/src/App.vue b/web/src/App.vue index b79771fe..4564d38a 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -15,6 +15,7 @@ export default { // 引入初始化样式 @import '@/style/main.scss'; @import '@/style/base.scss'; +@import '@/style/mobile.scss'; #app { background: #eee; height: 100vh; diff --git a/web/src/style/basics.scss b/web/src/style/basics.scss index 1280dfee..767a99e5 100644 --- a/web/src/style/basics.scss +++ b/web/src/style/basics.scss @@ -32,3 +32,6 @@ $color-table-tbody:#595959; $color-table-thead:#262626; // dashboard $height-car:68px; +// mobile +$padding-xs: 5px; +$margin-xs: 5px; diff --git a/web/src/style/main.scss b/web/src/style/main.scss index b849814e..432b1cb6 100644 --- a/web/src/style/main.scss +++ b/web/src/style/main.scss @@ -1204,6 +1204,14 @@ $mainHight: 100vh; top: 0; box-sizing: border-box; z-index: 999; + >.el-row{ + padding: 0; + .el-col-lg-14{ + height: 60px; + } + } + + } @@ -1387,14 +1395,14 @@ $mainHight: 100vh; .car-left { height: $height-car; - width: 70%; - float: left; + // width: 70%; + // float: left; } .car-right { height: $height-car; - width: 29%; - float: left; + // width: 29%; + // float: left; .flow, .user-number, diff --git a/web/src/style/mobile.scss b/web/src/style/mobile.scss new file mode 100644 index 00000000..4bc840b4 --- /dev/null +++ b/web/src/style/mobile.scss @@ -0,0 +1,89 @@ + +@import '@/style/basics.scss'; +@media screen and (min-width: 320px)and (max-width: 750px){ + .el-header{ + padding: 0 $padding-xs; + } + .layout-cont { + .main-cont{ + .breadcrumb{ + padding: 0 $padding-xs; + } + } + } + .layout-cont{ + .right-box{ + margin-right: $margin-xs; + } + } + .search-component{ + width: 30px; + } + .screenfull{ + width: 26px; + text-align: center; + } + .el-main{ + .admin-box{ + margin-left: 0; + margin-right: 0; + } + .big.admin-box{ + padding: 0 0 15px 0; + } + .big { + .bottom { + .chart-player{ + height: auto!important; + margin-bottom: 15px; + } + .todoapp{ + background-color: #fff; + padding-bottom: 10px; + } + } + } + } + + .card .car-left, + .card .car-right{ + width: 100%; + height: 100%; + } + .card{ + padding-left: $padding-xs; + padding-right: $padding-xs; + + } + .card { + .text{ + width: 100%; + h4{ + white-space: break-spaces; + } + } + } + .shadow{ + margin-left: 5px; + margin-right: 5px; + .grid-content{ + margin-bottom: 10px; + padding: 0; + } + } + .el-dialog{ + width: 90%; + } + .el-transfer{ + .el-transfer-panel{ + width: 40%; + display: inline-block; + } + .el-transfer__buttons{ + padding: 0 5px; + display: inline-block; + } + + } + +} \ No newline at end of file diff --git a/web/src/view/dashboard/index.vue b/web/src/view/dashboard/index.vue index 3f93b575..4b7b45b2 100644 --- a/web/src/view/dashboard/index.vue +++ b/web/src/view/dashboard/index.vue @@ -1,179 +1,204 @@ diff --git a/web/src/view/example/form/form.vue b/web/src/view/example/form/form.vue index 8c8c0f9e..c1f70f87 100644 --- a/web/src/view/example/form/form.vue +++ b/web/src/view/example/form/form.vue @@ -2,12 +2,12 @@
- - + + - - + + @@ -15,8 +15,8 @@ - - + + @@ -27,12 +27,12 @@ - - + + - - + + @@ -42,8 +42,8 @@ - - + + @@ -51,12 +51,12 @@ - - + + - - + + - + diff --git a/web/src/view/layout/index.vue b/web/src/view/layout/index.vue index ad5ad72e..0a578f2f 100644 --- a/web/src/view/layout/index.vue +++ b/web/src/view/layout/index.vue @@ -16,18 +16,25 @@ :style="{width: `calc(100% - ${isMobile?'0px':isCollapse?'54px':'220px'})`}" class="topfix" > + + - - - {{item.meta.title}} - -
+ + + + + + {{item.meta.title}} + + + +
@@ -48,7 +55,10 @@
+
+ + @@ -172,8 +182,9 @@ export default { } } -