Skip to content

Commit

Permalink
fix: suffix/prefix props warning
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 4, 2023
1 parent 88e5ed4 commit e64088f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/dashboard/Statistic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ const props = withDefaults(
value: number | string
// CountUp
useCountUp?: boolean
prefix?: string
suffix?: string
decimalPlaces?: number
startVal?: number
}>(),
{
prefix: undefined,
suffix: undefined,
useCountUp: false,
decimalPlaces: 0,
startVal: 0
Expand All @@ -34,8 +31,6 @@ const props = withDefaults(
:start-val="props.startVal"
:end-val="props.value"
:decimal-places="props.decimalPlaces"
:prefix="props.prefix"
:suffix="props.suffix"
>
{{ props.value }}
<template v-if="slots.prefix" #prefix>
Expand Down

0 comments on commit e64088f

Please sign in to comment.