sync:富文本默认行高问题修复 97d31ae859

sync: 修复富文本显示问题 6976caf8e8
pull/132/MERGE
YunaiV 2025-04-28 00:10:57 +08:00
parent e9ebe236e6
commit ff9211e557
4 changed files with 25 additions and 8 deletions

View File

@ -1,4 +1,3 @@
<!-- 商品详情描述卡片 -->
<template>
<view class="detail-content-card bg-white ss-m-x-20 ss-p-t-20">
<view class="card-header ss-flex ss-col-center ss-m-b-30 ss-m-l-20">
@ -6,7 +5,7 @@
<view class="title ss-m-l-20 ss-m-r-20">详情</view>
</view>
<view class="card-content">
<mp-html :content="content" />
<mp-html :content="content"></mp-html>
</view>
</view>
</template>
@ -49,4 +48,10 @@
}
}
}
:deep() {
image {
display: block;
}
}
</style>

View File

@ -74,4 +74,10 @@
color: #999999;
margin-bottom: 40rpx;
}
:deep() {
image {
display: block;
}
}
</style>

View File

@ -1,9 +1,7 @@
<!-- 文章展示 -->
<template>
<s-layout :bgStyle="{ color: '#FFF' }" :title="state.title" class="set-wrap">
<view class="ss-p-30">
<mp-html class="richtext" :content="state.content" />
</view>
<view class="ss-p-30 richtext"><mp-html :content="state.content"></mp-html></view>
</s-layout>
</template>
@ -41,7 +39,6 @@
}
getRichTextContent(options.id, options.title);
});
</script>
<style lang="scss" scoped>
@ -49,6 +46,9 @@
margin: 0 30rpx;
}
.richtext {
:deep() {
image {
display: block;
}
}
</style>

View File

@ -1,6 +1,7 @@
<!-- 装修营销组件营销文章 -->
<template>
<view
class="richtext"
:style="[
{
marginLeft: styles.marginLeft + 'px',
@ -11,7 +12,7 @@
},
]"
>
<mp-html class="richtext" :content="state.content"></mp-html>
<mp-html :content="state.content"></mp-html>
</view>
</template>
<script setup>
@ -38,3 +39,8 @@
state.content = data.content;
});
</script>
<style lang="scss" scoped>
.richtext {
line-height: 0;
}
</style>