Parcourir la source

fix(drawer): ensure the slot is working

Vben il y a 4 ans
Parent
commit
b9b470f4df
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/components/Drawer/src/BasicDrawer.vue

+ 3 - 0
src/components/Drawer/src/BasicDrawer.vue

@@ -12,6 +12,9 @@
         </template>
       </DrawerHeader>
     </template>
+    <template v-else #title>
+      <slot name="title"></slot>
+    </template>
 
     <ScrollContainer
       :style="getScrollContentStyle"