Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
1024程序员开源挑战赛(10.23-11.14)
提交
89f4976d
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
GitCode
/
1024程序员开源挑战赛(10.23-11.14)
通知
180868
Star
1064
Fork
1042
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
86
列表
看板
标记
里程碑
合并请求
8
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
86
Issue
86
列表
看板
标记
里程碑
合并请求
8
合并请求
8
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
89f4976d
编写于
6月 19, 2017
作者:
Z
ztree
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* [增加] reAsyncChildNodesPromise(parentNode, reloadType, isSilent) 方法支持 ES6 Promise
* [修改] reAsyncChildNodes 方法增加 callback 参数
上级
4856c8ad
变更
16
展开全部
显示空白变更内容
内联
并排
Showing
16 changed file
with
234 addition
and
206 deletion
+234
-206
README.md
README.md
+1
-1
api/API_cn.html
api/API_cn.html
+1
-1
api/API_en.html
api/API_en.html
+1
-1
api/apiCss/jquery.ztree.core.js
api/apiCss/jquery.ztree.core.js
+58
-58
demo/cn/core/expand.html
demo/cn/core/expand.html
+1
-1
js/jquery.ztree.all.js
js/jquery.ztree.all.js
+20
-8
js/jquery.ztree.all.min.js
js/jquery.ztree.all.min.js
+62
-62
js/jquery.ztree.core.js
js/jquery.ztree.core.js
+16
-4
js/jquery.ztree.core.min.js
js/jquery.ztree.core.min.js
+58
-58
js/jquery.ztree.excheck.js
js/jquery.ztree.excheck.js
+2
-2
js/jquery.ztree.excheck.min.js
js/jquery.ztree.excheck.min.js
+2
-2
js/jquery.ztree.exedit.js
js/jquery.ztree.exedit.js
+2
-2
js/jquery.ztree.exedit.min.js
js/jquery.ztree.exedit.min.js
+2
-2
js/jquery.ztree.exhide.js
js/jquery.ztree.exhide.js
+2
-2
js/jquery.ztree.exhide.min.js
js/jquery.ztree.exhide.min.js
+2
-2
log v3.x.txt
log v3.x.txt
+4
-0
未找到文件。
README.md
浏览文件 @
89f4976d
jQuery Tree Plugin ---- zTree
jQuery Tree Plugin ---- zTree
============
============
last verson : 3.5.2
8
last verson : 3.5.2
9
**Donate to zTree**
: http://www.treejs.cn/v3/donate.php
**Donate to zTree**
: http://www.treejs.cn/v3/donate.php
...
...
api/API_cn.html
浏览文件 @
89f4976d
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div
class=
"ieSuggest"
>
浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!
</div>
<div
class=
"ieSuggest"
>
浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!
</div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"header-text"
>
<div
class=
"header-text"
>
<h1><em>
zTree v3.5.2
7
API 文档
</em></h1><p></p>
<h1><em>
zTree v3.5.2
9
API 文档
</em></h1><p></p>
<p>
all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。
</p>
<p>
all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。
</p>
</div>
</div>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
...
...
api/API_en.html
浏览文件 @
89f4976d
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"ieSuggest"
>
If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!
</div>
<div
class=
"ieSuggest"
>
If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!
</div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"header-text"
>
<div
class=
"header-text"
>
<h1><em>
zTree v3.5.2
7
API Document
</em></h1><p></p>
<h1><em>
zTree v3.5.2
9
API Document
</em></h1><p></p>
<p>
all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.
</p>
<p>
all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.
</p>
</div>
</div>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
...
...
api/apiCss/jquery.ztree.core.js
浏览文件 @
89f4976d
此差异已折叠。
点击以展开。
demo/cn/core/expand.html
浏览文件 @
89f4976d
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
{ id:21, pId:2, name:"叶子节点2 - 1", t:"哈哈哈,我老爸NB吧,不能折叠吧?"},
{ id:21, pId:2, name:"叶子节点2 - 1", t:"哈哈哈,我老爸NB吧,不能折叠吧?"},
{ id:22, pId:21, name:"叶子节点2 - 2", t:"哈哈哈,我老爸NB吧,不能折叠吧?"},
{ id:22, pId:21, name:"叶子节点2 - 2", t:"哈哈哈,我老爸NB吧,不能折叠吧?"},
{ id:23, pId:21, name:"叶子节点2 - 3", t:"哈哈哈,我老爸NB吧,不能折叠吧?"},
{ id:23, pId:21, name:"叶子节点2 - 3", t:"哈哈哈,我老爸NB吧,不能折叠吧?"},
{ id:3, pId:2, name:"无法展开的父节点", t:"就凭你也想展开我?难呀...嘿嘿, 除非你用 expandAll 方法", open:false, expand:
tru
e},
{ id:3, pId:2, name:"无法展开的父节点", t:"就凭你也想展开我?难呀...嘿嘿, 除非你用 expandAll 方法", open:false, expand:
fals
e},
{ id:31, pId:3, name:"叶子节点3 - 1", t:"居然让你看到了...莫非你用了全部节点展开?"},
{ id:31, pId:3, name:"叶子节点3 - 1", t:"居然让你看到了...莫非你用了全部节点展开?"},
{ id:32, pId:31, name:"叶子节点3 - 2", t:"居然让你看到了...莫非你用了全部节点展开?"},
{ id:32, pId:31, name:"叶子节点3 - 2", t:"居然让你看到了...莫非你用了全部节点展开?"},
{ id:33, pId:31, name:"叶子节点3 - 3", t:"居然让你看到了...莫非你用了全部节点展开?"},
{ id:33, pId:31, name:"叶子节点3 - 3", t:"居然让你看到了...莫非你用了全部节点展开?"},
...
...
js/jquery.ztree.all.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree core v3.5.2
8
* JQuery zTree core v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
)
{
(
function
(
$
)
{
var
settings
=
{},
roots
=
{},
caches
=
{},
var
settings
=
{},
roots
=
{},
caches
=
{},
...
@@ -1808,7 +1808,19 @@
...
@@ -1808,7 +1808,19 @@
isSelectedNode
:
function
(
node
)
{
isSelectedNode
:
function
(
node
)
{
return
data
.
isSelectedNode
(
setting
,
node
);
return
data
.
isSelectedNode
(
setting
,
node
);
},
},
reAsyncChildNodes
:
function
(
parentNode
,
reloadType
,
isSilent
)
{
reAsyncChildNodesPromise
:
function
(
parentNode
,
reloadType
,
isSilent
)
{
var
promise
=
new
Promise
(
function
(
resolve
,
reject
)
{
try
{
zTreeTools
.
reAsyncChildNodes
(
parentNode
,
reloadType
,
isSilent
,
function
()
{
resolve
(
parentNode
);
});
}
catch
(
e
)
{
reject
(
e
);
}
});
return
promise
;
},
reAsyncChildNodes
:
function
(
parentNode
,
reloadType
,
isSilent
,
callback
)
{
if
(
!
this
.
setting
.
async
.
enable
)
return
;
if
(
!
this
.
setting
.
async
.
enable
)
return
;
var
isRoot
=
!
parentNode
;
var
isRoot
=
!
parentNode
;
if
(
isRoot
)
{
if
(
isRoot
)
{
...
@@ -1828,7 +1840,7 @@
...
@@ -1828,7 +1840,7 @@
ulObj
.
empty
();
ulObj
.
empty
();
}
}
}
}
view
.
asyncNode
(
this
.
setting
,
isRoot
?
null
:
parentNode
,
!!
isSilent
);
view
.
asyncNode
(
this
.
setting
,
isRoot
?
null
:
parentNode
,
!!
isSilent
,
callback
);
},
},
refresh
:
function
()
{
refresh
:
function
()
{
this
.
setting
.
treeObj
.
empty
();
this
.
setting
.
treeObj
.
empty
();
...
@@ -1913,7 +1925,7 @@
...
@@ -1913,7 +1925,7 @@
consts
=
zt
.
consts
;
consts
=
zt
.
consts
;
})(
jQuery
);
})(
jQuery
);
/*
/*
* JQuery zTree excheck v3.5.2
8
* JQuery zTree excheck v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -1922,7 +1934,7 @@
...
@@ -1922,7 +1934,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of excheck
//default consts of excheck
...
@@ -2541,7 +2553,7 @@
...
@@ -2541,7 +2553,7 @@
}
}
})(
jQuery
);
})(
jQuery
);
/*
/*
* JQuery zTree exedit v3.5.2
8
* JQuery zTree exedit v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -2550,7 +2562,7 @@
...
@@ -2550,7 +2562,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of exedit
//default consts of exedit
...
...
js/jquery.ztree.all.min.js
浏览文件 @
89f4976d
此差异已折叠。
点击以展开。
js/jquery.ztree.core.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree core v3.5.2
8
* JQuery zTree core v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
)
{
(
function
(
$
)
{
var
settings
=
{},
roots
=
{},
caches
=
{},
var
settings
=
{},
roots
=
{},
caches
=
{},
...
@@ -1807,7 +1807,19 @@
...
@@ -1807,7 +1807,19 @@
isSelectedNode
:
function
(
node
)
{
isSelectedNode
:
function
(
node
)
{
return
data
.
isSelectedNode
(
setting
,
node
);
return
data
.
isSelectedNode
(
setting
,
node
);
},
},
reAsyncChildNodes
:
function
(
parentNode
,
reloadType
,
isSilent
)
{
reAsyncChildNodesPromise
:
function
(
parentNode
,
reloadType
,
isSilent
)
{
var
promise
=
new
Promise
(
function
(
resolve
,
reject
)
{
try
{
zTreeTools
.
reAsyncChildNodes
(
parentNode
,
reloadType
,
isSilent
,
function
()
{
resolve
(
parentNode
);
});
}
catch
(
e
)
{
reject
(
e
);
}
});
return
promise
;
},
reAsyncChildNodes
:
function
(
parentNode
,
reloadType
,
isSilent
,
callback
)
{
if
(
!
this
.
setting
.
async
.
enable
)
return
;
if
(
!
this
.
setting
.
async
.
enable
)
return
;
var
isRoot
=
!
parentNode
;
var
isRoot
=
!
parentNode
;
if
(
isRoot
)
{
if
(
isRoot
)
{
...
@@ -1827,7 +1839,7 @@
...
@@ -1827,7 +1839,7 @@
ulObj
.
empty
();
ulObj
.
empty
();
}
}
}
}
view
.
asyncNode
(
this
.
setting
,
isRoot
?
null
:
parentNode
,
!!
isSilent
);
view
.
asyncNode
(
this
.
setting
,
isRoot
?
null
:
parentNode
,
!!
isSilent
,
callback
);
},
},
refresh
:
function
()
{
refresh
:
function
()
{
this
.
setting
.
treeObj
.
empty
();
this
.
setting
.
treeObj
.
empty
();
...
...
js/jquery.ztree.core.min.js
浏览文件 @
89f4976d
此差异已折叠。
点击以展开。
js/jquery.ztree.excheck.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree excheck v3.5.2
8
* JQuery zTree excheck v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of excheck
//default consts of excheck
...
...
js/jquery.ztree.excheck.min.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree excheck v3.5.2
8
* JQuery zTree excheck v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
m
){
var
p
,
q
,
r
,
o
=
{
event
:{
CHECK
:
"
ztree_check
"
},
id
:{
CHECK
:
"
_check
"
},
checkbox
:{
STYLE
:
"
checkbox
"
,
DEFAULT
:
"
chk
"
,
DISABLED
:
"
disable
"
,
FALSE
:
"
false
"
,
TRUE
:
"
true
"
,
FULL
:
"
full
"
,
PART
:
"
part
"
,
FOCUS
:
"
focus
"
},
radio
:{
STYLE
:
"
radio
"
,
TYPE_ALL
:
"
all
"
,
TYPE_LEVEL
:
"
level
"
}},
v
=
{
check
:{
enable
:
!
1
,
autoCheckTrigger
:
!
1
,
chkStyle
:
o
.
checkbox
.
STYLE
,
nocheckInherit
:
!
1
,
chkDisabledInherit
:
!
1
,
radioType
:
o
.
radio
.
TYPE_LEVEL
,
chkboxType
:{
Y
:
"
ps
"
,
N
:
"
ps
"
}},
data
:{
key
:{
checked
:
"
checked
"
}},
callback
:{
beforeCheck
:
null
,
onCheck
:
null
}};
p
=
function
(
c
,
(
function
(
m
){
var
p
,
q
,
r
,
o
=
{
event
:{
CHECK
:
"
ztree_check
"
},
id
:{
CHECK
:
"
_check
"
},
checkbox
:{
STYLE
:
"
checkbox
"
,
DEFAULT
:
"
chk
"
,
DISABLED
:
"
disable
"
,
FALSE
:
"
false
"
,
TRUE
:
"
true
"
,
FULL
:
"
full
"
,
PART
:
"
part
"
,
FOCUS
:
"
focus
"
},
radio
:{
STYLE
:
"
radio
"
,
TYPE_ALL
:
"
all
"
,
TYPE_LEVEL
:
"
level
"
}},
v
=
{
check
:{
enable
:
!
1
,
autoCheckTrigger
:
!
1
,
chkStyle
:
o
.
checkbox
.
STYLE
,
nocheckInherit
:
!
1
,
chkDisabledInherit
:
!
1
,
radioType
:
o
.
radio
.
TYPE_LEVEL
,
chkboxType
:{
Y
:
"
ps
"
,
N
:
"
ps
"
}},
data
:{
key
:{
checked
:
"
checked
"
}},
callback
:{
beforeCheck
:
null
,
onCheck
:
null
}};
p
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
b
.
data
.
key
.
checked
;
if
(
k
.
apply
(
b
.
callback
.
beforeCheck
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
!
0
;
a
[
d
]
=!
a
[
d
];
e
.
checkNodeRelation
(
b
,
a
);
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
e
.
setChkClass
(
b
,
d
,
a
);
e
.
repairParentChkClassWithSelf
(
b
,
a
);
b
.
treeObj
.
trigger
(
j
.
event
.
CHECK
,[
c
,
b
.
treeId
,
a
]);
return
!
0
};
q
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
a
.
check_Focus
=!
0
;
e
.
setChkClass
(
b
,
d
,
a
);
return
!
0
};
r
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
b
.
data
.
key
.
checked
;
if
(
k
.
apply
(
b
.
callback
.
beforeCheck
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
!
0
;
a
[
d
]
=!
a
[
d
];
e
.
checkNodeRelation
(
b
,
a
);
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
e
.
setChkClass
(
b
,
d
,
a
);
e
.
repairParentChkClassWithSelf
(
b
,
a
);
b
.
treeObj
.
trigger
(
j
.
event
.
CHECK
,[
c
,
b
.
treeId
,
a
]);
return
!
0
};
q
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
a
.
check_Focus
=!
0
;
e
.
setChkClass
(
b
,
d
,
a
);
return
!
0
};
r
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===
...
...
js/jquery.ztree.exedit.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree exedit v3.5.2
8
* JQuery zTree exedit v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of exedit
//default consts of exedit
...
...
js/jquery.ztree.exedit.min.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree exedit v3.5.2
8
* JQuery zTree exedit v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
v
){
var
J
=
{
event
:{
DRAG
:
"
ztree_drag
"
,
DROP
:
"
ztree_drop
"
,
RENAME
:
"
ztree_rename
"
,
DRAGMOVE
:
"
ztree_dragmove
"
},
id
:{
EDIT
:
"
_edit
"
,
INPUT
:
"
_input
"
,
REMOVE
:
"
_remove
"
},
move
:{
TYPE_INNER
:
"
inner
"
,
TYPE_PREV
:
"
prev
"
,
TYPE_NEXT
:
"
next
"
},
node
:{
CURSELECTED_EDIT
:
"
curSelectedNode_Edit
"
,
TMPTARGET_TREE
:
"
tmpTargetzTree
"
,
TMPTARGET_NODE
:
"
tmpTargetNode
"
}},
x
=
{
onHoverOverNode
:
function
(
b
,
a
){
var
c
=
m
.
getSetting
(
b
.
data
.
treeId
),
d
=
m
.
getRoot
(
c
);
if
(
d
.
curHoverNode
!=
a
)
x
.
onHoverOutNode
(
b
);
d
.
curHoverNode
=
a
;
f
.
addHoverDom
(
c
,
a
)},
onHoverOutNode
:
function
(
b
){
var
b
=
(
function
(
v
){
var
J
=
{
event
:{
DRAG
:
"
ztree_drag
"
,
DROP
:
"
ztree_drop
"
,
RENAME
:
"
ztree_rename
"
,
DRAGMOVE
:
"
ztree_dragmove
"
},
id
:{
EDIT
:
"
_edit
"
,
INPUT
:
"
_input
"
,
REMOVE
:
"
_remove
"
},
move
:{
TYPE_INNER
:
"
inner
"
,
TYPE_PREV
:
"
prev
"
,
TYPE_NEXT
:
"
next
"
},
node
:{
CURSELECTED_EDIT
:
"
curSelectedNode_Edit
"
,
TMPTARGET_TREE
:
"
tmpTargetzTree
"
,
TMPTARGET_NODE
:
"
tmpTargetNode
"
}},
x
=
{
onHoverOverNode
:
function
(
b
,
a
){
var
c
=
m
.
getSetting
(
b
.
data
.
treeId
),
d
=
m
.
getRoot
(
c
);
if
(
d
.
curHoverNode
!=
a
)
x
.
onHoverOutNode
(
b
);
d
.
curHoverNode
=
a
;
f
.
addHoverDom
(
c
,
a
)},
onHoverOutNode
:
function
(
b
){
var
b
=
m
.
getSetting
(
b
.
data
.
treeId
),
a
=
m
.
getRoot
(
b
);
if
(
a
.
curHoverNode
&&!
m
.
isSelectedNode
(
b
,
a
.
curHoverNode
))
f
.
removeTreeDom
(
b
,
a
.
curHoverNode
),
a
.
curHoverNode
=
null
},
onMousedownNode
:
function
(
b
,
a
){
function
c
(
b
){
if
(
B
.
dragFlag
==
0
&&
Math
.
abs
(
O
-
b
.
clientX
)
<
e
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
P
-
b
.
clientY
)
<
e
.
edit
.
drag
.
minMoveSize
)
return
!
0
;
var
a
,
c
,
n
,
k
,
i
;
i
=
e
.
data
.
key
.
children
;
M
.
css
(
"
cursor
"
,
"
pointer
"
);
if
(
B
.
dragFlag
==
0
){
if
(
g
.
apply
(
e
.
callback
.
beforeDrag
,[
e
.
treeId
,
l
],
!
0
)
==!
1
)
return
r
(
b
),
!
0
;
for
(
a
=
0
,
c
=
l
.
length
;
a
<
c
;
a
++
){
if
(
a
==
0
)
B
.
dragNodeShowBefore
=
m
.
getSetting
(
b
.
data
.
treeId
),
a
=
m
.
getRoot
(
b
);
if
(
a
.
curHoverNode
&&!
m
.
isSelectedNode
(
b
,
a
.
curHoverNode
))
f
.
removeTreeDom
(
b
,
a
.
curHoverNode
),
a
.
curHoverNode
=
null
},
onMousedownNode
:
function
(
b
,
a
){
function
c
(
b
){
if
(
B
.
dragFlag
==
0
&&
Math
.
abs
(
O
-
b
.
clientX
)
<
e
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
P
-
b
.
clientY
)
<
e
.
edit
.
drag
.
minMoveSize
)
return
!
0
;
var
a
,
c
,
n
,
k
,
i
;
i
=
e
.
data
.
key
.
children
;
M
.
css
(
"
cursor
"
,
"
pointer
"
);
if
(
B
.
dragFlag
==
0
){
if
(
g
.
apply
(
e
.
callback
.
beforeDrag
,[
e
.
treeId
,
l
],
!
0
)
==!
1
)
return
r
(
b
),
!
0
;
for
(
a
=
0
,
c
=
l
.
length
;
a
<
c
;
a
++
){
if
(
a
==
0
)
B
.
dragNodeShowBefore
=
...
...
js/jquery.ztree.exhide.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree exHideNodes v3.5.2
8
* JQuery zTree exHideNodes v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
$
){
(
function
(
$
){
//default init node of exLib
//default init node of exLib
...
...
js/jquery.ztree.exhide.min.js
浏览文件 @
89f4976d
/*
/*
* JQuery zTree exHideNodes v3.5.2
8
* JQuery zTree exHideNodes v3.5.2
9
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2017-0
1-20
* Date: 2017-0
6-19
*/
*/
(
function
(
i
){
i
.
extend
(
!
0
,
i
.
fn
.
zTree
.
_z
,{
view
:{
clearOldFirstNode
:
function
(
c
,
a
){
for
(
var
b
=
a
.
getNextNode
();
b
;){
if
(
b
.
isFirstNode
){
b
.
isFirstNode
=!
1
;
d
.
setNodeLineIcos
(
c
,
b
);
break
}
if
(
b
.
isLastNode
)
break
;
b
=
b
.
getNextNode
()}},
clearOldLastNode
:
function
(
c
,
a
,
b
){
for
(
a
=
a
.
getPreNode
();
a
;){
if
(
a
.
isLastNode
){
a
.
isLastNode
=!
1
;
b
&&
d
.
setNodeLineIcos
(
c
,
a
);
break
}
if
(
a
.
isFirstNode
)
break
;
a
=
a
.
getPreNode
()}},
makeDOMNodeMainBefore
:
function
(
c
,
a
,
b
){
c
.
push
(
"
<li
"
,
b
.
isHidden
?
"
style='display:none;'
"
:
""
,
"
id='
"
,
b
.
tId
,
"
' class='
"
,
l
.
className
.
LEVEL
,
(
function
(
i
){
i
.
extend
(
!
0
,
i
.
fn
.
zTree
.
_z
,{
view
:{
clearOldFirstNode
:
function
(
c
,
a
){
for
(
var
b
=
a
.
getNextNode
();
b
;){
if
(
b
.
isFirstNode
){
b
.
isFirstNode
=!
1
;
d
.
setNodeLineIcos
(
c
,
b
);
break
}
if
(
b
.
isLastNode
)
break
;
b
=
b
.
getNextNode
()}},
clearOldLastNode
:
function
(
c
,
a
,
b
){
for
(
a
=
a
.
getPreNode
();
a
;){
if
(
a
.
isLastNode
){
a
.
isLastNode
=!
1
;
b
&&
d
.
setNodeLineIcos
(
c
,
a
);
break
}
if
(
a
.
isFirstNode
)
break
;
a
=
a
.
getPreNode
()}},
makeDOMNodeMainBefore
:
function
(
c
,
a
,
b
){
c
.
push
(
"
<li
"
,
b
.
isHidden
?
"
style='display:none;'
"
:
""
,
"
id='
"
,
b
.
tId
,
"
' class='
"
,
l
.
className
.
LEVEL
,
b
.
level
,
"
' tabindex='0' hidefocus='true' treenode>
"
)},
showNode
:
function
(
c
,
a
){
a
.
isHidden
=!
1
;
f
.
initShowForExCheck
(
c
,
a
);
j
(
a
,
c
).
show
()},
showNodes
:
function
(
c
,
a
,
b
){
if
(
a
&&
a
.
length
!=
0
){
var
e
=
{},
g
,
k
;
for
(
g
=
0
,
k
=
a
.
length
;
g
<
k
;
g
++
){
var
h
=
a
[
g
];
if
(
!
e
[
h
.
parentTId
]){
var
i
=
h
.
getParentNode
();
e
[
h
.
parentTId
]
=
i
===
null
?
f
.
getRoot
(
c
):
h
.
getParentNode
()}
d
.
showNode
(
c
,
h
,
b
)}
for
(
var
j
in
e
)
a
=
e
[
j
][
c
.
data
.
key
.
children
],
d
.
setFirstNodeForShow
(
c
,
a
),
d
.
setLastNodeForShow
(
c
,
a
)}},
hideNode
:
function
(
c
,
a
){
a
.
isHidden
=!
0
;
a
.
isFirstNode
=!
1
;
a
.
isLastNode
=
b
.
level
,
"
' tabindex='0' hidefocus='true' treenode>
"
)},
showNode
:
function
(
c
,
a
){
a
.
isHidden
=!
1
;
f
.
initShowForExCheck
(
c
,
a
);
j
(
a
,
c
).
show
()},
showNodes
:
function
(
c
,
a
,
b
){
if
(
a
&&
a
.
length
!=
0
){
var
e
=
{},
g
,
k
;
for
(
g
=
0
,
k
=
a
.
length
;
g
<
k
;
g
++
){
var
h
=
a
[
g
];
if
(
!
e
[
h
.
parentTId
]){
var
i
=
h
.
getParentNode
();
e
[
h
.
parentTId
]
=
i
===
null
?
f
.
getRoot
(
c
):
h
.
getParentNode
()}
d
.
showNode
(
c
,
h
,
b
)}
for
(
var
j
in
e
)
a
=
e
[
j
][
c
.
data
.
key
.
children
],
d
.
setFirstNodeForShow
(
c
,
a
),
d
.
setLastNodeForShow
(
c
,
a
)}},
hideNode
:
function
(
c
,
a
){
a
.
isHidden
=!
0
;
a
.
isFirstNode
=!
1
;
a
.
isLastNode
=
...
...
log v3.x.txt
浏览文件 @
89f4976d
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
</font>
</font>
*2017.06.19* v3.5.29
* [增加] reAsyncChildNodesPromise(parentNode, reloadType, isSilent) 方法支持 ES6 Promise
* [修改] reAsyncChildNodes 方法增加 callback 参数
*2017.01.20* v3.5.28
*2017.01.20* v3.5.28
* [修改] scrollIntoViewIfNeeded 方法对 IE8 的兼容
* [修改] scrollIntoViewIfNeeded 方法对 IE8 的兼容
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录