use_qrcode

1.0.1 • Public • Published

useQRCode

QRCode,LoogoQRCode,二维,带 logo 的二维码

use demo

pnpm add use_qrcode
// vue3 demo
<template>
    <img :src="qrcodeLogo" alt="QR Code" style="width: 130px; height: 130px" />
    <img :src="qrcode" alt="QR Code" style="width: 130px; height: 130px" />

</template>
<script setup lang='ts' >
import {useQRCode} from 'use_qrcode';
import { ref } from 'vue'
const txt: any = ref('https://baidu.com');
const qrcodeLogo = useQRCode(txt, { logoSrc: 'https://www.antdv.com/assets/logo.1ef800a8.svg' });
const qrcode = useQRCode(txt);
</script>

这是示例图片

Readme

Keywords

Package Sidebar

Install

npm i use_qrcode

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

21.1 kB

Total Files

7

Last publish

Collaborators

  • jiangwenjie