mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-23 09:40:22 +08:00
feat(moda;): can switch full screen by double-clicking on the head close #277
This commit is contained in:
parent
4f8e1c1b5f
commit
e3851dc5ea
@ -3,6 +3,7 @@
|
||||
### ✨ Features
|
||||
|
||||
- 新增 `settingButtonPosition`配置项,用于配置`设置`按钮位置
|
||||
- `modal`可以通过双击头部切换全屏
|
||||
|
||||
### ⚡ Performance Improvements
|
||||
|
||||
|
@ -10,7 +10,11 @@
|
||||
</template>
|
||||
|
||||
<template #title v-if="!$slots.title">
|
||||
<ModalHeader :helpMessage="getProps.helpMessage" :title="getMergeProps.title" />
|
||||
<ModalHeader
|
||||
:helpMessage="getProps.helpMessage"
|
||||
:title="getMergeProps.title"
|
||||
@dblclick="handleTitleDbClick"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template #footer v-if="!$slots.footer">
|
||||
@ -193,6 +197,12 @@
|
||||
extHeightRef.value = height;
|
||||
}
|
||||
|
||||
function handleTitleDbClick(e: ChangeEvent) {
|
||||
if (!props.canFullscreen) return;
|
||||
e.stopPropagation();
|
||||
handleFullScreen(e);
|
||||
}
|
||||
|
||||
return {
|
||||
handleCancel,
|
||||
getBindValue,
|
||||
@ -206,6 +216,7 @@
|
||||
modalWrapperRef,
|
||||
handleExtHeight,
|
||||
handleHeightChange,
|
||||
handleTitleDbClick,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
@ -44,6 +44,9 @@ body {
|
||||
}
|
||||
|
||||
a:focus,
|
||||
a:active {
|
||||
outline: none;
|
||||
a:active,
|
||||
button,
|
||||
div,
|
||||
span {
|
||||
outline: none !important;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user