gm-printer-label 3.2.1-beta.1 → 3.2.1-beta.2
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 +1 -1
- package/src/printer/barcode.js +2 -1
package/package.json
CHANGED
package/src/printer/barcode.js
CHANGED
|
@@ -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}
|