-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
746 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# Auth 鉴权 | ||
|
||
## Props | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ||
| :---- | :------------------------------------------------------------------------ | :------------- | :----- | :----- | | ||
| value | 权限数据,如果传入为 array 时,匹配到其中一项则鉴权通过,并显示 slot 内容 | array / string | - | - | | ||
|
||
## Slots | ||
|
||
| name | 说明 | | ||
| :--- | :------------------- | | ||
| - | 需要鉴权的 HTML 内容 | | ||
# Auth 鉴权 | ||
|
||
## Props | ||
|
||
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ||
| :---- | :------------------------------------------------------- | :------------- | :----- | :----- | | ||
| value | 权限数据,可传入单个或一组需要验证的权限数据 | array / string | - | - | | ||
| all | 是否验证全部权限数据,默认匹配中其中一项则判定为鉴权成功 | boolean | - | false | | ||
|
||
## Slots | ||
|
||
| name | 说明 | | ||
| :------ | :------------------- | | ||
| - | 鉴权成功显示的 HTML 内容 | | ||
| no-auth | 鉴权失败显示的 HTML 内容 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.