You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
786 B
34 lines
786 B
/** |
|
* @program: kicc-ui |
|
* @description: 通用定义 |
|
* @author: entfrm开发团队-王翔 |
|
* @create: 2022/4/10 |
|
*/ |
|
|
|
declare interface Fn<T = any, R = T> { |
|
(...arg: T[]): R; |
|
} |
|
|
|
declare interface PromiseFn<T = any, R = T> { |
|
(...arg: T[]): Promise<R>; |
|
} |
|
|
|
declare type RefType<T> = T | null; |
|
|
|
declare type LabelValueOptions = { |
|
label: string; |
|
value: any; |
|
[key: string]: string | number | boolean; |
|
}[]; |
|
|
|
declare type EmitType = (event: string, ...args: any[]) => void; |
|
|
|
declare type TargetContext = '_self' | '_blank'; |
|
|
|
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>;
|
|
|