Skip to content

Commit 86f9c17

Browse files
committed
refactor(HeaderDropdown): add slots: header, dropdown, cleanup
1 parent 6d3a146 commit 86f9c17

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<template>
22
<b-nav-item-dropdown :right="right" :no-caret="noCaret">
33
<template slot="button-content">
4-
<slot name="button-content">
5-
<img
6-
src="static/img/avatars/6.jpg"
7-
class="img-avatar"
8-
alt="admin@bootstrapmaster.com" />
4+
<slot name="header">
5+
&#10068;
96
</slot>
107
</template>
11-
<slot>
12-
<div :style="{ right: 'auto', height: '400px' }">dropdown</div>
8+
<slot name="dropdown">
9+
<div :style="{ right: 'auto', height: '200px' }">
10+
<span class="text-center">dropdown</span>
11+
</div>
1312
</slot>
1413
</b-nav-item-dropdown>
1514
</template>
@@ -25,9 +24,6 @@ export default {
2524
type: Boolean,
2625
default: false
2726
}
28-
},
29-
data: () => {
30-
return { itemsCount: 42 }
3127
}
3228
}
3329
</script>

0 commit comments

Comments
 (0)