<script setup lang="ts" name="LeaveDetail">
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import DetailFlow from './modules/DetailFlow.vue'

const id = ref('')
const instanceId = ref('')
onLoad((option) => {
  console.log('option',option)
  id.value = option.id
  instanceId.value = option.instanceId
  // console.log(route.query)
})
</script>

<template>
  <div class="container full">
    <div class="container__body">
      <div class="container__card flex">
        <DetailFlow v-if="id && instanceId" :id="id" :instance-id="instanceId" />
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
:deep(.van-image) {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  .van-image__img {
    position: absolute;
    object-fit: cover;
  }
}

:deep(.van-cell) {
  .van-cell__title {
    margin-right: 1rem;
    flex: none;
  }
  .van-cell__value {
    display: flex;
    justify-content: flex-end;
    color: var(--van-cell-text-color);
    overflow: hidden;
    span {
      text-align: justify;
    }
  }
}
:deep(.tag-label) {
  font-size: 1.4rem;
}
</style>
