File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 6
6
<div
7
7
v-if =" !hideBar"
8
8
class =" vue-command__bar" >
9
- <!-- TODO Emit unique event per button -->
10
- <span class =" vue-command__bar__button vue-command__bar__button--close" ></span >
11
- <span class =" vue-command__bar__button vue-command__bar__button--minimize" ></span >
12
- <span class =" vue-command__bar__button vue-command__bar__button--fullscreen" ></span >
9
+ <span
10
+ class =" vue-command__bar__button vue-command__bar__button--close"
11
+ @click =" emits('click-close')" ></span >
12
+ <span
13
+ class =" vue-command__bar__button vue-command__bar__button--minimize"
14
+ @click =" emits('click-minimize')" ></span >
15
+ <span
16
+ class =" vue-command__bar__button vue-command__bar__button--fullscreen"
17
+ @click =" emits('click-fullscreen')" ></span >
13
18
</div >
14
19
</slot >
15
20
@@ -175,6 +180,9 @@ const props = defineProps({
175
180
176
181
// Update user given properties
177
182
const emits = defineEmits ([
183
+ ' click-close' ,
184
+ ' click-minimize' ,
185
+ ' click-fullscreen' ,
178
186
' update:cursorPosition' ,
179
187
' update:dispatchedQueries' ,
180
188
' update:history' ,
You can’t perform that action at this time.
0 commit comments