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 @@