mirror of
https://gitee.com/layui/layui.git
synced 2025-10-27 11:19:13 +08:00
@@ -58,8 +58,8 @@ treeTable.render({
|
||||
| isParent | 自定义「是否属于父节点」的属性名 | string | `isParent` |
|
||||
| name | 自定义「节点」属性名 | string | `name` |
|
||||
| id | 自定义「节点索引」属性名 | string | `id` |
|
||||
| pid | 自定义「父节点索引」属性名 | string | `pid` |
|
||||
| rootIid | 自定义「根节点索引」属性名 | string | - |
|
||||
| pid | 自定义「父节点索引」属性名 | string | `parentId` |
|
||||
| rootId | 自定义「根节点索引」属性名 | string | - |
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@@ -121,8 +121,8 @@ treeTable.render({
|
||||
| type | 请求的接口类型,设置可缺省同上 | string | - |
|
||||
| contentType | 提交参数的数据类型,设置可缺省同上 | string | - |
|
||||
| headers | 提交请求头,设置可缺省同上 | object | - |
|
||||
| where | 提交参数的数据,设置可缺省同 | object | - |
|
||||
| autoParam | 自动参数,可以根据配置项以及当前节点的数据传参,如: `['type', 'age=age', 'pId=id']` ,那么其请求参数将包含: `{type: '父节点 type', age: '父节点 age', pId: '父节点 id'}` | array | - |
|
||||
| where | 提交参数的数据,设置可缺省同上 | object | - |
|
||||
| autoParam | 自动参数,可以根据配置项以及当前节点的数据传参,如: `['type', 'age=age', 'parentId=id']` ,那么其请求参数将包含: `{type: '父节点 type', age: '父节点 age', parentId: '父节点 id'}` | array | - |
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -36,7 +36,7 @@ toc: true
|
||||
| [treeTable.expandAll(id, expandFlag)](#expandAll) | 展开或关闭全部节点(目前只支持关闭全部)。 |
|
||||
| [treeTable.setRowChecked(id, opts)](#setRowChecked) | 设置行选中状态 |
|
||||
| [treeTable.checkAllNodes(id, checked)](#checkAllNodes) | 全选或取消全选 |
|
||||
| [treeTable.on('event(filter)', callback)](#on) | treeTable 相关事件 |
|
||||
| [treeTable.on(\'event(filter)\', callback)](#on) | treeTable 相关事件 |
|
||||
|
||||
<h3 id="render" lay-toc="{level: 2}">渲染</h3>
|
||||
|
||||
@@ -200,7 +200,7 @@ treeTable.addNodes('test', {
|
||||
| inherit | 子节点是否继承父节点的展开或关闭状态,`expandFlag` 属性必须为 `boolean` 型时才有效。 | boolean | `false` |
|
||||
| callbackFlag | 是否触发事件(`beforeExpand,onExpand`) | boolean | `false` |
|
||||
|
||||
若操作的节点不是一个父节点,则返回 `null` ,否则返回操作之后的折叠状态。
|
||||
若操作的节点不是一个父节点,则返回 `null`,否则返回操作之后的折叠状态。
|
||||
|
||||
```js
|
||||
// 渲染
|
||||
|
||||
Reference in New Issue
Block a user