Skip to content

Commit 1818b82

Browse files
committed
feat (core): 美化语言设置列表
1 parent 5b04471 commit 1818b82

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/components/setting/Language.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
size="md"
66
position="left"
77
:tab-button-class="['w-48']"
8+
:nav-class="['max-h-[70vh] overflow-y-auto']"
89
:tabs="tabsPluginData"
910
@change="handleTabChange">
1011
<template #[activePlugin]="{ tab }">
1112
<h3 class="text-lg font-semibold text-gray-900 dark:text-white mb-4 flex items-center space-x-2">
1213
<img :src="`/icons/${activePlugin.replace(/\d+$/, '')}.svg`" class="w-6 h-6" :alt="tab.label"/>
13-
<span>{{ `语言 [ ${ tab.label } ] 配置` }}</span>
14+
<span>{{ `语言 [ ${tab.label} ] 配置` }}</span>
1415
</h3>
1516

1617
<Tabs v-model="activeTab"
@@ -87,15 +88,15 @@
8788
</template>
8889

8990
<script setup lang="ts">
90-
import { onMounted } from 'vue'
91-
import { Folder } from 'lucide-vue-next'
92-
import { Codemirror } from 'vue-codemirror'
91+
import {onMounted} from 'vue'
92+
import {Folder} from 'lucide-vue-next'
93+
import {Codemirror} from 'vue-codemirror'
9394
import Button from '../../ui/Button.vue'
9495
import Tabs from '../../ui/Tabs.vue'
9596
import Number from '../../ui/Number.vue'
9697
import Label from '../../ui/Label.vue'
9798
import Input from '../../ui/Input.vue'
98-
import { useLanguageSettings } from '../../composables/useLanguageSettings'
99+
import {useLanguageSettings} from '../../composables/useLanguageSettings'
99100
import type PluginConfig from '../../types/plugin'
100101
101102
const emit = defineEmits<{

0 commit comments

Comments
 (0)