mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 23:20:12 +08:00
identificate new record (#381)
* new record in table parent * validate is new record
This commit is contained in:
parent
1f97c9f339
commit
d8f4b7e89c
@ -725,7 +725,7 @@ export default {
|
|||||||
this.getterDataRecords.shift()
|
this.getterDataRecords.shift()
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
if (row.isNew) {
|
if (row.isNew && this.isEmptyValue(row.Created)) {
|
||||||
return 'warning-row'
|
return 'warning-row'
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
@ -1073,7 +1073,7 @@ export default {
|
|||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.el-table .warning-row {
|
.el-table .warning-row {
|
||||||
background: rgba(104, 245, 203, 0.712);
|
background: rgba(161, 250, 223, 0.945);
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table .success-row {
|
.el-table .success-row {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user