chore(ui-docs): rename `Layout` to `Theme` to prevent confusion with Layout component

This commit is contained in:
upsiflu 2024-12-14 15:28:39 +01:00
parent db197c24aa
commit e1072b9dbb
3 changed files with 7 additions and 8 deletions

View File

@ -33,8 +33,6 @@ const isLoading = computed(() => props.isLoading || internalLoader.value)
const button = ref()
console.log("props.autofocus", props.autofocus)
const click = async (...args: any[]) => {
internalLoader.value = true

View File

@ -1,12 +1,13 @@
<script setup>
import DefaultTheme from 'vitepress/theme'
const { Layout } = DefaultTheme
const { Theme } = DefaultTheme
</script>
<template>
<Layout>
</Layout>
<Theme>
<template>
</template>
</Theme>
</template>
<style>

View File

@ -3,7 +3,7 @@ import { createI18n } from 'vue-i18n'
import DefaultTheme from 'vitepress/theme'
import en from '../../../src/locales/en_US.json'
import Layout from './Layout.vue'
import Theme from './Theme.vue'
import { createRouter, createWebHistory } from 'vue-router'
@ -13,7 +13,7 @@ const routes = routesV2
export default {
...DefaultTheme,
Layout: Layout,
Theme: Theme,
enhanceApp({ app }) {
const i18n = createI18n({
legacy: false,