Browse Source

fix: vue/custom-event-name-casing

pull/8018/head
xingyu4j 4 months ago
parent
commit
564b349700
  1. 4
      packages/@core/ui-kit/layout-ui/src/vben-layout.vue

4
packages/@core/ui-kit/layout-ui/src/vben-layout.vue

@ -67,7 +67,7 @@ const props = withDefaults(defineProps<Props>(), {
const emit = defineEmits<{
sideMouseLeave: [];
toggleSidebar: [];
'update:sidebar-width': [value: number];
'update:sidebarWidth': [value: number];
}>();
const sidebarDraggable = defineModel<boolean>('sidebarDraggable', {
default: true,
@ -520,7 +520,7 @@ const idMainContent = ELEMENT_ID_MAIN_CONTENT;
:width="getSidebarWidth"
:z-index="sidebarZIndex"
@leave="() => emit('sideMouseLeave')"
@update:width="(val) => emit('update:sidebar-width', val)"
@update:width="(val) => emit('update:sidebarWidth', val)"
>
<template v-if="isSideMode && !isMixedNav" #logo>
<slot name="logo"></slot>

Loading…
Cancel
Save