fix(components): [el-tree-v2] indent can not set zero (#3881)

* fix(components): [el-tree-v2] indent can not set zero

* chore: simplify code
This commit is contained in:
btea 2021-10-31 07:11:16 -05:00 committed by GitHub
parent 3ad614c039
commit c33d861797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ export default defineComponent({
const tree = inject(ROOT_TREE_INJECTION_KEY)
const indent = computed(() => {
return tree?.props.indent || 16
return tree?.props.indent ?? 16
})
const icon = computed(() => {