
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
rax-barcode
Advanced tools
Web / Weex / 阿里小程序 / 微信小程序
Barcode 用于显示条形码,基于 Canvas 实现
$ npm install rax-barcode --save
支持目前仅支持: CODE39,CODE128, CODE128A, CODE128B, CODE128C
options 除列出参数外,其余参数请参考 https://github.com/lindell/JsBarcode
属性 | 类型 | 默认值 | 必填 | 描述 | 支持 |
---|---|---|---|---|---|
data | string | - | ✔️ | 数据 | |
type | string | CODE128 | ✘ | 类型 | |
style | object | {width:500,height:200} | ✘ | 样式 | |
option | object | - | ✘ | 参数 |
属性 | 类型 | 默认值 | 必填 | 描述 |
---|---|---|---|---|
barWidth | number | 2 | ✘ | 单个条码的宽度 |
fillColor | string | - | ✘ | 数据块填充色 |
import { createElement, render, Component } from "rax";
import DriverUniversal from "driver-universal";
import View from "rax-view";
import BarCode from "rax-barcode";
class App extends Component {
constructor() {
super();
}
render() {
return (
<View style={{ flex: 1 }}>
<BarCode
data={"123456789"}
options={{
fillColor: "red"
}}
/>
</View>
);
}
}
render(<App />, document.body, { driver: DriverUniversal });
FAQs
barcode component for Rax.
The npm package rax-barcode receives a total of 1 weekly downloads. As such, rax-barcode popularity was classified as not popular.
We found that rax-barcode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.