## 二维码

<br />

####  用于二维码的生成


:::demo
```html
<template>
    <jr-code :option="option"></jr-code>
</template>

<script>
    export default {
        data() {
            return {
                option: {
                    width: 100,
                    text: "http://www.bilibili.com",
                    imgSrc: "http://pic.rmb.bdstatic.com/18eb6a96a8b8b4869dba6fe63dedef5e.png"
                }
            }
        },
        methods: {}
    }
</script>
```
:::

### Attributes

| 参数      | 说明          | 类型      | 可选值                           | 默认值  |
|---------- |-------------- |---------- |--------------------------------  |-------- |
| option     |  绑定数据           | object | — | — |
| width     |  二维码的宽度          | number |  — | — |
| text      |  生成二维码的连接      | string |  — | — |
| imgSrc    |  二维码中间的图片      | string |  — | — |

