@witlink/components 0.0.4 → 1.0.1
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/README.md +23 -12
- package/dist/index.cjs +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +437 -102
- package/dist/index.js +1147 -100
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +100 -89
- package/dist/utils.js +136 -119
- package/package.json +14 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,140 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { ComponentInternalInstance } from 'vue';
|
|
2
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
3
4
|
import { ComponentProvideOptions } from 'vue';
|
|
4
5
|
import { DefineComponent } from 'vue';
|
|
6
|
+
import { MessageInstance } from 'ant-design-vue/es/message/interface';
|
|
7
|
+
import { ModalFunc } from 'ant-design-vue/es/modal/confirm';
|
|
8
|
+
import { NotificationInstance } from 'ant-design-vue/es/notification/interface';
|
|
5
9
|
import { ObjectDirective } from 'vue';
|
|
6
10
|
import { PublicProps } from 'vue';
|
|
7
11
|
|
|
8
12
|
declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
13
|
+
precision: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
};
|
|
16
|
+
stringMode: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
customControls: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
type: globalThis.PropType<any>;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
change: (...args: any[]) => void;
|
|
29
|
+
"update:value": (value: any) => void;
|
|
30
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
31
|
+
precision: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
};
|
|
34
|
+
stringMode: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
customControls: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
value: {
|
|
43
|
+
type: globalThis.PropType<any>;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
onChange?: (...args: any[]) => any;
|
|
47
|
+
"onUpdate:value"?: (value: any) => any;
|
|
48
|
+
}>, {
|
|
49
|
+
stringMode: boolean;
|
|
50
|
+
customControls: boolean;
|
|
51
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
|
|
53
|
+
declare const __VLS_component_2: DefineComponent<globalThis.ExtractPropTypes<{
|
|
54
|
+
value: {};
|
|
55
|
+
max: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
maxUnit: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
min: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
minUnit: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
interval: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
76
|
+
change: (...args: any[]) => void;
|
|
77
|
+
"update:value": (...args: any[]) => void;
|
|
78
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
79
|
+
value: {};
|
|
80
|
+
max: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
maxUnit: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
min: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
minUnit: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
interval: {
|
|
97
|
+
type: NumberConstructor;
|
|
98
|
+
default: number;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
onChange?: (...args: any[]) => any;
|
|
102
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
103
|
+
}>, {
|
|
104
|
+
min: number;
|
|
105
|
+
max: number;
|
|
106
|
+
maxUnit: string;
|
|
107
|
+
minUnit: string;
|
|
108
|
+
interval: number;
|
|
109
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
110
|
+
|
|
111
|
+
declare const __VLS_component_3: DefineComponent<globalThis.ExtractPropTypes<{
|
|
112
|
+
loadData: {
|
|
113
|
+
type: FunctionConstructor;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
formatSortParams: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
}>, {
|
|
121
|
+
loadData: typeof loadData;
|
|
122
|
+
refresh: typeof refresh;
|
|
123
|
+
reset: typeof reset;
|
|
124
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
125
|
+
loadData: {
|
|
126
|
+
type: FunctionConstructor;
|
|
127
|
+
required: true;
|
|
128
|
+
};
|
|
129
|
+
formatSortParams: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
}>> & Readonly<{}>, {
|
|
134
|
+
formatSortParams: boolean;
|
|
135
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
136
|
+
|
|
137
|
+
declare const __VLS_component_4: DefineComponent<globalThis.ExtractPropTypes<{
|
|
9
138
|
leftMin: {
|
|
10
139
|
type: NumberConstructor;
|
|
11
140
|
default: number;
|
|
@@ -14,6 +143,10 @@ leftMax: {
|
|
|
14
143
|
type: NumberConstructor;
|
|
15
144
|
default: number;
|
|
16
145
|
};
|
|
146
|
+
bordered: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
17
150
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
151
|
leftMin: {
|
|
19
152
|
type: NumberConstructor;
|
|
@@ -23,7 +156,12 @@ leftMax: {
|
|
|
23
156
|
type: NumberConstructor;
|
|
24
157
|
default: number;
|
|
25
158
|
};
|
|
159
|
+
bordered: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
26
163
|
}>> & Readonly<{}>, {
|
|
164
|
+
bordered: boolean;
|
|
27
165
|
leftMin: number;
|
|
28
166
|
leftMax: number;
|
|
29
167
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
@@ -31,7 +169,18 @@ container: HTMLDivElement;
|
|
|
31
169
|
spliter: HTMLDivElement;
|
|
32
170
|
}, HTMLDivElement>;
|
|
33
171
|
|
|
34
|
-
declare function __VLS_template():
|
|
172
|
+
declare function __VLS_template(): any;
|
|
173
|
+
|
|
174
|
+
declare function __VLS_template_2(): {
|
|
175
|
+
attrs: Partial<{}>;
|
|
176
|
+
slots: any;
|
|
177
|
+
refs: {};
|
|
178
|
+
rootEl: any;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
declare function __VLS_template_3(): any;
|
|
182
|
+
|
|
183
|
+
declare function __VLS_template_4(): {
|
|
35
184
|
attrs: Partial<{}>;
|
|
36
185
|
slots: {
|
|
37
186
|
left?(_: {}): any;
|
|
@@ -46,153 +195,339 @@ declare function __VLS_template(): {
|
|
|
46
195
|
|
|
47
196
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
48
197
|
|
|
198
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
199
|
+
|
|
200
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
201
|
+
|
|
202
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
203
|
+
|
|
49
204
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
205
|
new (): {
|
|
51
206
|
$slots: S;
|
|
52
207
|
};
|
|
53
208
|
};
|
|
54
209
|
|
|
55
|
-
declare
|
|
56
|
-
|
|
210
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
211
|
+
new (): {
|
|
212
|
+
$slots: S;
|
|
213
|
+
};
|
|
57
214
|
};
|
|
58
|
-
export default _default;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* 下载文件
|
|
62
|
-
*/
|
|
63
|
-
export declare function exportFile(options: {
|
|
64
|
-
fileData: any;
|
|
65
|
-
name: string;
|
|
66
|
-
}): void;
|
|
67
|
-
|
|
68
|
-
export declare function getButtonPermissions(): any;
|
|
69
215
|
|
|
70
|
-
|
|
216
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
217
|
+
new (): {
|
|
218
|
+
$slots: S;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
71
221
|
|
|
72
|
-
|
|
222
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
223
|
+
new (): {
|
|
224
|
+
$slots: S;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
73
227
|
|
|
74
|
-
export declare
|
|
228
|
+
export declare const AInputNumberEx: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
75
229
|
|
|
76
|
-
export declare
|
|
230
|
+
export declare const ARangePickerEx: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
77
231
|
|
|
78
|
-
export declare
|
|
232
|
+
export declare const ATableEx: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
79
233
|
|
|
80
|
-
|
|
234
|
+
/**
|
|
235
|
+
* 构造树型结构数据
|
|
236
|
+
* @param arr 数据源
|
|
237
|
+
* @param options { id: "id", parentId: "parentId", children: "children", root: "" }
|
|
238
|
+
*/
|
|
239
|
+
export declare function buildTree(arr: any, options?: any): any;
|
|
81
240
|
|
|
82
|
-
|
|
241
|
+
/**
|
|
242
|
+
* a-col的指令版
|
|
243
|
+
*/
|
|
244
|
+
export declare const col: ObjectDirective;
|
|
83
245
|
|
|
84
|
-
|
|
246
|
+
/**
|
|
247
|
+
* useClipboard的指令版
|
|
248
|
+
*/
|
|
249
|
+
export declare const copy: ObjectDirective;
|
|
85
250
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
export
|
|
251
|
+
declare const _default: {
|
|
252
|
+
install: typeof install;
|
|
253
|
+
};
|
|
254
|
+
export default _default;
|
|
90
255
|
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export declare function
|
|
256
|
+
/**
|
|
257
|
+
* 下载文件
|
|
258
|
+
*/
|
|
259
|
+
export declare function exportFile(fileData: any, fileName: string): void;
|
|
95
260
|
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
261
|
+
/**
|
|
262
|
+
* 遍历树结构数据
|
|
263
|
+
* @param treeData 树型数据
|
|
264
|
+
* @param fn 回调方法
|
|
265
|
+
*/
|
|
266
|
+
export declare function forEachTree<T>(treeData: Array<T>, fn: (item: T) => void): void;
|
|
100
267
|
|
|
101
|
-
|
|
102
|
-
* @description: 是否为boolean类型
|
|
103
|
-
*/
|
|
104
|
-
export declare function isBoolean(val: unknown): val is boolean;
|
|
268
|
+
export declare function getButtonPermissions(): any;
|
|
105
269
|
|
|
106
|
-
|
|
107
|
-
* @description: 是否客户端
|
|
108
|
-
*/
|
|
109
|
-
export declare const isClient: () => boolean;
|
|
270
|
+
export declare function getLocale(): string | null;
|
|
110
271
|
|
|
111
|
-
|
|
112
|
-
* @description: 是否为时间
|
|
113
|
-
*/
|
|
114
|
-
export declare function isDate(val: unknown): val is Date;
|
|
272
|
+
export declare function getMenuInfo(): any;
|
|
115
273
|
|
|
116
|
-
|
|
117
|
-
* @description: 是否已定义
|
|
118
|
-
*/
|
|
119
|
-
export declare const isDef: <T = unknown>(val?: T) => val is T;
|
|
274
|
+
export declare function getToken(): string | null;
|
|
120
275
|
|
|
121
|
-
export declare
|
|
276
|
+
export declare function getUserCenterParams(): UserCenterParams;
|
|
122
277
|
|
|
123
|
-
|
|
124
|
-
* @description: 是否为函数
|
|
125
|
-
*/
|
|
126
|
-
export declare function isFunction<T = Function>(val: unknown): val is T;
|
|
278
|
+
export declare function getUserCenterParamsByUrl(): Record<string, string>;
|
|
127
279
|
|
|
128
|
-
export declare function
|
|
280
|
+
export declare function getUserInfo(key?: string | Array<string> | null): any;
|
|
129
281
|
|
|
130
|
-
export declare function
|
|
282
|
+
export declare function hasPermission(id: string): boolean;
|
|
131
283
|
|
|
132
|
-
|
|
284
|
+
/**
|
|
285
|
+
* input限制输入,v-inputlimit:letterNumber 或者 v-inputlimit="/^\w$/"
|
|
286
|
+
*/
|
|
287
|
+
export declare const inputlimit: ObjectDirective;
|
|
133
288
|
|
|
134
|
-
|
|
135
|
-
* @description: 是否为数值
|
|
136
|
-
*/
|
|
137
|
-
export declare function isNumber(val: unknown): val is number;
|
|
289
|
+
declare function install(app: App): void;
|
|
138
290
|
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
export declare
|
|
291
|
+
/**
|
|
292
|
+
* @description: 判断值是否未某个类型
|
|
293
|
+
*/
|
|
294
|
+
export declare function is(val: unknown, type: string): boolean;
|
|
143
295
|
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
export declare function
|
|
296
|
+
/**
|
|
297
|
+
* @description: 是否为数组
|
|
298
|
+
*/
|
|
299
|
+
export declare function isArray(val: any): val is Array<any>;
|
|
148
300
|
|
|
149
|
-
|
|
301
|
+
/**
|
|
302
|
+
* @description: 是否为AsyncFunction
|
|
303
|
+
*/
|
|
304
|
+
export declare function isAsyncFunction<T = any>(val: unknown): val is Promise<T>;
|
|
150
305
|
|
|
151
|
-
/**
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
export declare function
|
|
306
|
+
/**
|
|
307
|
+
* @description: 是否为boolean类型
|
|
308
|
+
*/
|
|
309
|
+
export declare function isBoolean(val: unknown): val is boolean;
|
|
155
310
|
|
|
156
|
-
|
|
311
|
+
/**
|
|
312
|
+
* @description: 是否客户端
|
|
313
|
+
*/
|
|
314
|
+
export declare const isClient: () => boolean;
|
|
157
315
|
|
|
158
|
-
/**
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
export declare
|
|
316
|
+
/**
|
|
317
|
+
* @description: 是否为时间
|
|
318
|
+
*/
|
|
319
|
+
export declare function isDate(val: unknown): val is Date;
|
|
162
320
|
|
|
163
|
-
|
|
321
|
+
/**
|
|
322
|
+
* @description: 是否已定义
|
|
323
|
+
*/
|
|
324
|
+
export declare const isDef: <T = unknown>(val?: T) => val is T;
|
|
164
325
|
|
|
165
|
-
|
|
166
|
-
* 按钮级权限控制指令
|
|
167
|
-
*/
|
|
168
|
-
export declare const permission: ObjectDirective;
|
|
326
|
+
export declare const isElement: (val: unknown) => val is Element;
|
|
169
327
|
|
|
170
|
-
|
|
328
|
+
/**
|
|
329
|
+
* @description: 是否为函数
|
|
330
|
+
*/
|
|
331
|
+
export declare function isFunction<T = Function>(val: unknown): val is T;
|
|
171
332
|
|
|
172
|
-
export declare function
|
|
333
|
+
export declare function isImageDom(o: Element): boolean;
|
|
173
334
|
|
|
174
|
-
export declare function
|
|
335
|
+
export declare function isNull(val: unknown): val is null;
|
|
175
336
|
|
|
176
|
-
export declare function
|
|
337
|
+
export declare function isNullOrUndef(val: unknown): val is null | undefined;
|
|
177
338
|
|
|
178
|
-
|
|
339
|
+
/**
|
|
340
|
+
* @description: 是否为数值
|
|
341
|
+
*/
|
|
342
|
+
export declare function isNumber(val: unknown): val is number;
|
|
179
343
|
|
|
180
|
-
|
|
344
|
+
/**
|
|
345
|
+
* @description: 是否为对象
|
|
346
|
+
*/
|
|
347
|
+
export declare const isObject: (val: any) => val is Record<any, any>;
|
|
181
348
|
|
|
182
|
-
|
|
349
|
+
/**
|
|
350
|
+
* @description: 是否为promise
|
|
351
|
+
*/
|
|
352
|
+
export declare function isPromise<T = any>(val: any): val is Promise<T>;
|
|
183
353
|
|
|
184
|
-
export declare
|
|
354
|
+
export declare const isServer: boolean;
|
|
185
355
|
|
|
186
|
-
|
|
356
|
+
/**
|
|
357
|
+
* @description: 是否为字符串
|
|
358
|
+
*/
|
|
359
|
+
export declare function isString(val: unknown): val is string;
|
|
187
360
|
|
|
188
|
-
export declare const
|
|
361
|
+
export declare const isUndef: <T = unknown>(val?: T) => val is T;
|
|
189
362
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
};
|
|
363
|
+
/**
|
|
364
|
+
* @description: 是否为浏览器
|
|
365
|
+
*/
|
|
366
|
+
export declare const isWindow: (val: any) => val is Window;
|
|
195
367
|
|
|
196
|
-
|
|
368
|
+
declare function loadData(): void;
|
|
197
369
|
|
|
198
|
-
export
|
|
370
|
+
export declare function logoutToUserCenter(): void;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* 按钮级权限控制指令
|
|
374
|
+
*/
|
|
375
|
+
export declare const permission: ObjectDirective;
|
|
376
|
+
|
|
377
|
+
declare function refresh(): void;
|
|
378
|
+
|
|
379
|
+
export declare function removeAll(): void;
|
|
380
|
+
|
|
381
|
+
export declare function removeLocale(): void;
|
|
382
|
+
|
|
383
|
+
export declare function removeToken(): void;
|
|
384
|
+
|
|
385
|
+
declare function reset(): void;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* a-row的指令版
|
|
389
|
+
*/
|
|
390
|
+
export declare const row: ObjectDirective;
|
|
391
|
+
|
|
392
|
+
export declare function setLocale(locale: string): void;
|
|
393
|
+
|
|
394
|
+
export declare function setMenuInfo(menuInfo: any): void;
|
|
395
|
+
|
|
396
|
+
export declare function setToken(token: string): void;
|
|
397
|
+
|
|
398
|
+
export declare function setUserCenterParams(params: UserCenterParams): void;
|
|
399
|
+
|
|
400
|
+
export declare function setUserInfo(userInfo?: any): void;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* a-tooltip指令版,
|
|
404
|
+
* v-tooltip="'测试'", 一般用法
|
|
405
|
+
* v-tooltip.exceed="'测试'", 当内容超出绑定元素的宽度时显示
|
|
406
|
+
* v-tooltip="{enabled: true, content: '测试'}", 受控的是否启用
|
|
407
|
+
*/
|
|
408
|
+
export declare const tooltip: ObjectDirective;
|
|
409
|
+
|
|
410
|
+
export declare function toUserCenterConsole(): void;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* 获取ant-design-vue的ConfigProvider
|
|
414
|
+
*/
|
|
415
|
+
declare function useConfigProvider_2(instance?: any): any;
|
|
416
|
+
export { useConfigProvider_2 as useConfigProvider }
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* 根据名称获取父组件实例
|
|
420
|
+
*/
|
|
421
|
+
declare function useFindParent_2(name: string): ComponentInternalInstance;
|
|
422
|
+
export { useFindParent_2 as useFindParent }
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* ant-design-vue的modal,message,notification相关方法
|
|
426
|
+
*/
|
|
427
|
+
declare function useModal_2(): {
|
|
428
|
+
message: MessageInstance;
|
|
429
|
+
modal: {
|
|
430
|
+
info: ModalFunc;
|
|
431
|
+
success: ModalFunc;
|
|
432
|
+
error: ModalFunc;
|
|
433
|
+
warning: ModalFunc;
|
|
434
|
+
confirm: ModalFunc;
|
|
435
|
+
};
|
|
436
|
+
notification: NotificationInstance;
|
|
437
|
+
modalInput: ({ title, ...rest }: {
|
|
438
|
+
[x: string]: any;
|
|
439
|
+
title: any;
|
|
440
|
+
}) => any;
|
|
441
|
+
modalComp: ({ title, comp, props, ...rest }: {
|
|
442
|
+
[x: string]: any;
|
|
443
|
+
title: any;
|
|
444
|
+
comp: any;
|
|
445
|
+
props: any;
|
|
446
|
+
}) => any;
|
|
447
|
+
modalDestroy: () => void;
|
|
448
|
+
drawerComp: ({ title, comp, props, ...rest }: {
|
|
449
|
+
[x: string]: any;
|
|
450
|
+
title: any;
|
|
451
|
+
comp: any;
|
|
452
|
+
props: any;
|
|
453
|
+
}) => {
|
|
454
|
+
updateProps: (newProps: any) => void;
|
|
455
|
+
};
|
|
456
|
+
drawerDestroy: () => void;
|
|
457
|
+
};
|
|
458
|
+
export { useModal_2 as useModal }
|
|
459
|
+
|
|
460
|
+
export declare const UserCenterKey = "Witlink-Usercenter";
|
|
461
|
+
|
|
462
|
+
export declare type UserCenterParams = {
|
|
463
|
+
token?: string;
|
|
464
|
+
lang?: string;
|
|
465
|
+
usercenterUrl?: string;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* 动态导入assets下的资源文件
|
|
470
|
+
* useRequire(`g6/${img}.svg`)
|
|
471
|
+
*/
|
|
472
|
+
declare function useRequire_2(path: string): any;
|
|
473
|
+
export { useRequire_2 as useRequire }
|
|
474
|
+
|
|
475
|
+
export declare const WlNumberKeyboard: DefineComponent<globalThis.ExtractPropTypes<{
|
|
476
|
+
quickNums: {
|
|
477
|
+
type: ArrayConstructor;
|
|
478
|
+
default: () => number[];
|
|
479
|
+
};
|
|
480
|
+
min: {
|
|
481
|
+
type: NumberConstructor;
|
|
482
|
+
default: number;
|
|
483
|
+
};
|
|
484
|
+
max: {
|
|
485
|
+
type: NumberConstructor;
|
|
486
|
+
default: number;
|
|
487
|
+
};
|
|
488
|
+
precision: {
|
|
489
|
+
type: NumberConstructor;
|
|
490
|
+
default: number;
|
|
491
|
+
};
|
|
492
|
+
value: {
|
|
493
|
+
type: globalThis.PropType<string>;
|
|
494
|
+
};
|
|
495
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
496
|
+
enter: (...args: any[]) => void;
|
|
497
|
+
"update:value": (value: string) => void;
|
|
498
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
499
|
+
quickNums: {
|
|
500
|
+
type: ArrayConstructor;
|
|
501
|
+
default: () => number[];
|
|
502
|
+
};
|
|
503
|
+
min: {
|
|
504
|
+
type: NumberConstructor;
|
|
505
|
+
default: number;
|
|
506
|
+
};
|
|
507
|
+
max: {
|
|
508
|
+
type: NumberConstructor;
|
|
509
|
+
default: number;
|
|
510
|
+
};
|
|
511
|
+
precision: {
|
|
512
|
+
type: NumberConstructor;
|
|
513
|
+
default: number;
|
|
514
|
+
};
|
|
515
|
+
value: {
|
|
516
|
+
type: globalThis.PropType<string>;
|
|
517
|
+
};
|
|
518
|
+
}>> & Readonly<{
|
|
519
|
+
"onUpdate:value"?: (value: string) => any;
|
|
520
|
+
onEnter?: (...args: any[]) => any;
|
|
521
|
+
}>, {
|
|
522
|
+
precision: number;
|
|
523
|
+
min: number;
|
|
524
|
+
max: number;
|
|
525
|
+
quickNums: unknown[];
|
|
526
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
527
|
+
numberKeyboard: HTMLDivElement;
|
|
528
|
+
inputRef: unknown;
|
|
529
|
+
}, any>;
|
|
530
|
+
|
|
531
|
+
export declare const WlSplitter: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
532
|
+
|
|
533
|
+
export { }
|