You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/qrcode/demo/status.vue

28 lines
657 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<docs>
---
order: 3
title:
zh-CN: 不同的状态
en-US: other status
---
## zh-CN
可以通过 status 的值控制二维码的状态提供了 `active``expired``loading``scanned` 四个值
## en-US
The status can be controlled by the value `status`, four values of `active`, `expired`, `loading`, `scanned` are provided.
</docs>
<template>
<a-space>
<a-qrcode value="http://www.antdv.com" status="loading" />
<a-qrcode
value="http://www.antdv.com"
status="expired"
@refresh="() => console.log('refresh')"
/>
<a-qrcode value="http://www.antdv.com" status="scanned" />
</a-space>
</template>