hs-id-card-read
v1.0.4
Published
华视电子证件读取器
Downloads
8
Readme
hs-id-card-read
华视电子证件读取器,http://www.chinaidcard.com/cxxz.html
解压安装
解压 YS-101SDK.zip 安装 ./YS-101(必装).exe
和 ./华视电子证件读取监控软件.exe
npm install hs-id-card-read --save
使用方法
import HSIDCardRead from "hs-id-card-read";
<HSIDCardRead
:url="xxx"
:interval="1000"
:intervalEnd="10000"
@on:success="onSuccess"
@on:error="onError"
@on:connected="onConnected"
@on:ing="onIng"
@on:timeout="onTimeout"
></HSIDCardRead>
参数说明
props
| 属性 | 类型 | 说明 | 默认值 | | ----------- | ------ | -------------- | ----------------- | | url | string | websocket 地址 | ws:127.0.0.1:8800 | | interval | number | 读取间隔时间 | 1000 | | intervalEnd | number | 读取的总时间 | 0(一直) |
methods
| 名称 | 说明 | 参数 | | ------------- | ---------------------- | ---- | | @on:connected | 已创建链接 | - | | @on:ing | 正在连接中 | - | | @on:success | 读取成功 | data | | @on:error | 读取失败 | data | | @on:timeout | 超过设置最大的读取时间 | - |