gm-printer-label 3.2.1-beta.3 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer-label",
3
- "version": "3.2.1-beta.3",
3
+ "version": "3.3.0",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -18,7 +18,8 @@ class BarCode extends React.Component {
18
18
 
19
19
  render () {
20
20
  // 可设置条形码的宽高
21
- const { dataName, height = '', svgWidth } = this.props
21
+ const { dataName, value, height = '', svgWidth } = this.props
22
+ if (!value) return null
22
23
  return <svg
23
24
  data-name={dataName}
24
25
  ref={this.barcode}