qlfy-ecological-login 1.0.8 → 1.0.10

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.
@@ -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
  /** 是否启用组件,支持动态控制,非必填*/
@@ -31,7 +28,6 @@ export interface Prop {
31
28
  /** token有效期,单位秒,非必填*/
32
29
  tokenValidity?: number;
33
30
  /** 租户id */
34
- tenantId?: number;
35
31
  /** 修改密码弹窗自定义设置 */
36
32
  dialogConfig?: Partial<DialogProps>;
37
33
  }
@@ -17,11 +17,11 @@ declare const _default: import('vue').DefineComponent<Prop, {
17
17
  }) => any;
18
18
  }>, {
19
19
  dialogConfig: Partial<DialogProps>;
20
+ loginMode: "part" | "global";
20
21
  isEnabled: boolean;
21
22
  listenToken: boolean;
22
23
  redirectPath: string;
23
24
  tokenName: string;
24
25
  tokenValidity: number;
25
- tenantId: number;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
27
  export default _default;
@@ -16,7 +16,7 @@ export declare function goLogin(): void;
16
16
  * @param {string} redirectUrl 重定向地址
17
17
  * @returns {string}
18
18
  */
19
- export declare function getLoginUrl(loginPageBaseAddress: string, clientId: string, clientSecret: string, tenantId: string, redirectUrl?: string): string;
19
+ export declare function getLoginUrl(loginPageBaseAddress: string, clientId: string, clientSecret: string, redirectUrl?: string): string;
20
20
  export declare function generateUUID(): string;
21
21
  export declare function getUserPermission(): any;
22
22
  /** ----------------------- 密码弹窗 ---------------------- */
package/lib/index.d.ts CHANGED
@@ -15,12 +15,12 @@ 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;
21
22
  tokenName: string;
22
23
  tokenValidity: number;
23
- tenantId: number;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  /** 组件参数、事件接口 */
26
26
  export type { Prop as qlfyEcologicalLoginProps, Emits } from './components/qlfyEcologicalLogin/data';