Socket
Socket
Sign inDemoInstall

ac-barcode

Package Overview
Dependencies
9
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ac-barcode

条形码组件


Version published
Maintainers
1
Install size
1.06 MB
Created

Readme

Source

ac-barcode

条形码组件

image

npm version NPM downloads

1. 简介

React条形码组件,使用业界知名 jsbarcode 进行封装,简单、友好的使用体验

2. 安装

  1. 通过npm安装
    npm install ac-barcode --save
    
  2. 国内镜像通过cnpm安装
    cnpm install ac-barcode --save
    
  3. 用友内网通过ynpm安装
    ynpm install ac-barcode --save
    

3. 使用

import AcBarcode from "ac-barcode";

render(){
    return (<AcBarcode value="9787123" />)
}

4. API

参数默认值类型
value"String
renderersvg (svg,canvas,img)String
format"auto" (CODE128)String
width2Number
height100Number
displayValuetrueBoolean
fontOptions""String
font"monospace"String
textAlign"center"String
textPosition"bottom"String
textMargin2Number
fontSize20Number
background"#ffffff"String (CSS color)
lineColor"#000000"String (CSS color)
margin10Number
marginTopundefinedNumber
marginBottomundefinedNumber
marginLeftundefinedNumber
marginRightundefinedNumber

5. 支持标准

6. CHANGLOG

Keywords

FAQs

Last updated on 01 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc