File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 3
3
name =" dialog-fade"
4
4
@after-enter =" afterEnter"
5
5
@after-leave =" afterLeave" >
6
- <div class =" el-dialog__wrapper" v-show =" visible" @click.self =" handleWrapperClick" @mouseup = " handleMouseup " >
6
+ <div class =" el-dialog__wrapper" v-show =" visible" @click.self =" handleWrapperClick" >
7
7
<div
8
8
role =" dialog"
9
9
aria-modal =" true"
10
10
:aria-label =" title || 'dialog'"
11
11
class =" el-dialog"
12
12
:class =" [{ 'is-fullscreen': fullscreen, 'el-dialog--center': center }, customClass]"
13
13
ref =" dialog"
14
- :style =" style"
15
- @mousedown =" handleMousedown" >
14
+ :style =" style" >
16
15
<div class =" el-dialog__header" >
17
16
<slot name =" title" >
18
17
<span class =" el-dialog__title" >{{ title }}</span >
40
39
import Migrating from ' element-ui/src/mixins/migrating' ;
41
40
import emitter from ' element-ui/src/mixins/emitter' ;
42
41
43
- let dialogMouseDown = false ;
44
-
45
42
export default {
46
43
name: ' ElDialog' ,
47
44
155
152
};
156
153
},
157
154
handleWrapperClick () {
158
- if (! this .closeOnClickModal || dialogMouseDown ) return ;
155
+ if (! this .closeOnClickModal ) return ;
159
156
this .handleClose ();
160
157
},
161
- handleMousedown () {
162
- dialogMouseDown = true ;
163
- },
164
- handleMouseup () {
165
- if (dialogMouseDown) {
166
- this .$nextTick (_ => {
167
- dialogMouseDown = false ;
168
- });
169
- }
170
- },
171
158
handleClose () {
172
159
if (typeof this .beforeClose === ' function' ) {
173
160
this .beforeClose (this .hide );
You can’t perform that action at this time.
0 commit comments