<script lang='ts' setup>

</script>

<template>
  <ion-list>
    <ion-list-header>
      <ion-label>
        <h4>最近记录</h4>
      </ion-label>
      <ion-button class="text-sm">
        查看全部
      </ion-button>
    </ion-list-header>
    <ion-item>
      <div class="flex justify-between w-full items-center py-4">
        <div class="flex flex-col gap-1">
          <div class="flex items-center gap-2">
            <div class="text-sm font-medium">
              分红收益
            </div>
            <ion-badge class="text-xs p-1" color="success">
              已完成
            </ion-badge>
          </div>
          <div class="text-sm font-medium">
            旧金山商业地产
          </div>
          <div class="text-xs text-text-400">
            SF-002
          </div>
        </div>
        <div class="text-right">
          <div class="text-base font-semibold">
            {{ formatAmountWithSplit(520.5) }}
          </div>
          <div class="text-xs text-text-400">
            今天
          </div>
        </div>
      </div>
    </ion-item>
    <ion-item>
      <div class="flex justify-between w-full items-center py-4">
        <div class="flex flex-col gap-1">
          <div class="flex items-center gap-2">
            <div class="text-sm font-medium">
              分红收益
            </div>
            <ion-badge class="text-xs p-1" color="success">
              已完成
            </ion-badge>
          </div>
          <div class="text-sm font-medium">
            旧金山商业地产
          </div>
          <div class="text-xs text-text-400">
            SF-002
          </div>
        </div>
        <div class="text-right">
          <div class="text-base font-semibold">
            {{ formatAmountWithSplit(520.5) }}
          </div>
          <div class="text-xs text-text-400">
            今天
          </div>
        </div>
      </div>
    </ion-item>
    <ion-item>
      <div class="flex justify-between w-full items-center py-4">
        <div class="flex flex-col gap-1">
          <div class="flex items-center gap-2">
            <div class="text-sm font-medium">
              分红收益
            </div>
            <ion-badge class="text-xs p-1" color="success">
              已完成
            </ion-badge>
          </div>
          <div class="text-sm font-medium">
            旧金山商业地产
          </div>
          <div class="text-xs text-text-400">
            SF-002
          </div>
        </div>
        <div class="text-right">
          <div class="text-base font-semibold">
            {{ formatAmountWithSplit(520.5) }}
          </div>
          <div class="text-xs text-text-400">
            今天
          </div>
        </div>
      </div>
    </ion-item>
  </ion-list>
</template>

<style lang='css' scoped>
h4 {
  font-size: var(--title-font-size);
  font-weight: bold;
}
ion-badge {
  font-size: 10px;
}
</style>
