Skip to content

Commit 62e9b45

Browse files
committed
chore: Cleanup examples
1 parent 22df352 commit 62e9b45

File tree

7 files changed

+5
-12
lines changed

7 files changed

+5
-12
lines changed

src/__tests__/components/Button.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ export default {
1010
default: 'Button Text',
1111
},
1212
},
13+
emits: {click: null},
1314
methods: {
14-
handleClick(e) {
15+
handleClick(_e) {
1516
this.$emit('click')
1617
},
1718
},

src/__tests__/components/Collapsible.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
}
1616
},
1717
methods: {
18-
handleClick(e) {
18+
handleClick(_) {
1919
this.displayElement = !this.displayElement
2020
},
2121
},

src/__tests__/components/Form.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
<script>
4343
export default {
44+
emits: {submit: null},
4445
data() {
4546
return {
4647
title: '',
@@ -49,13 +50,11 @@ export default {
4950
recommend: false,
5051
}
5152
},
52-
5353
computed: {
5454
submitDisabled() {
5555
return !this.title || !this.review
5656
},
5757
},
58-
5958
methods: {
6059
submit() {
6160
if (this.submitDisabled) return

src/__tests__/components/FunctionalSFC.vue

-3
This file was deleted.

src/__tests__/components/Stubs.vue

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Directive from './Directive'
77
88
export default {
99
name: 'Stubs',
10-
1110
components: {
1211
Directive,
1312
},

src/__tests__/components/TextMatchers.vue

-3
This file was deleted.

src/__tests__/components/Vuetify.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</v-card>
99
</v-dialog>
1010
<v-menu bottom offset-y>
11-
<template v-slot:activator="{on}">
11+
<template #activator="{on}">
1212
<v-btn icon v-on="on">open menu</v-btn>
1313
</template>
1414
<v-list>

0 commit comments

Comments
 (0)