From 6208acc47736aa5266206904cbb9381a90c6bd8a Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Sun, 28 Jun 2020 20:24:08 +0800 Subject: [PATCH] chore: update layout component's style to solve the problem of style dislocation at mobile device; :dog: --- src/components/page/PageHeader.vue | 37 +++---------- src/components/tool/AStepItem.vue | 11 +++- src/components/tool/HeadInfo.vue | 6 +- src/layouts/PageView.vue | 4 +- src/pages/dashboard/workplace/WorkPlace.vue | 3 - src/pages/detail/AdvancedDetail.vue | 61 +++++++-------------- src/pages/list/StandardList.vue | 10 +--- 7 files changed, 47 insertions(+), 85 deletions(-) diff --git a/src/components/page/PageHeader.vue b/src/components/page/PageHeader.vue index 59d4aea..a8397b1 100644 --- a/src/components/page/PageHeader.vue +++ b/src/components/page/PageHeader.vue @@ -10,15 +10,16 @@
-
-

{{title}}

-
+
+
+ +
@@ -82,45 +83,25 @@ export default { display: flex; .row { display: flex; + flex-wrap: wrap; + justify-content: space-between; } .avatar { - flex: 0 1 72px; - margin:0 24px 8px 0; - & > span { - border-radius: 72px; - display: block; - width: 72px; - height: 72px; - } + margin:0 24px 0 0; } .main{ width: 100%; .title{ - flex: auto; font-size: 20px; - font-weight: 500; color: rgba(0,0,0,.85); margin-bottom: 16px; } - .logo{ - width: 28px; - height: 28px; - border-radius: 4px; - margin-right: 16px; - } .content{ - flex: 1; + display: flex; + flex-wrap: wrap; } .extra{ display: flex; - margin-left: 88px; - min-width: 420px; - } - .action{ - margin-left: 56px; - min-width: 266px; - flex: 0 1 auto; - text-align: right; } } } diff --git a/src/components/tool/AStepItem.vue b/src/components/tool/AStepItem.vue index fab269b..b8ef378 100644 --- a/src/components/tool/AStepItem.vue +++ b/src/components/tool/AStepItem.vue @@ -12,10 +12,19 @@ diff --git a/src/pages/list/StandardList.vue b/src/pages/list/StandardList.vue index c44c1ce..0f30fc9 100644 --- a/src/pages/list/StandardList.vue +++ b/src/pages/list/StandardList.vue @@ -1,17 +1,11 @@