Skip to content

Commit

Permalink
fix: spinner 나타나지 않는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
lavi27 committed Jan 14, 2024
1 parent 676f100 commit b440a9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/LoadingSpinner.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script setup lang="ts">
const props = defineProps<{ type: number }>()
const { type } = defineProps<{ type: number }>()
if (!type) throw new Error(`LoadingSpinner component의 prop인 'type'이 누락되었습니다.`)
</script>

<template>
<div @class=";`spinner${props}`"></div>
<div :class="'spinner' + type"></div>
</template>

<style lang="scss">
Expand Down

0 comments on commit b440a9e

Please sign in to comment.