fix(tree): document
This commit is contained in:
parent
c66657ba37
commit
9e4f2918d5
@ -254,7 +254,7 @@ export default {
|
||||
| zIndex | 自定义层级 | -- |
|
||||
| type | 类型 | `1: component` `2: iframe` |
|
||||
| closeBtn | 显示关闭 | true |
|
||||
| btn | 按钮 | |
|
||||
| btn | 按钮 | |
|
||||
| btnAlign | 按钮布局 | `l` `r` `c` |
|
||||
|
||||
:::
|
||||
:::
|
||||
|
@ -234,12 +234,12 @@ function handleClick(node) {
|
||||
::: table
|
||||
|
||||
| Name | Description | Accepted Values |
|
||||
| -------- | -------------- | --------------- | --- |
|
||||
| -------- | -------------- | --------------- |
|
||||
| id | 唯一值 | - |
|
||||
| title | 节点名称 | - |
|
||||
| children | 子节点 | [] |
|
||||
| disabled | 该节点是否禁用 | false |
|
||||
| spread | 该节点是否展开 | false | - |
|
||||
| spread | 该节点是否展开 | false |
|
||||
|
||||
:::
|
||||
|
||||
|
@ -65,7 +65,11 @@
|
||||
@click="closeHandle"
|
||||
></a
|
||||
></span>
|
||||
<div v-if="btn && btn.length > 0" class="layui-layer-btn" :class="['layui-layer-btn-' + btnAlign]">
|
||||
<div
|
||||
v-if="btn && btn.length > 0"
|
||||
class="layui-layer-btn"
|
||||
:class="['layui-layer-btn-' + btnAlign]"
|
||||
>
|
||||
<template v-for="(b, index) in btn" :key="index">
|
||||
<a :class="['layui-layer-btn' + index]" @click="b.callback">{{
|
||||
b.text
|
||||
@ -130,7 +134,7 @@ const props = withDefaults(
|
||||
shade: false,
|
||||
shadeClose: true,
|
||||
closeBtn: true,
|
||||
btnAlign: 'l'
|
||||
btnAlign: 'l',
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user