diff --git a/src/components/DynamicComponent.vue b/src/components/DynamicComponent.vue index 1d42453..250b4ba 100644 --- a/src/components/DynamicComponent.vue +++ b/src/components/DynamicComponent.vue @@ -5,6 +5,11 @@ + + + @@ -23,9 +28,11 @@ onMounted(() => { const componentType = computed(() => componentMapping[props.componentData?.type] || 'div'); const componentProps = computed(() => props.componentData?.props || {}); const componentChildren = computed(() => props.componentData?.children || []); -const componentText = computed(() => props.componentData?.text ||''); +const componentText = computed(() => props.componentData?.text || ''); const componentClass = computed(() => props.componentData?.class || []); const componentStyle = computed(() => props.componentData?.style || []); +const componentSlots = computed(() => props.componentData?.slots || []); + \ No newline at end of file diff --git a/src/components/TestComponent.vue b/src/components/TestComponent.vue index e12feff..8453cbb 100644 --- a/src/components/TestComponent.vue +++ b/src/components/TestComponent.vue @@ -1,18 +1,29 @@ + - + \ No newline at end of file diff --git a/src/components/VueDemo.vue b/src/components/VueDemo.vue index 47e5589..7a89c7f 100644 --- a/src/components/VueDemo.vue +++ b/src/components/VueDemo.vue @@ -1,5 +1,9 @@