Skip to content

Commit 08b7a27

Browse files
author
hikki
committed
7.3
1 parent 61a7312 commit 08b7a27

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/example.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,15 @@ public function blank()
213213
return $W->form();
214214
}
215215

216+
/**
217+
* 级联线组件
218+
* 链表数据结构 [[key=>key1,val=>value1,nodes=>[...]],...]
219+
* 链表结构数据辅助组装(例)
220+
* 1.倒排父节点查询 注:id name parent_id 必须命别名 key val par
221+
* $select = Model::orderBy('parent_id','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
222+
* 2.辅助函数dimension 组装后的$select结构参考$this->cascadeExampleData()返回数据
223+
* Assistant::dimension($select);
224+
*/
216225
private function cascadeExampleData()
217226
{
218227
return [

0 commit comments

Comments
 (0)