@veritree/ui 0.22.2 → 0.22.3
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.
|
@@ -98,9 +98,9 @@ export const floatingUiItemMixin = {
|
|
|
98
98
|
focus: this.focus,
|
|
99
99
|
onClick: this.onClick,
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
|
|
102
102
|
this.apiInjected().registerItem(item);
|
|
103
|
-
|
|
103
|
+
|
|
104
104
|
this.index = this.items.length - 1;
|
|
105
105
|
},
|
|
106
106
|
|
|
@@ -185,11 +185,15 @@ export const floatingUiItemMixin = {
|
|
|
185
185
|
},
|
|
186
186
|
|
|
187
187
|
onClick() {
|
|
188
|
+
console.log(this.value);
|
|
188
189
|
if (this.disabled) {
|
|
189
190
|
return;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
|
-
this.value
|
|
193
|
+
this.value !== undefined
|
|
194
|
+
? this.apiInjected().emit(this.value)
|
|
195
|
+
: this.$emit('click');
|
|
196
|
+
|
|
193
197
|
this.$nextTick(() => this.leaveMenu());
|
|
194
198
|
},
|
|
195
199
|
|