@@ -143,11 +143,11 @@ protected function form($id)
143
143
/**
144
144
* 级联点组件
145
145
* options 设置数据集 多维数组 格式[[key=>key1,val=>value1,nodes=>[...]],...]
146
- * 链表结构数据辅助组装
146
+ * 链表结构数据辅助组装(例)
147
147
* 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();
149
149
* 2.辅助函数dimension 组装后的结构参考$this->cascadeData()的示例数据
150
- * DLPHelper::dimension($select);
150
+ * DLPHelper::dimension($select);
151
151
* checked 已选择 一维数组 值类型integer
152
152
* attribute.width 设置宽度 默认100%
153
153
* attribute.height 设置高度 默认200px
@@ -189,11 +189,11 @@ protected function form($id)
189
189
/**
190
190
* 级联线组件
191
191
* list 设置数据集 多维数组 格式[[key=>key1,val=>value1,nodes=>[...]],...]
192
- * 链表结构数据辅助组装
192
+ * 链表结构数据辅助组装(例)
193
193
* 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();
195
195
* 2.辅助函数dimension 组装后的$select结构参考$this->cascadeExampleData()返回数据
196
- * DLPHelper::dimension($select);
196
+ * DLPHelper::dimension($select);
197
197
* xhr 接口地址 编码参见文件:test\CascadeLineController 路由配置$router->resource('xhr地址', 'CascadeLineController')
198
198
* attribute.width 设置宽度 默认100%
199
199
* attribute.height 设置高度 默认200px
0 commit comments