-
Notifications
You must be signed in to change notification settings - Fork 208
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
[Feature] vtable-vue的dataConfig配置项totals动态变更,如何更新,目前不会主动渲染 #3308
Comments
可以仿照接口:https://visactor.io/vtable/api/Methods#updateSortRules 感谢你的反馈!我们已经收到你的问题,并将在后续进行处理。 Thank you for your feedback! We have received your question and will deal with it later. |
目前api并没有提供可以更新dataConfig的update方法 |
我的意思是可以提pr贡献代码 @jiliangmason |
What problem does this feature solve?
vtable-vue的dataConfig配置项totals动态变更,如何更新,目前不会主动渲染
<PivotTable :options="tableOptions" :records="records" ref="pivotTableRef">
其中tableOptions的dataConfig如下:
dataConfig: { totals: { row: { showGrandTotals: true, showSubTotals: false, subTotalsDimensions: [], grandTotalLabel: 'Row Totals', subTotalLabel: 'Sub Totals' }, column: { showGrandTotals: true, // 总合计列 showSubTotals: true, // 组内合计列 subTotalsDimensions: ['Region'], grandTotalLabel: 'Column Totals', subTotalLabel: 'Sub Totals' } } },
点击事件动态修改showGrandTotals的值,发现vtable不会主动更新,尝试使用vtable实例提供的updateOption并未生效
const handleClick = () => { const show = tableOptions.value.dataConfig.totals.row.showGrandTotals tableOptions.value.dataConfig.totals.row.showGrandTotals = !show }
What does the proposed API look like?
期望可以提供一个update方法可以主动更新图表,update(option) option为当前的option
The text was updated successfully, but these errors were encountered: