refactor(CoilTable): 移除冗余的itemName参数传递
删除了不必要的itemName手动赋值,利用展开运算符直接传入row数据即可,简化代码逻辑
This commit is contained in:
@@ -220,7 +220,6 @@ export default {
|
||||
this.labelRender.visible = true;
|
||||
this.labelRender.data = {
|
||||
...row,
|
||||
itemName: itemName,
|
||||
updateTime: row.updateTime?.split(' ')[0] || '',
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user