mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-12 11:55:26 +08:00
28 lines
657 B
Vue
28 lines
657 B
Vue
<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>
|