lkt-menu 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-menu",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lkt",
@@ -122,6 +122,11 @@
122
122
  </template>
123
123
  </lkt-button>
124
124
 
125
+ <lkt-header
126
+ v-else-if="entry.type === MenuEntryType.Header"
127
+ v-bind="entry.header"
128
+ />
129
+
125
130
  <lkt-anchor
126
131
  v-else-if="entry.type === MenuEntryType.Anchor"
127
132
  v-bind="entry.anchor"
@@ -85,21 +85,26 @@
85
85
  </script>
86
86
 
87
87
  <template>
88
- <div class="lkt-menu-container">
89
- <div class="lkt-menu">
90
- <menu-item v-for="(entry, i) in entries" v-model="entries[i]" :key="entry.key" :class="entry.class">
91
- <template v-for="slot in entryIconSlots" v-slot:[slot]>
92
- <slot :name="slot" />
93
- </template>
94
-
95
- <template v-if="slots[`tooltip-${entry.key}`]" #tooltip>
96
- <slot :name="`tooltip-${entry.key}`"/>
97
- </template>
98
-
99
- <template v-if="slots[`split-${entry.key}`]" #split>
100
- <slot :name="`split-${entry.key}`"/>
101
- </template>
102
- </menu-item>
88
+ <div class="lkt-menu">
89
+ <div class="lkt-menu-main">
90
+ <template v-if="slots.before">
91
+ <slot name="before"/>
92
+ </template>
93
+ <div class="lkt-menu-entries">
94
+ <menu-item v-for="(entry, i) in entries" v-model="entries[i]" :key="entry.key" :class="entry.class">
95
+ <template v-for="slot in entryIconSlots" v-slot:[slot]>
96
+ <slot :name="slot" />
97
+ </template>
98
+
99
+ <template v-if="slots[`tooltip-${entry.key}`]" #tooltip>
100
+ <slot :name="`tooltip-${entry.key}`"/>
101
+ </template>
102
+
103
+ <template v-if="slots[`split-${entry.key}`]" #split>
104
+ <slot :name="`split-${entry.key}`"/>
105
+ </template>
106
+ </menu-item>
107
+ </div>
103
108
  </div>
104
109
  <div class="lkt-menu-outside" v-on:click="onClickOutside" />
105
110
  </div>