From edd0f881a0fc121d82957d1570f48a2cd7ca896c Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Wed, 3 May 2023 17:12:03 +0800 Subject: [PATCH] =?UTF-8?q?treeTable=20=E6=96=87=E6=A1=A3=20`tree.customNa?= =?UTF-8?q?me.pid`=20=E9=A2=84=E8=AE=BE=E5=80=BC=E9=94=99=E8=AF=AF?= =?UTF-8?q?=EF=BC=8C`pid`=20->=20`parentId`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/treeTable/detail/options.md | 6 +++--- docs/treeTable/index.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/treeTable/detail/options.md b/docs/treeTable/detail/options.md index 01403779..dfaa89ce 100644 --- a/docs/treeTable/detail/options.md +++ b/docs/treeTable/detail/options.md @@ -58,7 +58,7 @@ treeTable.render({ | isParent | 自定义「是否属于父节点」的属性名 | string | `isParent` | | name | 自定义「节点」属性名 | string | `name` | | id | 自定义「节点索引」属性名 | string | `id` | -| pid | 自定义「父节点索引」属性名 | string | `pid` | +| pid | 自定义「父节点索引」属性名 | string | `parentId` | | rootId | 自定义「根节点索引」属性名 | string | - | @@ -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 | - | diff --git a/docs/treeTable/index.md b/docs/treeTable/index.md index 04fe4d53..2dd98ca3 100644 --- a/docs/treeTable/index.md +++ b/docs/treeTable/index.md @@ -200,7 +200,7 @@ treeTable.addNodes('test', { | inherit | 子节点是否继承父节点的展开或关闭状态,`expandFlag` 属性必须为 `boolean` 型时才有效。 | boolean | `false` | | callbackFlag | 是否触发事件(`beforeExpand,onExpand`) | boolean | `false` | -若操作的节点不是一个父节点,则返回 `null` ,否则返回操作之后的折叠状态。 +若操作的节点不是一个父节点,则返回 `null`,否则返回操作之后的折叠状态。 ```js // 渲染