Skip to content
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

左侧固定fixed,中间某列width:auto 数据80条,且有x轴滚动条,固定列首次渲染会向上留白,卡顿一下 #2677

Closed
luoye111 opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@luoye111
Copy link

luoye111 commented Dec 10, 2024

<div :style="{width:'400px'}"> <vxe-table border :column-config="{ useKey: true }" :row-config="{ useKey: true }" :data="tableData" > <vxe-column type="seq" width="60" fixed="left"></vxe-column> <vxe-column field="name" title="Name" fixed="left" width="auto" sortable type="html" ></vxe-column> <vxe-column field="age" title="age" width="100" sortable type="html" ></vxe-column> <vxe-column field="sex" width="100" title="sex" sortable type="html" ></vxe-column> <vxe-column field="describeHtml" title="<span class=red>HTML 标签与筛选</span>" type="html" width="100" ></vxe-column> <vxe-column field="role" width="100" type="html" title="<span class=green>HTML 标签与格式化</span>" :formatter="formatRole" ></vxe-column> </vxe-table>
data() { return { tableData: [], htmlOptions: [ { label: "包含 aa", value: "aa" }, { label: "包含 bb", value: "bb" }, ], }; }, methods: { formatRole({ cellValue }) { return23434343434323423423424234234; }, filterDescribeMethod({ value, row }) { return row.describeHtml.indexOf(value) > -1; }, getData() { let data = []; for (let i = 0; i <= 80; i++) { data.push({ name: "xx1", age: "南", sex: "23232323", describe: "字母 aa -1", describeHtml: '<span style="color: red">字母 <span style="color: blue">aa</span> -1</span>', role: "oo1", }); } this.tableData = data; } }, created() { this.getData(0); }

20241210-104304.mp4
@luoye111 luoye111 added the bug Something isn't working label Dec 10, 2024
@luoye111 luoye111 changed the title 左侧固定fixed,中间某列width:auto 数据80条,固定列首次渲染会留白卡顿一下 左侧固定fixed,中间某列width:auto 数据80条,且有x轴滚动条,固定列首次渲染会向上留白,卡顿一下 Dec 10, 2024
@luoye111 luoye111 reopened this Dec 10, 2024
@xuliangzhan
Copy link
Collaborator

#2740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants