UNPKG

mine-h5-ui

Version:

一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍

24 lines (23 loc) 716 B
import { ModelRef } from 'vue'; import { HSBToRect } from './types'; /** * rgb 提取数字 */ export declare const rgbExtractNum: <T = string>(rgb: string, toNum?: boolean) => T[]; /** * hsb 和区域值互转 */ export declare const hsbToRect: ({ type, value, reverse }: HSBToRect.Option) => number; /** * rgb 转 rgba */ export declare const rgbToRgba: (rgb: string, alpha: number) => string; export declare const setModelValue: <T>(modelValue: ModelRef<T>, value: Partial<T>) => void; /** * 像素转百分比 */ export declare const pxToPercentage: (px: number, max: number) => number; /** * 在此范围里面 */ export declare const rangeInside: (value: number, min: number, max: number) => number;