webcake-ui-kit 1.0.29 → 1.0.30
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
|
@@ -133,6 +133,12 @@ export default {
|
|
|
133
133
|
// eslint-disable-next-line vue/no-deprecated-events-api
|
|
134
134
|
this.$on('hook:beforeDestroy', this._cleanupAll)
|
|
135
135
|
}
|
|
136
|
+
if (!this._triggerEl && this.$el) {
|
|
137
|
+
const firstChild = this.$el.firstElementChild
|
|
138
|
+
if (firstChild && !firstChild.classList.contains('ui-menu-portal')) {
|
|
139
|
+
this._triggerEl = firstChild
|
|
140
|
+
}
|
|
141
|
+
}
|
|
136
142
|
if (this.isOpen) this.handleOpen()
|
|
137
143
|
},
|
|
138
144
|
beforeUnmount() {
|
|
@@ -24,15 +24,17 @@
|
|
|
24
24
|
</span>
|
|
25
25
|
<span v-if="badge" class="ui-sidebar-item__badge">{{ badge }}</span>
|
|
26
26
|
<span v-if="hasChildren" class="ui-sidebar-item__chevron" aria-hidden="true">
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
<slot name="icon-right">
|
|
28
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
29
|
+
<path
|
|
30
|
+
d="M3 4.5L6 7.5L9 4.5"
|
|
31
|
+
stroke="currentColor"
|
|
32
|
+
stroke-width="1.5"
|
|
33
|
+
stroke-linecap="round"
|
|
34
|
+
stroke-linejoin="round"
|
|
35
|
+
/>
|
|
36
|
+
</svg>
|
|
37
|
+
</slot>
|
|
36
38
|
</span>
|
|
37
39
|
</button>
|
|
38
40
|
</template>
|
|
@@ -91,6 +93,9 @@ export default {
|
|
|
91
93
|
computed: {
|
|
92
94
|
hasIconSlot() {
|
|
93
95
|
return !!((this.$scopedSlots && this.$scopedSlots['icon']) || this.$slots['icon'])
|
|
96
|
+
},
|
|
97
|
+
hasIconRightSlot() {
|
|
98
|
+
return !!((this.$scopedSlots && this.$scopedSlots['icon-right']) || this.$slots['icon-right'])
|
|
94
99
|
}
|
|
95
100
|
},
|
|
96
101
|
|