refactor(select-menu): remove menu-visible

This commit is contained in:
07akioni 2020-10-09 22:07:00 +08:00
parent 89a42c94a1
commit 632a635bdd
3 changed files with 0 additions and 19 deletions

View File

@ -165,10 +165,6 @@ export default {
default: true
},
// deprecated
onMenuVisible: {
type: Function,
default: undefined
},
onMenuToggleOption: {
type: Function,
default: undefined
@ -290,13 +286,6 @@ export default {
handleListResize () {
this.scrollbarRef.sync()
},
handleMenuVisible () {
// TODO: remove it
const {
onMenuVisible
} = this
if (onMenuVisible) onMenuVisible()
},
handleMenuScroll (e, scrollContainer, scrollContent) {
const {
onMenuScroll

View File

@ -21,7 +21,6 @@
:size="size"
:value="value"
@menu-toggle-option="handleSelectMenuToggleOption"
@menu-visible="handleMenuVisible"
/>
</transition>
</div>
@ -216,9 +215,6 @@ export default {
this.handleSelectOptionCheck(pendingOptionData)
}
},
handleMenuVisible () {
this.__placeableSyncPosition()
},
handleClickOutside (e) {
this.NCascader.handleSelectMenuClickOutside(e)
}

View File

@ -78,7 +78,6 @@
:value="value"
@menu-toggle-option="handleToggleOption"
@menu-scroll="handleMenuScroll"
@menu-visible="handleMenuVisible"
>
<template v-if="$slots.empty" v-slot:empty>
<slot name="empty" />
@ -668,9 +667,6 @@ export default {
this.doUpdateValue(null)
}
},
handleMenuVisible () {
this.__placeableSyncPosition()
},
/**
* scroll events on menu
*/