📝(layer): 重构文档

This commit is contained in:
就眠儀式
2022-06-27 17:04:24 +08:00
parent 4a52df1f28
commit 34e352b25c
13 changed files with 478 additions and 495 deletions

View File

@@ -1,5 +1,6 @@
<template>
<div class="markdown-body light-scheme">
<lay-scroll height="100%">
<div class="markdown-body light-scheme">
<div class="alone-header">
<img class="alone-logo" src="../assets/logo.png" />
<a
@@ -28,20 +29,34 @@
<div class="layui-main">
<img src="../assets/logo.jpg" />
<h1>layer vue</h1>
<p> </p>
<p> </p>
</div>
</div>
<br />
<div class="layui-container" style="width: 80%; margin-left: 10%">
<lay-tab type="brief" v-model="active">
<lay-tab-item title="入门" id="/zh-CN/index"></lay-tab-item>
<lay-tab-item title="示例" id="/zh-CN/demo"></lay-tab-item>
<lay-tab-item title="帮助" id="/zh-CN/help"></lay-tab-item>
</lay-tab>
<router-view></router-view>
</div>
</div>
</lay-scroll>
</template>
<script setup>
import config from "../../../layer/package.json";
import { useRouter } from "vue-router";
import { ref, watch } from "vue";
const version = config.version;
const active = ref("/zh-CN/index");
const router = useRouter();
watch(active, (val) => {
router.push(val);
})
</script>
<style>
@@ -116,4 +131,8 @@ body {
border-top: 1px solid #eee;
border-style: solid;
}
.layui-tab-content {
padding: 0!important;
}
</style>