mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
11 lines
320 B
Vue
11 lines
320 B
Vue
<template>
|
|
<component v-if="pageConfig" :is="pageComponent" :key="pageConfig.id" :config="pageConfig"></component>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { useComponent, useEditorDsl } from '@tmagic/vue-runtime-help';
|
|
|
|
const { pageConfig } = useEditorDsl();
|
|
const pageComponent = useComponent('page');
|
|
</script>
|