From 5a0ddfe44771245765900b4accd7d3c735facd02 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 3 Apr 2024 17:05:44 +0800 Subject: [PATCH] + tooltip: add hint to use tooltip with pure css. --- lib/tooltip/README.md | 21 +++++++ lib/tooltip/src/style/hint.css | 96 +++++++++++++++++++++++++++++++ lib/tooltip/src/style/index.ts | 2 + lib/tooltip/src/style/tooltip.css | 2 +- lib/tooltip/src/style/vars.css | 6 ++ 5 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 lib/tooltip/src/style/hint.css create mode 100644 lib/tooltip/src/style/vars.css diff --git a/lib/tooltip/README.md b/lib/tooltip/README.md index 211589609c..67bb8e1a9a 100755 --- a/lib/tooltip/README.md +++ b/lib/tooltip/README.md @@ -2,6 +2,27 @@ 提示消息又称“工具提示”,在用户鼠标悬停在元素上时及时显示额外的内容。 +## 纯 CSS 提示 + +```html:example:row -gap-x-32 gap-y-4 flex-wrap +
hint
+
hint-right
+
hint-bottom
+
hint-left
+ +
hint-sm
+
hint-md
+
hint-lg
+
hint-xl
+ +
hint-primary
+
hint-success
+
hint-danger
+
hint-warning
+
hint-important
+
hint-special
+``` + ## 用法 使用组件类 `.btn` 来获得按钮外观,通常搭配 `