mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-21 14:13:36 +08:00
docs:更新文档
This commit is contained in:
5
node_modules/vitepress/dist/client/app/components/Content.d.ts
generated
vendored
Normal file
5
node_modules/vitepress/dist/client/app/components/Content.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export declare const Content: {
|
||||
setup(): () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}> | null;
|
||||
};
|
||||
13
node_modules/vitepress/dist/client/app/components/Content.js
generated
vendored
Normal file
13
node_modules/vitepress/dist/client/app/components/Content.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { h } from 'vue';
|
||||
import { useRoute } from '../router';
|
||||
import { usePrefetch } from '../composables/preFetch';
|
||||
export const Content = {
|
||||
setup() {
|
||||
const route = useRoute();
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
// in prod mode, enable intersectionObserver based pre-fetch.
|
||||
usePrefetch();
|
||||
}
|
||||
return () => (route.component ? h(route.component) : null);
|
||||
}
|
||||
};
|
||||
55
node_modules/vitepress/dist/client/app/components/Debug.vue
generated
vendored
Normal file
55
node_modules/vitepress/dist/client/app/components/Debug.vue
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<div class="debug" :class="{ open }" @click="open = !open">
|
||||
<pre>debug</pre>
|
||||
<pre>$page {{ $page }}</pre>
|
||||
<pre>$siteByRoute {{ $siteByRoute }}</pre>
|
||||
<pre>$site {{ $site }}</pre>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const open = ref(false)
|
||||
return {
|
||||
open
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.debug {
|
||||
box-sizing: border-box;
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
cursor: pointer;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 80px;
|
||||
height: 30px;
|
||||
padding: 5px;
|
||||
overflow: hidden;
|
||||
color: #eeeeee;
|
||||
transition: all .15s ease;
|
||||
background-color: rgba(0,0,0,0.85);
|
||||
}
|
||||
|
||||
.debug.open {
|
||||
width: 500px;
|
||||
height: 100%;
|
||||
margin-top: 0;
|
||||
padding: 0 0;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.debug pre {
|
||||
font-family: Hack, monospace;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user