This commit is contained in:
2022-11-14 11:59:26 +08:00
parent 0a63adba99
commit 492d0963fe
336 changed files with 70636 additions and 7 deletions

1
types/utils/arrayUtil.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export declare const check: (arr: any[], value: any) => boolean;

36
types/utils/domUtil.d.ts vendored Normal file
View File

@@ -0,0 +1,36 @@
/**
* 获取 top 属性值
* <p>
* @param elem dom
* */
export declare function getTop(elem: any): any;
/**
* 获取 left 属性值
* <p>
* @param elem dom
* */
export declare function getLeft(elem: any): any;
/**
* 事件绑定
* <p>
* @param elem dom
* @param events 事件
* @param handler 事件回调
* */
export declare function on(elem: any, events: any, handler: any): void;
/**
* 单次事件
* <p>
* @param elem dom
* @param events 事件
* @param handler 事件回调
* */
export declare function once(elem: any, events: any, handler: any): void;
/**
* 事件解除
* <p>
* @param elem dom
* @param events 事件
* @param handler 事件回调
* */
export declare function off(elem: any, events: any, handler: any): void;

3
types/utils/index.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export * from "./domUtil";
export * from "./withInstall";
export * from "./arrayUtil";

1
types/utils/treeUtil.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export declare function getNode(root: any, id: string): null;

1
types/utils/uuidUtil.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export declare function nextId(): any;

3
types/utils/withInstall.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
import { Plugin } from "vue";
export declare type WithInstallType<T> = T & Plugin;
export declare const withInstall: <T>(comp: T) => T & Plugin;