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()
|
const button = ref()
|
||||||
|
|
||||||
console.log("props.autofocus", props.autofocus)
|
|
||||||
|
|
||||||
const click = async (...args: any[]) => {
|
const click = async (...args: any[]) => {
|
||||||
internalLoader.value = true
|
internalLoader.value = true
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import DefaultTheme from 'vitepress/theme'
|
import DefaultTheme from 'vitepress/theme'
|
||||||
|
const { Theme } = DefaultTheme
|
||||||
const { Layout } = DefaultTheme
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Layout>
|
<Theme>
|
||||||
</Layout>
|
<template>
|
||||||
|
</template>
|
||||||
|
</Theme>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
|
@ -3,7 +3,7 @@ import { createI18n } from 'vue-i18n'
|
||||||
import DefaultTheme from 'vitepress/theme'
|
import DefaultTheme from 'vitepress/theme'
|
||||||
import en from '../../../src/locales/en_US.json'
|
import en from '../../../src/locales/en_US.json'
|
||||||
|
|
||||||
import Layout from './Layout.vue'
|
import Theme from './Theme.vue'
|
||||||
|
|
||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ const routes = routesV2
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...DefaultTheme,
|
...DefaultTheme,
|
||||||
Layout: Layout,
|
Theme: Theme,
|
||||||
enhanceApp({ app }) {
|
enhanceApp({ app }) {
|
||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
legacy: false,
|
legacy: false,
|
||||||
|
|
Loading…
Reference in New Issue