@vtj/designer
Version:
VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。
38 lines (37 loc) • 1 kB
TypeScript
import { Access } from '@vtj/renderer';
import { Service } from '@vtj/core';
export type ReportType = 'init' | 'online' | 'event' | 'error';
export declare const excludeErrors: string[];
export interface ReportData {
sessionId?: string;
userId?: string;
userName?: string;
type: ReportType;
engineVersion?: string;
host?: string;
url?: string;
referrer?: string;
os?: string;
osVersion?: string;
browser?: string;
browserVersion?: string;
message?: string;
stack?: string;
source?: string;
}
export declare class Report {
private remote;
private access;
private service?;
private api;
private debounceSend;
constructor(remote: string, access: Access, service?: Service | undefined);
private bindServerError;
private bindGlobalError;
private getSessionId;
private send;
init(): Promise<void>;
online(): Promise<void>;
event(message: string): void;
error(e: any, source?: any): void;
}