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

🐛 [Bug]: 表格 designConfig 中的 theme dark 未生效 #2922

Open
hashiqi12138 opened this issue Feb 19, 2025 · 3 comments
Open

🐛 [Bug]: 表格 designConfig 中的 theme dark 未生效 #2922

hashiqi12138 opened this issue Feb 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@hashiqi12138
Copy link
Contributor

Version

latest

Vue Version

latest

Link to minimal reproduction

自定义组件grid 的 designConfig 时,传入 theme:dark 字段,tooltip 依然为白色

Step to reproduce

自定义组件grid 的 designConfig 时

传入 theme:dark 字段

What is expected

自定义组件grid 的 designConfig 时,传入 theme:dark 字段,tooltip 背景为白色

What is actually happening

自定义组件grid 的 designConfig 时,传入 theme:dark 字段,tooltip 背景为黑色

What is your project name

Any additional comments (optional)

No response

Copy link

看起来您在使用 opentiny/tiny-vue 的时候遇到了一个问题,即在自定义组件 grid 的 designConfig 中传入 theme: dark 字段时,tooltip 的背景颜色没有如预期变为白色,而是保持为黑色。

为了帮助您解决这个问题,我建议您检查以下几点:

  1. 确认配置是否正确应用:确保 designConfig 中的 theme: dark 配置确实被正确传递和应用到组件中。

  2. 检查样式覆盖:有可能是其他样式或 CSS 覆盖了 tooltip 的样式,导致颜色没有变化。您可以通过浏览器的开发者工具检查 tooltip 的样式,看看是否有其他样式影响了它。

  3. 查看文档或示例:查看 opentiny/tiny-vue 的文档或示例代码,确认 theme: dark 的使用方式是否正确。

如果这些检查都没有帮助,您可以提供一个最小可复现的代码示例,我可以帮助您进一步分析问题。

如果您需要,我可以为您在 GitHub 上创建一个 issue 来跟踪这个问题。请确认是否需要我这样做。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: The theme dark in the table designConfig is not effective

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It seems that you have a problem when using opentiny/tiny-vue, that is, when you pass in the theme: dark field in the designConfig of the custom component grid, the background color of the tooltip does not turn white as expected, and It is kept as black.

To help you solve this problem, I suggest you check the following:

  1. Confirm that the configuration is applied correctly: Make sure that the theme: dark configuration in designConfig is indeed correctly passed and applied to the component.

  2. Check style overrides: It is possible that other styles or CSS overwrite the tooltip style, resulting in no change in color. You can check the style of tooltip through the browser's developer tools to see if there are other styles that affect it.

  3. View the document or example: View the document or sample code of opentiny/tiny-vue to confirm whether the theme: dark is used correctly.

If none of these checks help, you can provide a minimally reproducible code example that I can help you analyze the problem further.

If you need it, I can create an issue for you on GitHub to track this issue. Please make sure if I need to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants