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

Commit

Permalink
feat(collaborative editing): collaborative editing
Browse files Browse the repository at this point in the history
collaborative editing

fix #199, fix #201, fix #202
  • Loading branch information
wpxp123456 committed Dec 8, 2020
1 parent b93ea6b commit 6fe8726
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/controllers/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import menuButton from './menuButton';
import { createFilterOptions } from './filter';
import luckysheetFreezen from './freezen';
import luckysheetPostil from './postil';
import imageCtrl from './imageCtrl';
import dataVerificationCtrl from './dataVerificationCtrl';
import hyperlinkCtrl from './hyperlinkCtrl';
import { getObjType, replaceHtml, getByteLen } from '../utils/util';
import { getSheetIndex } from '../methods/get';
import Store from '../store';
import { collaborativeEditBox } from './select'
import locale from '../locale/locale';
import dayjs from "dayjs";
import imageCtrl from './imageCtrl';
import json from '../global/json';

const server = {
Expand Down Expand Up @@ -517,6 +519,25 @@ const server = {
}, 1);
}
}
else if(k == "images"){ //图片
if(index == Store.currentSheetIndex){
imageCtrl.images = value;
imageCtrl.allImagesShow();
imageCtrl.init();
}
}
else if(k == "dataVerification"){ //数据验证
if(index == Store.currentSheetIndex){
dataVerificationCtrl.dataVerification = value;
dataVerificationCtrl.init();
}
}
else if(k == "hyperlink"){ //链接
if(index == Store.currentSheetIndex){
hyperlinkCtrl.hyperlink = value;
hyperlinkCtrl.init();
}
}
}
else if(type == "fc"){ //函数链calc
let op = item.op, pos = item.pos;
Expand Down

0 comments on commit 6fe8726

Please sign in to comment.