diff options
Diffstat (limited to 'common/src/main/webapp/thirdparty/zTree/api/cn')
162 files changed, 5390 insertions, 0 deletions
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html new file mode 100644 index 0000000..7af3e40 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html @@ -0,0 +1,13 @@ +<div class="apiDetail"> +<div> + <h2><span>JSON</span><span class="path">$.fn.zTree.</span>_z</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。 </p> + <p class="highlight_red">如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。</p> + </div> + </div> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html new file mode 100644 index 0000000..7105807 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>destroy</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>从 zTree v3.4 开始提供销毁 zTree 的方法。 </p> + <p>1、用此方法可以销毁指定 treeId 的 zTree,也可以销毁当前页面全部的 zTree。</p> + <p class="highlight_red">2、销毁指定 treeId 的 zTree 也可以使用 zTreeObj.destroy() 方法。</p> + <p class="highlight_red">3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>zTree 的 DOM 容器的 id</p> + <p class="highlight_red">省略 treeId,表示销毁当前页面全部的 zTree</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 销毁 id 为 "treeDemo" 的 zTree</h4> + <pre xmlns=""><code>$.fn.zTree.destroy("treeDemo");</code></pre> + <h4>2. 销毁全部 的 zTree</h4> + <pre xmlns=""><code>$.fn.zTree.destroy();</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html new file mode 100644 index 0000000..b1d1db4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>getZTreeObj</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree v3.x 专门提供的根据 treeId 获取 zTree 对象的方法。 </p> + <p class="highlight_red">必须在初始化 zTree 以后才可以使用此方法。</p> + <p>有了这个方法,用户不再需要自己设定全局变量来保存 zTree 初始化后得到的对象了,而且在所有回调函数中全都会返回 treeId 属性,用户可以随时使用此方法获取需要进行操作的 zTree 对象</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>zTree 的 DOM 容器的 id</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取 id 为 tree 的 zTree 对象</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html new file mode 100644 index 0000000..8db6d2c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html @@ -0,0 +1,74 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(obj, zSetting, zNodes)</span><span class="path">$.fn.zTree.</span>init</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 初始化方法,创建 zTree 必须使用此方法</p> + <p>1、页面需要进行 W3C 申明,例如:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">。</p> + <p>2、需要首先加载 jquery-1.4.2.js 或其他更高版本的 jQuery 。</p> + <p>3、需要加载 jquery-ztree.core-3.0.js,如果需要用到 编辑功能 或 checkbox / radio 还需要分别加载 jquery-ztree.exedit-3.0.js 和 jquery-ztree.excheck-3.0.js 。</p> + <p>4、需要加载 zTreeStyle.css 以及 zTreeStyle 目录下的 img 文件。</p> + <p>5、如果需要使用自定义图标请参考相应的Demo。</p> + <p>6、请注意设置 zTree 的容器样式 class="ztree",其中 "ztree" 这个 className,可以根据需要随意修改,别忘了修改 css 中对应名字就是了,对于容器如果需要增加其他特殊样式,可根据自己的需要进行修改。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>obj</b><span>jQuery Object</span></h4> + <p>用于展现 zTree 的 DOM 容器</p> + <h4 class="topLine"><b>zSetting</b><span>JSON</span></h4> + <p>zTree 的配置数据,具体请参考 “setting 配置详解”中的各个属性详细说明</p> + <h4 class="topLine"><b>zNodes</b><span>Array(JSON) / JSON</span></h4> + <p>zTree 的节点数据,具体请参考 “treeNode 节点数据详解”中的各个属性详细说明</p> + <p class="highlight_red">1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中</p> + <p class="highlight_red">2、如果需要异步加载根节点,可以设置为 null 或 [ ]</p> + <p class="highlight_red">3、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象</p> + <p class="highlight_red">如果不需要自行设定全局变量保存,可以利用 $.fn.zTree.getZTreeObj 方法随时获取</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 简单创建 zTree 演示</h4> + <pre xmlns=""><code><!DOCTYPE html> +<HTML> + <HEAD> + <TITLE> ZTREE DEMO </TITLE> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css"> + <script type="text/javascript" src="jquery-1.4.2.js"></script> + <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script> +<!-- + <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script> + <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script> +--> + <SCRIPT type="text/javascript" > + var zTreeObj, + setting = { + view: { + selectedMulti: false + } + }, + zTreeNodes = [ + {"name":"网站导航", open:true, children: [ + { "name":"google", "url":"http://g.cn", "target":"_blank"}, + { "name":"baidu", "url":"http://baidu.com", "target":"_blank"}, + { "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"} + ] + } + ]; + + $(document).ready(function(){ + zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes); + + }); + </SCRIPT> + </HEAD> + +<BODY> +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul> + </BODY> +</HTML></code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html new file mode 100644 index 0000000..cf0f4d2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html @@ -0,0 +1,39 @@ +<div class="apiDetail"> +<div> + <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>异步加载时需要自动提交父节点属性的参数。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:[ ]</p> + </div> + </div> + <h3>Array(String) 格式说明</h3> + <div class="desc"> + <p>1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]</p> + <p>2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 id 属性为自动提交的参数</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + url: "http://host/getNode.php", + autoParam: ["id"] + } +}; +假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1 +......</code></pre> + <h4>2. 设置 id 属性作为 zId 成为自动提交的参数</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + url: "http://host/getNode.php", + autoParam: ["id=zId"] + } +}; +假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1 +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html new file mode 100644 index 0000000..db0c92f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.async.</span>contentType</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>Ajax 提交参数的数据类型。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:"application/x-www-form-urlencoded"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p> contentType = "application/x-www-form-urlencoded" 可以满足绝大部分请求,按照标准的 Form 格式提交参数</p> + <p> contentType = "application/json" 可以满足 .Net 的编程需要,按照 JSON 格式提交参数</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 Ajax 提交参数的数据类型为 JSON 格式</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + contentType: "application/json", + url: "http://host/getNode.php", + autoParam: ["id", "name"] + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html new file mode 100644 index 0000000..f174bf0 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, parentNode, responseData)</span><span class="path">setting.async.</span>dataFilter</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于对 Ajax 返回数据进行预处理的函数。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> + <p>进行异步加载的父节点 JSON 数据对象</p> + <p class="highlight_red">对根进行异步加载时,parentNode = null</p> + <h4 class="topLine"><b>responseData</b><span>Array(JSON) / JSON / String</span></h4> + <p>异步加载获取到的数据转换后的 Array(JSON) / JSON / String 数据对象</p> + <p class="highlight_red">v3.4开始 支持 XML 数据格式的 String</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON) / JSON</span></h4> + <p>返回值是 zTree 支持的JSON 数据结构即可。</p> + <p class="highlight_red">v3.x 支持单个 JSON 节点数据进行加载</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 修改异步获取到的节点name属性</h4> + <pre xmlns=""><code>function ajaxDataFilter(treeId, parentNode, responseData) { + if (responseData) { + for(var i =0; i < responseData.length; i++) { + responseData[i].name += "_filter"; + } + } + return responseData; +}; +var setting = { + async: { + enable: true, + url: "http://host/getNode.php", + dataFilter: ajaxDataFilter + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html new file mode 100644 index 0000000..6d639b7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.async.</span>dataType</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>Ajax 获取的数据类型。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:"text"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p> dataType = "text" 可以满足绝大部分请求</p> + <p class="highlight_red">其余 dataType 类型请参考 jQuery ajax 中的 dataType 参数</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 Ajax 获取的数据类型为 纯文本</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + dataType: "text", + url: "http://host/getNode.php", + autoParam: ["id", "name"] + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html new file mode 100644 index 0000000..9079ae1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html @@ -0,0 +1,30 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.async.</span>enable</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 是否开启异步加载模式</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示 开启 异步加载模式</p> + <p> false 表示 关闭 异步加载模式</p> + <p class="highlight_red">如果设置为 true,请务必设置 setting.async 内的其它参数。</p> + <p class="highlight_red">如果需要根节点也异步加载,初始化时 treeNodes 参数设置为 null 即可。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要开启异步加载模式</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + url: "http://host/getNode.php", + autoParam: ["id", "name"] + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html new file mode 100644 index 0000000..981715f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html @@ -0,0 +1,40 @@ +<div class="apiDetail"> +<div> + <h2><span>Array(String) / JSON</span><span class="path">setting.async.</span>otherParam</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>Ajax 请求提交的静态参数键值对。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:[ ]</p> + </div> + </div> + <h3>Array(String) 格式说明</h3> + <div class="desc"> + <p>可以为空[ ],如果有 key,则必须存在 value。 例如:[key, value]</p> + </div> + <h3>JSON 格式说明</h3> + <div class="desc"> + <p>直接用 JSON 格式制作键值对,例如:{ key1:value1, key2:value2 }</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 Array(String) 格式的参数</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + url: "http://host/getNode.php", + otherParam: ["id", "1", "name", "test"] + } +}; +进行异步加载时,将提交参数 id=1&name=test</code></pre> + <h4>2. 设置 JSON 格式的参数</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + url: "http://host/getNode.php", + otherParam: { "id":"1", "name":"test"} + } +}; +进行异步加载时,将提交参数 id=1&name=test</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html new file mode 100644 index 0000000..20d9a6b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html @@ -0,0 +1,30 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.async.</span>type</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>Ajax 的 http 请求模式。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:"post"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p> type = "post" 表示异步加载采用 post 方法请求</p> + <p> type = "get" 表示异步加载采用 get 方法请求</p> + <p class="highlight_red">对应于 jQuery ajax 中的 type 参数</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置使用 get 方式请求数据</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + type: "get", + url: "http://host/getNode.php", + autoParam: ["id", "name"] + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html new file mode 100644 index 0000000..a5209af --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html @@ -0,0 +1,50 @@ +<div class="apiDetail"> +<div> + <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.async.</span>url</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>Ajax 获取数据的 URL 地址。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p> + <p>默认值:""</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>设置固定的异步加载 url 字符串,请注意地址的路径,确保页面能正常加载</p> + <p class="highlight_red">url 内也可以带参数,这些参数就只能是通过 get 方式提交了,并且请注意进行转码</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要异步加载子节点的的父节点 JSON 数据对象</p> + <p class="highlight_red">针对根进行异步加载时,treeNode = null</p> + <h4 class="topLine"><b>返回值</b><span>String</span></h4> + <p>返回值同 String 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置异步获取节点的 URL 为 nodes.php</h4> + <pre xmlns=""><code>var setting = { + async: { + enable: true, + url: "nodes.php", + autoParam: ["id", "name"] + } +}; +......</code></pre> + <h4>2. 设置异步获取节点的 URL 为 function 动态获取</h4> + <pre xmlns=""><code>function getAsyncUrl(treeId, treeNode) { + return treeNode.isParent ? "nodes1.php" : "nodes2.php"; +}; +var setting = { + async: { + enable: true, + url: getAsyncUrl, + autoParam: ["id", "name"] + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html new file mode 100644 index 0000000..70ba0fc --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeAsync</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获异步加载之前的事件回调函数,zTree 根据返回值确定是否允许进行异步加载</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>进行异步加载的父节点 JSON 数据对象</p> + <p class="highlight_red">针对根进行异步加载时,treeNode = null</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将不进行异步加载,也无法触发 onAsyncSuccess / onAsyncError 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止 id 为 1 的父节点进行异步加载操作</h4> + <pre xmlns=""><code>function zTreeBeforeAsync(treeId, treeNode) { + return (treeNode.id !== 1); +}; +var setting = { + callback: { + beforeAsync: zTreeBeforeAsync + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html new file mode 100644 index 0000000..a0e1f42 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCheck</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 勾选 或 取消勾选 之前的事件回调函数,并且根据返回值确定是否允许 勾选 或 取消勾选 </p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>进行 勾选 或 取消勾选 的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,将不会改变勾选状态,并且无法触发 onCheck 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止所有勾选操作,保持初始化的勾选状态</h4> + <pre xmlns=""><code>function zTreeBeforeCheck(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeCheck: zTreeBeforeCheck + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html new file mode 100644 index 0000000..6efe928 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>beforeClick</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获单击节点之前的事件回调函数,并且根据返回值确定是否允许单击操作</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>被单击的节点 JSON 数据对象</p> + <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4> + <p>节点被点击后的选中操作类型,详细看下表</p> + <table width="100%" border="0" cellspacing="1" cellpadding="0"> + <thead><tr><td>clickFlag</td><td title="是否允许多点选中">selectedMulti</td><td title="是否按下 Ctrl 或 Cmd 键">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="节点当前选择状态">isSelected</td><td>选中操作</td></tr></thead> + <tbody> + <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>普通选中</td></tr> + <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>普通选中</td></tr> + <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>追加选中</td></tr> + <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>取消选中</td></tr> + <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>普通选中</td></tr> + <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>普通选中</td></tr> + <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>普通选中</td></tr> + <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>取消选中</td></tr> + </tbody> + </table> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将不会选中节点,也无法触发 onClick 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止节点被选中</h4> + <pre xmlns=""><code>function zTreeBeforeClick(treeId, treeNode, clickFlag) { + return (treeNode.id !== 1); +}; +var setting = { + callback: { + beforeClick: zTreeBeforeClick + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html new file mode 100644 index 0000000..d778e9c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCollapse</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获父节点折叠之前的事件回调函数,并且根据返回值确定是否允许折叠操作</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>要折叠的父节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将不会折叠节点,也无法触发 onCollapse 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止所有已展开的父节点折叠</h4> + <pre xmlns=""><code>function zTreeBeforeCollapse(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeCollapse: zTreeBeforeCollapse + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html new file mode 100644 index 0000000..ed7e4dc --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDblClick</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标双击时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响</p> + <p class="highlight_red">此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止 onDblClick 事件</h4> + <pre xmlns=""><code>function zTreeBeforeDblClick(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeDblClick: zTreeBeforeDblClick + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html new file mode 100644 index 0000000..1e783a3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNodes)</span><span class="path">setting.callback.</span>beforeDrag</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被拖拽之前的事件回调函数,并且根据返回值确定是否允许开启拖拽操作</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>被拖拽的节点 treeNodes 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>要被拖拽的节点 JSON 数据集合</p> + <p class="highlight_red">v3.x 允许多个同级节点同时被拖拽,因此将此参数修改为 Array(JSON)</p> + <p class="highlight_red">如果拖拽时多个被选择的节点不是同级关系,则只能拖拽鼠标当前所在位置的节点</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将终止拖拽,也无法触发 onDrag / beforeDrop / onDrop 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止全部拖拽操作</h4> + <pre xmlns=""><code>function zTreeBeforeDrag(treeId, treeNodes) { + return false; +}; +var setting = { + edit: { + enable: true + }, + callback: { + beforeDrag: zTreeBeforeDrag + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html new file mode 100644 index 0000000..ceab2d3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDragOpen</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获拖拽节点移动到折叠状态的父节点后,即将自动展开该父节点之前的事件回调函数,并且根据返回值确定是否允许自动展开操作</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>需要被展开的父节点 treeNode 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>要被自动展开的父节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将无法进行自动展开操作</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止全部拖拽时的自动展开操作</h4> + <pre xmlns=""><code>function zTreeBeforeDragOpen(treeId, treeNode) { + return false; +}; +var setting = { + edit: { + enable: true + }, + callback: { + beforeDragOpen: zTreeBeforeDragOpen + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html new file mode 100644 index 0000000..4123743 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html @@ -0,0 +1,48 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>beforeDrop</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作</p> + <p>默认值:null</p> + <p class="highlight_red">如未拖拽到有效位置,则不触发此回调函数,直接将节点恢复原位置</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>目标节点 targetNode 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>被拖拽的节点 JSON 数据集合</p> + <p class="highlight_red">无论拖拽操作为 复制 还是 移动,treeNodes 都是当前被拖拽节点的数据集合。</p> + <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> + <p>treeNodes 被拖拽放开的目标节点 JSON 数据对象。</p> + <p class="highlight_red">如果拖拽成为根节点,则 targetNode = null</p> + <h4 class="topLine"><b>moveType</b><span>String</span></h4> + <p>指定移动到目标节点的相对位置</p> + <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p> + <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4> + <p>拖拽节点操作是 复制 或 移动</p> + <p class="highlight_red">true:复制;false:移动</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将恢复被拖拽的节点,也无法触发 onDrop 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止将节点拖拽成为根节点</h4> + <pre xmlns=""><code>function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) { + return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId)); +}; +var setting = { + edit: { + enable: true + }, + callback: { + beforeDrop: zTreeBeforeDrop + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html new file mode 100644 index 0000000..9df3ca2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeEditName</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点编辑按钮的 click 事件,并且根据返回值确定是否允许进入名称编辑状态</p> + <p class="highlight_red">此事件回调函数最主要是用于捕获编辑按钮的点击事件,然后触发自定义的编辑界面操作。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>将要进入编辑名称状态的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,节点将无法进入 zTree 默认的编辑名称状态</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止修改父节点的名称</h4> + <pre xmlns=""><code>function zTreeBeforeEditName(treeId, treeNode) { + return !treeNode.isParent; +} +var setting = { + edit: { + enable: true + }, + callback: { + beforeEditName: zTreeBeforeEditName + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html new file mode 100644 index 0000000..350972b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeExpand</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获父节点展开之前的事件回调函数,并且根据返回值确定是否允许展开操作</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>要展开的父节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将不会展开节点,也无法触发 onExpand 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止所有已折叠的父节点展开</h4> + <pre xmlns=""><code>function zTreeBeforeExpand(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeExpand: zTreeBeforeExpand + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html new file mode 100644 index 0000000..2c3f28d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseDown</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标按键按下时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止 onMouseDown 事件</h4> + <pre xmlns=""><code>function zTreeBeforeMouseDown(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeMouseDown: zTreeBeforeMouseDown + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html new file mode 100644 index 0000000..f0b01b9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseUp</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标按键松开之前的事件回调函数,并且根据返回值确定触发 onMouseUp 事件回调函数</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标按键松开时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,将仅仅无法触发 onMouseUp 事件回调函数,对其他操作无任何影响</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止 onMouseUp 事件</h4> + <pre xmlns=""><code>function zTreeBeforeMouseUp(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeMouseUp: zTreeBeforeMouseUp + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html new file mode 100644 index 0000000..0edb3fd --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRemove</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被删除之前的事件回调函数,并且根据返回值确定是否允许删除操作</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>将要删除的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将不删除节点,也无法触发 onRemove 事件回调函数</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止全部删除操作</h4> + <pre xmlns=""><code>function zTreeBeforeRemove(treeId, treeNode) { + return false; +} +var setting = { + edit: { + enable: true + }, + callback: { + beforeRemove: zTreeBeforeRemove + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html new file mode 100644 index 0000000..0709961 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html @@ -0,0 +1,46 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode, newName, isCancel)</span><span class="path">setting.callback.</span>beforeRename</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点编辑名称结束(Input 失去焦点 或 按下 Enter 键)之后,更新节点名称数据之前的事件回调函数,并且根据返回值确定是否允许更改名称的操作</p> + <p class="highlight_red">节点进入编辑名称状态后,按 ESC 键可以放弃当前修改,恢复原名称,取消编辑名称状态</p> + <p class="highlight_red">从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>将要更改名称的节点 JSON 数据对象</p> + <h4 class="topLine"><b>newName</b><span>String</span></h4> + <p>修改后的新名称</p> + <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4> + <p>是否取消操作 (v3.5.13+)</p> + <p class="highlight_red">isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)</p> + <p class="highlight_red">isCancel = false 表示确认修改操作</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,zTree 将保持名称编辑状态,无法触发 onRename 事件回调函数,并且会导致屏蔽其它事件,直到修改名称使得 beforeRename 返回 true</p> + <p class="highlight_red">如果返回 false,不会让 input 输入框获取焦点,避免由于警告信息而导致反复触发 beforeRename。 请在关闭提示警告信息后,利用 editName 方法让 input 重新获取焦点。</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止修改的名称的长度小于 5</h4> + <pre xmlns=""><code>function zTreeBeforeRename(treeId, treeNode, newName, isCancel) { + return newName.length > 5; +} +var setting = { + edit: { + enable: true + }, + callback: { + beforeRename: zTreeBeforeRename + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html new file mode 100644 index 0000000..1a5bdaa --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRightClick</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标右键点击之前的事件回调函数,并且根据返回值确定触发 onRightClick 事件回调函数</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标右键点击时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值是 true / false</p> + <p class="highlight_red">如果返回 false,将仅仅无法触发 onRightClick 事件回调函数,对其他操作无任何影响</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止 onRightClick 事件</h4> + <pre xmlns=""><code>function zTreeBeforeRightClick(treeId, treeNode) { + return false; +}; +var setting = { + callback: { + beforeRightClick: zTreeBeforeRightClick + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html new file mode 100644 index 0000000..c469e11 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +<div class="apiDetail"> +<div> + <h2><span class="path">setting.callback.</span>onAsyncError</h2> + <h2><span>Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown)</span> </h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获异步加载出现异常错误的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>进行异步加载的父节点 JSON 数据对象</p> + <p class="highlight_red">针对根进行异步加载时,treeNode = null</p> + <h4 class="topLine"><b>XMLHttpRequest</b><span>String</span></h4> + <p>标准 XMLHttpRequest 对象,请参考 JQuery API 文档。</p> + <h4 class="topLine"><b>textStatus</b><span>String</span></h4> + <p>请求状态:success,error,请参考 JQuery API 文档。</p> + <h4 class="topLine"><b>errorThrown</b><span>String</span></h4> + <p>errorThrown 只有当异常发生时才会被传递,请参考 JQuery API 文档。</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 异步加载出现异常后,弹出错误信息</h4> + <pre xmlns=""><code>function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) { + alert(XMLHttpRequest); +}; +var setting = { + callback: { + onAsyncError: zTreeOnAsyncError + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html new file mode 100644 index 0000000..081e9d7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode, msg)</span><span class="path">setting.callback.</span>onAsyncSuccess</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获异步加载正常结束的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>进行异步加载的父节点 JSON 数据对象</p> + <p class="highlight_red">针对根进行异步加载时,treeNode = null</p> + <h4 class="topLine"><b>msg</b><span>String / Object</span></h4> + <p>异步获取的节点数据字符串,主要便于用户调试使用。</p> + <p class="highlight_red">实际数据类型会受 setting.async.dataType 的设置影响,请参考 JQuery API 文档。</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 异步加载成功后,弹出提示信息</h4> + <pre xmlns=""><code>function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) { + alert(msg); +}; +var setting = { + callback: { + onAsyncSuccess: zTreeOnAsyncSuccess + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html new file mode 100644 index 0000000..113eee9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCheck</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 checkbox / radio 被勾选 或 取消勾选的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeCheck 方法,且返回 false,将无法触发 onCheck 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>被勾选 或 取消勾选的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次点击 checkbox 或 radio 后, 弹出该节点的 tId、name 以及当前勾选状态的信息</h4> + <pre xmlns=""><code>function zTreeOnCheck(event, treeId, treeNode) { + alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked); +}; +var setting = { + callback: { + onCheck: zTreeOnCheck + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html new file mode 100644 index 0000000..1f7a266 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html @@ -0,0 +1,49 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>onClick</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被点击的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeClick 方法,且返回 false,将无法触发 onClick 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>被点击的节点 JSON 数据对象</p> + <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4> + <p>节点被点击后的选中操作类型,详细看下表</p> + <table width="100%" border="0" cellspacing="1" cellpadding="0"> + <thead><tr><td>clickFlag</td><td title="是否允许多点选中">selectedMulti</td><td title="是否按下 Ctrl 或 Cmd 键">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="节点当前选择状态">isSelected</td><td>选中操作</td></tr></thead> + <tbody> + <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>普通选中</td></tr> + <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>普通选中</td></tr> + <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>追加选中</td></tr> + <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>取消选中</td></tr> + <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>普通选中</td></tr> + <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>普通选中</td></tr> + <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>普通选中</td></tr> + <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>取消选中</td></tr> + </tbody> + </table> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次点击节点后, 弹出该节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnClick(event, treeId, treeNode) { + alert(treeNode.tId + ", " + treeNode.name); +}; +var setting = { + callback: { + onClick: zTreeOnClick + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html new file mode 100644 index 0000000..1c816c2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCollapse</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被折叠的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeCollapse 方法,且返回 false,将无法触发 onCollapse 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>被折叠的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次折叠节点后, 弹出该节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnCollapse(event, treeId, treeNode) { + alert(treeNode.tId + ", " + treeNode.name); +}; +var setting = { + callback: { + onCollapse: zTreeOnCollapse + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html new file mode 100644 index 0000000..deb8e62 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onDblClick</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标双击之后的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeDblClick 方法,且返回 false,将无法触发 onDblClick 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标双击时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次鼠标双击后, 弹出鼠标所在节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnDblClick(event, treeId, treeNode) { + alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); +}; +var setting = { + callback: { + onDblClick: zTreeOnDblClick + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html new file mode 100644 index 0000000..efd115b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDrag</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被拖拽的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeDrag 方法,且返回 false,将无法触发 onDragMove 和 onDrag 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>被拖拽的节点 treeNodes 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>要被拖拽的节点 JSON 数据集合</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次开始进行拖拽节点后, 弹出被拖拽节点的个数信息</h4> + <pre xmlns=""><code>function zTreeOnDrag(event, treeId, treeNodes) { + alert(treeNodes.length); +}; +var setting = { + callback: { + onDrag: zTreeOnDrag + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html new file mode 100644 index 0000000..e6a8dd9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDragMove</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被拖拽过程中移动的事件回调函数</p> + <p class="highlight_red">主要用于捕获 zTree 节点拖拽到的 DOM,从而操作对应的 DOM。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>被拖拽的节点 treeNodes 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>要被拖拽的节点 JSON 数据集合</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 拖拽节点时,随时输出 当前拖拽到的目标 DOM</h4> + <pre xmlns=""><code>function zTreeOnDragMove(event, treeId, treeNodes) { + console.log(event.target); +}; +var setting = { + callback: { + onDragMove: zTreeOnDragMove + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html new file mode 100644 index 0000000..c6773a8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html @@ -0,0 +1,46 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>onDrop</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点拖拽操作结束的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeDrop 方法,且返回 false,将无法触发 onDrop 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>目标节点 targetNode 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>被拖拽的节点 JSON 数据集合</p> + <p class="highlight_red">如果拖拽操作为 移动,treeNodes 是当前被拖拽节点的数据集合。</p> + <p class="highlight_red">如果拖拽操作为 复制,treeNodes 是复制后 clone 得到的新节点数据。</p> + <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> + <p>成为 treeNodes 拖拽结束的目标节点 JSON 数据对象。</p> + <p class="highlight_red">如果拖拽成为根节点,则 targetNode = null</p> + <h4 class="topLine"><b>moveType</b><span>String</span></h4> + <p>指定移动到目标节点的相对位置</p> + <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p> + <p class="highlight_red">如果 moveType = null,表明拖拽无效</p> + <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4> + <p>拖拽节点操作是 复制 或 移动</p> + <p class="highlight_red">true:复制;false:移动</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次拖拽操作结束后, 弹出该被拖拽节点的个数以及目标节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) { + alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" )); +}; +var setting = { + callback: { + onDrop: zTreeOnDrop + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html new file mode 100644 index 0000000..791c5f6 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onExpand</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点被展开的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>被展开的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次展开节点后, 弹出该节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnExpand(event, treeId, treeNode) { + alert(treeNode.tId + ", " + treeNode.name); +}; +var setting = { + callback: { + onExpand: zTreeOnExpand + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html new file mode 100644 index 0000000..bc9d0ea --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseDown</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标按键按下后的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeMouseDown 方法,且返回 false,将无法触发 onMouseDown 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标按键按下时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次鼠标按键按下后, 弹出鼠标所在节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnMouseDown(event, treeId, treeNode) { + alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); +}; +var setting = { + callback: { + onMouseDown: zTreeOnMouseDown + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html new file mode 100644 index 0000000..a969fef --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseUp</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标按键松开后的事件回调函数</p> + <p class="highlight_red">如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标按键松开时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnMouseUp(event, treeId, treeNode) { + alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); +}; +var setting = { + callback: { + onMouseUp: zTreeOnMouseUp + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html new file mode 100644 index 0000000..2ebaee6 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onNodeCreated</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点生成 DOM 后的事件回调函数</p> + <p class="highlight_red">v3.x 采用了延迟加载技术,因此对于父节点未展开的子节点来说,初始化后是不会触发此回调函数,直到其父节点被展开</p> + <p class="highlight_red">大数据量的节点加载请注意:不设置 onNodeCreated,可以提升一部分初始化性能</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>生成 DOM 完毕的节点的 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 创建节点 DOM 后, 弹出该节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnNodeCreated(event, treeId, treeNode) { + alert(treeNode.tId + ", " + treeNode.name); +}; +var setting = { + callback: { + onNodeCreated: zTreeOnNodeCreated + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html new file mode 100644 index 0000000..e7e625d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRemove</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获删除节点之后的事件回调函数。</p> + <p class="highlight_red">如果用户设置了 beforeRemove 回调函数,并返回 false,将无法触发 onRemove 事件回调函数。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>将要删除的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 删除节点时,弹出被删除的节点的 tId 以及 name 信息</h4> + <pre xmlns=""><code>function zTreeOnRemove(event, treeId, treeNode) { + alert(treeNode.tId + ", " + treeNode.name); +} +var setting = { + callback: { + onRemove: zTreeOnRemove + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html new file mode 100644 index 0000000..f225463 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html @@ -0,0 +1,40 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode, isCancel)</span><span class="path">setting.callback.</span>onRename</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获节点编辑名称结束之后的事件回调函数。</p> + <p>1、节点进入编辑名称状态,并且修改节点名称后触发此回调函数。<span class="highlight_red">如果用户设置了 beforeRename 回调函数,并返回 false,将无法触发 onRename 事件回调函数。</span></p> + <p>2、<span class="highlight_red">如果通过直接修改 treeNode 的数据,并且利用 updateNode 方法更新,是不会触发此回调函数的。</span></p> + <p class="highlight_red">3、从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>被修改名称的节点 JSON 数据对象</p> + <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4> + <p>是否取消操作 (v3.5.13+)</p> + <p class="highlight_red">isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)</p> + <p class="highlight_red">isCancel = false 表示确认修改操作</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 修改名称后,弹出被修改名称的节点的 tId 以及 name 信息</h4> + <pre xmlns=""><code>function zTreeOnRename(event, treeId, treeNode, isCancel) { + alert(treeNode.tId + ", " + treeNode.name); +} +var setting = { + callback: { + onRename: zTreeOnRename + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html new file mode 100644 index 0000000..d51c68d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRightClick</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于捕获 zTree 上鼠标右键点击之后的事件回调函数</p> + <p class="highlight_red">1、如果设置了 setting.callback.beforeRightClick 方法,且返回 false,将无法触发 onRightClick 事件回调函数。</p> + <p class="highlight_red">2、只要将 function 的引用赋给 onRightClick 属性,则右键点击 zTree 时,将屏蔽浏览器的右键菜单。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>event</b><span>js event 对象</span></h4> + <p>标准的 js event 对象</p> + <h4 class="topLine"><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>鼠标右键点击时所在节点的 JSON 数据对象</p> + <p class="highlight_red">如果不在节点上,则返回 null</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 每次鼠标右键点击后, 弹出鼠标所在节点的 tId、name 的信息</h4> + <pre xmlns=""><code>function zTreeOnRightClick(event, treeId, treeNode) { + alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot"); +}; +var setting = { + callback: { + onRightClick: zTreeOnRightClick + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html new file mode 100644 index 0000000..d1efd77 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.check.</span>autoCheckTrigger</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置自动关联勾选时是否触发 beforeCheck / onCheck 事件回调函数。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]</span></p> + <p class="highlight_red">1、如果设置 setting.check.chkboxType = { "Y": "", "N": "" },将不会有任何自动关联勾选的操作。</p> + <p class="highlight_red">2、如果开启触发,对于节点较多的树将会影响性能,因为所有被联动勾选的操作都会触发事件回调函数,请根据需要决定是否使用此功能。</p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 触发 / 不触发 事件回调函数</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要触发自动关联勾选操作</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true, + autoCheckTrigger: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html new file mode 100644 index 0000000..8af1c2c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.check.</span>chkDisabledInherit</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>当父节点设置 chkDisabled = true 时,设置子节点是否自动继承 chkDisabled = true 。<span class="highlight_red">[setting.check.enable = true 时生效]</span></p> + <p class="highlight_red">1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 setChkDisabled 方法单个节点设置。</p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示 新加入子节点时,自动继承父节点 chkDisabled = true 的属性。</p> + <p> false 表示 新加入子节点时,不继承父节点 chkDisabled 的属性。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要子节点自动继承 chkDisabled = true</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true, + chkDisabledInherit: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html new file mode 100644 index 0000000..9706c13 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.check.</span>chkStyle</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>勾选框类型(checkbox 或 radio)<span class="highlight_red">[setting.check.enable = true 时生效]</span></p> + <p>默认值:"checkbox"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>chkStyle = "checkbox" 时,显示 checkbox 选择框,<span class="highlight_red">setting.check.chkboxType</span> 属性有效。 +<br/>chkStyle = "radio" 时,显示 radio 选择框, <span class="highlight_red">setting.check.radioType</span> 属性有效。</p> + <p class="highlight_red">请注意大小写,不要改变</p> + </div> + <h3>checkbox 状态说明</h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p><button type="button" class="chk checkbox_false_full"></button>未勾选;<span class="highlight_red">如果是父节点,则无子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_false_full_focus"></button></p> + <p><button type="button" class="chk checkbox_false_part"></button>未勾选;(只有父节点存在此状态)<span class="highlight_red">存在被勾选的子节点</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_false_part_focus"></button></p> + <p><button type="button" class="chk checkbox_true_full"></button>被勾选;<span class="highlight_red">如果是父节点,则全部子节点都被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_true_full_focus"></button></p> + <p><button type="button" class="chk checkbox_true_part"></button>被勾选;(只有父节点存在此状态)<span class="highlight_red">且部分或无子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_true_part_focus"></button></p> + </div> + </div> + <h3>radio 状态说明</h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p><button type="button" class="chk radio_false_full"></button>未勾选;<span class="highlight_red">如果是父节点,则没有子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_false_full_focus"></button></p> + <p><button type="button" class="chk radio_false_part"></button>未勾选;(只有父节点存在此状态)<span class="highlight_red">且存在被勾选的子节点</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_false_part_focus"></button></p> + <p><button type="button" class="chk radio_true_full"></button>被勾选;<span class="highlight_red">如果是父节点,则没有子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_true_full_focus"></button></p> + <p><button type="button" class="chk radio_true_part"></button>被勾选;(只有父节点存在此状态)<span class="highlight_red">且存在被勾选的子节点</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_true_part_focus"></button></p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置选择框为 radio</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true, + chkStyle: "radio" + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html new file mode 100644 index 0000000..da06b6c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +<div class="apiDetail"> +<div> + <h2><span>JSON</span><span class="path">setting.check.</span>chkboxType</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>勾选 checkbox 对于父子节点的关联关系。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]</span></p> + <p>默认值:{ "Y": "ps", "N": "ps" }</p> + </div> + </div> + <h3>JSON 格式说明</h3> + <div class="desc"> + <p>Y 属性定义 checkbox 被勾选后的情况; +<br/>N 属性定义 checkbox 取消勾选后的情况; +<br/>"p" 表示操作会影响父级节点; +<br/>"s" 表示操作会影响子级节点。</p> + <p class="highlight_red">请注意大小写,不要改变</p> + </div> + <h3>setting 举例</h3> + <h4>1. checkbox 勾选操作,只影响父级节点;取消勾选操作,只影响子级节点</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true, + chkStyle: "checkbox", + chkboxType: { "Y": "p", "N": "s" } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html new file mode 100644 index 0000000..8b1387e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.check.</span>enable</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 的节点上是否显示 checkbox / radio</p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 显示 / 不显示 复选框或单选框</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要显示 checkbox</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html new file mode 100644 index 0000000..caf9902 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.check.</span>nocheckInherit</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>当父节点设置 nocheck = true 时,设置子节点是否自动继承 nocheck = true 。<span class="highlight_red">[setting.check.enable = true 时生效]</span></p> + <p class="highlight_red">1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 updateNode 方法单个节点设置。</p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示 新加入子节点时,自动继承父节点 nocheck = true 的属性。</p> + <p> false 表示 新加入子节点时,不继承父节点 nocheck 的属性。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要子节点自动继承 nocheck = true</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true, + nocheckInherit: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html new file mode 100644 index 0000000..19f84ca --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.check.</span>radioType</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>radio 的分组范围。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "radio" 时生效]</span></p> + <p>默认值:"level"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>radioType = "level" 时,在每一级节点范围内当做一个分组。 +<br/>radioType = "all" 时,在整棵树范围内当做一个分组。</p> + <p class="highlight_red">请注意大小写,不要改变</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 radio 的判别规则为整棵树内</h4> + <pre xmlns=""><code>var setting = { + check: { + enable: true, + chkStyle: "radio", + radioType: "all" + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html new file mode 100644 index 0000000..af3a721 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.data.keep.</span>leaf</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 的节点叶子节点属性锁,是否始终保持 isParent = false</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 锁定 / 不锁定 叶子节点属性</p> + <p class="highlight_red">如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要锁定叶子节点状态</h4> + <pre xmlns=""><code>var setting = { + data: { + keep: { + leaf: true + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html new file mode 100644 index 0000000..c4975df --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 的节点父节点属性锁,是否始终保持 isParent = true</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 锁定 / 不锁定 父节点属性</p> + <p class="highlight_red">如果设置为 true,则所有 isParent = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 需要锁定父节点状态</h4> + <pre xmlns=""><code>var setting = { + data: { + keep: { + parent: true + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html new file mode 100644 index 0000000..ac9fdc1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.key.</span>checked</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 节点数据中保存 check 状态的属性名称。</p> + <p>默认值:"checked"</p> + <p class="highlight_red">请勿与 zTree 节点数据的其他参数冲突,例如:checkedOld</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 显示节点时,将 treeNode 的 isChecked 属性当做节点名称</h4> + <pre xmlns=""><code>var setting = { + data: { + key: { + checked: "isChecked" + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html new file mode 100644 index 0000000..66a49a7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html @@ -0,0 +1,23 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.key.</span>children</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 节点数据中保存子节点数据的属性名称。</p> + <p>默认值:"children"</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 显示节点时,将 treeNode 的 nodes 属性当做节点名称</h4> + <pre xmlns=""><code>var setting = { + data: { + key: { + children: "nodes" + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html new file mode 100644 index 0000000..c25d250 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html @@ -0,0 +1,23 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.key.</span>name</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 节点数据保存节点名称的属性名称。</p> + <p>默认值:"name"</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 显示节点时,将 treeNode 的 ename 属性当做节点名称</h4> + <pre xmlns=""><code>var setting = { + data: { + key: { + name: "ename" + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html new file mode 100644 index 0000000..43e6855 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.key.</span>title</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 节点数据保存节点提示信息的属性名称。<span class="highlight_red">[setting.view.showTitle = true 时生效]</span></p> + <p class="highlight_red">如果设置为 "" ,则自动与 setting.data.key.name 保持一致,避免用户反复设置</p> + <p>默认值:""</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 显示节点时,将 treeNode 的 fullName 属性当做节点名称</h4> + <pre xmlns=""><code>var setting = { + data: { + key: { + title: "fullName" + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html new file mode 100644 index 0000000..e534d98 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.key.</span>url</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 节点数据保存节点链接的目标 URL 的属性名称。</p> + <p class="highlight_red">特殊用途:当后台数据只能生成 url 属性,又不想实现点击节点跳转的功能时,可以直接修改此属性为其他不存在的属性名称</p> + <p>默认值:"url"</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 显示节点时,将 treeNode 的 xUrl 属性当做节点链接的目标 URL</h4> + <pre xmlns=""><code>var setting = { + data: { + key: { + url: "xUrl" + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html new file mode 100644 index 0000000..65bd407 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html @@ -0,0 +1,38 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.data.simpleData.</span>enable</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>确定 zTree 初始化时的节点数据、异步加载时的节点数据、或 <span class="highlight_red">addNodes</span> 方法中输入的 newNodes 数据是否采用简单数据模式 (Array)</p> + <p>不需要用户再把数据库中取出的 List 强行转换为复杂的 JSON 嵌套格式</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 使用 / 不使用 简单数据模式</p> + <p class="highlight_red">如果设置为 true,请务必设置 setting.data.simpleData 内的其他参数: idKey / pIdKey / rootPId,并且让数据满足父子关系。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 使用简单 Array 格式的数据</h4> + <pre xmlns=""><code>var setting = { + data: { + simpleData: { + enable: true, + idKey: "id", + pIdKey: "pId", + rootPId: 0, + } + } +}; +var treeNodes = [ + {"id":1, "pId":0, "name":"test1"}, + {"id":11, "pId":1, "name":"test11"}, + {"id":12, "pId":1, "name":"test12"}, + {"id":111, "pId":11, "name":"test111"} +]; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html new file mode 100644 index 0000000..81129e9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.simpleData.</span>idKey</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点数据中保存唯一标识的属性名称。<span class="highlight_red">[setting.data.simpleData.enable = true 时生效]</span></p> + <p>默认值:"id"</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 使用简单 Array 格式的数据</h4> + <pre xmlns=""><code>var setting = { + data: { + simpleData: { + enable: true, + idKey: "id", + pIdKey: "pId", + rootPId: 0, + } + } +}; +var treeNodes = [ + {"id":1, "pId":0, "name":"test1"}, + {"id":11, "pId":1, "name":"test11"}, + {"id":12, "pId":1, "name":"test12"}, + {"id":111, "pId":11, "name":"test111"} +]; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html new file mode 100644 index 0000000..d434bc3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.data.simpleData.</span>pIdKey</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点数据中保存其父节点唯一标识的属性名称。<span class="highlight_red">[setting.data.simpleData.enable = true 时生效]</span></p> + <p>默认值:"pId"</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 使用简单 Array 格式的数据</h4> + <pre xmlns=""><code>var setting = { + data: { + simpleData: { + enable: true, + idKey: "id", + pIdKey: "pId", + rootPId: 0 + } + } +}; +var treeNodes = [ + {"id":1, "pId":0, "name":"test1"}, + {"id":11, "pId":1, "name":"test11"}, + {"id":12, "pId":1, "name":"test12"}, + {"id":111, "pId":11, "name":"test111"} +]; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html new file mode 100644 index 0000000..8cff82d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>String / Number</span><span class="path">setting.data.simpleData.</span>rootPId</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于修正根节点父节点数据,即 pIdKey 指定的属性值。<span class="highlight_red">[setting.data.simpleData.enable = true 时生效]</span></p> + <p>默认值:null</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 使用简单 Array 格式的数据</h4> + <pre xmlns=""><code>var setting = { + data: { + simpleData: { + enable: true, + idKey: "id", + pIdKey: "pId", + rootPId: 0 + } + } +}; +var treeNodes = [ + {"id":1, "pId":0, "name":"test1"}, + {"id":11, "pId":1, "name":"test11"}, + {"id":12, "pId":1, "name":"test12"}, + {"id":111, "pId":11, "name":"test111"} +]; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 0000000..126b8a8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>autoExpandTrigger</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽时父节点自动展开是否触发 onExpand 事件回调函数。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 触发 / 不触发 onExpand 事件回调函数。</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置拖拽时父节点自动展开触发 onExpand 事件回调函数</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + autoExpandTrigger: true + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html new file mode 100644 index 0000000..df78339 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">setting.edit.drag.</span>autoOpenTime</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽时父节点自动展开的延时间隔。 (单位:ms)<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:500</p> + <p class="highlight_red">请根据自己的需求适当调整此值</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置拖拽到父节点上立刻自动展开</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + autoOpenTime: 0 + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html new file mode 100644 index 0000000..1d4dd68 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMax</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽节点成为根节点时的 Tree 内边界范围 (单位:px)。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:10</p> + <p class="highlight_red">请根据自己的需求适当调整此值</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 更改拖拽操作节点成为根节点时的 Tree 内边界范围为20px</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + borderMax: 20 + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html new file mode 100644 index 0000000..463eb2b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMin</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽节点成为根节点时的 Tree 外边界范围 (单位:px)。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:-5</p> + <p class="highlight_red">请根据自己的需求适当调整此值</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 更改拖拽操作节点成为根节点时的 Tree 外边界范围为10px</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + borderMin: -10 + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html new file mode 100644 index 0000000..06679e1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html @@ -0,0 +1,59 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>inner</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽到目标节点时,设置是否允许成为目标节点的子节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p class="highlight_red">拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner</p> + <p class="highlight_red">此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、next 一起使用,才能实现完整功能。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 允许 / 不允许 成为目标节点的子节点</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>被拖拽的节点 JSON 数据集合</p> + <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> + <p>拖拽时的目标节点 JSON 数据对象</p> + <p class="highlight_red">如果拖拽的节点要成为根节点,则 targetNode = null</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止拖拽成为目标节点的子节点</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + prev: true, + next: true, + inner: false + } + } +}; +......</code></pre> + <h4>2. 禁止拖拽成为根节点的子节点</h4> + <pre xmlns=""><code>function canInner(treeId, nodes, targetNode) { + return !(targetNode && targetNode.level === 0); +} +var setting = { + edit: { + enable: true, + drag: { + prev: true, + next: true, + inner: canInner + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html new file mode 100644 index 0000000..cff17af --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isCopy</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽时, 设置是否允许复制节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:true</p> + </div> + </div> + <h3>规则说明</h3> + <div class="desc"> + <p>1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move</p> + <p>2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy</p> + <p>3、isCopy = false; isMove = true 时,所有拖拽操作都是 move</p> + <p>4、isCopy = false; isMove = false 时,禁止拖拽操作</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置所有拖拽操作都是 copy</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + isCopy: true, + isMove: false + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html new file mode 100644 index 0000000..7fdadd1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isMove</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽时, 设置是否允许移动节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:true</p> + </div> + </div> + <h3>规则说明</h3> + <div class="desc"> + <p>1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move</p> + <p>2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy</p> + <p>3、isCopy = false; isMove = true 时,所有拖拽操作都是 move</p> + <p>4、isCopy = false; isMove = false 时,禁止拖拽操作</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置所有拖拽操作都是 move</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + isCopy: false, + isMove: true + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 0000000..3e7a3d2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">setting.edit.drag.</span>maxShowNodeNum</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽多个兄弟节点时,浮动图层中显示的最大节点数。 多余的节点用...代替。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值:5</p> + <p class="highlight_red">请根据自己的需求适当调整此值</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 设置拖拽时最多可显示10个节点</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + maxShowNodeNum: 10 + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html new file mode 100644 index 0000000..904be41 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">setting.edit.drag.</span>minMoveSize</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>判定是否拖拽操作的最小位移值 (单位:px)。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p class="highlight_red">根据自己的需求可适当调整此值,如果太小容易导致点击鼠标时误操作进行拖拽</p> + <p>默认值:5</p> + </div> + </div> + <h3>setting 举例</h3> + <h4>1. 更改拖拽操作启动位移值为10px</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + minMoveSize: 10 + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html new file mode 100644 index 0000000..ffc874a --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html @@ -0,0 +1,58 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>next</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽到目标节点时,设置是否允许移动到目标节点后面的操作。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p class="highlight_red">拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner</p> + <p class="highlight_red">此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、inner 一起使用,才能实现完整功能。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 允许 / 不允许 移动到目标节点后面</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>被拖拽的节点 JSON 数据集合</p> + <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> + <p>拖拽时的目标节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止拖拽到节点后面的操作</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + prev: true, + next: false, + inner: true + } + } +}; +......</code></pre> + <h4>2. 禁止拖拽到父节点后面的操作</h4> + <pre xmlns=""><code>function canNext(treeId, nodes, targetNode) { + return !targetNode.isParent; +} +var setting = { + edit: { + enable: true, + drag: { + prev: true, + next: canNext, + inner: true + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html new file mode 100644 index 0000000..bd05361 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html @@ -0,0 +1,58 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>prev</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>拖拽到目标节点时,设置是否允许移动到目标节点前面的操作。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p class="highlight_red">拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner</p> + <p class="highlight_red">此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 next、inner 一起使用,才能实现完整功能。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 允许 / 不允许 移动到目标节点前面</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)</p> + <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>被拖拽的节点 JSON 数据集合</p> + <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4> + <p>拖拽时的目标节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 禁止拖拽到节点前面的操作</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + drag: { + prev: false, + next: true, + inner: true + } + } +}; +......</code></pre> + <h4>2. 禁止拖拽到父节点前面的操作</h4> + <pre xmlns=""><code>function canPrev(treeId, nodes, targetNode) { + return !targetNode.isParent; +} +var setting = { + edit: { + enable: true, + drag: { + prev: canPrev, + next: true, + inner: true + } + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html new file mode 100644 index 0000000..30784f3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.edit.</span>editNameSelectAll</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 <span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示 全选状态</p> + <p> false 表示 不是全选状态,光标默认在最后</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置节点编辑名称 input 初次显示时,txt内容为全选状态</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + editNameSelectAll: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html new file mode 100644 index 0000000..de1afea --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html @@ -0,0 +1,38 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 是否处于编辑状态</p> + <p class="highlight_red">请在初始化之前设置,初始化后需要改变编辑状态请使用 zTreeObj.setEditable() 方法</p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 可以 / 不可以 编辑</p> + </div> + <h3>编辑状态规则说明</h3> + <div class="desc"> + <p>1、点击节点时,不会打开 <span class="highlight_red">node.url</span> 指定的 URL。 +<br/>2、全面支持 编辑 与 异步加载 状态共存。 +<br/>3、可以对节点进行拖拽,且支持多棵树之间进行拖拽。 +<br/>4、支持拖拽时 复制/移动 节点。(参考: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>) +<br/>5、可以通过编辑按钮修改 name 属性。 +<br/>6、可以通过删除按钮删除节点。 +<br/> +</p> + <p class="highlight_red">请注意大小写,不要改变</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 进入编辑状态</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html new file mode 100644 index 0000000..55257da --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +<div class="apiDetail"> +<div> + <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>removeTitle</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>删除按钮的 Title 辅助信息。<span class="highlight_red">[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]</span></p> + <p>默认值:"remove"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>鼠标移动到 删除按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置删除按钮 Title 信息的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>String</span></h4> + <p>返回值同 String 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置删除按钮的 Title 辅助信息为: "删除节点"</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + showRemoveBtn: true, + removeTitle: "删除节点" + } +}; +......</code></pre> + <h4>2. 设置父节点删除按钮的 Title 辅助信息为: "删除父节点"</h4> + <pre xmlns=""><code>function setRemoveTitle(treeId, treeNode) { + return treeNode.isParent ? "删除父节点":"删除叶子节点"; +} +var setting = { + edit: { + enable: true, + showRemoveBtn: true, + removeTitle: setRemoveTitle + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html new file mode 100644 index 0000000..2dfbcca --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +<div class="apiDetail"> +<div> + <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>renameTitle</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>编辑名称按钮的 Title 辅助信息。<span class="highlight_red">[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]</span></p> + <p>默认值:"rename"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>设置鼠标移动到 编辑名称按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置编辑名称按钮 Title 信息的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>String</span></h4> + <p>返回值同 String 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置编辑名称按钮的 Title 辅助信息为: "编辑节点名称"</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + showRenameBtn: true, + renameTitle: "编辑节点名称" + } +}; +......</code></pre> + <h4>2. 设置父节点编辑名称按钮的 Title 辅助信息为: "编辑父节点名称"</h4> + <pre xmlns=""><code>function setRenameTitle(treeId, treeNode) { + return treeNode.isParent ? "编辑父节点名称":"编辑叶子节点名称"; +} +var setting = { + edit: { + enable: true, + showRenameBtn: true, + renameTitle: setRenameTitle + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html new file mode 100644 index 0000000..db62053 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html @@ -0,0 +1,49 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRemoveBtn</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置是否显示删除按钮。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>当点击某节点的删除按钮时:</p> + <p>1、首先触发 <span class="highlight_red">setting.callback.beforeRemove</span> 回调函数,用户可判定是否进行删除操作。</p> + <p>2、如果未设置 beforeRemove 或 beforeRemove 返回 true,则删除节点并触发 <span class="highlight_red">setting.callback.onRemove</span> 回调函数。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 显示 / 隐藏 删除按钮</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置是否显示删除按钮的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 不显示删除按钮</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + showRemoveBtn: false + } +}; +......</code></pre> + <h4>2. 设置所有的父节点不显示删除按钮</h4> + <pre xmlns=""><code>function setRemoveBtn(treeId, treeNode) { + return !treeNode.isParent; +} +var setting = { + edit: { + enable: true, + showRemoveBtn: setRemoveBtn + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html new file mode 100644 index 0000000..33dd37a --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html @@ -0,0 +1,51 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRenameBtn</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置是否显示编辑名称按钮。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p> + <p>当点击某节点的编辑名称按钮时:</p> + <p>1、进入节点编辑名称状态。</p> + <p>2、编辑名称完毕(Input 失去焦点 或 按下 Enter 键),会触发 <span class="highlight_red">setting.callback.beforeRename</span> 回调函数,用户可根据自己的规则判定是否允许修改名称。</p> + <p>3、如果 beforeRename 返回 false,则继续保持编辑名称状态,直到名称符合规则位置 (按下 ESC 键可取消编辑名称状态,恢复原名称)。</p> + <p>4、如果未设置 beforeRename 或 beforeRename 返回 true,则结束节点编辑名称状态,更新节点名称,并触发 <span class="highlight_red">setting.callback.onRename</span> 回调函数。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 显示 / 隐藏 编辑名称按钮</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置是否显示编辑名称按钮的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 不显示编辑名称按钮</h4> + <pre xmlns=""><code>var setting = { + edit: { + enable: true, + showRenameBtn: false + } +}; +......</code></pre> + <h4>2. 设置所有的父节点不显示编辑名称按钮</h4> + <pre xmlns=""><code>function setRenameBtn(treeId, treeNode) { + return !treeNode.isParent; +} +var setting = { + edit: { + enable: true, + showRenameBtn: setRenameBtn + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html new file mode 100644 index 0000000..819743e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html @@ -0,0 +1,14 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">setting.</span>treeId</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 的唯一标识,初始化后,等于 用户定义的 zTree 容器的 id 属性值。</p> + <p class="highlight_red">请勿进行初始化 或 修改,属于内部参数。</p> + </div> + </div> + +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html new file mode 100644 index 0000000..37684a1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html @@ -0,0 +1,14 @@ +<div class="apiDetail"> +<div> + <h2><span>Object</span><span class="path">setting.</span>treeObj</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 容器的 jQuery 对象,主要功能:便于操作。</p> + <p class="highlight_red">请勿进行初始化 或 修改,属于内部参数。</p> + </div> + </div> + +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html new file mode 100644 index 0000000..0a508ac --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addDiyDom</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于在节点上固定显示用户自定义控件</p> + <p class="highlight_red">1. 大数据量的节点加载请注意:在 addDiyDom 中针对每个节点 查找 DOM 对象并且添加新 DOM 控件,肯定会影响初始化性能;如果不是必须使用,建议不使用此功能</p> + <p class="highlight_red">2. 属于高级应用,使用时请确保对 zTree 比较了解。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要显示自定义控件的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置节点后面显示一个按钮</h4> + <pre xmlns=""><code>var setting = { + view: { + addDiyDom: addDiyDom + } +}; +function addDiyDom(treeId, treeNode) { + var aObj = $("#" + treeNode.tId + "_a"); + if ($("#diyBtn_"+treeNode.id).length>0) return; + var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>" + + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id + + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>"; + aObj.append(editStr); + var btn = $("#diyBtn_"+treeNode.id); + if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);}); +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html new file mode 100644 index 0000000..f073e79 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addHoverDom</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮</p> + <p class="highlight_red">请务必与 <span class="highlight_red">setting.view.removeHoverDom</span> 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要显示自定义控件的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置鼠标移到节点上,在后面显示一个按钮</h4> + <pre xmlns=""><code>var setting = { + view: { + addHoverDom: addHoverDom, + removeHoverDom: removeHoverDom, + ...... + } +}; +function addHoverDom(treeId, treeNode) { + var aObj = $("#" + treeNode.tId + "_a"); + if ($("#diyBtn_"+treeNode.id).length>0) return; + var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>" + + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id + + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>"; + aObj.append(editStr); + var btn = $("#diyBtn_"+treeNode.id); + if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);}); +}; +function removeHoverDom(treeId, treeNode) { + $("#diyBtn_"+treeNode.id).unbind().remove(); + $("#diyBtn_space_" +treeNode.id).unbind().remove(); +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html new file mode 100644 index 0000000..4890f78 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html @@ -0,0 +1,26 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.view.</span>autoCancelSelected</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>点击节点时,按下 Ctrl 或 Cmd 键是否允许取消选择操作。</p> + <p class="highlight_red">如果不需要此功能,请设置为 false。</p> + <p>默认值: true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 支持 / 不支持 配合 Ctrl 或 Cmd 键进行取消节点选择的操作</p> + </div> + <h3>setting 举例</h3> + <h4>1. 禁止配合 Ctrl 或 Cmd 键进行取消节点选择的操作</h4> + <pre xmlns=""><code>var setting = { + view: { + autoCancelSelected: false + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html new file mode 100644 index 0000000..5f3db96 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html @@ -0,0 +1,44 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>dblClickExpand</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>双击节点时,是否自动展开父节点的标识</p> + <p>默认值: true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示双击节点 切换 / 不切换 展开状态</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置是否双击切换展开状态的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting 举例</h3> + <h4>1. 取消默认双击展开父节点的功能</h4> + <pre xmlns=""><code>var setting = { + view: { + dblClickExpand: false + } +}; +......</code></pre> + <h4>2. 设置 zTree 仅仅 level=0 的父节点取消双击展开的功能</h4> + <pre xmlns=""><code>function dblClickExpand(treeId, treeNode) { + return treeNode.level > 0; +}; +var setting = { + view: { + dblClickExpand: dblClickExpand + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html new file mode 100644 index 0000000..3b799c3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +<div class="apiDetail"> +<div> + <h2><span>String / Number</span><span class="path">setting.view.</span>expandSpeed</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 节点展开、折叠时的动画速度,设置方法同 JQuery 动画效果中 speed 参数。</p> + <p class="highlight_red">IE6 下会自动关闭动画效果,以保证 zTree 的操作速度</p> + <p>默认值:"fast"</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>三种预定速度之一的字符串("slow", "normal", or "fast")</p> + <p class="highlight_red">设置为 "" 时,不显示动画效果</p> + </div> + <h3>Number 格式说明</h3> + <div class="desc"> + <p>表示动画时长的毫秒数值 (如:1000)</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置为慢速显示动画效果</h4> + <pre xmlns=""><code>var setting = { + view: { + expandSpeed: "slow" + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html new file mode 100644 index 0000000..54efb1b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html @@ -0,0 +1,42 @@ +<div class="apiDetail"> +<div> + <h2><span>JSON / Function(treeId, treeNode)</span><span class="path">setting.view.</span>fontCss</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>个性化文字样式,只针对 zTree 在节点上显示的<A>对象。</p> + <p>默认值:{}</p> + </div> + </div> + <h3>JSON 格式说明</h3> + <div class="desc"> + <p>JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:<span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置自定义样式的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>返回值同 JSON 格式的数据,例如:<span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 不修改CSS,设置全部节点 name 显示为红色</h4> + <pre xmlns=""><code>var setting = { + view: { + fontCss : {color:"red"} + } +};</code></pre> + <h4>2. 设置 level=0 的节点 name 显示为红色</h4> + <pre xmlns=""><code>function setFontCss(treeId, treeNode) { + return treeNode.level == 0 ? {color:"red"} : {}; +}; +var setting = { + view: { + fontCss: setFontCss + } +};</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html new file mode 100644 index 0000000..a1d916c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.view.</span>nameIsHTML</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 name 属性是否支持 HTML 脚本</p> + <p class="highlight_red">如果允许 HTML 脚本,请根据自己的需求做校验,避免出现 js 注入等安全问题。</p> + <p>默认值: false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 支持 / 不支持 HTML 脚本</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 name 属性支持 HTML 脚本</h4> + <pre xmlns=""><code>var setting = { + view: { + nameIsHTML: true + } +}; +var node = {"name":"<font color='red'>test</font>"}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html new file mode 100644 index 0000000..bb1a9aa --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>removeHoverDom</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于当鼠标移出节点时,隐藏用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮</p> + <p class="highlight_red">请务必与 <span class="highlight_red">addHoverDom</span> 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。</p> + <p>默认值:null</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要隐藏自定义控件的节点 JSON 数据对象</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置鼠标移到节点上,在后面显示一个按钮</h4> + <pre xmlns=""><code>var setting = { + view: { + addHoverDom: addHoverDom, + removeHoverDom: removeHoverDom, + ...... + } +}; +function addHoverDom(treeId, treeNode) { + var aObj = $("#" + treeNode.tId + "_a"); + if ($("#diyBtn_"+treeNode.id).length>0) return; + var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>" + + "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id + + "' title='"+treeNode.name+"' onfocus='this.blur();'></button>"; + aObj.append(editStr); + var btn = $("#diyBtn_"+treeNode.id); + if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);}); +}; +function removeHoverDom(treeId, treeNode) { + $("#diyBtn_"+treeNode.id).unbind().remove(); + $("#diyBtn_space_" +treeNode.id).unbind().remove(); +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html new file mode 100644 index 0000000..2cc65a2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.view.</span>selectedMulti</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置是否允许同时选中多个节点。</p> + <p>默认值: true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 支持 / 不支持 同时选中多个节点</p> + <p class="highlight_red">1、设置为 true时,按下 Ctrl 或 Cmd 键可以选中多个节点</p> + <p class="highlight_red">2、设置为 true / false 都不影响按下 Ctrl 或 Cmd 键可以让已选中的节点取消选中状态( 取消选中状态可以参考 setting.view.autoCancelSelected )</p> + </div> + <h3>setting 举例</h3> + <h4>1. 禁止多点同时选中的功能</h4> + <pre xmlns=""><code>var setting = { + view: { + selectedMulti: false + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html new file mode 100644 index 0000000..ebe423c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html @@ -0,0 +1,44 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showIcon</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 是否显示节点的图标。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 显示 / 隐藏 图标</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置是否显示图标的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置 zTree 不显示图标</h4> + <pre xmlns=""><code>var setting = { + view: { + showIcon: false + } +}; +......</code></pre> + <h4>2. 设置 zTree 仅仅 level=2 的节点不显示图标</h4> + <pre xmlns=""><code>function showIconForTree(treeId, treeNode) { + return treeNode.level != 2; +}; +var setting = { + view: { + showIcon: showIconForTree + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html new file mode 100644 index 0000000..02ab5eb --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.view.</span>showLine</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 是否显示节点之间的连线。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 显示 / 不显示 连线</p> + </div> + <h3>setting 举例</h3> + <h4>1. 设置 zTree 不显示节点之间的连线</h4> + <pre xmlns=""><code>var setting = { + view: { + showLine: false + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html new file mode 100644 index 0000000..5bcb860 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html @@ -0,0 +1,46 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showTitle</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 是否显示节点的 title 提示信息(即节点 DOM 的 title 属性)。</p> + <p class="highlight_red">请务必与 <span class="highlight_red">setting.data.key.title</span> 同时使用。</p> + <p>默认值:true</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 显示 / 隐藏 提示信息</p> + <p class="highlight_red">如果 setting.view.showTitle = true & setting.data.key.title = '',zTree 会自动使用 setting.data.key.name 指定的节点名称当做 title</p> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeId</b><span>String</span></h4> + <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要设置是否显示提示信息的节点 JSON 数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值同 Boolean 格式的数据</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置 zTree 不显示提示信息</h4> + <pre xmlns=""><code>var setting = { + view: { + showTitle: false + } +}; +......</code></pre> + <h4>2. 设置 zTree 仅仅 level=2 的节点不显示提示信息</h4> + <pre xmlns=""><code>function showTitleForTree(treeId, treeNode) { + return treeNode.level != 2; +}; +var setting = { + view: { + showTitle: showTitleForTree + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html new file mode 100644 index 0000000..c22a8c0 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">setting.view.</span>txtSelectedEnable</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 是否允许可以选择 zTree DOM 内的文本。</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true / false 分别表示 允许 / 不允许 选择 zTree Dom 内的文本</p> + </div> + <h3>setting & function 举例</h3> + <h4>1. 设置 zTree 允许选择文本</h4> + <pre xmlns=""><code>var setting = { + view: { + txtSelectedEnable: true + } +}; +......</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html new file mode 100644 index 0000000..fa37899 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">treeNode.</span>check_Child_State</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于设置节点的子节点的 checkBox / radio 的半选状态。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">v3.x 针对节点数据对象提供 treeNode.getCheckStatus() 方法获取标准的半选状态</p> + <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p> + <p>默认值:true</p> + </div> + </div> + <h3>Number 格式说明</h3> + <div class="desc"> + <p>规则如下:</p> + <table width="100%" border="0" cellspacing="1" cellpadding="0"> + <thead> + <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr> + <tr><td>treeNode.check_Child_State</td><td>勾选状态说明</td></tr> + </thead> + <tbody> + <tr><td>-1</td><td>不存在子节点 或 子节点全部设置为 nocheck = true</td></tr> + <tr><td>0</td><td>无 子节点被勾选</td></tr> + <tr><td>1</td><td>部分 子节点被勾选</td></tr> + <tr><td>2</td><td>全部 子节点被勾选</td></tr> + </tbody> + </table> + <br/> + <table width="100%" border="0" cellspacing="1" cellpadding="0"> + <thead> + <tr><td colspan="4">setting.check.checkType = "radio"</td></tr> + <tr><td>treeNode.check_Child_State</td><td>勾选状态说明</td></tr> + </thead> + <tbody> + <tr><td>-1</td><td>不存在子节点 或 子节点全部设置为 nocheck = true</td></tr> + <tr><td>0</td><td>无 子节点被勾选</td></tr> + <tr><td>2</td><td>有 子节点被勾选</td></tr> + </tbody> + </table> + </div> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html new file mode 100644 index 0000000..785aec9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>check_Focus</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于设置节点的 checkBox / radio 的 focus 状态。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p>true 表示当前鼠标移动到输入框内</p> + <p>false 表示当前鼠标移动到输入框外</p> + </div> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html new file mode 100644 index 0000000..049d6ba --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>checked</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点的 checkBox / radio 的 勾选状态。<span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false 时有效]</span></p> + <p class="highlight_red">1、如果不使用 checked 属性设置勾选状态,请修改 setting.data.key.checked </p> + <p class="highlight_red">2、建立 treeNode 数据时设置 treeNode.checked = true 可以让节点的输入框默认为勾选状态</p> + <p class="highlight_red">3、修改节点勾选状态,可以使用 treeObj.checkNode / checkAllNodes / updateNode 方法,具体使用哪种请根据自己的需求而定</p> + <p class="highlight_red">4、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p>true 表示节点的输入框被勾选</p> + <p>false 表示节点的输入框未勾选</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 初始化的数据设置 默认为勾选状态</h4> + <pre xmlns=""><code>var nodes = [ +{ "id":1, "name":"test1", checked:true }, +{ "id":2, "name":"test2", checked:true } +]</code></pre> + <h4>2. 获取第一个根节点的勾选状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var checked = treeObj.getNodes()[0].checked; +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html new file mode 100644 index 0000000..cab717e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>checkedOld</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点的 checkBox / radio 在初始化时的 勾选状态。<span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false 时有效]</span></p> + <p class="highlight_red">1、zTree 初始化节点数据时会对此属性进行赋值,因此请勿对此属性初始化</p> + <p class="highlight_red">2、如需配合 zTreeObj.getChangeCheckedNodes 方法实现特殊功能,可以根据需求在使用中自行修改 checkedOld 数据</p> + <p>默认值:checked的初始化值</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p>true 表示节点初始化时 输入框被勾选</p> + <p>false 表示节点初始化时 输入框未勾选</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 获取第一个根节点的初始勾选状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var checkedOld = treeObj.getNodes()[0].checkedOld; +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html new file mode 100644 index 0000000..4bab835 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Array(JSON)</span><span class="path">treeNode.</span>children</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点的子节点数据集合。</p> + <p class="highlight_red">1、如果不使用 children 属性保存子节点数据,请修改 setting.data.key.children </p> + <p class="highlight_red">2、异步加载时,对于设置了 isParent = true 的节点,在展开时将进行异步加载</p> + <p>默认值:无</p> + </div> + </div> + <h3>Array(JSON) 格式说明</h3> + <div class="desc"> + <p>标准的 JSON 数据对象</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 初始化的标准嵌套格式的 JSON 数据对象</h4> + <pre xmlns=""><code>var nodes = [ +{ "id":1, "name":"test1", + children: [ + { "id":3, "name":"test3"}, + { "id":4, "name":"test4"}, + { "id":5, "name":"test5"} + ] +}, +{ "id":2, "name":"test2" } +]</code></pre> + <h4>2. 获取第一个根节点的子节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes()[0].children; +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html new file mode 100644 index 0000000..e6bb032 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>1、设置节点的 checkbox / radio 是否禁用 <span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p> + <p class="highlight_red">3、请勿对已加载的节点修改此属性,禁止 或 取消禁止 请使用 setChkDisabled() 方法</p> + <p class="highlight_red">4、初始化时,如果需要子孙节点继承父节点的 chkDisabled 属性,请设置 setting.check.chkDisabledInherit 属性</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p class="highlight_red">true 表示此节点的 checkbox / radio 被禁用。</p> + <p class="highlight_red">false 表示此节点的 checkbox / radio 可以使用。</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 禁用节点 checkbox / radio </h4> + <pre xmlns=""><code>var nodes = [ + { "id":1, "name":"test1", "checked":true, "chkDisabled":true}, + { "id":2, "name":"test2", "chkDisabled":true}, + { "id":3, "name":"test3"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html new file mode 100644 index 0000000..833c678 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>click</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>最简单的 click 事件操作。相当于 onclick="..." 的内容。 如果操作较复杂,请使用 onClick 事件回调函数。</p> + <p class="highlight_red">由于 IE 对于 onclick 和 click事件共存时的处理与其他浏览器不同,所以请不要利用此参数控制是否允许跳转的操作(例如:treeNode.click = "return false;")。如有类似需求,请不要使用 url 属性设置网址,同时利用 onClick 回调函数控制跳转。</p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>标准 javascript 语法, 例如:alert("test"); 等</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置某节点点击时,弹出信息框</h4> + <pre xmlns=""><code>var nodes = [ + { "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"}, + ...... +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html new file mode 100644 index 0000000..b2fb0d9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html @@ -0,0 +1,15 @@ +<div class="apiDetail"> +<div> + <h2><span>?</span><span class="path">treeNode.</span>* DIY *</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于保存节点的其他自定义数据信息,不要与 zTree 使用的属性相同即可,用户可随意设定。</p> + </div> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置节点的备用英文名称</h4> + <pre xmlns=""><code>var node = { "id":1, "name":"test1", "ename":"test eName"};</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html new file mode 100644 index 0000000..51162b8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>editNameFlag</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>用于记录节点是否处于编辑名称状态。<span class="highlight_red">[setting.edit.enable = true 时有效]</span></p> + <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p>true 表示节点处于编辑名称状态</p> + <p>false 表示节点未处于编辑名称状态</p> + </div> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html new file mode 100644 index 0000000..fc20eac --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">treeNode.</span>getCheckStatus</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取节点 checkbox / radio 半勾选状态。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>JSON</span></h4> + <pre xmlns=""><code>{ + checked: true, //等同于 treeNode.checked + half: true //规则见下表 +}</code></pre> + <table width="100%" border="0" cellspacing="1" cellpadding="0"> + <thead> + <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr> + <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr> + </thead> + <tbody> + <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr> + <tr><td colspan="4"> </td></tr> + <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr> + <tr><td>true</td><td>0</td><td>false</td><td>true</td></tr> + <tr><td>true</td><td>1</td><td>false</td><td>true</td></tr> + <tr><td>true</td><td>2</td><td>false</td><td>false</td></tr> + <tr><td colspan="4"> </td></tr> + <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr> + <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr> + <tr><td>false</td><td>1</td><td>false</td><td>true</td></tr> + <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr> + </tbody> + </table> + <br/> + <table width="100%" border="0" cellspacing="1" cellpadding="0"> + <thead> + <tr><td colspan="4">setting.check.checkType = "radio"</td></tr> + <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr> + </thead> + <tbody> + <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr> + <tr><td colspan="4"> </td></tr> + <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr> + <tr><td>true</td><td>0</td><td>false</td><td>false</td></tr> + <tr><td>true</td><td>2</td><td>false</td><td>true</td></tr> + <tr><td colspan="4"> </td></tr> + <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr> + <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr> + <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr> + </tbody> + </table> + </div> + <h3>treeNode 举例</h3> + <h4>1. 获取第一个根节点的半选状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var halfCheck = treeObj.getNodes()[0].getCheckStatus(); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html new file mode 100644 index 0000000..7a0fa5c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">treeNode.</span>getNextNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取与 treeNode 节点相邻的后一个节点。</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>JSON</span></h4> + <p>与 treeNode 节点相邻的后一个节点。</p> + <p class="highlight_red">如果 treeNode 是最后一个节点,返回 null 。</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 获取当前被选中的节点的下一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var node = sNodes[0].getNextNode(); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html new file mode 100644 index 0000000..31309a6 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">treeNode.</span>getParentNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取 treeNode 节点的父节点。</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>JSON</span></h4> + <p> treeNode 节点的父节点 JSON 数据对象。</p> + <p class="highlight_red">如果 treeNode 是根节点,返回 null 。</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 获取当前被选中的节点的父节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var node = sNodes[0].getParentNode(); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html new file mode 100644 index 0000000..9d84184 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">treeNode.</span>getPreNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取与 treeNode 节点相邻的前一个节点。</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>JSON</span></h4> + <p>与 treeNode 节点相邻的前一个节点。</p> + <p class="highlight_red">如果 treeNode 是第一个节点,返回 null 。</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 获取当前被选中的节点的前一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var node = sNodes[0].getPreNode(); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html new file mode 100644 index 0000000..23ac744 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>强制节点的 checkBox / radio 的 半勾选状态。<span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false 时有效]</span></p> + <p class="highlight_red">1、强制为半勾选状态后,不再进行自动计算半勾选状态</p> + <p class="highlight_red">2、设置 treeNode.halfCheck = false 或 null 才能恢复自动计算半勾选状态</p> + <p class="highlight_red">3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p>true 表示节点的输入框 强行设置为半勾选</p> + <p>false 表示节点的输入框 根据 zTree 的规则自动计算半勾选状态</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 初始化的数据设置 默认为半勾选状态</h4> + <pre xmlns=""><code>var nodes = [ +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true }, +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true }, +{ "id":3, "name":"test3", isParent:true, checked:true }, +{ "id":4, "name":"test4", isParent:true, checked:false } +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html new file mode 100644 index 0000000..69c5db1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html @@ -0,0 +1,33 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>icon</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点自定义图标的 URL 路径。</p> + <p class="highlight_red">1、父节点如果只设置 icon ,会导致展开、折叠时都使用同一个图标</p> + <p class="highlight_red">2、父节点展开、折叠使用不同的个性化图标需要同时设置 treeNode.iconOpen / treeNode.iconClose 两个属性</p> + <p class="highlight_red">3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性</p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>图标图片的 url 可以是相对路径也可以是绝对路径</p> + <p class="highlight_red">设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置节点的个性化图标</h4> + <pre xmlns=""><code>var nodes = [ + //父节点展开 折叠时使用相同的图标 + { name:"父节点1", icon:"/img/parent.gif"}, + + //父节点展开 折叠时分别使用不同的图标 + { name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, + + //叶子节点个性化图标 + { name:"叶子节点", icon:"/img/leaf.gif"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html new file mode 100644 index 0000000..f51da9c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html @@ -0,0 +1,33 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>iconClose</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>父节点自定义折叠时图标的 URL 路径。</p> + <p class="highlight_red">1、此属性只针对父节点有效</p> + <p class="highlight_red">2、此属性必须与 iconOpen 同时使用</p> + <p class="highlight_red">3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性</p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>图标图片的 url 可以是相对路径也可以是绝对路径</p> + <p class="highlight_red">设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置节点的个性化图标</h4> + <pre xmlns=""><code>var nodes = [ + //父节点展开 折叠时使用相同的图标 + { name:"父节点1", icon:"/img/parent.gif"}, + + //父节点展开 折叠时分别使用不同的图标 + { name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, + + //叶子节点个性化图标 + { name:"叶子节点", icon:"/img/leaf.gif"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html new file mode 100644 index 0000000..29c9baa --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>iconOpen</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>父节点自定义展开时图标的 URL 路径。</p> + <p class="highlight_red">1、此属性只针对父节点有效</p> + <p class="highlight_red">2、此属性必须与 iconClose 同时使用</p> + <p class="highlight_red">3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性</p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>图标图片的 url 可以是相对路径也可以是绝对路径</p> + <p class="highlight_red">设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置节点的个性化图标</h4> + <pre xmlns=""><code>var nodes = [ + //父节点展开 折叠时使用相同的图标 + { name:"父节点1", icon:"/img/parent.gif"}, + + //父节点展开 折叠时分别使用不同的图标 + { name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, + + //叶子节点个性化图标 + { name:"叶子节点", icon:"/img/leaf.gif"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html new file mode 100644 index 0000000..d5d9726 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>iconSkin</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点自定义图标的 className</p> + <p class="highlight_red">1、需要修改 css,增加相应 className 的设置</p> + <p class="highlight_red">2、css 方式简单、方便,并且同时支持父节点展开、折叠状态切换图片</p> + <p class="highlight_red">3、css 建议采用图片分割渲染的方式以减少反复加载图片,并且避免图片闪动</p> + <p class="highlight_red">4、zTree v3.x 的 iconSkin 同样支持 IE6</p> + <p class="highlight_red">5、如果想直接使用 图片的Url路径 设置节点的个性化图标,需要设置 treeNode.icon / treeNode.iconOpen / treeNode.iconClose 属性</p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>设置个性图标的 className</p> + </div> + <h3>css & treeNode 举例</h3> + <h4>1. 设置节点的个性化图标</h4> + <pre xmlns=""><code>css 内容: +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...} + +.ztree li span.button.diy02_ico_open{...} +.ztree li span.button.diy02_ico_close{...} + +.ztree li span.button.diy03_ico_docu{...} + +js中节点数据: +var nodes = [ + //父节点展开 折叠时使用相同的图标 + { name:"父节点1", iconSkin:"diy01"}, + + //父节点展开 折叠时分别使用不同的图标 + { name:"父节点2", iconSkin:"diy02"}, + + //叶子节点个性化图标 + { name:"叶子节点", iconSkin:"diy03"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html new file mode 100644 index 0000000..330c120 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>isAjaxing</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录 treeNode 节点是否正在进行异步加载。</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示节点正在进行异步加载</p> + <p> false 表示节点没有进行异步加载</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点是否节点正在进行异步加载</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var isAjaxing = sNodes[0].isAjaxing; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html new file mode 100644 index 0000000..83b80bd --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>isFirstNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录 treeNode 节点是否为同级节点中的第一个节点。</p> + <p class="highlight_red">使用 exhide 扩展后,只针对显示的节点设置此属性</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示是同级节点中的第一个节点</p> + <p> false 表示不是同级节点中的第一个节点</p> + <p class="highlight_red">节点被隐藏后,isFirstNode = false</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点是否是同级节点中的第一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var isFirstNode = sNodes[0].isFirstNode; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html new file mode 100644 index 0000000..5fb388e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>判断 treeNode 节点是否被隐藏。</p> + <p class="highlight_red">1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏</p> + <p class="highlight_red">2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示被隐藏</p> + <p> false 表示被显示</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看第一个根节点是否被隐藏</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getNodes(); +if (sNodes.length > 0) { + var isHidden = sNodes[0].isHidden; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html new file mode 100644 index 0000000..dcef6eb --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html @@ -0,0 +1,19 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>isHover</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录节点 的 hover 状态,主要用于 setting.view.addHoverDom / removeHoverDom 。</p> + <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p>true 表示节点处于 hover 状态</p> + <p>false 表示节点未处于 hover 状态</p> + </div> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html new file mode 100644 index 0000000..5d5ac82 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>isLastNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录 treeNode 节点是否为同级节点中的最后一个节点。</p> + <p class="highlight_red">使用 exhide 扩展后,只针对显示的节点设置此属性</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示是同级节点中的最后一个节点</p> + <p> false 表示不是同级节点中的最后一个节点</p> + <p class="highlight_red">节点被隐藏后,isLastNode = false</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点是否是同级节点中的最后一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var isLastNode = sNodes[0].isLastNode; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html new file mode 100644 index 0000000..bab887e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>isParent</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录 treeNode 节点是否为父节点。</p> + <p class="highlight_red">1、初始化节点数据时,根据 treeNode.children 属性判断,有子节点则设置为 true,否则为 false</p> + <p class="highlight_red">2、初始化节点数据时,如果设定 treeNode.isParent = true,即使无子节点数据,也会设置为父节点</p> + <p class="highlight_red">3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示是父节点</p> + <p> false 表示不是父节点</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点是否是父节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var isParent = sNodes[0].isParent; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html new file mode 100644 index 0000000..aff3254 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Number</span><span class="path">treeNode.</span>level</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录节点的层级</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>Number 格式说明</h3> + <div class="desc"> + <p class="highlight_red">根节点 level = 0,依次递增</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点的级数</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var level = sNodes[0].level; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html new file mode 100644 index 0000000..918f2b4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>name</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点名称。</p> + <p class="highlight_red">1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name </p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置节点的名称为 test1、test2、test3</h4> + <pre xmlns=""><code>var nodes = [ + { "id":1, "name":"test1"}, + { "id":2, "name":"test2"}, + { "id":3, "name":"test3"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html new file mode 100644 index 0000000..afaa62f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html @@ -0,0 +1,26 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>nocheck</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>1、设置节点是否隐藏 checkbox / radio <span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p class="highlight_red">true 表示此节点不显示 checkbox / radio,不影响勾选的关联关系,不影响父节点的半选状态。</p> + <p class="highlight_red">false 表示节点具有正常的勾选功能</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 不显示某个节点的 checkbox / radio </h4> + <pre xmlns=""><code>var nodes = [ + { "id":1, "name":"test1", "nocheck":true}, + { "id":2, "name":"test2"}, + { "id":3, "name":"test3"} +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html new file mode 100644 index 0000000..1eb9aec --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html @@ -0,0 +1,30 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>open</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录 treeNode 节点的 展开 / 折叠 状态。</p> + <p class="highlight_red">1、初始化节点数据时,如果设定 treeNode.open = true,则会直接展开此节点</p> + <p class="highlight_red">2、叶子节点 treeNode.open = false</p> + <p class="highlight_red">3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p> + <p class="highlight_red">4、非异步加载模式下,无子节点的父节点设置 open=true 后,可显示为展开状态,但异步加载模式下不会生效。(v3.5.15+) </p> + <p>默认值:false</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示节点为 展开 状态</p> + <p> false 表示节点为 折叠 状态</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点的 展开 / 折叠 状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var isOpen = sNodes[0].open; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html new file mode 100644 index 0000000..d228a23 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>parentTId</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>treeNode 节点的父节点唯一标识 tId。</p> + <p class="highlight_red">1、v3.x 用 parentTId 替换了原先的 parentNode 属性,同时增加了 getParentNode 方法,以避免原先 parentNode 造成的 clone 死循环</p> + <p class="highlight_red">2、初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>zTree 内部生成的节点唯一标识,请参考 treeNode.tId 的说明</p> + <p class="highlight_red">如果 treeNode 是根节点,则 parentTId = null</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点的父节点 tId</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var parentTId = sNodes[0].parentTId; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html new file mode 100644 index 0000000..c32285c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>tId</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>treeNode 节点的唯一标识 tId。</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>生成规则:setting.treeId + "_" + 内部计数</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点的 tId</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var tId = sNodes[0].tId; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html new file mode 100644 index 0000000..f7c1b6b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>target</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置点击节点后在何处打开 url。<span class="highlight_red">[treeNode.url 存在时有效]</span></p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称 </p> + <p>省略此属性,则默认为 "_blank"</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置点击某节点时,弹出新页面</h4> + <pre xmlns=""><code>var nodes = [ + { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"}, + ...... +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html new file mode 100644 index 0000000..0b2e007 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>String</span><span class="path">treeNode.</span>url</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>节点链接的目标 URL</p> + <p class="highlight_red">1、编辑模式 (setting.edit.enable = true) 下此属性功能失效,如果必须使用类似功能,请利用 onClick 事件回调函数自行控制。</p> + <p class="highlight_red">2、如果需要在 onClick 事件回调函数中进行跳转控制,那么请将 URL 地址保存在其他自定义的属性内,请勿使用 url</p> + <p>默认值:无</p> + </div> + </div> + <h3>String 格式说明</h3> + <div class="desc"> + <p>同超链接 href 属性</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 设置某节点点击时,跳转到 g.cn</h4> + <pre xmlns=""><code>var nodes = [ + { "id":1, "name":"Google CN", "url":"http://g.cn"}, + ...... +]</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html new file mode 100644 index 0000000..00e48f3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Boolean</span><span class="path">treeNode.</span>zAsync</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>记录 treeNode 节点是否已经进行过异步加载,避免父节点反复异步加载数据。</p> + <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p> + <p class="highlight_red">默认值:false (无子节点的父节点); true (有子节点的父节点 & 叶子节点)</p> + </div> + </div> + <h3>Boolean 格式说明</h3> + <div class="desc"> + <p> true 表示父节点展开时不需要自动异步加载</p> + <p> false 表示父节点展开时需要自动异步加载</p> + <p class="highlight_red"> 此参数不会对 reAsyncChildNodes 方法造成任何影响</p> + </div> + <h3>treeNode 举例</h3> + <h4>1. 查看当前被选中的节点是否节点是否需要自动异步加载</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var sNodes = treeObj.getSelectedNodes(); +if (sNodes.length > 0) { + var zAsync = sNodes[0].zAsync; +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html new file mode 100644 index 0000000..eac2152 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(parentNode, newNodes, isSilent)</span><span class="path">zTreeObj.</span>addNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>添加节点。</p> + <p class="highlight_red">v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>parentNode</b><span>JSON</span></h4> + <p>指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>newNodes</b><span>JSON / Array(JSON)</span></h4> + <p>需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”</p> + <p class="highlight_red">1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中</p> + <p class="highlight_red">2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明</p> + <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> + <p>设定增加节点后是否自动展开父节点。</p> + <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>返回值是 zTree 最终添加的节点数据集合</p> + <p class="highlight_red">如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内</p> + <p class="highlight_red">请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!</p> + </div> + <h3>function 举例</h3> + <h4>1. 对于 id = "tree" 的 zTree 增加 1 个根节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var newNode = {name:"newNode1"}; +newNode = treeObj.addNodes(null, newNode); +</code></pre> + <h4>2. 对于 id = "tree" 的 zTree 增加 3 个根节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}]; +newNodes = treeObj.addNodes(null, newNodes); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html new file mode 100644 index 0000000..9df098f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(newName)</span><span class="path">zTreeObj.</span>cancelEditName</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>取消节点的编辑名称状态,可以恢复原名称,也可以强行赋给新的名称。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>newName</b><span>String</span></h4> + <p>重新给定的新名称。</p> + <p class="highlight_red">如果省略此参数,则恢复原名称。</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 取消 zTree 的编辑名称状态,恢复该节点原有名称</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.cancelEditName(); +</code></pre> + <h4>2. 取消 zTree 的编辑名称状态,并且重新设定该节点名称</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.cancelEditName("test_new_name"); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html new file mode 100644 index 0000000..26d5706 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>cancelSelectedNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>取消节点的选中状态。</p> + <p class="highlight_red">v3.x 支持多点同时选中,因此取消选中状态可以全部取消,也可以单独取消某个节点的选中状态。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要取消选中状态的节点。</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <p class="highlight_red">如果省略此参数,则将取消全部被选中节点的选中状态。</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 取消当前所有被选中节点的选中状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.cancelSelectedNode(); +</code></pre> + <h4>2. 取消当前第一个被选中节点的选中状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNode(); +if (nodes.length>0) { + treeObj.cancelSelectedNode(nodes[0]); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html new file mode 100644 index 0000000..d6eaadf --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>勾选 或 取消勾选 全部节点。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]</span></p> + <p class="highlight_red">此方法不会触发 beforeCheck / onCheck 事件回调函数。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>checked</b><span>Boolean</span></h4> + <p>checked = true 表示勾选全部节点</p> + <p>checked = false 表示全部节点取消勾选</p> + <p class="highlight_red">不会影响 treeNode.nochecked = true 的节点。</p> + <p class="highlight_red">不会影响未加载的节点。</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 勾选全部节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.checkAllNodes(true); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html new file mode 100644 index 0000000..cb8bb7d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode, checked, checkTypeFlag, callbackFlag)</span><span class="path">zTreeObj.</span>checkNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>勾选 或 取消勾选 单个节点。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">v3.x 中 checkNode() 方法可以触发 beforeCheck / onCheck 事件回调函数。便于减少冗余代码</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要勾选 或 取消勾选 的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>checked</b><span>Boolean</span></h4> + <p>checked = true 表示勾选节点</p> + <p>checked = false 表示节点取消勾选</p> + <p class="highlight_red">省略此参数,则根据对此节点的勾选状态进行 toggle 切换</p> + <p class="highlight_red">不影响 treeNode.nochecked = true 的节点。</p> + <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4> + <p>checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作</p> + <p>checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作</p> + <p class="highlight_red">checkTypeFlag = false 且 treeNode.checked = checked 时,不会触发回调函数,直接返回</p> + <p class="highlight_red">不影响父子节点中 treeNode.nochecked = true 的节点。</p> + <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4> + <p>callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数</p> + <p>callbackFlag = false 表示执行此方法时不触发事件回调函数</p> + <p class="highlight_red">省略此参数,等同于 false</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 勾选当前选中的节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +for (var i=0, l=nodes.length; i < l; i++) { + treeObj.checkNode(nodes[i], true, true); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html new file mode 100644 index 0000000..f1b624b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html @@ -0,0 +1,44 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>copyNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>复制节点。</p> + <p class="highlight_red">v3.x 复制节点时进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>targetNode</b><span>JSON</span></h4> + <p>要复制到的目标节点 JSON 数据</p> + <p class="highlight_red">如果复制成为根节点,请设置 targetNode 为 null 即可</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要被复制的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>moveType</b><span>String</span></h4> + <p>复制到目标节点的相对位置</p> + <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p> + <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> + <p>设定复制节点后是否自动展开父节点。</p> + <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>返回值是最终加入到 zTree 内的节点数据</p> + <p class="highlight_red">请务必记住:返回值中的数据对象 是 treeNode 被 clone 后的,所以绝对不相等!</p> + </div> + <h3>function 举例</h3> + <h4>1. 将根节点中第二个节点 复制成为 第一个节点的子节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.copyNode(nodes[0], nodes[1], "inner"); +</code></pre> + <h4>2. 将根节点中第二个节点 复制成为 第一个节点的前一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.copyNode(nodes[0], nodes[1], "before"); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html new file mode 100644 index 0000000..d9f6da0 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeId)</span><span class="path">zTreeObj.</span>destroy</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>从 zTree v3.4 开始提供销毁 zTree 的方法。</p> + <p>1、用此方法可以销毁 zTreeObj 代表的 zTree。</p> + <p class="highlight_red">2、销毁当前页面全部的 zTree,也可以使用 $.fn.zTree.destroy() 方法。</p> + <p class="highlight_red">3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。</p> + </div> + </div> + <h3>Function Parameter Descriptions</h3> + <div class="desc"> + <h4><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 销毁 id 为 "treeDemo" 的 zTree</h4> + <pre xmlns=""><code>var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo"); +zTreeObj.destroy(); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html new file mode 100644 index 0000000..2d4eaf7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>editName</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置某节点进入编辑名称状态。</p> + <p class="highlight_red">1、如果需要用 js 取消编辑名称状态,请使用 cancelEditName(newName) 方法。</p> + <p class="highlight_red">2、可利用此方法让当前正编辑的节点 input 输入框获取焦点。</p> + <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>指定进入编辑名称状态的节点 JSON 数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 设置根节点第一个节点进入编辑名称状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.editName(nodes[0]); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html new file mode 100644 index 0000000..aaa3e46 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(expandFlag)</span><span class="path">zTreeObj.</span>expandAll</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>展开 / 折叠 全部节点</p> + <p class="highlight_red">此方法不会触发 beforeExpand / onExpand 和 beforeCollapse / onCollapse 事件回调函数。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>expandFlag</b><span>Boolean</span></h4> + <p>expandFlag = true 表示 展开 全部节点</p> + <p>expandFlag = false 表示 折叠 全部节点</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值表示最终实际操作情况</p> + <p>true 表示 展开 全部节点</p> + <p>false 表示 折叠 全部节点</p> + <p>null 表示 不存在任何父节点</p> + </div> + <h3>function 举例</h3> + <h4>1. 展开全部节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.expandAll(true); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html new file mode 100644 index 0000000..5d96d3f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode, expandFlag, sonSign, focus, callbackFlag)</span><span class="path">zTreeObj.</span>expandNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>展开 / 折叠 指定的节点</p> + <p class="highlight_red">v3.x 中执行此方法可以触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数。便于减少冗余代码</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要 展开 / 折叠 的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>expandFlag</b><span>Boolean</span></h4> + <p>expandFlag = true 表示 展开 节点</p> + <p>expandFlag = false 表示 折叠 节点</p> + <p class="highlight_red">省略此参数,则根据对此节点的展开状态进行 toggle 切换</p> + <h4 class="topLine"><b>sonSign</b><span>Boolean</span></h4> + <p>sonSign = true 表示 全部子孙节点 进行与 expandFlag 相同的操作</p> + <p>sonSign = false 表示 只影响此节点,对于其 子孙节点无任何影响</p> + <p class="highlight_red">sonSign = false 且 treeNode.open = expandFlag 时,不会触发回调函数,直接返回</p> + <p class="highlight_red">省略此参数,等同于 false</p> + <h4 class="topLine"><b>focus</b><span>Boolean</span></h4> + <p>focus = true 表示 展开 / 折叠 操作后,通过设置焦点保证此焦点进入可视区域内</p> + <p>focus = false 表示 展开 / 折叠 操作后,不设置任何焦点</p> + <p class="highlight_red">省略此参数,等同于 true</p> + <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4> + <p>callbackFlag = true 表示执行此方法时触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数</p> + <p>callbackFlag = false 表示执行此方法时不触发事件回调函数</p> + <p class="highlight_red">省略此参数,等同于 false</p> + <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> + <p>返回值表示最终实际操作情况</p> + <p>true 表示 展开 节点</p> + <p>false 表示 折叠 节点</p> + <p>null 表示 不是父节点</p> + </div> + <h3>function 举例</h3> + <h4>1. 展开当前选择的第一个节点(包括其全部子节点)</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +if (nodes.length>0) { + treeObj.expandNode(nodes[0], true, true, true); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 0000000..ba86534 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">zTreeObj.</span>getChangeCheckedNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取输入框勾选状态被改变的节点集合(与原始数据 checkedOld 对比)。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>Array(JSON)</span></h4> + <p>返回全部勾选状态被改变的节点集合 Array</p> + <p class="highlight_red">如果需要获取每次操作后全部被改变勾选状态的节点数据,请在每次勾选操作后,遍历所有被改变勾选状态的节点数据,让其 checkedOld = checked 就可以了。</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取当前勾选状态被改变的节点集合</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getChangeCheckedNodes(); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html new file mode 100644 index 0000000..85f4ba0 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>getCheckedNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取输入框被勾选 或 未勾选的节点集合。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>checked</b><span>Boolean</span></h4> + <p>checked = true 表示获取 被勾选 的节点集合</p> + <p>checked = false 表示获取 未勾选 的节点集合</p> + <p class="highlight_red">省略此参数,等同于 true。</p> + <p class="highlight_red">对于 treeNode.nochecked = true 的节点不进行获取。</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>返回全部符合要求的节点集合 Array</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取当前被勾选的节点集合</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getCheckedNodes(true); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html new file mode 100644 index 0000000..89e72c7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodeByParam</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>key</b><span>String</span></h4> + <p>需要精确匹配的属性名称</p> + <h4 class="topLine"><b>value</b><span>?</span></h4> + <p>需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可</p> + <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> + <p>搜索范围,指定在某个父节点下的子节点中进行搜索</p> + <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>匹配精确搜索的节点数据</p> + <p class="highlight_red">1、如无结果,返回 null</p> + <p class="highlight_red">2、如有多个节点满足查询条件,只返回第一个匹配到的节点</p> + </div> + <h3>function 举例</h3> + <h4>1. 查找 id = 1 的节点数据</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var node = treeObj.getNodeByParam("id", 1, null); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html new file mode 100644 index 0000000..76fcc48 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(tId)</span><span class="path">zTreeObj.</span>getNodeByTId</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>根据 zTree 的唯一标识 tId 快速获取节点 JSON 数据对象</p> + <p class="highlight_red">通过内部的 cache 获取,不需要遍历节点。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>tId</b><span>String</span></h4> + <p>节点在 zTree 内的唯一标识 tId</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>tId 对应的节点 JSON 数据对象</p> + <p class="highlight_red">如无结果,返回 null</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取 tId = "tree_10" 的节点数据</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var node = treeObj.getNodeByTId("tree_10"); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html new file mode 100644 index 0000000..b2c757d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>getNodeIndex</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取某节点在同级节点中的序号(从0开始)</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要查询顺序的节点 JSON 数据对象</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Number</span></h4> + <p class="highlight_red">返回值从 0 开始计数</p> + <p class="highlight_red">如果不存在该节点数据,返回 -1</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取当前选中的第一个节点在同级节点中的序号</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +if (nodes.length>0) { + var index = treeObj.getNodeIndex(nodes[0]); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html new file mode 100644 index 0000000..b368535 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">zTreeObj.</span>getNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取 zTree 的全部节点数据</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>Array(JSON)</span></h4> + <p>全部节点数据</p> + <p class="highlight_red">1、Array 仅仅是根节点的集合(默认情况子节点都处于 children 属性下); </p> + <p class="highlight_red">2、如需遍历全部节点需要利用递归,或利用 transformToArray 方法 将数据变成简单的 Array 集合</p> + <p class="highlight_red">3、对于异步加载模式下,尚未加载的子节点是无法通过此方法获取的。</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取全部节点数据</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html new file mode 100644 index 0000000..6917425 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(filter, isSingle, parentNode, invokeParam)</span><span class="path">zTreeObj.</span>getNodesByFilter</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>根据自定义规则搜索节点数据 JSON 对象集合 或 单个节点数据</p> + <p class="highlight_red">可自定义复杂的搜索规则</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>filter</b><span>Function</span></h4> + <p>自定义过滤器函数 function filter(node) {...}</p> + <p>filter 参数:node (节点数据 JSON)</p> + <p>filter 返回值:boolean (true 表示符合搜索条件;false 表示不符合搜索条件)</p> + <h4 class="topLine"><b>isSingle</b><span>Boolean</span></h4> + <p>isSingle = true 表示只查找单个节点</p> + <p>isSingle = false 表示查找节点集合</p> + <p class="highlight_red">忽略此参数,表示查找节点集合</p> + <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> + <p>可以指定在某个父节点下的子节点中搜索</p> + <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p> + <h4 class="topLine"><b>invokeParam</b><span>任意类型</span></h4> + <p>用户自定义的数据对象,用于 filter 中进行计算</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON) / JSON</span></h4> + <p>isSingle = true 返回 第一个找到的节点数据 JSON,无结果时返回 null</p> + <p>isSingle = false 返回 节点数据集合 Array(JSON),无结果时返回 [ ]</p> + </div> + <h3>function 举例</h3> + <h4>1. 查找 level = 2 & name 中包含 "test" 的节点数据</h4> + <pre xmlns=""><code>function filter(node) { + return (node.level == 2 && node.name.indexOf("test")>-1); +} +...... +var treeObj = $.fn.zTree.getZTreeObj("tree"); +var node = treeObj.getNodesByFilter(filter, true); // 仅查找一个节点 +var nodes = treeObj.getNodesByFilter(filter); // 查找节点集合 +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html new file mode 100644 index 0000000..cf45939 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParam</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象集合</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>key</b><span>String</span></h4> + <p>需要精确匹配的属性名称</p> + <h4 class="topLine"><b>value</b><span>?</span></h4> + <p>需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可</p> + <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> + <p>可以指定在某个父节点下的子节点中搜索</p> + <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>匹配精确搜索的节点数据集合</p> + <p class="highlight_red">如无结果,返回 [ ]</p> + </div> + <h3>function 举例</h3> + <h4>1. 查找 name = "test" 的节点数据</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodesByParam("name", "test", null); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 0000000..04d183f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParamFuzzy</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>根据节点数据的属性搜索,获取条件模糊匹配的节点数据 JSON 对象集合</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>key</b><span>String</span></h4> + <p>需要模糊匹配的属性名称</p> + <h4 class="topLine"><b>value</b><span>String</span></h4> + <p>需要模糊匹配的属性值</p> + <p class="highlight_red">模糊匹配只能针对 String 类型的数据</p> + <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4> + <p>可以指定在某个父节点下的子节点中搜索</p> + <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>匹配模糊搜索的节点数据集合</p> + <p class="highlight_red">如无结果,返回 [ ]</p> + </div> + <h3>function 举例</h3> + <h4>1. 查找 name 包含 "test" 的节点数据</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html new file mode 100644 index 0000000..ab36f8e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">zTreeObj.</span>getSelectedNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>获取 zTree 当前被选中的节点数据集合</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>Array(JSON)</span></h4> + <p>当前被选中的节点数据集合</p> + </div> + <h3>function 举例</h3> + <h4>1. 获取当前被选中的节点数据集合</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html new file mode 100644 index 0000000..a1996b8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>hideNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>隐藏某个节点。</p> + <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p> + <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p> + <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>指定被隐藏的节点 JSON 数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 隐藏根节点第一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.hideNode(nodes[0]); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html new file mode 100644 index 0000000..cf752b5 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>hideNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>隐藏一批节点。</p> + <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p> + <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p> + <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>指定被隐藏的节点 JSON 数据集合</p> + <p class="highlight_red">请务必保证这些节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 隐藏根节点第一个节点的子节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.hideNodes(nodes[0].children); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html new file mode 100644 index 0000000..9c9180b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html @@ -0,0 +1,46 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>moveNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>移动节点。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>targetNode</b><span>JSON</span></h4> + <p>要移动到的目标节点 JSON 数据</p> + <p class="highlight_red">如果移动成为根节点,请设置 targetNode 为 null 即可</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> + <p>需要被移动的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>moveType</b><span>String</span></h4> + <p>指定移动到目标节点的相对位置</p> + <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p> + <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> + <p>设定移动节点后是否自动展开父节点。</p> + <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p> + <h4 class="topLine"><b>返回值</b><span>JSON</span></h4> + <p>返回值是最终被移动的节点数据,正常情况下与 treeNode 参数完全相同</p> + <p class="highlight_red">如果 返回值 为 null,说明 移动失败,主要原因有:<br/> + 1、targetNode 是 treeNode 父节点,且 moveType = "inner"<br/> + 2、targetNode 是 treeNode 子孙节点 + </p> + </div> + <h3>function 举例</h3> + <h4>1. 将根节点中第二个节点 移动成为 第一个节点的子节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.moveNode(nodes[0], nodes[1], "inner"); +</code></pre> + <h4>2. 将根节点中第二个节点 移动成为 第一个节点的前一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +treeObj.moveNode(nodes[0], nodes[1], "prev"); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 0000000..4a354e2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(parentNode, reloadType, isSilent)</span><span class="path">zTreeObj.</span>reAsyncChildNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>强行异步加载父节点的子节点。<span class="highlight_red">[setting.async.enable = true 时有效]</span></p> + <p class="highlight_red">已经加载过的父节点可反复使用此方法重新加载。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>parentNode</b><span>JSON</span></h4> + <p>指定需要异步加载的父节点 JSON 数据</p> + <p class="highlight_red">1、parentNode = null 时,相当于从根节点 Root 进行异步加载</p> + <p class="highlight_red">2、parentNode.isParent = false 时,不进行异步加载</p> + <p class="highlight_red">3、请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>reloadType</b><span>String</span></h4> + <p>reloadType = "refresh" 表示清空后重新加载。</p> + <p>reloadType != "refresh" 时,表示追加子节点处理。</p> + <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4> + <p>设定异步加载后是否自动展开父节点。</p> + <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 重新异步加载 zTree </h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.reAsyncChildNodes(null, "refresh"); +</code></pre> + <h4>2. 重新异步加载当前选中的第一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +if (nodes.length>0) { + treeObj.reAsyncChildNodes(nodes[0], "refresh"); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html new file mode 100644 index 0000000..09a74ca --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +<div class="apiDetail"> +<div> + <h2><span>Function()</span><span class="path">zTreeObj.</span>refresh</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>刷新 zTree 。</p> + <p class="highlight_red">没有特殊必要,尽量不要使用此方法。单个节点更新请使用 updateNode 方法,异步加载模式下请使用 reAsyncChildNodes 方法。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 刷新 zTree </h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.refresh(); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html new file mode 100644 index 0000000..588639f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(parentNode)</span><span class="path">zTreeObj.</span>removeChildNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>清空某父节点的子节点。</p> + <p class="highlight_red">1、清空子节点后,父节点会自动变为叶子节点,如需要父节点保持父节点状态,请设置 setting.data.keep.parent 属性。</p> + <p class="highlight_red">2、请勿用此方法清空根节点,如果需要清空根节点,直接初始化 zTree,并且设置初始节点为 null 即可。</p> + <p class="highlight_red">3、此方法不会触发任何事件回调函数。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>parentNode</b><span>JSON</span></h4> + <p>需要清空子节点的父节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>将该父节点的子节点数据返回,如果不存在则返回 null</p> + </div> + <h3>function 举例</h3> + <h4>1. 清空选中的第一个节点的子节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +if (nodes && nodes.length>0) { + treeObj.removeChildNodes(nodes[0]); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html new file mode 100644 index 0000000..442f5c7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode, callbackFlag)</span><span class="path">zTreeObj.</span>removeNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>删除节点。</p> + <p class="highlight_red">v3.x 中删除节点可以触发 beforeRemove / onRemove 事件回调函数。便于减少冗余代码</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要被删除的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4> + <p>callbackFlag = true 表示执行此方法时触发 beforeRemove & onRemove 事件回调函数</p> + <p>callbackFlag = false 表示执行此方法时不触发事件回调函数</p> + <p class="highlight_red">省略此参数,等同于 false</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 删除所有选中的节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +for (var i=0, l=nodes.length; i < l; i++) { + treeObj.removeNode(nodes[i]); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html new file mode 100644 index 0000000..6e80d81 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode, addFlag)</span><span class="path">zTreeObj.</span>selectNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>选中指定节点</p> + <p class="highlight_red">v3.x 支持同时选中多个节点。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要被选中的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>addFlag</b><span>Boolean</span></h4> + <p>addFlag = true 表示追加选中,会出现多点同时被选中的情况</p> + <p>addFlag = false 表示单独选中,原先被选中的节点会被取消选中状态</p> + <p class="highlight_red">setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 单独选中根节点中第一个节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +if (nodes.length>0) { + treeObj.selectNode(nodes[0]); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html new file mode 100644 index 0000000..b042ab4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html @@ -0,0 +1,44 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(node, disabled, inheritParent, inheritChildren)</span><span class="path">zTreeObj.</span>setChkDisabled</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>禁用 或 解禁 某个节点的 checkbox / radio <span class="highlight_red">[setting.check.enable = true 时有效]</span></p> + <p class="highlight_red">1、节点的 checkbox / radio 被禁用后,无法勾选或取消勾选,但能够影响父节点的半选状态</p> + <p class="highlight_red">2、请不要直接修改已加载节点的 treeNode.chkDisabled 属性。</p> + <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>需要禁用 或 解禁 checkbox / radio 的节点数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>disabled</b><span>Boolean</span></h4> + <p>disabled = true 表示禁用 checkbox / radio</p> + <p>disabled = false 表示解禁 checkbox / radio</p> + <p class="highlight_red">省略此参数,等同于 disabled = false </p> + <p class="highlight_red">不影响 treeNode.nochecked = true 的节点。</p> + <h4 class="topLine"><b>inheritParent</b><span>Boolean</span></h4> + <p>inheritParent = true 表示全部父节点进行同样的操作</p> + <p>inheritParent = false 表示不影响父节点</p> + <p class="highlight_red">省略此参数,等同于 inheritParent = false </p> + <h4 class="topLine"><b>inheritChildren</b><span>Boolean</span></h4> + <p>inheritChildren = true 表示全部子节点进行同样的操作</p> + <p>inheritChildren = false 表示不影响子节点</p> + <p class="highlight_red">省略此参数,等同于 inheritChildren = false </p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 禁用当前选中的节点的 checkbox / radio</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getSelectedNodes(); +for (var i=0, l=nodes.length; i < l; i++) { + treeObj.setChkDisabled(nodes[i], true); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html new file mode 100644 index 0000000..c90c8de --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(editable)</span><span class="path">zTreeObj.</span>setEditable</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>设置 zTree 进入 / 取消 编辑状态。</p> + <p class="highlight_red">对于编辑状态的各种功能需要提前设置对应 setting 中的不同属性</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>editable</b><span>Boolean</span></h4> + <p>true 表示进入 编辑状态</p> + <p>false 表示取消 编辑状态</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 设置 zTree 进入编辑状态</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +treeObj.setEditable(true); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html new file mode 100644 index 0000000..61abd53 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html @@ -0,0 +1,13 @@ +<div class="apiDetail"> +<div> + <h2><span>JSON</span><span class="path">zTreeObj.</span>setting</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>zTree 对象使用的 setting 配置数据,详细请参考 “setting 配置详解”中的各个属性详细说明</p> + <p class="highlight_red">v3.x 取消了原先操作 setting 的方法,让用户可以较自由的修改参数,但请注意,对于 zTree 初始化有影响的参数后期修改是不会起作用的,请对各个属性有较深入的了解以后再考虑进行修改。</p> + </div> + </div> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html new file mode 100644 index 0000000..ed22d51 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>showNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>显示某个被隐藏的节点。</p> + <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p> + <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p> + <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>指定被显示的节点 JSON 数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 显示某个隐藏的节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var node = treeObj.getNodeByParam("isHidden", true); +if (node) { + treeObj.showNode(node); +} +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html new file mode 100644 index 0000000..b090657 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>showNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>显示一批已经被隐藏的节点。</p> + <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p> + <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p> + <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNodes</b><span>Array(JSON)</span></h4> + <p>指定被显示的节点 JSON 数据集合</p> + <p class="highlight_red">请务必保证这些节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 显示全部隐藏的节点</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodesByParam("isHidden", true); +treeObj.showNodes(nodes); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html new file mode 100644 index 0000000..a46dc61 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html @@ -0,0 +1,25 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>transformToArray</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>将 zTree 使用的标准 JSON 嵌套格式的数据转换为简单 Array 格式。(免去用户自行编写递归遍历全部节点的麻烦)</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNodes</b><span>Array(JSON) / JSON</span></h4> + <p>需要被转换的 zTree 节点数据对象集合 或 某个单独节点的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>转换后的简单 Array 数据格式</p> + </div> + <h3>function 举例</h3> + <h4>1. 将 zTree 节点数据转换为简单 Array 格式</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.transformToArray(treeObj.getNodes()); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 0000000..8a52770 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,43 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(simpleNodes)</span><span class="path">zTreeObj.</span>transformTozTreeNodes</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>将简单 Array 格式数据转换为 zTree 使用的标准 JSON 嵌套数据格式。</p> + <p class="highlight_red">使用此方法,请务必设置节点唯一标识属性名称 setting.data.simpleData.idKey 和 父节点唯一标识属性名称 setting.data.simpleData.pIdKey,并且让数据满足父子关系。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>simpleNodes</b><span>Array(JSON) / JSON</span></h4> + <p>需要被转换的简单 Array 格式数据 或 某个单独的数据对象</p> + <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4> + <p>zTree 使用的标准数据,子节点都存在于父节点数据的 children 属性中</p> + <p class="highlight_red">如果 simpleNodes 是一个 JSON 对象,则被简单封装成长度为 1 的数组。</p> + </div> + <h3>function 举例</h3> + <h4>1. 将简单 Array 格式转换为zTree使用的标准格式</h4> + <pre xmlns=""><code>var setting = { + data: { + simpleData: { + enable: true, + idKey: "id", + pIdKey: "pId", + rootPId: 0, + } + } +}; +var simpleNodes = [ + {"id":1, "pId":0, "name":"test1"}, + {"id":11, "pId":1, "name":"test11"}, + {"id":12, "pId":1, "name":"test12"}, + {"id":111, "pId":11, "name":"test111"} +]; +var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.transformTozTreeNodes(simpleNodes); +</code></pre> +</div> +</div>
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html new file mode 100644 index 0000000..847fa6e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +<div class="apiDetail"> +<div> + <h2><span>Function(treeNode, checkTypeFlag)</span><span class="path">zTreeObj.</span>updateNode</h2> + <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> + <div class="desc"> + <p></p> + <div class="longdesc"> + <p>更新某节点数据,主要用于该节点显示属性的更新。</p> + <p class="highlight_red">1、可针对 name、target、 url、icon、 iconSkin、checked、nocheck 等这几个用于显示效果的参数进行更新,其他用于 zTreeNodes 的参数请不要随意更新,对于展开节点,还请调用 expandNode方法,因此请勿随意修改 open 属性。</p> + <p class="highlight_red">2、用此方法修改 checked 勾选状态不会触发 beforeCheck / onCheck 事件回调函数。</p> + <p class="highlight_red">请通过 zTree 对象执行此方法。</p> + </div> + </div> + <h3>Function 参数说明</h3> + <div class="desc"> + <h4><b>treeNode</b><span>JSON</span></h4> + <p>指定需要更新的节点 JSON 数据</p> + <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p> + <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4> + <p>checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作</p> + <p>checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作</p> + <p class="highlight_red">当 setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时才有效</p> + <p class="highlight_red">不影响父子节点中 treeNode.nochecked = true 的节点。</p> + <h4 class="topLine"><b>返回值</b><span>无</span></h4> + <p>目前无任何返回值</p> + </div> + <h3>function 举例</h3> + <h4>1. 更新根节点中第一个节点的名称</h4> + <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree"); +var nodes = treeObj.getNodes(); +if (nodes.length>0) { + nodes[0].name = "test"; + treeObj.updateNode(nodes[0]); +} +</code></pre> +</div> +</div>
\ No newline at end of file |