el-tree-transfer
Advanced tools
Comparing version 1.5.8 to 1.5.9
{ | ||
"name": "el-tree-transfer", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"description": "A tree shaped shuttle box assembly based on Vue and element-ui 一个基于vue.js和element-ui的树形穿梭框", | ||
@@ -5,0 +5,0 @@ "main": "dist/treeTransfer.min.js", |
@@ -15,7 +15,7 @@ # el-tree-transfer | ||
### 注意! 1.5及以上版本已自动做处理 | ||
### 注意! (1.5及以上版本已自动做处理) | ||
> 第一层数据的 pid 请设定为 0!! | ||
> id 推荐为 string,但也可以是 number,请不要混用 | ||
> id 推荐为 string,但也可以是 number,请不要混用,id不要重复!!! | ||
@@ -124,8 +124,14 @@ ## 快速上手 | ||
10. 事件:`addBtn` 说明:`点击添加按钮时触发的事件` 回调参数:`keys:data为选中节点id,nodes:data为选中节点` | ||
10. 参数:`leafOnly` 说明:`是否只返回叶子节点` 类型:`Boolean` 必填:`false` 补充:`默认false,如果你只需要返回的末端子节点可使用此参数` | ||
11. 事件:`removeBtn` 说明:`点击移除按钮时触发的事件` 回调参数:`keys:data为选中节点id,nodes:data为选中节点` | ||
11. 事件:`addBtn` 说明:`点击添加按钮时触发的事件` 回调参数:`keys:data为选中节点id,nodes:data为选中节点` | ||
12. 事件:`removeBtn` 说明:`点击移除按钮时触发的事件` 回调参数:`keys:data为选中节点id,nodes:data为选中节点` | ||
## 版本说明 | ||
> 1.5.9版本增加`leafOnly`参数,来设置是否只返回树的末端叶子节点 | ||
> 1.5.8版本恢复上个版本莫名删掉的返回` nodes `的代码,如果您的项目只需要穿梭的node-key值则无需更新!道歉ing。。。 | ||
> 1.5.7版本修复子组件异步数据有时不会更新的问题!修复了自定义参数名node_key,children时的一个错误,自动把第一层数据的pid替换为0 | ||
@@ -132,0 +138,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
168640
1401
146