Przeglądaj źródła

fix(drawer): ensure the slot is working

Vben 4 lat temu
rodzic
commit
b9b470f4df
1 zmienionych plików z 3 dodań i 0 usunięć
  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"