Skip to content

本页由脚本自动生成,请勿手动编辑。如需补充说明,请使用 ::: tip 块。

Defined in: types/element-type-map.d.ts:11

可扩展的元素类型映射(插件可以通过模块声明合并来为此接口添加新类型) 示例:在某个插件中扩展ElementTypeMap

  • declare module '@/types' {
  • interface ElementTypeMap {
  • yourType: YourElement}
  • }
  • 然后你就可以这样使用它了:
  • const el = elementManager.createElement('yourType') // el 的类型被推断为 YourElement

Properties

barcode

ts
barcode: BarcodeElement;

Defined in: plugins/barcode/barcode.d.ts:69


line

ts
line: LineElement;

Defined in: plugins/line/line.d.ts:54


qr

ts
qr: QrcodeElement;

Defined in: plugins/qrcode/qrcode.d.ts:68


rect

ts
rect: RectElement;

Defined in: plugins/rect/rect.d.ts:62


table

ts
table: TableElement;

Defined in: plugins/table/table.d.ts:85


text

ts
text: TextElement;

Defined in: plugins/text/text.d.ts:69

基于 MIT 许可发布