Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主题色衍生色生成错误 #604

Closed
jiangmaniu opened this issue May 14, 2021 · 3 comments
Closed

主题色衍生色生成错误 #604

jiangmaniu opened this issue May 14, 2021 · 3 comments

Comments

@jiangmaniu
Copy link

image
modeColors 变量是表示生成暗色的主题衍生色吗?

我打印了这两个变量控制台显示的是同样的值:
image

解构出来前面的 colors 变量被后面的 modeColors 覆盖了

@mynetfan
Copy link
Collaborator

你为什么不把[...colors, ...modeColors]也打印出来看看是不是像你说的那样被覆盖了呢?

@jiangmaniu
Copy link
Author

@mynetfan 抱歉,我看错成对象解构了。第一个问题我还是有些疑惑,如果 modeColors 变量不是表示生成的暗色主题衍生色,那请问 colors 变量和 modeColors 变量有什么区别吗?

@jiangmaniu
Copy link
Author

我的理解是 modeColors 是用来表示生成暗色主题衍生色的。如果是我理解的这样,那程序中的代码是有问题的,我可以修复它。

jiangmaniu added a commit to jiangmaniu/vue-vben-admin that referenced this issue May 14, 2021
fix(theme generate): Fix vbenjs#604
@anncwb anncwb closed this as completed in c26dd03 May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants