Update tree.vue

增加全局 disabled 配置,默认false ,方便查看但不能操作选中,但可以点击展开关闭
pull/21786/head
roninTitans 2022-04-07 14:21:34 +08:00 committed by GitHub
parent d3f2861f3e
commit 51af41f5fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
v-for="child in root.childNodes" v-for="child in root.childNodes"
:node="child" :node="child"
:props="props" :props="props"
:disabled="disabled"
:render-after-expand="renderAfterExpand" :render-after-expand="renderAfterExpand"
:show-checkbox="showCheckbox" :show-checkbox="showCheckbox"
:key="getNodeKey(child)" :key="getNodeKey(child)"
@ -64,6 +65,10 @@
}, },
props: { props: {
disabled: {
type: Boolean,
default: false
},
data: { data: {
type: Array type: Array
}, },