halo-mobile 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -0
- package/dist/Autocomplete-XXlWKdZ7.js +26 -0
- package/dist/Autocomplete-Yvl0RCLc.js +64 -0
- package/dist/CSharp-KyLMHymK.js +26 -0
- package/dist/Cascader-PzpVQ7AB.js +40 -0
- package/dist/Cascader-YLS04_2K.js +48 -0
- package/dist/Checkbox-T3g7wr0e.js +102 -0
- package/dist/Checkbox-xtKe1aWq.js +26 -0
- package/dist/Code-EYCtRAN7.js +4 -0
- package/dist/Code-Kt2CerlI.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js +50 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-tCrm737u.js +29 -0
- package/dist/Color-iWLZHYMu.js +33 -0
- package/dist/Color-tf48GpkC.js +30 -0
- package/dist/Copy-c0RFSh48.js +35 -0
- package/dist/Date-PIiMOa7G.js +75 -0
- package/dist/Date-ZvcltpXD.js +26 -0
- package/dist/DateRange-UGAw4vvX.js +38 -0
- package/dist/DateRange-u_NTVOsq.js +29 -0
- package/dist/DateTimeRange-XMx5BSsY.js +60 -0
- package/dist/Datetime-9uSognrF.js +68 -0
- package/dist/Datetime-yUYlyiVe.js +26 -0
- package/dist/Decimal-64RFuThb.js +26 -0
- package/dist/Decimal-hbTpK8HG.js +53 -0
- package/dist/Dictionary-9wRln3ML.js +4 -0
- package/dist/Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js +33 -0
- package/dist/Email-Y2RZC3Pp.js +29 -0
- package/dist/Email-sXlLv1De.js +35 -0
- package/dist/Index--r9hKHmH.js +4 -0
- package/dist/Index-DpwKrUS5.js +4 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-IyVPMbcI.js +41 -0
- package/dist/Int-cJfYzdCu.js +28 -0
- package/dist/Int-ctDLC_Su.js +47 -0
- package/dist/Int-fJBASDM7.js +29 -0
- package/dist/Json-BFAMwsfX.js +28 -0
- package/dist/Json-gCo-Zdv_.js +26 -0
- package/dist/Month-B_1hI-Rh.js +72 -0
- package/dist/MySql-enArT5D7.js +30 -0
- package/dist/MySql-vcBpsfvo.js +26 -0
- package/dist/Normal-KRIGE5xc.js +31 -0
- package/dist/Password-R6_k-rn2.js +29 -0
- package/dist/Password-pOFH57lW.js +47 -0
- package/dist/Progress-cjSNkpkZ.js +34 -0
- package/dist/Progress-dvuJ1mVx.js +27 -0
- package/dist/Radio-MgtZXxhO.js +38 -0
- package/dist/Radio-NLiXdnr7.js +26 -0
- package/dist/Rate-8Ojfu4Pl.js +28 -0
- package/dist/Rate-tlqTCUfE.js +45 -0
- package/dist/RichText-7YHU6ukx.js +7558 -0
- package/dist/RichText-YQxC6ync.js +53 -0
- package/dist/RichText-chshsG49.js +27 -0
- package/dist/Select-BSzLsx0C.js +26 -0
- package/dist/Select-HdlI6DWS.js +69 -0
- package/dist/Select-fY1P8Gei.js +71 -0
- package/dist/Sql-Ww3tPZxu.js +26 -0
- package/dist/Switch-jHDDXeAv.js +35 -0
- package/dist/Switch-xgpu_bmM.js +26 -0
- package/dist/Table-xOt0TEu7.js +52 -0
- package/dist/Text-4hfe8ACo.js +40 -0
- package/dist/Text-CznHk-ab.js +4 -0
- package/dist/Text-dPJvVg8h.js +27 -0
- package/dist/Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js +29 -0
- package/dist/Textarea-1xTv6tuq.js +27 -0
- package/dist/Textarea-CX_-wFIg.js +29 -0
- package/dist/Textarea-hxjW3zKV.js +38 -0
- package/dist/Time-U_PlgRNm.js +35 -0
- package/dist/Upload-6otTjgzq.js +54 -0
- package/dist/Upload-N-FekeJG.js +82 -0
- package/dist/Year-W5E5x4fI.js +73 -0
- package/dist/main-GfL1Y5aJ.js +30973 -0
- package/dist/main.d.ts +329 -0
- package/dist/main.js +38 -0
- package/dist/style.css +15 -0
- package/package.json +48 -0
package/dist/main.d.ts
ADDED
@@ -0,0 +1,329 @@
|
|
1
|
+
import { App } from 'vue';
|
2
|
+
import { ComponentOptionsMixin } from 'vue';
|
3
|
+
import { DefineComponent } from 'vue';
|
4
|
+
import { DialogAction } from 'vant/lib/dialog/types';
|
5
|
+
import { ExtractPropTypes } from 'vue';
|
6
|
+
import { I18n } from 'vue-i18n';
|
7
|
+
import { PublicProps } from 'vue';
|
8
|
+
import { Router } from 'vue-router';
|
9
|
+
import { StoreDefinition } from 'pinia';
|
10
|
+
|
11
|
+
declare let app: App<Element>;
|
12
|
+
export default app;
|
13
|
+
|
14
|
+
export declare class ComponentService {
|
15
|
+
static getName: (url: string, prefix: string) => string;
|
16
|
+
static getPartialName: (path: any, defaultName: any) => any;
|
17
|
+
}
|
18
|
+
|
19
|
+
export declare class ControlService {
|
20
|
+
static getValue: (form: any, index: any, table: any, field: any) => any;
|
21
|
+
static setValue: (val: any, form: any, table: any, index: any, field: any) => void;
|
22
|
+
}
|
23
|
+
|
24
|
+
export declare class DomHelper {
|
25
|
+
static addClass: (dom: any, cls: any, choice?: any) => void;
|
26
|
+
static removeClass: (dom: any, cls: any) => void;
|
27
|
+
static addStyle(dom: any, prop: any, value: any): void;
|
28
|
+
static isEllipsis: (selector: any) => boolean;
|
29
|
+
static getText: (html: any) => string;
|
30
|
+
}
|
31
|
+
|
32
|
+
export declare class DriverHelper {
|
33
|
+
static getSso(type: string): ISso;
|
34
|
+
static getSigner(type: string): ISigner;
|
35
|
+
}
|
36
|
+
|
37
|
+
export declare class EncryptHelper {
|
38
|
+
static base64Encode: (content: any) => any;
|
39
|
+
static base64Decode: (encoded: any) => any;
|
40
|
+
static md5: (content: any, toLower?: boolean) => any;
|
41
|
+
}
|
42
|
+
|
43
|
+
export declare class EventHelper {
|
44
|
+
static scroll: (dom: any, func: any) => void;
|
45
|
+
static removeScroll: (dom: any, func: any) => void;
|
46
|
+
static click: (dom: any, func: any) => void;
|
47
|
+
static removeClick: (dom: any, func: any) => void;
|
48
|
+
static bind: (events: any, dom: any, func: any) => void;
|
49
|
+
static removeBind: (events: any, dom: any, func: any) => void;
|
50
|
+
}
|
51
|
+
|
52
|
+
export declare class FileHelper {
|
53
|
+
static getExtension: (name: any) => any;
|
54
|
+
static isExcel: (name: any) => boolean;
|
55
|
+
static isImage: (url: any) => boolean;
|
56
|
+
}
|
57
|
+
|
58
|
+
export declare const HoLayout: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
59
|
+
|
60
|
+
export declare const HoPage: DefineComponent<{
|
61
|
+
url: {
|
62
|
+
type: StringConstructor;
|
63
|
+
required: true;
|
64
|
+
};
|
65
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
66
|
+
loaded: (...args: any[]) => void;
|
67
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
68
|
+
url: {
|
69
|
+
type: StringConstructor;
|
70
|
+
required: true;
|
71
|
+
};
|
72
|
+
}>> & {
|
73
|
+
onLoaded?: (...args: any[]) => any;
|
74
|
+
}, {}, {}>;
|
75
|
+
|
76
|
+
export declare class HtmlHelper {
|
77
|
+
static getText: (value: any) => any;
|
78
|
+
}
|
79
|
+
|
80
|
+
export declare class HttpService {
|
81
|
+
static get(url: string, params?: any, headers?: object): Promise<any>;
|
82
|
+
static post(url: string, data: any): Promise<any>;
|
83
|
+
}
|
84
|
+
|
85
|
+
export declare class I18nHelper {
|
86
|
+
static getBrowserLanguage: () => "zh" | "en";
|
87
|
+
static getCurrentLanguage: () => string;
|
88
|
+
}
|
89
|
+
|
90
|
+
declare interface ISigner {
|
91
|
+
type: string;
|
92
|
+
open(auth: {
|
93
|
+
url: string;
|
94
|
+
app_id: string;
|
95
|
+
}): void;
|
96
|
+
loginUrl(callback: string): string;
|
97
|
+
callback(token: string): void;
|
98
|
+
getSign(userId: string, url: string, body: object, timestamp: number, secret: string): string;
|
99
|
+
dispose(): any;
|
100
|
+
}
|
101
|
+
|
102
|
+
declare interface ISso {
|
103
|
+
type: string;
|
104
|
+
open(auth: {
|
105
|
+
url: string;
|
106
|
+
app_id: string;
|
107
|
+
}): void;
|
108
|
+
login(form: any): Promise<any>;
|
109
|
+
loginUrl(callback_url: string): string;
|
110
|
+
getUser(): {
|
111
|
+
userId: string;
|
112
|
+
token: string;
|
113
|
+
secret: string;
|
114
|
+
};
|
115
|
+
getAuthorization(token: string, timestamp: number, signature: string): string;
|
116
|
+
logout(): any;
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* 键盘工具类
|
121
|
+
*/
|
122
|
+
export declare class KeyboardUtility {
|
123
|
+
}
|
124
|
+
|
125
|
+
export declare class MessageHelper {
|
126
|
+
static success: (message: string) => void;
|
127
|
+
static info: (message: string) => void;
|
128
|
+
static error: (message: string) => void;
|
129
|
+
static confirm: (title: string, message?: string) => Promise<DialogAction>;
|
130
|
+
static dialog: (title: string, message: string) => void;
|
131
|
+
static notify: (title: string, message: string, type: string) => void;
|
132
|
+
static toast: (message: string) => void;
|
133
|
+
}
|
134
|
+
|
135
|
+
export declare class MountHelper {
|
136
|
+
static emit: (event: string, payload: any) => void;
|
137
|
+
static emits: (events: any) => void;
|
138
|
+
}
|
139
|
+
|
140
|
+
export declare class PageService {
|
141
|
+
static setTitle: (title: string) => void;
|
142
|
+
static pageCount: (count: number, pageSize: number) => number;
|
143
|
+
}
|
144
|
+
|
145
|
+
export declare let SettingService: any;
|
146
|
+
|
147
|
+
export declare class StandardHelper {
|
148
|
+
static getRows: (fields: any[], column: number) => any[];
|
149
|
+
static getDefaultRow: (table: any) => {};
|
150
|
+
static expandSearch: (schema: any[]) => any[];
|
151
|
+
static expandSchema: (schema: any[]) => any[];
|
152
|
+
static expandData: (schema: any[], data: object) => object;
|
153
|
+
static getConditionForm: (schema: any[], condition: string) => {};
|
154
|
+
}
|
155
|
+
|
156
|
+
export declare class StorageHelper {
|
157
|
+
static get: (key: any, value?: any) => any;
|
158
|
+
static set: (key: any, value: any) => void;
|
159
|
+
static getObject: (key: any) => any;
|
160
|
+
static setObject: (key: any, value: any) => void;
|
161
|
+
static remove: (key: any) => void;
|
162
|
+
static getLeftStorage: () => number;
|
163
|
+
static canStorage: (value: any) => boolean;
|
164
|
+
}
|
165
|
+
|
166
|
+
export declare class StringHelper {
|
167
|
+
static getUniqueId: () => string;
|
168
|
+
static getTextFromHtml: (html: string) => string;
|
169
|
+
static padStart: (input: string, length: number, pad: string) => string;
|
170
|
+
static trimStart: (input: string, trim: string) => string;
|
171
|
+
static trimEnd: (input: string, trim: string) => string;
|
172
|
+
static trim: (input: string, start: string, end: string) => string;
|
173
|
+
}
|
174
|
+
|
175
|
+
export declare class TimeHelper {
|
176
|
+
static getTimestamp: () => number;
|
177
|
+
static getTime: (str: any) => Date;
|
178
|
+
static format: (value: any, format: any) => string;
|
179
|
+
static getDateTimeString: () => string;
|
180
|
+
static getTimeString: () => string;
|
181
|
+
static formatDateTime: (value: any) => string;
|
182
|
+
static formatTime: (value: any) => string;
|
183
|
+
static formatYear: (value: any) => string;
|
184
|
+
static formatMonth: (value: any) => string;
|
185
|
+
static formatDate: (value: any) => string;
|
186
|
+
static addDays: (value: any, days: any) => string;
|
187
|
+
static addMonths: (value: any, months: any) => string;
|
188
|
+
static isWeekend: (value: any) => boolean;
|
189
|
+
}
|
190
|
+
|
191
|
+
export declare class Timer {
|
192
|
+
duration: number;
|
193
|
+
startTime: number;
|
194
|
+
constructor(duration: number);
|
195
|
+
done(handler: Function): void;
|
196
|
+
}
|
197
|
+
|
198
|
+
export declare class TreeHelper {
|
199
|
+
static getById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
200
|
+
static getByIds: (ids: any[], idProp: string, tree: any[], childProp: string) => any[];
|
201
|
+
static getNextById: (id: any, idProp: any, tree: any, childProp: any) => any;
|
202
|
+
static getSiblingsById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
203
|
+
static getParentById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
204
|
+
static getParentsById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
|
205
|
+
static getChildrenById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
|
206
|
+
static getChildren: (element: any, childProp: string, hasSelf?: boolean) => any[];
|
207
|
+
static searchTree: (keywords: string, tree: any[], childProp: string, searchProps: any) => any[];
|
208
|
+
static removeById: (id: any, idProp: string, tree: any[], childProp: string) => void;
|
209
|
+
static getFlat: (tree: any[], childProp: string) => any[];
|
210
|
+
static map: (tree: any[], prevChildProp: string, childProp: string, fun: Function) => any[];
|
211
|
+
}
|
212
|
+
|
213
|
+
export declare class TypeHelper {
|
214
|
+
static isString: (input: any) => boolean;
|
215
|
+
static isObject: (input: any) => boolean;
|
216
|
+
static isArray: (input: any) => boolean;
|
217
|
+
}
|
218
|
+
|
219
|
+
export declare class UrlHelper {
|
220
|
+
static getM(url: string): any;
|
221
|
+
static getToUrl(url: string, withReturnUrl?: boolean): string;
|
222
|
+
static getLastSegment(url: string): string;
|
223
|
+
static getQueryParam(url: string, key: string): string;
|
224
|
+
static getPath(url: string): string;
|
225
|
+
static to: (route: any, $router: any, $route: any) => any;
|
226
|
+
static toQuery: (obj: object) => any;
|
227
|
+
static getRoute: (url: string, query?: any) => {
|
228
|
+
path: string;
|
229
|
+
query: any;
|
230
|
+
};
|
231
|
+
static getUrl: (path: string, query: object) => string;
|
232
|
+
static getObjectFromQs(qs: string, decode?: boolean): {};
|
233
|
+
static getQsFromObject(obj: object): string;
|
234
|
+
static default: (obj: object) => {
|
235
|
+
default: any;
|
236
|
+
};
|
237
|
+
static condition: (obj: object) => {
|
238
|
+
condition: any;
|
239
|
+
};
|
240
|
+
static httpOrHttps: (url: string) => boolean;
|
241
|
+
}
|
242
|
+
|
243
|
+
export declare let useAppStore: StoreDefinition<"app", {
|
244
|
+
env: {
|
245
|
+
base: any;
|
246
|
+
};
|
247
|
+
}, {}, {
|
248
|
+
useEnv(env: any): void;
|
249
|
+
useGlobal(app: any): void;
|
250
|
+
useRoutes(routes: object[]): void;
|
251
|
+
useComponents(app: any, components: any, replace: any, prefix: any): void;
|
252
|
+
useComponent(app: any, components: any): void;
|
253
|
+
}>;
|
254
|
+
|
255
|
+
export declare let useComponentStore: StoreDefinition<"component", {
|
256
|
+
comps: any[];
|
257
|
+
}, {}, {
|
258
|
+
add(app: any, cpns: any): void;
|
259
|
+
init(app: any): void;
|
260
|
+
register(app: any, components: object, replace: string, prefix: string): void;
|
261
|
+
getComponent(url: string, prefix: string, _default?: string): any;
|
262
|
+
}>;
|
263
|
+
|
264
|
+
export declare let useConfigStore: StoreDefinition<"config", {
|
265
|
+
background: any;
|
266
|
+
layout: string;
|
267
|
+
theme: string;
|
268
|
+
language: string;
|
269
|
+
font: string;
|
270
|
+
}, {}, {
|
271
|
+
init(configs: any[]): void;
|
272
|
+
getLocalConfig(type: string): any;
|
273
|
+
}>;
|
274
|
+
|
275
|
+
export declare const useI18nStore: StoreDefinition<"i18n", {
|
276
|
+
i18n: I18n<{}, {}, {}, string, true>;
|
277
|
+
loadedLocales: any[];
|
278
|
+
}, {}, {
|
279
|
+
t(key: string, options?: any): any;
|
280
|
+
$t_menu(key: string, options?: any): any;
|
281
|
+
$t_module(type: string, key: string, options?: any): string;
|
282
|
+
$t_table(table: string, options?: any): any;
|
283
|
+
$t_field(table: string, field: string, options?: any): any;
|
284
|
+
$t_enum(name: string, value: string, options?: any): any;
|
285
|
+
$t_field_placeholder(table: string, field: string, options?: any): any;
|
286
|
+
$t_field_choose_placeholder(table: string, field: string, options?: any): any;
|
287
|
+
$t_sys(key: string, options?: any): any;
|
288
|
+
loadI18n(lang: string): Promise<void>;
|
289
|
+
switchI18n(lang: string): Promise<void>;
|
290
|
+
}>;
|
291
|
+
|
292
|
+
export declare let useRouterStore: StoreDefinition<"router", {
|
293
|
+
router: Router;
|
294
|
+
}, {}, {
|
295
|
+
to(url: string, withReturnUrl?: boolean): string;
|
296
|
+
addRoutes(routes: object[]): void;
|
297
|
+
}>;
|
298
|
+
|
299
|
+
export declare const useSettingStore: StoreDefinition<"setting", {
|
300
|
+
loaded: boolean;
|
301
|
+
background: any;
|
302
|
+
layout: string;
|
303
|
+
theme: string;
|
304
|
+
language: string;
|
305
|
+
font: string;
|
306
|
+
home: any;
|
307
|
+
sso: {
|
308
|
+
url: any;
|
309
|
+
appId: any;
|
310
|
+
};
|
311
|
+
}, {}, {
|
312
|
+
getSetting(): Promise<any>;
|
313
|
+
}>;
|
314
|
+
|
315
|
+
export declare const useUserStore: StoreDefinition<"user", {
|
316
|
+
user: any;
|
317
|
+
menus: any;
|
318
|
+
menusFlat: any;
|
319
|
+
}, {}, {
|
320
|
+
getSso(): any;
|
321
|
+
getInfo(): Promise<any>;
|
322
|
+
getAnonymous(): Promise<void>;
|
323
|
+
getMenus(lang: string): Promise<any>;
|
324
|
+
getMenuByUrl(url: string): any[];
|
325
|
+
getAuthorization(url: string, data: any): string;
|
326
|
+
logout(): void;
|
327
|
+
}>;
|
328
|
+
|
329
|
+
export { }
|
package/dist/main.js
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
import './style.css';
|
2
|
+
import { n as a, C as t, D as o, e as p, i as l, E as H, F as S, w as i, x as n, j as u, H as m, I as g, K as v, M as c, l as d, P as y, o as C, f as T, k as f, S as U, b as D, m as E, T as I, a as M, U as P, d as b, p as x, q as F, r as K, v as j, s as k, u as q, t as w } from "./main-GfL1Y5aJ.js";
|
3
|
+
import "vue";
|
4
|
+
export {
|
5
|
+
a as ComponentService,
|
6
|
+
t as ControlService,
|
7
|
+
o as DomHelper,
|
8
|
+
p as DriverHelper,
|
9
|
+
l as EncryptHelper,
|
10
|
+
H as EventHelper,
|
11
|
+
S as FileHelper,
|
12
|
+
i as HoLayout,
|
13
|
+
n as HoPage,
|
14
|
+
u as HtmlHelper,
|
15
|
+
m as HttpService,
|
16
|
+
g as I18nHelper,
|
17
|
+
v as KeyboardUtility,
|
18
|
+
c as MessageHelper,
|
19
|
+
d as MountHelper,
|
20
|
+
y as PageService,
|
21
|
+
C as SettingService,
|
22
|
+
T as StandardHelper,
|
23
|
+
f as StorageHelper,
|
24
|
+
U as StringHelper,
|
25
|
+
D as TimeHelper,
|
26
|
+
E as Timer,
|
27
|
+
I as TreeHelper,
|
28
|
+
M as TypeHelper,
|
29
|
+
P as UrlHelper,
|
30
|
+
b as default,
|
31
|
+
x as useAppStore,
|
32
|
+
F as useComponentStore,
|
33
|
+
K as useConfigStore,
|
34
|
+
j as useI18nStore,
|
35
|
+
k as useRouterStore,
|
36
|
+
q as useSettingStore,
|
37
|
+
w as useUserStore
|
38
|
+
};
|