From 2ef482d1fb4fdcfd3b5974ad2b0d3a0d9d3bc12e Mon Sep 17 00:00:00 2001 From: hsldymq Date: Wed, 30 Mar 2022 16:17:25 +0800 Subject: [PATCH 1/2] fix: type TimelineVerticalAlignType declaration #2367 --- src/components/timeline/Timeline.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/timeline/Timeline.d.ts b/src/components/timeline/Timeline.d.ts index 31ca89aea..c5fe3acab 100644 --- a/src/components/timeline/Timeline.d.ts +++ b/src/components/timeline/Timeline.d.ts @@ -1,7 +1,7 @@ import { VNode } from 'vue'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -type TimelineVerticalAlignType = 'left' | 'right' | undefined; +type TimelineVerticalAlignType = 'left' | 'right' | 'alternate' | undefined; type TimelineHorizontalAlignType = 'top' | 'bottom' | undefined; From b26d43acc12af62147b075fdbcc7c9882b0b371d Mon Sep 17 00:00:00 2001 From: hsldymq Date: Wed, 30 Mar 2022 16:20:34 +0800 Subject: [PATCH 2/2] update: timeline component doc --- api-generator/components/timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-generator/components/timeline.js b/api-generator/components/timeline.js index 3443c78a6..a7b30cee4 100644 --- a/api-generator/components/timeline.js +++ b/api-generator/components/timeline.js @@ -9,7 +9,7 @@ const TimelineProps = [ name: "align", type: "string", default: "left", - description: 'Position of the timeline bar relative to the content. Valid values are "left", "right" for vertical layout and "top", "bottom" for horizontal layout.' + description: 'Position of the timeline bar relative to the content. Valid values are "left", "right" and "alternate" for vertical layout and "top", "bottom" for horizontal layout.' }, { name: "layout",