主题Theme theme
明暗切换 + View Transitions 涟漪兜底Light/dark switching with a View-Transitions ripple fallback
实时示例Live example
右上角的主题开关就是它(toggleTheme 的简化版)——这里也可以直接试,同样写入 authnexus.theme。The switch in the top bar is this module (a simplified toggleTheme). Try it here — it writes the same authnexus.theme key.
PropsProps
逻辑模块没有 props——导出与签名见本节「导出」与源码。A logic module has no props — see Exports and the source.
导出Exports6
Theme ToggleThemeOptions applyTheme currentTheme themeState toggleTheme
完整签名见生成物 dist/index.d.ts(由源码自动提取)。Full signatures live in dist/index.d.ts, extracted from source.
依赖Dependencies
toast
源码Source
vue/lib/theme.ts
在 GitHub 上查看View on GitHub ↗