@fox-js/foxui-pad 4.1.1-4 → 4.1.1-41
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 +1 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +15864 -16285
- package/dist/index.umd.js +1 -5
- package/dist/locale/index.d.ts +461 -0
- package/dist/locale/index.esm.js +223 -175
- package/dist/locale/index.umd.js +1 -3
- package/dist/style.css +4433 -1
- package/dist/style.js +3 -0
- package/dist/types/index.d.ts +915 -427
- package/package.json +8 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1,126 +1,139 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
3
|
-
import {
|
|
4
|
-
import { ComponentPublicInstance } from 'vue';
|
|
3
|
+
import { DefineSetupFnComponent } from 'vue';
|
|
5
4
|
import { divide } from '@fox-js/big-decimal';
|
|
6
5
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
7
|
-
import { ElAffix as FoxAffix } from '
|
|
8
|
-
import { ElAlert as FoxAlert } from '
|
|
9
|
-
import { ElAnchor as FoxAnchor } from '
|
|
10
|
-
import { ElAnchorLink as FoxAnchorLink } from '
|
|
11
|
-
import { ElAside as FoxAside } from '
|
|
12
|
-
import { ElAutocomplete as FoxAutocomplete } from '
|
|
13
|
-
import { ElAutoResizer as FoxAutoResizer } from '
|
|
14
|
-
import { ElAvatar as FoxAvatar } from '
|
|
15
|
-
import { ElBacktop as FoxBacktop } from '
|
|
16
|
-
import { ElBadge as FoxBadge } from '
|
|
17
|
-
import { ElBreadcrumb as FoxBreadcrumb } from '
|
|
18
|
-
import { ElBreadcrumbItem as FoxBreadcrumbItem } from '
|
|
19
|
-
import { ElButton as FoxButton } from '
|
|
20
|
-
import { ElButtonGroup as FoxButtonGroup } from '
|
|
21
|
-
import { ElCalendar as FoxCalendar } from '
|
|
22
|
-
import { ElCard as FoxCard } from '
|
|
23
|
-
import { ElCarousel as FoxCarousel } from '
|
|
24
|
-
import { ElCarouselItem as FoxCarouselItem } from '
|
|
25
|
-
import { ElCascader as FoxCascader } from '
|
|
26
|
-
import { ElCascaderPanel as FoxCascaderPanel } from '
|
|
27
|
-
import { ElCheckbox as FoxCheckbox } from '
|
|
28
|
-
import { ElCheckboxButton as FoxCheckboxButton } from '
|
|
29
|
-
import { ElCheckboxGroup as FoxCheckboxGroup } from '
|
|
30
|
-
import { ElCheckTag as FoxCheckTag } from '
|
|
31
|
-
import { ElCol as FoxCol } from '
|
|
32
|
-
import { ElCollapse as FoxCollapse } from '
|
|
33
|
-
import { ElCollapseItem as FoxCollapseItem } from '
|
|
34
|
-
import { ElCollapseTransition as FoxCollapseTransition } from '
|
|
35
|
-
import { ElColorPicker as FoxColorPicker } from '
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import { ElLink as FoxLink } from '
|
|
60
|
-
import { ElMain as FoxMain } from '
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import { ElWatermark as FoxWatermark } from './base';
|
|
6
|
+
import { ElAffix as FoxAffix } from 'element-plus';
|
|
7
|
+
import { ElAlert as FoxAlert } from 'element-plus';
|
|
8
|
+
import { ElAnchor as FoxAnchor } from 'element-plus';
|
|
9
|
+
import { ElAnchorLink as FoxAnchorLink } from 'element-plus';
|
|
10
|
+
import { ElAside as FoxAside } from 'element-plus';
|
|
11
|
+
import { ElAutocomplete as FoxAutocomplete } from 'element-plus';
|
|
12
|
+
import { ElAutoResizer as FoxAutoResizer } from 'element-plus';
|
|
13
|
+
import { ElAvatar as FoxAvatar } from 'element-plus';
|
|
14
|
+
import { ElBacktop as FoxBacktop } from 'element-plus';
|
|
15
|
+
import { ElBadge as FoxBadge } from 'element-plus';
|
|
16
|
+
import { ElBreadcrumb as FoxBreadcrumb } from 'element-plus';
|
|
17
|
+
import { ElBreadcrumbItem as FoxBreadcrumbItem } from 'element-plus';
|
|
18
|
+
import { ElButton as FoxButton } from 'element-plus';
|
|
19
|
+
import { ElButtonGroup as FoxButtonGroup } from 'element-plus';
|
|
20
|
+
import { ElCalendar as FoxCalendar } from 'element-plus';
|
|
21
|
+
import { ElCard as FoxCard } from 'element-plus';
|
|
22
|
+
import { ElCarousel as FoxCarousel } from 'element-plus';
|
|
23
|
+
import { ElCarouselItem as FoxCarouselItem } from 'element-plus';
|
|
24
|
+
import { ElCascader as FoxCascader } from 'element-plus';
|
|
25
|
+
import { ElCascaderPanel as FoxCascaderPanel } from 'element-plus';
|
|
26
|
+
import { ElCheckbox as FoxCheckbox } from 'element-plus';
|
|
27
|
+
import { ElCheckboxButton as FoxCheckboxButton } from 'element-plus';
|
|
28
|
+
import { ElCheckboxGroup as FoxCheckboxGroup } from 'element-plus';
|
|
29
|
+
import { ElCheckTag as FoxCheckTag } from 'element-plus';
|
|
30
|
+
import { ElCol as FoxCol } from 'element-plus';
|
|
31
|
+
import { ElCollapse as FoxCollapse } from 'element-plus';
|
|
32
|
+
import { ElCollapseItem as FoxCollapseItem } from 'element-plus';
|
|
33
|
+
import { ElCollapseTransition as FoxCollapseTransition } from 'element-plus';
|
|
34
|
+
import { ElColorPicker as FoxColorPicker } from 'element-plus';
|
|
35
|
+
import { ElConfigProvider as FoxConfigProvider } from 'element-plus';
|
|
36
|
+
import { ElContainer as FoxContainer } from 'element-plus';
|
|
37
|
+
import { ElCountdown as FoxCountdown } from 'element-plus';
|
|
38
|
+
import { ElDatePicker as FoxDatePicker } from 'element-plus';
|
|
39
|
+
import { ElDescriptions as FoxDescriptions } from 'element-plus';
|
|
40
|
+
import { ElDescriptionsItem as FoxDescriptionsItem } from 'element-plus';
|
|
41
|
+
import { ElDialog as FoxDialog } from 'element-plus';
|
|
42
|
+
import { ElDivider as FoxDivider } from 'element-plus';
|
|
43
|
+
import { ElDrawer as FoxDrawer } from 'element-plus';
|
|
44
|
+
import { ElDropdown as FoxDropdown } from 'element-plus';
|
|
45
|
+
import { ElDropdownItem as FoxDropdownItem } from 'element-plus';
|
|
46
|
+
import { ElDropdownMenu as FoxDropdownMenu } from 'element-plus';
|
|
47
|
+
import { ElEmpty as FoxEmpty } from 'element-plus';
|
|
48
|
+
import { ElFooter as FoxFooter } from 'element-plus';
|
|
49
|
+
import { ElForm as FoxForm } from 'element-plus';
|
|
50
|
+
import { ElFormItem as FoxFormItem } from 'element-plus';
|
|
51
|
+
import { ElHeader as FoxHeader } from 'element-plus';
|
|
52
|
+
import { ElIcon as FoxIcon } from 'element-plus';
|
|
53
|
+
import { ElImage as FoxImage } from 'element-plus';
|
|
54
|
+
import { ElImageViewer as FoxImageViewer } from 'element-plus';
|
|
55
|
+
import { ElInput as FoxInput } from 'element-plus';
|
|
56
|
+
import { ElInputNumber as FoxInputNumber } from 'element-plus';
|
|
57
|
+
import { ElInputTag as FoxInputTag } from 'element-plus';
|
|
58
|
+
import { ElLink as FoxLink } from 'element-plus';
|
|
59
|
+
import { ElMain as FoxMain } from 'element-plus';
|
|
60
|
+
import { ElMention as FoxMention } from 'element-plus';
|
|
61
|
+
import { ElMenu as FoxMenu } from 'element-plus';
|
|
62
|
+
import { ElMenuItem as FoxMenuItem } from 'element-plus';
|
|
63
|
+
import { ElMenuItemGroup as FoxMenuItemGroup } from 'element-plus';
|
|
64
|
+
import { ElMessage as FoxMessage } from 'element-plus';
|
|
65
|
+
import { ElMessageBox as FoxMessageBox } from 'element-plus';
|
|
66
|
+
import { ElNotification as FoxNotification } from 'element-plus';
|
|
67
|
+
import { ElOption as FoxOption } from 'element-plus';
|
|
68
|
+
import { ElOptionGroup as FoxOptionGroup } from 'element-plus';
|
|
69
|
+
import { ElPageHeader as FoxPageHeader } from 'element-plus';
|
|
70
|
+
import { ElPagination as FoxPagination } from 'element-plus';
|
|
71
|
+
import { ElPopconfirm as FoxPopconfirm } from 'element-plus';
|
|
72
|
+
import { ElPopover as FoxPopover } from 'element-plus';
|
|
73
|
+
import { ElPopper as FoxPopper } from 'element-plus';
|
|
74
|
+
import { ElProgress as FoxProgress } from 'element-plus';
|
|
75
|
+
import { ElRadio as FoxRadio } from 'element-plus';
|
|
76
|
+
import { ElRadioButton as FoxRadioButton } from 'element-plus';
|
|
77
|
+
import { ElRadioGroup as FoxRadioGroup } from 'element-plus';
|
|
78
|
+
import { ElRate as FoxRate } from 'element-plus';
|
|
79
|
+
import { ElResult as FoxResult } from 'element-plus';
|
|
80
|
+
import { ElRow as FoxRow } from 'element-plus';
|
|
81
|
+
import { ElScrollbar as FoxScrollbar } from 'element-plus';
|
|
82
|
+
import { ElSegmented as FoxSegmented } from 'element-plus';
|
|
83
|
+
import { ElSelect as FoxSelect } from 'element-plus';
|
|
84
|
+
import { ElSelectV2 as FoxSelectV2 } from 'element-plus';
|
|
85
|
+
import { ElSkeleton as FoxSkeleton } from 'element-plus';
|
|
86
|
+
import { ElSkeletonItem as FoxSkeletonItem } from 'element-plus';
|
|
87
|
+
import { ElSlider as FoxSlider } from 'element-plus';
|
|
88
|
+
import { ElSpace as FoxSpace } from 'element-plus';
|
|
89
|
+
import { ElStatistic as FoxStatistic } from 'element-plus';
|
|
90
|
+
import { ElStep as FoxStep } from 'element-plus';
|
|
91
|
+
import { ElSteps as FoxSteps } from 'element-plus';
|
|
92
|
+
import { ElSubMenu as FoxSubMenu } from 'element-plus';
|
|
93
|
+
import { ElSwitch as FoxSwitch } from 'element-plus';
|
|
94
|
+
import { ElTable as FoxTable } from 'element-plus';
|
|
95
|
+
import { ElTableColumn as FoxTableColumn } from 'element-plus';
|
|
96
|
+
import { ElTableV2 as FoxTableV2 } from 'element-plus';
|
|
97
|
+
import { ElTabPane as FoxTabPane } from 'element-plus';
|
|
98
|
+
import { ElTabs as FoxTabs } from 'element-plus';
|
|
99
|
+
import { ElTag as FoxTag } from 'element-plus';
|
|
100
|
+
import { ElTimeline as FoxTimeline } from 'element-plus';
|
|
101
|
+
import { ElTimelineItem as FoxTimelineItem } from 'element-plus';
|
|
102
|
+
import { ElTimePicker as FoxTimePicker } from 'element-plus';
|
|
103
|
+
import { ElTimeSelect as FoxTimeSelect } from 'element-plus';
|
|
104
|
+
import { ElTooltip as FoxTooltip } from 'element-plus';
|
|
105
|
+
import { ElTransfer as FoxTransfer } from 'element-plus';
|
|
106
|
+
import { ElTree as FoxTree } from 'element-plus';
|
|
107
|
+
import { ElTreeSelect as FoxTreeSelect } from 'element-plus';
|
|
108
|
+
import { ElTreeV2 as FoxTreeV2 } from 'element-plus';
|
|
109
|
+
import { ElUpload as FoxUpload } from 'element-plus';
|
|
110
|
+
import { ElWatermark as FoxWatermark } from 'element-plus';
|
|
113
111
|
import { multiply } from '@fox-js/big-decimal';
|
|
114
112
|
import { negate } from '@fox-js/big-decimal';
|
|
115
113
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
114
|
+
import { PublicProps } from 'vue';
|
|
116
115
|
import { Ref } from 'vue';
|
|
117
116
|
import { Rule } from '@fox-js/validator';
|
|
118
|
-
import { ScopeGetter } from './api';
|
|
119
117
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
120
118
|
import { UnwrapNestedRefs } from 'vue';
|
|
121
119
|
import { UnwrapRef } from 'vue';
|
|
122
120
|
import { ValidateMessages } from '@fox-js/validator';
|
|
123
121
|
import { ValidateResult } from '@fox-js/validator';
|
|
122
|
+
import { VNode } from 'vue';
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* 虚拟页面范围
|
|
126
|
+
*/
|
|
127
|
+
export declare type AbstractPageScope = {
|
|
128
|
+
headerBar?: boolean;
|
|
129
|
+
footerBar?: boolean;
|
|
130
|
+
content?: boolean;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* abstract page scope key(虚拟页面,不生成page、headerBar、footerBar、content,直接reader content内部组件)
|
|
135
|
+
*/
|
|
136
|
+
export declare const AbstractPageScopeKey: unique symbol;
|
|
124
137
|
|
|
125
138
|
/**
|
|
126
139
|
* 是否接受value过滤器
|
|
@@ -146,20 +159,24 @@ export declare class Broadcast {
|
|
|
146
159
|
*/
|
|
147
160
|
private callbacks;
|
|
148
161
|
/**
|
|
149
|
-
* vue
|
|
162
|
+
* vue exposed
|
|
150
163
|
*/
|
|
151
|
-
private
|
|
164
|
+
private exposed;
|
|
152
165
|
/**
|
|
153
166
|
* 名称
|
|
154
167
|
*/
|
|
155
168
|
private name?;
|
|
169
|
+
/**
|
|
170
|
+
* 持久消息注册表
|
|
171
|
+
*/
|
|
172
|
+
private persistantMessages;
|
|
156
173
|
/**
|
|
157
174
|
* 构造函数
|
|
158
175
|
* @param parent
|
|
159
|
-
* @param
|
|
176
|
+
* @param exposed
|
|
160
177
|
* @param name
|
|
161
178
|
*/
|
|
162
|
-
constructor(parent: Broadcast | null,
|
|
179
|
+
constructor(parent: Broadcast | null, exposed: FoxComponentPublicExposed, name?: string);
|
|
163
180
|
/**
|
|
164
181
|
* 加入孩子节点
|
|
165
182
|
* @param child
|
|
@@ -174,6 +191,46 @@ export declare class Broadcast {
|
|
|
174
191
|
* 销毁
|
|
175
192
|
*/
|
|
176
193
|
destroy(): void;
|
|
194
|
+
/**
|
|
195
|
+
* 设置持久化消息
|
|
196
|
+
* @param matched
|
|
197
|
+
* @param action
|
|
198
|
+
* @param args
|
|
199
|
+
*/
|
|
200
|
+
private setPersistantMessage;
|
|
201
|
+
/**
|
|
202
|
+
* 删除持久化消息
|
|
203
|
+
* @param matched
|
|
204
|
+
* @param action
|
|
205
|
+
* @param args
|
|
206
|
+
*/
|
|
207
|
+
private deletePersistantMessage;
|
|
208
|
+
/**
|
|
209
|
+
* 获取持久化消息列表
|
|
210
|
+
* @returns
|
|
211
|
+
*/
|
|
212
|
+
getPersistantMessages(): PersistantMessage[];
|
|
213
|
+
/**
|
|
214
|
+
* 清空持久化消息列表
|
|
215
|
+
*/
|
|
216
|
+
clearPersistantMessage(): void;
|
|
217
|
+
/**
|
|
218
|
+
* 判断是否匹配
|
|
219
|
+
* @param name
|
|
220
|
+
* @param matched
|
|
221
|
+
* @returns
|
|
222
|
+
*/
|
|
223
|
+
private isMatched;
|
|
224
|
+
/**
|
|
225
|
+
* 触发函数
|
|
226
|
+
* @param action
|
|
227
|
+
* @param args
|
|
228
|
+
*/
|
|
229
|
+
private trigger;
|
|
230
|
+
/**
|
|
231
|
+
* 拉取持久消息
|
|
232
|
+
*/
|
|
233
|
+
pull(): void;
|
|
177
234
|
/**
|
|
178
235
|
* 发生消息
|
|
179
236
|
* @param matched
|
|
@@ -204,46 +261,76 @@ export declare interface BroadcastCallback {
|
|
|
204
261
|
(...args: any[]): Result;
|
|
205
262
|
}
|
|
206
263
|
|
|
264
|
+
/**
|
|
265
|
+
* broadcast key
|
|
266
|
+
*/
|
|
207
267
|
export declare const BroadcastKey: unique symbol;
|
|
208
268
|
|
|
269
|
+
/**
|
|
270
|
+
* 浏览模式属性
|
|
271
|
+
* @param source
|
|
272
|
+
* @returns
|
|
273
|
+
*/
|
|
274
|
+
export declare function browseProperty(source: Ref): Ref<'on' | 'off'>;
|
|
275
|
+
|
|
209
276
|
export declare function cancelRaf(id: number): void;
|
|
210
277
|
|
|
211
278
|
/**
|
|
212
|
-
*
|
|
279
|
+
* clamp
|
|
280
|
+
* @param num
|
|
281
|
+
* @param min
|
|
282
|
+
* @param max
|
|
283
|
+
* @returns
|
|
213
284
|
*/
|
|
214
|
-
export declare
|
|
285
|
+
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
215
286
|
|
|
216
287
|
/**
|
|
217
|
-
*
|
|
218
|
-
* @param target
|
|
219
|
-
* @param source
|
|
220
|
-
* @param plain
|
|
221
|
-
*
|
|
222
|
-
* @returns
|
|
288
|
+
* 清理非数字
|
|
223
289
|
*/
|
|
224
|
-
export declare function
|
|
290
|
+
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
225
291
|
|
|
226
292
|
export { compareTo }
|
|
227
293
|
|
|
294
|
+
/**
|
|
295
|
+
* 组件描述
|
|
296
|
+
*/
|
|
297
|
+
declare interface ComponentDescriptor {
|
|
298
|
+
componentName: string;
|
|
299
|
+
readonly?: boolean;
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
props?: Record<string, any>;
|
|
302
|
+
ignorePropKeys?: string[];
|
|
303
|
+
context: FoxSetupContext;
|
|
304
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
305
|
+
fieldName?: string;
|
|
306
|
+
valueName?: string;
|
|
307
|
+
valueType?: ValueType;
|
|
308
|
+
validate?: boolean;
|
|
309
|
+
pureDataValidate?: boolean;
|
|
310
|
+
validateHandler?: ValidateHandler;
|
|
311
|
+
validateCheckEvents?: string[];
|
|
312
|
+
validateResetEvents?: string[];
|
|
313
|
+
}
|
|
314
|
+
|
|
228
315
|
/**
|
|
229
316
|
* 创建broadcast
|
|
230
317
|
*
|
|
231
|
-
* @param
|
|
318
|
+
* @param expose
|
|
232
319
|
* @param parent
|
|
233
320
|
* @param name
|
|
234
321
|
* @param callbacks
|
|
235
322
|
* @returns
|
|
236
323
|
*/
|
|
237
|
-
export declare function createBroadcast(
|
|
324
|
+
export declare function createBroadcast(exposed: FoxComponentPublicExposed, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
238
325
|
|
|
239
326
|
/**
|
|
240
327
|
* 创建校验schema
|
|
241
|
-
* @param
|
|
328
|
+
* @param exposed
|
|
242
329
|
* @param parent
|
|
243
330
|
* @param descriptor
|
|
244
331
|
* @returns
|
|
245
332
|
*/
|
|
246
|
-
export declare function createValidateSchema(
|
|
333
|
+
export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
|
|
247
334
|
|
|
248
335
|
/**
|
|
249
336
|
* data items key
|
|
@@ -254,16 +341,25 @@ export declare const DateUtils: {
|
|
|
254
341
|
/**
|
|
255
342
|
* 格式化
|
|
256
343
|
* @param date
|
|
257
|
-
* @param
|
|
344
|
+
* @param formatTemplate
|
|
258
345
|
* @returns
|
|
259
346
|
*/
|
|
260
|
-
format(date: Date,
|
|
347
|
+
format(date: Date, formatTemplate?: string): string;
|
|
261
348
|
/**
|
|
262
349
|
* 解析
|
|
263
|
-
* @param
|
|
264
|
-
* @param
|
|
350
|
+
* @param dateString
|
|
351
|
+
* @param formatTemplate
|
|
352
|
+
*/
|
|
353
|
+
parser(dateString: string, formatTemplate?: string): Date;
|
|
354
|
+
/**
|
|
355
|
+
* 返回日期格式字符串
|
|
356
|
+
* @param i 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
357
|
+
* @param startDate 起点日期
|
|
358
|
+
* @param formatTemplate 格式化模版
|
|
359
|
+
* @return '2014-12-31'
|
|
360
|
+
*
|
|
265
361
|
*/
|
|
266
|
-
|
|
362
|
+
getDay(i: number, startDate?: Date, formatTemplate?: string): string;
|
|
267
363
|
/**
|
|
268
364
|
* 是否为闫年
|
|
269
365
|
* @return {Boolse} true|false
|
|
@@ -273,12 +369,7 @@ export declare const DateUtils: {
|
|
|
273
369
|
* 返回星期数
|
|
274
370
|
* @return {String}
|
|
275
371
|
*/
|
|
276
|
-
getWhatDay(year: number, month: number, day: number):
|
|
277
|
-
/**
|
|
278
|
-
* 返回星期数
|
|
279
|
-
* @return {Number}
|
|
280
|
-
*/
|
|
281
|
-
getMonthPreDay(year: number, month: number): number;
|
|
372
|
+
getWhatDay(year: number, month: number, day: number): number;
|
|
282
373
|
/**
|
|
283
374
|
* 返回月份天数
|
|
284
375
|
* @return {Number}
|
|
@@ -291,68 +382,49 @@ export declare const DateUtils: {
|
|
|
291
382
|
getNumTwoBit(n: number): string;
|
|
292
383
|
/**
|
|
293
384
|
* 日期对象转成字符串
|
|
385
|
+
* 转换为YYYY-MM-DD格式
|
|
294
386
|
* @return {string}
|
|
295
387
|
*/
|
|
296
388
|
date2Str: (date: Date, split?: string) => string;
|
|
297
389
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
* @param {Date} 起点日期
|
|
301
|
-
* @param {formatTemplate} 格式化模版
|
|
302
|
-
* @return {string} '2014-12-31'
|
|
390
|
+
* 对比
|
|
391
|
+
* 0:相等, 1: x > y, -1: x < y
|
|
303
392
|
*
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
* 时间比较
|
|
308
|
-
* @return
|
|
309
|
-
*/
|
|
310
|
-
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
311
|
-
/**
|
|
312
|
-
* 时间是否相等
|
|
313
|
-
* @return
|
|
314
|
-
*/
|
|
315
|
-
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
316
|
-
/**
|
|
317
|
-
* get month week
|
|
318
|
-
* @param year
|
|
319
|
-
* @param month
|
|
320
|
-
* @param date
|
|
321
|
-
* @param firstDayOfWeek
|
|
393
|
+
* @param x
|
|
394
|
+
* @param y
|
|
395
|
+
* @param formatTemplate
|
|
322
396
|
* @returns
|
|
323
397
|
*/
|
|
324
|
-
|
|
398
|
+
compare(x: string | Date, y: string | Date, formatTemplate?: string): number;
|
|
325
399
|
/**
|
|
326
|
-
*
|
|
327
|
-
* @param year
|
|
328
|
-
* @param month
|
|
400
|
+
* 判断
|
|
329
401
|
* @param date
|
|
330
|
-
* @param
|
|
331
|
-
* @
|
|
332
|
-
|
|
333
|
-
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
334
|
-
/**
|
|
335
|
-
* get week date
|
|
336
|
-
*/
|
|
337
|
-
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
338
|
-
/**
|
|
339
|
-
* format result date
|
|
402
|
+
* @param startDate 开始日期
|
|
403
|
+
* @param span 允许负数
|
|
404
|
+
* @param dateUint span单位 'year'|'month'|'day'
|
|
340
405
|
*/
|
|
341
|
-
|
|
406
|
+
between(date: Date, startDate: Date, span: number, dateUint: "year" | "month" | "day"): boolean;
|
|
342
407
|
/**
|
|
343
|
-
* 判断日期是否在范围内
|
|
408
|
+
* 判断日期是否在范围内(day)
|
|
344
409
|
* @param date
|
|
345
410
|
* @param startDate
|
|
346
411
|
* @param span 允许负数
|
|
347
412
|
*/
|
|
348
413
|
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
349
414
|
/**
|
|
350
|
-
* 判断日期是否在范围内
|
|
415
|
+
* 判断日期是否在范围内(month)
|
|
351
416
|
* @param date
|
|
352
417
|
* @param startDate
|
|
353
418
|
* @param span
|
|
354
419
|
*/
|
|
355
420
|
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
421
|
+
/**
|
|
422
|
+
* 判断日期是否在范围内(year)
|
|
423
|
+
* @param date
|
|
424
|
+
* @param startDate
|
|
425
|
+
* @param span
|
|
426
|
+
*/
|
|
427
|
+
inScope4Year(date: Date, startDate: Date, span: number): boolean;
|
|
356
428
|
};
|
|
357
429
|
|
|
358
430
|
/**
|
|
@@ -379,279 +451,325 @@ export declare function decimalLength(value: string | number): number;
|
|
|
379
451
|
declare const _default: FoxUIVue;
|
|
380
452
|
export default _default;
|
|
381
453
|
|
|
382
|
-
declare const _default_10: any
|
|
383
|
-
export { _default_10 as
|
|
384
|
-
export { _default_10 as
|
|
454
|
+
declare const _default_10: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
455
|
+
export { _default_10 as ButtonsItem }
|
|
456
|
+
export { _default_10 as FoxButtonsItem }
|
|
385
457
|
|
|
386
|
-
declare const _default_11: any
|
|
458
|
+
declare const _default_11: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
387
459
|
export { _default_11 as FoxInputItem }
|
|
388
460
|
export { _default_11 as InputItem }
|
|
389
461
|
|
|
390
|
-
declare const _default_12: any
|
|
462
|
+
declare const _default_12: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
391
463
|
export { _default_12 as FoxSelectItem }
|
|
392
464
|
export { _default_12 as SelectItem }
|
|
393
465
|
|
|
394
|
-
declare const _default_13: any
|
|
466
|
+
declare const _default_13: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
395
467
|
export { _default_13 as DateItem }
|
|
396
468
|
export { _default_13 as FoxDateItem }
|
|
397
469
|
|
|
398
|
-
declare const _default_14: any
|
|
470
|
+
declare const _default_14: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
399
471
|
export { _default_14 as CalendarItem }
|
|
400
472
|
export { _default_14 as FoxCalendarItem }
|
|
401
473
|
|
|
402
|
-
declare const _default_15: any
|
|
474
|
+
declare const _default_15: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
403
475
|
export { _default_15 as FoxTimeItem }
|
|
404
476
|
export { _default_15 as TimeItem }
|
|
405
477
|
|
|
406
|
-
declare const _default_16: any
|
|
478
|
+
declare const _default_16: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
407
479
|
export { _default_16 as FoxTimeSelectItem }
|
|
408
480
|
export { _default_16 as TimeSelectItem }
|
|
409
481
|
|
|
410
|
-
declare const _default_17: any
|
|
482
|
+
declare const _default_17: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
411
483
|
export { _default_17 as FoxMoneyItem }
|
|
412
484
|
export { _default_17 as MoneyItem }
|
|
413
485
|
|
|
414
|
-
declare const _default_18: any
|
|
486
|
+
declare const _default_18: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
415
487
|
export { _default_18 as FoxInputNumberItem }
|
|
416
488
|
export { _default_18 as InputNumberItem }
|
|
417
489
|
|
|
418
|
-
declare const _default_19: any
|
|
490
|
+
declare const _default_19: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
419
491
|
export { _default_19 as CascaderItem }
|
|
420
492
|
export { _default_19 as FoxCascaderItem }
|
|
421
493
|
|
|
422
|
-
declare const _default_2: any
|
|
494
|
+
declare const _default_2: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
423
495
|
export { _default_2 as FoxPage }
|
|
424
496
|
export { _default_2 as Page }
|
|
425
497
|
|
|
426
|
-
declare const _default_20: any
|
|
498
|
+
declare const _default_20: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
427
499
|
export { _default_20 as AutocompleteItem }
|
|
428
500
|
export { _default_20 as FoxAutocompleteItem }
|
|
429
501
|
|
|
430
|
-
declare const _default_21: any
|
|
502
|
+
declare const _default_21: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
431
503
|
export { _default_21 as FoxTableMappingColumn }
|
|
432
504
|
export { _default_21 as TableMappingColumn }
|
|
433
505
|
|
|
434
|
-
declare const _default_22: any
|
|
506
|
+
declare const _default_22: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
435
507
|
export { _default_22 as FoxTableRadioColumn }
|
|
436
508
|
export { _default_22 as TableRadioColumn }
|
|
437
509
|
|
|
438
|
-
declare const _default_23: any
|
|
510
|
+
declare const _default_23: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
439
511
|
export { _default_23 as FoxTableSetting }
|
|
440
512
|
export { _default_23 as TableSetting }
|
|
441
513
|
|
|
442
|
-
declare const _default_24: any
|
|
514
|
+
declare const _default_24: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
443
515
|
export { _default_24 as FoxTableItem }
|
|
444
516
|
export { _default_24 as TableItem }
|
|
445
517
|
|
|
446
|
-
declare const _default_25: any
|
|
518
|
+
declare const _default_25: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
447
519
|
export { _default_25 as FoxRadioItem }
|
|
448
520
|
export { _default_25 as RadioItem }
|
|
449
521
|
|
|
450
|
-
declare const _default_26: any
|
|
522
|
+
declare const _default_26: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
451
523
|
export { _default_26 as CheckboxItem }
|
|
452
524
|
export { _default_26 as FoxCheckboxItem }
|
|
453
525
|
|
|
454
|
-
declare const _default_27: any
|
|
526
|
+
declare const _default_27: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
455
527
|
export { _default_27 as FoxRateItem }
|
|
456
528
|
export { _default_27 as RateItem }
|
|
457
529
|
|
|
458
|
-
declare const _default_28: any
|
|
530
|
+
declare const _default_28: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
459
531
|
export { _default_28 as FoxSwitchItem }
|
|
460
532
|
export { _default_28 as SwitchItem }
|
|
461
533
|
|
|
462
|
-
declare const _default_29: any
|
|
534
|
+
declare const _default_29: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
463
535
|
export { _default_29 as FoxTreeSelectItem }
|
|
464
536
|
export { _default_29 as TreeSelectItem }
|
|
465
537
|
|
|
466
|
-
declare const _default_3: any
|
|
538
|
+
declare const _default_3: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
467
539
|
export { _default_3 as FoxHeaderBar }
|
|
468
540
|
export { _default_3 as HeaderBar }
|
|
469
541
|
|
|
470
|
-
declare const _default_30: any
|
|
542
|
+
declare const _default_30: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
471
543
|
export { _default_30 as FoxGroupSetting }
|
|
472
544
|
export { _default_30 as GroupSetting }
|
|
473
545
|
|
|
474
|
-
declare const _default_31: any
|
|
475
|
-
export { _default_31 as
|
|
476
|
-
export { _default_31 as
|
|
546
|
+
declare const _default_31: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
547
|
+
export { _default_31 as FoxTreeItem }
|
|
548
|
+
export { _default_31 as TreeItem }
|
|
477
549
|
|
|
478
|
-
declare const _default_32: any
|
|
479
|
-
export { _default_32 as
|
|
480
|
-
export { _default_32 as
|
|
550
|
+
declare const _default_32: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
551
|
+
export { _default_32 as ActionsheetPane }
|
|
552
|
+
export { _default_32 as FoxActionsheetPane }
|
|
481
553
|
|
|
482
|
-
declare const _default_33: any
|
|
483
|
-
export { _default_33 as
|
|
484
|
-
export { _default_33 as
|
|
554
|
+
declare const _default_33: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
555
|
+
export { _default_33 as ActionsheetItem }
|
|
556
|
+
export { _default_33 as FoxActionsheetItem }
|
|
485
557
|
|
|
486
|
-
declare const _default_34: any
|
|
487
|
-
export { _default_34 as
|
|
488
|
-
export { _default_34 as
|
|
558
|
+
declare const _default_34: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
559
|
+
export { _default_34 as FoxPickerItem }
|
|
560
|
+
export { _default_34 as PickerItem }
|
|
489
561
|
|
|
490
|
-
declare const _default_35: any
|
|
491
|
-
export { _default_35 as
|
|
492
|
-
export { _default_35 as
|
|
562
|
+
declare const _default_35: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
563
|
+
export { _default_35 as FoxLinkItem }
|
|
564
|
+
export { _default_35 as LinkItem }
|
|
493
565
|
|
|
494
|
-
declare const _default_36: any
|
|
495
|
-
export { _default_36 as
|
|
496
|
-
export { _default_36 as
|
|
566
|
+
declare const _default_36: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
567
|
+
export { _default_36 as FoxTabsBar }
|
|
568
|
+
export { _default_36 as TabsBar }
|
|
497
569
|
|
|
498
|
-
declare const _default_37: any
|
|
499
|
-
export { _default_37 as
|
|
500
|
-
export { _default_37 as
|
|
570
|
+
declare const _default_37: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
571
|
+
export { _default_37 as FoxTabsContainer }
|
|
572
|
+
export { _default_37 as TabsContainer }
|
|
501
573
|
|
|
502
|
-
declare const _default_38: any
|
|
503
|
-
export { _default_38 as
|
|
504
|
-
export { _default_38 as
|
|
574
|
+
declare const _default_38: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
575
|
+
export { _default_38 as FoxTabsPane }
|
|
576
|
+
export { _default_38 as TabsPane }
|
|
505
577
|
|
|
506
|
-
declare const _default_39: any
|
|
507
|
-
export { _default_39 as
|
|
508
|
-
export { _default_39 as
|
|
578
|
+
declare const _default_39: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
579
|
+
export { _default_39 as FoxTabsFrame }
|
|
580
|
+
export { _default_39 as TabsFrame }
|
|
509
581
|
|
|
510
|
-
declare const _default_4: any
|
|
582
|
+
declare const _default_4: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
511
583
|
export { _default_4 as FooterBar }
|
|
512
584
|
export { _default_4 as FoxFooterBar }
|
|
513
585
|
|
|
514
|
-
declare const _default_40: any
|
|
515
|
-
export { _default_40 as
|
|
516
|
-
export { _default_40 as
|
|
586
|
+
declare const _default_40: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
587
|
+
export { _default_40 as FoxStepsBar }
|
|
588
|
+
export { _default_40 as StepsBar }
|
|
517
589
|
|
|
518
|
-
declare const _default_41: any
|
|
519
|
-
export { _default_41 as
|
|
520
|
-
export { _default_41 as
|
|
590
|
+
declare const _default_41: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
591
|
+
export { _default_41 as FloatingWindow }
|
|
592
|
+
export { _default_41 as FoxFloatingWindow }
|
|
521
593
|
|
|
522
|
-
declare const _default_42: any
|
|
523
|
-
export { _default_42 as
|
|
524
|
-
export { _default_42 as
|
|
594
|
+
declare const _default_42: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
595
|
+
export { _default_42 as FoxPopoverDialog }
|
|
596
|
+
export { _default_42 as PopoverDialog }
|
|
525
597
|
|
|
526
|
-
declare const _default_43: any
|
|
527
|
-
export { _default_43 as
|
|
528
|
-
export { _default_43 as
|
|
598
|
+
declare const _default_43: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
599
|
+
export { _default_43 as Foxpicker }
|
|
600
|
+
export { _default_43 as picker }
|
|
529
601
|
|
|
530
|
-
declare const _default_44: any
|
|
531
|
-
export { _default_44 as
|
|
532
|
-
export { _default_44 as
|
|
602
|
+
declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
603
|
+
export { _default_44 as Foxcalendarpicker }
|
|
604
|
+
export { _default_44 as calendarpicker }
|
|
533
605
|
|
|
534
|
-
declare const _default_45: any
|
|
535
|
-
export { _default_45 as
|
|
536
|
-
export { _default_45 as
|
|
606
|
+
declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
607
|
+
export { _default_45 as Foxcascaderpicker }
|
|
608
|
+
export { _default_45 as cascaderpicker }
|
|
537
609
|
|
|
538
|
-
declare const _default_46: any
|
|
539
|
-
export { _default_46 as
|
|
540
|
-
export { _default_46 as
|
|
610
|
+
declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
611
|
+
export { _default_46 as DialogItem }
|
|
612
|
+
export { _default_46 as FoxDialogItem }
|
|
541
613
|
|
|
542
|
-
declare const _default_47: any
|
|
543
|
-
export { _default_47 as
|
|
544
|
-
export { _default_47 as
|
|
614
|
+
declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
615
|
+
export { _default_47 as FoxOverLay }
|
|
616
|
+
export { _default_47 as OverLay }
|
|
545
617
|
|
|
546
|
-
declare const _default_48: any
|
|
547
|
-
export { _default_48 as
|
|
548
|
-
export { _default_48 as
|
|
618
|
+
declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
619
|
+
export { _default_48 as FoxPopup }
|
|
620
|
+
export { _default_48 as Popup }
|
|
549
621
|
|
|
550
|
-
declare const _default_49: any
|
|
551
|
-
export { _default_49 as
|
|
552
|
-
export { _default_49 as
|
|
622
|
+
declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
623
|
+
export { _default_49 as FoxSearchBar }
|
|
624
|
+
export { _default_49 as SearchBar }
|
|
553
625
|
|
|
554
|
-
declare const _default_5: any
|
|
626
|
+
declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
555
627
|
export { _default_5 as Content }
|
|
556
628
|
export { _default_5 as FoxContent }
|
|
557
629
|
|
|
558
|
-
declare const _default_50: any
|
|
559
|
-
export { _default_50 as
|
|
560
|
-
export { _default_50 as
|
|
630
|
+
declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
631
|
+
export { _default_50 as FoxInfiniteLoading }
|
|
632
|
+
export { _default_50 as InfiniteLoading }
|
|
561
633
|
|
|
562
|
-
declare const _default_51: any
|
|
563
|
-
export { _default_51 as
|
|
564
|
-
export { _default_51 as
|
|
634
|
+
declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
635
|
+
export { _default_51 as FoxPullRefresh }
|
|
636
|
+
export { _default_51 as PullRefresh }
|
|
565
637
|
|
|
566
|
-
declare const _default_52: any
|
|
567
|
-
export { _default_52 as
|
|
568
|
-
export { _default_52 as
|
|
638
|
+
declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
639
|
+
export { _default_52 as FoxMoreButton }
|
|
640
|
+
export { _default_52 as MoreButton }
|
|
569
641
|
|
|
570
|
-
declare const _default_53: any
|
|
571
|
-
export { _default_53 as
|
|
572
|
-
export { _default_53 as
|
|
642
|
+
declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
643
|
+
export { _default_53 as FloatingButton }
|
|
644
|
+
export { _default_53 as FoxFloatingButton }
|
|
573
645
|
|
|
574
|
-
declare const _default_54: any
|
|
575
|
-
export { _default_54 as
|
|
576
|
-
export { _default_54 as
|
|
646
|
+
declare const _default_54: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
647
|
+
export { _default_54 as FoxMapping }
|
|
648
|
+
export { _default_54 as Mapping }
|
|
577
649
|
|
|
578
|
-
declare const _default_55: any
|
|
579
|
-
export { _default_55 as
|
|
580
|
-
export { _default_55 as
|
|
650
|
+
declare const _default_55: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
651
|
+
export { _default_55 as FoxPrice }
|
|
652
|
+
export { _default_55 as Price }
|
|
581
653
|
|
|
582
|
-
declare const _default_56: any
|
|
583
|
-
export { _default_56 as
|
|
584
|
-
export { _default_56 as
|
|
654
|
+
declare const _default_56: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
655
|
+
export { _default_56 as FoxIndicator }
|
|
656
|
+
export { _default_56 as Indicator }
|
|
585
657
|
|
|
586
|
-
declare const _default_57: any
|
|
587
|
-
export { _default_57 as
|
|
588
|
-
export { _default_57 as
|
|
658
|
+
declare const _default_57: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
659
|
+
export { _default_57 as FoxText }
|
|
660
|
+
export { _default_57 as Text }
|
|
589
661
|
|
|
590
|
-
declare const _default_58: any
|
|
591
|
-
export { _default_58 as
|
|
592
|
-
export { _default_58 as
|
|
662
|
+
declare const _default_58: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
663
|
+
export { _default_58 as FoxTour }
|
|
664
|
+
export { _default_58 as Tour }
|
|
593
665
|
|
|
594
|
-
declare const _default_59: any
|
|
595
|
-
export { _default_59 as
|
|
596
|
-
export { _default_59 as
|
|
666
|
+
declare const _default_59: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
667
|
+
export { _default_59 as FoxNumberKeyboard }
|
|
668
|
+
export { _default_59 as NumberKeyboard }
|
|
597
669
|
|
|
598
|
-
declare const _default_6: any
|
|
670
|
+
declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
599
671
|
export { _default_6 as FoxGroup }
|
|
600
672
|
export { _default_6 as Group }
|
|
601
673
|
|
|
602
|
-
declare const
|
|
674
|
+
declare const _default_60: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
675
|
+
export { _default_60 as FoxShortPassword }
|
|
676
|
+
export { _default_60 as ShortPassword }
|
|
677
|
+
|
|
678
|
+
declare const _default_61: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
679
|
+
export { _default_61 as FoxSignature }
|
|
680
|
+
export { _default_61 as Signature }
|
|
681
|
+
|
|
682
|
+
declare const _default_62: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
683
|
+
export { _default_62 as DomainProvider }
|
|
684
|
+
export { _default_62 as FoxDomainProvider }
|
|
685
|
+
|
|
686
|
+
declare const _default_63: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
687
|
+
export { _default_63 as FoxRollingProvider }
|
|
688
|
+
export { _default_63 as RollingProvider }
|
|
689
|
+
|
|
690
|
+
declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
603
691
|
export { _default_7 as FoxItem }
|
|
604
692
|
export { _default_7 as Item }
|
|
605
693
|
|
|
606
|
-
declare const _default_8: any
|
|
694
|
+
declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
607
695
|
export { _default_8 as FoxSlotItem }
|
|
608
696
|
export { _default_8 as SlotItem }
|
|
609
697
|
|
|
610
|
-
declare const _default_9: any
|
|
698
|
+
declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
611
699
|
export { _default_9 as FoxRowItem }
|
|
612
700
|
export { _default_9 as RowItem }
|
|
613
701
|
|
|
614
|
-
/**
|
|
615
|
-
* anyNode
|
|
616
|
-
* @param name
|
|
617
|
-
* @param callbacks
|
|
618
|
-
* @returns
|
|
619
|
-
*/
|
|
620
|
-
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
621
|
-
|
|
622
702
|
/**
|
|
623
703
|
* 安装config domain
|
|
704
|
+
* @param descriptor domain组件描述
|
|
624
705
|
* @param name 名称
|
|
625
|
-
* @param props 属性
|
|
626
|
-
* @param ignores 忽略的属性
|
|
627
706
|
* @returns
|
|
628
707
|
*/
|
|
629
|
-
export declare function defineConfigDomain(
|
|
708
|
+
export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
|
|
709
|
+
domain: Domain;
|
|
710
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
711
|
+
};
|
|
630
712
|
|
|
631
713
|
/**
|
|
632
|
-
* 定义
|
|
714
|
+
* 定义data item
|
|
715
|
+
* @param domain domain
|
|
716
|
+
* @param name 名称
|
|
717
|
+
* @param descriptor 描述
|
|
718
|
+
* @param parentBroadcast parent broadcast
|
|
719
|
+
* @param parentValidateSchema parent validateSchema
|
|
633
720
|
* @returns
|
|
634
721
|
*/
|
|
635
|
-
export declare function defineDataItem(domain: Domain, name: string, descriptor:
|
|
722
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
636
723
|
broadcast: Broadcast;
|
|
637
724
|
validateSchema: ValidateSchema;
|
|
725
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
726
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
638
727
|
};
|
|
639
728
|
|
|
640
729
|
/**
|
|
641
730
|
* 安装domain
|
|
731
|
+
* @param descriptor domain组件描述
|
|
642
732
|
* @param name 名称
|
|
643
|
-
* @param
|
|
644
|
-
* @param ignores 忽略的属性
|
|
645
|
-
* @param exposes 暴露的方法
|
|
733
|
+
* @param broadcastCallbacks 消息
|
|
646
734
|
* @returns
|
|
647
735
|
*/
|
|
648
|
-
export declare function defineDomain(
|
|
736
|
+
export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
|
|
737
|
+
domain: Domain;
|
|
738
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* 定义domain item属性
|
|
743
|
+
*/
|
|
744
|
+
export declare function defineDomainItemProperty(props: {
|
|
745
|
+
disabled?: boolean | string;
|
|
746
|
+
readonly?: boolean | string;
|
|
747
|
+
browse?: 'off' | 'on';
|
|
748
|
+
}): {
|
|
749
|
+
itemTemplateRef: Ref<any, any>;
|
|
750
|
+
innerDisabled: Ref<boolean, boolean>;
|
|
751
|
+
disabled: Ref<boolean, boolean>;
|
|
752
|
+
innerReadonly: Ref<boolean, boolean>;
|
|
753
|
+
readonly: Ref<boolean, boolean>;
|
|
754
|
+
browse: Ref<"off" | "on", "off" | "on">;
|
|
755
|
+
};
|
|
649
756
|
|
|
650
757
|
/**
|
|
651
758
|
* 定义domain item
|
|
759
|
+
* @param descriptor 组件描述
|
|
760
|
+
* @param name 名称
|
|
761
|
+
* @param broadcastCallbacks 消息
|
|
652
762
|
* @returns
|
|
653
763
|
*/
|
|
654
|
-
export declare function defineItem(descriptor:
|
|
764
|
+
export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
|
|
765
|
+
broadcast: Broadcast;
|
|
766
|
+
validateSchema: ValidateSchema;
|
|
767
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
768
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
769
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
770
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
771
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
772
|
+
};
|
|
655
773
|
|
|
656
774
|
/**
|
|
657
775
|
* 创建page state
|
|
@@ -663,12 +781,16 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
|
|
|
663
781
|
|
|
664
782
|
/**
|
|
665
783
|
* 定义simple item
|
|
784
|
+
* @param descriptor simple组件描述
|
|
785
|
+
* @param name 名称
|
|
666
786
|
* @returns
|
|
667
787
|
*/
|
|
668
|
-
export declare function defineSimpleItem(): {
|
|
788
|
+
export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
|
|
669
789
|
emitEvent: (type: string, ...args: any[]) => void;
|
|
670
790
|
onEvent: (type: string, listener: EventListener_2) => void;
|
|
671
791
|
offEvent: (type: string, listener: EventListener_2) => void;
|
|
792
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
793
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
672
794
|
};
|
|
673
795
|
|
|
674
796
|
/**
|
|
@@ -677,30 +799,13 @@ export declare function defineSimpleItem(): {
|
|
|
677
799
|
*/
|
|
678
800
|
export declare function deleteGlobalValidator(type: string): void;
|
|
679
801
|
|
|
680
|
-
/**
|
|
681
|
-
* 组件描述
|
|
682
|
-
*/
|
|
683
|
-
export declare interface Descriptor {
|
|
684
|
-
componentName: string;
|
|
685
|
-
fieldName?: string;
|
|
686
|
-
valueName?: string;
|
|
687
|
-
valueType?: ValueType;
|
|
688
|
-
validate?: boolean;
|
|
689
|
-
readonly?: boolean;
|
|
690
|
-
disabled?: boolean;
|
|
691
|
-
pureDataValidate?: boolean;
|
|
692
|
-
validateHandler?: ValidateHandler;
|
|
693
|
-
validateCheckEvents?: string[];
|
|
694
|
-
validateResetEvents?: string[];
|
|
695
|
-
}
|
|
696
|
-
|
|
697
802
|
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
698
803
|
|
|
699
804
|
/**
|
|
700
805
|
* 禁用属性
|
|
701
806
|
* @param source
|
|
702
807
|
*/
|
|
703
|
-
export declare function disabledProperty(source: Ref): Ref
|
|
808
|
+
export declare function disabledProperty(source: Ref): Ref<boolean>;
|
|
704
809
|
|
|
705
810
|
export { divide }
|
|
706
811
|
|
|
@@ -731,10 +836,18 @@ export declare class Domain {
|
|
|
731
836
|
private _validateSchema;
|
|
732
837
|
get validateSchema(): ValidateSchema | null;
|
|
733
838
|
set validateSchema(val: ValidateSchema | null);
|
|
839
|
+
/**
|
|
840
|
+
* component public expose
|
|
841
|
+
*/
|
|
842
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
734
843
|
/**
|
|
735
844
|
* 属性集合
|
|
736
845
|
*/
|
|
737
846
|
private _props;
|
|
847
|
+
/**
|
|
848
|
+
* 本地数据集合
|
|
849
|
+
*/
|
|
850
|
+
private _datas;
|
|
738
851
|
/**
|
|
739
852
|
* 构造函数
|
|
740
853
|
* @param name
|
|
@@ -744,11 +857,34 @@ export declare class Domain {
|
|
|
744
857
|
* 销毁
|
|
745
858
|
*/
|
|
746
859
|
destroy(): void;
|
|
860
|
+
/**
|
|
861
|
+
* 设置数据
|
|
862
|
+
* @param key
|
|
863
|
+
* @param data
|
|
864
|
+
*/
|
|
865
|
+
setData(key: string | number | symbol, data: any): void;
|
|
866
|
+
/**
|
|
867
|
+
* 获取本地数据
|
|
868
|
+
* @param key
|
|
869
|
+
*/
|
|
870
|
+
getData(key: string | number | symbol): any;
|
|
871
|
+
/**
|
|
872
|
+
* 是否有本地数据
|
|
873
|
+
* @param key
|
|
874
|
+
* @returns
|
|
875
|
+
*/
|
|
876
|
+
hasData(key: string | number | symbol): boolean;
|
|
877
|
+
/**
|
|
878
|
+
* 删除本地数据
|
|
879
|
+
* @param key
|
|
880
|
+
* @returns
|
|
881
|
+
*/
|
|
882
|
+
deleteData(key: string | number | symbol): boolean;
|
|
747
883
|
/**
|
|
748
884
|
* 合并属性
|
|
749
885
|
* @param props
|
|
750
886
|
*/
|
|
751
|
-
merge(props: Record<string | number, any>, ignores?:
|
|
887
|
+
merge(props: Record<string | number, any>, ignores?: string[]): void;
|
|
752
888
|
/**
|
|
753
889
|
* 判断是否有属性
|
|
754
890
|
*/
|
|
@@ -792,20 +928,15 @@ export declare class Domain {
|
|
|
792
928
|
}
|
|
793
929
|
|
|
794
930
|
/**
|
|
795
|
-
*
|
|
931
|
+
* Domain组件描述
|
|
796
932
|
*/
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
emitEvent: {
|
|
801
|
-
(type: string, ...args: any[]): void;
|
|
802
|
-
};
|
|
803
|
-
onEvent: {
|
|
804
|
-
(type: string, listener: EventListener_2): void;
|
|
805
|
-
};
|
|
806
|
-
offEvent: {
|
|
807
|
-
(type: string, listener: EventListener_2): void;
|
|
933
|
+
declare interface DomainComponentDescriptor {
|
|
934
|
+
props?: Record<string, any> | {
|
|
935
|
+
(): Record<string, any>;
|
|
808
936
|
};
|
|
937
|
+
ignorePropKeys?: string[];
|
|
938
|
+
context: FoxSetupContext;
|
|
939
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
809
940
|
}
|
|
810
941
|
|
|
811
942
|
/**
|
|
@@ -813,6 +944,11 @@ export declare interface DomainItem {
|
|
|
813
944
|
*/
|
|
814
945
|
export declare const DomainKey: unique symbol;
|
|
815
946
|
|
|
947
|
+
/**
|
|
948
|
+
* exposed
|
|
949
|
+
*/
|
|
950
|
+
declare type EmitFn = (...args: any) => void;
|
|
951
|
+
|
|
816
952
|
/**
|
|
817
953
|
* event listener
|
|
818
954
|
*/
|
|
@@ -828,6 +964,11 @@ declare interface EventListener_2 {
|
|
|
828
964
|
*/
|
|
829
965
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
830
966
|
|
|
967
|
+
/**
|
|
968
|
+
* expose function
|
|
969
|
+
*/
|
|
970
|
+
declare type ExposeFn = (exposed?: Record<string, any>) => void;
|
|
971
|
+
|
|
831
972
|
/**
|
|
832
973
|
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
833
974
|
*
|
|
@@ -902,6 +1043,21 @@ export { FoxCollapseTransition }
|
|
|
902
1043
|
|
|
903
1044
|
export { FoxColorPicker }
|
|
904
1045
|
|
|
1046
|
+
/**
|
|
1047
|
+
* component public exposed
|
|
1048
|
+
*/
|
|
1049
|
+
declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* component public exposed
|
|
1053
|
+
*/
|
|
1054
|
+
declare type FoxComponentPublicProxy = {
|
|
1055
|
+
exposed: FoxComponentPublicExposed;
|
|
1056
|
+
$el?: HTMLElement;
|
|
1057
|
+
props: Record<string, any>;
|
|
1058
|
+
attrs: Record<string, any>;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
905
1061
|
export { FoxConfigProvider }
|
|
906
1062
|
|
|
907
1063
|
export { FoxContainer }
|
|
@@ -946,10 +1102,14 @@ export { FoxInput }
|
|
|
946
1102
|
|
|
947
1103
|
export { FoxInputNumber }
|
|
948
1104
|
|
|
1105
|
+
export { FoxInputTag }
|
|
1106
|
+
|
|
949
1107
|
export { FoxLink }
|
|
950
1108
|
|
|
951
1109
|
export { FoxMain }
|
|
952
1110
|
|
|
1111
|
+
export { FoxMention }
|
|
1112
|
+
|
|
953
1113
|
export { FoxMenu }
|
|
954
1114
|
|
|
955
1115
|
export { FoxMenuItem }
|
|
@@ -998,6 +1158,15 @@ export { FoxSelect }
|
|
|
998
1158
|
|
|
999
1159
|
export { FoxSelectV2 }
|
|
1000
1160
|
|
|
1161
|
+
/**
|
|
1162
|
+
* Fox setup context
|
|
1163
|
+
*/
|
|
1164
|
+
declare type FoxSetupContext = {
|
|
1165
|
+
attrs: Record<string, any>;
|
|
1166
|
+
emit: EmitFn;
|
|
1167
|
+
expose: ExposeFn;
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1001
1170
|
export { FoxSkeleton }
|
|
1002
1171
|
|
|
1003
1172
|
export { FoxSkeletonItem }
|
|
@@ -1028,6 +1197,11 @@ export { FoxTabs }
|
|
|
1028
1197
|
|
|
1029
1198
|
export { FoxTag }
|
|
1030
1199
|
|
|
1200
|
+
/**
|
|
1201
|
+
* template ref proxy
|
|
1202
|
+
*/
|
|
1203
|
+
declare type FoxTemplateRefProxy = any;
|
|
1204
|
+
|
|
1031
1205
|
export { FoxTimeline }
|
|
1032
1206
|
|
|
1033
1207
|
export { FoxTimelineItem }
|
|
@@ -1046,6 +1220,90 @@ export { FoxTreeSelect }
|
|
|
1046
1220
|
|
|
1047
1221
|
export { FoxTreeV2 }
|
|
1048
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* Fox UI
|
|
1225
|
+
*/
|
|
1226
|
+
declare interface FoxUI {
|
|
1227
|
+
/**
|
|
1228
|
+
* 版本号
|
|
1229
|
+
*/
|
|
1230
|
+
version: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* 安装
|
|
1233
|
+
* @param app
|
|
1234
|
+
* @param options
|
|
1235
|
+
*/
|
|
1236
|
+
install(app: App, options: FoxUIOptions): any;
|
|
1237
|
+
/**
|
|
1238
|
+
* 卸载
|
|
1239
|
+
*/
|
|
1240
|
+
unInstall(): void;
|
|
1241
|
+
/**
|
|
1242
|
+
* 更新Layout
|
|
1243
|
+
*
|
|
1244
|
+
* @param options
|
|
1245
|
+
* @param rootDomain
|
|
1246
|
+
*/
|
|
1247
|
+
updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
1248
|
+
/**
|
|
1249
|
+
* 设置scope getter
|
|
1250
|
+
* @param getter
|
|
1251
|
+
*/
|
|
1252
|
+
setScopeGetter(getter: ScopeGetter): void;
|
|
1253
|
+
/**
|
|
1254
|
+
* 获取scope getter
|
|
1255
|
+
* @param getter
|
|
1256
|
+
*/
|
|
1257
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1258
|
+
/**
|
|
1259
|
+
* 设置API
|
|
1260
|
+
* @param name
|
|
1261
|
+
* @param func
|
|
1262
|
+
* @param scope
|
|
1263
|
+
*/
|
|
1264
|
+
setAPI(name: string, func: any, scope?: string): void;
|
|
1265
|
+
/**
|
|
1266
|
+
* 获取API
|
|
1267
|
+
* @param name
|
|
1268
|
+
* @param scope
|
|
1269
|
+
*/
|
|
1270
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* 批量增加api
|
|
1273
|
+
* @param apis
|
|
1274
|
+
* @param scope
|
|
1275
|
+
*/
|
|
1276
|
+
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
1277
|
+
/**
|
|
1278
|
+
* 清空scope apis
|
|
1279
|
+
* @param scope
|
|
1280
|
+
*/
|
|
1281
|
+
clearScopeAPI(scope: string): void;
|
|
1282
|
+
/**
|
|
1283
|
+
* 获取root domain
|
|
1284
|
+
*/
|
|
1285
|
+
getRootDomain(): Domain;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* UI Options
|
|
1290
|
+
*/
|
|
1291
|
+
declare interface FoxUIOptions {
|
|
1292
|
+
install?: boolean;
|
|
1293
|
+
componentPrefix?: string;
|
|
1294
|
+
autoAdjustPageLayout?: boolean;
|
|
1295
|
+
resizeDebounceDelay?: number;
|
|
1296
|
+
headerBarHeight?: number;
|
|
1297
|
+
footerBarHeight?: number;
|
|
1298
|
+
safeAreaInset?: SafeAreaInset;
|
|
1299
|
+
pageLayout?: PageLayout;
|
|
1300
|
+
headerPadding?: Rect;
|
|
1301
|
+
contentPadding?: Rect;
|
|
1302
|
+
groupLayout?: GroupLayout;
|
|
1303
|
+
labelWidth?: number | string;
|
|
1304
|
+
[propName: string]: any;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1049
1307
|
/**
|
|
1050
1308
|
* Fox UI vue实例
|
|
1051
1309
|
*/
|
|
@@ -1058,6 +1316,14 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1058
1316
|
* 安装器
|
|
1059
1317
|
*/
|
|
1060
1318
|
private installers;
|
|
1319
|
+
/**
|
|
1320
|
+
* resize监听器
|
|
1321
|
+
*/
|
|
1322
|
+
private resizeListener;
|
|
1323
|
+
/**
|
|
1324
|
+
* resize observer
|
|
1325
|
+
*/
|
|
1326
|
+
private resizeObserver;
|
|
1061
1327
|
/**
|
|
1062
1328
|
* version
|
|
1063
1329
|
*/
|
|
@@ -1076,17 +1342,25 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1076
1342
|
*/
|
|
1077
1343
|
install(app: App, options?: FoxUIOptions): any;
|
|
1078
1344
|
/**
|
|
1079
|
-
*
|
|
1345
|
+
* 卸载
|
|
1346
|
+
*/
|
|
1347
|
+
unInstall(): void;
|
|
1348
|
+
/**
|
|
1349
|
+
* 更新Layout
|
|
1080
1350
|
*
|
|
1081
1351
|
* @param options
|
|
1082
1352
|
* @param rootDomain
|
|
1083
1353
|
*/
|
|
1084
|
-
|
|
1354
|
+
updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
1085
1355
|
/**
|
|
1086
1356
|
* 设置scope getter
|
|
1087
1357
|
* @param getter
|
|
1088
1358
|
*/
|
|
1089
1359
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1360
|
+
/**
|
|
1361
|
+
* 获取scope getter
|
|
1362
|
+
*/
|
|
1363
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1090
1364
|
/**
|
|
1091
1365
|
* 设置API
|
|
1092
1366
|
* @param name
|
|
@@ -1100,7 +1374,7 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1100
1374
|
* @param name
|
|
1101
1375
|
* @param scope
|
|
1102
1376
|
*/
|
|
1103
|
-
getAPI(
|
|
1377
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1104
1378
|
/**
|
|
1105
1379
|
* 批量增加api
|
|
1106
1380
|
* @param apis
|
|
@@ -1129,6 +1403,12 @@ export declare interface GenericFunction {
|
|
|
1129
1403
|
(...args: any[]): any;
|
|
1130
1404
|
}
|
|
1131
1405
|
|
|
1406
|
+
/**
|
|
1407
|
+
* icons
|
|
1408
|
+
* @returns
|
|
1409
|
+
*/
|
|
1410
|
+
export declare function getGlobalIcons(): Icons;
|
|
1411
|
+
|
|
1132
1412
|
/**
|
|
1133
1413
|
* 获取公共校验检查事件
|
|
1134
1414
|
*/
|
|
@@ -1177,11 +1457,73 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
1177
1457
|
*/
|
|
1178
1458
|
export declare function getRootDomain(): Domain;
|
|
1179
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
* Layout信息接口
|
|
1462
|
+
*/
|
|
1463
|
+
declare interface GroupLayout {
|
|
1464
|
+
type?: string;
|
|
1465
|
+
width?: number | string;
|
|
1466
|
+
column?: number;
|
|
1467
|
+
gutter?: number | string;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1180
1470
|
/**
|
|
1181
1471
|
* 是否支持symbol
|
|
1182
1472
|
*/
|
|
1183
1473
|
export declare const hasSymbol: boolean;
|
|
1184
1474
|
|
|
1475
|
+
/**
|
|
1476
|
+
* hint text function
|
|
1477
|
+
*/
|
|
1478
|
+
declare const HintTextFunction: HintTextTooltip;
|
|
1479
|
+
export { HintTextFunction as FoxHintText }
|
|
1480
|
+
export { HintTextFunction as HintText }
|
|
1481
|
+
|
|
1482
|
+
declare interface HintTextTooltip {
|
|
1483
|
+
/**
|
|
1484
|
+
* 显示
|
|
1485
|
+
* @param reference(引用组件 or 位置区域)
|
|
1486
|
+
* @param message
|
|
1487
|
+
* @param opts
|
|
1488
|
+
* @param only
|
|
1489
|
+
* @returns
|
|
1490
|
+
*/
|
|
1491
|
+
show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
|
|
1492
|
+
/**
|
|
1493
|
+
* 显示(在指定区域显示)
|
|
1494
|
+
* @param referenceRect
|
|
1495
|
+
* @param message
|
|
1496
|
+
* @param opts
|
|
1497
|
+
* @param only
|
|
1498
|
+
* @returns
|
|
1499
|
+
*/
|
|
1500
|
+
showInRect(referenceRect: InsetRect, message: string, opts: Record<string, any>, only?: boolean): string;
|
|
1501
|
+
/**
|
|
1502
|
+
* 隐藏
|
|
1503
|
+
* @param id
|
|
1504
|
+
*/
|
|
1505
|
+
hide(id?: string): void;
|
|
1506
|
+
/**
|
|
1507
|
+
* 额外属性
|
|
1508
|
+
*/
|
|
1509
|
+
[propName: string]: any;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
declare type Icons = {
|
|
1513
|
+
headerbar: {
|
|
1514
|
+
Left?: any;
|
|
1515
|
+
};
|
|
1516
|
+
radio: {
|
|
1517
|
+
CheckNormal?: any;
|
|
1518
|
+
Checked?: any;
|
|
1519
|
+
};
|
|
1520
|
+
checkbox: {
|
|
1521
|
+
CheckNormal?: any;
|
|
1522
|
+
Checked?: any;
|
|
1523
|
+
Indeterminate?: any;
|
|
1524
|
+
};
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1185
1527
|
/**
|
|
1186
1528
|
* 根据包含模版,抽取属性
|
|
1187
1529
|
* @param src
|
|
@@ -1198,6 +1540,51 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
1198
1540
|
*/
|
|
1199
1541
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
1200
1542
|
|
|
1543
|
+
/**
|
|
1544
|
+
* 获取是否为虚拟页面范围
|
|
1545
|
+
* @param defaultValue
|
|
1546
|
+
*/
|
|
1547
|
+
export declare function injectAbstractPageScope(defaultValue?: boolean): boolean | AbstractPageScope;
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* 获取content是否为虚拟页面范围
|
|
1551
|
+
* @param defaultValue
|
|
1552
|
+
* @returns
|
|
1553
|
+
*/
|
|
1554
|
+
export declare function injectAbstractPageScopeForContent(defaultValue?: boolean): boolean;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* 获取footerBar是否为虚拟页面范围
|
|
1558
|
+
* @param defaultValue
|
|
1559
|
+
* @returns
|
|
1560
|
+
*/
|
|
1561
|
+
export declare function injectAbstractPageScopeForFooterBar(defaultValue?: boolean): boolean;
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* 获取headerBar是否为虚拟页面范围
|
|
1565
|
+
* @param defaultValue
|
|
1566
|
+
* @returns
|
|
1567
|
+
*/
|
|
1568
|
+
export declare function injectAbstractPageScopeForHeaderBar(defaultValue?: boolean): boolean;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* 获取是否为内部页面范围
|
|
1572
|
+
* @param defaultValue
|
|
1573
|
+
*/
|
|
1574
|
+
export declare function injectInnerPageScope(defaultValue?: boolean): boolean;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
|
|
1578
|
+
*/
|
|
1579
|
+
export declare const InnerPageScopeKey: unique symbol;
|
|
1580
|
+
|
|
1581
|
+
declare type InsetRect = {
|
|
1582
|
+
top: number | null;
|
|
1583
|
+
right: number | null;
|
|
1584
|
+
bottom: number | null;
|
|
1585
|
+
left: number | null;
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1201
1588
|
/**
|
|
1202
1589
|
* 安装函数
|
|
1203
1590
|
*/
|
|
@@ -1205,12 +1592,6 @@ declare interface Installer {
|
|
|
1205
1592
|
(app: App, options?: any): void;
|
|
1206
1593
|
}
|
|
1207
1594
|
|
|
1208
|
-
/**
|
|
1209
|
-
* 安装校验规则
|
|
1210
|
-
* @param proxy
|
|
1211
|
-
*/
|
|
1212
|
-
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
1213
|
-
|
|
1214
1595
|
/**
|
|
1215
1596
|
* 获取整数长度
|
|
1216
1597
|
* @param value
|
|
@@ -1241,6 +1622,13 @@ export declare const isBrowser: boolean;
|
|
|
1241
1622
|
*/
|
|
1242
1623
|
export declare const isDate: (val: unknown) => val is Date;
|
|
1243
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* 是否display none
|
|
1627
|
+
* @param el
|
|
1628
|
+
* @returns
|
|
1629
|
+
*/
|
|
1630
|
+
export declare function isDisplayNone(el: HTMLElement): boolean;
|
|
1631
|
+
|
|
1244
1632
|
/**
|
|
1245
1633
|
* 是否空字符串
|
|
1246
1634
|
* @param v
|
|
@@ -1271,20 +1659,14 @@ export declare function isESModule(obj: any): obj is Object;
|
|
|
1271
1659
|
export declare const isFunction: (val: unknown) => val is Function;
|
|
1272
1660
|
|
|
1273
1661
|
/**
|
|
1274
|
-
* 是否是隐藏element
|
|
1275
|
-
*
|
|
1662
|
+
* 是否是隐藏 element(自身或任意父级隐藏)
|
|
1663
|
+
* - display: none
|
|
1664
|
+
* - visibility: hidden
|
|
1665
|
+
* - hidden 属性
|
|
1666
|
+
* - 父级隐藏
|
|
1276
1667
|
*/
|
|
1277
1668
|
export declare function isHidden(el: any): boolean;
|
|
1278
1669
|
|
|
1279
|
-
/**
|
|
1280
|
-
* 是否为内嵌页面
|
|
1281
|
-
* 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
|
|
1282
|
-
* @param domain
|
|
1283
|
-
* @param proxy
|
|
1284
|
-
* @returns
|
|
1285
|
-
*/
|
|
1286
|
-
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
1287
|
-
|
|
1288
1670
|
/**
|
|
1289
1671
|
* 是否为Map
|
|
1290
1672
|
* @param val
|
|
@@ -1369,6 +1751,13 @@ export declare function isTouch(): boolean;
|
|
|
1369
1751
|
*/
|
|
1370
1752
|
export declare function isWindow(obj: any): boolean;
|
|
1371
1753
|
|
|
1754
|
+
/**
|
|
1755
|
+
* 中划线格式转换为大驼峰
|
|
1756
|
+
* @param str
|
|
1757
|
+
* @returns
|
|
1758
|
+
*/
|
|
1759
|
+
export declare function kebabToPascal(str: string): string;
|
|
1760
|
+
|
|
1372
1761
|
/**
|
|
1373
1762
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
1374
1763
|
* @param x
|
|
@@ -1392,8 +1781,11 @@ export declare interface Matched {
|
|
|
1392
1781
|
name?: string | RegExp | {
|
|
1393
1782
|
(name: string): boolean;
|
|
1394
1783
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1784
|
+
resolve?: Resolve;
|
|
1785
|
+
resolved?: boolean;
|
|
1786
|
+
uniqueId?: string;
|
|
1787
|
+
cachePolicy?: MessageCachePolicy;
|
|
1788
|
+
messagingPolicy?: MessagingPolicy;
|
|
1397
1789
|
}
|
|
1398
1790
|
|
|
1399
1791
|
/**
|
|
@@ -1404,6 +1796,18 @@ export declare interface Matched {
|
|
|
1404
1796
|
*/
|
|
1405
1797
|
export declare function merge(first: any[], second: any[]): any[];
|
|
1406
1798
|
|
|
1799
|
+
/**
|
|
1800
|
+
* 消息缓存策略
|
|
1801
|
+
* None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
|
|
1802
|
+
*/
|
|
1803
|
+
export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* 消息传递策略
|
|
1807
|
+
* broadcast
|
|
1808
|
+
*/
|
|
1809
|
+
export declare type MessagingPolicy = 'Brodcast' | 'Once';
|
|
1810
|
+
|
|
1407
1811
|
export { multiply }
|
|
1408
1812
|
|
|
1409
1813
|
export { negate }
|
|
@@ -1431,6 +1835,13 @@ export declare const objectToString: () => string;
|
|
|
1431
1835
|
*/
|
|
1432
1836
|
export declare function once(func: GenericFunction): GenericFunction;
|
|
1433
1837
|
|
|
1838
|
+
/**
|
|
1839
|
+
* 覆盖更新公共Icon
|
|
1840
|
+
* @param icons
|
|
1841
|
+
* @param merge
|
|
1842
|
+
*/
|
|
1843
|
+
export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
|
|
1844
|
+
|
|
1434
1845
|
/**
|
|
1435
1846
|
* 覆盖更新公共的校验处理器
|
|
1436
1847
|
* @param validateHandler
|
|
@@ -1441,12 +1852,17 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
|
|
|
1441
1852
|
* padding
|
|
1442
1853
|
*/
|
|
1443
1854
|
export declare interface Padding {
|
|
1444
|
-
left: number | null;
|
|
1445
|
-
top: number | null;
|
|
1446
|
-
right: number | null;
|
|
1447
|
-
bottom: number | null;
|
|
1855
|
+
left: number | string | null;
|
|
1856
|
+
top: number | string | null;
|
|
1857
|
+
right: number | string | null;
|
|
1858
|
+
bottom: number | string | null;
|
|
1448
1859
|
}
|
|
1449
1860
|
|
|
1861
|
+
/**
|
|
1862
|
+
* pad zero
|
|
1863
|
+
*/
|
|
1864
|
+
export declare const padZero: (num: number | string, length?: number) => string;
|
|
1865
|
+
|
|
1450
1866
|
/**
|
|
1451
1867
|
* page layout
|
|
1452
1868
|
*/
|
|
@@ -1455,11 +1871,14 @@ export declare interface PageLayout {
|
|
|
1455
1871
|
height?: number | string;
|
|
1456
1872
|
headerHeight?: number | string;
|
|
1457
1873
|
footerHeight?: number | string;
|
|
1458
|
-
headerPadding?: Padding
|
|
1459
|
-
footerPadding?: Padding
|
|
1460
|
-
contentPadding?: Padding
|
|
1874
|
+
headerPadding?: Partial<Padding>;
|
|
1875
|
+
footerPadding?: Partial<Padding>;
|
|
1876
|
+
contentPadding?: Partial<Padding>;
|
|
1461
1877
|
}
|
|
1462
1878
|
|
|
1879
|
+
/**
|
|
1880
|
+
* page state
|
|
1881
|
+
*/
|
|
1463
1882
|
export declare interface PageState {
|
|
1464
1883
|
width: number;
|
|
1465
1884
|
height: number;
|
|
@@ -1481,6 +1900,22 @@ export declare interface PageState {
|
|
|
1481
1900
|
footerMounted?: boolean;
|
|
1482
1901
|
}
|
|
1483
1902
|
|
|
1903
|
+
/**
|
|
1904
|
+
* 大驼峰转换为中划线
|
|
1905
|
+
* @param str
|
|
1906
|
+
* @returns
|
|
1907
|
+
*/
|
|
1908
|
+
export declare function pascalToKebab<T extends string>(str: string): string;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* 持久消息
|
|
1912
|
+
*/
|
|
1913
|
+
declare interface PersistantMessage {
|
|
1914
|
+
matched: Matched;
|
|
1915
|
+
action: string;
|
|
1916
|
+
args: any[];
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1484
1919
|
/**
|
|
1485
1920
|
* 坐标
|
|
1486
1921
|
*/
|
|
@@ -1489,6 +1924,13 @@ export declare interface Point {
|
|
|
1489
1924
|
y: number;
|
|
1490
1925
|
}
|
|
1491
1926
|
|
|
1927
|
+
/**
|
|
1928
|
+
* prevent default
|
|
1929
|
+
* @param event
|
|
1930
|
+
* @param isStopPropagation
|
|
1931
|
+
*/
|
|
1932
|
+
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
1933
|
+
|
|
1492
1934
|
/**
|
|
1493
1935
|
* 优先策略
|
|
1494
1936
|
*/
|
|
@@ -1504,7 +1946,22 @@ export declare enum PriorityPolicy {
|
|
|
1504
1946
|
* @param policy
|
|
1505
1947
|
* @param filter
|
|
1506
1948
|
*/
|
|
1507
|
-
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref
|
|
1949
|
+
export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* 设置虚拟页面范围
|
|
1953
|
+
* 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
|
|
1954
|
+
* 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
|
|
1955
|
+
* @param value
|
|
1956
|
+
*/
|
|
1957
|
+
export declare function provideAbstractPageScope(value: boolean | AbstractPageScope): void;
|
|
1958
|
+
|
|
1959
|
+
/**
|
|
1960
|
+
* 设置内部页面范围
|
|
1961
|
+
* 内部页面,默认适配父亲容器尺寸,not watch resize
|
|
1962
|
+
* @param value
|
|
1963
|
+
*/
|
|
1964
|
+
export declare function provideInnerPageScope(value: boolean): void;
|
|
1508
1965
|
|
|
1509
1966
|
export declare const raf: any;
|
|
1510
1967
|
|
|
@@ -1512,9 +1969,19 @@ export declare const raf: any;
|
|
|
1512
1969
|
* 只读属性
|
|
1513
1970
|
* @param source
|
|
1514
1971
|
*/
|
|
1515
|
-
export declare function readonlyProperty(source: Ref): Ref
|
|
1972
|
+
export declare function readonlyProperty(source: Ref): Ref<boolean>;
|
|
1516
1973
|
|
|
1974
|
+
/**
|
|
1975
|
+
* Rect类型
|
|
1976
|
+
*/
|
|
1517
1977
|
declare interface Rect {
|
|
1978
|
+
left: number;
|
|
1979
|
+
top: number;
|
|
1980
|
+
right: number;
|
|
1981
|
+
bottom: number;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
declare interface Rect_2 {
|
|
1518
1985
|
top: number;
|
|
1519
1986
|
left: number;
|
|
1520
1987
|
right: number;
|
|
@@ -1523,6 +1990,11 @@ declare interface Rect {
|
|
|
1523
1990
|
height: number;
|
|
1524
1991
|
}
|
|
1525
1992
|
|
|
1993
|
+
/**
|
|
1994
|
+
* 消息确认函数
|
|
1995
|
+
*/
|
|
1996
|
+
declare type Resolve = (...args: any) => void;
|
|
1997
|
+
|
|
1526
1998
|
/**
|
|
1527
1999
|
* 结果类型
|
|
1528
2000
|
*/
|
|
@@ -1543,6 +2015,14 @@ export declare interface SafeAreaInset {
|
|
|
1543
2015
|
bottom: number | string;
|
|
1544
2016
|
}
|
|
1545
2017
|
|
|
2018
|
+
/**
|
|
2019
|
+
* scope getter
|
|
2020
|
+
* 需要保证该函数能够在 InjectionContext 上下文中允许
|
|
2021
|
+
*/
|
|
2022
|
+
declare interface ScopeGetter {
|
|
2023
|
+
(): string | null;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
1546
2026
|
/**
|
|
1547
2027
|
* 设置公共校验检查事件
|
|
1548
2028
|
* @param events
|
|
@@ -1573,6 +2053,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1573
2053
|
*/
|
|
1574
2054
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1575
2055
|
|
|
2056
|
+
/**
|
|
2057
|
+
* simple组件描述
|
|
2058
|
+
*/
|
|
2059
|
+
declare interface SimpleComponentDescriptor {
|
|
2060
|
+
context: FoxSetupContext;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
1576
2063
|
/**
|
|
1577
2064
|
* size
|
|
1578
2065
|
*/
|
|
@@ -1589,6 +2076,18 @@ declare interface Size {
|
|
|
1589
2076
|
*/
|
|
1590
2077
|
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1591
2078
|
|
|
2079
|
+
declare const ToastFunction: {
|
|
2080
|
+
text(msg: string, opts?: {}): /*elided*/ any;
|
|
2081
|
+
success(msg: string, opts?: {}): /*elided*/ any;
|
|
2082
|
+
fail(msg: string, opts?: {}): /*elided*/ any;
|
|
2083
|
+
warn(msg: string, opts?: {}): /*elided*/ any;
|
|
2084
|
+
loading(msg: string, opts?: {}): /*elided*/ any;
|
|
2085
|
+
hide(id?: string): void;
|
|
2086
|
+
install(app: any): void;
|
|
2087
|
+
};
|
|
2088
|
+
export { ToastFunction as FoxToast }
|
|
2089
|
+
export { ToastFunction as Toast }
|
|
2090
|
+
|
|
1592
2091
|
/**
|
|
1593
2092
|
* 转换为boolean值
|
|
1594
2093
|
* @param val
|
|
@@ -1615,13 +2114,15 @@ export declare function toPadding(rect: any): Padding;
|
|
|
1615
2114
|
*/
|
|
1616
2115
|
export declare function toPx(value: number | string, size?: number): number;
|
|
1617
2116
|
|
|
2117
|
+
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
2118
|
+
|
|
1618
2119
|
/**
|
|
1619
|
-
* to px
|
|
2120
|
+
* to px string
|
|
1620
2121
|
* @param value
|
|
1621
2122
|
* @parma size
|
|
1622
2123
|
* @returns
|
|
1623
2124
|
*/
|
|
1624
|
-
export declare const
|
|
2125
|
+
export declare const toPxString: (value: string | number, size?: number) => string;
|
|
1625
2126
|
|
|
1626
2127
|
export declare const toTypeString: (value: unknown) => string;
|
|
1627
2128
|
|
|
@@ -1687,8 +2188,8 @@ export { unNumberFormat }
|
|
|
1687
2188
|
/**
|
|
1688
2189
|
* 更新 page state
|
|
1689
2190
|
* @param state
|
|
1690
|
-
* @param pageLayout
|
|
1691
|
-
* @param overrideProps
|
|
2191
|
+
* @param pageLayout(领域设置)
|
|
2192
|
+
* @param overrideProps(组件属性)
|
|
1692
2193
|
* @param root
|
|
1693
2194
|
* @param rootWidth
|
|
1694
2195
|
* @param rootHeight
|
|
@@ -1699,22 +2200,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
|
|
|
1699
2200
|
|
|
1700
2201
|
/**
|
|
1701
2202
|
* 使用broadcast
|
|
1702
|
-
* @param
|
|
2203
|
+
* @param expose
|
|
1703
2204
|
* @returns
|
|
1704
2205
|
*/
|
|
1705
|
-
export declare function useBroadcast(
|
|
2206
|
+
export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
|
|
1706
2207
|
|
|
1707
2208
|
/**
|
|
1708
2209
|
* 获取当前domain
|
|
1709
2210
|
* @returns
|
|
1710
2211
|
*/
|
|
1711
|
-
export declare function useDomain(
|
|
1712
|
-
|
|
1713
|
-
/**
|
|
1714
|
-
* use expose
|
|
1715
|
-
* @param apis
|
|
1716
|
-
*/
|
|
1717
|
-
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
2212
|
+
export declare function useDomain(): Domain | null;
|
|
1718
2213
|
|
|
1719
2214
|
/**
|
|
1720
2215
|
* 获取内部可用size
|
|
@@ -1762,7 +2257,7 @@ export declare function useRawTouch(): {
|
|
|
1762
2257
|
};
|
|
1763
2258
|
};
|
|
1764
2259
|
|
|
1765
|
-
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) =>
|
|
2260
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
|
|
1766
2261
|
|
|
1767
2262
|
/**
|
|
1768
2263
|
* 获取size
|
|
@@ -1771,6 +2266,15 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
|
|
|
1771
2266
|
*/
|
|
1772
2267
|
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1773
2268
|
|
|
2269
|
+
/**
|
|
2270
|
+
* 获取child slot
|
|
2271
|
+
* @param slot
|
|
2272
|
+
* @returns
|
|
2273
|
+
*/
|
|
2274
|
+
export declare function useSlotChildren(slot?: () => VNode[]): {
|
|
2275
|
+
getChildren: () => VNode[];
|
|
2276
|
+
};
|
|
2277
|
+
|
|
1774
2278
|
/**
|
|
1775
2279
|
* 获取响应式touch对象
|
|
1776
2280
|
* @returns
|
|
@@ -1779,70 +2283,54 @@ export declare function useTouch(): {
|
|
|
1779
2283
|
move: EventListener;
|
|
1780
2284
|
start: EventListener;
|
|
1781
2285
|
reset: () => void;
|
|
1782
|
-
startX:
|
|
1783
|
-
startY:
|
|
1784
|
-
startTime:
|
|
1785
|
-
duration:
|
|
1786
|
-
moveX:
|
|
1787
|
-
moveY:
|
|
1788
|
-
deltaX:
|
|
1789
|
-
deltaY:
|
|
1790
|
-
offsetX:
|
|
1791
|
-
offsetY:
|
|
1792
|
-
direction:
|
|
2286
|
+
startX: Ref<number, number>;
|
|
2287
|
+
startY: Ref<number, number>;
|
|
2288
|
+
startTime: Ref<number, number>;
|
|
2289
|
+
duration: Ref<number, number>;
|
|
2290
|
+
moveX: Ref<number, number>;
|
|
2291
|
+
moveY: Ref<number, number>;
|
|
2292
|
+
deltaX: Ref<number, number>;
|
|
2293
|
+
deltaY: Ref<number, number>;
|
|
2294
|
+
offsetX: Ref<number, number>;
|
|
2295
|
+
offsetY: Ref<number, number>;
|
|
2296
|
+
direction: Ref<Direction, Direction>;
|
|
1793
2297
|
isVertical: () => boolean;
|
|
1794
2298
|
isHorizontal: () => boolean;
|
|
1795
2299
|
};
|
|
1796
2300
|
|
|
1797
|
-
/**
|
|
1798
|
-
* 校验条件
|
|
1799
|
-
*/
|
|
1800
|
-
export declare interface ValidateCondition {
|
|
1801
|
-
deep?: boolean;
|
|
1802
|
-
include?: string[];
|
|
1803
|
-
exclude?: string[];
|
|
1804
|
-
ignoreHidden?: boolean;
|
|
1805
|
-
ignoreDisabled?: boolean;
|
|
1806
|
-
ignoreReadonly?: boolean;
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
2301
|
/**
|
|
1810
2302
|
* 校验器handler
|
|
1811
2303
|
*/
|
|
1812
|
-
|
|
2304
|
+
declare interface ValidateHandler {
|
|
1813
2305
|
/**
|
|
1814
2306
|
* 错误处理
|
|
1815
2307
|
* @param errorMsg
|
|
1816
2308
|
* @param proxy
|
|
1817
2309
|
*
|
|
1818
2310
|
*/
|
|
1819
|
-
error?(errorMsg: string, proxy:
|
|
2311
|
+
error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
|
|
1820
2312
|
/**
|
|
1821
2313
|
* 重置处理
|
|
1822
2314
|
* @param proxy
|
|
1823
|
-
*
|
|
1824
2315
|
*/
|
|
1825
|
-
reset?(proxy:
|
|
2316
|
+
reset?(proxy: FoxComponentPublicProxy): void;
|
|
1826
2317
|
/**
|
|
1827
2318
|
* 成功处理
|
|
1828
2319
|
* @param proxy
|
|
1829
|
-
*
|
|
1830
2320
|
*/
|
|
1831
|
-
success?(proxy:
|
|
2321
|
+
success?(proxy: FoxComponentPublicProxy): void;
|
|
1832
2322
|
/**
|
|
1833
2323
|
* 规则装饰处理
|
|
1834
2324
|
* @param newRule
|
|
1835
2325
|
* @param oldRule
|
|
1836
2326
|
* @param proxy
|
|
1837
|
-
*
|
|
1838
2327
|
*/
|
|
1839
|
-
decorate?(newRule: Rule, oldRule: Rule, proxy:
|
|
2328
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
|
|
1840
2329
|
/**
|
|
1841
2330
|
* 获取value
|
|
1842
2331
|
* @param proxy
|
|
1843
|
-
*
|
|
1844
2332
|
*/
|
|
1845
|
-
getValue?(proxy:
|
|
2333
|
+
getValue?(proxy: FoxComponentPublicProxy): any;
|
|
1846
2334
|
}
|
|
1847
2335
|
|
|
1848
2336
|
/**
|
|
@@ -1870,7 +2358,7 @@ export declare class ValidateSchema {
|
|
|
1870
2358
|
*/
|
|
1871
2359
|
private descriptor;
|
|
1872
2360
|
/**
|
|
1873
|
-
*
|
|
2361
|
+
* 组件public proxy
|
|
1874
2362
|
*/
|
|
1875
2363
|
private proxy;
|
|
1876
2364
|
/**
|
|
@@ -1883,7 +2371,7 @@ export declare class ValidateSchema {
|
|
|
1883
2371
|
* @param descriptor
|
|
1884
2372
|
* @param proxy
|
|
1885
2373
|
*/
|
|
1886
|
-
constructor(parent: ValidateSchema | null, descriptor:
|
|
2374
|
+
constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
|
|
1887
2375
|
/**
|
|
1888
2376
|
* 初始化
|
|
1889
2377
|
*/
|
|
@@ -1967,7 +2455,7 @@ export declare class ValidateSchema {
|
|
|
1967
2455
|
export declare const ValidateSchemaKey: unique symbol;
|
|
1968
2456
|
|
|
1969
2457
|
/**
|
|
1970
|
-
* value
|
|
2458
|
+
* value 格式化
|
|
1971
2459
|
*/
|
|
1972
2460
|
export declare interface ValueFormat<T, K> {
|
|
1973
2461
|
(value: T): K;
|
|
@@ -1983,6 +2471,6 @@ export declare function valueLength(val: unknown): number;
|
|
|
1983
2471
|
/**
|
|
1984
2472
|
* value 类型
|
|
1985
2473
|
*/
|
|
1986
|
-
|
|
2474
|
+
declare type ValueType = 'string' | 'number' | 'date';
|
|
1987
2475
|
|
|
1988
2476
|
export { }
|