1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

identificate new record (#381)

* new record in table parent

* validate is new record
This commit is contained in:
elsiosanchez 2020-03-11 20:56:21 -04:00 committed by GitHub
parent 1f97c9f339
commit d8f4b7e89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -725,7 +725,7 @@ export default {
this.getterDataRecords.shift()
},
tableRowClassName({ row, rowIndex }) {
if (row.isNew) {
if (row.isNew && this.isEmptyValue(row.Created)) {
return 'warning-row'
}
return ''
@ -1073,7 +1073,7 @@ export default {
</style>
<style>
.el-table .warning-row {
background: rgba(104, 245, 203, 0.712);
background: rgba(161, 250, 223, 0.945);
}
.el-table .success-row {