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
当浏览器缩放到150%,这时候 ant 表格如果过宽超出屏幕,高版本的Safari浏览器对dom样式会有转换问题
例如:以下表格因为超出了屏幕,样式错乱了,表格没有展示 当表格大小未超过屏幕,则表格是正常显示的,
<div id="Page1"> <div className="font-title text-black mb-16">剩余待付款金额:100000</div> <Table dataSource={billResult?.[EFinComWriteOFFResultType.Payment] || []} columns={[ { title: 'a', dataIndex: 'supplierCode', render: (_t, r) => `${normalRender(r.supplierCode)}:${normalRender(r.supplierName)}`, }, { title: 'b', dataIndex: 'finSettlementCompanyName', render: normalRender, }, { title: 'c', dataIndex: 'amount', align: 'right', render: t => amountToComponent(t), },]} pagination={false} /> </div>
export const domToPdf = async (pageInfos: { domId: string; scale?: number }[]) => { const canvas = await domToCanvas(document.querySelector(`#Page1`)); console.log('ca', canvas); document.getElementsByTagName(`body`)[0].appendChild(canvas); };
The text was updated successfully, but these errors were encountered:
谁能帮我看看,救救孩子吧
Sorry, something went wrong.
No branches or pull requests
问题
当浏览器缩放到150%,这时候 ant 表格如果过宽超出屏幕,高版本的Safari浏览器对dom样式会有转换问题
例如:以下表格因为超出了屏幕,样式错乱了,表格没有展示
当表格大小未超过屏幕,则表格是正常显示的,
code
Your Environment
我试过,老版本的Safari不会有,高版本稳定复现
The text was updated successfully, but these errors were encountered: