Replies: 1 comment 1 reply
-
2.0.0-next.10 版本有点太老了, 请优先考虑升级版本, 你这个版本需要这样写 dataCell: (viewMeta, spreadsheet) => {
- return new CustomDataCell(viewMeta, spreadsheet)
+ return new CustomDataCell(viewMeta, viewMeta?.spreadsheet)
}
codesandbox 默认安装的是 latest, 对应的是 1.x 版本, 应该使用 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
s2版本是:2.0.0-next.10
问题:自定义明细表的对齐方式,报错:Cannot read properties of undefined (reading 'theme') 是什么原因??
参照官网案例写的:https://s2.antv.antgroup.com/zh/examples/custom/custom-cell/#custom-table-cell
在官网案例中,点击右上角【在CodeSandbox中打开】,也是报错了,链接:https://codesandbox.io/s/pthgzp
这样怎么改啊?急急急!
Beta Was this translation helpful? Give feedback.
All reactions