mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
indicate new record in parent table (#406)
This commit is contained in:
parent
20dfa472b1
commit
b45740e3a3
@ -726,7 +726,7 @@ export default {
|
||||
this.getterDataRecords.shift()
|
||||
},
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
if (row.isNew && this.isEmptyValue(row.Created)) {
|
||||
if (row.isNew && rowIndex === 0) {
|
||||
return 'warning-row'
|
||||
}
|
||||
return ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user