Commit eb6d11502fa71dc32d359020f83b16852e972ec3
1 parent
7e22e0a3
title 总计 简单封装
Showing
6 changed files
with
74 additions
and
4 deletions
index.html
... | ... | @@ -2,7 +2,8 @@ |
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | - <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
5 | + <!--<meta name="viewport" content="width=device-width,initial-scale=1.0">--> | |
6 | + <meta name="viewport" content="width=1200"> | |
6 | 7 | <title>监控</title> |
7 | 8 | </head> |
8 | 9 | <body> | ... | ... |
src/components/titlesection.vue
0 → 100644
src/components/total.vue
0 → 100644
src/styles/reset.css
src/views/mainContainer.vue
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <div class="maincontainer"> |
3 | 3 | <ul class="containerwrap clearfix"> |
4 | 4 | <li> |
5 | - <div class="heightsmall"></div> | |
5 | + <pdasection class="heightsmall"></pdasection> | |
6 | 6 | <div class="heightsmall margin12-0"></div> |
7 | 7 | <div class="heightsmall"></div> |
8 | 8 | </li> |
... | ... | @@ -22,10 +22,13 @@ |
22 | 22 | |
23 | 23 | <script> |
24 | 24 | import loadinggif from '../components/loading' |
25 | - | |
25 | +import pdasection from '../views/pdasection' | |
26 | 26 | export default { |
27 | 27 | name: 'mainContainer', |
28 | - components: {loadinggif}, | |
28 | + components: { | |
29 | + loadinggif, | |
30 | + pdasection | |
31 | + }, | |
29 | 32 | data() { |
30 | 33 | return { |
31 | 34 | showLoaddingGif: false |
... | ... | @@ -58,6 +61,8 @@ export default { |
58 | 61 | .heightsmall { |
59 | 62 | flex: 1; |
60 | 63 | background: #f00; |
64 | + display: flex; | |
65 | + flex-direction: column; | |
61 | 66 | } |
62 | 67 | |
63 | 68 | .containerwrap > li:nth-of-type(2) { | ... | ... |
src/views/pdasection.vue
0 → 100644
1 | +<template> | |
2 | + <div> | |
3 | + <titlesection></titlesection> | |
4 | + <totalsection></totalsection> | |
5 | + <div class="flexfm"></div> | |
6 | + </div> | |
7 | +</template> | |
8 | + | |
9 | +<script> | |
10 | +import titlesection from '../components/titlesection' | |
11 | +import totalsection from '../components/total' | |
12 | +export default { | |
13 | + name: 'pdasection', | |
14 | + components: { | |
15 | + titlesection, | |
16 | + totalsection | |
17 | + } | |
18 | +} | |
19 | +</script> | |
20 | + | |
21 | +<style scoped> | |
22 | + | |
23 | +</style> | ... | ... |