mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(steps): add props validator
This commit is contained in:
parent
4438a08aca
commit
10394abde0
@ -21,6 +21,7 @@ export default defineComponent({
|
||||
direction: {
|
||||
type: String,
|
||||
default: 'horizontal',
|
||||
validator: (val: string): boolean => ['horizontal', 'vertical'].indexOf(val) > -1,
|
||||
},
|
||||
alignCenter: {
|
||||
type: Boolean,
|
||||
@ -33,10 +34,12 @@ export default defineComponent({
|
||||
finishStatus: {
|
||||
type: String,
|
||||
default: 'finish',
|
||||
validator: (val: string): boolean => ['wait', 'process', 'finish', 'error', 'success'].indexOf(val) > -1,
|
||||
},
|
||||
processStatus: {
|
||||
type: String,
|
||||
default: 'process',
|
||||
validator: (val: string): boolean => ['wait', 'process', 'finish', 'error', 'success'].indexOf(val) > -1,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
|
@ -84,6 +84,7 @@ export default defineComponent({
|
||||
status: {
|
||||
type: String,
|
||||
default: '',
|
||||
validator: (val: string): boolean => ['', 'wait', 'process', 'finish', 'error', 'success'].indexOf(val) > -1,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
|
Loading…
Reference in New Issue
Block a user