tdesign-mobile-vue
Version:
tdesign-mobile-vue
9 lines (8 loc) • 433 B
TypeScript
import { Color } from '../_common/js/color-picker';
import type { TdColorPickerProps as ColorPickerProps } from './type';
export declare const getCoordinate: (e: TouchEvent, rect: DOMRect, isFixed?: boolean) => {
x: number;
y: number;
};
export declare const getFormatList: (format: ColorPickerProps['format'], color: Color) => any[];
export declare const genSwatchList: (prop: ColorPickerProps['swatchColors']) => string[];