|
@@ -21,10 +21,17 @@
|
|
|
/>
|
|
|
|
|
|
<div ref="longref$">
|
|
|
- <component :is="timeItem.component" v-for="(timeItem, index) in timeList"
|
|
|
- :info="{ ...timeItem.info, id: timeItem.id }" :style="{
|
|
|
+ <component
|
|
|
+ class="time-item"
|
|
|
+ v-for="(timeItem, index) in timeList"
|
|
|
+ :key="timeItem.id"
|
|
|
+ :is="timeItem.component"
|
|
|
+ :info="{ ...timeItem.info, id: timeItem.id }"
|
|
|
+ :style="{
|
|
|
left: `calc(${itemW}% * ${index} - ${translateLength}px)`,
|
|
|
- }" @onClickTimeItem="onClickTimeItem" :key="timeItem.id" class="time-item" />
|
|
|
+ }"
|
|
|
+ @onClickTimeItem="onClickTimeItem"
|
|
|
+ />
|
|
|
</div>
|
|
|
|
|
|
<Interaction ref="interaction$" :currentTimeIdx="currentTimeIdx" :list="timeList" />
|