源代码: const moneyFour = this.findObject(this.gridOptions.columnDefs, "moneyFour"); moneyFour.headerName = this.data[0].costTypeFourName;
moneyFour为字段名 更新后发现不能实时渲染
后面加上
this.gridOptions.api.setColumnDefs(this.gridOptions.columnDefs)
问题解决
源代码: const moneyFour = this.findObject(this.gridOptions.columnDefs, "moneyFour"); moneyFour.headerName = this.data[0].costTypeFourName;
moneyFour为字段名 更新后发现不能实时渲染
后面加上
this.gridOptions.api.setColumnDefs(this.gridOptions.columnDefs)
问题解决