|
@@ -1978,13 +1978,16 @@ const togglePanel = () => {
|
|
|
// 获取PDF宽度
|
|
// 获取PDF宽度
|
|
|
const pdfContentWidth = ref<number>(1030)
|
|
const pdfContentWidth = ref<number>(1030)
|
|
|
const pdfPanelRef = ref<HTMLDivElement>()
|
|
const pdfPanelRef = ref<HTMLDivElement>()
|
|
|
-const handleWindowResize = debounce(() => {
|
|
|
|
|
|
|
+const handleWindowResize = debounce(async () => {
|
|
|
if(!pdfPanelRef.value) return
|
|
if(!pdfPanelRef.value) return
|
|
|
const width = pdfPanelRef.value?.clientWidth - 20
|
|
const width = pdfPanelRef.value?.clientWidth - 20
|
|
|
pdfContentWidth.value = width > 1030 ? 1030 : width
|
|
pdfContentWidth.value = width > 1030 ? 1030 : width
|
|
|
|
|
|
|
|
- //重新加载适应宽度
|
|
|
|
|
- spreadRef.value?.reloadView();
|
|
|
|
|
|
|
+ if (initData.value.opType == 1){
|
|
|
|
|
+ spreadRef.value?.reloadView();
|
|
|
|
|
+ }else {
|
|
|
|
|
+ spreadRef.value?.handleSave();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}, 100)
|
|
}, 100)
|
|
|
|
|
|