jQuery MiniUI

 找回密码
 立即注册
查看: 6222|回复: 2
打印 上一主题 下一主题

关于expandOnLoad无效的问题 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2014-1-6 18:35:11 |只看该作者 |倒序浏览
我用的是mini-tree 想加载数据是所有节点不展开 设置expandOnLoad = false无效

<ul id="leftTree" class="mini-tree"
                                url="common/resource.txt" expandOnLoad = "false"
                                style="width:100%;height:100%;padding:5px;" showTreeIcon="true"
                                textField="resName" idField="id" parentField="pid" resultAsTree="false"
                                onnodeclick="onNodeClick">


{"id":6,"indexs":6,"isChild":"0","isSuper":"1","isUsable":"1","pid":-1,"resName":"系统管理","resType":"1"},{"id":7,"indexs":7,"isChild":"1","isSuper":"0","isUsable":"1","pid":6,"resContent":"pages/user_index.html","resName":"用户管理","resType":"1"},{"id":8,"indexs":8,"isChild":"1","isSuper":"0","isUsable":"1","pid":6,"resContent":"pages/role_index.html","resName":"角色管理","resType":"1"},{"id":9,"indexs":9,"isChild":"1","isSuper":"0","isUsable":"1","pid":6,"resContent":"pages/resource_index.htm","resName":"菜单管理","resType":"1"},{"id":14,"indexs":14,"isChild":"1","isSuper":"0","isUsable":"1","pid":12,"resContent":"pages/data_sync_manage_index.htm","resName":"同步管理","resType":"1"}

Rank: 8Rank: 8

沙发
发表于 2014-1-7 09:22:22 |只看该作者

如图,正常的,你更新下MiniUI试试

附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册

Rank: 8Rank: 8

板凳
发表于 2014-1-7 09:25:50 |只看该作者
http://www.miniui.com/demo/#src=tree/tree.html

expandOnLoad默认为false的, 你看我们在线demo就是默认全部折叠的

Archiver|普加软件

GMT+8, 2024-11-22 21:28 , Processed in 1.047657 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部