@zhenliang/sheet 0.1.93 → 0.1.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,8 +5,8 @@ import './index.less';
|
|
|
5
5
|
type inputProps = Partial<Pick<InputNumberProps, 'max' | 'min' | 'addonBefore' | 'addonAfter' | 'precision'> & {
|
|
6
6
|
warnMethod?: (record: any) => void;
|
|
7
7
|
rangeMethod?: (record: any) => {
|
|
8
|
-
max
|
|
9
|
-
min
|
|
8
|
+
max?: number;
|
|
9
|
+
min?: number;
|
|
10
10
|
};
|
|
11
11
|
}>;
|
|
12
12
|
export declare const NumberEditor: SheetType.CellEditor;
|
|
@@ -274,7 +274,7 @@ export var sideEffectReducer = {
|
|
|
274
274
|
col = _ref7.col;
|
|
275
275
|
var editor = data[0][col].dataEditor;
|
|
276
276
|
if (editor && editor.checker) {
|
|
277
|
-
return editor.checker(value, data[row][col].record, data[row][col].value);
|
|
277
|
+
return editor.checker(value, data[row] ? data[row][col].record : {}, data[row] ? data[row][col].value : null);
|
|
278
278
|
}
|
|
279
279
|
return true;
|
|
280
280
|
}).map(function (_ref8) {
|
|
@@ -290,7 +290,7 @@ export var sideEffectReducer = {
|
|
|
290
290
|
return {
|
|
291
291
|
row: row,
|
|
292
292
|
col: col,
|
|
293
|
-
value: editor !== null && editor !== void 0 && editor.parser ? editor === null || editor === void 0 || (_editor$parser2 = editor.parser) === null || _editor$parser2 === void 0 ? void 0 : _editor$parser2.call(editor, value, data[row][col].record, data[row][col].value) : value,
|
|
293
|
+
value: editor !== null && editor !== void 0 && editor.parser ? editor === null || editor === void 0 || (_editor$parser2 = editor.parser) === null || _editor$parser2 === void 0 ? void 0 : _editor$parser2.call(editor, value, data[row] ? data[row][col].record : {}, data[row] ? data[row][col].value : null) : value,
|
|
294
294
|
id: -lastIndex
|
|
295
295
|
};
|
|
296
296
|
});
|