@hailin-zheng/editor-core 1.1.14 → 1.1.15

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/index.js CHANGED
@@ -9240,7 +9240,7 @@ class TableSplitCell {
9240
9240
  const mergeCols = this.getHMergeColsCount(tb, focusRowIndex, focusCellIndex);
9241
9241
  //只有拆分的行数需要满足此条件
9242
9242
  if (mergeRows > 1 && rows > 1) {
9243
- if (rows % mergeRows !== 0) {
9243
+ if (mergeRows % rows !== 0) {
9244
9244
  throw new Error(`当前合并的行数为:${mergeRows},当前可拆分的行数是${mergeRows}的约数`);
9245
9245
  }
9246
9246
  }