diff --git a/.eslintrc.js b/.eslintrc.js
index 60e16ae9..23cbd909 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,26 +1,66 @@
+// module.exports = {
+// env: {
+// browser: true,
+// node: true,
+// },
+// parser: 'vue-eslint-parser',
+// parserOptions: {
+// parser: '@typescript-eslint/parser',
+// sourceType: 'module',
+// ecmaVersion: 10,
+// },
+// plugins: ['@typescript-eslint', 'prettier'],
+// extends: [
+// 'eslint:recommended',
+// 'plugin:vue/vue3-recommended',
+// 'plugin:@typescript-eslint/recommended',
+// ],
+// rules: {
+// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
+// 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
+// quotes: ['error', 'single'],
+// semi: ['error', 'never'],
+// 'no-unused-vars': 'off',
+// '@typescript-eslint/no-unused-vars': 'off',
+// },
+// }
+
module.exports = {
+ root: true,
env: {
browser: true,
+ es2021: true,
node: true,
},
+ globals: {
+ defineProps: 'readonly',
+ defineEmits: 'readonly',
+ defineExpose: 'readonly',
+ withDefaults: 'readonly',
+ },
parser: 'vue-eslint-parser',
+ plugins: ['@typescript-eslint', 'prettier'],
+ extends: [
+ 'plugin:vue/vue3-recommended',
+ 'eslint:recommended',
+ '@vue/typescript/recommended',
+ '@vue/prettier',
+ '@vue/prettier/@typescript-eslint',
+ ],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 10,
},
- plugins: ['@typescript-eslint', 'prettier'],
- extends: [
- 'eslint:recommended',
- 'plugin:vue/vue3-recommended',
- 'plugin:@typescript-eslint/recommended',
- ],
rules: {
+ 'vue/valid-template-root': 'off',
+ '@typescript-eslint/no-explicit-any': 'off',
+ '@typescript-eslint/no-unused-vars': 'off',
+ '@typescript-eslint/no-var-requires': 'off',
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
+ 'vue/one-component-per-file': 'off',
+ '@typescript-eslint/no-non-null-assertion': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
- quotes: ['error', 'single'],
- semi: ['error', 'never'],
- 'no-unused-vars': 'off',
- '@typescript-eslint/no-unused-vars': 'off',
},
}
diff --git a/.husky/commit-msg b/.husky/commit-msg
index 2f894ed2..816f4e58 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -2,4 +2,4 @@
. "$(dirname "$0")/_/husky.sh"
pnpx pretty-quick --staged
-pnpx lint-staged
+#pnpx lint-staged
diff --git a/.postcssrc.json b/.postcssrc.json
index 67ab504b..01161a20 100644
--- a/.postcssrc.json
+++ b/.postcssrc.json
@@ -6,4 +6,4 @@
},
"autoprefixer": {}
}
-}
\ No newline at end of file
+}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a1df463a..e09df5ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1 +1 @@
-### 更新日志
\ No newline at end of file
+### 更新日志
diff --git a/README.md b/README.md
index ad883c47..3fad1b7b 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-
@@ -26,7 +25,6 @@
Vue 3.0 的 桌 面 端 组 件 库 , Layui 的 另 一 种 呈 现 方 式
-
## 快速上手 : Beta
获得 layui-vue 你只需要使用 npm 引入下述文件:
@@ -43,31 +41,28 @@ import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/layui.css'
import App from './App.vue'
-createApp(App)
-.use(Layui)
-.mount('#app')
-
+createApp(App).use(Layui).mount('#app')
```
这是一个基本的入门页面:
```html
-
-
- Layui Admin
-
-
-
-
-
- pearadmin.com
-
+
+
+ Layui Admin
+
+
+
+
+
+ pearadmin.com
+
-
```
## [阅读文档](http://layui-vue.pearadmin.com/)
+
从现在开始,尽情地拥抱 layui 吧!但愿她能成为你长远的开发伴侣,化作你方寸屏幕前的亿万字节!
## 使用趋势
@@ -75,14 +70,16 @@ createApp(App)
[![Giteye chart](https://chart.giteye.net/gitee/layui-vue/layui-vue/5ZQ67WWS.png)](https://giteye.net/chart/5ZQ67WWS)
## 贡献者
-> 大概是因为 layui - vue 让开发者变得更懒,所以贡献者才这么少?
+
+> 大概是因为 layui - vue 让开发者变得更懒,所以贡献者才这么少?
> 好的,姑且就这样认为吧。
-
+
[![Giteye chart](https://chart.giteye.net/gitee/layui-vue/layui-vue/DBC9Z6HQ.png)](https://giteye.net/chart/DBC9Z6HQ)
## 交流群
-![输入图片说明](https://images.gitee.com/uploads/images/2021/1008/090410_8b349271_4835367.png "QQ图片20211008090242.png")
+![输入图片说明](https://images.gitee.com/uploads/images/2021/1008/090410_8b349271_4835367.png 'QQ图片20211008090242.png')
## 相关
-[官网](http://layui-vue.pearadmin.com/)、[更新日志](http://layui-vue.pearadmin.com/zh-CN/guide/changelog)、[交流群](https://jq.qq.com/?_wv=1027&k=ffiUQgnE)
\ No newline at end of file
+
+[官网](http://layui-vue.pearadmin.com/)、[更新日志](http://layui-vue.pearadmin.com/zh-CN/guide/changelog)、[交流群](https://jq.qq.com/?_wv=1027&k=ffiUQgnE)
diff --git a/docs/docs/zh-CN/components/animation.md b/docs/docs/zh-CN/components/animation.md
index 6dacb5fe..e2ba32dd 100644
--- a/docs/docs/zh-CN/components/animation.md
+++ b/docs/docs/zh-CN/components/animation.md
@@ -65,19 +65,20 @@ export default {
}
}
+
:::
-| | | |
-|--|--|--|
-| layui-anim-down | 顶部往下滑入 | `layui-anim layui-anim-down` |
-| layui-anim-downbit | 微微往下滑入 | `layui-anim layui-anim-downbit` |
-| layui-anim-up | 底部往上滑入 | `layui-anim layui-anim-up` |
-| layui-anim-upbit | 微微往上滑入 | `layui-anim ayui-anim-upbit` |
-| layui-anim-scale | 平滑放大 | `layui-anim layui-anim-scale` |
-| layui-anim-scaleSpring | 弹簧式放大 | `layui-anim layui-anim-scaleSpring` |
-| layui-anim-scalesmall | 平滑放小 |`layui-anim layui-anim-scalesmall`|
-| layui-anim-scalesmall-spring | 弹簧式放小 | `layui-anim layui-anim-scalesmall-spring`|
-| layui-anim-fadein | 渐现 | `layui-anim layui-anim-fadein`|
-| layui-anim-fadeout | 渐隐 | `layui-anim layui-anim-fadeout`|
-| layui-anim-rotate | 360度旋转 | `layui-anim layui-anim-rotate`|
-| layui-anim-rotate layui-anim-loop | 循环动画 | `layui-anim layui-anim-rotate layui-anim-loop`|
\ No newline at end of file
+| | | |
+| --------------------------------- | ------------ | ---------------------------------------------- |
+| layui-anim-down | 顶部往下滑入 | `layui-anim layui-anim-down` |
+| layui-anim-downbit | 微微往下滑入 | `layui-anim layui-anim-downbit` |
+| layui-anim-up | 底部往上滑入 | `layui-anim layui-anim-up` |
+| layui-anim-upbit | 微微往上滑入 | `layui-anim ayui-anim-upbit` |
+| layui-anim-scale | 平滑放大 | `layui-anim layui-anim-scale` |
+| layui-anim-scaleSpring | 弹簧式放大 | `layui-anim layui-anim-scaleSpring` |
+| layui-anim-scalesmall | 平滑放小 | `layui-anim layui-anim-scalesmall` |
+| layui-anim-scalesmall-spring | 弹簧式放小 | `layui-anim layui-anim-scalesmall-spring` |
+| layui-anim-fadein | 渐现 | `layui-anim layui-anim-fadein` |
+| layui-anim-fadeout | 渐隐 | `layui-anim layui-anim-fadeout` |
+| layui-anim-rotate | 360 度旋转 | `layui-anim layui-anim-rotate` |
+| layui-anim-rotate layui-anim-loop | 循环动画 | `layui-anim layui-anim-rotate layui-anim-loop` |
diff --git a/docs/docs/zh-CN/components/avatar.md b/docs/docs/zh-CN/components/avatar.md
index 22c3866c..d7f9963e 100644
--- a/docs/docs/zh-CN/components/avatar.md
+++ b/docs/docs/zh-CN/components/avatar.md
@@ -68,10 +68,11 @@ export default {
}
}
+
:::
-| | | |
-|--|--|--|
-| src | 图源 | -- |
-| size | 尺寸 | `xs` `sm` `lg`|
-| radius | 圆形 | `true` `false`|
\ No newline at end of file
+| | | |
+| ------ | ---- | -------------- |
+| src | 图源 | -- |
+| size | 尺寸 | `xs` `sm` `lg` |
+| radius | 圆形 | `true` `false` |
diff --git a/docs/docs/zh-CN/components/badge.md b/docs/docs/zh-CN/components/badge.md
index c0270e2a..23ba7809 100644
--- a/docs/docs/zh-CN/components/badge.md
+++ b/docs/docs/zh-CN/components/badge.md
@@ -33,7 +33,7 @@ export default {
:::
-| | | |
-|--|--|--|
-| type | 类型 | `dot` `rim` |
-| theme| 主题 | `orange` `green` `cyan` `blue` `black` `gray`|
\ No newline at end of file
+| | | |
+| ----- | ---- | --------------------------------------------- |
+| type | 类型 | `dot` `rim` |
+| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
diff --git a/docs/docs/zh-CN/components/breadcrumb.md b/docs/docs/zh-CN/components/breadcrumb.md
index e6445f5c..b1ed4bf0 100644
--- a/docs/docs/zh-CN/components/breadcrumb.md
+++ b/docs/docs/zh-CN/components/breadcrumb.md
@@ -46,6 +46,6 @@ export default {
:::
-| | | |
-|--|--|--|
-| separator | 分割符 | `/` |
\ No newline at end of file
+| | | |
+| --------- | ------ | --- |
+| separator | 分割符 | `/` |
diff --git a/docs/docs/zh-CN/components/button.md b/docs/docs/zh-CN/components/button.md
index faa620a3..f64b0e12 100644
--- a/docs/docs/zh-CN/components/button.md
+++ b/docs/docs/zh-CN/components/button.md
@@ -48,7 +48,6 @@ export default {
:::
-
::: demo 传入 columns 数据,自动生成表格
@@ -74,7 +73,6 @@ export default {
:::
-
::: demo 传入 columns 数据,自动生成表格
@@ -177,7 +175,6 @@ export default {
:::
-
::: demo 传入 columns 数据,自动生成表格
@@ -202,10 +199,10 @@ export default {
:::
-| | | |
-|--|--|--|
-| type | 主题 | `primary` `normal` `warm` `danger` `disabled`|
-| size | 尺寸 | `lg` `sm` `xs` |
-| fluid | 最大化 | `true` `false` |
-| radius | 圆角 | `true` `false` |
-| border | 边框 | `green` `blue` `orange` `red` `black` |
\ No newline at end of file
+| | | |
+| ------ | ------ | --------------------------------------------- |
+| type | 主题 | `primary` `normal` `warm` `danger` `disabled` |
+| size | 尺寸 | `lg` `sm` `xs` |
+| fluid | 最大化 | `true` `false` |
+| radius | 圆角 | `true` `false` |
+| border | 边框 | `green` `blue` `orange` `red` `black` |
diff --git a/docs/docs/zh-CN/components/cards.md b/docs/docs/zh-CN/components/cards.md
index 31f00835..7294c1a3 100644
--- a/docs/docs/zh-CN/components/cards.md
+++ b/docs/docs/zh-CN/components/cards.md
@@ -49,7 +49,7 @@ export default {
:::
-| | | |
-|--|--|--|
+| | | |
+| ------ | ---- | ------ |
| header | 插槽 | `内容` |
-| body | 插槽 | `内容` |
\ No newline at end of file
+| body | 插槽 | `内容` |
diff --git a/docs/docs/zh-CN/components/collapse.md b/docs/docs/zh-CN/components/collapse.md
index ee33b2ca..9cf02231 100644
--- a/docs/docs/zh-CN/components/collapse.md
+++ b/docs/docs/zh-CN/components/collapse.md
@@ -20,4 +20,4 @@ export default {
}
-:::
\ No newline at end of file
+:::
diff --git a/docs/docs/zh-CN/components/color.md b/docs/docs/zh-CN/components/color.md
index da4ac41f..2fa141dc 100644
--- a/docs/docs/zh-CN/components/color.md
+++ b/docs/docs/zh-CN/components/color.md
@@ -40,6 +40,7 @@ export default {
}
}
+
:::
::: demo
@@ -84,6 +85,7 @@ export default {
}
}
+
:::
::: demo
@@ -130,4 +132,5 @@ export default {
}
}
-:::
\ No newline at end of file
+
+:::
diff --git a/docs/docs/zh-CN/components/container.md b/docs/docs/zh-CN/components/container.md
index e8ba715d..5c2e5cdc 100644
--- a/docs/docs/zh-CN/components/container.md
+++ b/docs/docs/zh-CN/components/container.md
@@ -59,6 +59,6 @@ export default {
:::
-| | | |
-|--|--|--|
-| fluid | 流模式 | `true` `false` |
\ No newline at end of file
+| | | |
+| ----- | ------ | -------------- |
+| fluid | 流模式 | `true` `false` |
diff --git a/docs/docs/zh-CN/components/dropdown.md b/docs/docs/zh-CN/components/dropdown.md
index ff0f0f74..b9561b6b 100644
--- a/docs/docs/zh-CN/components/dropdown.md
+++ b/docs/docs/zh-CN/components/dropdown.md
@@ -61,7 +61,6 @@ export default {
:::
-
-| | | |
-|--|--|--|
-| trigger | 触发方式 | `click` `hover` |
\ No newline at end of file
+| | | |
+| ------- | -------- | --------------- |
+| trigger | 触发方式 | `click` `hover` |
diff --git a/docs/docs/zh-CN/components/empty.md b/docs/docs/zh-CN/components/empty.md
index ebcae3f7..9bd3d985 100644
--- a/docs/docs/zh-CN/components/empty.md
+++ b/docs/docs/zh-CN/components/empty.md
@@ -38,6 +38,6 @@ export default {
:::
-| | | |
-|--|--|--|
-| description | 描述信息 | -- |
\ No newline at end of file
+| | | |
+| ----------- | -------- | --- |
+| description | 描述信息 | -- |
diff --git a/docs/docs/zh-CN/components/field.md b/docs/docs/zh-CN/components/field.md
index 2384dc07..80849ffc 100644
--- a/docs/docs/zh-CN/components/field.md
+++ b/docs/docs/zh-CN/components/field.md
@@ -38,6 +38,6 @@ export default {
:::
-| | | |
-|--|--|--|
-| title | 标题 | -- |
\ No newline at end of file
+| | | |
+| ----- | ---- | --- |
+| title | 标题 | -- |
diff --git a/docs/docs/zh-CN/components/form.md b/docs/docs/zh-CN/components/form.md
index f1501fd5..78310eb7 100644
--- a/docs/docs/zh-CN/components/form.md
+++ b/docs/docs/zh-CN/components/form.md
@@ -220,4 +220,4 @@ export default {
}
-:::
\ No newline at end of file
+:::
diff --git a/docs/docs/zh-CN/components/grid.md b/docs/docs/zh-CN/components/grid.md
index b2302bbc..c7b364d3 100644
--- a/docs/docs/zh-CN/components/grid.md
+++ b/docs/docs/zh-CN/components/grid.md
@@ -71,6 +71,7 @@ export default {
color: #fff;
}
+
:::
::: demo
@@ -123,13 +124,13 @@ export default {
:::
-| | | | |
-|--|--|--|--|
-| xs | 尺寸 | 超小屏幕 (手机<768px) | 12 |
-| sm | 尺寸 | 小屏幕 (平板≥768px) | 12 |
-| md | 尺寸 | 中等屏幕 (桌面≥992px) | 12 |
-| lg | 尺寸 | 大型屏幕 (桌面≥1200px) | 12 |
-| xsOffset | 偏移 | 超小屏幕 (手机<768px) | 12 |
-| smOffset | 偏移 | 小屏幕 (平板≥768px) | 12 |
-| mdOffset | 偏移 | 中等屏幕 (桌面≥992px) | 12 |
-| lgOffset | 偏移 | 大型屏幕 (桌面≥1200px) | 12 |
\ No newline at end of file
+| | | | |
+| -------- | ---- | ----------------------- | --- |
+| xs | 尺寸 | 超小屏幕 (手机<768px) | 12 |
+| sm | 尺寸 | 小屏幕 (平板 ≥768px) | 12 |
+| md | 尺寸 | 中等屏幕 (桌面 ≥992px) | 12 |
+| lg | 尺寸 | 大型屏幕 (桌面 ≥1200px) | 12 |
+| xsOffset | 偏移 | 超小屏幕 (手机<768px) | 12 |
+| smOffset | 偏移 | 小屏幕 (平板 ≥768px) | 12 |
+| mdOffset | 偏移 | 中等屏幕 (桌面 ≥992px) | 12 |
+| lgOffset | 偏移 | 大型屏幕 (桌面 ≥1200px) | 12 |
diff --git a/docs/docs/zh-CN/components/icon.md b/docs/docs/zh-CN/components/icon.md
index 0586a8ae..6e835cd3 100644
--- a/docs/docs/zh-CN/components/icon.md
+++ b/docs/docs/zh-CN/components/icon.md
@@ -1047,6 +1047,6 @@ export default {
:::
-| | | |
-|--|--|--|
+| | | |
+| ---- | ---- | ----------------- |
| type | 图标 | `layui-icon-home` |
diff --git a/docs/docs/zh-CN/components/iconPicker.md b/docs/docs/zh-CN/components/iconPicker.md
index f25cdd89..4fd8f808 100644
--- a/docs/docs/zh-CN/components/iconPicker.md
+++ b/docs/docs/zh-CN/components/iconPicker.md
@@ -86,8 +86,8 @@ export default {
:::
-| | | |
-|--|--|--|
-| v-model | 默认值 | -- |
-| page | 开启分页 | -- |
-| showSearch | 启用搜索 | -- |
\ No newline at end of file
+| | | |
+| ---------- | -------- | --- |
+| v-model | 默认值 | -- |
+| page | 开启分页 | -- |
+| showSearch | 启用搜索 | -- |
diff --git a/docs/docs/zh-CN/components/layout.md b/docs/docs/zh-CN/components/layout.md
index b7607532..06e4a41e 100644
--- a/docs/docs/zh-CN/components/layout.md
+++ b/docs/docs/zh-CN/components/layout.md
@@ -8,22 +8,22 @@ layui 之所以赢得如此多人的青睐,更多是在于它「前后界面
```html
-
- Layui Admin
-
-
-
-
-
- pearadmin.com
+
+ Layui Admin
+
+
+
+
+
+ pearadmin.com
```
-| | | |
-|--|--|--|
-| lay-layout | 容器 | -- |
-| lay-header | 顶部 | -- |
-| lay-logo | 图标 | -- |
-| lay-side | 侧边 | -- |
-| lay-body | 内容 | -- |
-| lay-footer | 底部 | -- |
\ No newline at end of file
+| | | |
+| ---------- | ---- | --- |
+| lay-layout | 容器 | -- |
+| lay-header | 顶部 | -- |
+| lay-logo | 图标 | -- |
+| lay-side | 侧边 | -- |
+| lay-body | 内容 | -- |
+| lay-footer | 底部 | -- |
diff --git a/docs/docs/zh-CN/components/line.md b/docs/docs/zh-CN/components/line.md
index 80d605a4..76ad7878 100644
--- a/docs/docs/zh-CN/components/line.md
+++ b/docs/docs/zh-CN/components/line.md
@@ -31,6 +31,6 @@ export default {
:::
-| | | |
-|--|--|--|
-| theme| 主题 | `orange` `green` `cyan` `blue` `black` `gray`|
\ No newline at end of file
+| | | |
+| ----- | ---- | --------------------------------------------- |
+| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
diff --git a/docs/docs/zh-CN/components/menu.md b/docs/docs/zh-CN/components/menu.md
index 6b10c4f0..1161cd6f 100644
--- a/docs/docs/zh-CN/components/menu.md
+++ b/docs/docs/zh-CN/components/menu.md
@@ -56,7 +56,6 @@ export default {
:::
-
-| | | |
-|--|--|--|
-| selectedKey | 默认选择 | -- |
+| | | |
+| ----------- | -------- | --- |
+| selectedKey | 默认选择 | -- |
diff --git a/docs/docs/zh-CN/components/page.md b/docs/docs/zh-CN/components/page.md
index 61f55dfc..097303b8 100644
--- a/docs/docs/zh-CN/components/page.md
+++ b/docs/docs/zh-CN/components/page.md
@@ -107,13 +107,13 @@ export default {
:::
-| | | |
-|--|--|--|
-| limit | 每页数量 | -- |
-| total | 总条数 | -- |
-| jump | 切换回调 | -- |
-| showCount | 显示总数 | `false` |
-| showPage | 显示每页 | `false` |
-| showLimit | 显示每页数量 | `false` |
+| | | |
+| ----------- | ------------ | ------- |
+| limit | 每页数量 | -- |
+| total | 总条数 | -- |
+| jump | 切换回调 | -- |
+| showCount | 显示总数 | `false` |
+| showPage | 显示每页 | `false` |
+| showLimit | 显示每页数量 | `false` |
| showRefresh | 显示刷新按钮 | `false` |
-| showSkip | 显示跳转 | `false` |
\ No newline at end of file
+| showSkip | 显示跳转 | `false` |
diff --git a/docs/docs/zh-CN/components/panel.md b/docs/docs/zh-CN/components/panel.md
index c25f6257..4563a4d1 100644
--- a/docs/docs/zh-CN/components/panel.md
+++ b/docs/docs/zh-CN/components/panel.md
@@ -16,4 +16,4 @@ export default {
}
-:::
\ No newline at end of file
+:::
diff --git a/docs/docs/zh-CN/components/progress.md b/docs/docs/zh-CN/components/progress.md
index c96225c0..ec62ddcd 100644
--- a/docs/docs/zh-CN/components/progress.md
+++ b/docs/docs/zh-CN/components/progress.md
@@ -7,7 +7,7 @@
-:::
\ No newline at end of file
+:::
diff --git a/docs/docs/zh-CN/guide/changelog.md b/docs/docs/zh-CN/guide/changelog.md
index 852e836b..842e1335 100644
--- a/docs/docs/zh-CN/guide/changelog.md
+++ b/docs/docs/zh-CN/guide/changelog.md
@@ -39,4 +39,4 @@ export default {
}
-:::
\ No newline at end of file
+:::
diff --git a/docs/docs/zh-CN/guide/home.md b/docs/docs/zh-CN/guide/home.md
index 55a15fad..952ec16f 100644
--- a/docs/docs/zh-CN/guide/home.md
+++ b/docs/docs/zh-CN/guide/home.md
@@ -38,4 +38,4 @@ layui - vue(谐音:类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库 ,
-
\ No newline at end of file
+
diff --git a/docs/docs/zh-CN/guide/install.md b/docs/docs/zh-CN/guide/install.md
index 99659258..a3623249 100644
--- a/docs/docs/zh-CN/guide/install.md
+++ b/docs/docs/zh-CN/guide/install.md
@@ -1,33 +1,35 @@
-
+
使用 npm 下载
+
```
npm install @layui/layui-vue --save
```
在 main.ts 中
+
```js
import App from './App.vue'
import { createApp } from 'vue'
import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/layui.css'
-createApp(App)
-.use(Layui)
-.mount('#app')
+createApp(App).use(Layui).mount('#app')
```
这是一个基本的入门页面:
+
```html
-
- Layui Admin
-
-
-
-
-
- pearadmin.com
+
+ Layui Admin
+
+
+
+
+
+ pearadmin.com
```
-完整案例, 前往: [layui-vue-sample](https://gitee.com/layui-vue/layui-vue-sample)
\ No newline at end of file
+
+完整案例, 前往: [layui-vue-sample](https://gitee.com/layui-vue/layui-vue-sample)
diff --git a/docs/index.html b/docs/index.html
index 949079e0..42fb103d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,25 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+ Layui - Vue 开源前端 UI 框架
+
+
-
-
-
-
-
-
-
-
-
-
- Layui - Vue 开源前端 UI 框架
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+