chore(ui-docs): rename `Layout` to `Theme` to prevent confusion with Layout component
This commit is contained in:
parent
db197c24aa
commit
e1072b9dbb
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue