1 Star 0 Fork 0

enmaai / tree-transfer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

el-tree-transfer

简介


el-tree-fransfer 是一个基于 VUE 和 element-ui 的树形穿梭框组件,使用前请确认已经引入element-ui! 此组件功能类似于element-uitransfer组件,但是里面的数据是树形结构! 实际上,el-tree-transfer 依赖的 element-ui 组件分别是Checkbox 多选框Button 按钮,和最主要的Tree 树形控件写成!并非是在 element-ui 的穿梭框组件上的扩展,而仅仅是参照了其外观样式和功能。

因为公司业务使用 vue 框架,ui 库使用的 element-ui。在市面上找到一个好用的 vue 树形穿梭框组件都很难,又不想仅仅因为一个穿梭框在 element-ui 之外引入其他重量级插件,因此就有了 el-tree-transfer。轻量,易用,无需投入其他学习成本。

在线访问 - GitHub - NPM - SegmentFault - CSDN- 掘金

注意! 2.2.0 版本增加lazy懒加载功能

注意! 2.0.0 版本存在父子不关联错误,2.1.1 版本增加 arrayToTree 支持,但已经是树形数据的请不要使用此参数

注意! 1.9.0 版本增强 id 为数字型的匹配强度,1.9.7 版本增加defaultTransfer属性用来满足用户不想将数据拆分成 fromData 和 toData 的需求

注意! 1.8.7 版本增加通讯录模式,可通过 mode 字段配置模式

注意! 1.7.7 版本移动事件参数调整,直接返回移动后的 fromData 数据和 toData 数据。

注意! 1.5 以上版本改为自动处理

第一层数据的 pid 请设定为 0!! pid 就是父级的 id!别再跑过来问了真的 id 推荐为 string,但也可以是 number,请不要混用,id 不要重复!!!

这里有一个兄弟组件-树形表格:在线访问 - GitHub

快速上手

先 npm 下载插件

npm install el-tree-transfer --save

npm i el-tree-transfer -S

然后你可以像使用普通组件一样使用 el-tree-transfer

<template>
  <div>
    // 你的代码
    ...
    // 使用树形穿梭框组件
    <tree-transfer :title="title" :from_data='fromData' :to_data='toData' :defaultProps="{label:'label'}" @addBtn='add' @removeBtn='remove' :mode='mode' height='540px' filter openAll>
  </tree-transfer>
  </div>
</template>

<script>
  import treeTransfer from 'el-tree-transfer' // 引入

  export defult {
    data(){
      return:{
        mode: "transfer", // transfer addressList
        fromData:[
          {
            id: "1",
            pid: 0,
            label: "一级 1",
            children: [
              {
                id: "1-1",
                pid: "1",
                label: "二级 1-1",
                disabled: true,
                children: []
              },
              {
                id: "1-2",
                pid: "1",
                label: "二级 1-2",
                children: [
                  {
                    id: "1-2-1",
                    pid: "1-2",
                    children: [],
                    label: "二级 1-2-1"
                  },
                  {
                    id: "1-2-2",
                    pid: "1-2",
                    children: [],
                    label: "二级 1-2-2"
                  }
                ]
              }
            ]
          },
        ],
        toData:[]
      }
    },
    methods:{
      // 切换模式 现有树形穿梭框模式transfer 和通讯录模式addressList
      changeMode() {
        if (this.mode == "transfer") {
          this.mode = "addressList";
        } else {
          this.mode = "transfer";
        }
      },
      // 监听穿梭框组件添加
      add(fromData,toData,obj){
        // 树形穿梭框模式transfer时,返回参数为左侧树移动后数据、右侧树移动后数据、移动的{keys,nodes,halfKeys,halfNodes}对象
        // 通讯录模式addressList时,返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
        console.log("fromData:", fromData);
        console.log("toData:", toData);
        console.log("obj:", obj);
      },
      // 监听穿梭框组件移除
      remove(fromData,toData,obj){
        // 树形穿梭框模式transfer时,返回参数为左侧树移动后数据、右侧树移动后数据、移动的{keys,nodes,halfKeys,halfNodes}对象
        // 通讯录模式addressList时,返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
        console.log("fromData:", fromData);
        console.log("toData:", toData);
        console.log("obj:", obj);
      }
    },
    comporents:{ treeTransfer } // 注册
  }
</script>

<style>
...
</style>

文档

序号 参数 说明 类型 必填 可选值 默认值 补充
1 width 宽度 String false - 100% 建议在外部盒子设定宽度和位置
2 height 高度 String false - 320px -
3 title 标题 String false - ["源列表", "目标列表"] -
4 button_text 按钮名字 Array false - - -
5 from_data 源数据 Array true - - 数据格式同element-ui tree组件,但必须有id和pid
6 to_data 目标数据 Array true - - 数据格式同element-ui tree组件,但必须有id和pid
7 defaultProps 配置项-同el-tree中props Object false - { label: "label", children: "children", isLeaf: "leaf", disable: "disable" } 用法和el-tree的props一样
8 node_key 自定义node-key的值,默认为id String false - id 必须与treedata数据内的id参数名一致,必须唯一
9 pid 自定义pid的参数名,默认为"pid" String false - pid 有网友提出后台给的字段名不叫pid,因此增加自定义支持
10 leafOnly 废弃 - - - - -
11 filter 是否开启筛选功能 Boolean false - false 根据defaultProps参数的label字段筛选
12 openAll 是否默认展开全部 Boolean false - false 存在性能问题
13 renderContent renderContentLeft, renderContentRight 自定义树节点, 用法同element-ui tree Function false - - 2.2.3版本拆为两个函数分别定义左右两侧自定义节点
14 mode 设置穿梭框模式 String false transfer/addressList transfer mode默认为transfer模式,即树形穿梭框模式,可配置字段为addressList改为通讯录模式,通讯录模式时按钮不可自定义名字,如要自定义标题名在title数组传入四个值即可,addressList模式时标题默认为通讯录、收件人、抄送人、密送人
15 transferOpenNode 穿梭后是否展开穿梭的节点 Boolean false - true 默认为true即展开穿梭的节点,便于视觉查看,增加此参数是因为数据量大时展开会有明显卡顿问题,但注意,如此参数设置为false则穿梭后不展开,毕竟无法确定第几层就会有庞大数据
16 defaultCheckedKeys 默认选中节点 Array false - - 只匹配初始时默认节点,不会在你操作后动态改变默认节点
17 placeholder 设置搜索框提示语 String false - 输入关键词进行筛选 -
18 defaultTransfer 是否自动穿梭一次默认选中defaultCheckedKeys的节点 Boolean false - false 用来满足用户不想将数据拆分成fromData和toData的需求
19 arrayToTree 是否开启一维数组转化为树形结构 Boolean false - false 数据必须存在根节点,并且不会断节,数据格式详见github上app.vue,根据id、pid对应关系转化,存在一定的性能问题
20 addressOptions 通讯录模式配置项 Object false - {num: Number, suffix: String, connector: String} num-> 所需右侧通讯录个数,默认3 suffix-> label后想要拼接的字段(如id,即取此条数据的id拼接在后方)默认suffix connector -> 连接符(字符串)默认-
21 lazy 是否启用懒加载 Boolean false - false 效果动el-tree懒加载,不可和openAll或默认展开同时使用
22 lazyFn 懒加载的回调函数 Function true - - 当适用lazy时必须传入回调函数,示例:lazyFn='loadNode',返回参数loadNode(node, resolve, from), node->当前展开节点node,resolve->懒加载resolve,from -> left/right 表示回调来自左侧/右侧
23 high-light 是否高亮当前选中节点 Boolean false - false -
24 filterNode 自定义搜索函数 Function false - - 不传则仍默认根据defaultProps参数的label字段筛选
25 defaultExpandedKeys 默认展开节点 Array false - - 要展开的节点id数组,会自动去重生效在左右两侧

序号 事件名称 说明 回调参数
1 addBtn 点击添加按钮时触发的事件 unction(fromData,toData,obj),树形穿梭框transfer模式分别为1.移动后左侧数据,2.移动后右侧数据,3.移动的节点keys、nodes、halfKeys、halfNodes对象;通讯录addressList模式时返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
2 removeBtn 点击移除按钮时触发的事件 function(fromData,toData,obj),树形穿梭框transfer模式分别为1.移动后左侧数据,2.移动后右侧数据,3.移动的节点keys、nodes、halfKeys、halfNodes对象;通讯录addressList模式时返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
3 left-check-change 左侧源数据勾选事件 function(nodeObj, treeObj, checkAll)见el-tree组件check事件返回值, 新增checkAll参数表示是否全部选中
4 right-check-change 右侧目标数据勾选事件 function(nodeObj, treeObj, checkAll)见el-tree组件check事件返回值, 新增checkAll参数表示是否全部选中

方法

序号 名称 说明
1 clearChecked 清除选中节点,默认清除全部 type:string left左边 right右边 all全部 默认all


序号 名字 说明
1 left-footer 穿梭框左侧、右侧底部slot
2 right-footer 穿梭框左侧、右侧底部slot
3 title-left 穿梭框标题区左侧、右侧自定义内容
4 title-right 穿梭框标题区左侧、右侧自定义内容

版本说明

2.2.6 增加clearChecked清空选中节点方法

2.2.5 增加参数defaultExpandedKeys默认展开节点

2.2.3 拆分自定义树节点函数参数13 renderContentrenderContentLeft,renderContentRight分别定义左右两侧自定义节点函数;增加filterNode函数来自定义搜索

2.2.2 增加选中高亮参数

2.2.1 增加title处的全选事件,具体参数说明见事件3,事件4

2.2.0 增加lazy懒加载功能(非通讯录模式),具体参数说明见参数21, 参数22

2.1.2 增加通讯录模式的可配置项,但作为非主要维护模式灵活度仍较低,具体参数说明见参数20

2.1.1 修复 array 数组模式选择根节点穿梭错误,废弃leafOnly参数,注意已经是树结构的不要使用 arrayToTree 参数

2.1.0 增加 arrayTotree 参数,处理一维数组自动转化为所需树结构(详见参数 19,或 github-app.vue);修复穿梭后半选节点残留的问题;去除部分不必要变量

2.0.2 增加标题头部 slot 自定义内容区

2.0.1 修复父子不关联问题。

2.0.0 版本增加穿梭框左侧、右侧数据勾选事件,穿梭框左侧、右侧底部 slot。

1.9.8 版本修复自定义按钮button_text的报错。

1.9.7 版本增加defaultTransfer属性用来满足用户不想将数据拆分成 fromData 和 toData 的需求,增加placeholder属性。

1.9.0 增强 id 既有数字又有字符型时的正则匹配强度。

1.8.9 版本修复一个节点既是一侧的枝干节点又是另一侧的叶子节点时穿梭引起的重复错误!解决自定义节点名时筛选无效错误。

1.8.8 版本增加transferOpenNode参数用来管理穿梭后是否展开节点,defaultCheckedKeys用来设置初始时默认展开节点。

1.8.7 版本增加通讯录模式,可通过 mode 字段配置模式,mode 字段可选值为transfer|addressList

1.7.7 版本 addBtnremoveBtn 事件参数调整,返回三个参数,第一个参数是移动后的 fromData 数据,第二个参数是移动后的 toData 数据,第三个参数是{keys, nodes, harfKeys, harfNodes}对象。增加 renderContent 参数支持树节点自定义。

1.6.7 版本增加filter,openAll参数,来设置是否开启筛选和是否默认展开全部

1.5.9 版本增加leafOnly参数,来设置是否只返回树的末端叶子节点

1.5.8 版本恢复上个版本莫名删掉的返回nodes的代码,如果您的项目只需要穿梭的 node-key 值则无需更新!道歉 ing。。。

1.5.7 版本修复子组件异步数据有时不会更新的问题!修复了自定义参数名 node_key,children 时的一个错误,自动把第一层数据的 pid 替换为 0

1.4.9 版本增加了添加和移除按钮的回调参数,function(keys,nodes)第一个参数为选中节点 node-key 值,第二个参数为选中节点 node

1.4.8 版本修复了 id 为 number 类型时无法通过重复校验函数的问题,但仍然推荐 id 使用 string 型

1.4.7 版本增加了defaultProps参数,node_key参数,pid参数,主要作用为可以自定义一些重要字段名,来提高数据灵活性,避免和后台因为字段名不同而被祭天

1.3.7 版本取消了对 loadsh 库的依赖,此前仅用此库做某些深拷贝处理

