From 2b8dcdfa621c7c52d52a5329eabd631a965ff6b0 Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Tue, 24 Oct 2023 19:43:25 +0800 Subject: [PATCH] feat(Timeline): timelineitem add trigger on click (#3512) * feat: timelineItem onClick * chore: remove time-line-item-props.ts * test: snap update * test: snap update --- .../vitest-timeline.test.jsx.snap | 8 ++-- src/timeline/time-line-item-props.ts | 38 ------------------- src/timeline/timeline-item-props.ts | 4 +- src/timeline/timeline-item.tsx | 10 +++-- src/timeline/timeline.en-US.md | 17 ++++++--- src/timeline/timeline.md | 7 ++++ src/timeline/type.ts | 4 ++ test/unit/snap/__snapshots__/csr.test.js.snap | 10 ++--- test/unit/snap/__snapshots__/ssr.test.js.snap | 4 +- 9 files changed, 44 insertions(+), 58 deletions(-) delete mode 100644 src/timeline/time-line-item-props.ts diff --git a/src/timeline/__tests__/__snapshots__/vitest-timeline.test.jsx.snap b/src/timeline/__tests__/__snapshots__/vitest-timeline.test.jsx.snap index 369de4792e..c2dbead955 100644 --- a/src/timeline/__tests__/__snapshots__/vitest-timeline.test.jsx.snap +++ b/src/timeline/__tests__/__snapshots__/vitest-timeline.test.jsx.snap @@ -9,7 +9,7 @@ exports[`TimelineItem Component > props.content works fine 1`] = ` class="t-timeline-item__wrapper" >