diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..639171f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 zTree + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 1717950..6fc5b03 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,19 @@ jQuery Tree Plugin ---- zTree ============ -last verson : 3.5.18 +last version : 3.5.48 -**Donate to zTree** : http://www.ztree.me/v3/donate.php +zTree API : /api -zTree API : http://www.ztree.me/v3/api.php +zTree Demo : /demo -zTree Demo : http://www.ztree.me/v3/demo.php - +Install +============ +``` +npm install @ztree/ztree_v3 +``` Introduction of zTree (简介) ============ @@ -20,7 +23,7 @@ Introduction of zTree (简介) * zTree is a free tree plug-in and uses the MIT license. (zTree 是开源免费的软件, 使用 MIT 许可证) -* The code of zTree v3.x has been seperated according to the various functions. You can only load the code you need. +* The code of zTree v3.x has been separated according to the various functions. You can only load the code you need. (zTree v3.x 将核心代码按照功能进行了分割,不需要的代码可以不用加载) * zTree v3.x uses delay loading technique, which can easily load tens of thousands of nodes in seconds even in IE6 browser. (采用了 延迟加载 技术,上万节点轻松加载,即使在 IE6 下也能基本做到秒杀) @@ -30,7 +33,7 @@ Introduction of zTree (简介) (支持 JSON 数据) * Support for static and asynchronous data loading node. (支持静态 和 Ajax 异步加载节点数据) -* Replace the skin / custom icon flexibllly. +* Replace the skin / custom icon flexibly. (支持任意更换皮肤 / 自定义图标) * Support extremely flexible checkbox or radio selection function. (支持极其灵活的 checkbox 或 radio 选择功能) diff --git a/api/API_cn.html b/api/API_cn.html index 1ae3f21..68d09d3 100644 --- a/api/API_cn.html +++ b/api/API_cn.html @@ -35,7 +35,7 @@
浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!
-

zTree v3.5.18 API 文档

+

zTree v3.5.48 API 文档

all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。

diff --git a/demo/cn/core/simpleData.html b/demo/cn/core/simpleData.html index 19f7ca5..d3b19fc 100644 --- a/demo/cn/core/simpleData.html +++ b/demo/cn/core/simpleData.html @@ -6,9 +6,9 @@ - - + + + + + + + + + + + + + + + + - + - - - - + + + +
-
    -
    +
      +
      + +
      diff --git a/demo/cn/super/asyncForAll.html b/demo/cn/super/asyncForAll.html index 8a38d98..d5aa2d1 100644 --- a/demo/cn/super/asyncForAll.html +++ b/demo/cn/super/asyncForAll.html @@ -6,9 +6,9 @@ - - + + + + + + + + + +

      根据关键字模糊查找节点

      +
      [ 文件路径: super/fuzzySearch.html ]
      +
      +
      + +
      +
      + +
      +
      + + \ No newline at end of file diff --git a/demo/cn/super/keyboard_navigation.html b/demo/cn/super/keyboard_navigation.html new file mode 100644 index 0000000..d65a22e --- /dev/null +++ b/demo/cn/super/keyboard_navigation.html @@ -0,0 +1,102 @@ + + + + ZTREE DEMO - Keyboard navigation + + + + + + + + + + + + +

      设置快捷键

      +
      [ 文件路径: super/keyboard_navigation.html ]
      +
      +
      + +
      +
      + +
      +
      + + \ No newline at end of file diff --git a/demo/cn/super/left_menu.html b/demo/cn/super/left_menu.html index 4b9941a..759c863 100644 --- a/demo/cn/super/left_menu.html +++ b/demo/cn/super/left_menu.html @@ -6,9 +6,9 @@ - - + + + + + + + + + + + + + + + + + + + + + + @@ -152,6 +258,9 @@
      [ File Path: core/searchNodes.html ]
      getNodesByParam
      getNodesByParamFuzzy (only string)
      getNodesByFilter (see source: function filter)
      + styleNodesByCSS (see source: function filter)
      + style:  styleNodesByCSS
      + styleNodesByClasses

      diff --git a/demo/en/core/simpleData.html b/demo/en/core/simpleData.html index bf07831..038355d 100644 --- a/demo/en/core/simpleData.html +++ b/demo/en/core/simpleData.html @@ -6,9 +6,9 @@ - - + + + + + + + + + + + + + + + + + + + +

      fuzzy search by keywords

      +
      [ File Path: fuzzySearch/fuzzySearch.html ]
      +
      +
      + +
      +
      + +
      +
      + + \ No newline at end of file diff --git a/demo/en/index.html b/demo/en/index.html index 7cc43e1..4e75c23 100644 --- a/demo/en/index.html +++ b/demo/en/index.html @@ -1,159 +1,171 @@ - + ZTREE DEMO - - - - + - - - - + + + +
      -
        -
        +
          +
          + +
          - + diff --git a/demo/en/navigation/keyboard_navigation.html b/demo/en/navigation/keyboard_navigation.html new file mode 100644 index 0000000..f9fd24e --- /dev/null +++ b/demo/en/navigation/keyboard_navigation.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - Keyboard navigation + + + + + + + + + + + + +

          Keyboard navigation

          +
          [ File Path: core/custom_keyboard_navigation.html ]
          +
          +
          + +
          +
          + +
          +
          + + \ No newline at end of file diff --git a/demo/en/super/asyncForAll.html b/demo/en/super/asyncForAll.html index eea4a9b..1c2a9e2 100644 --- a/demo/en/super/asyncForAll.html +++ b/demo/en/super/asyncForAll.html @@ -6,9 +6,9 @@ - - + + + + + + + + + +

          Fuzzy Search

          +
          [ File Path: super/fuzzySearch.html ]
          +
          +
          + +
          +
          + +
          +
          + + \ No newline at end of file diff --git a/demo/en/super/keyboard_navigation.html b/demo/en/super/keyboard_navigation.html new file mode 100644 index 0000000..8d11b12 --- /dev/null +++ b/demo/en/super/keyboard_navigation.html @@ -0,0 +1,102 @@ + + + + ZTREE DEMO - Keyboard navigation + + + + + + + + + + + + +

          Keyboard navigation

          +
          [ File Path: super/keyboard_navigation.html ]
          +
          +
          + +
          +
          + +
          +
          + + \ No newline at end of file diff --git a/demo/en/super/left_menu.html b/demo/en/super/left_menu.html index 7dfe588..86d12cf 100644 --- a/demo/en/super/left_menu.html +++ b/demo/en/super/left_menu.html @@ -6,9 +6,9 @@ - - + + + + + + + + + +