From d24a0174878fbaba877c19ab0e6e864fa9cf32ce Mon Sep 17 00:00:00 2001 From: pany Date: Wed, 12 Feb 2025 18:20:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=B8=BA=20UnoCSS=20=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=A7=84=E5=88=99=E6=B7=BB=E5=8A=A0=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uno.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uno.config.ts b/uno.config.ts index 6be75a2..98fbfc4 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -18,9 +18,13 @@ export default defineConfig({ ], // 自定义规则 rules: [ + // use class="after-clearfix" ["clearfix", { content: "''", display: "table", clear: "both" }], + // use class="no-select" ["no-select", { "user-select": "none", "touch-action": "none" }], + // use class="ellipsis" ["ellipsis", { "white-space": "nowrap", "overflow": "hidden", "text-overflow": "ellipsis" }], + // use class="multi-ellipsis-2" [/^multi-ellipsis-(\d+)$/, ([, d]) => ({ "display": "-webkit-box", "-webkit-line-clamp": d, "-webkit-box-orient": "vertical", "overflow": "hidden", "text-overflow": "ellipsis" })] ], // 自定义快捷方式