📜  具有最小值的 spreadjs 自动调整列 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:38.140000             🧑  作者: Mango

代码示例1
var _oldFn = GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth;
GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth = function() {
  let minWidth = 100;
  let width = _oldFn.apply(this, arguments);
  return Math.max(minWidth, width);
};