UNPKG

open-library

Version:

开放组件库

27 lines (26 loc) 852 B
import React from 'react'; import './index.less'; declare type typeProps = 'quota' | 'degree' | 'ratio'; export declare type ProgressDotRender = (iconDot: any, index: number) => React.ReactNode; interface ScaleBarProps { className?: string; title?: string | React.ReactNode; heightLightColor?: string; current?: number; height?: string | number; textarea: string[] | React.ReactNode[]; textareaColor?: string; textareaPosition?: 'bottom' | 'top'; intervalColor?: string[]; animation?: boolean; trailColor?: string; type?: typeProps; percent?: number; strokeColor?: { [percentage: string]: string; } | string; activeColor?: string; progressDot?: ProgressDotRender | boolean; } declare const ScaleBar: React.FC<ScaleBarProps>; export default ScaleBar;