@vexip-ui/utils
Advanced tools
Comparing version 1.9.1 to 1.9.2
@@ -106,2 +106,9 @@ /** | ||
/** | ||
* 将命名转换为首字母大写的驼峰 | ||
* | ||
* @param value 需要转换的命名 | ||
*/ | ||
declare type CapitalCase<T extends string> = T extends `${infer First}-${infer Rest}` ? `${Capitalize<First>}${CapitalCase<Rest>}` : Capitalize<T>; | ||
export declare const CLICK_TYPE: string; | ||
@@ -166,3 +173,3 @@ | ||
* @param method 需要防抖的方法,需自行绑定 this | ||
* @param delay 防抖的限制时间,默认 300 ms | ||
* @param delay 防抖的限制时间,默认 100ms | ||
*/ | ||
@@ -1096,2 +1103,4 @@ export declare function debounce<T extends (...args: any[]) => any>(method: T, delay?: number): (...args: Parameters<T>) => void; | ||
export declare function supportImgLoading(): boolean; | ||
/** | ||
@@ -1119,8 +1128,3 @@ * 将一个函数或方法进行节流 | ||
/** | ||
* 将命名转换为全大写命名Capital | ||
* | ||
* @param value 需要转换的命名 | ||
*/ | ||
export declare function toCapitalCase(value: string): string; | ||
export declare function toCapitalCase<T extends string>(value: T): CapitalCase<T>; | ||
@@ -1127,0 +1131,0 @@ /** |
@@ -0,0 +0,0 @@ The MIT License (MIT) |
{ | ||
"name": "@vexip-ui/utils", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "qmhc", |
@@ -0,0 +0,0 @@ # @vexip-ui/utils |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
107496
2655