Commit 390ac49a authored by Akikonata's avatar Akikonata

added expand and collapse

parent 37503c8d
...@@ -82,10 +82,10 @@ ...@@ -82,10 +82,10 @@
//,zIndex : 1000 //,zIndex : 1000
//设置初始加载时展开的层数和子节点数目阈值 //设置初始加载时展开的层数和子节点数目阈值
//默认是全部展开,0表示全部展开 //默认是全部展开,0表示全部展开
, // ,
defaultExpand: { // defaultExpand: {
defaultLayer: 2, // defaultLayer: 2,
defaultSubShow: 5 // defaultSubShow: 5
} // }
}; };
} )(); } )();
\ No newline at end of file
...@@ -510,7 +510,6 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -510,7 +510,6 @@ KityMinder.registerModule( "LayoutDefault", function () {
initStyle: function () { initStyle: function () {
//渲染根节点 //渲染根节点
var _root = minder.getRoot(); var _root = minder.getRoot();
console.log( _root );
var historyPoint = _root.getPoint(); var historyPoint = _root.getPoint();
if ( historyPoint ) historyPoint = JSON.parse( JSON.stringify( historyPoint ) ); if ( historyPoint ) historyPoint = JSON.parse( JSON.stringify( historyPoint ) );
minder.handelNodeInsert( _root ); minder.handelNodeInsert( _root );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment