Merge branch 'develop' of https://gitee.com/layui-vue/layui-vue into develop

This commit is contained in:
就眠儀式 2022-03-24 17:53:06 +08:00
commit a51c2b086c
2 changed files with 19 additions and 6 deletions

View File

@ -1,7 +1,16 @@
::: anchor
:::
::: demo
::: title 基本介绍
:::
::: describe 树形组件一般用于展示具有层级关系的数据
:::
::: title 基础使用
:::
::: demo 使用 `lay-tree` 标签, 创建树形组件
<template>
<lay-tree
@ -238,12 +247,13 @@ function handleClick(node) {
::: table
| Name | Description | Accepted Values |
| -------- | -------------- | --------------- |
| -------- |-------------| --------------- |
| id | 唯一值 | - |
| title | 节点名称 | - |
| children | 子节点 | [] |
| disabled | 该节点是否禁用 | false |
| spread | 该节点是否展开 | false |
| accordion | 是否开启展示收起动画 | false |
:::

View File

@ -16,6 +16,9 @@
.layui-form-switch span {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
left: 5px;
top: 3px;
width: 16px;