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:
Ferdinand Thiessen 2024-05-17 12:01:34 +02:00
Родитель d585d10a2d
Коммит 7caf01bc7f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 45FAE7268762B400
1 изменённых файлов: 0 добавлений и 22 удалений

Просмотреть файл

@ -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