We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7728590 commit b988b5cCopy full SHA for b988b5c
src/controllers/server.js
@@ -703,16 +703,16 @@ const server = {
703
}
704
705
else{
706
- file["column"] += len;
+ file["column"] += len;
707
708
for(let i = 0; i < data.length; i++){
709
- // data[i].splice(st_i, 0, addData[i]);
710
-
711
- // 备注:区分插入的位置(可能是左侧插入或者右侧插入)
712
- if(direction == "lefttop"){
713
- data[i].splice(st_i, 0, addData[i]);
714
- }else{
715
- data[i].splice(st_i + 1, 0, addData[i]);
+ /* 在每一行的指定位置都插入一列 */
+ for (let j = 0; j < len; j++) {
+ if(direction == "lefttop"){
+ data[i].splice(st_i, 0, addData[j]);
+ }else{
+ data[i].splice(st_i + 1, 0, addData[j]);
+ }
716
717
718
0 commit comments