@shaonq/hiprint 0.0.11 → 0.1.0

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 CHANGED
@@ -372,6 +372,32 @@ export declare class PrintTemplate {
372
372
  * @param handler 数据变更回调函数。
373
373
  */
374
374
  onDataChanged(handler: (data: any) => void): void;
375
+
376
+ /**
377
+ * 根据字段选择元素。
378
+ * @param field 字符串或字符串数组,表示要选择的元素的字段。
379
+ */
380
+ selectElementsByField(field: string | string[]): void;
381
+
382
+ /**
383
+ * 根据ID选择元素。
384
+ * @param ids 字符串或字符串数组,表示要选择的元素的ID。
385
+ */
386
+ selectElementsId(ids: string | string[]): void;
387
+
388
+ /**
389
+ * 鼠标悬停于指定ID的元素上。
390
+ * @param id 元素的ID。
391
+ * @param isRemove 可选参数。如果为true,则移除悬停状态。
392
+ */
393
+ hoverElementsId(id: string, isRemove?: boolean): void;
394
+
395
+ /**
396
+ * 获取面板信息。
397
+ * @param idx 可选参数。面板索引。
398
+ * @returns 返回包含打印元素的对象,该对象至少包含一个printElements属性。
399
+ */
400
+ getPanel(idx?: number): { printElements: any; [x: string]: any };
375
401
  }
376
402
 
377
403
  /**