From 3b99839e1f2e3222c78e98813068b51cc45a09be Mon Sep 17 00:00:00 2001 From: Liuzj <530604689@qq.com> Date: Thu, 24 Mar 2022 15:45:38 +0800 Subject: [PATCH] refactor(comp: timeline): optimize code and style (#819) --- .../__snapshots__/timeline.spec.ts.snap | 925 ++++++++++-------- .../timeline/__tests__/timeline.spec.ts | 82 +- packages/components/timeline/demo/Label.vue | 86 +- packages/components/timeline/demo/Pending.vue | 52 +- .../components/timeline/demo/PendingDot.vue | 42 +- .../components/timeline/demo/Placement.vue | 50 +- packages/components/timeline/demo/Reverse.vue | 16 +- packages/components/timeline/docs/Index.zh.md | 33 +- packages/components/timeline/src/Timeline.tsx | 32 +- .../components/timeline/src/TimelineItem.tsx | 40 +- packages/components/timeline/src/token.ts | 2 - packages/components/timeline/style/index.less | 208 ++-- packages/components/timeline/style/mixin.less | 29 + .../style/themes/default.variable.less | 37 +- packages/components/transfer/docs/Index.zh.md | 29 + 15 files changed, 889 insertions(+), 774 deletions(-) diff --git a/packages/components/timeline/__tests__/__snapshots__/timeline.spec.ts.snap b/packages/components/timeline/__tests__/__snapshots__/timeline.spec.ts.snap index 3f7dc966b..90bcd8b20 100644 --- a/packages/components/timeline/__tests__/__snapshots__/timeline.spec.ts.snap +++ b/packages/components/timeline/__tests__/__snapshots__/timeline.spec.ts.snap @@ -1,159 +1,126 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Timeline pending slot work 1`] = ` -"