2024-11-05 10:07:15 +08:00

31 lines
597 B
TypeScript

import { buildProps } from '../../../utils'
import { stepsBaseProps } from '../../base/common-props/steps'
import type { ExtractPropTypes } from 'vue'
export const stepProps = buildProps({
...stepsBaseProps,
/**
* @description 标题
*/
title: String,
/**
* @description 默认的图标
*/
icon: String,
/**
* @description 激活时的图标
*/
activeIcon: String,
})
export const stepEmits = {
/**
* @description 点击事件
*/
click: () => true,
}
export type StepProps = ExtractPropTypes<typeof stepProps>
export type StepEmits = typeof stepEmits