chore: script setup components (#7299)

This commit is contained in:
Kuchenpirat
2026-03-23 21:18:25 +01:00
committed by GitHub
parent 3ad2d9155d
commit 5ab6e98f9e
47 changed files with 1721 additions and 2453 deletions

View File

@@ -30,33 +30,26 @@
</v-card>
</template>
<script lang="ts">
export default defineNuxtComponent({
props: {
icon: {
type: String,
default: null,
},
minWidth: {
type: String,
default: "",
},
to: {
type: String,
default: null,
},
<script setup lang="ts">
const props = defineProps({
icon: {
type: String,
default: null,
},
setup(props) {
const { $globals } = useNuxtApp();
const activeIcon = computed(() => {
return props.icon ?? $globals.icons.primary;
});
return {
activeIcon,
};
minWidth: {
type: String,
default: "",
},
to: {
type: String,
default: null,
},
});
const { $globals } = useNuxtApp();
const activeIcon = computed(() => {
return props.icon ?? $globals.icons.primary;
});
</script>