4.0.1 • Published 1 year ago
taro-code v4.0.1
Taro Code
QRCode & Barcode component for Taro.js, inspired by wx-base64-qrcode and wxbarcode. Components will generate base64 qrcode/barcode image.
Getting Started
Install
yarn add taro-code
# or
npm install taro-code
Usage
import Taro from '@tarojs/taro'
import { Barcode, QRCode } from 'taro-code'
class Code extends Taro.Component {
render() {
return (
<View>
<Barcode text='hello' width={300} height={60} scale={4} />
<QRCode
text='world'
size={300}
scale={4}
errorCorrectLevel='M'
typeNumber={2}
/>
</View>
)
}
}
Props
Barcode
Prop | Type | Default |
---|---|---|
text | string | '' |
width | number | 300 |
height | number | 80 |
scale | number | 4 |
QRCode
Prop | Type | Default |
---|---|---|
text | string | '' |
size | number | 300 |
scale | number | 4 |
typeNumber | number | 2 |
errorCorrectLevel | string | 'M' |
4.0.0-beta.3
1 year ago
4.0.0-beta.2
1 year ago
4.0.0-beta.0
1 year ago
4.0.1
1 year ago
4.0.0
1 year ago
3.5.2
2 years ago
3.5.0
2 years ago
3.4.0
2 years ago
3.3.0
3 years ago
3.2.0
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.0-rc
4 years ago
2.2.0
4 years ago
2.1.0
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.4.0
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.1
5 years ago