import { ElStep, ElIcon } from 'element-plus'
import { WarningFilled } from '@element-plus/icons-vue'
import { generateProps } from '../helper/component-util'
import { componentScheme } from './step.scheme'
import './index.less'
export default {
name: 'cip-step',
props: generateProps(componentScheme),
setup (props, { emit, slots }) {
return () => <>
{
props.status === 'error' // error状态的图标根据ui规范特殊处理,带有状态属性时,传入icon会显示异常
?
{{
icon: () => ,
title: slots.title?.(),
description: slots.description?.()
}}
:
{{
icon: slots.icon?.(),
title: slots.title?.(),
description: slots.description?.()
}}
}
>
}
}