大屏样式完成
This commit is contained in:
@@ -192,6 +192,19 @@ export default {
|
||||
const item = tableData[k.substring(1) || 0] || {}
|
||||
item[prop] = v
|
||||
tableData[k.substring(1) || 0] = item
|
||||
}else if (k != columnProp) {
|
||||
const index = columns.findIndex(e => k == e)
|
||||
if (index > -1) {
|
||||
const item = tableData[index] || {}
|
||||
item[prop] = v
|
||||
tableData[index] = item
|
||||
} else {
|
||||
columns.push(k)
|
||||
const newIndex = columns.length - 1
|
||||
const item = tableData[newIndex] || {}
|
||||
item[prop] = v
|
||||
tableData[newIndex] = item
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user