1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<script setup lang="ts"> import { useThemeVars } from 'naive-ui'; import Memo from './git-memo.md'; const themeVars = useThemeVars(); </script> <template> <div> <Memo /> </div> </template> <style lang="less" scoped> ::v-deep(pre) { margin: 0; padding: 15px 22px; background-color: v-bind('themeVars.cardColor'); border-radius: 4px; overflow: auto; } </style>