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

@@ -35,8 +35,12 @@ interface Props {
}
const props = withDefaults(defineProps<Props>(), {
class: undefined,
position: 'popper',
side: undefined,
sideOffset: 4,
align: undefined,
alignOffset: undefined,
})
const contentClass = computed(() =>