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" })] ], // 自定义快捷方式