ant-design-vue/components/qrcode/demo/status.vue

28 lines
657 B
Vue
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>