fix(data-table): useless vars

This commit is contained in:
07akioni 2020-12-11 12:50:02 +08:00
parent 488bfc5b7d
commit 9221cfb1fc
2 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@
<table ref="body" class="n-data-table-table">
<colgroup>
<col
v-for="(column, index) in columns"
v-for="column in columns"
:key="column.key"
:style="createCustomWidthStyle(column, index, placement)"
:style="createCustomWidthStyle(column)"
>
</colgroup>
<tbody ref="tbody" class="n-data-table-tbody">

View File

@ -1,6 +1,6 @@
import { formatLength } from '../../_utils'
export function createCustomWidthStyle (column, index, placement) {
export function createCustomWidthStyle (column) {
if (column.width) {
const width = column.width
return {