62 lines
1.0 KiB
Vue
Raw Normal View History

<template>
2022-09-02 15:21:58 +08:00
<Card title="进度管理">
<div class="container">
2022-09-02 16:06:21 +08:00
<Steps :items="items" :activeIndex="index" />
2022-09-02 15:21:58 +08:00
</div>
</Card>
</template>
<script>
2022-09-02 16:06:21 +08:00
import Steps from './Steps'
import Card from '../../components/Card'
export default {
2022-09-02 16:06:21 +08:00
components: { Card, Steps },
data() {
2022-09-02 15:21:58 +08:00
return {
items: [
{
2022-09-02 16:06:21 +08:00
label: '2022-01-01',
value: '测试阶段1'
2022-09-02 15:21:58 +08:00
},
{
2022-09-02 16:06:21 +08:00
label: '二',
value: '测试阶段2'
2022-09-02 15:21:58 +08:00
},
{
2022-09-02 16:06:21 +08:00
label: '三',
value: '测试阶段3'
2022-09-02 15:21:58 +08:00
},
{
2022-09-02 16:06:21 +08:00
label: '四',
value: '测试阶段3'
2022-09-02 15:21:58 +08:00
},
{
2022-09-02 16:06:21 +08:00
label: '五',
value: '测试阶段3'
2022-09-02 15:21:58 +08:00
},
],
index: 0
}
}
}
</script>
2022-09-02 15:21:58 +08:00
<style lang="less" scoped>
.container {
display: grid;
place-items: center;
width: 100%;
height: 100%;
overflow: auto;
}
// ::v-deep .steps-item {
// width: 150px;
// height: 34px;
// padding-top: 15px;
// position: relative;
// }
</style>