mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
13 lines (12 loc) • 404 B
TypeScript
import { USEColorTransform } from './types';
/**
* 颜色值互转
* @example
* ```ts
* import { useColorTransform } from 'mine-h5-ui'
*
* const rgb = useColorTransform('#ff6600', ['hex', 'rgb'])
* console.log(rgb) // rgb(255, 102, 0)
* ```
*/
export declare const useColorTransform: <T = string | (string | number)[]>(value: T, [sourceType, targetType]: USEColorTransform.Option["type"]) => T;