1.0.5 • Published 2 years ago
wxq-compon v1.0.5
wxq-custom v1.0.5
多项目私有/公共组件、更新的测试实践。
安装
$ yarn add wxq-compon # or npm i wxq-compon -S
案例使用详情
1. $ git clone https://gitee.com/OKingWeb/wxq-example.git
2. 访问 https://gitee.com/OKingWeb/wxq-example ,手动下载并解压
组件说明
- 请安装packjson里面的环境,(未merge到包内)
- 组件需要放入Routes 组件内,(基于react-router)
- 登录账户:姓名--admin 密码--admin@123
入参说明
{
toPath: 'string' // react-router, 跳转页路由
animationType: 1, // 二维码动画方式,目前支持 1,2,3
isShowWellcome: true, // 是否开启欢迎特效
verificationCodeType: 1, // 验证码方式,待扩展,目前仅支持滑动旋转
password:{
encryption:2, // 加密方式;1.对称加密,2.非对称加密
AESpublicKey: '123', // 对称加密公钥,非对称已默认生成密钥对
},
sign:{
isOpen: true, // 是否开启接口签名,防篡改。开启后请求头参数X-Wxq-With-Sign可见。配置采用非对称单次请求有效的方式
signKeys:[ randomKey,params,data,headers,url,publicKey], // 默认配置,仅展示
},
validateUrl: { // 验证地址
isStrict: false, // 安全策略严格,只能从固定的url获取资源
url: '', // 已默认配置 post 入参为{username: string,password: string}
},
logo: 'string', // (url)二维码logo图片,资源地址
}
解释
该项目为个人构建demo, 仅限测试使用
问题及建议
请联系 kingimgal@outlook.com
License
UNLICENSED