add capture prop
This commit is contained in:
parent
6b827bb4be
commit
d29a51230e
6 changed files with 51 additions and 88 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div
|
||||
:class="[prefixCls]"
|
||||
v-click-outside="onClickoutside"
|
||||
v-click-outside:[capture]="onClickoutside"
|
||||
@mouseenter="handleMouseenter"
|
||||
@mouseleave="handleMouseleave">
|
||||
<div :class="relClasses" ref="reference" @click="handleClick" @contextmenu.prevent="handleRightClick"><slot></slot></div>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</template>
|
||||
<script>
|
||||
import Drop from '../select/dropdown.vue';
|
||||
import {directive as clickOutside} from 'v-click-outside-x';
|
||||
import {directive as clickOutside} from '../../directives/v-click-outside-x';
|
||||
import TransferDom from '../../directives/transfer-dom';
|
||||
import { oneOf, findComponentUpward } from '../../utils/assist';
|
||||
|
||||
|
@ -61,6 +61,13 @@
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 4.0.0
|
||||
capture: {
|
||||
type: Boolean,
|
||||
default () {
|
||||
return !this.$IVIEW ? true : this.$IVIEW.capture;
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
transition () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue