Skip to content

Commit

Permalink
Merge pull request #36 from yangjingyu/hub/master
Browse files Browse the repository at this point in the history
fixed: #35
  • Loading branch information
yangjingyu authored Sep 22, 2021
2 parents 14fac84 + 318c5eb commit 52e27ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/vs-tree.esm.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vs-tree.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vs-tree",
"version": "2.1.8",
"version": "2.1.9",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -13,7 +13,7 @@
"url": "https://github.com/yangjingyu"
},
"main": "./dist/vs-tree.js",
"types": "./types/main.d.ts",
"types": "./types/src/main.d.ts",
"module": "./dist/vs-tree.js",
"unpkg": "./dist/vs-tree.js",
"style": "./dist/vs-tree.css",
Expand Down
5 changes: 5 additions & 0 deletions src/core/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ export default class Node {

// 设置是否选中
setChecked (checked, isInitDefault) {
if (checked && this.store.checkMaxNodes(this)) {
this.store.limitAlert()
return
}

if (this.store.showRadio) {
this.updateRadioChecked(checked, isInitDefault)
return
Expand Down

0 comments on commit 52e27ed

Please sign in to comment.