url 2 pdf support, update test run, reduse imge size,
This commit is contained in:
parent
e921875bde
commit
f6b68e4379
32 changed files with 3851 additions and 1108 deletions
|
|
@ -1,8 +1,29 @@
|
|||
export interface templateData {
|
||||
|
||||
/**
|
||||
* @prop {string} template template ID
|
||||
* @prop {string} reportName outputname
|
||||
* @prop {htmlTemplateOption} htmlOption? support only html-template
|
||||
* @prop {object} data json data for apply template
|
||||
*/
|
||||
export interface templateOption {
|
||||
template: string
|
||||
reportName: string
|
||||
htmlOption?:htmlTemplateOption
|
||||
data: object
|
||||
}
|
||||
/**
|
||||
* @prop {string} querySelector template ID
|
||||
* @prop {object} pdfOption outputname
|
||||
* @prop {number} width support only html-template
|
||||
*/
|
||||
export interface htmlTemplateOption {
|
||||
querySelector: string
|
||||
pdfOption?: object
|
||||
width?:number
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface IDictionary<TValue> {
|
||||
[key: string]: TValue
|
||||
}
|
||||
|
|
@ -46,7 +67,7 @@ export function mimeToExtension(mime: string): string {
|
|||
* @swagger
|
||||
* components:
|
||||
* schemas:
|
||||
* templateData:
|
||||
* templateOption:
|
||||
* type: object
|
||||
* required:
|
||||
* - template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue