@shaonq/hiprint 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -400,10 +400,11 @@ interface PrintTemplateHistoryItem {
|
|
|
400
400
|
* 使用 hiprint 打印多个模板
|
|
401
401
|
* @param {Array} res - 打印数据数组,每个元素包含模板和数据
|
|
402
402
|
* @param {Object} [res[].template] - 可选的 JSON 字符串模板,如果不存在则使用默认模板
|
|
403
|
-
* @param {Object} res[].data - 打印数据
|
|
403
|
+
* @param {Object} res[].data - 打印数据 *
|
|
404
|
+
* @param {boolean} [isSocket=false] - 是否委托直接打印 默认为 false
|
|
404
405
|
* @returns {void}
|
|
405
406
|
*/
|
|
406
|
-
export function hiprintPrintMulti(res: { template?: string; data?: Obj }[]): void;
|
|
407
|
+
export function hiprintPrintMulti(res: { template?: string; data?: Obj }[], isSocket?: boolean): void;
|
|
407
408
|
|
|
408
409
|
/*
|
|
409
410
|
* 使用 hiprint 打印模板
|
|
@@ -411,9 +412,10 @@ export function hiprintPrintMulti(res: { template?: string; data?: Obj }[]): voi
|
|
|
411
412
|
* @param {string} res.template - JSON 字符串模板
|
|
412
413
|
* @param {Object} res.data - 打印数据
|
|
413
414
|
* @param {boolean} [isPrint=true] - 是否直接打印,默认为 true
|
|
415
|
+
* @param {boolean} [isSocket=false] - 是否委托直接打印 默认为 false
|
|
414
416
|
* @returns {string|undefined} 如果 isPrint 为 false,则返回 HTML 字符串,否则返回 undefined
|
|
415
417
|
*/
|
|
416
|
-
export function hiprintPrint(res: { template
|
|
418
|
+
export function hiprintPrint(res: { template?: string; data?: Obj }, isPrint?: boolean, isSocket?: boolean): string | undefined;
|
|
417
419
|
|
|
418
420
|
export interface Hinnn {
|
|
419
421
|
paperList: {
|