1
0
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:
elsiosanchez 2020-03-16 19:05:12 -04:00 committed by GitHub
parent 20dfa472b1
commit b45740e3a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ''