作者:anilshen_333 | 来源:互联网 | 2023-09-18 11:43
index":customRow="customRow" // :rowClassName="rowClassName" // >
methods: {customRow(record) {return {on: {click: () => {this.updateState({ tableCurrRowId: record.id });this.OLPoints.locateFeature(record);},},};},rowClassName(record) {return record.id === this.tableCurrRowId ? 'customBlue' : null; // 指定行,增加customBlue的class效果},
}