Skip to content

Commit d340675

Browse files
committed
fixed reRender
1 parent f5b6d49 commit d340675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ve-table/src/body/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ export default {
548548
*/
549549
tdSizeChange({ key, width }) {
550550
const { colsWidths } = this;
551-
colsWidths.set(key, width);
551+
// fix reRender by column resize
552+
colsWidths.set(key, Math.floor(width));
552553
this.$emit(EMIT_EVENTS.BODY_CELL_WIDTH_CHANGE, colsWidths);
553554
},
554555

0 commit comments

Comments
 (0)