diff --git a/package/component/src/component/table/TableRow.vue b/package/component/src/component/table/TableRow.vue index 1532f509..ae9bbc2d 100644 --- a/package/component/src/component/table/TableRow.vue +++ b/package/component/src/component/table/TableRow.vue @@ -156,13 +156,13 @@ const renderFixedStyle = (column: any, columnIndex: number) => { return { right: `${right}px` } as StyleValue; } } else { - var isLast = true; - for (var i = columnIndex + 1; i < props.columns.length; i++) { - if (props.columns[i].fixed == undefined) { - isLast = false; - } + var isLast = true; + for (var i = columnIndex + 1; i < props.columns.length; i++) { + if (props.columns[i].fixed == undefined) { + isLast = false; } - return isLast ? { "border-right": "none" } as StyleValue : {}; + } + return isLast ? ({ "border-right": "none" } as StyleValue) : {}; } return {} as StyleValue; }; @@ -454,7 +454,9 @@ const renderFixedClassName = (column: any, columnIndex: number) => {