@fox-js/foxui-pc 4.0.1-2 → 4.0.1-21
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/index.cjs.js +4 -4
- package/dist/index.esm.js +4624 -2889
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +514 -59
- package/package.json +4 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AllowedComponentProps } from 'vue';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
import { clone } from '@fox-js/fox';
|
|
4
3
|
import { compareTo } from '@fox-js/big-decimal';
|
|
5
4
|
import type { ComponentCustomProps } from 'vue';
|
|
6
5
|
import { ComponentInternalInstance } from 'vue';
|
|
@@ -10,28 +9,106 @@ import type { ComputedOptions } from 'vue';
|
|
|
10
9
|
import type { DefineComponent } from 'vue';
|
|
11
10
|
import { divide } from '@fox-js/big-decimal';
|
|
12
11
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
12
|
+
import { ElAffix as FoxAffix } from 'element-plus';
|
|
13
|
+
import { ElAlert as FoxAlert } from 'element-plus';
|
|
14
|
+
import { ElAside as FoxAside } from 'element-plus';
|
|
15
|
+
import { ElAutocomplete as FoxAutocomplete } from 'element-plus';
|
|
16
|
+
import { ElAutoResizer as FoxAutoResizer } from 'element-plus';
|
|
17
|
+
import { ElAvatar as FoxAvatar } from 'element-plus';
|
|
18
|
+
import { ElBacktop as FoxBacktop } from 'element-plus';
|
|
19
|
+
import { ElBadge as FoxBadge } from 'element-plus';
|
|
20
|
+
import { ElBreadcrumb as FoxBreadcrumb } from 'element-plus';
|
|
21
|
+
import { ElBreadcrumbItem as FoxBreadcrumbItem } from 'element-plus';
|
|
22
|
+
import { ElButton as FoxButton } from 'element-plus';
|
|
23
|
+
import { ElButtonGroup as FoxButtonGroup } from 'element-plus';
|
|
24
|
+
import { ElCalendar as FoxCalendar } from 'element-plus';
|
|
25
|
+
import { ElCard as FoxCard } from 'element-plus';
|
|
26
|
+
import { ElCarousel as FoxCarousel } from 'element-plus';
|
|
27
|
+
import { ElCarouselItem as FoxCarouselItem } from 'element-plus';
|
|
28
|
+
import { ElCascader as FoxCascader } from 'element-plus';
|
|
29
|
+
import { ElCascaderPanel as FoxCascaderPanel } from 'element-plus';
|
|
30
|
+
import { ElCheckbox as FoxCheckbox } from 'element-plus';
|
|
31
|
+
import { ElCheckboxButton as FoxCheckboxButton } from 'element-plus';
|
|
32
|
+
import { ElCheckboxGroup as FoxCheckboxGroup } from 'element-plus';
|
|
33
|
+
import { ElCheckTag as FoxCheckTag } from 'element-plus';
|
|
34
|
+
import { ElCol as FoxCol } from 'element-plus';
|
|
35
|
+
import { ElCollapse as FoxCollapse } from 'element-plus';
|
|
36
|
+
import { ElCollapseItem as FoxCollapseItem } from 'element-plus';
|
|
37
|
+
import { ElCollapseTransition as FoxCollapseTransition } from 'element-plus';
|
|
38
|
+
import { ElColorPicker as FoxColorPicker } from 'element-plus';
|
|
39
|
+
import { ElConfigProvider as FoxConfigProvider } from 'element-plus';
|
|
40
|
+
import { ElContainer as FoxContainer } from 'element-plus';
|
|
41
|
+
import { ElDatePicker as FoxDatePicker } from 'element-plus';
|
|
42
|
+
import { ElDescriptions as FoxDescriptions } from 'element-plus';
|
|
43
|
+
import { ElDescriptionsItem as FoxDescriptionsItem } from 'element-plus';
|
|
44
|
+
import { ElDialog as FoxDialog } from 'element-plus';
|
|
45
|
+
import { ElDivider as FoxDivider } from 'element-plus';
|
|
46
|
+
import { ElDrawer as FoxDrawer } from 'element-plus';
|
|
47
|
+
import { ElDropdown as FoxDropdown } from 'element-plus';
|
|
48
|
+
import { ElDropdownItem as FoxDropdownItem } from 'element-plus';
|
|
49
|
+
import { ElDropdownMenu as FoxDropdownMenu } from 'element-plus';
|
|
50
|
+
import { ElEmpty as FoxEmpty } from 'element-plus';
|
|
51
|
+
import { ElFooter as FoxFooter } from 'element-plus';
|
|
52
|
+
import { ElForm as FoxForm } from 'element-plus';
|
|
53
|
+
import { ElFormItem as FoxFormItem } from 'element-plus';
|
|
54
|
+
import { ElHeader as FoxHeader } from 'element-plus';
|
|
55
|
+
import { ElIcon as FoxIcon } from 'element-plus';
|
|
56
|
+
import { ElImage as FoxImage } from 'element-plus';
|
|
57
|
+
import { ElImageViewer as FoxImageViewer } from 'element-plus';
|
|
58
|
+
import { ElInput as FoxInput } from 'element-plus';
|
|
59
|
+
import { ElInputNumber as FoxInputNumber } from 'element-plus';
|
|
60
|
+
import { ElLink as FoxLink } from 'element-plus';
|
|
61
|
+
import { ElMain as FoxMain } from 'element-plus';
|
|
62
|
+
import { ElMenu as FoxMenu } from 'element-plus';
|
|
63
|
+
import { ElMenuItem as FoxMenuItem } from 'element-plus';
|
|
64
|
+
import { ElMenuItemGroup as FoxMenuItemGroup } from 'element-plus';
|
|
65
|
+
import { ElOption as FoxOption } from 'element-plus';
|
|
66
|
+
import { ElOptionGroup as FoxOptionGroup } from 'element-plus';
|
|
67
|
+
import { ElPageHeader as FoxPageHeader } from 'element-plus';
|
|
68
|
+
import { ElPagination as FoxPagination } from 'element-plus';
|
|
69
|
+
import { ElPopconfirm as FoxPopconfirm } from 'element-plus';
|
|
70
|
+
import { ElPopover as FoxPopover } from 'element-plus';
|
|
71
|
+
import { ElPopper as FoxPopper } from 'element-plus';
|
|
72
|
+
import { ElProgress as FoxProgress } from 'element-plus';
|
|
73
|
+
import { ElRadio as FoxRadio } from 'element-plus';
|
|
74
|
+
import { ElRadioButton as FoxRadioButton } from 'element-plus';
|
|
75
|
+
import { ElRadioGroup as FoxRadioGroup } from 'element-plus';
|
|
76
|
+
import { ElRate as FoxRate } from 'element-plus';
|
|
77
|
+
import { ElResult as FoxResult } from 'element-plus';
|
|
78
|
+
import { ElRow as FoxRow } from 'element-plus';
|
|
79
|
+
import { ElScrollbar as FoxScrollbar } from 'element-plus';
|
|
80
|
+
import { ElSelect as FoxSelect } from 'element-plus';
|
|
81
|
+
import { ElSelectV2 as FoxSelectV2 } from 'element-plus';
|
|
82
|
+
import { ElSkeleton as FoxSkeleton } from 'element-plus';
|
|
83
|
+
import { ElSkeletonItem as FoxSkeletonItem } from 'element-plus';
|
|
84
|
+
import { ElSlider as FoxSlider } from 'element-plus';
|
|
85
|
+
import { ElSpace as FoxSpace } from 'element-plus';
|
|
86
|
+
import { ElStep as FoxStep } from 'element-plus';
|
|
87
|
+
import { ElSteps as FoxSteps } from 'element-plus';
|
|
88
|
+
import { ElSubMenu as FoxSubMenu } from 'element-plus';
|
|
89
|
+
import { ElSwitch as FoxSwitch } from 'element-plus';
|
|
90
|
+
import { ElTable as FoxTable } from 'element-plus';
|
|
91
|
+
import { ElTableColumn as FoxTableColumn } from 'element-plus';
|
|
92
|
+
import { ElTableV2 as FoxTableV2 } from 'element-plus';
|
|
93
|
+
import { ElTabPane as FoxTabPane } from 'element-plus';
|
|
94
|
+
import { ElTabs as FoxTabs } from 'element-plus';
|
|
95
|
+
import { ElTag as FoxTag } from 'element-plus';
|
|
96
|
+
import { ElTimeline as FoxTimeline } from 'element-plus';
|
|
97
|
+
import { ElTimelineItem as FoxTimelineItem } from 'element-plus';
|
|
98
|
+
import { ElTimePicker as FoxTimePicker } from 'element-plus';
|
|
99
|
+
import { ElTimeSelect as FoxTimeSelect } from 'element-plus';
|
|
100
|
+
import { ElTooltip as FoxTooltip } from 'element-plus';
|
|
101
|
+
import { ElTransfer as FoxTransfer } from 'element-plus';
|
|
102
|
+
import { ElTree as FoxTree } from 'element-plus';
|
|
103
|
+
import { ElTreeSelect as FoxTreeSelect } from 'element-plus';
|
|
104
|
+
import { ElTreeV2 as FoxTreeV2 } from 'element-plus';
|
|
105
|
+
import { ElUpload as FoxUpload } from 'element-plus';
|
|
26
106
|
import type { MethodOptions } from 'vue';
|
|
27
107
|
import { multiply } from '@fox-js/big-decimal';
|
|
28
108
|
import { negate } from '@fox-js/big-decimal';
|
|
29
109
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
30
110
|
import { Ref } from 'vue';
|
|
31
111
|
import { Rule } from '@fox-js/validator';
|
|
32
|
-
import { toBoolean } from '@fox-js/fox';
|
|
33
|
-
import { toNumber } from '@fox-js/fox';
|
|
34
|
-
import { toTypeString } from '@fox-js/fox';
|
|
35
112
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
36
113
|
import { UnwrapNestedRefs } from 'vue';
|
|
37
114
|
import { UnwrapRef } from 'vue';
|
|
@@ -46,6 +123,8 @@ export declare interface AcceptFilter {
|
|
|
46
123
|
(value: any): boolean;
|
|
47
124
|
}
|
|
48
125
|
|
|
126
|
+
export declare const AutocompleteItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
127
|
+
|
|
49
128
|
/**
|
|
50
129
|
* 广播类
|
|
51
130
|
*/
|
|
@@ -63,9 +142,9 @@ export declare class Broadcast {
|
|
|
63
142
|
*/
|
|
64
143
|
private callbacks;
|
|
65
144
|
/**
|
|
66
|
-
* vue
|
|
145
|
+
* vue proxy
|
|
67
146
|
*/
|
|
68
|
-
private
|
|
147
|
+
private proxy;
|
|
69
148
|
/**
|
|
70
149
|
* 名称
|
|
71
150
|
*/
|
|
@@ -73,10 +152,10 @@ export declare class Broadcast {
|
|
|
73
152
|
/**
|
|
74
153
|
* 构造函数
|
|
75
154
|
* @param parent
|
|
76
|
-
* @param
|
|
155
|
+
* @param proxy
|
|
77
156
|
* @param name
|
|
78
157
|
*/
|
|
79
|
-
constructor(parent: Broadcast | null,
|
|
158
|
+
constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
|
|
80
159
|
/**
|
|
81
160
|
* 加入孩子节点
|
|
82
161
|
* @param child
|
|
@@ -132,7 +211,15 @@ export declare const CheckboxItem: DefineComponent<unknown, object, {}, Computed
|
|
|
132
211
|
*/
|
|
133
212
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
134
213
|
|
|
135
|
-
|
|
214
|
+
/**
|
|
215
|
+
* 克隆对象
|
|
216
|
+
* @param target
|
|
217
|
+
* @param source
|
|
218
|
+
* @param plain
|
|
219
|
+
*
|
|
220
|
+
* @returns
|
|
221
|
+
*/
|
|
222
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
136
223
|
|
|
137
224
|
export { compareTo }
|
|
138
225
|
|
|
@@ -140,21 +227,28 @@ export declare const Content: DefineComponent<unknown, object, {}, ComputedOptio
|
|
|
140
227
|
|
|
141
228
|
/**
|
|
142
229
|
* 创建broadcast
|
|
230
|
+
*
|
|
231
|
+
* @param proxy
|
|
143
232
|
* @param parent
|
|
144
233
|
* @param name
|
|
145
234
|
* @param callbacks
|
|
146
235
|
* @returns
|
|
147
236
|
*/
|
|
148
|
-
export declare function createBroadcast(
|
|
237
|
+
export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
149
238
|
|
|
150
239
|
/**
|
|
151
240
|
* 创建校验schema
|
|
152
|
-
* @param
|
|
241
|
+
* @param proxy
|
|
153
242
|
* @param parent
|
|
154
243
|
* @param descriptor
|
|
155
244
|
* @returns
|
|
156
245
|
*/
|
|
157
|
-
export declare function createValidateSchema(
|
|
246
|
+
export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* data items key
|
|
250
|
+
*/
|
|
251
|
+
export declare const DataItemsKey: unique symbol;
|
|
158
252
|
|
|
159
253
|
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
160
254
|
|
|
@@ -181,7 +275,16 @@ export default _default;
|
|
|
181
275
|
* @param callbacks
|
|
182
276
|
* @returns
|
|
183
277
|
*/
|
|
184
|
-
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback
|
|
278
|
+
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* 定义domain data item
|
|
282
|
+
* @returns
|
|
283
|
+
*/
|
|
284
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
285
|
+
broadcast: Broadcast;
|
|
286
|
+
validateSchema: ValidateSchema;
|
|
287
|
+
};
|
|
185
288
|
|
|
186
289
|
/**
|
|
187
290
|
* 安装domain
|
|
@@ -222,6 +325,7 @@ export declare interface Descriptor {
|
|
|
222
325
|
valueName?: string;
|
|
223
326
|
valueType?: ValueType;
|
|
224
327
|
validate?: boolean;
|
|
328
|
+
pureDataValidate?: boolean;
|
|
225
329
|
validateHandler?: ValidateHandler;
|
|
226
330
|
validateCheckEvents?: string[];
|
|
227
331
|
validateResetEvents?: string[];
|
|
@@ -229,6 +333,8 @@ export declare interface Descriptor {
|
|
|
229
333
|
|
|
230
334
|
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
231
335
|
|
|
336
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
337
|
+
|
|
232
338
|
/**
|
|
233
339
|
* 禁用属性
|
|
234
340
|
* @param source
|
|
@@ -361,12 +467,207 @@ declare interface EventListener_2 {
|
|
|
361
467
|
*/
|
|
362
468
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
363
469
|
|
|
364
|
-
|
|
470
|
+
/**
|
|
471
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
472
|
+
*
|
|
473
|
+
* @returns
|
|
474
|
+
*/
|
|
475
|
+
export declare function extend(...args: any[]): any;
|
|
476
|
+
|
|
477
|
+
export declare const ExtIcon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
365
478
|
|
|
366
479
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
367
480
|
|
|
368
481
|
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
369
482
|
|
|
483
|
+
export { FoxAffix }
|
|
484
|
+
|
|
485
|
+
export { FoxAlert }
|
|
486
|
+
|
|
487
|
+
export { FoxAside }
|
|
488
|
+
|
|
489
|
+
export { FoxAutocomplete }
|
|
490
|
+
|
|
491
|
+
export { FoxAutoResizer }
|
|
492
|
+
|
|
493
|
+
export { FoxAvatar }
|
|
494
|
+
|
|
495
|
+
export { FoxBacktop }
|
|
496
|
+
|
|
497
|
+
export { FoxBadge }
|
|
498
|
+
|
|
499
|
+
export { FoxBreadcrumb }
|
|
500
|
+
|
|
501
|
+
export { FoxBreadcrumbItem }
|
|
502
|
+
|
|
503
|
+
export { FoxButton }
|
|
504
|
+
|
|
505
|
+
export { FoxButtonGroup }
|
|
506
|
+
|
|
507
|
+
export { FoxCalendar }
|
|
508
|
+
|
|
509
|
+
export { FoxCard }
|
|
510
|
+
|
|
511
|
+
export { FoxCarousel }
|
|
512
|
+
|
|
513
|
+
export { FoxCarouselItem }
|
|
514
|
+
|
|
515
|
+
export { FoxCascader }
|
|
516
|
+
|
|
517
|
+
export { FoxCascaderPanel }
|
|
518
|
+
|
|
519
|
+
export { FoxCheckbox }
|
|
520
|
+
|
|
521
|
+
export { FoxCheckboxButton }
|
|
522
|
+
|
|
523
|
+
export { FoxCheckboxGroup }
|
|
524
|
+
|
|
525
|
+
export { FoxCheckTag }
|
|
526
|
+
|
|
527
|
+
export { FoxCol }
|
|
528
|
+
|
|
529
|
+
export { FoxCollapse }
|
|
530
|
+
|
|
531
|
+
export { FoxCollapseItem }
|
|
532
|
+
|
|
533
|
+
export { FoxCollapseTransition }
|
|
534
|
+
|
|
535
|
+
export { FoxColorPicker }
|
|
536
|
+
|
|
537
|
+
declare type FoxComponentPublicInstance = any;
|
|
538
|
+
|
|
539
|
+
export { FoxConfigProvider }
|
|
540
|
+
|
|
541
|
+
export { FoxContainer }
|
|
542
|
+
|
|
543
|
+
export { FoxDatePicker }
|
|
544
|
+
|
|
545
|
+
export { FoxDescriptions }
|
|
546
|
+
|
|
547
|
+
export { FoxDescriptionsItem }
|
|
548
|
+
|
|
549
|
+
export { FoxDialog }
|
|
550
|
+
|
|
551
|
+
export { FoxDivider }
|
|
552
|
+
|
|
553
|
+
export { FoxDrawer }
|
|
554
|
+
|
|
555
|
+
export { FoxDropdown }
|
|
556
|
+
|
|
557
|
+
export { FoxDropdownItem }
|
|
558
|
+
|
|
559
|
+
export { FoxDropdownMenu }
|
|
560
|
+
|
|
561
|
+
export { FoxEmpty }
|
|
562
|
+
|
|
563
|
+
export { FoxFooter }
|
|
564
|
+
|
|
565
|
+
export { FoxForm }
|
|
566
|
+
|
|
567
|
+
export { FoxFormItem }
|
|
568
|
+
|
|
569
|
+
export { FoxHeader }
|
|
570
|
+
|
|
571
|
+
export { FoxIcon }
|
|
572
|
+
|
|
573
|
+
export { FoxImage }
|
|
574
|
+
|
|
575
|
+
export { FoxImageViewer }
|
|
576
|
+
|
|
577
|
+
export { FoxInput }
|
|
578
|
+
|
|
579
|
+
export { FoxInputNumber }
|
|
580
|
+
|
|
581
|
+
export { FoxLink }
|
|
582
|
+
|
|
583
|
+
export { FoxMain }
|
|
584
|
+
|
|
585
|
+
export { FoxMenu }
|
|
586
|
+
|
|
587
|
+
export { FoxMenuItem }
|
|
588
|
+
|
|
589
|
+
export { FoxMenuItemGroup }
|
|
590
|
+
|
|
591
|
+
export { FoxOption }
|
|
592
|
+
|
|
593
|
+
export { FoxOptionGroup }
|
|
594
|
+
|
|
595
|
+
export { FoxPageHeader }
|
|
596
|
+
|
|
597
|
+
export { FoxPagination }
|
|
598
|
+
|
|
599
|
+
export { FoxPopconfirm }
|
|
600
|
+
|
|
601
|
+
export { FoxPopover }
|
|
602
|
+
|
|
603
|
+
export { FoxPopper }
|
|
604
|
+
|
|
605
|
+
export { FoxProgress }
|
|
606
|
+
|
|
607
|
+
export { FoxRadio }
|
|
608
|
+
|
|
609
|
+
export { FoxRadioButton }
|
|
610
|
+
|
|
611
|
+
export { FoxRadioGroup }
|
|
612
|
+
|
|
613
|
+
export { FoxRate }
|
|
614
|
+
|
|
615
|
+
export { FoxResult }
|
|
616
|
+
|
|
617
|
+
export { FoxRow }
|
|
618
|
+
|
|
619
|
+
export { FoxScrollbar }
|
|
620
|
+
|
|
621
|
+
export { FoxSelect }
|
|
622
|
+
|
|
623
|
+
export { FoxSelectV2 }
|
|
624
|
+
|
|
625
|
+
export { FoxSkeleton }
|
|
626
|
+
|
|
627
|
+
export { FoxSkeletonItem }
|
|
628
|
+
|
|
629
|
+
export { FoxSlider }
|
|
630
|
+
|
|
631
|
+
export { FoxSpace }
|
|
632
|
+
|
|
633
|
+
export { FoxStep }
|
|
634
|
+
|
|
635
|
+
export { FoxSteps }
|
|
636
|
+
|
|
637
|
+
export { FoxSubMenu }
|
|
638
|
+
|
|
639
|
+
export { FoxSwitch }
|
|
640
|
+
|
|
641
|
+
export { FoxTable }
|
|
642
|
+
|
|
643
|
+
export { FoxTableColumn }
|
|
644
|
+
|
|
645
|
+
export { FoxTableV2 }
|
|
646
|
+
|
|
647
|
+
export { FoxTabPane }
|
|
648
|
+
|
|
649
|
+
export { FoxTabs }
|
|
650
|
+
|
|
651
|
+
export { FoxTag }
|
|
652
|
+
|
|
653
|
+
export { FoxTimeline }
|
|
654
|
+
|
|
655
|
+
export { FoxTimelineItem }
|
|
656
|
+
|
|
657
|
+
export { FoxTimePicker }
|
|
658
|
+
|
|
659
|
+
export { FoxTimeSelect }
|
|
660
|
+
|
|
661
|
+
export { FoxTooltip }
|
|
662
|
+
|
|
663
|
+
export { FoxTransfer }
|
|
664
|
+
|
|
665
|
+
export { FoxTree }
|
|
666
|
+
|
|
667
|
+
export { FoxTreeSelect }
|
|
668
|
+
|
|
669
|
+
export { FoxTreeV2 }
|
|
670
|
+
|
|
370
671
|
/**
|
|
371
672
|
* Fox UI
|
|
372
673
|
*/
|
|
@@ -380,7 +681,7 @@ declare interface FoxUI {
|
|
|
380
681
|
* @param app
|
|
381
682
|
* @param options
|
|
382
683
|
*/
|
|
383
|
-
install(app: App, options: FoxUIOptions):
|
|
684
|
+
install(app: App, options: FoxUIOptions): any;
|
|
384
685
|
/**
|
|
385
686
|
* 初始化page Layout
|
|
386
687
|
*
|
|
@@ -428,6 +729,7 @@ declare interface FoxUI {
|
|
|
428
729
|
* UI Options
|
|
429
730
|
*/
|
|
430
731
|
declare interface FoxUIOptions {
|
|
732
|
+
install?: boolean;
|
|
431
733
|
headerBarHeight?: number;
|
|
432
734
|
footerBarHeight?: number;
|
|
433
735
|
safeAreaInset?: SafeAreaInset;
|
|
@@ -467,7 +769,7 @@ declare class FoxUIVue implements FoxUI {
|
|
|
467
769
|
* @param app
|
|
468
770
|
* @param options
|
|
469
771
|
*/
|
|
470
|
-
install(app: App, options?: FoxUIOptions):
|
|
772
|
+
install(app: App, options?: FoxUIOptions): any;
|
|
471
773
|
/**
|
|
472
774
|
* 初始化page Layout
|
|
473
775
|
*
|
|
@@ -511,6 +813,8 @@ declare class FoxUIVue implements FoxUI {
|
|
|
511
813
|
getRootDomain(): Domain;
|
|
512
814
|
}
|
|
513
815
|
|
|
816
|
+
export { FoxUpload }
|
|
817
|
+
|
|
514
818
|
/**
|
|
515
819
|
* 通用函数接口
|
|
516
820
|
*/
|
|
@@ -578,6 +882,11 @@ declare interface GroupLayout {
|
|
|
578
882
|
gutter: number;
|
|
579
883
|
}
|
|
580
884
|
|
|
885
|
+
/**
|
|
886
|
+
* 是否支持symbol
|
|
887
|
+
*/
|
|
888
|
+
export declare const hasSymbol: boolean;
|
|
889
|
+
|
|
581
890
|
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
582
891
|
|
|
583
892
|
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -598,8 +907,12 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
598
907
|
*/
|
|
599
908
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
600
909
|
|
|
910
|
+
export declare const Indicator: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
911
|
+
|
|
601
912
|
export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
602
913
|
|
|
914
|
+
export declare const InputNumberItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
915
|
+
|
|
603
916
|
/**
|
|
604
917
|
* 安装函数
|
|
605
918
|
*/
|
|
@@ -613,14 +926,29 @@ declare interface Installer {
|
|
|
613
926
|
*/
|
|
614
927
|
export declare function integerLength(value: string | number): number;
|
|
615
928
|
|
|
616
|
-
|
|
929
|
+
/**
|
|
930
|
+
* 是否数组
|
|
931
|
+
*/
|
|
932
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* 是否为类数组
|
|
936
|
+
* @param obj
|
|
937
|
+
* @returns {boolean}
|
|
938
|
+
*/
|
|
939
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
617
940
|
|
|
618
941
|
/**
|
|
619
942
|
* 是否为浏览器环境
|
|
620
943
|
*/
|
|
621
944
|
export declare const isBrowser: boolean;
|
|
622
945
|
|
|
623
|
-
|
|
946
|
+
/**
|
|
947
|
+
* 是否为Date
|
|
948
|
+
* @param val
|
|
949
|
+
* @returns
|
|
950
|
+
*/
|
|
951
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
624
952
|
|
|
625
953
|
/**
|
|
626
954
|
* 是否空字符串
|
|
@@ -629,11 +957,27 @@ export { isDate }
|
|
|
629
957
|
*/
|
|
630
958
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
631
959
|
|
|
632
|
-
|
|
960
|
+
/**
|
|
961
|
+
* 判断两个对象是否一致
|
|
962
|
+
* @param x
|
|
963
|
+
* @param y
|
|
964
|
+
* @return
|
|
965
|
+
*/
|
|
966
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
633
967
|
|
|
634
|
-
|
|
968
|
+
/**
|
|
969
|
+
* 是否为es module
|
|
970
|
+
* @param obj
|
|
971
|
+
* @returns
|
|
972
|
+
*/
|
|
973
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
635
974
|
|
|
636
|
-
|
|
975
|
+
/**
|
|
976
|
+
* 是否为函数
|
|
977
|
+
* @param val
|
|
978
|
+
* @returns
|
|
979
|
+
*/
|
|
980
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
637
981
|
|
|
638
982
|
/**
|
|
639
983
|
* 是否为内嵌页面
|
|
@@ -644,7 +988,12 @@ export { isFunction }
|
|
|
644
988
|
*/
|
|
645
989
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
646
990
|
|
|
647
|
-
|
|
991
|
+
/**
|
|
992
|
+
* 是否为Map
|
|
993
|
+
* @param val
|
|
994
|
+
* @returns
|
|
995
|
+
*/
|
|
996
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
648
997
|
|
|
649
998
|
/**
|
|
650
999
|
* 是否为数字字符串
|
|
@@ -653,11 +1002,24 @@ export { isMap }
|
|
|
653
1002
|
*/
|
|
654
1003
|
export declare function isNumberString(value: string): boolean;
|
|
655
1004
|
|
|
656
|
-
|
|
1005
|
+
/**
|
|
1006
|
+
* 是否为object
|
|
1007
|
+
*/
|
|
1008
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
657
1009
|
|
|
658
|
-
|
|
1010
|
+
/**
|
|
1011
|
+
* 是否为plain对象
|
|
1012
|
+
* @param val
|
|
1013
|
+
* @returns
|
|
1014
|
+
*/
|
|
1015
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
659
1016
|
|
|
660
|
-
|
|
1017
|
+
/**
|
|
1018
|
+
* 是否为promise
|
|
1019
|
+
* @param val
|
|
1020
|
+
* @returns
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
661
1023
|
|
|
662
1024
|
/**
|
|
663
1025
|
* 判断是否为正则表达式
|
|
@@ -666,9 +1028,19 @@ export { isPromise }
|
|
|
666
1028
|
*/
|
|
667
1029
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
668
1030
|
|
|
669
|
-
|
|
1031
|
+
/**
|
|
1032
|
+
* 是否为Set
|
|
1033
|
+
* @param val
|
|
1034
|
+
* @returns
|
|
1035
|
+
*/
|
|
1036
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
670
1037
|
|
|
671
|
-
|
|
1038
|
+
/**
|
|
1039
|
+
* 是否为字符串
|
|
1040
|
+
* @param val
|
|
1041
|
+
* @returns
|
|
1042
|
+
*/
|
|
1043
|
+
export declare const isString: (val: unknown) => val is string;
|
|
672
1044
|
|
|
673
1045
|
/**
|
|
674
1046
|
* 是否子页面
|
|
@@ -676,7 +1048,18 @@ export { isString }
|
|
|
676
1048
|
*/
|
|
677
1049
|
export declare function isSubPage(domain: Domain): boolean;
|
|
678
1050
|
|
|
679
|
-
|
|
1051
|
+
/**
|
|
1052
|
+
* 是否为symbol
|
|
1053
|
+
* @param val
|
|
1054
|
+
* @returns
|
|
1055
|
+
*/
|
|
1056
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* 是否是window对象
|
|
1060
|
+
* @param obj
|
|
1061
|
+
*/
|
|
1062
|
+
export declare function isWindow(obj: any): boolean;
|
|
680
1063
|
|
|
681
1064
|
export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
682
1065
|
|
|
@@ -688,6 +1071,14 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
688
1071
|
*/
|
|
689
1072
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
690
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* 创建数组
|
|
1076
|
+
* @param arr
|
|
1077
|
+
* @param results
|
|
1078
|
+
* @return
|
|
1079
|
+
*/
|
|
1080
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1081
|
+
|
|
691
1082
|
export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
692
1083
|
|
|
693
1084
|
/**
|
|
@@ -701,12 +1092,36 @@ export declare interface Matched {
|
|
|
701
1092
|
level?: number;
|
|
702
1093
|
}
|
|
703
1094
|
|
|
1095
|
+
/**
|
|
1096
|
+
* 合并数组
|
|
1097
|
+
* @param first
|
|
1098
|
+
* @param second
|
|
1099
|
+
* @return
|
|
1100
|
+
*/
|
|
1101
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1102
|
+
|
|
1103
|
+
export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1104
|
+
|
|
704
1105
|
export { multiply }
|
|
705
1106
|
|
|
706
1107
|
export { negate }
|
|
707
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* 下一个事件周期中执行函数
|
|
1111
|
+
* @param fn
|
|
1112
|
+
* @param args
|
|
1113
|
+
*/
|
|
1114
|
+
export declare function nextTick(fn: {
|
|
1115
|
+
(...args: any[]): void;
|
|
1116
|
+
}, ...args: any[]): void;
|
|
1117
|
+
|
|
708
1118
|
export { numberFormat }
|
|
709
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* 对象类型
|
|
1122
|
+
*/
|
|
1123
|
+
export declare const objectToString: () => string;
|
|
1124
|
+
|
|
710
1125
|
/**
|
|
711
1126
|
* padding
|
|
712
1127
|
*/
|
|
@@ -724,7 +1139,7 @@ export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
724
1139
|
*/
|
|
725
1140
|
export declare interface PageLayout {
|
|
726
1141
|
width: number | string;
|
|
727
|
-
height
|
|
1142
|
+
height?: number | string;
|
|
728
1143
|
headerHeight: number | string;
|
|
729
1144
|
footerHeight: number | string;
|
|
730
1145
|
headerPadding?: Padding;
|
|
@@ -783,6 +1198,8 @@ export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
783
1198
|
*/
|
|
784
1199
|
export declare const raf: any;
|
|
785
1200
|
|
|
1201
|
+
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1202
|
+
|
|
786
1203
|
/**
|
|
787
1204
|
* 只读属性
|
|
788
1205
|
* @param source
|
|
@@ -871,6 +1288,8 @@ export declare function setGlobalValidator(type: string, validator: ExecuteValid
|
|
|
871
1288
|
|
|
872
1289
|
export declare const SlotItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
873
1290
|
|
|
1291
|
+
export declare const SwitchItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1292
|
+
|
|
874
1293
|
export declare const TableItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
875
1294
|
|
|
876
1295
|
export declare const TableMappingColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -887,9 +1306,19 @@ export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
887
1306
|
|
|
888
1307
|
export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
889
1308
|
|
|
890
|
-
|
|
1309
|
+
/**
|
|
1310
|
+
* 转换为boolean值
|
|
1311
|
+
* @param val
|
|
1312
|
+
* @returns
|
|
1313
|
+
*/
|
|
1314
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
891
1315
|
|
|
892
|
-
|
|
1316
|
+
/**
|
|
1317
|
+
* 转换为number值
|
|
1318
|
+
* @param val
|
|
1319
|
+
* @returns
|
|
1320
|
+
*/
|
|
1321
|
+
export declare function toNumber(val: unknown): number;
|
|
893
1322
|
|
|
894
1323
|
/**
|
|
895
1324
|
* 转换为number rect
|
|
@@ -911,7 +1340,7 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
911
1340
|
*/
|
|
912
1341
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
913
1342
|
|
|
914
|
-
export
|
|
1343
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
915
1344
|
|
|
916
1345
|
/**
|
|
917
1346
|
* to model value
|
|
@@ -921,6 +1350,13 @@ export { toTypeString }
|
|
|
921
1350
|
*/
|
|
922
1351
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
923
1352
|
|
|
1353
|
+
/**
|
|
1354
|
+
* 判断类型
|
|
1355
|
+
* @param obj
|
|
1356
|
+
* @returns any
|
|
1357
|
+
*/
|
|
1358
|
+
export declare function typeOf(obj: any): string;
|
|
1359
|
+
|
|
924
1360
|
export declare class UniqueID {
|
|
925
1361
|
/**
|
|
926
1362
|
* seed id
|
|
@@ -953,7 +1389,7 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
|
|
|
953
1389
|
* @param proxy
|
|
954
1390
|
* @returns
|
|
955
1391
|
*/
|
|
956
|
-
export declare function useBroadcast(proxy?:
|
|
1392
|
+
export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
|
|
957
1393
|
|
|
958
1394
|
/**
|
|
959
1395
|
* 获取当前domain
|
|
@@ -983,6 +1419,25 @@ export declare const usePosition: (elementRef: (Element | Window) | Ref<Element
|
|
|
983
1419
|
|
|
984
1420
|
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
|
|
985
1421
|
|
|
1422
|
+
export declare function useTouch(): {
|
|
1423
|
+
move: EventListener;
|
|
1424
|
+
start: EventListener;
|
|
1425
|
+
reset: () => void;
|
|
1426
|
+
startX: Ref<number>;
|
|
1427
|
+
startY: Ref<number>;
|
|
1428
|
+
startTime: Ref<number>;
|
|
1429
|
+
duration: Ref<number>;
|
|
1430
|
+
moveX: Ref<number>;
|
|
1431
|
+
moveY: Ref<number>;
|
|
1432
|
+
deltaX: Ref<number>;
|
|
1433
|
+
deltaY: Ref<number>;
|
|
1434
|
+
offsetX: Ref<number>;
|
|
1435
|
+
offsetY: Ref<number>;
|
|
1436
|
+
direction: Ref<Direction>;
|
|
1437
|
+
isVertical: () => boolean;
|
|
1438
|
+
isHorizontal: () => boolean;
|
|
1439
|
+
};
|
|
1440
|
+
|
|
986
1441
|
/**
|
|
987
1442
|
* 校验条件
|
|
988
1443
|
*/
|
|
@@ -999,35 +1454,35 @@ export declare interface ValidateHandler {
|
|
|
999
1454
|
* 错误处理
|
|
1000
1455
|
* @param errorMsg
|
|
1001
1456
|
* @param proxy
|
|
1002
|
-
*
|
|
1457
|
+
*
|
|
1003
1458
|
*/
|
|
1004
|
-
error?(errorMsg: string, proxy:
|
|
1459
|
+
error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
|
|
1005
1460
|
/**
|
|
1006
1461
|
* 重置处理
|
|
1007
1462
|
* @param proxy
|
|
1008
|
-
*
|
|
1463
|
+
*
|
|
1009
1464
|
*/
|
|
1010
|
-
reset?(proxy:
|
|
1465
|
+
reset?(proxy: FoxComponentPublicInstance): void;
|
|
1011
1466
|
/**
|
|
1012
1467
|
* 成功处理
|
|
1013
1468
|
* @param proxy
|
|
1014
|
-
*
|
|
1469
|
+
*
|
|
1015
1470
|
*/
|
|
1016
|
-
success?(proxy:
|
|
1471
|
+
success?(proxy: FoxComponentPublicInstance): void;
|
|
1017
1472
|
/**
|
|
1018
1473
|
* 规则装饰处理
|
|
1019
1474
|
* @param newRule
|
|
1020
1475
|
* @param oldRule
|
|
1021
1476
|
* @param proxy
|
|
1022
|
-
*
|
|
1477
|
+
*
|
|
1023
1478
|
*/
|
|
1024
|
-
decorate?(newRule: Rule,
|
|
1479
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
|
|
1025
1480
|
/**
|
|
1026
1481
|
* 获取value
|
|
1027
1482
|
* @param proxy
|
|
1028
|
-
*
|
|
1483
|
+
*
|
|
1029
1484
|
*/
|
|
1030
|
-
getValue?(proxy:
|
|
1485
|
+
getValue?(proxy: FoxComponentPublicInstance): any;
|
|
1031
1486
|
}
|
|
1032
1487
|
|
|
1033
1488
|
/**
|
|
@@ -1057,7 +1512,7 @@ export declare class ValidateSchema {
|
|
|
1057
1512
|
/**
|
|
1058
1513
|
* 实例
|
|
1059
1514
|
*/
|
|
1060
|
-
private
|
|
1515
|
+
private proxy;
|
|
1061
1516
|
/**
|
|
1062
1517
|
* effect scope
|
|
1063
1518
|
*/
|
|
@@ -1066,9 +1521,9 @@ export declare class ValidateSchema {
|
|
|
1066
1521
|
* 构造函数
|
|
1067
1522
|
* @param parent
|
|
1068
1523
|
* @param descriptor
|
|
1069
|
-
* @param
|
|
1524
|
+
* @param proxy
|
|
1070
1525
|
*/
|
|
1071
|
-
constructor(parent: ValidateSchema | null, descriptor: Descriptor,
|
|
1526
|
+
constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
|
|
1072
1527
|
/**
|
|
1073
1528
|
* 初始化
|
|
1074
1529
|
*/
|