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
| <script setup lang="ts">
| import { TabPane, Tabs } from 'ant-design-vue';
|
| import AccountBind from './components/account-bind.vue';
| import BaseSetting from './components/base-setting.vue';
| import OnlineDevice from './components/online-device.vue';
| import SecureSetting from './components/secure-setting.vue';
|
| const settingList = [
| {
| component: BaseSetting,
| key: '1',
| name: '基本设置',
| },
| {
| component: SecureSetting,
| key: '2',
| name: '安全设置',
| },
| {
| component: AccountBind,
| key: '3',
| name: '账号绑定',
| },
| {
| component: OnlineDevice,
| key: '4',
| name: '在线设备',
| },
| ];
| </script>
|
| <template>
| <Tabs class="bg-background rounded-[var(--radius)] px-[16px] lg:flex-1">
| <TabPane v-for="item in settingList" :key="item.key" :tab="item.name">
| <component :is="item.component" v-bind="$attrs" />
| </TabPane>
| </Tabs>
| </template>
|
|