starmine-login
TypeScript icon, indicating that this package has built-in type declarations

1.4.7 • Public • Published

starmine-login

NPM JavaScript Style Guide

Install

npm install --save starmine-login

yarn add starmine-login

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i starmine-login

Weekly Downloads

9

Version

1.4.7

License

MIT

Unpacked Size

497 kB

Total Files

33

Last publish

Collaborators

  • inkkk0516
  • cc_2015
  • bugfix2019