Files
OdiUp-CRM/resources/ts/plugins/layouts.ts

15 lines
466 B
TypeScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { App } from 'vue'
import type { PartialDeep } from 'type-fest/source/partial-deep'
import { createLayouts } from '@layouts'
import { layoutConfig } from '@themeConfig'
// Styles
import '@layouts/styles/index.scss'
export default function (app: App) {
// We generate layout config from our themeConfig so you don't have to write config twice
app.use(createLayouts(layoutConfig as PartialDeep<typeof layoutConfig, NonNullable<unknown>>))
}