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

View File

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

View File

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