|
楼主 |
发表于 2017-11-9 10:56:48
|
显示全部楼层
- <div component="$UI/system/components/justep/data/data" autoLoad="true"
- xid="treeData" idColumn="id">
- <column label="主键" name="id" type="Number"/>
- <column label="父节点的ID" name="pId" type="Number"/>
- <column label="节点名称" name="name" type="String"/>
- <column label="节点是否展开" name="open" type="Boolean"/>
- <column label="打开时的图标" name="iconOpen" type="Boolean"/>
- <column label="关闭时的图标" name="iconClose" type="Boolean"/>
- <column label="默认的图标" name="icon" type="Boolean"/>
- <data xid="default1">[ { id:1, pId:0, name:"父节点1", title:"", checked:true, open:true}, { id:11, pId:1, name:"父节点11", title:"", checked:true}, { id:111, pId:11, name:"叶子节点111", title:"", checked:true, isHidden:true}, { id:112, pId:11, name:"叶子节点112", title:""}, { id:113, pId:11, name:"叶子节点113", title:""}, { id:12, pId:1, name:"父节点12", title:"", isHidden:true}, { id:121, pId:12, name:"叶子节点121", title:""}, { id:122, pId:12, name:"叶子节点122", title:"", isHidden:true}, { id:123, pId:12, name:"叶子节点123", title:""}, { id:2, pId:0, name:"父节点2", title:""}, { id:21, pId:2, name:"父节点21", title:"", isHidden:true}, { id:211, pId:21, name:"叶子节点211", title:""}, { id:212, pId:21, name:"叶子节点212", title:""}, { id:213, pId:21, name:"叶子节点213", title:""}, { id:22, pId:2, name:"父节点22", title:""}, { id:221, pId:22, name:"叶子节点221", title:""}, { id:222, pId:22, name:"叶子节点222", title:""}, { id:223, pId:22, name:"叶子节点223", title:""} ]</data>
- </div>
- </div>
- <ul component="$UI/xxx/components/tree/ztree" class="ztree" number="10"
- bind-ref="$model.ratyData.ref("fNumber")" xid="tree1" bind-optionsValue="id" bind-optionsLabel="name"
- bind-labelRef="$model.ratyData.ref("fScore")" onBeforeInit="tree1BeforeInit" bind-data="treeData"
- optionsAutoLoad="true" />
复制代码 |
|