@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
46 lines (45 loc) • 1.02 kB
TypeScript
import { default as React, FunctionComponent } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface ProgressProps extends BasicComponent {
/**
* 百分比
* @default 0
*/
percent: number
/**
* 进度条背景颜色
* @default #f3f3f3
*/
background: string
/**
* 进度条线条颜色
* @default linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)
*/
color: string
/**
* 进度条宽度
* @default -
*/
strokeWidth: string
/**
* 是否显示文字内容
* @default false
*/
showText: boolean
/**
* 是否展示动画效果
* @default false
*/
animated: boolean
/**
* 每次进入可视区展示进度条动画
* @default false
*/
lazy: boolean
/**
* 延迟数据加载时长,单位 ms
* @default 0
*/
delay: number
}
export declare const Progress: FunctionComponent<Partial<ProgressProps> & React.HTMLAttributes<HTMLDivElement>>;