@vtj/renderer
Version:
VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。
28 lines (27 loc) • 1.12 kB
TypeScript
import { MaybeRef, Ref } from 'vue';
import { IRequestSettings, IStaticRequest, Jsonp } from '@vtj/utils';
import { Access, AccessOptions } from '../plugins';
export type UseTitle = (newTitle?: MaybeRef<string | null | undefined>, options?: Record<string, any>) => Ref<string | null | undefined>;
export interface CreateAdapterOptions {
notify?: (msg: string, title?: string, type?: any) => void;
loading?: () => any;
settings?: IRequestSettings;
Startup?: any;
access?: Partial<AccessOptions>;
useTitle?: UseTitle;
alert?: (msg: string, opt?: any) => any;
}
export interface ProvideAdapter {
request: IStaticRequest;
jsonp: Jsonp;
metaQuery?: (...args: any[]) => Promise<any>;
access?: Access;
startupComponent?: any;
useTitle?: UseTitle;
alert?: (msg: string, opt?: any) => any;
notify?: (msg: string, title?: string, type?: any) => void;
loading?: () => any;
[index: string]: any;
}
export declare function createAdapter(options?: CreateAdapterOptions): ProvideAdapter;
export declare function createAccess(options?: Partial<AccessOptions>): Access;