初始提交:实习工作日志系统(设计方案 + Vue3 应用 + Electron 打包)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { ICONS } from './icons'
|
||||
|
||||
const props = withDefaults(defineProps<{ name: string; size?: number }>(), { size: 16 })
|
||||
const html = computed(() => ICONS[props.name] || '')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="icon" :style="{ width: size + 'px', height: size + 'px' }" v-html="html"></span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user