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] Instance.arrangeCustomCellStyle(cellPosition, 'a0001') 设置单元格样式报错 #1729

Closed
sfeng95 opened this issue May 18, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@sfeng95
Copy link

sfeng95 commented May 18, 2024

Version

0.24,0.25版本都是

Link to Minimal Reproduction

设置单元格样式报错

Steps to Reproduce

Instance.arrangeCustomCellStyle(cellPosition, 'a0001') 设置单元格样式报错

Current Behavior

Instance.arrangeCustomCellStyle(cellPosition, 'a0001') 设置单元格样式报错

Expected Behavior

Instance.arrangeCustomCellStyle(cellPosition, 'a0001') 设置单元格样式报错

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Instance.arrangeCustomCellStyle(cellPosition, 'a0001') 设置单元格样式报错

@sfeng95 sfeng95 added the bug Something isn't working label May 18, 2024
@Rui-Sun
Copy link
Contributor

Rui-Sun commented May 21, 2024

具体是什么报错呢?能提供一下报错的例子吗?站点的用例好像没复现这个问题 https://www.visactor.io/vtable/demo/custom-render/custom-style

@sfeng95
Copy link
Author

sfeng95 commented May 29, 2024

具体是什么报错呢?能提供一下报错的例子吗?站点的用例好像没复现这个问题 https://www.visactor.io/vtable/demo/custom-render/custom-style

不是配置文档,是接口文档,地址:https://www.visactor.io/vtable/api/Methods#registerCustomCellStyleArrangement
let cellPosition: any = { row: 1, column: 1 ,range:{}}; listTableInstance.registerCustomCellStyleArrangement(cellPosition, 'a0001')报错,说函数不存在
微信图片_20240529170544
Uploading 微信图片_20240529170411.png…

@Rui-Sun
Copy link
Contributor

Rui-Sun commented May 30, 2024

这里文档生成的有问题,api是arrangeCustomCellStyle,我们修改一下;还有个问题cellPosition中col&row和range是两种模式,互斥的,只配一种就好

@sfeng95
Copy link
Author

sfeng95 commented May 31, 2024

很感谢你的帮助!但是依然报错
捕获
捕获2
捕获3
捕获4

@Rui-Sun
Copy link
Contributor

Rui-Sun commented May 31, 2024

是col,不是column

@sfeng95
Copy link
Author

sfeng95 commented May 31, 2024

是的,我也刚发现,文档写错了。很感谢你的帮助。我以后有时间也会抽空来一起写代码。等我的产品卖钱了,我也会捐赠你们项目。不过你们大公司不差钱。感谢!
Uploading 捕获.PNG…

@Rui-Sun
Copy link
Contributor

Rui-Sun commented May 31, 2024

我们会尽快修复一下文档,非常欢迎一起贡献代码👏🏻👏🏻👏🏻

@sfeng95
Copy link
Author

sfeng95 commented May 31, 2024

好的!谢谢!

@sfeng95 sfeng95 closed this as completed May 31, 2024
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

2 participants