@js-preview/docx
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -22,5 +22,6 @@ export interface Options { | ||
export interface JsDocxPreview { | ||
preview: (src: string) => Promise<any>, | ||
preview: (src: string | ArrayBuffer | Blob) => Promise<any>, | ||
setOptions: (options: Options) => void, | ||
setRequestOptions: (requestOptions?: any) => void | ||
setRequestOptions: (requestOptions?: any) => void, | ||
destroy: ()=> void, | ||
} | ||
@@ -27,0 +28,0 @@ declare const jsPreviewDocx: { |
@@ -120,6 +120,2 @@ import { renderAsync } from 'docx-preview'; | ||
} | ||
// <div className="vue-office-docx"> | ||
// <div className="vue-office-docx-main" ref="rootRef"></div> | ||
// </div> | ||
}, { | ||
@@ -153,2 +149,12 @@ key: "setOptions", | ||
} | ||
}, { | ||
key: "destroy", | ||
value: function destroy() { | ||
this.container.removeChild(this.wrapper); | ||
this.container = null; | ||
this.wrapper = null; | ||
this.wrapperMain = null; | ||
this.options = null; | ||
this.requestOptions = null; | ||
} | ||
}]); | ||
@@ -155,0 +161,0 @@ return JsDocxPreview; |
@@ -124,6 +124,2 @@ (function (global, factory) { | ||
} | ||
// <div className="vue-office-docx"> | ||
// <div className="vue-office-docx-main" ref="rootRef"></div> | ||
// </div> | ||
}, { | ||
@@ -157,2 +153,12 @@ key: "setOptions", | ||
} | ||
}, { | ||
key: "destroy", | ||
value: function destroy() { | ||
this.container.removeChild(this.wrapper); | ||
this.container = null; | ||
this.wrapper = null; | ||
this.wrapperMain = null; | ||
this.options = null; | ||
this.requestOptions = null; | ||
} | ||
}]); | ||
@@ -159,0 +165,0 @@ return JsDocxPreview; |
{ | ||
"name": "@js-preview/docx", | ||
"type" :"module", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
17219
363