mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
chore(steps): optimize props declaration
This commit is contained in:
parent
edeca80b83
commit
da9defc5b6
@ -32,10 +32,7 @@ function stepsWithIndex (steps: VNodeChild[]): Array<VNode | null> {
|
||||
|
||||
const stepsProps = {
|
||||
...(useTheme.props as ThemeProps<StepsTheme>),
|
||||
current: {
|
||||
type: Number,
|
||||
default: undefined
|
||||
},
|
||||
current: Number,
|
||||
status: {
|
||||
type: String as PropType<'process' | 'finish' | 'error' | 'wait'>,
|
||||
default: 'process'
|
||||
@ -44,10 +41,7 @@ const stepsProps = {
|
||||
type: String as PropType<'small' | 'medium'>,
|
||||
default: 'medium'
|
||||
},
|
||||
vertical: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
vertical: Boolean
|
||||
}
|
||||
|
||||
export interface StepsInjection {
|
||||
|
Loading…
Reference in New Issue
Block a user