format.d.ts 891 B

12345678910111213
  1. import type { CSSProperties } from 'vue';
  2. import { type Numeric } from './basic';
  3. export declare function addUnit(value?: Numeric): string | undefined;
  4. export declare function getSizeStyle(originSize?: Numeric | Numeric[]): CSSProperties | undefined;
  5. export declare function getZIndexStyle(zIndex?: Numeric): CSSProperties;
  6. export declare function unitToPx(value: Numeric): number;
  7. export declare const camelize: (str: string) => string;
  8. export declare const kebabCase: (str: string) => string;
  9. export declare function padZero(num: Numeric, targetLength?: number): string;
  10. /** clamps number within the inclusive lower and upper bounds */
  11. export declare const clamp: (num: number, min: number, max: number) => number;
  12. export declare function formatNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
  13. export declare function addNumber(num1: number, num2: number): number;