mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
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:
parent
3ad614c039
commit
c33d861797
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user