New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ac-barcode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-barcode

条形码组件

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 01 Mar 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc