/** * 类名合并工具函数 * 基于 clsx 和 tailwind-merge 的类名合并 */ import { type ClassValue, clsx } from 'clsx'; import { twMerge } from 'tailwind-merge'; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }