parent
							
								
									da10933cd3
								
							
						
					
					
						commit
						d5952c060f
					
				|  | @ -123,6 +123,7 @@ export interface ModalFuncProps { | |||
|   autoFocusButton?: null | 'ok' | 'cancel'; | ||||
|   transitionName?: string; | ||||
|   maskTransitionName?: string; | ||||
|   parentContext?: any; | ||||
| } | ||||
| 
 | ||||
| type getContainerFunc = () => HTMLElement; | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ import { destroyFns } from './Modal'; | |||
| 
 | ||||
| import Omit from 'omit.js'; | ||||
| 
 | ||||
| export default function confirm(config: ModalFuncProps & { parentContext?: any }) { | ||||
| export default function confirm(config: ModalFuncProps) { | ||||
|   const div = document.createElement('div'); | ||||
|   document.body.appendChild(div); | ||||
|   let currentConfig = { ...Omit(config, ['parentContext']), close, visible: true } as any; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 tangjinzhou
						tangjinzhou