tdesign-react
Version:
TDesign Component for React
13 lines (12 loc) • 611 B
TypeScript
export declare function omit(obj: object, fields: string[]): object;
export declare function removeEmptyAttrs<T>(obj: T): Partial<T>;
export declare function getTabElementByValue(tabs: [], value: string): object;
export declare function firstUpperCase(str: string): string;
export declare function getPropsApiByEvent(eventName: string): string;
/**
* 获取元素相对于容器(祖先)的偏移量
* @param element 目标元素
* @param container 容器元素
* @returns 相对于容器的偏移量
*/
export declare function getOffsetTopToContainer(element: HTMLElement, container: HTMLElement): number;