From 14581858c81c922bab48c98f61965e077428e65f Mon Sep 17 00:00:00 2001 From: pany Date: Wed, 12 Feb 2025 18:16:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=20UnoCSS=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=B8=B8=E7=94=A8=E7=9A=84=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uno.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uno.config.ts b/uno.config.ts index fd86e6c..6be75a2 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -17,7 +17,12 @@ export default defineConfig({ presetRemToPx() ], // 自定义规则 - rules: [], + rules: [ + ["clearfix", { content: "''", display: "table", clear: "both" }], + ["no-select", { "user-select": "none", "touch-action": "none" }], + ["ellipsis", { "white-space": "nowrap", "overflow": "hidden", "text-overflow": "ellipsis" }], + [/^multi-ellipsis-(\d+)$/, ([, d]) => ({ "display": "-webkit-box", "-webkit-line-clamp": d, "-webkit-box-orient": "vertical", "overflow": "hidden", "text-overflow": "ellipsis" })] + ], // 自定义快捷方式 shortcuts: { "wh-full": "w-full h-full",