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 = {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user