Showing
2 changed files
with
4 additions
and
13 deletions
| ... | @@ -14,19 +14,8 @@ | ... | @@ -14,19 +14,8 @@ |
| 14 | <template v-slot:error>加载失败</template> | 14 | <template v-slot:error>加载失败</template> |
| 15 | </van-image> | 15 | </van-image> |
| 16 | </div> | 16 | </div> |
| 17 | - <!-- <van-image | ||
| 18 | - class="van-hairline--surround" | ||
| 19 | - round | ||
| 20 | - width="4rem" | ||
| 21 | - height="4rem" | ||
| 22 | - lazy-load | ||
| 23 | - :src="avatar" | ||
| 24 | - style="position: absolute; left: -2rem;" | ||
| 25 | - > | ||
| 26 | - <template v-slot:error>加载失败</template> | ||
| 27 | - </van-image> --> | ||
| 28 | <div class="text-wrapper" @click="handle"> | 17 | <div class="text-wrapper" @click="handle"> |
| 29 | - <van-row> | 18 | + <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> |
| 30 | <van-col span="20" style="color: #713610;"><slot></slot></van-col> | 19 | <van-col span="20" style="color: #713610;"><slot></slot></van-col> |
| 31 | <van-col span="4"><van-icon name="arrow" color="#c5c5c5" size="1.25rem" /></van-col> | 20 | <van-col span="4"><van-icon name="arrow" color="#c5c5c5" size="1.25rem" /></van-col> |
| 32 | </van-row> | 21 | </van-row> |
| ... | @@ -75,8 +64,9 @@ export default { | ... | @@ -75,8 +64,9 @@ export default { |
| 75 | height: 4rem; | 64 | height: 4rem; |
| 76 | box-shadow: 0px 0px 4px 0px rgba(73, 156, 255, 0.2); | 65 | box-shadow: 0px 0px 4px 0px rgba(73, 156, 255, 0.2); |
| 77 | .text-wrapper { | 66 | .text-wrapper { |
| 67 | + height: 100%; | ||
| 78 | text-align: left; | 68 | text-align: left; |
| 79 | - line-height: 4rem; | 69 | + // line-height: 4rem; |
| 80 | padding-left: 3rem; | 70 | padding-left: 3rem; |
| 81 | } | 71 | } |
| 82 | } | 72 | } | ... | ... |
-
Please register or login to post a comment