Ver Fonte

工具栏优化

cxmo há 11 meses atrás
pai
commit
5e0e2f316f
1 ficheiros alterados com 7 adições e 0 exclusões
  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 callbackItems={updated:this.updateEmit}
       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){
       // 变向的禁止复制