SettingsPanel.vue
2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!--
* @Author: 赵丽婷
* @Date: 2025-11-10 10:30:43
* @LastEditors: 赵丽婷
* @LastEditTime: 2025-12-02 15:08:43
* @FilePath: \LinkMed\linkmed-vue3\src\components\Settings\SettingsPanel.vue
* @Description:
* Copyright (c) 2025 by 北京连心医疗科技有限公司, All Rights Reserved.
-->
<template>
<div class="settings-panel">
<GeneralPanel v-if="activeKey === 'general'" />
<ShortcutPanel v-else-if="activeKey === 'shortcut'" />
<KnowledgePanel v-else-if="activeKey === 'knowledge'" />
<AIAssistantPanel v-else-if="activeKey === 'ai'" />
<ProfilePanel v-else-if="activeKey === 'profile'" />
<AuthenticationPanel v-else-if="activeKey === 'authentication'" />
<MembersRecordsPanel v-else-if="activeKey === 'membersRecords'" />
<MemberReferralPanel v-else-if="activeKey === 'memberReferral'" />
<AccountBindPanel v-else-if="activeKey === 'accountBind'" />
<ApiKeyPanel v-else-if="activeKey === 'apikey'" />
<div v-else class="settings-placeholder">即将支持更多设置项...</div>
</div>
</template>
<script setup lang="ts">
import { defineAsyncComponent } from "vue";
const GeneralPanel = defineAsyncComponent(() => import("./GeneralPanel.vue"));
const ShortcutPanel = defineAsyncComponent(() => import("./ShortcutPanel.vue"));
const KnowledgePanel = defineAsyncComponent(() => import("./KnowledgePanel.vue"));
const AIAssistantPanel = defineAsyncComponent(() => import("./AIAssistantPanel.vue"));
const ProfilePanel = defineAsyncComponent(() => import("./ProfilePanel.vue"));
const AuthenticationPanel = defineAsyncComponent(() => import("./AuthenticationPanel.vue"));
const MembersRecordsPanel = defineAsyncComponent(() => import("./MembersRecordsPanel.vue"));
const MemberReferralPanel = defineAsyncComponent(() => import("./MemberReferralPanel.vue"));
const ApiKeyPanel = defineAsyncComponent(() => import("./ApiKeyPanel.vue"));
const AccountBindPanel = defineAsyncComponent(() => import("./AccountBindPanel.vue"));
defineProps<{
activeKey: string;
}>();
</script>
<style scoped lang="scss">
.settings-panel {
padding: 48px 48px 20px 48px;
width: 100%;
margin-left: 0;
margin-right: auto;
color: var(--color-text);
background: var(--color-bg);
text-align: left;
}
.settings-placeholder {
color: var(--color-secondary);
font-size: 16px;
text-align: center;
margin-top: 80px;
}
@media (max-width: 1024px) {
.settings-panel {
padding: 16px 6px;
max-width: 100%;
}
}
</style>