UNPKG

@tplc/wot

Version:

60 lines (59 loc) 1.33 kB
import { type ExtractPropTypes, type InjectionKey } from 'vue' export declare const stepsProps: { /** * 当前激活的步骤进度,以数字表示。 * 类型: number * 默认值: 0 */ active: { type: NumberConstructor default: number } /** * 是否为垂直方向的步骤条。 * 类型: boolean * 默认值: false */ vertical: { type: BooleanConstructor default: boolean } /** * 是否为点状步骤条样式。 * 类型: boolean * 默认值: false */ dot: { type: BooleanConstructor default: boolean } /** * 步骤条之间的间距,默认为自动计算。 * 如果指定,则使用此值作为间距。 * 类型: string * 默认值: 自动计算 */ space: StringConstructor /** * 是否将步骤条水平居中显示,只对横向步骤条有效。 * 类型: boolean * 默认值: false */ alignCenter: { type: BooleanConstructor default: boolean } customStyle: { type: import('vue').PropType<string> default: string } customClass: { type: import('vue').PropType<string> default: string } } export type StepsProps = ExtractPropTypes<typeof stepsProps> export type StepsProvide = { props: Partial<StepsProps> } export declare const STEPS_KEY: InjectionKey<StepsProvide>