💬 补充 hooks 文档

This commit is contained in:
就眠儀式
2021-12-06 09:35:18 +08:00
parent 2fd930e6bc
commit 0592b3cd72
26 changed files with 144 additions and 291 deletions

View File

@@ -43,7 +43,7 @@
</a>
</li>
<li class="layui-nav-item">
<a href="javascript:void(0)"> 0.2.6 </a>
<a href="javascript:void(0)"> 0.2.7 </a>
</li>
</ul>
</lay-header>

View File

@@ -2,7 +2,7 @@ import Layout from './App.vue'
import { App, createApp as _createApp, createSSRApp } from 'vue'
import { createRouter } from './router/index'
import { Router } from 'vue-router'
import Layui from '/@src/index'
import Layui from '../../src/index'
import LayCode from './components/LayCode.vue'
import LaySearch from './components/LaySearch.vue'
import LayTableBox from './components/LayTableBox.vue'

View File

@@ -271,6 +271,12 @@ const zhCN = [
component: Hooks,
meta: { title: 'hooks' },
children: [
{
path: '/zh-CN/hooks/useStarted',
component: () =>
import('../../docs/zh-CN/hooks/useStarted.md'),
meta: { title: 'useStarted' },
},
{
path: '/zh-CN/hooks/useClickOutside',
component: () =>
@@ -286,6 +292,15 @@ const zhCN = [
path: '/zh-CN/hooks/useMove',
component: () => import('../../docs/zh-CN/hooks/useMove.md'),
meta: { title: 'useMove' },
}, {
path: '/zh-CN/hooks/useState',
component: () => import('../../docs/zh-CN/hooks/useState.md'),
meta: { title: 'useState' },
},
{
path: '/zh-CN/hooks/useBoolean',
component: () => import('../../docs/zh-CN/hooks/useBoolean.md'),
meta: { title: 'useBoolean' },
},
],
},

View File

@@ -68,6 +68,12 @@ export default {
id: 1,
title: 'hooks',
children: [
{
id: 0,
title: '开始',
subTitle: 'useStarted',
path: '/zh-CN/hooks/useStarted',
},
{
id: 1,
title: '事件',
@@ -85,6 +91,16 @@ export default {
title: '全屏',
subTitle: 'useFullScreen',
path: '/zh-CN/hooks/useFullScreen',
},{
id: 3,
title: '状态',
subTitle: 'useState',
path: '/zh-CN/hooks/useState',
},{
id: 4,
title: '布尔',
subTitle: 'useBoolean',
path: '/zh-CN/hooks/useBoolean',
},
],
},

View File

@@ -28,7 +28,7 @@
>
</div>
<div class="site-version">
<span>当前版本v<cite class="site-showv">0.2.6</cite></span>
<span>当前版本v<cite class="site-showv">0.2.7</cite></span>
<span
><router-link
class="layui-inline site-down"