fix: 解决乾坤中docx空白问题

This commit is contained in:
liyulin 2023-10-27 15:58:01 +08:00
parent 5093154a77
commit 685c002bd6
7 changed files with 21 additions and 2 deletions

View File

@ -7,7 +7,9 @@
"build": "node script/bak-vue.js && vite build",
"lib": "node script/bak-vue.js bak && lerna run build",
"lib:js-excel": "node script/bak-vue.js bak && lerna run build --scope @js-preview/excel",
"lib:js-docx": "node script/bak-vue.js bak && lerna run build --scope @js-preview/docx",
"lib:vue-excel": "node script/bak-vue.js bak && lerna run build --scope @vue-office/excel",
"lib:vue-docx": "node script/bak-vue.js bak && lerna run build --scope @vue-office/docx",
"lib:js-pdf": "node script/bak-vue.js bak && lerna run build --scope @js-preview/pdf",
"lib:vue-pdf": "node script/bak-vue.js bak && lerna run build --scope @vue-office/pdf"
},

View File

@ -1,7 +1,7 @@
{
"name": "@js-preview/docx",
"type" :"module",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"main": "lib/index.js",
"files": [

View File

@ -0,0 +1,7 @@
if(typeof window.setImmediate === 'undefined' ){
window.setImmediate = function (func, ...args){
setTimeout(()=>func(args));
};
}
export default {}

View File

@ -1,3 +1,4 @@
import hack from './hack.js';
import docx from '../../vue-docx/src/docx';
import {download as downloadFile} from '../../../utils/url.js';
class JsDocxPreview {

View File

@ -1,3 +1,4 @@
import hack from './src/hack';
import VueOfficeDocx from './src/main.vue';
VueOfficeDocx.install = function (Vue) {

View File

@ -1,6 +1,6 @@
{
"name": "@vue-office/docx",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"main": "lib/index.js",
"files": [

View File

@ -0,0 +1,8 @@
//乾坤下不能渲染问题兼容
if(typeof window.setImmediate === 'undefined' ){
window.setImmediate = function (func, ...args){
setTimeout(()=>func(args));
};
}
export default {}