rapid-spreadjs 1.0.186 → 1.0.187
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.
- package/dist/index.cjs.js +5 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +5 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23984,22 +23984,18 @@ const FormulaUtils = {
|
|
|
23984
23984
|
optional: false,
|
|
23985
23985
|
},
|
|
23986
23986
|
{
|
|
23987
|
-
name: '
|
|
23988
|
-
repeatable: false,
|
|
23989
|
-
optional: false,
|
|
23990
|
-
},
|
|
23991
|
-
{
|
|
23992
|
-
name: '目标点y坐标',
|
|
23987
|
+
name: '目标点坐标,格式如 (3.5,6.5)',
|
|
23993
23988
|
repeatable: false,
|
|
23994
23989
|
optional: false,
|
|
23995
23990
|
},
|
|
23996
23991
|
],
|
|
23997
23992
|
funCallback: (spread, sheet, retData) => {
|
|
23998
|
-
// 如果传递的参数小于
|
|
23999
|
-
if (retData.allCellVals.length <
|
|
23993
|
+
// 如果传递的参数小于2个,则返回/
|
|
23994
|
+
if (retData.allCellVals.length < 2) {
|
|
24000
23995
|
return '/';
|
|
24001
23996
|
}
|
|
24002
|
-
|
|
23997
|
+
const pointStrArr = retData.allCellVals[1].replace('(', '').replace(')', '').split(',');
|
|
23998
|
+
let points = retData.allCellVals[0], xPoint = pointStrArr[0], yPoint = pointStrArr[1];
|
|
24003
23999
|
// 1. 格式校验
|
|
24004
24000
|
if (typeof points !== 'string' || !points)
|
|
24005
24001
|
return '/';
|