23 lines
488 B
TypeScript
23 lines
488 B
TypeScript
import type { ExtractPropTypes } from 'vue'
|
|
import { commonProps, isNumber } from '../_utils'
|
|
|
|
export const stepProps = {
|
|
...commonProps,
|
|
/**
|
|
* @description 流程步骤的标题
|
|
*/
|
|
title: String,
|
|
/**
|
|
* @description 流程步骤的描述性文字(支持 html 结构)
|
|
*/
|
|
content: String,
|
|
}
|
|
|
|
export type StepProps = ExtractPropTypes<typeof stepProps>
|
|
|
|
export const stepEmits = {
|
|
clickStep: (val: number) => isNumber(val),
|
|
}
|
|
|
|
export type StepEmits = typeof stepEmits
|