通用登录组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
logo |
string |
<optional> |
logo地址 |
|
title |
string |
<optional> |
标题文本 |
|
pki |
boolean |
<optional> |
显示pki按钮 |
|
transparent |
boolean |
<optional> |
透明背景 |
|
width |
string |
<optional> |
400px
|
宽度 |
keyMap |
object |
<optional> |
字段映射 {account,password} |
|
login |
function |
<optional> |
登录函数,必须要返回Promise |
|
center |
boolean |
<optional> |
居中 |
|
accountPlaceholder |
string |
<optional> |
登录账号
|
|
passwordPlaceholder |
string |
<optional> |
登录密码
|
|
rules |
Object |
<optional> |
表单验证配置 |
属性参数, 继承 el-card 全部属性参数
(inner) slots
- Source:
Properties:
Name | Type | Description |
---|---|---|
logo |
string | 定义logo |
title |
string | 定义标题 |
extra |
string | 表单额外内容 |
footer |
string | 底部内容 |
插槽
Methods
(inner) submit()
- Source:
提交表单
Events
pki
- Source:
点击PKI按钮时触发
submit
- Source:
表单提交时触发
Parameters:
Name | Type | Description |
---|---|---|
model |
提交数据 |
success
- Source:
登录成功时触发
Parameters:
Name | Type | Description |
---|---|---|
res |
成功响应数据 |
success
- Source:
登录失败时触发
Parameters:
Name | Type | Description |
---|---|---|
e |
错误信息 |