fix!(NcAppSidebar): Remove deprecated events `opening` and `closing`
Those events are always emitted by a known state and duplicating the `open` state. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Родитель
d585d10a2d
Коммит
7caf01bc7f
|
@ -450,9 +450,7 @@ export default {
|
|||
<template>
|
||||
<transition appear
|
||||
name="slide-right"
|
||||
@before-enter="onBeforeEnter"
|
||||
@after-enter="onAfterEnter"
|
||||
@before-leave="onBeforeLeave"
|
||||
@after-leave="onAfterLeave">
|
||||
<aside v-show="open"
|
||||
id="app-sidebar-vue"
|
||||
|
@ -760,9 +758,7 @@ export default {
|
|||
|
||||
emits: [
|
||||
'close',
|
||||
'closing',
|
||||
'closed',
|
||||
'opening',
|
||||
'opened',
|
||||
// 'figure-click', not emitted on purpose to make "hasFigureClickListener" work
|
||||
'update:active',
|
||||
|
@ -899,15 +895,6 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
onBeforeEnter(element) {
|
||||
/**
|
||||
* The sidebar is opening and the transition is in progress
|
||||
*
|
||||
* @type {HTMLElement}
|
||||
* @deprecated
|
||||
*/
|
||||
this.$emit('opening', element)
|
||||
},
|
||||
onAfterEnter(element) {
|
||||
/**
|
||||
* The sidebar is opened and the transition is complete
|
||||
|
@ -916,15 +903,6 @@ export default {
|
|||
*/
|
||||
this.$emit('opened', element)
|
||||
},
|
||||
onBeforeLeave(element) {
|
||||
/**
|
||||
* The sidebar is closing and the transition is in progress
|
||||
*
|
||||
* @type {HTMLElement}
|
||||
* @deprecated
|
||||
*/
|
||||
this.$emit('closing', element)
|
||||
},
|
||||
onAfterLeave(element) {
|
||||
/**
|
||||
* The sidebar is closed and the transition is complete
|
||||
|
|
Загрузка…
Ссылка в новой задаче