jk-vue-comps 0.2.13 → 0.2.14
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/dist/src/components/GoogleAuth.d.ts +6 -6
- package/dist/src/components/TelegramAuth.d.ts +6 -6
- package/dist/src/hooks/useCopyToClipboard.d.ts +3 -4
- package/dist/src/index.d.ts +42 -45
- package/dist/src/utils/index.d.ts +3 -4
- package/package.json +1 -1
- package/dist/components/GoogleAuth.d.ts +0 -1
- package/dist/components/TelegramAuth.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useCopyToClipboard.d.ts +0 -1
- package/dist/hooks/useFormKeypressEnter.d.ts +0 -1
- package/dist/hooks/useMemo.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/is.d.ts +0 -1
- package/dist/utils/lodash.d.ts +0 -1
- package/dist/utils/math.d.ts +0 -1
- package/dist/utils/timeZone.d.ts +0 -1
- package/dist/utils/vuePropTypes.d.ts +0 -1
- package/dist/utils/withInstall.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
/** 跳转谷歌身份检查 */
|
|
3
3
|
export declare function toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
4
4
|
type GetPopupContainerFn = () => HTMLElement | Element;
|
|
@@ -21,7 +21,7 @@ declare const _comp_props: {
|
|
|
21
21
|
export type GoogleAuthProps = Partial<ExtractPropTypes<typeof _comp_props>>;
|
|
22
22
|
/** 谷歌身份检查 */
|
|
23
23
|
export declare const GoogleAuth: {
|
|
24
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
|
|
24
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
|
|
25
25
|
clientId: StringConstructor;
|
|
26
26
|
redirectUri: StringConstructor;
|
|
27
27
|
defaultLoad: BooleanConstructor;
|
|
@@ -36,7 +36,7 @@ export declare const GoogleAuth: {
|
|
|
36
36
|
onRejectCallback: {
|
|
37
37
|
type: PropType<(error: any) => void>;
|
|
38
38
|
};
|
|
39
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
39
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
40
40
|
P: {};
|
|
41
41
|
B: {};
|
|
42
42
|
D: {};
|
|
@@ -62,7 +62,7 @@ export declare const GoogleAuth: {
|
|
|
62
62
|
__isFragment?: never;
|
|
63
63
|
__isTeleport?: never;
|
|
64
64
|
__isSuspense?: never;
|
|
65
|
-
} & ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
|
|
65
|
+
} & import('vue').ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
|
|
66
66
|
clientId: StringConstructor;
|
|
67
67
|
redirectUri: StringConstructor;
|
|
68
68
|
defaultLoad: BooleanConstructor;
|
|
@@ -77,7 +77,7 @@ export declare const GoogleAuth: {
|
|
|
77
77
|
onRejectCallback: {
|
|
78
78
|
type: PropType<(error: any) => void>;
|
|
79
79
|
};
|
|
80
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
80
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
81
81
|
readonly toGoogleAuth: typeof toGoogleAuth;
|
|
82
|
-
} & Plugin;
|
|
82
|
+
} & import('vue').Plugin;
|
|
83
83
|
export default GoogleAuth;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
/** 跳转Telegram身份检查 */
|
|
3
3
|
export declare function toTelegramAuth(botId: number, toPath: string): void;
|
|
4
4
|
/** 获取路由中的Telegram身份检查回调参数 */
|
|
@@ -31,7 +31,7 @@ declare const _comp_props: {
|
|
|
31
31
|
export type TelegramAuthProps = Partial<ExtractPropTypes<typeof _comp_props>>;
|
|
32
32
|
/** Telegram身份检查 */
|
|
33
33
|
export declare const TelegramAuth: {
|
|
34
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
|
|
34
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<ExtractPropTypes<{
|
|
35
35
|
botId: NumberConstructor;
|
|
36
36
|
toPath: StringConstructor;
|
|
37
37
|
defaultLoad: BooleanConstructor;
|
|
@@ -44,7 +44,7 @@ export declare const TelegramAuth: {
|
|
|
44
44
|
onRejectCallback: {
|
|
45
45
|
type: PropType<() => void>;
|
|
46
46
|
};
|
|
47
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
47
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
48
48
|
P: {};
|
|
49
49
|
B: {};
|
|
50
50
|
D: {};
|
|
@@ -68,7 +68,7 @@ export declare const TelegramAuth: {
|
|
|
68
68
|
__isFragment?: never;
|
|
69
69
|
__isTeleport?: never;
|
|
70
70
|
__isSuspense?: never;
|
|
71
|
-
} & ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
|
|
71
|
+
} & import('vue').ComponentOptionsBase<Readonly<Partial<ExtractPropTypes<{
|
|
72
72
|
botId: NumberConstructor;
|
|
73
73
|
toPath: StringConstructor;
|
|
74
74
|
defaultLoad: BooleanConstructor;
|
|
@@ -81,8 +81,8 @@ export declare const TelegramAuth: {
|
|
|
81
81
|
onRejectCallback: {
|
|
82
82
|
type: PropType<() => void>;
|
|
83
83
|
};
|
|
84
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
84
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
85
85
|
readonly toTelegramAuth: typeof toTelegramAuth;
|
|
86
86
|
readonly getTelegramAuthUrlParams: typeof getTelegramAuthUrlParams;
|
|
87
|
-
} & Plugin;
|
|
87
|
+
} & import('vue').Plugin;
|
|
88
88
|
export default TelegramAuth;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
1
|
export declare function useCopyToClipboard(initial?: string): {
|
|
3
|
-
clipboardRef: Ref<string, string>;
|
|
4
|
-
isSuccessRef: Ref<boolean, boolean>;
|
|
5
|
-
copiedRef: Ref<boolean, boolean>;
|
|
2
|
+
clipboardRef: import('vue').Ref<string, string>;
|
|
3
|
+
isSuccessRef: import('vue').Ref<boolean, boolean>;
|
|
4
|
+
copiedRef: import('vue').Ref<boolean, boolean>;
|
|
6
5
|
};
|
|
7
6
|
export declare function copyTextToClipboard(input: string, { target }?: {
|
|
8
7
|
target?: HTMLElement;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { VNode, RendererNode, RendererElement, Plugin, Ref, WatchSource, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
-
import { BigNumber } from 'bignumber.js';
|
|
3
|
-
import { default as __DTS_DEFAULT_0__ } from './utils/vuePropTypes';
|
|
4
1
|
import * as Comps from './components';
|
|
5
2
|
import * as Hooks from './hooks';
|
|
6
3
|
import * as Utils from './utils';
|
|
@@ -14,11 +11,11 @@ declare const JKVUEComps: {
|
|
|
14
11
|
evalPro(str: string): any;
|
|
15
12
|
filterInputNum(eventVal: string | number, type?: "int" | "float", maxDecimal?: number): string;
|
|
16
13
|
generateFilterInputNumFn<T extends Recordable, K extends keyof T>(obj: T, key: K, fn?: () => void, type?: "float" | "int", maxDecimal?: number): (e: ChangeEvent) => void;
|
|
17
|
-
renderHtmlStr(html: string): string | VNode<RendererNode, RendererElement, {
|
|
14
|
+
renderHtmlStr(html: string): string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
18
15
|
[key: string]: any;
|
|
19
16
|
}>;
|
|
20
17
|
getWebsiteUrl(): string;
|
|
21
|
-
getRouterParams():
|
|
18
|
+
getRouterParams(): any;
|
|
22
19
|
removeWhitespace(str: any): string;
|
|
23
20
|
deepMerge<T = any>(src?: any, target?: any): T;
|
|
24
21
|
desensitization(str?: string | number, number?: number, { showPrefix, showSuffix, middleStr }?: {
|
|
@@ -27,7 +24,7 @@ declare const JKVUEComps: {
|
|
|
27
24
|
middleStr?: string;
|
|
28
25
|
}): string | undefined;
|
|
29
26
|
toStyleUnit(str?: string | number | null, unit?: string): string | undefined;
|
|
30
|
-
toStyleObject(style?: string | Recordable | null):
|
|
27
|
+
toStyleObject(style?: string | Recordable | null): any;
|
|
31
28
|
is(val: unknown, type: string): boolean;
|
|
32
29
|
isDef<T = unknown>(val?: T): val is T;
|
|
33
30
|
isUnDef<T = unknown>(val?: T): val is T;
|
|
@@ -69,7 +66,7 @@ declare const JKVUEComps: {
|
|
|
69
66
|
isEqualTo(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
|
|
70
67
|
isGreaterThanOrEqualTo(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
|
|
71
68
|
isLessThanOrEqualTo(num1: Utils.BigNumVal, num2: Utils.BigNumVal): boolean;
|
|
72
|
-
toBigNum(val: Utils.BigNumValType): BigNumber;
|
|
69
|
+
toBigNum(val: Utils.BigNumValType): import('bignumber.js').BigNumber;
|
|
73
70
|
toNum(val: Utils.BigNumValType): number;
|
|
74
71
|
toInt(val: Utils.BigNumValType, isUp?: boolean): number;
|
|
75
72
|
toString(val: Utils.BigNumValType): string;
|
|
@@ -84,143 +81,143 @@ declare const JKVUEComps: {
|
|
|
84
81
|
unFormatRate(val: Utils.BigNumValType): number;
|
|
85
82
|
DOWN: 1;
|
|
86
83
|
UP: 0;
|
|
87
|
-
BigNumber: BigNumber;
|
|
84
|
+
BigNumber: typeof import('bignumber.js').BigNumber;
|
|
88
85
|
gt: typeof Utils.isGreaterThan;
|
|
89
86
|
gte: typeof Utils.isGreaterThanOrEqualTo;
|
|
90
87
|
lt: typeof Utils.isLessThan;
|
|
91
88
|
lte: typeof Utils.isLessThanOrEqualTo;
|
|
92
89
|
eq: typeof Utils.isEqualTo;
|
|
93
90
|
isNan: typeof Utils.isNanValue;
|
|
94
|
-
propTypes:
|
|
91
|
+
propTypes: typeof import('./utils/vuePropTypes').default;
|
|
95
92
|
timeZoneOptions: Utils.TimeZoneItem[];
|
|
96
|
-
withInstall<T>(component: T, alias?: string): T & Plugin;
|
|
93
|
+
withInstall<T>(component: T, alias?: string): T & import('vue').Plugin;
|
|
97
94
|
useCopyToClipboard(initial?: string): {
|
|
98
|
-
clipboardRef: Ref<string, string>;
|
|
99
|
-
isSuccessRef: Ref<boolean, boolean>;
|
|
100
|
-
copiedRef: Ref<boolean, boolean>;
|
|
95
|
+
clipboardRef: import('vue').Ref<string, string>;
|
|
96
|
+
isSuccessRef: import('vue').Ref<boolean, boolean>;
|
|
97
|
+
copiedRef: import('vue').Ref<boolean, boolean>;
|
|
101
98
|
};
|
|
102
99
|
copyTextToClipboard(input: string, { target }?: {
|
|
103
100
|
target?: HTMLElement;
|
|
104
101
|
}): boolean;
|
|
105
|
-
useFormKeypressEnter<T extends (...args: any[]) => any, L extends WatchSource<boolean>>(fn: T, loading: L): (...args: any[]) => any;
|
|
106
|
-
useMemo<T>(getValue: () => T, condition: (
|
|
102
|
+
useFormKeypressEnter<T extends (...args: any[]) => any, L extends import('vue').WatchSource<boolean>>(fn: T, loading: L): (...args: any[]) => any;
|
|
103
|
+
useMemo<T>(getValue: () => T, condition: (import('vue').WatchSource<unknown> | object)[], shouldUpdate?: (prev: any[], next: any[]) => boolean): import('vue').Ref<T, T>;
|
|
107
104
|
toGoogleAuth(clientId: string, redirectUri: string): void;
|
|
108
105
|
GoogleAuth: {
|
|
109
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<
|
|
106
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<import('vue').ExtractPropTypes<{
|
|
110
107
|
clientId: StringConstructor;
|
|
111
108
|
redirectUri: StringConstructor;
|
|
112
109
|
defaultLoad: BooleanConstructor;
|
|
113
110
|
getPopupContainer: {
|
|
114
|
-
type: PropType<() => HTMLElement | Element>;
|
|
111
|
+
type: import('vue').PropType<() => HTMLElement | Element>;
|
|
115
112
|
};
|
|
116
113
|
onCallback: {
|
|
117
|
-
type: PropType<(data: {
|
|
114
|
+
type: import('vue').PropType<(data: {
|
|
118
115
|
code: string;
|
|
119
116
|
}) => void>;
|
|
120
117
|
};
|
|
121
118
|
onRejectCallback: {
|
|
122
|
-
type: PropType<(error: any) => void>;
|
|
119
|
+
type: import('vue').PropType<(error: any) => void>;
|
|
123
120
|
};
|
|
124
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
121
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
125
122
|
P: {};
|
|
126
123
|
B: {};
|
|
127
124
|
D: {};
|
|
128
125
|
C: {};
|
|
129
126
|
M: {};
|
|
130
127
|
Defaults: {};
|
|
131
|
-
}, Readonly<Partial<
|
|
128
|
+
}, Readonly<Partial<import('vue').ExtractPropTypes<{
|
|
132
129
|
clientId: StringConstructor;
|
|
133
130
|
redirectUri: StringConstructor;
|
|
134
131
|
defaultLoad: BooleanConstructor;
|
|
135
132
|
getPopupContainer: {
|
|
136
|
-
type: PropType<() => HTMLElement | Element>;
|
|
133
|
+
type: import('vue').PropType<() => HTMLElement | Element>;
|
|
137
134
|
};
|
|
138
135
|
onCallback: {
|
|
139
|
-
type: PropType<(data: {
|
|
136
|
+
type: import('vue').PropType<(data: {
|
|
140
137
|
code: string;
|
|
141
138
|
}) => void>;
|
|
142
139
|
};
|
|
143
140
|
onRejectCallback: {
|
|
144
|
-
type: PropType<(error: any) => void>;
|
|
141
|
+
type: import('vue').PropType<(error: any) => void>;
|
|
145
142
|
};
|
|
146
143
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
147
144
|
__isFragment?: never;
|
|
148
145
|
__isTeleport?: never;
|
|
149
146
|
__isSuspense?: never;
|
|
150
|
-
} & ComponentOptionsBase<Readonly<Partial<
|
|
147
|
+
} & import('vue').ComponentOptionsBase<Readonly<Partial<import('vue').ExtractPropTypes<{
|
|
151
148
|
clientId: StringConstructor;
|
|
152
149
|
redirectUri: StringConstructor;
|
|
153
150
|
defaultLoad: BooleanConstructor;
|
|
154
151
|
getPopupContainer: {
|
|
155
|
-
type: PropType<() => HTMLElement | Element>;
|
|
152
|
+
type: import('vue').PropType<() => HTMLElement | Element>;
|
|
156
153
|
};
|
|
157
154
|
onCallback: {
|
|
158
|
-
type: PropType<(data: {
|
|
155
|
+
type: import('vue').PropType<(data: {
|
|
159
156
|
code: string;
|
|
160
157
|
}) => void>;
|
|
161
158
|
};
|
|
162
159
|
onRejectCallback: {
|
|
163
|
-
type: PropType<(error: any) => void>;
|
|
160
|
+
type: import('vue').PropType<(error: any) => void>;
|
|
164
161
|
};
|
|
165
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
162
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
166
163
|
readonly toGoogleAuth: typeof Comps.toGoogleAuth;
|
|
167
|
-
} & Plugin;
|
|
164
|
+
} & import('vue').Plugin;
|
|
168
165
|
toTelegramAuth(botId: number, toPath: string): void;
|
|
169
166
|
getTelegramAuthUrlParams(): Comps.TgUserData | null;
|
|
170
167
|
TelegramAuth: {
|
|
171
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<
|
|
168
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<Partial<import('vue').ExtractPropTypes<{
|
|
172
169
|
botId: NumberConstructor;
|
|
173
170
|
toPath: StringConstructor;
|
|
174
171
|
defaultLoad: BooleanConstructor;
|
|
175
172
|
getPopupContainer: {
|
|
176
|
-
type: PropType<() => HTMLElement | Element>;
|
|
173
|
+
type: import('vue').PropType<() => HTMLElement | Element>;
|
|
177
174
|
};
|
|
178
175
|
onCallback: {
|
|
179
|
-
type: PropType<(user: Comps.TgUserData) => void>;
|
|
176
|
+
type: import('vue').PropType<(user: Comps.TgUserData) => void>;
|
|
180
177
|
};
|
|
181
178
|
onRejectCallback: {
|
|
182
|
-
type: PropType<() => void>;
|
|
179
|
+
type: import('vue').PropType<() => void>;
|
|
183
180
|
};
|
|
184
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
181
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
185
182
|
P: {};
|
|
186
183
|
B: {};
|
|
187
184
|
D: {};
|
|
188
185
|
C: {};
|
|
189
186
|
M: {};
|
|
190
187
|
Defaults: {};
|
|
191
|
-
}, Readonly<Partial<
|
|
188
|
+
}, Readonly<Partial<import('vue').ExtractPropTypes<{
|
|
192
189
|
botId: NumberConstructor;
|
|
193
190
|
toPath: StringConstructor;
|
|
194
191
|
defaultLoad: BooleanConstructor;
|
|
195
192
|
getPopupContainer: {
|
|
196
|
-
type: PropType<() => HTMLElement | Element>;
|
|
193
|
+
type: import('vue').PropType<() => HTMLElement | Element>;
|
|
197
194
|
};
|
|
198
195
|
onCallback: {
|
|
199
|
-
type: PropType<(user: Comps.TgUserData) => void>;
|
|
196
|
+
type: import('vue').PropType<(user: Comps.TgUserData) => void>;
|
|
200
197
|
};
|
|
201
198
|
onRejectCallback: {
|
|
202
|
-
type: PropType<() => void>;
|
|
199
|
+
type: import('vue').PropType<() => void>;
|
|
203
200
|
};
|
|
204
201
|
}>>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
205
202
|
__isFragment?: never;
|
|
206
203
|
__isTeleport?: never;
|
|
207
204
|
__isSuspense?: never;
|
|
208
|
-
} & ComponentOptionsBase<Readonly<Partial<
|
|
205
|
+
} & import('vue').ComponentOptionsBase<Readonly<Partial<import('vue').ExtractPropTypes<{
|
|
209
206
|
botId: NumberConstructor;
|
|
210
207
|
toPath: StringConstructor;
|
|
211
208
|
defaultLoad: BooleanConstructor;
|
|
212
209
|
getPopupContainer: {
|
|
213
|
-
type: PropType<() => HTMLElement | Element>;
|
|
210
|
+
type: import('vue').PropType<() => HTMLElement | Element>;
|
|
214
211
|
};
|
|
215
212
|
onCallback: {
|
|
216
|
-
type: PropType<(user: Comps.TgUserData) => void>;
|
|
213
|
+
type: import('vue').PropType<(user: Comps.TgUserData) => void>;
|
|
217
214
|
};
|
|
218
215
|
onRejectCallback: {
|
|
219
|
-
type: PropType<() => void>;
|
|
216
|
+
type: import('vue').PropType<() => void>;
|
|
220
217
|
};
|
|
221
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
218
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
222
219
|
readonly toTelegramAuth: typeof Comps.toTelegramAuth;
|
|
223
220
|
readonly getTelegramAuthUrlParams: typeof Comps.getTelegramAuthUrlParams;
|
|
224
|
-
} & Plugin;
|
|
221
|
+
} & import('vue').Plugin;
|
|
225
222
|
};
|
|
226
223
|
export default JKVUEComps;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
2
1
|
export * from './is';
|
|
3
2
|
export * from './math';
|
|
4
3
|
export * from './vuePropTypes';
|
|
@@ -21,13 +20,13 @@ export declare function filterInputNum(eventVal: string | number, type?: 'int' |
|
|
|
21
20
|
*/
|
|
22
21
|
export declare function generateFilterInputNumFn<T extends Recordable, K extends keyof T>(obj: T, key: K, fn?: () => void, type?: 'float' | 'int', maxDecimal?: number): (e: ChangeEvent) => void;
|
|
23
22
|
/** 渲染Html字符串片段 */
|
|
24
|
-
export declare function renderHtmlStr(html: string): string | VNode<RendererNode, RendererElement, {
|
|
23
|
+
export declare function renderHtmlStr(html: string): string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
25
24
|
[key: string]: any;
|
|
26
25
|
}>;
|
|
27
26
|
/** 获取当前网站协议+域名 */
|
|
28
27
|
export declare function getWebsiteUrl(): string;
|
|
29
28
|
/** 获取路由参数 */
|
|
30
|
-
export declare function getRouterParams():
|
|
29
|
+
export declare function getRouterParams(): any;
|
|
31
30
|
/** 去除字符串里的所有空字符 */
|
|
32
31
|
export declare function removeWhitespace(str: any): string;
|
|
33
32
|
/** 深度合并 */
|
|
@@ -52,4 +51,4 @@ export declare function desensitization(str?: string | number, number?: number,
|
|
|
52
51
|
*/
|
|
53
52
|
export declare function toStyleUnit(str?: string | number | null, unit?: string): string | undefined;
|
|
54
53
|
/** 数字转为样式对象 */
|
|
55
|
-
export declare function toStyleObject(style?: string | Recordable | null):
|
|
54
|
+
export declare function toStyleObject(style?: string | Recordable | null): any;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/hooks/useMemo.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/utils/is.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/utils/lodash.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/utils/math.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/utils/timeZone.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|