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

关于引入 react-color 的提议 #50

Closed
Autumnal-Joy opened this issue Mar 6, 2025 · 2 comments
Closed

关于引入 react-color 的提议 #50

Autumnal-Joy opened this issue Mar 6, 2025 · 2 comments

Comments

@Autumnal-Joy
Copy link
Collaborator

最近我在为 #23 开发自定义 Option 功能,觉得颜色选择这块可以做得更好。

Image

我看到 react-color 这个库,觉得它的颜色提取和选择功能挺适合用在这里,操作会更方便。我计划在自定义 Option 中集成 react-color 的颜色选择器。

Image

想先问问你的意见,是否觉得这个方案可行?如果有其他想法,随时告诉我~

@Autumnal-Joy
Copy link
Collaborator Author

Bootstrap 组件库文档里写了 Form.Control 支持颜色选择,但我复现不出来,点击按钮没有响应。

Image

排查了一个多小时,找到原因是 Form.Control 不能在 Link 的内部

之前某次修改把 Model 放在 Link 内部,导致 Form.Control 在 Link 的内部,嵌套太深了一开始根本想不到是这个原因 😭

Image

@Autumnal-Joy
Copy link
Collaborator Author

目前沿用了bootstrap的组件,是这样的效果

Image

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

1 participant