<template>
  <!-- <view>任务开始时间延迟插件</view> -->
  <view v-if="realStart && planStart">
    <!-- 任务开始时间延迟插件 -->
    <!-- 超时 -->
    <span>{{ $time.formatDuration(+realStart - +planStart) }}</span>
  </view>
</template>

<script setup>
import { computed, defineProps } from 'vue';

const props = defineProps({ task: { default: () => {}, type: Object } });

const realStart = computed(() => props.task.realStart);
const planStart = computed(() => props.task.planStart);

</script>
