Skip to content

如何在theme.ts中locales.footer的自定义html中获取到$isDarkMode?(万分感谢回答,在线等) #2308

Answered by Mister-Hope
heshimang asked this question in Q&A
Discussion options

You must be logged in to vote

你不能,建议写两张图片,并用css选择器控制显示其中之一。

你可以参考 imageMark 是如何实现的并进行同样的操作

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@heshimang
Comment options

@Mister-Hope
Comment options

Answer selected by Mister-Hope
Comment options

You must be logged in to vote
1 reply
@heshimang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants