📝(all): 补充文档

This commit is contained in:
就眠儀式 2022-06-29 23:42:50 +08:00
parent 79509e99f9
commit f175dc9c03
5 changed files with 18 additions and 56 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.2.4",
"version": "1.2.5-alpha.1",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@ -407,6 +407,17 @@ export default {
:::
::: title Tab Item 插槽
:::
::: table
| 属性 | 描述 | 参数 |
| -------- | -------- | ------ |
| title | 标题 | -- |
:::
::: contributor tab
:::

View File

@ -598,60 +598,6 @@ export default {
:::
::: title 固定边列
:::
::: demo 通过 `even` 属性, 开启斑马条纹, 默认为 false。
<template>
<lay-table :columns="columns1" :dataSource="dataSource1" even></lay-table>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const columns1 = [
{
title:"账户",
width:"200px",
key:"username"
},{
title:"密码",
width: "180px",
key:"password"
},{
title:"年龄",
width: "180px",
key:"age"
},{
title:"备注",
width: "180px",
key:"remark",
ellipsisTooltip: true,
}
]
const dataSource1 = [
{username:"root", password:"root", age:"18", remark: 'layui - vue谐音类 UI) '},
{username:"root", password:"root", age:"18", remark: 'layui - vue谐音类 UI) '},
{username:"woow", password:"woow", age:"20", remark: 'layui - vue谐音类 UI) '},
{username:"woow", password:"woow", age:"20", remark: 'layui - vue谐音类 UI) '},
{username:"woow", password:"woow", age:"20", remark: 'layui - vue谐音类 UI) '}
]
return {
columns1,
dataSource1
}
}
}
</script>
:::
::: title Table 属性
:::

View File

@ -14,7 +14,7 @@
<ul>
<a name="1-2-5"></a>
<li>
<h3>1.2.5 <span class="layui-badge-rim">2022-06-28</span></h3>
<h3>1.2.5 <span class="layui-badge-rim">2022-06-29</span></h3>
<ul>
<li>[新增] table 组件 rowStyle 属性, 自定义行样式, 值为 function(row, rowIndex) 函数或 string 类型。</li>
<li>[新增] table 组件 rowClassName 属性, 自定义行样式, 值为 function(row, rowIndex) 函数或 string 类型。</li>
@ -22,6 +22,7 @@
<li>[新增] table 组件 cellClassName 属性, 自定义单元格样式, 值为 function(row, column, rowIndex, columnIndex) 函数或 string 类型。</li>
<li>[修复] icon-picker 组件在颜色面板中拉动选取颜色,触碰颜色面板边角时,导致色相变为 0。 </li>
<li>[修复] provider 组件切换主题 Embedded Dark Reader cannot access a cross-origin resource。</li>
<li>[修复] switch 组件 onswitch-text 与 unswitch-text 使用文档。</li>
</ul>
</li>
</ul>

View File

@ -322,6 +322,10 @@ const groupImg = function() {
:::
<fieldset class="layui-elem-field layui-field-title">
<legend>通知</legend>
</fieldset>
::: demo 通过 layer.notifiy(options) 创建通知。
<template>