Bilibili-Evolved/registry/lib/components/style/custom-navbar/user-info/user-info.ts

19 lines
524 B
TypeScript

import { defineAsyncComponent } from 'vue'
import { getUID } from '@/core/utils'
import type { CustomNavbarItemInit } from '../custom-navbar-item'
export const userInfo: CustomNavbarItemInit = {
name: 'userInfo',
displayName: '个人信息',
content: defineAsyncComponent(() => import('./UserFace.vue')),
href: getUID() ? 'https://space.bilibili.com' : null,
touch: true,
popupContent: defineAsyncComponent(() => import('./UserInfoPopup.vue')),
lazy: false,
noPopupPadding: true,
boundingWidth: 240,
}