Pārlūkot izejas kodu

fix(drawer): ensure the slot is working

Vben 4 gadi atpakaļ
vecāks
revīzija
b9b470f4df
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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"