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
在VUE中使用 SheetComponent 初始化后tooltip展示正常, 但调用 SpreadSheet:setOptions(options,true) 后,data 区域内的 tooltip 悬浮为空白块。
SheetComponent
tooltip
SpreadSheet:setOptions(options,true)
data
https://codesandbox.io/p/sandbox/cranky-mopsa-5mflpr?file=%2Fsrc%2FApp.vue%3A9%2C19
示例中点击 设置 按钮, 然后鼠标点击数据区域单元格 可看到展示出的tooltip为空白块。
调用 setOptions(options, true) 后,data区域的tooltip 正常展示而非空白块。
setOptions(options, true)
调用 setOptions(options, true)后,data区域的tooltip 展示为空白块。
The text was updated successfully, but these errors were encountered:
Vue 的 tooltip 是通过 renderTooltip 自定义的 tooltip
Vue
renderTooltip
你这里的 s2Table 拿到的是 @antv/s2 实例引用, 所以 s2Table.setOptions(options, true) 执行后 tooltip 配置被重置成了 @antv/s2 的默认配置, 所以变成了空白.
s2Table
@antv/s2
s2Table.setOptions(options, true)
你可以直接改 const options = reactive(rawOptions) 的值, 或者这样
const options = reactive(rawOptions)
- s2Table.setOptions(options, true); + s2Table.setOptions( + { + ...options, + tooltip: s2Table.options.tooltip, + }, + true );
Sorry, something went wrong.
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
在VUE中使用
SheetComponent
初始化后tooltip
展示正常,但调用
SpreadSheet:setOptions(options,true)
后,data
区域内的tooltip
悬浮为空白块。⌨️ Code Snapshots
🔗 Reproduce Link
https://codesandbox.io/p/sandbox/cranky-mopsa-5mflpr?file=%2Fsrc%2FApp.vue%3A9%2C19
🤔 Steps to Reproduce
示例中点击 设置 按钮,
然后鼠标点击数据区域单元格 可看到展示出的tooltip为空白块。
😊 Expected Behavior
调用
setOptions(options, true)
后,data区域的tooltip
正常展示而非空白块。😅 Current Behavior
调用
setOptions(options, true)
后,data区域的tooltip
展示为空白块。💻 System information
The text was updated successfully, but these errors were encountered: