<template>
  <view class="order-qrcode">
    <Qrcode
      :size="size"
      :unit="unit"
      :val="val"
      :loadMake="true"
      :onval="true"
    />
  </view>
</template>

<script setup>
import { defineProps } from "vue";
import Qrcode from "@/components/Qrcode/index.vue";

const props = defineProps({
  size: {
    type: Number,
    default: 132,
  },
  unit: {
    type: String,
    default: "px",
  },
  val: {
    type: String,
    default: "text",
  },
});
</script>

<style scoped lang="scss">
@import "./styles/index.scss";
</style>