提交 e3be6371 编写于 作者: Q qq_41923622

Mon Aug 21 18:07:00 CST 2023 inscode

上级 8d0f8962
<script setup>
import { ref } from 'vue'
defineProps({
msg: {
type: String,
required: true
}
})
const active = ref(0)
const activeName = ref("1")
const next = () => {
if (active.value++ > 2) active.value = 3
activeName.value = ""+active.value;
console.log();
}
const prev = () => {
if (active.value-- < 0) active.value = 1
activeName.value = ""+active.value;
}
</script>
<template>
<div class="greetings">
<h1 class="green">{{ msg }}</h1>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
<a target="_blank" href="https://vuejs.org/">Vue 3</a>.
</h3>
<div>
<el-button style="margin-top: 12px" @click="prev">Prev step</el-button>
<el-steps :active="active" finish-status="success">
<el-step title="Step 1" >asdasd</el-step>
<el-step title="Step 2" />
<el-step title="Step 3" />
</el-steps>
<el-button style="margin-top: 12px" @click="next">Next step</el-button>
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane label="1" name="1">User</el-tab-pane>
<el-tab-pane label="2" name="2">Config</el-tab-pane>
<el-tab-pane label="3" name="3">Role</el-tab-pane>
</el-tabs>
</div>
</template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册