diff --git a/README-zh.md b/README-zh.md index 2c915a4fa..bb5fba8e8 100644 --- a/README-zh.md +++ b/README-zh.md @@ -187,6 +187,7 @@ Luckysheet是MIT许可的开源项目,其持续稳定的开发离不开这些 - 张铭 ¥ 200 - 曹治军 ¥ 1 - *特 ¥ 10 +- **权 ¥ 9.9 ## 贡献者和感谢 @@ -210,6 +211,7 @@ Luckysheet是MIT许可的开源项目,其持续稳定的开发离不开这些 - [@swen-xiong](https://github.com/swen-xiong) - [@lzmch](https://github.com/lzmch) - [@kdevilpf](https://github.com/kdevilpf) +- [@WJWM0316](https://github.com/WJWM0316) ## 版权信息 [MIT](http://opensource.org/licenses/MIT) diff --git a/README.md b/README.md index b50f23d6a..c19851d1d 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,7 @@ Funds donated via Patreon go directly to support mengshukeji's work on Luckyshee - 张铭 ¥ 200 - 曹治军 ¥ 1 - *特 ¥ 10 +- **权 ¥ 9.9 ## Authors and acknowledgment @@ -195,6 +196,7 @@ Funds donated via Patreon go directly to support mengshukeji's work on Luckyshee - [@swen-xiong](https://github.com/swen-xiong) - [@lzmch](https://github.com/lzmch) - [@kdevilpf](https://github.com/kdevilpf) +- [@WJWM0316](https://github.com/WJWM0316) ## License [MIT](http://opensource.org/licenses/MIT) diff --git a/docs/about/README.md b/docs/about/README.md index 16bcb8494..302960f5a 100644 --- a/docs/about/README.md +++ b/docs/about/README.md @@ -21,4 +21,5 @@ Luckysheet is a project led by an individual and jointly developed by several fr - [@gsw945](https://github.com/gsw945) - [@swen-xiong](https://github.com/swen-xiong) - [@lzmch](https://github.com/lzmch) -- [@kdevilpf](https://github.com/kdevilpf) \ No newline at end of file +- [@kdevilpf](https://github.com/kdevilpf) +- [@WJWM0316](https://github.com/WJWM0316) \ No newline at end of file diff --git a/docs/about/sponsor.md b/docs/about/sponsor.md index 1450bc9e0..6d618a34d 100644 --- a/docs/about/sponsor.md +++ b/docs/about/sponsor.md @@ -40,3 +40,4 @@ Funds donated via Patreon go directly to support mengshukeji's work on Luckyshee - 张铭 ¥ 200 - 曹治军 ¥ 1 - *特 ¥ 10 +- **权 ¥ 9.9 diff --git a/docs/zh/about/README.md b/docs/zh/about/README.md index 7fbf321b2..e78abc411 100644 --- a/docs/zh/about/README.md +++ b/docs/zh/about/README.md @@ -21,4 +21,5 @@ Luckysheet是由个人主导、几个志同道合的小伙伴一同开发的项 - [@gsw945](https://github.com/gsw945) - [@swen-xiong](https://github.com/swen-xiong) - [@lzmch](https://github.com/lzmch) -- [@kdevilpf](https://github.com/kdevilpf) \ No newline at end of file +- [@kdevilpf](https://github.com/kdevilpf) +- [@WJWM0316](https://github.com/WJWM0316) \ No newline at end of file diff --git a/docs/zh/about/sponsor.md b/docs/zh/about/sponsor.md index 7445147e3..306bbe0a1 100644 --- a/docs/zh/about/sponsor.md +++ b/docs/zh/about/sponsor.md @@ -39,4 +39,5 @@ Luckysheet是MIT许可的开源项目,其持续稳定的开发离不开这些 - 小李飞刀刀 ¥ 66 - 张铭 ¥ 200 - 曹治军 ¥ 1 -- *特 ¥ 10 \ No newline at end of file +- *特 ¥ 10 +- **权 ¥ 9.9 \ No newline at end of file diff --git a/docs/zh/guide/config.md b/docs/zh/guide/config.md index 1f3235c38..37c0b2527 100644 --- a/docs/zh/guide/config.md +++ b/docs/zh/guide/config.md @@ -955,12 +955,31 @@ Luckysheet开放了更细致的自定义配置选项,分别有 - 类型:Function - 默认值:null - 作用:鼠标滚动事件 -- 参数:{, , } +- 参数: - {Object} [position]: + {Number} [scrollLeft]:横向滚动条的位置 + {Number} [scrollTop]:垂直滚动条的位置 + {Number} [canvasHeight]:canvas高度 +------------ +### cellDragStop + +- 类型:Function +- 默认值:null +- 作用:鼠标拖拽文件到Luckysheet内部的结束事件 +- 参数: + - {Object} [cell]:单元格对象 + - {Object} [postion]: + + {Number} [r]:单元格所在行号 + + {Number} [c]:单元格所在列号 + + {Number} [start_r]:单元格左上角的水平坐标 + + {Number} [start_c]:单元格左上角的垂直坐标 + + {Number} [end_r]:单元格右下角的水平坐标 + + {Number} [end_c]:单元格右下角的垂直坐标 + - {Object} [sheet]:当前sheet对象 + - {Object} [ctx]: 当前画布的context + - {Object} [event]: 当前事件对象 + ------------ ## 选区操作(包括单元格) diff --git a/src/controllers/pivotTable.js b/src/controllers/pivotTable.js index 7992c4cf6..05e922c64 100644 --- a/src/controllers/pivotTable.js +++ b/src/controllers/pivotTable.js @@ -671,6 +671,7 @@ const pivotTable = { _this.getCellData(index); _this.initialPivotManage(true); + _this.refreshPivotTable(); //初始化在一个普通sheet页,从此普通sheet页切换到数据透视表页时,需要刷新下数据,否则还是旧数据 }, refreshPivotTable: function (isRefreshCanvas=true) { let _this = this; diff --git a/src/controllers/sheetmanage.js b/src/controllers/sheetmanage.js index 5aed3c2fd..f08ff253d 100644 --- a/src/controllers/sheetmanage.js +++ b/src/controllers/sheetmanage.js @@ -817,7 +817,7 @@ const sheetmanage = { if (!!file.isPivotTable) { Store.luckysheetcurrentisPivotTable = true; - pivotTable.changePivotTable(Store.currentSheetIndex); + // pivotTable.changePivotTable(Store.currentSheetIndex); //此方法需要注释掉,在restoreSheetAll中已经执行了刷新了数据透视表,这里就不需要了 } else { Store.luckysheetcurrentisPivotTable = false; diff --git a/src/global/api.js b/src/global/api.js index e1bba2f6e..66229a122 100644 --- a/src/global/api.js +++ b/src/global/api.js @@ -5364,7 +5364,8 @@ export function hideGridLines(options = {}){ * @param {Function} options.success 操作结束的回调函数 */ export function refresh(options = {}) { - luckysheetrefreshgrid(); + // luckysheetrefreshgrid(); + jfrefreshgrid(); let { success diff --git a/src/global/setdata.js b/src/global/setdata.js index c62e936c8..1a7fb5907 100644 --- a/src/global/setdata.js +++ b/src/global/setdata.js @@ -63,7 +63,9 @@ function setcellvalue(r, c, d, v) { return; } - if(isRealNull(cell)){ + // 1.为null + // 2.数据透视表的数据,flowdata的每个数据可能为字符串,结果就是cell == v == 一个字符串或者数字数据 + if(isRealNull(cell) || (getObjType(cell) === 'string' || getObjType(cell) === 'number') && cell === v){ cell = {}; } diff --git a/src/index.html b/src/index.html index 09f9d3f32..e098e95bf 100644 --- a/src/index.html +++ b/src/index.html @@ -99,8 +99,8 @@ } ], hook:{ - cellDragStop: function (cell, postion, sheetFile, moveState, ctx, event) { - console.info(cell, postion, sheetFile, ctx, event); + cellDragStop: function (cell, postion, sheetFile, ctx, event) { + // console.info(cell, postion, sheetFile, ctx, event); }, rowTitleCellRenderBefore:function(rowNum,postion,ctx){ // console.log(rowNum);