mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
fix: 解决乾坤中docx空白问题
This commit is contained in:
parent
5093154a77
commit
685c002bd6
@ -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"
|
||||
},
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@js-preview/docx",
|
||||
"type" :"module",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
|
7
core/packages/js-docx/src/hack.js
Normal file
7
core/packages/js-docx/src/hack.js
Normal file
@ -0,0 +1,7 @@
|
||||
if(typeof window.setImmediate === 'undefined' ){
|
||||
window.setImmediate = function (func, ...args){
|
||||
setTimeout(()=>func(args));
|
||||
};
|
||||
}
|
||||
|
||||
export default {}
|
@ -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 {
|
||||
|
@ -1,3 +1,4 @@
|
||||
import hack from './src/hack';
|
||||
import VueOfficeDocx from './src/main.vue';
|
||||
|
||||
VueOfficeDocx.install = function (Vue) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue-office/docx",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
|
8
core/packages/vue-docx/src/hack.js
Normal file
8
core/packages/vue-docx/src/hack.js
Normal file
@ -0,0 +1,8 @@
|
||||
//乾坤下不能渲染问题兼容
|
||||
if(typeof window.setImmediate === 'undefined' ){
|
||||
window.setImmediate = function (func, ...args){
|
||||
setTimeout(()=>func(args));
|
||||
};
|
||||
}
|
||||
|
||||
export default {}
|
Loading…
x
Reference in New Issue
Block a user