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