| | |
| | | <!-- |
| | | * @Date: 2024-04-23 20:03:41 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-23 22:20:35 |
| | | * @LastEditTime: 2024-04-23 22:32:52 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/processParam/TimeLine.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <div class="timeline-box"> |
| | | <div class="timeline-box-current" :style="{ width: 100 / lines.length + '%' }"></div> |
| | | <div class="timeline-box-hover"></div> |
| | | <div class="timeline-box-item" v-for="item in dateList" :key="item.startTime" :style="{ |
| | | width: item.width + '%', |
| | | background: item.color |
| | |
| | | .timeline-box { |
| | | height: 20px; |
| | | display: flex; |
| | | position: relative; |
| | | |
| | | &-item { |
| | | text-align: center; |
| | | flex: 0 0 auto; |
| | | } |
| | | |
| | | .timeline-box-current, |
| | | .timeline-box-hover { |
| | | height: 20px; |
| | | position: absolute; |
| | | left: 0; |
| | | z-index: 1; |
| | | border: 1px solid red; |
| | | } |
| | | } |
| | | |
| | | .timeline-line { |