From 05fd8e17f5bcc8efea62a50b93753f0187e006a5 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Wed, 17 Dec 2025 22:53:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=E6=B7=BB=E5=8A=A0=E9=80=9A?= =?UTF-8?q?=E7=94=A8=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 cn 函数用于合并 Tailwind CSS 类名 - 集成 clsx 和 tailwind-merge 库 --- src/lib/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/lib/utils.ts diff --git a/src/lib/utils.ts b/src/lib/utils.ts new file mode 100644 index 0000000..1f75838 --- /dev/null +++ b/src/lib/utils.ts @@ -0,0 +1,5 @@ +import { clsx, type ClassValue } from 'clsx'; + +export function cn(...inputs: ClassValue[]) { + return clsx(inputs); +}