diff --git a/src/components/elStep.vue b/src/components/elStep.vue
index 43600b5..576549e 100644
--- a/src/components/elStep.vue
+++ b/src/components/elStep.vue
@@ -2,28 +2,37 @@
-
{{item.title}}
+
{{ item.title }}
@@ -33,16 +42,16 @@
export default {
methods: {
//点击步骤条后回调
- clickStep(index, callback) {
- console.log(index, callback, 8787);
- if (callback) callback(index);
- }
+ clickStep(index) {
+ // if (callback) callback(index);
+ this.$emit("clickStep", index);
+ },
},
props: {
active: { type: Number, default: 1 },
stepFunction: { type: Function, default: () => {} },
- stepList: { type: Array, default: () => [] }
- }
+ stepList: { type: Array, default: () => [] },
+ },
};