Showing
1 changed file
with
13 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-07 15:07:14 | 4 | + * @LastEditTime: 2023-02-08 14:23:31 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | /></van-swipe-item> | 28 | /></van-swipe-item> |
| 29 | </van-swipe> | 29 | </van-swipe> |
| 30 | </template> | 30 | </template> |
| 31 | - <div v-if="PHeader.type === 'text'" style="padding: 1rem; font-weight: bold; white-space:pre;" v-html="PHeader.banner" /> | 31 | + <div v-if="PHeader.type === 'text'" class="PHeader-Text" v-html="PHeader.banner" /> |
| 32 | </template> | 32 | </template> |
| 33 | <div v-if="PHeader.label" class="table-title" v-html="PHeader.label" /> | 33 | <div v-if="PHeader.label" class="table-title" v-html="PHeader.label" /> |
| 34 | <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" /> | 34 | <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" /> |
| ... | @@ -489,7 +489,7 @@ const onSubmit = async (values) => { | ... | @@ -489,7 +489,7 @@ const onSubmit = async (values) => { |
| 489 | }; | 489 | }; |
| 490 | </script> | 490 | </script> |
| 491 | 491 | ||
| 492 | -<style lang="less" scoped> | 492 | +<style lang="less"> |
| 493 | .table-title { | 493 | .table-title { |
| 494 | padding: 1rem; | 494 | padding: 1rem; |
| 495 | font-size: 1.15rem; | 495 | font-size: 1.15rem; |
| ... | @@ -501,6 +501,10 @@ const onSubmit = async (values) => { | ... | @@ -501,6 +501,10 @@ const onSubmit = async (values) => { |
| 501 | color: #666; | 501 | color: #666; |
| 502 | font-size: 0.9rem; | 502 | font-size: 0.9rem; |
| 503 | white-space: pre; | 503 | white-space: pre; |
| 504 | + | ||
| 505 | + img { | ||
| 506 | + width: 100%; | ||
| 507 | + } | ||
| 504 | } | 508 | } |
| 505 | .table-box { | 509 | .table-box { |
| 506 | background-color: #ffffff; | 510 | background-color: #ffffff; |
| ... | @@ -533,6 +537,12 @@ const onSubmit = async (values) => { | ... | @@ -533,6 +537,12 @@ const onSubmit = async (values) => { |
| 533 | } | 537 | } |
| 534 | } | 538 | } |
| 535 | 539 | ||
| 540 | +.PHeader-Text { | ||
| 541 | + padding: 1rem; | ||
| 542 | + font-weight: bold; | ||
| 543 | + white-space:pre; | ||
| 544 | +} | ||
| 545 | + | ||
| 536 | // :deep(.van-icon) { // 处理正式服务器上箭头上下位移问题 | 546 | // :deep(.van-icon) { // 处理正式服务器上箭头上下位移问题 |
| 537 | // font-size: var(--van-cell-icon-size); | 547 | // font-size: var(--van-cell-icon-size); |
| 538 | // line-height: var(--van-cell-line-height); | 548 | // line-height: var(--van-cell-line-height); | ... | ... |
-
Please register or login to post a comment