<template>
  <hs-empty v-if="!useModel?.dataList?.value?.length" />
  <view class="asset_houses_card" v-for="(i, index) in useModel?.dataList?.value" :key="`item_${index}`">
    <view class="card_header" @click="method?.handleSelectedHouse(i)">
      <view class="asset_houses_name">
        <view> {{ i?.full_name }} </view>
        <uni-icons v-if="i?.id === useModel.selectedHouseEd.value?.id" type="checkbox-filled" size="20"
          color="#2A7EFB"></uni-icons>
        <uni-icons v-else type="circle" size="20" color="#999"></uni-icons>
      </view>
    </view>
  </view>
</template>
<script setup lang="ts">
import method from '../method';
import useModel from '../model';
</script>
