libf 3 éve
szülő
commit
32e0ac3a8c
3 módosított fájl, 5 hozzáadás és 4 törlés
  1. 2 2
      src/config.js
  2. 1 0
      src/global/createdom.js
  3. 2 2
      src/global/rhchInit.js

+ 2 - 2
src/config.js

@@ -33,8 +33,8 @@ export default {
     allowUpdate: false, //是否允许编辑后的后台更新
     functionButton: "", //右上角功能按钮,例如'<button id="" class="btn btn-primary" style="padding:3px 6px;font-size: 12px;margin-right: 10px;">下载</button>    <button id="" class="btn btn-primary btn-danger" style="    padding:3px 6px;    font-size: 12px;    margin-right: 10px;">分享</button>    <button id="luckysheet-share-btn-title" class="btn btn-primary btn-danger" style="    padding:3px 6px;    font-size: 12px;    margin-right: 10px;">秀数据</button>'
     showConfigWindowResize: true, //图表和数据透视表的配置会在右侧弹出,设置弹出后表格是否会自动缩进
-    enableAddRow: true,//允许添加行
-    enableAddBackTop: true,//允许回到顶部
+    enableAddRow: false,//允许添加行
+    enableAddBackTop: false,//允许回到顶部
     // enablePage: false,//允许加载下一页
     autoFormatw: false,  //自动格式化超过4位数的数字为 亿万格式 例:true or "true" or "TRUE"
     accuracy: undefined,  //设置传输来的数值的精确位数,小数点后n位 传参数为数字或数字字符串,例: "0" 或 0

+ 1 - 0
src/global/createdom.js

@@ -100,6 +100,7 @@ export default function luckysheetcreatedom(colwidth, rowheight, data, menu, tit
 
     $("#" + Store.container).append(gh);
 
+    
     $("#luckysheet-scrollbar-x div").width(Store.ch_width);
     $("#luckysheet-scrollbar-y div").height(Store.rh_height + Store.columnHeaderHeight - Store.cellMainSrollBarSize - 3);
 

+ 2 - 2
src/global/rhchInit.js

@@ -32,7 +32,7 @@ export default function rhchInit(rowheight, colwidth) {
 
         // 如果增加行和回到顶部按钮隐藏,则减少底部空白区域,但是预留足够空间给单元格下拉按钮
         if (!luckysheetConfigsetting.enableAddRow && !luckysheetConfigsetting.enableAddBackTop) {
-            Store.rh_height += 29;
+            Store.rh_height += Store.allowEdit?30:Store.cellMainSrollBarSize;
         } else {
             Store.rh_height += 80;  //最底部增加空白
         }
@@ -44,7 +44,7 @@ export default function rhchInit(rowheight, colwidth) {
         Store.visibledatacolumn = [];
         Store.ch_width = 0;
 
-        let maxColumnlen = 120;
+        let maxColumnlen = Store.allowEdit?120:Store.cellMainSrollBarSize;
 
         for (let c = 0; c < colwidth; c++) {
             let firstcolumnlen = Store.defaultcollen;