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