mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
fix(data-table): useless vars
This commit is contained in:
parent
488bfc5b7d
commit
9221cfb1fc
@ -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">
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user