qlfy-ecological-login 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/qlfyEcologicalLogin/data.d.ts +2 -5
- package/lib/components/qlfyEcologicalLogin/index.vue.d.ts +1 -0
- package/lib/components/qlfyEcologicalLogin/tools.d.ts +2 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.mjs +163 -157
- package/lib/index.mjs.gz +0 -0
- package/lib/index.umd.js +6 -6
- package/lib/index.umd.js.gz +0 -0
- package/package.json +1 -1
|
@@ -2,11 +2,6 @@ import { DialogProps } from 'element-plus';
|
|
|
2
2
|
/** 响应式数据对象 */
|
|
3
3
|
export declare class Data {
|
|
4
4
|
}
|
|
5
|
-
export interface LoginInfo {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
access_token: string;
|
|
8
|
-
outLogin?: boolean;
|
|
9
|
-
}
|
|
10
5
|
export interface Prop {
|
|
11
6
|
/** 应用id,平台提供*/
|
|
12
7
|
clientId: string;
|
|
@@ -18,6 +13,8 @@ export interface Prop {
|
|
|
18
13
|
loginServiceBaseAddress: string;
|
|
19
14
|
/** 路由对象 */
|
|
20
15
|
useRouter: any;
|
|
16
|
+
/** 登陆模式 */
|
|
17
|
+
loginMode?: 'part' | 'global';
|
|
21
18
|
/** 传入token则使用外部token */
|
|
22
19
|
token?: string;
|
|
23
20
|
/** 是否启用组件,支持动态控制,非必填*/
|
|
@@ -4,6 +4,8 @@ export declare const componentState: any;
|
|
|
4
4
|
export declare function logout(): any;
|
|
5
5
|
/** 获取统一登陆token */
|
|
6
6
|
export declare function getToken(): any;
|
|
7
|
+
/** 获取统一登陆token */
|
|
8
|
+
export declare function getRefreshToken(): any;
|
|
7
9
|
/** 方法 -- 跳转至登陆页 */
|
|
8
10
|
export declare function goLogin(): void;
|
|
9
11
|
/**
|
package/lib/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const qlfyEcologicalLogin: import('vue').DefineComponent<import('
|
|
|
15
15
|
}) => any;
|
|
16
16
|
}>, {
|
|
17
17
|
dialogConfig: Partial<import('element-plus').DialogProps>;
|
|
18
|
+
loginMode: "part" | "global";
|
|
18
19
|
isEnabled: boolean;
|
|
19
20
|
listenToken: boolean;
|
|
20
21
|
redirectPath: string;
|
|
@@ -25,7 +26,7 @@ export declare const qlfyEcologicalLogin: import('vue').DefineComponent<import('
|
|
|
25
26
|
/** 组件参数、事件接口 */
|
|
26
27
|
export type { Prop as qlfyEcologicalLoginProps, Emits } from './components/qlfyEcologicalLogin/data';
|
|
27
28
|
/** 导出工具 */
|
|
28
|
-
export { logout, getToken, getUserPermission } from './components/qlfyEcologicalLogin/tools';
|
|
29
|
+
export { logout, getToken, getRefreshToken, getUserPermission } from './components/qlfyEcologicalLogin/tools';
|
|
29
30
|
/** 导出密码弹窗操作方法 */
|
|
30
31
|
export { openChangePassword, closeChangePassword, setDialogConfig } from './components/qlfyEcologicalLogin/tools';
|
|
31
32
|
/** localStorage */
|