<script setup>
defineProps({
  info: {
    type: Object,
    default: () => ({
      title: '',
      keyValue: []
    })
  },
  fieldResult: {
    type: Object,
    default: () => ({})
  }
})
</script>

<template>
  <up-card :title="info.title" :head-style="{ fontWeight: 'bold' }">
    <template #body>
      <up-cell-group :border="false">
        <up-cell
          v-for="(item, index) in info.keyValue"
          :key="index"
          :title="item.key"
          :value="fieldResult[item.field] || item.value || '无'"
        />
      </up-cell-group>
    </template>
  </up-card>
</template>
