Skip to content

Commit 9e7507f

Browse files
committed
ActionButton にローディング状態を追加
1 parent 47ba5d1 commit 9e7507f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ActionButton.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<v-btn
33
:class="`ActionButton ActionButton-${theme}`"
44
:disabled="isDisabled"
5+
:loading="isLoading"
56
rounded
67
@click="onClick"
78
>
@@ -25,8 +26,11 @@ export default class ActionButton extends Vue {
2526
@Prop({ default: false })
2627
isDisabled?: boolean
2728
29+
@Prop({ default: false })
30+
isLoading?: boolean
31+
2832
onClick(): void {
29-
this.$router.push('/')
33+
this.$emit('onClick')
3034
}
3135
}
3236
</script>

0 commit comments

Comments
 (0)