feat:登录注册完成
This commit is contained in:
24
src/plugins/register-global-components.ts
Normal file
24
src/plugins/register-global-components.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { App, Component } from 'vue'
|
||||
import AgreementCheckbox from '@/components/agreement-checkbox/index.vue'
|
||||
import AppNavbar from '@/components/app-navbar/index.vue'
|
||||
import BaseInput from '@/components/base-input/index.vue'
|
||||
import BrandLogo from '@/components/brand-logo/index.vue'
|
||||
import PrimaryButton from '@/components/primary-button/index.vue'
|
||||
import SmsCodeBtn from '@/components/sms-code-btn/index.vue'
|
||||
import AppTabBar from '@/components/app-tab-bar/index.vue'
|
||||
|
||||
const globalComponents: Record<string, Component> = {
|
||||
'app-tab-bar': AppTabBar,
|
||||
'agreement-checkbox': AgreementCheckbox,
|
||||
'app-navbar': AppNavbar,
|
||||
'base-input': BaseInput,
|
||||
'brand-logo': BrandLogo,
|
||||
'primary-button': PrimaryButton,
|
||||
'sms-code-btn': SmsCodeBtn,
|
||||
}
|
||||
|
||||
export function registerGlobalComponents(app: App) {
|
||||
Object.entries(globalComponents).forEach(([name, component]) => {
|
||||
app.component(name, component)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user