mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-04 14:41:47 +01:00
25 lines
677 B
TypeScript
25 lines
677 B
TypeScript
export class MobileCustom {
|
|
public element: Element;
|
|
public data: any;
|
|
public type: string;
|
|
public init: (custom: MobileCustom) => void;
|
|
public destroy: () => void;
|
|
public update: () => void;
|
|
|
|
constructor(options: {
|
|
element: Element,
|
|
type: string,
|
|
data: any,
|
|
destroy?: () => void,
|
|
update?: () => void,
|
|
init: (custom: MobileCustom) => void
|
|
}) {
|
|
this.element = options.element;
|
|
this.data = options.data;
|
|
this.type = options.type;
|
|
this.init = options.init;
|
|
this.destroy = options.destroy;
|
|
this.update = options.update;
|
|
this.init(this);
|
|
}
|
|
}
|