|
@@ -97,7 +97,6 @@ $(document).ready(() => {
|
|
|
TipCellType.prototype.getHitInfo = function (x, y, cellStyle, cellRect, context) {
|
|
|
return { x: x, y: y, row: context.row, col: context.col, cellRect: cellRect, sheetArea: context.sheetArea, sheet: context.sheet };
|
|
|
};
|
|
|
- console.log('hello');
|
|
|
TipCellType.prototype.processMouseEnter = function (hitInfo){
|
|
|
if (!this._toolTipElement) {
|
|
|
var div = document.createElement("div");
|
|
@@ -850,10 +849,10 @@ $(document).ready(() => {
|
|
|
const [valid, msg] = this._checkExprValid(expr);
|
|
|
if (!valid) return [valid, msg];
|
|
|
data.expr = expr;
|
|
|
- // data.quantity = ZhCalc.calcExpr(expr);
|
|
|
- const ce = new CalcEvalMin();
|
|
|
- data.quantity = ce.eval(expr);
|
|
|
- console.log(data.quantity);
|
|
|
+ data.quantity = ZhCalc.calcExpr.calcExprStrRpn(expr);
|
|
|
+ // const ce = new CalcEvalMin();
|
|
|
+ // data.quantity = ce.eval(expr);
|
|
|
+ // console.log(data.quantity);
|
|
|
}
|
|
|
} else {
|
|
|
data.quantity = 0;
|