/
githubmirror
/
element
Обзор
Документация
Войти
/
githubmirror
/
element
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
types/progress.d.ts
37 строк
1013 B
iamkun
Progress: add strokeLinecap prop (#17552)
31 окт 2019, 10:08
31 окт 2019, 10:08
0c31a0a
Код
Авторство
О чём код?
import { ElementUIComponent } from './component' export type ProgressType = 'line' | 'circle' export type ProgressStatus = 'success' | 'exception' /** Progress Component */ export declare class ElProgress extends ElementUIComponent { /** Percentage, required */ percentage: number /** The type of progress bar */ type: ProgressType /** The width of progress bar */ strokeWidth: number /** Circle progress bar stroke line cap */ strokeLinecap: string /** Whether to place the percentage inside progress bar, only works when type is 'line' */ textInside: boolean /** The current status of progress bar */ status: ProgressStatus /** Background color of progress bar. Overrides `status` prop */ color: string | Function | Array<string | { color: string, percentage: number }> /** The canvas width of circle progress bar */ width: number /** Whether to show percentage */ showText: boolean /** Template function of the content */ format(percentage: number): string }