<template>
    <div class="qrCode-box">
        <div class="qr-img">
            <QrCode :value="qrCodeUrl" :width="160" :options="{ margin: 0}" />
        </div>
        <div class="qr-text">
            <el-icon :size="18"><RefreshRight /></el-icon>刷新二维码
        </div>
    </div>
</template>

<script lang="ts" setup>
import { QrCode } from '@/components/Qrcode/index';
const qrCodeUrl = 'https://www.naiveadmin.com';
</script>

<style lang="scss" scoped>
.qrCode-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    .qr-img {
        border:1px solid #dcdfe6;
        padding:10px;
        border-radius: 4px;
    }
    .qr-text {
        cursor: pointer;
        margin-top:16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color:rgba(0, 0, 0, .88);
        >i {
            margin-right:6px;
        }
    }
}
</style>