refactor: remove withDefaults macro and clean up reactive props destructuring (#3217)

This commit is contained in:
TAKAHASHI Shuuji 2025-03-02 23:50:12 +09:00 committed by GitHub
parent 7d9712c209
commit 60b1d0224c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 177 additions and 232 deletions

View file

@ -1,11 +1,7 @@
<script setup lang="ts">
import type { ResolvedCommand } from '~/composables/command'
const {
cmd,
index,
active = false,
} = defineProps<{
const { active = false } = defineProps<{
cmd: ResolvedCommand
index: number
active?: boolean

View file

@ -1,11 +1,11 @@
<script setup lang="ts">
const props = defineProps<{
const { name } = defineProps<{
name: string
}>()
const isMac = useIsMac()
const keys = computed(() => props.name.toLowerCase().split('+'))
const keys = computed(() => name.toLowerCase().split('+'))
</script>
<template>