2.0.5-alpha.1 • Published 4 years ago
@aligov/devicetasksdk v2.0.5-alpha.1
@aligov/devicetasksdk
设备、任务、登录、SDK封装。 内容主要包括:大厅高拍仪、读卡器、签名、评价、法人注册、个人注册、扫脸、任务状态 、C端账号登录等
开发
不同的场景都需要不同的参数,比如唤起读卡器
import IdCardSDK ,{TASKTYPE} from "@aligov/devicetasksdk";
const props ={
originProps:{
status:TASKTYPE.idCard //
visisble:true,
success:(data)=>{
//
console.log('拍了多少照片');
}
},
}
return <IdCardSDK {...props} />
例如唤起选择个人OR法人页面
import SelectUserSDK ,{TASKTYPE} from "@aligov/devicetasksdk";
const props ={
originProps:{
visible,
status: TASKTYPE.idCard , //当前状态
userType,
channelCode: props.originProps.channelCode,
matterType,
matterId,
}
}
return <SelectUserSDK {...props} />
更多的详请,请参考SDK的使用文档:
构建
构建 src 目录下的源码, 并生成 ES5 代码到 lib 目录中
just build
测试
内置 jest 测试框架
just test
发布
发布组件至 tnpm 上
just pub
2.0.5-alpha.1
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.3-beta9
4 years ago
2.0.3-beta8
4 years ago
2.0.3-beta10
4 years ago
2.0.3-beta7
4 years ago
2.0.3-beta6
4 years ago
2.0.3-beta5
4 years ago
2.0.3-beta4
4 years ago
2.0.3-beta3
4 years ago
2.0.3-bate1
4 years ago
2.0.3-bate0
4 years ago
2.0.3-bate2
4 years ago
2.0.2-0
4 years ago
2.0.1-beta5
4 years ago
2.0.1-beta4
4 years ago
2.0.1-beta3
4 years ago
2.0.1
4 years ago
2.0.1-beta2
4 years ago
2.0.1-beta
4 years ago
1.0.25
4 years ago
1.0.24-bate5
4 years ago
2.0.0-bate
4 years ago
1.0.24-beta
4 years ago
1.0.24-beta2
4 years ago
1.0.24-beta3
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago