mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-18 20:42:38 +08:00
style(runtime): 完善ts定义
This commit is contained in:
parent
9eb99ed176
commit
5873842260
@ -19,7 +19,7 @@
|
|||||||
import React, { useContext, useState } from 'react';
|
import React, { useContext, useState } from 'react';
|
||||||
import { cloneDeep } from 'lodash-es';
|
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 { ChangeEvent } from '@tmagic/data-source';
|
||||||
import type { MNode } from '@tmagic/schema';
|
import type { MNode } from '@tmagic/schema';
|
||||||
import { AppContent } from '@tmagic/ui-react';
|
import { AppContent } from '@tmagic/ui-react';
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
import React, { useContext } from 'react';
|
import React, { useContext } from 'react';
|
||||||
|
|
||||||
import Core from '@tmagic/core';
|
import type Core from '@tmagic/core';
|
||||||
import type { MPage } from '@tmagic/schema';
|
import type { MPage } from '@tmagic/schema';
|
||||||
import { AppContent } from '@tmagic/ui-react';
|
import { AppContent } from '@tmagic/ui-react';
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
import { defineComponent, inject } from 'vue';
|
import { defineComponent, inject } from 'vue';
|
||||||
|
|
||||||
import type { Page } from '@tmagic/core';
|
import type { Page } from '@tmagic/core';
|
||||||
import Core from '@tmagic/core';
|
import type Core from '@tmagic/core';
|
||||||
import { addParamToUrl } from '@tmagic/utils';
|
import { addParamToUrl } from '@tmagic/utils';
|
||||||
import { useDsl } from '@tmagic/vue-runtime-help';
|
import { useDsl } from '@tmagic/vue-runtime-help';
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, inject } from 'vue';
|
import { defineComponent, inject } from 'vue';
|
||||||
|
|
||||||
|
import type Core from '@tmagic/core';
|
||||||
import { useEditorDsl } from '@tmagic/vue-runtime-help';
|
import { useEditorDsl } from '@tmagic/vue-runtime-help';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
import { inject } from 'vue';
|
import { inject } from 'vue';
|
||||||
|
|
||||||
import type { Page } from '@tmagic/core';
|
import type { Page } from '@tmagic/core';
|
||||||
import Core from '@tmagic/core';
|
import type Core from '@tmagic/core';
|
||||||
import { addParamToUrl } from '@tmagic/utils';
|
import { addParamToUrl } from '@tmagic/utils';
|
||||||
import { useDsl } from '@tmagic/vue-runtime-help';
|
import { useDsl } from '@tmagic/vue-runtime-help';
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { inject } from 'vue';
|
import { inject } from 'vue';
|
||||||
|
|
||||||
|
import type Core from '@tmagic/core';
|
||||||
import { useEditorDsl } from '@tmagic/vue-runtime-help';
|
import { useEditorDsl } from '@tmagic/vue-runtime-help';
|
||||||
|
|
||||||
const app = inject<Core | undefined>('app');
|
const app = inject<Core | undefined>('app');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user