mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
fix(tree): replace leafOnly prop to checkStrategy prop in select handler (#1207)
Co-authored-by: unknown <liyang@xiaoyouzi.com>
This commit is contained in:
parent
ee1c1e893c
commit
e80ccf05b0
@ -5,6 +5,7 @@
|
||||
### Fixes
|
||||
|
||||
- Fix `DialogReactive` props are readonly.
|
||||
- Fix `n-tree` replace `leafOnly` prop to `checkStrategy` prop in single check.
|
||||
|
||||
## 2.19.0 (2021-09-19)
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
### Fixes
|
||||
|
||||
- 修复 `DialogReactive` 属性只读。
|
||||
- 修复 `n-tree` 的 `checkStrategy` 属性单选替换 `leafOnly` 属性
|
||||
|
||||
## 2.19.0 (2021-09-19)
|
||||
|
||||
|
@ -626,6 +626,8 @@ export default defineComponent({
|
||||
props.disabled ||
|
||||
node.disabled ||
|
||||
!props.selectable ||
|
||||
(props.checkStrategy === 'child' && !node.isLeaf) ||
|
||||
(props.checkStrategy === 'parent' && node.isLeaf) ||
|
||||
(props.leafOnly && !node.isLeaf)
|
||||
) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user