From a8a3cd554656572f15cc13ba860a08367464f225 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sat, 1 Nov 2025 18:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA=E6=A1=86?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/theme.ts | 7 ++++++- styles/public/tippy.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/theme.ts b/src/core/theme.ts index 45dc5c5..2ecb90a 100644 --- a/src/core/theme.ts +++ b/src/core/theme.ts @@ -7,7 +7,12 @@ import type { MapLeafNodes, WithOptionalLayer } from "./types"; export type Theme = WithOptionalLayer>; export const overlayAppear = "overlay-appear"; -export const animation = `200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running ${overlayAppear}`; +export const animation = { + animation: overlayAppear, + animationDuration: "80ms", + animationFillMode: "forwards", + animationTimingFunction: "ease-in", +}; export const overlayAppearDown = "overlay-appear-down"; export const animationDown = `200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running ${overlayAppearDown}`; export const overlayAppearUp = "overlay-appear-up"; diff --git a/styles/public/tippy.ts b/styles/public/tippy.ts index 23c3d3c..258fca6 100644 --- a/styles/public/tippy.ts +++ b/styles/public/tippy.ts @@ -43,7 +43,7 @@ export const tippyBox = css` } // 专门用于提示信息的提示框, 比如提交的具体时间, 任务状态等 &[data-theme="tooltip"] { - animation: ${animation}; + ${animation}; .tippy-content { font-size: 12px; font-weight: 400;