refactor: 移除 twMerge 以简化 cn() 函数实现

This commit is contained in:
2026-06-30 22:00:08 +08:00
parent 47e08f80b3
commit d18ae5d41c
+1 -2
View File
@@ -1,6 +1,5 @@
import { type ClassValue, clsx } from 'clsx'; import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) { export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs)); return clsx(inputs);
} }