<script setup lang="ts">
const dialogVisible = ref(false)

const openDialog = () => {
  dialogVisible.value = true
}
defineExpose({
  openDialog
})
</script>

<template>
  <el-dialog
    top="30vh"
    v-model="dialogVisible"
    :width="640"
    title="Download KLN Portal"
    class="download-portal"
  >
    <div class="download-app-list">
      <div class="download-item">
        <img src="../images/kios.png" alt="" />
        <span>iPhone App Store</span>
      </div>
      <div class="download-item">
        <img src="../images/kandroid.png" alt="" />
        <span>Andriod-Play Store</span>
      </div>
      <div class="download-item">
        <img src="../images/kdownload.png" alt="" />
        <span>Android-China User</span>
      </div>
    </div>
  </el-dialog>
</template>

<style lang="scss">
.download-portal {
  .download-app-list {
    display: flex;
    gap: 64px;
    padding: 24px 32px;
    .download-item {
      text-align: center;
      img {
        width: 140px;
        height: 140px;
      }
    }
  }
}
</style>
