Skip to content

Commit

Permalink
Feat: bump version to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Miaonster committed Dec 11, 2019
1 parent ae1f9ef commit 70b9f01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Taro Code

> QRCode & Barcode component for [Taro.js](https://taro.js.org), inspired by [wx-mini-qrcode](https://github.com/flyingsouthwind/wx-mini-qrcode) and [wxbarcode](https://github.com/alsey/wxbarcode).
> QRCode & Barcode component for [Taro.js](https://taro.js.org), inspired by [wx-base64-qrcode](https://github.com/PsChina/wx-base64-qrcode) and [wxbarcode](https://github.com/alsey/wxbarcode). Components will generate base64 qrcode/barcode image.
## Getting Started

Expand Down Expand Up @@ -48,7 +48,7 @@ class Code extends Taro.Component {
#### width

- Type: `number`
- Default: `375`
- Default: `300`

#### height

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taro-code",
"version": "2.0.0",
"version": "2.0.1",
"description": "Taro.js barcode & qrcode",
"scripts": {
"build": "export TARO_BUILD_TYPE=ui && taro build --ui",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Barcode/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Taro, { useState, useEffect } from '@tarojs/taro'
import PropTypes from 'prop-types'
import { Image } from '@tarojs/components'
import utils from '@/utils'
import utils from '../../utils'

function BarCode({ text, scale, width, height }) {
const [image, setImage] = useState('')
Expand Down

0 comments on commit 70b9f01

Please sign in to comment.