BarCode 条形码

基本用法

```schema: scope=”body” { “type”: “barcode”, “value”: “amis” }

  1. ## 条形码配置
  2. 通过 options 属性配置,具体请参考[这里](https://github.com/lindell/JsBarcode/wiki/Options),比如
  3. ```schema: scope="body"
  4. {
  5. "type": "barcode",
  6. "value": "123",
  7. "options": {
  8. "format": "pharmacode",
  9. "lineColor": "#0aa",
  10. "width": "4",
  11. "height": "40",
  12. }
  13. }

属性表

属性名 类型 默认值 说明
className string 外层 CSS 类名
value string 显示的颜色值
name string 在其他组件中,时,用作变量映射