chore(form,editor): 代码块编辑中按esc不会退出

This commit is contained in:
roymondchen 2023-08-04 20:02:51 +08:00
parent f9dc628ef4
commit 44efb3a967
3 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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: '确定',