Fix prop defaults without withDefaults
This commit is contained in:
@@ -116,7 +116,7 @@ import { computed } from 'vue'
|
|||||||
|
|
||||||
defineOptions({ name: 'SkeletonComponentNodeSelector' })
|
defineOptions({ name: 'SkeletonComponentNodeSelector' })
|
||||||
|
|
||||||
const props = withDefaults(defineProps({
|
const props = defineProps({
|
||||||
node: {
|
node: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
required: true,
|
||||||
@@ -145,11 +145,6 @@ const props = withDefaults(defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
}), {
|
|
||||||
depth: 0,
|
|
||||||
loadingComponentModels: false,
|
|
||||||
loadingPieceModels: false,
|
|
||||||
showSelfSelector: true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['component-model-change', 'piece-model-change'])
|
const emit = defineEmits(['component-model-change', 'piece-model-change'])
|
||||||
|
|||||||
Reference in New Issue
Block a user