mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 10:49:51 +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 type { ChangeEvent, Id, MNode } from '@tmagic/core';
 | 
				
			||||||
import { isPage, isPageFragment, replaceChildNode } 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) {
 | 
					  if (!app) {
 | 
				
			||||||
    throw new Error('useDsl must be used after MagicApp is created');
 | 
					    throw new Error('useDsl must be used after MagicApp is created');
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user