条形码组件演示

这是一个为阿里低代码引擎开发的条形码组件演示页面

🎯 交互式演示

📖 使用说明

1. 安装依赖

npm install jsbarcode

2. 在低代码引擎中注册组件

import { BarcodeComponent, BarcodeComponentMeta } from '@your-org/barcode-component';

// 注册组件
designer.registerComponent(BarcodeComponent, BarcodeComponentMeta);

3. 直接在React中使用

import BarcodeComponent from '@your-org/barcode-component';

function App() {
  return (
    <BarcodeComponent
      value="HELLO123"
      format="CODE128"
      width={2}
      height={100}
      displayValue={true}
    />
  );
}

🔧 支持的条形码格式