在发的demo里面,app.vue页面的designerInitialized方法中加了
let originalTextCellTypeGetTextLogic =
GC.Spread.Sheets.CellTypes.Text.prototype.getText;
GC.Spread.Sheets.CellTypes.Text.prototype.getText = function (
value,
context
) {
let bp = context.sheet.getBindingPath(context.row, context.col);
if (bp) {
return "[" + bp + "]";
}
return originalTextCellTypeGetTextLogic.apply(this, arguments);
};
这些代码就变成问题中描述的样子了 |