提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.sys.modular.system.factory; |
懒 |
2 |
|
|
3 |
import cn.stylefeng.guns.base.pojo.node.LayuiTreeNode; |
|
4 |
|
|
5 |
/** |
|
6 |
* 封装layui属性组件数据 |
|
7 |
* |
|
8 |
* @author stylefeng |
|
9 |
* @Date 2019-8-26 14:01 |
|
10 |
*/ |
|
11 |
public class LayuiTreeFactory { |
|
12 |
|
|
13 |
/** |
|
14 |
* 生成layuiTree根节点 |
|
15 |
* |
|
16 |
* @author stylefeng |
|
17 |
* @Date 2019-8-26 14:21 |
|
18 |
*/ |
|
19 |
public static LayuiTreeNode createRoot() { |
|
20 |
LayuiTreeNode treeNode = new LayuiTreeNode(); |
|
21 |
treeNode.setChecked(true); |
|
22 |
treeNode.setId(0L); |
|
23 |
treeNode.setTitle("顶级"); |
|
24 |
treeNode.setSpread(true); |
|
25 |
treeNode.setPid(-1L); |
|
26 |
return treeNode; |
|
27 |
} |
|
28 |
|
|
29 |
} |