chore(steps): optimize props declaration

This commit is contained in:
07akioni 2021-07-08 23:59:20 +08:00
parent edeca80b83
commit da9defc5b6

View File

@ -32,10 +32,7 @@ function stepsWithIndex (steps: VNodeChild[]): Array<VNode | null> {
const stepsProps = { const stepsProps = {
...(useTheme.props as ThemeProps<StepsTheme>), ...(useTheme.props as ThemeProps<StepsTheme>),
current: { current: Number,
type: Number,
default: undefined
},
status: { status: {
type: String as PropType<'process' | 'finish' | 'error' | 'wait'>, type: String as PropType<'process' | 'finish' | 'error' | 'wait'>,
default: 'process' default: 'process'
@ -44,10 +41,7 @@ const stepsProps = {
type: String as PropType<'small' | 'medium'>, type: String as PropType<'small' | 'medium'>,
default: 'medium' default: 'medium'
}, },
vertical: { vertical: Boolean
type: Boolean,
default: false
}
} }
export interface StepsInjection { export interface StepsInjection {