Files
kangyuan-mobile/pages/increment/components/detail/detail-content-card.vue
T

55 lines
970 B
Vue

<template>
<view class="detail-content-card ss-p-b-20">
<view class="card-content">
<mp-html :content="content" :tag-style="tagStyle"></mp-html>
</view>
</view>
</template>
<script setup>
const props = defineProps({
content: {
type: String,
default: '',
},
});
const tagStyle = {
img: 'display:block;width:100%;height:auto;',
};
</script>
<style lang="scss" scoped>
.detail-content-card {
.card-header {
.line {
width: 6rpx;
height: 30rpx;
background: linear-gradient(180deg, var(--ui-BG-Main) 0%, var(--ui-BG-Main-gradient) 100%);
border-radius: 3rpx;
}
.title {
font-size: 30rpx;
font-weight: bold;
}
.des {
font-size: 24rpx;
color: $dark-9;
}
.more-btn {
font-size: 24rpx;
color: var(--ui-BG-Main);
}
}
}
:deep() {
image {
display: block;
}
}
</style>