feat(utils): 添加通用工具函数

- 添加 cn 函数用于合并 Tailwind CSS 类名
- 集成 clsx 和 tailwind-merge 库
This commit is contained in:
gaoziman 2025-12-17 22:53:05 +08:00
parent db418d0f0d
commit 05fd8e17f5

5
src/lib/utils.ts Normal file
View File

@ -0,0 +1,5 @@
import { clsx, type ClassValue } from 'clsx';
export function cn(...inputs: ClassValue[]) {
return clsx(inputs);
}