Kaynağa Gözat

调整pdf预览宽度

xuzhancheng 1 ay önce
ebeveyn
işleme
8dc9dd11ab

+ 2 - 2
yudao-ui-admin-vue3/src/views/pressure2/boilerchecker/components/StatusOperationPanel.vue

@@ -1973,12 +1973,12 @@ const togglePanel = () => {
 };
 
 // 获取PDF宽度
-const pdfContentWidth = ref<number>(980)
+const pdfContentWidth = ref<number>(1030)
 const pdfPanelRef = ref<HTMLDivElement>()
 const handleWindowResize = debounce(() => {
   if(!pdfPanelRef.value) return
   const width = pdfPanelRef.value?.clientWidth - 20
-  pdfContentWidth.value = width > 980 ? 980 : width
+  pdfContentWidth.value = width > 1030 ? 1030 : width
 
   //重新加载适应宽度
   spreadRef.value?.reloadView();

+ 2 - 2
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/components/StatusOperationPanel.vue

@@ -1958,12 +1958,12 @@ const togglePanel = () => {
 };
 
 // 获取PDF宽度
-const pdfContentWidth = ref<number>(980)
+const pdfContentWidth = ref<number>(1030)
 const pdfPanelRef = ref<HTMLDivElement>()
 const handleWindowResize = debounce(() => {
   if(!pdfPanelRef.value) return
   const width = pdfPanelRef.value?.clientWidth - 20
-  pdfContentWidth.value = width > 980 ? 980 : width
+  pdfContentWidth.value = width > 1030 ? 1030 : width
 
   //重新加载适应宽度
   spreadRef.value?.reloadView();