From ce26429bae7812785dfc56a574dd36cb5647e975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Fri, 22 Oct 2021 09:18:40 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/zh-CN/components/layout.md | 52 +-- docs/docs/zh-CN/guide/introduce.md | 2 - docs/index.html | 2 +- docs/src/assets/logo-2.png | Bin 9058 -> 0 bytes docs/src/assets/logo-3.svg | 1 - docs/src/components/LaySearch.vue | 29 +- docs/src/layouts/Layout.vue | 64 ++-- docs/src/router/zh-CN.ts | 451 ++++++++++++++------------- docs/src/view/component.vue | 293 +++++++++++++++++ docs/src/view/guide.vue | 83 +++++ docs/src/view/home.vue | 66 ++++ src/css/layui.css | 2 +- 12 files changed, 753 insertions(+), 292 deletions(-) delete mode 100644 docs/src/assets/logo-2.png delete mode 100644 docs/src/assets/logo-3.svg create mode 100644 docs/src/view/component.vue create mode 100644 docs/src/view/guide.vue create mode 100644 docs/src/view/home.vue diff --git a/docs/docs/zh-CN/components/layout.md b/docs/docs/zh-CN/components/layout.md index ed8714de..c15e76d2 100644 --- a/docs/docs/zh-CN/components/layout.md +++ b/docs/docs/zh-CN/components/layout.md @@ -1,32 +1,32 @@ -::: field 后台布局 -::: - -
- - - -
-
- -

layui 之所以赢得如此多人的青睐,更多是在于它「前后界面兼备」的能力。既可编织出绚丽的前台页面,又可满足繁杂的管理系统界面需求。layui 致力于让每一位开发者都能轻松搭建自己的管理界面。下面是演示代码 :

