/** * @author jill * @date 2022/3/10 18:25 * @description 线性进度条 */ import * as React from 'react'; import { ProgressProps, StringGradients, DirectionType } from './index'; interface LineProps extends ProgressProps { direction?: DirectionType; children: React.ReactNode; } /** * 转换 百分比 到 样式格式 * { * "0%": "#afc163", * "75%": "#009900", * "50%": "green", // ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%' * "25%": "#66FF00", * "100%": "#ffffff" * } * @param gradients 渐变的参数 * @return {string} 样式值 */ export declare const sortGradient: (gradients: StringGradients) => string; /** * 转换传进来 渐变的参数 为css样式 * { * "0%": "#afc163", * "25%": "#66FF00", * "50%": "#00CC00", // ====> linear-gradient(to right, #afc163 0%, #66FF00 25%, * "75%": "#009900", // #00CC00 50%, #009900 75%, #ffffff 100%) * "100%": "#ffffff" * } * * { * "from": "#afc163", * "to": "#66FF00",// ====> linear-gradient(to right, #afc163, #66FF00) * } * * @param {string} strokeColor 颜色值 * @return 返回 backgroundImage 的样式值 */ export declare const handleGradient: (strokeColor: any, directionConfig: DirectionType) => { backgroundImage: string; }; declare const Line: React.FC; export default Line;