iview/types/circle.d.ts

57 lines
No EOL
1.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare class Circle extends Vue {
/**
* 百分比
* @default 0
*/
percent?: number;
/**
* 图表的宽度和高度,单位 px
* @default 120
*/
size?: number;
/**
* 进度环顶端的形状可选值为square和round
* @default round
*/
'stroke-linecap'?: 'square' | 'round';
/**
* 进度环的线宽,单位 px
* @default 6
*/
'stroke-width'?: number;
/**
* 进度环的颜色
* @default #2db7f5
*/
'stroke-color'?: string
/**
* 进度环背景的线宽,单位 px
* @default 5
*/
'trail-width'?: number;
/**
* 进度环背景的颜色
* @default #eaeef2
*/
'trail-color'?: string;
/**
* 是否显示为仪表盘
* @default false
*/
dashboard?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
* 自定义显示中间内容,内容默认垂直居中
*/
'': VNode[];
};
}