Dropdown, Select, AutoComplete, DatePicker, TimePicker, Cascader, ColorPicker, Tooltip, Poptip add prop eventsEnabled
This commit is contained in:
parent
8dc80b8430
commit
b707ab7319
7 changed files with 42 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
@on-clickoutside="handleClickOutside"
|
||||
:transfer="transfer"
|
||||
:capture="capture"
|
||||
:eventsEnabled="eventsEnabled"
|
||||
>
|
||||
<slot name="input">
|
||||
<i-input
|
||||
|
@ -117,6 +118,11 @@
|
|||
default () {
|
||||
return !this.$IVIEW ? true : this.$IVIEW.capture;
|
||||
}
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
v-show="visible"
|
||||
:class="dropdownCls"
|
||||
ref="drop"
|
||||
:eventsEnabled="eventsEnabled"
|
||||
:data-transfer="transfer"
|
||||
:transfer="transfer"
|
||||
v-transfer-dom>
|
||||
|
@ -152,6 +153,11 @@
|
|||
},
|
||||
transferClassName: {
|
||||
type: String
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
:data-transfer="transfer"
|
||||
:transfer="transfer"
|
||||
:class="dropClasses"
|
||||
:eventsEnabled="eventsEnabled"
|
||||
>
|
||||
<transition name="fade">
|
||||
<div
|
||||
|
@ -231,6 +232,11 @@ export default {
|
|||
},
|
||||
transferClassName: {
|
||||
type: String
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
:class="dropdownCls"
|
||||
:placement="placement"
|
||||
ref="drop"
|
||||
:eventsEnabled="eventsEnabled"
|
||||
:data-transfer="transfer"
|
||||
:transfer="transfer"
|
||||
v-transfer-dom>
|
||||
|
@ -223,6 +224,11 @@
|
|||
},
|
||||
transferClassName: {
|
||||
type: String
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data(){
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
ref="drop"
|
||||
@mouseenter.native="handleMouseenter"
|
||||
@mouseleave.native="handleMouseleave"
|
||||
:eventsEnabled="eventsEnabled"
|
||||
:data-transfer="transfer"
|
||||
:transfer="transfer"
|
||||
v-transfer-dom><slot name="list"></slot></Drop>
|
||||
|
@ -67,6 +68,11 @@
|
|||
default () {
|
||||
return !this.$IVIEW ? true : this.$IVIEW.capture;
|
||||
}
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
},
|
||||
transfer: {
|
||||
type: Boolean
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -50,7 +55,7 @@
|
|||
this.popperStatus = true;
|
||||
} else {
|
||||
this.popper = new Popper(this.$parent.$refs.reference, this.$el, {
|
||||
eventsEnabled: false,
|
||||
eventsEnabled: this.eventsEnabled,
|
||||
placement: this.placement,
|
||||
modifiers: {
|
||||
computeStyle:{
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
:data-transfer="transfer"
|
||||
:transfer="transfer"
|
||||
v-transfer-dom
|
||||
:eventsEnabled="eventsEnabled"
|
||||
>
|
||||
<ul v-show="showNotFoundLabel && !allowCreate" :class="[prefixCls + '-not-found']"><li>{{ localeNotFoundText }}</li></ul>
|
||||
|
||||
|
@ -290,6 +291,11 @@
|
|||
filterByLabel: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 4.6.0
|
||||
eventsEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
|
|
Loading…
Add table
Reference in a new issue