Browse Source

fix: wrong defineProps

pull/7651/head
mertmit 7 months ago
parent
commit
1e9e0d5aab
  1. 12
      packages/nc-gui/components/general/NocoIcon.vue

12
packages/nc-gui/components/general/NocoIcon.vue

@ -1,12 +1,20 @@
<script lang="ts" setup>
import { autoResetRef, useThrottleFn } from '#imports'
import { autoResetRef, useThrottleFn, toRefs } from '#imports'
interface Props {
size?: number
animate?: boolean
}
const { size = 90, animate = false } = defineProps<Props>()
const props = withDefaults(
defineProps<Props>(),
{
size: 90,
animate: false,
},
)
const { size, animate } = toRefs(props)
const ping = autoResetRef(false, 1000)

Loading…
Cancel
Save