您好,单元格继承了Base ,您可以重写Base ,
- const baseCellPaint = GC.Spread.Sheets.CellTypes.Base.prototype.paint;
- GC.Spread.Sheets.CellTypes.Base.prototype.paint = function (ctx, value, x1, y1, a1, b1, style, options) {
- style.cellPadding = "2"
- baseCellPaint.call(this, ctx, value, x1, y1, a1, b1, style, options);
- }
复制代码
|