Skip to content

Commit 06ad1f2

Browse files
author
hikki
committed
v3.7
1 parent 56cf019 commit 06ad1f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/example.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ protected function form($id)
143143
/**
144144
* 级联点组件
145145
* options 设置数据集 多维数组 格式[[key=>key1,val=>value1,nodes=>[...]],...]
146-
* 链表结构数据辅助组装
146+
* 链表结构数据辅助组装(例)
147147
* 1.倒排父节点查询 注:id name parent_id 必须命别名 key val par
148-
* $select = Model::orderBy('par','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
148+
* $select = Model::orderBy('par','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
149149
* 2.辅助函数dimension 组装后的结构参考$this->cascadeData()的示例数据
150-
* DLPHelper::dimension($select);
150+
* DLPHelper::dimension($select);
151151
* checked 已选择 一维数组 值类型integer
152152
* attribute.width 设置宽度 默认100%
153153
* attribute.height 设置高度 默认200px
@@ -189,11 +189,11 @@ protected function form($id)
189189
/**
190190
* 级联线组件
191191
* list 设置数据集 多维数组 格式[[key=>key1,val=>value1,nodes=>[...]],...]
192-
* 链表结构数据辅助组装
192+
* 链表结构数据辅助组装(例)
193193
* 1.倒排父节点查询 注:id name parent_id 必须命别名 key val par
194-
* $select = Model::orderBy('parent_id','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
194+
* $select = Model::orderBy('parent_id','DESC')->select('id as key','name as val','parent_id as par')->get()->toArray();
195195
* 2.辅助函数dimension 组装后的$select结构参考$this->cascadeExampleData()返回数据
196-
* DLPHelper::dimension($select);
196+
* DLPHelper::dimension($select);
197197
* xhr 接口地址 编码参见文件:test\CascadeLineController 路由配置$router->resource('xhr地址', 'CascadeLineController')
198198
* attribute.width 设置宽度 默认100%
199199
* attribute.height 设置高度 默认200px

0 commit comments

Comments
 (0)