From 32f94a72285d6051df87ce45390cb4e5a4cc49b2 Mon Sep 17 00:00:00 2001 From: wpxp123456 <2677556700@qq.com> Date: Thu, 23 Jul 2020 17:41:40 +0800 Subject: [PATCH] feat(rightclick menu perfect): add rows and cols delete rows and cols hide rows and cols rightclick --- src/config.js | 2 +- src/controllers/constant.js | 364 ++++++++++++++++++++++++++---- src/controllers/controlHistory.js | 20 ++ src/controllers/handler.js | 324 +++++++++++++++++++++++++- src/core.js | 1 + src/css/luckysheet-core.css | 4 +- src/global/extend.js | 5 +- src/locale/en.js | 23 ++ src/locale/zh.js | 25 +- 9 files changed, 715 insertions(+), 53 deletions(-) diff --git a/src/config.js b/src/config.js index 045b137..4847416 100644 --- a/src/config.js +++ b/src/config.js @@ -22,7 +22,7 @@ export default { config: {}, //表格行高、列宽、合并单元格、公式等设置 fullscreenmode: true, //是否全屏模式,非全屏模式下,标记框不会强制选中。 devicePixelRatio: window.devicePixelRatio, //设备比例,比例越大表格分标率越高 - allowEdit: true, //是否允许前台编辑 + allowEdit: false, //是否允许前台编辑 loadUrl: "", // 配置loadUrl的地址,luckysheet会通过ajax请求表格数据,默认载入status为1的sheet数据中的所有data,其余的sheet载入除data字段外的所有字段 loadSheetUrl: "", //配置loadSheetUrl的地址,参数为gridKey(表格主键) 和 index(sheet主键合集,格式为[1,2,3]),返回的数据为sheet的data字段数据集合 gridKey: "", // 表格唯一标识符 diff --git a/src/controllers/constant.js b/src/controllers/constant.js index 9737bdc..eeceea6 100644 --- a/src/controllers/constant.js +++ b/src/controllers/constant.js @@ -164,9 +164,281 @@ const gridHTML = '