Skip to content

Commit 290e202

Browse files
committed
Remove unused properties
1 parent 069cef6 commit 290e202

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

tests/__tests__/components/Button.vue

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
<template>
2-
<button :class="typeClass" @click="handleClick">{{ text }}</button>
2+
<button @click="handleClick">{{ text }}</button>
33
</template>
44

55
<script>
66
export default {
77
props: {
88
text: {
99
type: String,
10-
default: ''
11-
},
12-
type: {
13-
validator: value => ['primary', 'secondary'].includes(value),
14-
default: 'primary'
15-
}
16-
},
17-
computed: {
18-
typeClass: function() {
19-
if (this.type) {
20-
return `button button--${this.type}`
21-
}
22-
return 'button'
10+
required: true
2311
}
2412
},
2513
methods: {

0 commit comments

Comments
 (0)