📝: 更新文档

This commit is contained in:
就眠儀式 2022-05-14 23:12:40 +08:00
parent 341d1cd82d
commit f972c94f55
6 changed files with 9 additions and 10 deletions

View File

@ -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",

View File

@ -8,6 +8,7 @@ export default {
import { computed, inject } from "vue";
import "./index.less";
export interface LayCheckboxProps {
name?: string;
skin?: string;

View File

@ -557,7 +557,6 @@ export default {
| level | 菜单层级 | `true` `false` |
| collapse | 折叠状态 | `true` `false` |
| collapse-transition | 折叠动画 | `true` `false` |
| child-spacing | 子菜单增加间距 | `true` `false` |
:::

View File

@ -14,12 +14,13 @@
<ul>
<a name="1-0-8"></a>
<li>
<h3>1.0.8 <span class="layui-badge-rim">2022-05-11</span></h3>
<h3>1.0.8 <span class="layui-badge-rim">2022-05-14</span></h3>
<ul>
<li>[重构] table 组件 columns 渲染</li>
<li>[新增] resolver 按需解析器</li>
<li>[新增] sub-menu 组件 expandIcon 插槽。</li>
<li>[修复] table 组件 datasource 缺失属性 column 错位。</li>
<li>[修复] fullscreen 组件按 F11 进入全屏, 退出全屏不生效。</li>
<li>[重构] table 组件 columns 渲染。</li>
</ul>
</li>
</ul>

View File

@ -42,7 +42,7 @@ createApp(App).use(Layui).mount('#app')
::: describe 以上代码便完成了 layui-vue 的引入。需要注意的是,样式文件需要单独引入。
:::
::: title 按需引入(自动)
::: title 自动按需
:::
::: describe 安装 <a href="https://github.com/antfu/unplugin-vue-components" target="_blank" style="color:#5FB878"><code>unplugin-vue-components</code></a><a href="https://github.com/antfu/unplugin-auto-import" target="_blank" style="color:#5FB878"><code>unplugin-auto-import</code></a> 插件,插件会自动解析模板中用到的组件,并引入组件和样式。
@ -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 需要手动引入组件样式

View File

@ -43,7 +43,7 @@
rel="nofollow"
class="site-star"
>
<i class="layui-icon"></i> Star <cite id="getStars">863</cite>
<i class="layui-icon"></i> Star <cite id="getStars">900</cite>
</a>
<a
href="https://gitee.com/layui-vue"