mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-03 04:21:34 +08:00
refactor(select-menu): remove menu-visible
This commit is contained in:
parent
89a42c94a1
commit
632a635bdd
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user