style(runtime): 完善ts定义

This commit is contained in:
roymondchen 2024-06-12 15:00:52 +08:00
parent 9eb99ed176
commit 5873842260
6 changed files with 6 additions and 4 deletions

View File

@ -19,7 +19,7 @@
import React, { useContext, useState } from 'react';
import { cloneDeep } from 'lodash-es';
import Core from '@tmagic/core';
import type Core from '@tmagic/core';
import type { ChangeEvent } from '@tmagic/data-source';
import type { MNode } from '@tmagic/schema';
import { AppContent } from '@tmagic/ui-react';

View File

@ -18,7 +18,7 @@
import React, { useContext } from 'react';
import Core from '@tmagic/core';
import type Core from '@tmagic/core';
import type { MPage } from '@tmagic/schema';
import { AppContent } from '@tmagic/ui-react';

View File

@ -6,7 +6,7 @@
import { defineComponent, inject } from 'vue';
import type { Page } from '@tmagic/core';
import Core from '@tmagic/core';
import type Core from '@tmagic/core';
import { addParamToUrl } from '@tmagic/utils';
import { useDsl } from '@tmagic/vue-runtime-help';

View File

@ -5,6 +5,7 @@
<script lang="ts">
import { defineComponent, inject } from 'vue';
import type Core from '@tmagic/core';
import { useEditorDsl } from '@tmagic/vue-runtime-help';
export default defineComponent({

View File

@ -6,7 +6,7 @@
import { inject } from 'vue';
import type { Page } from '@tmagic/core';
import Core from '@tmagic/core';
import type Core from '@tmagic/core';
import { addParamToUrl } from '@tmagic/utils';
import { useDsl } from '@tmagic/vue-runtime-help';

View File

@ -5,6 +5,7 @@
<script lang="ts" setup>
import { inject } from 'vue';
import type Core from '@tmagic/core';
import { useEditorDsl } from '@tmagic/vue-runtime-help';
const app = inject<Core | undefined>('app');