[依赖] 整体架构依赖升级

This commit is contained in:
就眠仪式
2021-09-29 17:22:33 +08:00
parent 4bf593831c
commit 0917b9dd3c
24 changed files with 6420 additions and 80 deletions

View File

@@ -1,5 +0,0 @@
##### 安装
```
npm install layui-vue --save
```

View File

@@ -0,0 +1,5 @@
##### 安装
```
npm install @layui/layui-vue --save
```

View File

@@ -17,6 +17,7 @@
<lay-side>
<ul class="layui-menu layui-menu-lg">
<li><router-link to="/zh-CN/guide">介绍</router-link></li>
<li><router-link to="/zh-CN/guide/install">安装</router-link></li>
<li><router-link to="/zh-CN/components/layout">布局</router-link></li>
<li><router-link to="/zh-CN/components/container">容器</router-link></li>
<li><router-link to="/zh-CN/components/button">按钮</router-link></li>

View File

@@ -2,10 +2,6 @@ import markdown from 'markdown-it'
import highlight from './highlight'
import type Token from 'markdown-it/lib/token'
/**
* Combine the script content
* @param {string} script script string
*/
function assignScript(script: string) {
const dependencies = {} as Record<string, string[]>
const attrs = {} as Record<string, string>

View File

@@ -12,6 +12,11 @@ const zhCN = [
component: () => import('../../docs/zh-CN/guide/home.md'),
meta: { title: '介绍' },
},
{
path: '/zh-CN/guide/install',
component: () => import('../../docs/zh-CN/guide/install.md'),
meta: { title: '安装' },
},
],
},
{

View File

@@ -1,4 +1,3 @@
/* TODO: rebuild... copy from [vitepress](https://github.com/vuejs/vitepress) */
:root {
--c-white: #ffffff;
--c-black: #000000;
@@ -13,20 +12,6 @@
--c-brand: #409eff;
--c-brand-light: #4abf8a;
/**
* Typography
* --------------------------------------------------------------------- */
--font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
--font-family-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
/**
* Shadows
* --------------------------------------------------------------------- */
--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
--shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
--shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
@@ -34,7 +19,6 @@
--shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
}
/** Fallback Styles */
:root {
--c-divider: var(--c-divider-light);