Skip to content

Commit 487f654

Browse files
committed
修复 selectableType 默认值异常问题,即默认情况不提供层级选中功能
1 parent a7891e6 commit 487f654

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/tree.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
type: String,
8383
default: 'root'
8484
},
85+
// 定义数据层级支持的选中方式, 默认无该功能
86+
selectableType: {
87+
type: String,
88+
default: '' // both, checkbox, tree
89+
},
8590
// 定义已选中的数据层级
8691
pathChecked: {
8792
type: Array,
@@ -92,11 +97,6 @@
9297
type: Function,
9398
default: () => true
9499
},
95-
// 定义数据层级支持的选中方式, 默认所有方式均支持
96-
selectableType: {
97-
type: String,
98-
default: 'both' // both, checkbox, tree
99-
},
100100
/* 外部可用 END */
101101
parentData: {}, // 当前树的父级数据
102102
child: Boolean, // 是否子树(优化: 通过 $parent?)

0 commit comments

Comments
 (0)