refactor(frontend): 优化 UI 基础组件

- 添加默认 class 属性支持
- 改进组件类型定义
- 优化属性配置
This commit is contained in:
fawney19
2025-12-12 20:21:50 +08:00
parent ca60202636
commit c2eaa9181a
7 changed files with 12 additions and 2 deletions

View File

@@ -10,6 +10,8 @@ interface Props {
}
const props = withDefaults(defineProps<Props>(), {
class: undefined,
src: undefined,
alt: ''
})