Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
feat(insert image): insert image
Browse files Browse the repository at this point in the history
insert image
  • Loading branch information
wpxp123456 committed Sep 4, 2020
1 parent 3d17426 commit cf3ba93
Show file tree
Hide file tree
Showing 9 changed files with 1,340 additions and 155 deletions.
7 changes: 5 additions & 2 deletions src/controllers/constant.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions src/controllers/controlHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import server from './server';
import pivotTable from './pivotTable';
import conditionformat from './conditionformat';
import luckysheetPostil from './postil';
import imageCtrl from './imageCtrl';
import {zoomRefreshView,zoomNumberDomBind} from './zoom';
import { createFilter, createFilterOptions, labelFilterOptionState } from './filter';
import formula from '../global/formula';
Expand Down Expand Up @@ -337,6 +338,11 @@ const controlHistory = {
}
}
}
else if (ctr.type == "imageCtrl"){
imageCtrl.images = $.extend(true, {}, ctr.images);
imageCtrl.allImagesShow();
imageCtrl.ref();
}
else if (ctr.type=="zoomChange"){
Store.zoomRatio = ctr.zoomRatio;
server.saveParam("all", ctr.currentSheetIndex, ctr.zoomRatio, { "k": "zoomRatio" });
Expand Down Expand Up @@ -576,6 +582,11 @@ const controlHistory = {
}
}
}
else if (ctr.type == "imageCtrl"){
imageCtrl.images = $.extend(true, {}, ctr.curImages);
imageCtrl.allImagesShow();
imageCtrl.ref();
}
else if (ctr.type=="zoomChange"){
Store.zoomRatio = ctr.curZoomRatio;
server.saveParam("all", ctr.currentSheetIndex, ctr.curZoomRatio, { "k": "zoomRatio" });
Expand Down
Loading

0 comments on commit cf3ba93

Please sign in to comment.