Browse Source

Step(doc): fix doc

qingwei.li 9 years ago
parent
commit
f123b80b79
1 changed files with 16 additions and 0 deletions
  1. 16 0
      examples/docs/steps.md

+ 16 - 0
examples/docs/steps.md

@@ -1,3 +1,19 @@
+<script>
+  export default {
+    data() {
+      return {
+        active: 0
+      };
+    },
+
+    methods: {
+      next() {
+        if (this.active++ > 2) this.active = 0;
+      }
+    }
+  }
+</script>
+
 ## Steps 步骤条
 引导用户按照流程完成任务的分步导航条,可根据实际应用场景设定步骤,步骤不得少于2步