- -
- ::: field 基础使用 ::: -```html - - - Layui Admin - - - - - - pearadmin.com - -``` +::: demo + + + + + +::: + +
+
::: field 布局组件 ::: diff --git a/docs/docs/zh-CN/guide/introduce.md b/docs/docs/zh-CN/guide/introduce.md index 952ec16f..2fbf3fc6 100644 --- a/docs/docs/zh-CN/guide/introduce.md +++ b/docs/docs/zh-CN/guide/introduce.md @@ -1,5 +1,3 @@ - - layui - vue(谐音:类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库 , Layui 的 另 一 种 呈 现 方 式 diff --git a/docs/index.html b/docs/index.html index 42fb103d..440e966d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -17,7 +17,7 @@ - +
diff --git a/docs/src/assets/logo-2.png b/docs/src/assets/logo-2.png deleted file mode 100644 index 96b8bc2c245c545e5d70121eaef65757bc233793..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9058 zcmdsdg;!MF+x9^aK>?*i8U_Re6lsJ9kOoQVkWd+rkcN>)L`mtPhYsnkAw`su?pC_H z^WF3O-u15aegD80vz7~I*53Q`@UemAHQB;dh|)AW6F^75XIj~|K58+^QRKl(d$ z3kIu)Zx4jTev)lXJj%Gb^2mxDK?&8L#+1};p9Pp6?TlTS)S9HM!|B+Y5 zkpX|+!Pss<&~s7=V(=va57-OplUBn416h1w;0qry85RVk2BzYHFaHltiB8_Yc%Q(r zRKs++4z@fgLxl)hAS9*~R?pmVi3lWzQEr(c-aWz?!^E>rAh`ad7xulV-C0U5=wc2Y zktVZr0Jrya1E0ug=`xhKw}h~;2-65bQ)OSK4X~W%{n^J3dxI;D=0_PYan~o@mt%Mm zFQxOAxWY+U8v}I9mkML?gCQt0Aw}ulE-HA_Jx7#nFO2KKWLURd+)W759Yj;Sxf=+B zi3l3GntrAJ*CAFDCG1zdA9hpbuL-D`FfLlJ9n1B$laVP|?=+YA*Il~3r$<8iw^a6Ovq*LF9V z-mr89~tJ7Tj*wjNy+7T_g37JnXyLiH3YDUjuQe~wm$svxNOcdBI+?LarWN$ z>DFQX<(E*h+HE=5?CA{BjqTqJxj)cn-iul;x}Ycco?#BA{a+Pnk1$7Z8C?=#TCRK2 z8F6%#cM{Mf?1PCI}5A@wh)9D zbqi=goeeW9oz;mtMhoeVuiHU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HaH(zX)8LKFLX0*ieJSq z)Rrr);jz~nitfQv4H^%Q+f$kd)<%}ivlM=I>s(pyvr)RV*m5%9HjqAN`Pi31K@#k^ zhZp#W4WQiu9G#ijv=jFrG$sbz@HH11Sx)5`{6Gpp>cHy|$pTPq{#AIwF=|UV1Spa4 zjVo|x!m2EoOAQ4OVg{M)%AMuY#wsOQf{TNDB0y?kZnjds#pHzot!4obC?Q;{HS5^t zLNujjhla=TLxfN(Q2Zd={25YL>fp)6$jGFREY8?aDY&BZ`3}TjlHGNnDw&W23iq@R zqX;MDbh0FXHnTMhGfy7_cgDq3T9)eIf#TqS4>CcIc)ZmLcyJtM`G1GyPSuOeje^70 zklgag0YGakEJ^92(8kdMi<@{vz8Qu!arb`u$p(7*8R<~JcDY7U!t%4v6}_J@l$_L?{uN4 zhv=S(YYFuGg+k3VQyF*=@ds=#%9Dv}wYX6QRc;~>aK^tlacXKccS+8 zu^6<#)-wxqXIVqqz@;2~d|@^F`V}NE1N`==1C$WCX4{EgCWaf$hrnm*16zad@vkX? z-xukxyTnWKDIpsljb2E70v!Id`udn+aoEib&mT$!N!H9$kJZFil@ft&@_f>b+AO=? zSPeKNuO^61EEiR`@3M>MsbR=Ir@(6N0BeJ{7NRkA0D{8*KYWSd|G*0wm)`nsR}y|| SJfr|Ng%o5|q>Cg?eE$o}C2Sr5 diff --git a/docs/src/assets/logo-3.svg b/docs/src/assets/logo-3.svg deleted file mode 100644 index 600cc902..00000000 --- a/docs/src/assets/logo-3.svg +++ /dev/null @@ -1 +0,0 @@ -true_love \ No newline at end of file diff --git a/docs/src/components/LaySearch.vue b/docs/src/components/LaySearch.vue index e8eda417..0d8cb134 100644 --- a/docs/src/components/LaySearch.vue +++ b/docs/src/components/LaySearch.vue @@ -1,9 +1,10 @@ + + \ No newline at end of file diff --git a/docs/src/layouts/Layout.vue b/docs/src/layouts/Layout.vue index b8ae2aed..40d7ebd0 100644 --- a/docs/src/layouts/Layout.vue +++ b/docs/src/layouts/Layout.vue @@ -1,33 +1,45 @@ diff --git a/docs/src/router/zh-CN.ts b/docs/src/router/zh-CN.ts index aba3e1af..8829162c 100644 --- a/docs/src/router/zh-CN.ts +++ b/docs/src/router/zh-CN.ts @@ -1,232 +1,249 @@ import BaseLayout from '../layouts/Layout.vue' +import Component from '../view/component.vue' +import Guide from '../view/guide.vue' +import Home from '../view/home.vue' const zhCN = [ { path: '/', - redirect: '/zh-CN/guide/introduce', + redirect: '/zh-CN/home', component: BaseLayout, - meta: { title: '指南', icon: 'el-icon-position' }, + meta: { title: '首页', icon: 'el-icon-position' }, children: [ { - path: '/zh-CN/guide/introduce', - component: () => import('../../docs/zh-CN/guide/introduce.md'), - meta: { title: '介绍' }, + path: '/zh-CN/home', + component: Home, + meta: { title: '指南' }, }, { - path: '/zh-CN/guide/getStarted', - component: () => import('../../docs/zh-CN/guide/getStarted.md'), - meta: { title: '安装' }, + path: '/zh-CN/guide', + redirect: '/zh-CN/guide/introduce', + component: Guide, + meta: { title: '指南' }, + children: [ + { + path: '/zh-CN/guide/introduce', + component: () => import('../../docs/zh-CN/guide/introduce.md'), + meta: { title: '介绍' }, + }, + { + path: '/zh-CN/guide/getStarted', + component: () => import('../../docs/zh-CN/guide/getStarted.md'), + meta: { title: '安装' }, + }, + { + path: '/zh-CN/guide/changelog', + component: () => import('../../docs/zh-CN/guide/changelog.md'), + meta: { title: '更新' }, + }, + { + path: '/zh-CN/guide/sandbox', + component: () => import('../../docs/zh-CN/guide/sandbox.md'), + meta: { title: '沙盒' }, + } + ] }, { - path: '/zh-CN/guide/changelog', - component: () => import('../../docs/zh-CN/guide/changelog.md'), - meta: { title: '更新' }, - }, - { - path: '/zh-CN/guide/sandbox', - component: () => import('../../docs/zh-CN/guide/sandbox.md'), - meta: { title: '沙盒' }, - }, - ], - }, - { - path: '/zh-CN/components/', - redirect: '/zh-CN/components/button', - component: BaseLayout, - meta: { title: '组件', icon: 'el-icon-copy-document' }, - children: [ - { - path: '/zh-CN/components/layout', - component: () => import('../../docs/zh-CN/components/layout.md'), - meta: { title: '布局' }, - }, - { - path: '/zh-CN/components/color', - component: () => import('../../docs/zh-CN/components/color.md'), - meta: { title: '颜色' }, - }, - { - path: '/zh-CN/components/container', - component: () => import('../../docs/zh-CN/components/container.md'), - meta: { title: '容器' }, - }, - { - path: '/zh-CN/components/breadcrumb', - component: () => import('../../docs/zh-CN/components/breadcrumb.md'), - meta: { title: '面包屑' }, - }, - { - path: '/zh-CN/components/button', - component: () => import('../../docs/zh-CN/components/button.md'), - meta: { title: '按钮' }, - }, - { - path: '/zh-CN/components/icon', - component: () => import('../../docs/zh-CN/components/icon.md'), - meta: { title: '图标' }, - }, - { - path: '/zh-CN/components/panel', - component: () => import('../../docs/zh-CN/components/panel.md'), - meta: { title: '面板' }, - }, - { - path: '/zh-CN/components/animation', - component: () => import('../../docs/zh-CN/components/animation.md'), - meta: { title: '动画' }, - }, - { - path: '/zh-CN/components/card', - component: () => import('../../docs/zh-CN/components/cards.md'), - meta: { title: '卡片' }, - }, - { - path: '/zh-CN/components/grid', - component: () => import('../../docs/zh-CN/components/grid.md'), - meta: { title: '栅格' }, - }, - { - path: '/zh-CN/components/form', - component: () => import('../../docs/zh-CN/components/form.md'), - meta: { title: '表单' }, - }, - { - path: '/zh-CN/components/badge', - component: () => import('../../docs/zh-CN/components/badge.md'), - meta: { title: '徽章' }, - }, - { - path: '/zh-CN/components/block', - component: () => import('../../docs/zh-CN/components/block.md'), - meta: { title: '辅助' }, - }, - { - path: '/zh-CN/components/line', - component: () => import('../../docs/zh-CN/components/line.md'), - meta: { title: '分割' }, - }, - { - path: '/zh-CN/components/progress', - component: () => import('../../docs/zh-CN/components/progress.md'), - meta: { title: '进度' }, - }, - { - path: '/zh-CN/components/menu', - component: () => import('../../docs/zh-CN/components/menu.md'), - meta: { title: '菜单' }, - }, - { - path: '/zh-CN/components/timeline', - component: () => import('../../docs/zh-CN/components/timeline.md'), - meta: { title: '时间线' }, - }, - { - path: '/zh-CN/components/collapse', - component: () => import('../../docs/zh-CN/components/collapse.md'), - meta: { title: '手风琴' }, - }, - { - path: '/zh-CN/components/table', - component: () => import('../../docs/zh-CN/components/table.md'), - meta: { title: '表格' }, - }, - { - path: '/zh-CN/components/avatar', - component: () => import('../../docs/zh-CN/components/avatar.md'), - meta: { title: '头像' }, - }, - { - path: '/zh-CN/components/field', - component: () => import('../../docs/zh-CN/components/field.md'), - meta: { title: '字段' }, - }, - { - path: '/zh-CN/components/empty', - component: () => import('../../docs/zh-CN/components/empty.md'), - meta: { title: '空' }, - }, - { - path: '/zh-CN/components/rate', - component: () => import('../../docs/zh-CN/components/rate.md'), - meta: { title: '评分' }, - }, - { - path: '/zh-CN/components/dropdown', - component: () => import('../../docs/zh-CN/components/dropdown.md'), - meta: { title: '下拉' }, - }, - { - path: '/zh-CN/components/tab', - component: () => import('../../docs/zh-CN/components/tab.md'), - meta: { title: '选项卡' }, - }, - { - path: '/zh-CN/components/iconPicker', - component: () => import('../../docs/zh-CN/components/iconPicker.md'), - meta: { title: '图标选择' }, - }, - { - path: '/zh-CN/components/tree', - component: () => import('../../docs/zh-CN/components/tree.md'), - meta: { title: '树形组件' }, - }, - { - path: '/zh-CN/components/page', - component: () => import('../../docs/zh-CN/components/page.md'), - meta: { title: '分页' }, - }, - { - path: '/zh-CN/components/transfer', - component: () => import('../../docs/zh-CN/components/transfer.md'), - meta: { title: '穿梭框' }, - }, - { - path: '/zh-CN/components/checkbox', - component: () => import('../../docs/zh-CN/components/checkbox.md'), - meta: { title: '复选框' }, - }, - { - path: '/zh-CN/components/radio', - component: () => import('../../docs/zh-CN/components/radio.md'), - meta: { title: '单选框' }, - }, - { - path: '/zh-CN/components/input', - component: () => import('../../docs/zh-CN/components/input.md'), - meta: { title: '输入框' }, - }, - { - path: '/zh-CN/components/textarea', - component: () => import('../../docs/zh-CN/components/textarea.md'), - meta: { title: '文本域' }, - }, - { - path: '/zh-CN/components/switch', - component: () => import('../../docs/zh-CN/components/switch.md'), - meta: { title: '开关' }, - }, - { - path: '/zh-CN/components/slider', - component: () => import('../../docs/zh-CN/components/slider.md'), - meta: { title: '滑块' }, - }, - { - path: '/zh-CN/components/carousel', - component: () => import('../../docs/zh-CN/components/carousel.md'), - meta: { title: '轮播' }, - }, - { - path: '/zh-CN/components/select', - component: () => import('../../docs/zh-CN/components/select.md'), - meta: { title: '下拉选择' }, - }, - { - path: '/zh-CN/components/colorPicker', - component: () => import('../../docs/zh-CN/components/colorPicker.md'), - meta: { title: '颜色选择器' }, - }, - ], - }, + path: '/zh-CN/components', + redirect: '/zh-CN/components/button', + component: Component, + meta: { title: '组件' }, + children: [ + { + path: '/zh-CN/components/layout', + component: () => import('../../docs/zh-CN/components/layout.md'), + meta: { title: '布局' }, + }, + { + path: '/zh-CN/components/color', + component: () => import('../../docs/zh-CN/components/color.md'), + meta: { title: '颜色' }, + }, + { + path: '/zh-CN/components/container', + component: () => import('../../docs/zh-CN/components/container.md'), + meta: { title: '容器' }, + }, + { + path: '/zh-CN/components/breadcrumb', + component: () => import('../../docs/zh-CN/components/breadcrumb.md'), + meta: { title: '面包屑' }, + }, + { + path: '/zh-CN/components/button', + component: () => import('../../docs/zh-CN/components/button.md'), + meta: { title: '按钮' }, + }, + { + path: '/zh-CN/components/icon', + component: () => import('../../docs/zh-CN/components/icon.md'), + meta: { title: '图标' }, + }, + { + path: '/zh-CN/components/panel', + component: () => import('../../docs/zh-CN/components/panel.md'), + meta: { title: '面板' }, + }, + { + path: '/zh-CN/components/animation', + component: () => import('../../docs/zh-CN/components/animation.md'), + meta: { title: '动画' }, + }, + { + path: '/zh-CN/components/card', + component: () => import('../../docs/zh-CN/components/cards.md'), + meta: { title: '卡片' }, + }, + { + path: '/zh-CN/components/grid', + component: () => import('../../docs/zh-CN/components/grid.md'), + meta: { title: '栅格' }, + }, + { + path: '/zh-CN/components/form', + component: () => import('../../docs/zh-CN/components/form.md'), + meta: { title: '表单' }, + }, + { + path: '/zh-CN/components/badge', + component: () => import('../../docs/zh-CN/components/badge.md'), + meta: { title: '徽章' }, + }, + { + path: '/zh-CN/components/block', + component: () => import('../../docs/zh-CN/components/block.md'), + meta: { title: '辅助' }, + }, + { + path: '/zh-CN/components/line', + component: () => import('../../docs/zh-CN/components/line.md'), + meta: { title: '分割' }, + }, + { + path: '/zh-CN/components/progress', + component: () => import('../../docs/zh-CN/components/progress.md'), + meta: { title: '进度' }, + }, + { + path: '/zh-CN/components/menu', + component: () => import('../../docs/zh-CN/components/menu.md'), + meta: { title: '菜单' }, + }, + { + path: '/zh-CN/components/timeline', + component: () => import('../../docs/zh-CN/components/timeline.md'), + meta: { title: '时间线' }, + }, + { + path: '/zh-CN/components/collapse', + component: () => import('../../docs/zh-CN/components/collapse.md'), + meta: { title: '手风琴' }, + }, + { + path: '/zh-CN/components/table', + component: () => import('../../docs/zh-CN/components/table.md'), + meta: { title: '表格' }, + }, + { + path: '/zh-CN/components/avatar', + component: () => import('../../docs/zh-CN/components/avatar.md'), + meta: { title: '头像' }, + }, + { + path: '/zh-CN/components/field', + component: () => import('../../docs/zh-CN/components/field.md'), + meta: { title: '字段' }, + }, + { + path: '/zh-CN/components/empty', + component: () => import('../../docs/zh-CN/components/empty.md'), + meta: { title: '空' }, + }, + { + path: '/zh-CN/components/rate', + component: () => import('../../docs/zh-CN/components/rate.md'), + meta: { title: '评分' }, + }, + { + path: '/zh-CN/components/dropdown', + component: () => import('../../docs/zh-CN/components/dropdown.md'), + meta: { title: '下拉' }, + }, + { + path: '/zh-CN/components/tab', + component: () => import('../../docs/zh-CN/components/tab.md'), + meta: { title: '选项卡' }, + }, + { + path: '/zh-CN/components/iconPicker', + component: () => import('../../docs/zh-CN/components/iconPicker.md'), + meta: { title: '图标选择' }, + }, + { + path: '/zh-CN/components/tree', + component: () => import('../../docs/zh-CN/components/tree.md'), + meta: { title: '树形组件' }, + }, + { + path: '/zh-CN/components/page', + component: () => import('../../docs/zh-CN/components/page.md'), + meta: { title: '分页' }, + }, + { + path: '/zh-CN/components/transfer', + component: () => import('../../docs/zh-CN/components/transfer.md'), + meta: { title: '穿梭框' }, + }, + { + path: '/zh-CN/components/checkbox', + component: () => import('../../docs/zh-CN/components/checkbox.md'), + meta: { title: '复选框' }, + }, + { + path: '/zh-CN/components/radio', + component: () => import('../../docs/zh-CN/components/radio.md'), + meta: { title: '单选框' }, + }, + { + path: '/zh-CN/components/input', + component: () => import('../../docs/zh-CN/components/input.md'), + meta: { title: '输入框' }, + }, + { + path: '/zh-CN/components/textarea', + component: () => import('../../docs/zh-CN/components/textarea.md'), + meta: { title: '文本域' }, + }, + { + path: '/zh-CN/components/switch', + component: () => import('../../docs/zh-CN/components/switch.md'), + meta: { title: '开关' }, + }, + { + path: '/zh-CN/components/slider', + component: () => import('../../docs/zh-CN/components/slider.md'), + meta: { title: '滑块' }, + }, + { + path: '/zh-CN/components/carousel', + component: () => import('../../docs/zh-CN/components/carousel.md'), + meta: { title: '轮播' }, + }, + { + path: '/zh-CN/components/select', + component: () => import('../../docs/zh-CN/components/select.md'), + meta: { title: '下拉选择' }, + }, + { + path: '/zh-CN/components/colorPicker', + component: () => import('../../docs/zh-CN/components/colorPicker.md'), + meta: { title: '颜色选择器' }, + }, + ] + } + + ] + } ] export default zhCN diff --git a/docs/src/view/component.vue b/docs/src/view/component.vue new file mode 100644 index 00000000..c9af7a6b --- /dev/null +++ b/docs/src/view/component.vue @@ -0,0 +1,293 @@ + + \ No newline at end of file diff --git a/docs/src/view/guide.vue b/docs/src/view/guide.vue new file mode 100644 index 00000000..62586a45 --- /dev/null +++ b/docs/src/view/guide.vue @@ -0,0 +1,83 @@ + + \ No newline at end of file diff --git a/docs/src/view/home.vue b/docs/src/view/home.vue new file mode 100644 index 00000000..b86b1cd0 --- /dev/null +++ b/docs/src/view/home.vue @@ -0,0 +1,66 @@ + + + \ No newline at end of file diff --git a/src/css/layui.css b/src/css/layui.css index 226dd4e4..9990ec5c 100644 --- a/src/css/layui.css +++ b/src/css/layui.css @@ -1057,10 +1057,10 @@ a cite { } .layui-layout-admin .layui-header { - position: fixed; top: 0; left: 0; right: 0; + position: fixed; background-color: #23262e; }