mirror of
https://github.com/mfish-qf/mfish-nocode-view.git
synced 2026-10-31 20:53:21 +08:00
45 lines
1.0 KiB
Vue
45 lines
1.0 KiB
Vue
/**
|
|
* @description: 页面类型定义
|
|
* @author: mfish
|
|
* @date: 2022/10/9 17:41
|
|
*/
|
|
declare interface Fn<T = any, R = T> {
|
|
(...arg: T[]): R;
|
|
}
|
|
|
|
declare interface PromiseFn<T = any, R = T> {
|
|
(...arg: T[]): Promise<R>;
|
|
}
|
|
|
|
declare type LabelValueOptions = {
|
|
label: string;
|
|
value: any;
|
|
[key: string]: string | number | boolean;
|
|
}[];
|
|
|
|
declare type EmitType = (event: string, ...args: any[]) => void;
|
|
|
|
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
$el: T;
|
|
}
|
|
|
|
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
|
|
|
|
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
|
|
|
|
declare namespace JSX {
|
|
// tslint:disable no-empty-interface
|
|
type Element = VNode;
|
|
// tslint:disable no-empty-interface
|
|
type ElementClass = ComponentRenderProxy;
|
|
interface ElementAttributesProperty {
|
|
$props: any;
|
|
}
|
|
interface IntrinsicElements {
|
|
[elem: string]: any;
|
|
}
|
|
interface IntrinsicAttributes {
|
|
[elem: string]: any;
|
|
}
|
|
}
|