diff --git a/packages/components/tree-v2/src/tree-node.vue b/packages/components/tree-v2/src/tree-node.vue index ece4a7feb6..aaefa7956e 100644 --- a/packages/components/tree-v2/src/tree-node.vue +++ b/packages/components/tree-v2/src/tree-node.vue @@ -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(() => {