♻️ 公告解析重构完成

This commit is contained in:
目棃
2024-08-17 18:49:18 +08:00
parent 9e9ba53d99
commit 6bfa1b3cb4
9 changed files with 234 additions and 228 deletions

View File

@@ -1,5 +1,3 @@
<!-- eslint-disable vue/no-v-html -->
<!-- todo 优化显示样式 -->
<template>
<TSwitchTheme />
<TShareBtn
@@ -17,7 +15,6 @@
<div class="anno-subtitle">
{{ parseText(annoData.subtitle) }}
</div>
<!-- <div class="anno-content" v-html="annoHtml" />-->
<div class="anno-content">
<TaParser :data="annoData" />
</div>
@@ -137,5 +134,29 @@ onUnmounted(() => {
font-family: var(--font-title);
font-size: 14px;
}
.anno-body {
width: 800px;
margin: 0 auto;
font-family: var(--font-text);
}
.anno-title,
.anno-subtitle {
color: var(--common-text-title);
font-family: var(--font-title);
}
.anno-title {
font-size: 20px;
}
.anno-subtitle {
font-size: 16px;
opacity: 0.6;
}
.anno-content {
line-height: 2;
}
</style>
<style lang="css" src="../assets/css/anno-parser.css" scoped></style>