From f972c94f558d9887420ba1b894ba76bb7fa0f5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Sat, 14 May 2022 23:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D:=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/package.json | 2 +- package/component/src/component/checkbox/index.vue | 1 + package/document/src/document/zh-CN/components/menu.md | 1 - package/document/src/document/zh-CN/guide/changelog.md | 5 +++-- package/document/src/document/zh-CN/guide/getStarted.md | 8 +++----- package/document/src/view/index.vue | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/package/component/package.json b/package/component/package.json index ce03c00b..f111ba7f 100644 --- a/package/component/package.json +++ b/package/component/package.json @@ -1,6 +1,6 @@ { "name": "@layui/layui-vue", - "version": "1.0.7", + "version": "1.0.8", "author": "就眠儀式", "license": "MIT", "description": "a component library for Vue 3 base on layui-vue", diff --git a/package/component/src/component/checkbox/index.vue b/package/component/src/component/checkbox/index.vue index 1194c2bd..3f21655b 100644 --- a/package/component/src/component/checkbox/index.vue +++ b/package/component/src/component/checkbox/index.vue @@ -8,6 +8,7 @@ export default { import { computed, inject } from "vue"; import "./index.less"; + export interface LayCheckboxProps { name?: string; skin?: string; diff --git a/package/document/src/document/zh-CN/components/menu.md b/package/document/src/document/zh-CN/components/menu.md index e358a32d..a8df6764 100644 --- a/package/document/src/document/zh-CN/components/menu.md +++ b/package/document/src/document/zh-CN/components/menu.md @@ -557,7 +557,6 @@ export default { | level | 菜单层级 | `true` `false` | | collapse | 折叠状态 | `true` `false` | | collapse-transition | 折叠动画 | `true` `false` | -| child-spacing | 子菜单增加间距 | `true` `false` | ::: diff --git a/package/document/src/document/zh-CN/guide/changelog.md b/package/document/src/document/zh-CN/guide/changelog.md index 8e7a788d..5cff7b94 100644 --- a/package/document/src/document/zh-CN/guide/changelog.md +++ b/package/document/src/document/zh-CN/guide/changelog.md @@ -14,12 +14,13 @@ diff --git a/package/document/src/document/zh-CN/guide/getStarted.md b/package/document/src/document/zh-CN/guide/getStarted.md index facf4176..f145666d 100644 --- a/package/document/src/document/zh-CN/guide/getStarted.md +++ b/package/document/src/document/zh-CN/guide/getStarted.md @@ -42,7 +42,7 @@ createApp(App).use(Layui).mount('#app') ::: describe 以上代码便完成了 layui-vue 的引入。需要注意的是,样式文件需要单独引入。 ::: -::: title 按需引入(自动) +::: title 自动按需 ::: ::: describe 安装 unplugin-vue-componentsunplugin-auto-import 插件,插件会自动解析模板中用到的组件,并引入组件和样式。 @@ -52,7 +52,7 @@ createApp(App).use(Layui).mount('#app') npm install -D unplugin-vue-components unplugin-auto-import ``` -::: describe vite 配置 +::: describe 修改 vite.config.js 文件 ::: ```js @@ -64,8 +64,6 @@ import { LayuiVueResolver } from 'unplugin-vue-components/resolvers' export default { plugins: [ // ...其它插件 - - // 自动导入 layer-vue 相关函数,例如 layer 等 AutoImport({ resolvers: [LayuiVueResolver()], }), @@ -109,7 +107,7 @@ export interface LayuiVueResolverOptions { } ``` -::: title 按需引入(手动) +::: title 手动按需 ::: ::: describe 需要手动引入组件样式 diff --git a/package/document/src/view/index.vue b/package/document/src/view/index.vue index 2cf7513f..4d254701 100644 --- a/package/document/src/view/index.vue +++ b/package/document/src/view/index.vue @@ -43,7 +43,7 @@ rel="nofollow" class="site-star" > - Star 863 + Star 900