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