-
Timeline
-
时间轴
+
+
横向步骤条 正向
+
+
+
+
+
标题文字
+
辅助信息文字辅助信息文字辅助信息文字辅助信息文字
+
+
+
+
+
-
-
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 @@
+
+
+### 步骤条样式
+
+
+
+
+
+
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 @@
*
-->
-
-
-
-
- -
- {{ getDate(node[timeField]).date }}
- {{ getDate(node[timeField]).time }}
-
+
+
+
+
+
+ {{ getDate(node[timeField]).date }} {{ getDate(node[timeField]).time }}
+
-
-
-
-
-
- -
-
-
{{ node[nameField] }}
-
{{ node.cycle }}
+
+ {{ showNumber ? index + start : '' }}
+
+
+
+
+
+
+
+
+
+ {{ showStatus ? getStatus(index) : '' }}
-
- {{ node.personInfo }}
- {{ node.overdue }}
+
+
+
+
+
@@ -54,10 +78,29 @@