From e25d55120f985bb2307ab335f581690fede9a54e Mon Sep 17 00:00:00 2001 From: duxianjin <1960116313@qq.com> Date: Mon, 13 Mar 2023 00:15:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=97=B6=E9=97=B4=E8=BD=B4=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/elStep.vue | 43 ++++---- src/views/aboutUs.vue | 206 ++++++++++++++++++++++++++------------ 2 files changed, 170 insertions(+), 79 deletions(-) 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: () => [] }, + }, };