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

Commit

Permalink
Merge branch 'gitlab_master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir committed Jul 31, 2020
2 parents c1e044d + 9fd1dcf commit 829dcaa
Show file tree
Hide file tree
Showing 32 changed files with 93,764 additions and 914 deletions.
1,025 changes: 1,025 additions & 0 deletions .vs/luckysheet/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added .vs/luckysheet/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
7 changes: 5 additions & 2 deletions src/controllers/expendPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import { chart } from '../expendPlugins/chart/plugin'
const pluginsObj = {
'chart':chart
}

const isDemo = true

/**
* Register plugins
*/
function initPlugins(plugins){
function initPlugins(plugins , data){
if(plugins.length){
plugins.forEach(plugin => {
pluginsObj[plugin]();
pluginsObj[plugin](data , isDemo)
});
}
}
Expand Down
1,714 changes: 928 additions & 786 deletions src/controllers/handler.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/controllers/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default function luckysheetsizeauto() {
if($("#luckysheet-modal-dialog-slider-pivot").is(":visible")){
gridW -= $("#luckysheet-modal-dialog-slider-pivot").outerWidth();
}
else if($("#luckysheet-data-visualization").is(":visible")){
gridW -= $("#luckysheet-data-visualization").outerWidth();
else if($(".chartSetting").is(":visible")){
gridW -= $(".chartSetting").outerWidth();
}
else if($("#luckysheet-modal-dialog-slider-alternateformat").is(":visible")){
gridW -= $("#luckysheet-modal-dialog-slider-alternateformat").outerWidth();
Expand Down
5 changes: 3 additions & 2 deletions src/controllers/sheetMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ function luckysheetMoveEndCell(postion, type, isScroll, terminal, onlyvalue) {
formula.fucntionboxshow(curR, curC);

if (type == "range") {
let p_startR = Store.luckysheet_shiftpositon["row"][0];
let p_startC = Store.luckysheet_shiftpositon["column"][0];
// need var
var p_startR = Store.luckysheet_shiftpositon["row"][0];
var p_startC = Store.luckysheet_shiftpositon["column"][0];

let p_endR = Store.luckysheet_shiftpositon["row"][1];
let p_endC = Store.luckysheet_shiftpositon["column"][1];
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/sheetmanage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { createFilterOptions, labelFilterOptionState } from './filter';
import { selectHightlightShow, selectionCopyShow } from './select';
import Store from '../store';
import locale from '../locale/locale';
import { renderChartShow } from '../expendPlugins/chart/plugin'

const sheetmanage = {
generateRandomSheetIndex: function(prefix) {
Expand Down Expand Up @@ -935,7 +936,7 @@ const sheetmanage = {
$("#luckysheet-datavisual-selection-set-" + index).show();

//隐藏其他sheet的图表,显示当前sheet的图表 chartMix
!!window.generator && generator.renderChartShow(index);
renderChartShow(index);

luckysheetFreezen.initialFreezen(index);
_this.restoreselect();
Expand Down
6 changes: 2 additions & 4 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ luckysheet.create = function (setting) {
Store.fullscreenmode = extendsetting.fullscreenmode;
Store.lang = extendsetting.lang; //language
Store.allowEdit = extendsetting.allowEdit;
Store.editMode = extendsetting.editMode;

server.gridKey = extendsetting.gridKey;
server.loadUrl = extendsetting.loadUrl;
server.updateUrl = extendsetting.updateUrl;
Expand Down Expand Up @@ -83,15 +81,15 @@ luckysheet.create = function (setting) {
luckysheetConfigsetting.enablePage = extendsetting.enablePage;
luckysheetConfigsetting.pageInfo = extendsetting.pageInfo;


luckysheetConfigsetting.editMode = extendsetting.editMode;
luckysheetConfigsetting.chartConfigChange = extendsetting.chartConfigChange;
luckysheetConfigsetting.beforeCreateDom = extendsetting.beforeCreateDom;

luckysheetConfigsetting.fireMousedown = extendsetting.fireMousedown;
luckysheetConfigsetting.plugins = extendsetting.plugins;

// Register plugins
initPlugins(extendsetting.plugins);
initPlugins(extendsetting.plugins , extendsetting.data);

// Store formula information, including internationalization
functionlist();
Expand Down
Loading

0 comments on commit 829dcaa

Please sign in to comment.