2024-12-02 17:25:15 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
defineProps<{
|
|
|
|
content: string
|
|
|
|
}>()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-12-02 20:00:21 +08:00
|
|
|
<div class="markdown-body" v-html="$mdRender.render(content)"/>
|
2024-12-02 17:25:15 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-12-02 20:00:21 +08:00
|
|
|
.markdown-body {
|
2024-12-18 08:43:30 +08:00
|
|
|
font-family: "LXGW WenKai", sans-serif;
|
2024-12-04 09:45:55 +08:00
|
|
|
|
2024-12-18 08:43:30 +08:00
|
|
|
.MathJax {
|
2024-12-04 09:45:55 +08:00
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
overflow-x: auto; /* X 轴允许滚动 */
|
|
|
|
overflow-y: visible; /* Y 轴完全显示 */
|
|
|
|
white-space: nowrap; /* 防止表格内容换行 */
|
|
|
|
|
|
|
|
/* 隐藏滚动条 */
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none; /* Chrome, Safari */
|
|
|
|
}
|
|
|
|
-ms-overflow-style: none; /* IE 10+ */
|
|
|
|
scrollbar-width: none; /* Firefox */
|
2024-12-02 20:00:21 +08:00
|
|
|
}
|
|
|
|
}
|
2024-12-02 17:25:15 +08:00
|
|
|
</style>
|