1.2.3 • Published 9 months ago

lcap-login v1.2.3

Weekly downloads
45
License
MIT
Repository
-
Last release
9 months ago

LcapLogin 登录

runtime

账号与权限中心的统一认证登录组件

示例

基本用法

<lcap-login   useGithub></lcap-login>

工行登录

<lcap-login   useIcbc hasUserCenter></lcap-login>

API

Props/Attrs

Prop/AttrTypeOptionsDefaultDescription
useRedirectbooleanfalse是否开启登录页。若关闭登录页,请选择跳转登录配置,否则会影响应用的登录和权限控制
mainLoginTypesobjectArray[\[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\]]账号密码登录类型
subLoginTypesobjectArray[\[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\]]跳转登录类型
redirectLoginTypesobjectArray[\[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\]]跳转登录配置

Events

@success

登录成功后触发

ParamTypeDescription
$event.Authorizationstring登录成功后为用户颁发的 AccessToken
$event.UserIdstring用户 ID
$event.UserNamestring用户名
$event.Messagestring登录成功的信息

@error

登录失败后触发

ParamTypeDescription
$event.Messagestring登录失败的信息

Methods

jumpAuthPass()

跳转第三方登录页面

ParamTypeDefaultDescription

jumpAuth(type)

跳转第三方登录页面

ParamTypeDefaultDescription
typestring''第三方登录类型

login(account, password)

使用账号密码登录

ParamTypeDefaultDescription
accountstring''账号
passwordstring''密码
1.2.3

9 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.7

2 years ago

1.1.2-beta2

2 years ago

1.1.5

2 years ago

1.1.2-beta1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.14

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.1.0

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.3.6

3 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago