mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-15 13:56:51 +08:00
feat(components): 优化裁剪器和对话框组件
- 在 cropper 组件中添加 initial-coverage 属性,移除固定尺寸属性 - 在 RenderDialog 组件中添加 closeOnPressEscape 属性- 在 intelligent-agent 组件中设置 dialog 的 closeOnPressEscape 为 false
This commit is contained in:
@@ -33,12 +33,10 @@
|
|||||||
<cropper-handle action="select" plain></cropper-handle>
|
<cropper-handle action="select" plain></cropper-handle>
|
||||||
<cropper-selection
|
<cropper-selection
|
||||||
id="cropperSelection"
|
id="cropperSelection"
|
||||||
|
initial-coverage="0.5"
|
||||||
movable
|
movable
|
||||||
resizable
|
resizable
|
||||||
x="150"
|
zoomable
|
||||||
y="100"
|
|
||||||
width="275"
|
|
||||||
height="275"
|
|
||||||
ref="selection"
|
ref="selection"
|
||||||
>
|
>
|
||||||
<cropper-handle
|
<cropper-handle
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
:width="width"
|
:width="width"
|
||||||
:before-close="handleBeforeClose"
|
:before-close="handleBeforeClose"
|
||||||
:closeOnClickModal="closeOnClickModal"
|
:closeOnClickModal="closeOnClickModal"
|
||||||
|
:close-on-press-escape="closeOnPressEscape"
|
||||||
>
|
>
|
||||||
<div class="render-dialog-body">
|
<div class="render-dialog-body">
|
||||||
<slot name="default"></slot>
|
<slot name="default"></slot>
|
||||||
@@ -42,6 +43,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
closeOnPressEscape: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
closeOnClickModal: {
|
closeOnClickModal: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
|||||||
@@ -259,6 +259,7 @@ export default {
|
|||||||
:visible.sync="dialog.visible"
|
:visible.sync="dialog.visible"
|
||||||
:title="dialog.title"
|
:title="dialog.title"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
@confirm="infoConfirm"
|
@confirm="infoConfirm"
|
||||||
width="50vw"
|
width="50vw"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user