2024-11-05 10:14:41 +08:00

35 lines
867 B
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.

import { buildProps } from '../../../../utils'
import type { ExtractPropTypes } from 'vue'
export const propgressBaseProps = buildProps({
/**
* @description 当前进度百分比
*/
percent: {
type: Number,
default: 0,
},
/**
* @description 激活时的颜色以tn开头则使用图鸟内置的颜色在为圆环进度条是无法使用内置的颜色
*/
activeColor: String,
/**
* @description 未激活时的颜色以tn开头则使用图鸟内置的颜色在为圆环进度条是无法使用内置的颜色
*/
inactiveColor: String,
/**
* @description 显示当前进度
*/
showPercent: Boolean,
/**
* @description 动画执行时间单位ms
*/
duration: {
type: Number,
default: 1500,
},
} as const)
export type ProgressBaseProps = ExtractPropTypes<typeof propgressBaseProps>