mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-19 03:55:50 +08:00
style(vue-runtime-help): 完善类型
This commit is contained in:
parent
305ea4619f
commit
6cb08cf458
@ -4,7 +4,7 @@ import type TMagicApp from '@tmagic/core';
|
||||
import type { ChangeEvent, Id, MNode } from '@tmagic/core';
|
||||
import { isPage, isPageFragment, replaceChildNode } from '@tmagic/core';
|
||||
|
||||
export const useDsl = (app = inject<TMagicApp>('app'), pageFragmentConstainerId: Id) => {
|
||||
export const useDsl = (app = inject<TMagicApp>('app'), pageFragmentConstainerId?: Id) => {
|
||||
if (!app) {
|
||||
throw new Error('useDsl must be used after MagicApp is created');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user