it-tools/src/tools/git-memo/git-memo.vue
2024-10-19 21:08:08 +08:00

28 lines
600 B
Vue

<script setup lang="ts">
import { useThemeVars } from 'naive-ui';
import Memo from './git-memo.content.md';
import MemoZH from './git-memo.content.zh.md';
import MemoFR from './git-memo.content.fr.md';
const themeVars = useThemeVars();
const { locale } = useI18n();
</script>
<template>
<div>
<MemoZH v-if="locale === 'zh'" />
<MemoFR v-else-if="locale === 'fr'" />
<Memo v-else />
</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>