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
|
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
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user