starmine-login
v1.4.7
Published
Made with create-react-library
Readme
starmine-login
Install
npm install --save starmine-login
yarn add starmine-loginUsage
import React, { Component } from 'react'
import Login from 'starmine-login'
class Example extends Component {
render() {
return <Login />
}
}需传入参数
| 方法名称 | 描述 | | ---- | ---- | | wxAuthLoginAction | 微信授权登录 | | wxloginAction | 打开微信授权链接 | | getCaptchaCode(phone: string) | 获取验证码 | | mobileLoginAction(phone: string, code: string) | 手机号登录处理 |
暴露的参数
配合 ref 使用
| 方法名称 | 描述 | | ---- | ---- | | troggleMobile(flag: boolean) | 显示隐藏手机号登录 | | setErrorMsg | 设置手机号登录错误提示 |
License
MIT © zhoubin
