mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 10:49:51 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			414 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			414 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <magic-ui-page :config="pageConfig"></magic-ui-page>
 | 
						|
</template>
 | 
						|
 | 
						|
<script lang="ts">
 | 
						|
import { defineComponent, inject, reactive } from 'vue';
 | 
						|
 | 
						|
import Core from '@tmagic/core';
 | 
						|
 | 
						|
export default defineComponent({
 | 
						|
  name: 'App',
 | 
						|
 | 
						|
  setup() {
 | 
						|
    const app = inject<Core | undefined>('app');
 | 
						|
    const pageConfig = reactive(app?.page?.data || {});
 | 
						|
 | 
						|
    return {
 | 
						|
      pageConfig,
 | 
						|
    };
 | 
						|
  },
 | 
						|
});
 | 
						|
</script>
 |