Browse Source

工具栏优化

cxmo 11 months ago
parent
commit
5e0e2f316f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/views/datasheet_manage/components/SheetExcel.vue

+ 7 - 0
src/views/datasheet_manage/components/SheetExcel.vue

@@ -32,6 +32,13 @@ export default {
       let optionData = this.option ? this.option : {};
       let optionData = this.option ? this.option : {};
       let callbackItems={updated:this.updateEmit}
       let callbackItems={updated:this.updateEmit}
       initSheet('sheet-container',optionData,this.sheetInfo,this.limit,callbackItems)
       initSheet('sheet-container',optionData,this.sheetInfo,this.limit,callbackItems)
+      setTimeout(() => {
+        //获取sheet-container的宽度,设置更多操作的宽度
+        //#luckysheet-icon-morebtn-div
+        const sheetDom = document.querySelector('#sheet-container')
+        const morebtn = document.querySelector('#luckysheet-icon-morebtn-div')
+        morebtn.style.maxWidth = sheetDom.clientWidth - 70 +'px';
+      }, 300);
     },
     },
     copyDisable(e){
     copyDisable(e){
       // 变向的禁止复制
       // 变向的禁止复制