Skip to content

Commit f85485e

Browse files
committed
doc: add theme-editor
1 parent a1e967d commit f85485e

File tree

4 files changed

+19
-207
lines changed

4 files changed

+19
-207
lines changed

site/src/components/header.jsx

-204
This file was deleted.

site/src/layouts/BaseLayout.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<div>
3-
<HeaderCom :name="name" />
3+
<HeaderCom />
44
<div style="padding: 20px; margin: 0 auto; width: 960px">
5-
<router-view />
5+
<slot></slot>
66
</div>
77
<FooterCom />
88
</div>
99
</template>
1010

1111
<script>
12-
import Header from '../components/header';
12+
import Header from './header/index.vue';
1313
import Footer from './Footer.vue';
1414
import NProgress from 'nprogress';
1515
export default {

site/src/router/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ const routes = [
172172
{ path: '', redirect: '/docs/vue/introduce/' },
173173
],
174174
},
175+
{
176+
path: '/theme-editor',
177+
component: () => import('../views/theme-editor/index.vue'),
178+
},
179+
{
180+
path: '/theme-editor-cn',
181+
component: () => import('../views/theme-editor/index.vue'),
182+
},
175183
{ path: '/debugger', component: () => import('../../debugger') },
176184
{ path: '/:lang(.*)', redirect: '/components/overview' },
177185
];

site/src/views/theme-editor/index.vue

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<layout>
3+
<div style="padding: 64px 0; text-align: center">主题编辑器,即将上线,敬请期待</div>
4+
</layout>
5+
</template>
6+
<script setup lang="ts">
7+
import Layout from '../../layouts/BaseLayout.vue';
8+
</script>

0 commit comments

Comments
 (0)