修改已知问题
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
:scroll="{x: true}"
|
:scroll="{x: true}"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:rowClassName="rowClassName"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
@change="tableOnChange"
|
@change="tableOnChange"
|
||||||
>
|
>
|
||||||
@@ -124,7 +125,9 @@
|
|||||||
this.getTableList()
|
this.getTableList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
rowClassName(record) {
|
||||||
|
return record.state == '废止' ? 'rowClassNameBack' : ''
|
||||||
|
},
|
||||||
getTextWith(text, fontStyle) {
|
getTextWith(text, fontStyle) {
|
||||||
var canvas = document.createElement('canvas')
|
var canvas = document.createElement('canvas')
|
||||||
var context = canvas.getContext('2d')
|
var context = canvas.getContext('2d')
|
||||||
@@ -245,6 +248,10 @@
|
|||||||
.ant-table td {
|
.ant-table td {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rowClassNameBack {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.box {
|
.box {
|
||||||
|
|||||||
Reference in New Issue
Block a user