旧版文档【不再更新】

  1. 参数:width 说明:宽度 类型:String 必填:false 默认:100% 补充:建议在外部盒子设定宽度和位置

  2. 参数:height 说明:高度 类型:String 必填:false 默认:320px

  3. 参数:title 说明:标题 类型:Array 必填:false 默认:["源列表", "目标列表"]

  4. 参数:button_text 说明:按钮名字 类型:Array 必填:false 默认:

  5. 参数:from_data 说明:源数据 类型:Array 必填:true 补充:数据格式同element-ui tree组件,但必须有id和pid

  6. 参数:to_data 说明:目标数据 类型:Array 必填:true 补充:数据格式同element-ui tree组件,但必须有id和pid

  7. 参数:defaultProps 说明:配置项-同el-tree中props 必填: false 补充:用法和el-tree的props一样

  8. 参数:node_key 说明:自定义node-key的值,默认为id 必填:false 补充:必须与treedata数据内的id参数名一致,必须唯一

  9. 参数:pid 说明:自定义pid的参数名,默认为"pid" 必填:false 补充:有网友提出后台给的字段名不叫pid,因此增加自定义支持

  10. --(废弃) 不建议使用!参数:leafOnly 说明:是否只返回叶子节点 类型:Boolean 必填:false 补充:默认false,如果你只需要返回的末端子节点可使用此参数

  11. 参数:filter 说明:是否开启筛选功能 类型:Boolean 必填:false

  12. 参数:openAll 说明:是否默认展开全部 类型:Boolean 必填:false

  13. 参数:renderContent 说明:自定义树节点 类型:Function 必填:false 补充:用法同element-ui tree

  14. 参数:mode 说明:设置模式,字段可选值为transfer|addressList 类型:String 必填:false 补充:mode默认为transfer模式,即树形穿梭框模式,可配置字段为addressList改为通讯录模式,通讯录模式时按钮不可自定义名字,如要自定义标题名在title数组传入四个值即可,addressList模式时标题默认为通讯录、收件人、抄送人、密送人

  15. 参数:transferOpenNode 说明:穿梭后是否展开穿梭的节点 类型:Boolean 必填:false 补充:默认为true即展开穿梭的节点,便于视觉查看,增加此参数是因为数据量大时展开会有明显卡顿问题,但注意,如此参数设置为false则穿梭后不展开,毕竟无法确定第几层就会有庞大数据

  16. 参数:defaultCheckedKeys 说明:默认展开节点 类型:Array 必填:false 补充:只匹配初始时默认节点,不会在你操作后动态改变默认节点

  17. 参数:placeholder 说明:设置搜索框提示语 类型:String 必填:false 补充:默认为请输入关键词进行筛选

  18. 参数:defaultTransfer 说明:是否自动穿梭一次默认选中defaultCheckedKeys的节点 类型:Boolean 必填:false 补充:默认false,用来满足用户不想将数据拆分成fromData和toData的需求

  19. 参数:arrayToTree 说明:是否开启一维数组转化为树形结构 类型:Boolean 必填:false 补充:数据必须存在根节点,并且不会断节,数据格式详见github上app.vue,根据id、pid对应关系转化,存在一定的性能问题

  20. 参数:addressOptions 说明:通讯录模式配置项{num: Number, suffix: String, connector: String} 类型:Object 必填:false 补充:num-> 所需右侧通讯录个数,默认3 suffix-> label后想要拼接的字段(如id,即取此条数据的id拼接在后方)默认suffix connector -> 连接符(字符串)默认-

  21. 参数:lazy 说明:是否启用懒加载 类型:Boolean 必填:false 补充:默认false,效果动el-tree懒加载,不可和openAll或默认展开同时使用

  22. 参数:lazyFn 说明:懒加载的回调函数 类型:Function 必填:true 补充:当适用lazy时必须传入回调函数,示例:lazyFn='loadNode',返回参数loadNode(node, resolve, from), node->当前展开节点node,resolve->懒加载resolve,from -> left|right 表示回调来自左侧|右侧

  23. 事件:addBtn 说明:点击添加按钮时触发的事件 回调参数:function(fromData,toData,obj),树形穿梭框transfer模式分别为1.移动后左侧数据,2.移动后右侧数据,3.移动的节点keys、nodes、halfKeys、halfNodes对象;通讯录addressList模式时返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表

  24. 事件:removeBtn 说明:点击移除按钮时触发的事件 回调参数:function(fromData,toData,obj),树形穿梭框transfer模式分别为1.移动后左侧数据,2.移动后右侧数据,3.移动的节点keys、nodes、halfKeys、halfNodes对象;通讯录addressList模式时返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表

  25. 事件:left-check-change 说明:左侧源数据勾选事件 回调参数:function(nodeObj, treeObj, checkall)见el-tree组件check事件返回值,新增第三个参数表示是否全部选中

  26. 事件:right-check-change 说明:右侧目标数据勾选事件 回调参数:function(nodeObj, treeObj, checkall)见el-tree组件check事件返回值,新增第三个参数表示是否全部选中

  27. Slot:left-footer, right-footer 说明:穿梭框左侧、右侧底部slot

  28. Slot: title-left, title-right 说明:穿梭框标题区左侧、右侧自定义内容

GitHub demo 代码地址 欢迎 star 谢谢

有好多有脾气的老哥找我给打赏,谢过

微信 支付宝

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

暂无描述 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/enmaai/tree-transfer.git
git@gitee.com:enmaai/tree-transfer.git
enmaai
tree-transfer
tree-transfer
master

搜索帮助