修改EsayUi 中 tree 的原有样式,变为according 之类的样式 ,且子菜单显示在右侧


easyUi 中 tree 框架的属性有:

修改原有展开样式代码如下:

 1 onExpand:function(node,param){
 2             $(this).children("li").each(function(){
 3                 if($(this).children("ul").length>0){
 4                     $(this).children("ul").hide();
 5                     $(this).children("div.tree-node").find(".tree-hit").addClass("tree-collapsed").removeClass("tree-expanded");
 6                     $(this).children("div.tree-node").find(".tree-icon").removeClass("tree-folder-open");
 7                     if($(this).children("div.tree-node").find(".tree-title").text()==node.text){
 8                         $(this).children("ul").show();
 9                         $(this).children("ul").css({'position':'absolute','top':'20px','left':'60px','width':'300px','height':'650px','overflow-y':'auto'})
10                         $(this).children("div.tree-node").find(".tree-hit").addClass("tree-expanded").removeClass("tree-collapsed");
11                         $(this).children("div.tree-node").find(".tree-icon").addClass("tree-folder-open");
12                     }
13                 }
14             });
15 }

优质内容筛选与推荐>>
1、使用file_get_contents提交http post
2、前端代码构建工具初识
3、p1164小A点菜
4、常用Eclipse的快捷键
5、个人项目博客----移山小分队----02


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号