feat(Breadcrumbe): Add Breadcrumb component

style: change function to arrow function
This commit is contained in:
kailong321200875
2022-01-15 14:24:50 +08:00
parent 2fe9543b84
commit 4612e5544b
55 changed files with 586 additions and 270 deletions

View File

@@ -7,7 +7,7 @@ const plugins = [ElLoading]
const components = [ElScrollbar]
export function setupElementPlus(app: App) {
export const setupElementPlus = (app: App) => {
plugins.forEach((plugin) => {
app.use(plugin)
})

View File

@@ -1,3 +1,3 @@
export function setHtmlPageLang(locale: LocaleType) {
export const setHtmlPageLang = (locale: LocaleType) => {
document.querySelector('html')?.setAttribute('lang', locale)
}

View File

@@ -6,7 +6,7 @@ import { setHtmlPageLang } from './helper'
export let i18n: ReturnType<typeof createI18n>
async function createI18nOptions(): Promise<I18nOptions> {
const createI18nOptions = async (): Promise<I18nOptions> => {
const localeStore = useLocaleStoreWithOut()
const locale = localeStore.getLocale
const localeMap = localeStore.getLocaleMap
@@ -35,7 +35,7 @@ async function createI18nOptions(): Promise<I18nOptions> {
}
}
export async function setupI18n(app: App) {
export const setupI18n = async (app: App) => {
const options = await createI18nOptions()
i18n = createI18n(options) as I18n
app.use(i18n)