We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.1
https://visactor.io/vtable/demo/theme/extend
CSS background: linear-gradient(180deg,#d2e6ff,#f5faff)
background: linear-gradient(180deg,#d2e6ff,#f5faff)
将示例中的 theme.headerStyle.bgColor 换成
headerStyle: { bgColor: (args) => { // return '#d2e6ff'; const _canvas = args.table.canvas; const ctx = _canvas.getContext('2d'); // const gradient = ctx!.createLinearGradient(0, 0, _canvas.width, _canvas.height); const gradient = ctx!.createLinearGradient(0, 0, 0, 40); gradient.addColorStop(0, '#d2e6ff'); gradient.addColorStop(1, '#f5faff'); return gradient; } }
显示成了黄色背景
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
目前我们单元格的背景色bgColor不支持渐变配置形式。这个需求我们后面可以考虑下。 目前的话 你可以用自定义渲染来实现:参考 https://visactor.io/vtable/demo/business/sales-bubble
Sorry, something went wrong.
那 TS 类型提示用改下么?我以为我用法有问题
好的 我们优化下吧。
转为需求后续开发。可以在theme中表头 body 或者table整体 设置渐变色配置。 单元格的渐变也考虑下如何实现
fangsmile
No branches or pull requests
Version
1.0.1
Link to Minimal Reproduction
https://visactor.io/vtable/demo/theme/extend
Steps to Reproduce
CSS
background: linear-gradient(180deg,#d2e6ff,#f5faff)
将示例中的 theme.headerStyle.bgColor 换成
Current Behavior
显示成了黄色背景
![image](https://private-user-images.githubusercontent.com/23130670/333514406-cb4df10f-489f-42a8-810b-9531962b6ae4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NDk0MDAsIm5iZiI6MTcyMTk0OTEwMCwicGF0aCI6Ii8yMzEzMDY3MC8zMzM1MTQ0MDYtY2I0ZGYxMGYtNDg5Zi00MmE4LTgxMGItOTUzMTk2MmI2YWU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDIzMTE0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlM2Q1OTc4ZGU4NGQwMjI1MGQ2NDg4OGZhMWEyZDA1YWFiMWNjN2ZmMzQzYjU4MzllNzQ1ZmU5NmQyYzU5YzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cmItrbUdJd4_TQow0KbdToOfA8xxOMQcDr-h2pz7K8Q)
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: