Commit c312002b authored by 郭铭瑶's avatar 郭铭瑶 🤘

金字塔数字对齐

parent 423259a0
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>南京东路街道</title> <title>南京东路街道</title>
<script type="module" crossorigin src="./assets/index.4bb3f15a.js"></script> <script type="module" crossorigin src="./assets/index.56be8503.js"></script>
<link rel="modulepreload" href="./assets/vendor.0a2bc783.js"> <link rel="modulepreload" href="./assets/vendor.0a2bc783.js">
<link rel="stylesheet" href="./assets/index.a96a5e4b.css"> <link rel="stylesheet" href="./assets/index.a96a5e4b.css">
</head> </head>
......
...@@ -28,12 +28,17 @@ ...@@ -28,12 +28,17 @@
<div class="chart wrapper"> <div class="chart wrapper">
<img :src="pyramid" /> <img :src="pyramid" />
<div> <div>
<p v-for="item in pieData" :key="item.name"> <div v-for="item in pieData" :key="item.name">
<span :style="{ background: item.color }" /> <span :style="{ background: item.color }" />
{{ item.name }}: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ <p>
<span>{{ item.name }}</span>
<span>{{ item.value }}</span>
<span>{{ item.num }}</span>
</p>
<!-- {{ item.name }}: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{
item.value item.value
}}% &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.num }} }}% &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.num }} -->
</p> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -347,13 +352,20 @@ $arrow-style() ...@@ -347,13 +352,20 @@ $arrow-style()
&:last-child &:last-child
$center() $center()
flex-direction column flex-direction column
p >div
display flex display flex
width 100% width 100%
align-items center align-items center
margin-bottom 0.05rem margin-bottom 0.05rem
position relative position relative
span >p
flex 1
display flex
justify-content space-between
padding-right .15rem
box-sizing border-box
align-items center
>span
display inline-block display inline-block
width 0.06rem width 0.06rem
height @width height @width
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment