Skip to content

Commit 28c8b0a

Browse files
authored
Update example.php
1 parent b17b57e commit 28c8b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/example.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ protected function form($id)
140140
* 级联点组件
141141
* options 设置数据集 多维数组 格式[[key=>key1,val=>value1,nodes=>[...]],...]
142142
* 链表结构数据辅助组装
143-
* 1.倒排父节点查询
144-
* $select = Model::orderBy('parent_id','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
143+
* 1.倒排父节点查询 注:id name parent_id 必须命别名 key val par
144+
* $select = Model::orderBy('par','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
145145
* 2.辅助函数dimension 组装后的结构参考$this->cascadeData()的示例数据
146146
* DLPHelper::dimension($select);
147147
* checked 已选择 一维数组 值类型integer
@@ -177,7 +177,7 @@ protected function form($id)
177177
* 级联线组件
178178
* options 设置数据集 多维数组 格式[[key=>key1,val=>value1,nodes=>[...]],...]
179179
* 链表结构数据辅助组装
180-
* 1.倒排父节点查询
180+
* 1.倒排父节点查询 注:id name parent_id 必须命别名 key val par
181181
* $select = Model::orderBy('parent_id','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
182182
* 2.辅助函数dimension 组装后的$select结构参考$this->cascadeExampleData()返回数据
183183
* DLPHelper::dimension($select);

0 commit comments

Comments
 (0)