mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
fix depth options and clean code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-list-item
|
||||
v-if="field.children === undefined || depth == 0"
|
||||
v-if="field.children === undefined || depth === 0"
|
||||
@click="$emit('add', `${parent ? parent + '.' : ''}${field.field}`)"
|
||||
>
|
||||
<v-list-item-content>{{ field.name }}</v-list-item-content>
|
||||
@@ -35,7 +35,7 @@ export default defineComponent({
|
||||
},
|
||||
depth: {
|
||||
type: Number,
|
||||
default: 10,
|
||||
default: 2,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -51,7 +51,7 @@ export default defineComponent({
|
||||
},
|
||||
depth: {
|
||||
type: Number,
|
||||
default: 10,
|
||||
default: 2,
|
||||
},
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
|
||||
Reference in New Issue
Block a user