From 6b289a260a10751e8d932badba708691d0d11efc Mon Sep 17 00:00:00 2001 From: Dora <53067150+Dora-boots@users.noreply.github.com> Date: Fri, 11 Aug 2023 10:33:28 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E5=8E=BBtimelineitem?= =?UTF-8?q?=E5=BC=95=E5=85=A5=E7=9A=84=E5=A3=B0=E6=98=8E=20(#7769)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: yanglu19 --- packages/amis/src/renderers/Timeline.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/amis/src/renderers/Timeline.tsx b/packages/amis/src/renderers/Timeline.tsx index 39b671c3d..e14310b59 100644 --- a/packages/amis/src/renderers/Timeline.tsx +++ b/packages/amis/src/renderers/Timeline.tsx @@ -16,7 +16,6 @@ import type { SchemaTokenizeableString } from '../Schema'; import type {IconCheckedSchema} from 'amis-ui'; -import {TimelineItemProps} from 'packages/amis-ui/src/components/TimelineItem'; export interface TimelineItemSchema extends Omit { /** @@ -149,7 +148,7 @@ export function TimelineCmpt(props: TimelineProps) { typeof val === 'string' ? filter(val, data) : val && render(region, val); // 处理源数据 - const resolveTimelineItems: Array = (items || []).map( + const resolveTimelineItems = (items || []).map( (timelineItem: TimelineItemSchema, index: number) => { const { icon,