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
compact 模式下计算列头宽,错误地使用了 field 格式化前的原始 id
import React from 'react'; import ReactDOM from 'react-dom'; import { SheetComponent } from '@antv/s2-react'; import '@antv/s2-react/dist/style.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', ) .then((res) => res.json()) .then((dataCfg) => { // original: fields.values = ['number'] // data = [{ ..., number: 123, ... }] // meta = [{ field: 'number', name: '数量' }] const newValueKey = 'a-long-field-id-that-trigger-width-calc-bug'; dataCfg.fields.values[0] = newValueKey; dataCfg.meta[0].field = newValueKey; dataCfg.data.forEach(item => item[newValueKey] = item.number); const s2Options = { width: 600.32, height: 480, style: { layoutWidthType: 'compact', frozenRowHeader: true, colCfg: { height: 32, }, device: 'pc' } }; ReactDOM.render( <SheetComponent dataCfg={dataCfg} options={s2Options} />, document.getElementById('container'), ); });
The text was updated successfully, but these errors were encountered:
补充其他情况
valueInCols: false
formatter: val => "超级长的格式化" + val
Sorry, something went wrong.
🎉 This issue has been resolved in version @antv/s2-v1.6.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
lcx-seima
Successfully merging a pull request may close this issue.
🏷 Version
🖋 Description
compact 模式下计算列头宽,错误地使用了 field 格式化前的原始 id
⌨️ Code Snapshots
🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
😅 Current Behavior
💻 System information
The text was updated successfully, but these errors were encountered: