Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
530e1a3d5d
commit
195069450f
480 files changed
+15507
-24650
No files matched your search
@@ -1,18 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { Icon } from "@iconify/vue"
|
||||
import type { ProjectGroup } from "../lesson"
|
||||
import { Icon } from '@iconify/vue'
|
||||
import type { ProjectGroup } from '../lesson'
|
||||
|
||||
/** 项目的小方块图标:智能家居一个房子、智慧农业一片叶子…… */
|
||||
defineProps<{ icon: string; tone: ProjectGroup["tone"]; size?: number }>()
|
||||
defineProps<{ icon: string; tone: ProjectGroup['tone']; size?: number }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span
|
||||
class="tile"
|
||||
:class="tone"
|
||||
:style="{ width: `${size ?? 36}px`, height: `${size ?? 36}px` }"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<span class="tile" :class="tone" :style="{ width: `${size ?? 36}px`, height: `${size ?? 36}px` }" aria-hidden="true">
|
||||
<Icon :icon="icon" :width="Math.round((size ?? 36) * 0.55)" />
|
||||
</span>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user