- 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) {
- console.log(ctx, value, x1, y1, a1, b1, style, options)
- if (!ctx) {
- return;
- }
- baseCellPaint.call(this, ctx, value, x1, y1, a1, b1, style, options);
- if (checkIsStringNumber(value, style.formatter, style?.cellType)) {
- ctx.save();
- let base = 10;
- ctx.beginPath();
- ctx.moveTo(x1, y1);
- ctx.lineTo(x1, y1 + base);
- ctx.lineTo(x1 + base, y1);
- ctx.fillStyle = '#00B061';
- ctx.fill();
- ctx.closePath();
- ctx.restore();
- }
- }
复制代码 使用以上代码进行了角标设置,但是导致了筛选框中的内容也带了角标,请问该如何去除?
|