mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 02:28:04 +08:00 
			
		
		
		
	chore(form,editor): 代码块编辑中按esc不会退出
This commit is contained in:
		
							parent
							
								
									f9dc628ef4
								
							
						
					
					
						commit
						44efb3a967
					
				@ -2,6 +2,7 @@
 | 
				
			|||||||
  <MFormDrawer
 | 
					  <MFormDrawer
 | 
				
			||||||
    ref="fomDrawer"
 | 
					    ref="fomDrawer"
 | 
				
			||||||
    label-width="80px"
 | 
					    label-width="80px"
 | 
				
			||||||
 | 
					    :close-on-press-escape="false"
 | 
				
			||||||
    :title="content.name"
 | 
					    :title="content.name"
 | 
				
			||||||
    :width="size"
 | 
					    :width="size"
 | 
				
			||||||
    :config="functionConfig"
 | 
					    :config="functionConfig"
 | 
				
			||||||
 | 
				
			|||||||
@ -2,6 +2,7 @@
 | 
				
			|||||||
  <MFormDrawer
 | 
					  <MFormDrawer
 | 
				
			||||||
    ref="fomDrawer"
 | 
					    ref="fomDrawer"
 | 
				
			||||||
    label-width="80px"
 | 
					    label-width="80px"
 | 
				
			||||||
 | 
					    :close-on-press-escape="false"
 | 
				
			||||||
    :title="title"
 | 
					    :title="title"
 | 
				
			||||||
    :width="size"
 | 
					    :width="size"
 | 
				
			||||||
    :config="dataSourceConfig"
 | 
					    :config="dataSourceConfig"
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
    class="m-form-drawer"
 | 
					    class="m-form-drawer"
 | 
				
			||||||
    v-model="visible"
 | 
					    v-model="visible"
 | 
				
			||||||
    :title="title"
 | 
					    :title="title"
 | 
				
			||||||
    :close-on-press-escape="true"
 | 
					    :close-on-press-escape="closeOnPressEscape"
 | 
				
			||||||
    :append-to-body="true"
 | 
					    :append-to-body="true"
 | 
				
			||||||
    :show-close="true"
 | 
					    :show-close="true"
 | 
				
			||||||
    :close-on-click-modal="true"
 | 
					    :close-on-click-modal="true"
 | 
				
			||||||
@ -66,12 +66,14 @@ withDefaults(
 | 
				
			|||||||
    width?: string | number;
 | 
					    width?: string | number;
 | 
				
			||||||
    labelWidth?: string;
 | 
					    labelWidth?: string;
 | 
				
			||||||
    disabled?: boolean;
 | 
					    disabled?: boolean;
 | 
				
			||||||
 | 
					    closeOnPressEscape?: boolean;
 | 
				
			||||||
    title?: string;
 | 
					    title?: string;
 | 
				
			||||||
    zIndex?: number;
 | 
					    zIndex?: number;
 | 
				
			||||||
    size?: 'small' | 'default' | 'large';
 | 
					    size?: 'small' | 'default' | 'large';
 | 
				
			||||||
    confirmText?: string;
 | 
					    confirmText?: string;
 | 
				
			||||||
  }>(),
 | 
					  }>(),
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
 | 
					    closeOnPressEscape: true,
 | 
				
			||||||
    config: () => [],
 | 
					    config: () => [],
 | 
				
			||||||
    values: () => ({}),
 | 
					    values: () => ({}),
 | 
				
			||||||
    confirmText: '确定',
 | 
					    confirmText: '确定',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user