mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [timeline-item] props validation (#8083)
This commit is contained in:
@@ -178,7 +178,7 @@ describe('TimeLine.vue', () => {
|
||||
<el-timeline>
|
||||
<el-timeline-item
|
||||
timestamp="2018-04-11"
|
||||
type="large">
|
||||
size="large">
|
||||
Step 1: xxxxxx
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
|
||||
@@ -17,10 +17,12 @@ export const timelineItemProps = buildProps({
|
||||
},
|
||||
placement: {
|
||||
type: String,
|
||||
values: ['top', 'bottom'],
|
||||
default: 'bottom',
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
values: ['primary', 'success', 'warning', 'danger', 'info'],
|
||||
default: '',
|
||||
},
|
||||
color: {
|
||||
@@ -29,6 +31,7 @@ export const timelineItemProps = buildProps({
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
values: ['normal', 'large'],
|
||||
default: 'normal',
|
||||
},
|
||||
icon: {
|
||||
|
||||
Reference in New Issue
Block a user