From a7effca5c61c7fdaf4fe26d7accb986d368ba840 Mon Sep 17 00:00:00 2001 From: jacknan Date: Thu, 9 Mar 2023 17:30:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(timeline):=20timeline=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20(#38)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MNZhu --- .../demo/mobile/time-line/different-data.vue | 82 -------- .../demo/mobile/time-line/mobileTimeLine.vue | 185 +++++++++++------- example/src/demo/mobile/time-line/steps.vue | 135 +++++++++++++ example/src/docs/mobile/time-line/steps.md | 18 ++ example/src/nav.config.comp.mobile.json | 8 +- example/src/route.config.comp.mobile.js | 10 +- packages/time-line/src/mobile.vue | 113 +++++++---- 7 files changed, 349 insertions(+), 202 deletions(-) delete mode 100644 example/src/demo/mobile/time-line/different-data.vue create mode 100644 example/src/demo/mobile/time-line/steps.vue create mode 100644 example/src/docs/mobile/time-line/steps.md diff --git a/example/src/demo/mobile/time-line/different-data.vue b/example/src/demo/mobile/time-line/different-data.vue deleted file mode 100644 index 57ed61f66..000000000 --- a/example/src/demo/mobile/time-line/different-data.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - - - diff --git a/example/src/demo/mobile/time-line/mobileTimeLine.vue b/example/src/demo/mobile/time-line/mobileTimeLine.vue index fb285c868..412ebdda9 100644 --- a/example/src/demo/mobile/time-line/mobileTimeLine.vue +++ b/example/src/demo/mobile/time-line/mobileTimeLine.vue @@ -1,15 +1,43 @@ - diff --git a/example/src/demo/mobile/time-line/steps.vue b/example/src/demo/mobile/time-line/steps.vue new file mode 100644 index 000000000..522017fc5 --- /dev/null +++ b/example/src/demo/mobile/time-line/steps.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/example/src/docs/mobile/time-line/steps.md b/example/src/docs/mobile/time-line/steps.md new file mode 100644 index 000000000..17239738a --- /dev/null +++ b/example/src/docs/mobile/time-line/steps.md @@ -0,0 +1,18 @@ +
+

+ +

+ +## TimeLine 时间轴 + + + +
+ +### 步骤条样式 + + + +
+ + diff --git a/example/src/nav.config.comp.mobile.json b/example/src/nav.config.comp.mobile.json index d2dc6853a..b0e6b9a99 100644 --- a/example/src/nav.config.comp.mobile.json +++ b/example/src/nav.config.comp.mobile.json @@ -93,10 +93,6 @@ "path": "/time-line", "name": "TimeLine 时间轴", "children": [ - { - "path": "/time-line/different-data", - "name": "数据映射" - }, { "path": "/time-line/slot", "name": "插槽" @@ -104,6 +100,10 @@ { "path": "/time-line/space", "name": "设置高度" + }, + { + "path": "/time-line/steps", + "name": "步骤条" } ] } diff --git a/example/src/route.config.comp.mobile.js b/example/src/route.config.comp.mobile.js index 7cd2ed565..74c9108e5 100644 --- a/example/src/route.config.comp.mobile.js +++ b/example/src/route.config.comp.mobile.js @@ -765,16 +765,16 @@ const router = [ meta: { title: 'mobileTimeLine 时间轴组件 - 插槽', lang: 'zh-CN' }, component: () => import(/* webpackChunkName: "mobileComp" */ './docs/mobile/time-line/slot.md') }, - { - path: 'time-line/different-data', - meta: { title: 'mobileTimeLine 时间轴组件 - 数据映射', lang: 'zh-CN' }, - component: () => import(/* webpackChunkName: "mobileComp" */ './docs/mobile/time-line/different-data.md') - }, { path: 'time-line/space', meta: { title: 'mobileTimeLine 时间轴组件 - 高度', lang: 'zh-CN' }, component: () => import(/* webpackChunkName: "mobileComp" */ './docs/mobile/time-line/space.md') }, + { + path: 'time-line/steps', + meta: { title: 'mobileTimeLine 时间轴组件 - 步骤条', lang: 'zh-CN' }, + component: () => import(/* webpackChunkName: "mobileComp" */ './docs/mobile/time-line/steps.md') + }, { path: 'dropdown-menu', meta: { title: 'mobileDropdownMenu 筛选排序组件', lang: 'zh-CN' }, diff --git a/packages/time-line/src/mobile.vue b/packages/time-line/src/mobile.vue index b035a10f8..f0d1815c2 100644 --- a/packages/time-line/src/mobile.vue +++ b/packages/time-line/src/mobile.vue @@ -10,43 +10,67 @@ * --> @@ -54,10 +78,29 @@