From 8453cea3f0a6dc4babf6917ae868c429f873635d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Thu, 1 Jun 2023 15:14:49 +0300 Subject: [PATCH] Refactor #3965 - For Timeline --- components/lib/timeline/BaseTimeline.vue | 155 +++++++++++++++++++++++ components/lib/timeline/Timeline.d.ts | 5 + components/lib/timeline/Timeline.vue | 144 +-------------------- 3 files changed, 167 insertions(+), 137 deletions(-) create mode 100644 components/lib/timeline/BaseTimeline.vue diff --git a/components/lib/timeline/BaseTimeline.vue b/components/lib/timeline/BaseTimeline.vue new file mode 100644 index 000000000..55cfc3045 --- /dev/null +++ b/components/lib/timeline/BaseTimeline.vue @@ -0,0 +1,155 @@ + diff --git a/components/lib/timeline/Timeline.d.ts b/components/lib/timeline/Timeline.d.ts index fc6996397..b5b8da24d 100644 --- a/components/lib/timeline/Timeline.d.ts +++ b/components/lib/timeline/Timeline.d.ts @@ -80,6 +80,11 @@ export interface TimelineProps { * @type {TimelinePassThroughOptions} */ pt?: TimelinePassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/timeline/Timeline.vue b/components/lib/timeline/Timeline.vue index d43359fdc..0546c5216 100644 --- a/components/lib/timeline/Timeline.vue +++ b/components/lib/timeline/Timeline.vue @@ -1,18 +1,18 @@