摘要:
1、主要实现代码 // 切换主题 const toggleTheme = () => { isDark.value = !isDark.value; localStorage.setItem('isDark', isDark.value); // 获取过渡动画起始坐标 const clientX = 阅读全文
posted @ 2025-03-20 05:26
派大星在干嘛
阅读(53)
评论(0)
推荐(0)
摘要:
1、定义两套主题样式 :root{ --theme-bg-color: #ffffff; --theme-text-color: #000000; } :root.dark{ --theme-bg-color: #121212; --theme-text-color: #ffffff; } 2、给挂 阅读全文
posted @ 2025-03-20 04:58
派大星在干嘛
阅读(58)
评论(0)
推荐(0)

浙公网安备 33010602011771号