qlfy-ecological-login 1.0.0

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.
Binary file
package/lib/index.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ /** 导出组件 */
2
+ export declare const qlfyEcologicalLogin: import('vue').DefineComponent<import('.').qlfyEcologicalLoginProps, {
3
+ logout: typeof import('.').logout;
4
+ getToken: typeof import('.').getToken;
5
+ getLoginInfo: typeof import('./components/qlfyEcologicalLogin/tools').getLoginInfo;
6
+ getUserPermission: typeof import('.').getUserPermission;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ loggingIn: (params: {
9
+ code: string | string[];
10
+ grant_type: string;
11
+ state: number;
12
+ }) => any;
13
+ loginSuccess: (loginInfo: {
14
+ [x: string]: any;
15
+ }) => any;
16
+ tokenChange: (loginInfo: {
17
+ [x: string]: any;
18
+ }) => any;
19
+ }, string, import('vue').PublicProps, Readonly<import('.').qlfyEcologicalLoginProps> & Readonly<{
20
+ onLoggingIn?: (params: {
21
+ code: string | string[];
22
+ grant_type: string;
23
+ state: number;
24
+ }) => any;
25
+ onLoginSuccess?: (loginInfo: {
26
+ [x: string]: any;
27
+ }) => any;
28
+ onTokenChange?: (loginInfo: {
29
+ [x: string]: any;
30
+ }) => any;
31
+ }>, {
32
+ isEnabled: boolean;
33
+ listenToken: boolean;
34
+ redirectPath: string;
35
+ tokenName: string;
36
+ refreshInterval: number;
37
+ tokenValidity: number;
38
+ tenantId: number;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
+ /** 组件参数、事件接口 */
41
+ export type { Prop as qlfyEcologicalLoginProps, Emits } from './components/qlfyEcologicalLogin/data';
42
+ /** 导出工具 */
43
+ export { logout, getToken, getUserPermission } from './components/qlfyEcologicalLogin/tools';
44
+ /** localStorage */
45
+ export * as LocalStorageManager from './components/qlfyEcologicalLogin/LocalStorageManager';
46
+ /** 默认导出install注册方法 */
47
+ declare const _default: {
48
+ install(app: any): void;
49
+ };
50
+ export default _default;