feat:接口联调
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
<script setup>
|
||||
defineProps({
|
||||
content: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="ueditor-content" v-html="content"></div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.ueditor-content {
|
||||
color: #334155;
|
||||
font-size: 16px;
|
||||
line-height: 2;
|
||||
word-break: break-word;
|
||||
}
|
||||
.ueditor-content :deep(*) {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ueditor-content :deep(h1),
|
||||
.ueditor-content :deep(h2),
|
||||
.ueditor-content :deep(h3),
|
||||
.ueditor-content :deep(h4),
|
||||
.ueditor-content :deep(h5),
|
||||
.ueditor-content :deep(h6) {
|
||||
margin: 46px 0 18px;
|
||||
color: #0f1e33;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.42;
|
||||
}
|
||||
.ueditor-content :deep(h2) {
|
||||
font-size: clamp(22px, 2.1vw, 28px);
|
||||
}
|
||||
.ueditor-content :deep(h3) {
|
||||
font-size: 22px;
|
||||
}
|
||||
.ueditor-content :deep(h4) {
|
||||
font-size: 19px;
|
||||
}
|
||||
.ueditor-content :deep(p) {
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.ueditor-content :deep(a) {
|
||||
color: #2f74ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.ueditor-content :deep(a:hover) {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.ueditor-content :deep(strong),
|
||||
.ueditor-content :deep(b) {
|
||||
color: #132238;
|
||||
font-weight: 700;
|
||||
}
|
||||
.ueditor-content :deep(ul),
|
||||
.ueditor-content :deep(ol) {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 18px 0 28px;
|
||||
padding-left: 1.35em;
|
||||
}
|
||||
.ueditor-content :deep(li) {
|
||||
padding-left: 4px;
|
||||
line-height: 1.9;
|
||||
}
|
||||
.ueditor-content :deep(blockquote) {
|
||||
margin: 34px 0;
|
||||
padding: 24px 28px;
|
||||
border-left: 4px solid #3d7cff;
|
||||
border-radius: 0 14px 14px 0;
|
||||
color: #24364f;
|
||||
background: #f4f7ff;
|
||||
}
|
||||
.ueditor-content :deep(img) {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 34px auto;
|
||||
border-radius: 16px;
|
||||
}
|
||||
.ueditor-content :deep(table) {
|
||||
width: 100%;
|
||||
margin: 32px 0;
|
||||
overflow: hidden;
|
||||
border-collapse: collapse;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 1px #e7edf8;
|
||||
}
|
||||
.ueditor-content :deep(th),
|
||||
.ueditor-content :deep(td) {
|
||||
padding: 15px 18px;
|
||||
border: 1px solid #e7edf8;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
.ueditor-content :deep(th) {
|
||||
color: #14233a;
|
||||
background: #f3f6fc;
|
||||
font-weight: 700;
|
||||
}
|
||||
.ueditor-content :deep(hr) {
|
||||
height: 1px;
|
||||
margin: 42px 0;
|
||||
border: 0;
|
||||
background: #e6edf8;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.ueditor-content {
|
||||
font-size: 15px;
|
||||
line-height: 1.9;
|
||||
}
|
||||
.ueditor-content :deep(h2) {
|
||||
font-size: 21px;
|
||||
}
|
||||
.ueditor-content :deep(h3) {
|
||||
font-size: 19px;
|
||||
}
|
||||
.ueditor-content :deep(blockquote) {
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user