@fox-js/foxui-pc 4.0.1-6 → 4.0.1-61
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 +7622 -3641
- 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 +343 -46
- package/package.json +7 -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,7 +9,6 @@ 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 { extend } from '@fox-js/fox';
|
|
14
12
|
import { ElAffix as FoxAffix } from 'element-plus';
|
|
15
13
|
import { ElAlert as FoxAlert } from 'element-plus';
|
|
16
14
|
import { ElAside as FoxAside } from 'element-plus';
|
|
@@ -105,27 +103,12 @@ import { ElTree as FoxTree } from 'element-plus';
|
|
|
105
103
|
import { ElTreeSelect as FoxTreeSelect } from 'element-plus';
|
|
106
104
|
import { ElTreeV2 as FoxTreeV2 } from 'element-plus';
|
|
107
105
|
import { ElUpload as FoxUpload } from 'element-plus';
|
|
108
|
-
import { isArray } from '@fox-js/fox';
|
|
109
|
-
import { isDate } from '@fox-js/fox';
|
|
110
|
-
import { isEqual } from '@fox-js/fox';
|
|
111
|
-
import { isESModule } from '@fox-js/fox';
|
|
112
|
-
import { isFunction } from '@fox-js/fox';
|
|
113
|
-
import { isMap } from '@fox-js/fox';
|
|
114
|
-
import { isObject } from '@fox-js/fox';
|
|
115
|
-
import { isPlainObject } from '@fox-js/fox';
|
|
116
|
-
import { isPromise } from '@fox-js/fox';
|
|
117
|
-
import { isSet } from '@fox-js/fox';
|
|
118
|
-
import { isString } from '@fox-js/fox';
|
|
119
|
-
import { isSymbol } from '@fox-js/fox';
|
|
120
106
|
import type { MethodOptions } from 'vue';
|
|
121
107
|
import { multiply } from '@fox-js/big-decimal';
|
|
122
108
|
import { negate } from '@fox-js/big-decimal';
|
|
123
109
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
124
110
|
import { Ref } from 'vue';
|
|
125
111
|
import { Rule } from '@fox-js/validator';
|
|
126
|
-
import { toBoolean } from '@fox-js/fox';
|
|
127
|
-
import { toNumber } from '@fox-js/fox';
|
|
128
|
-
import { toTypeString } from '@fox-js/fox';
|
|
129
112
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
130
113
|
import { UnwrapNestedRefs } from 'vue';
|
|
131
114
|
import { UnwrapRef } from 'vue';
|
|
@@ -219,6 +202,8 @@ export declare interface BroadcastCallback {
|
|
|
219
202
|
|
|
220
203
|
export declare const BroadcastKey: unique symbol;
|
|
221
204
|
|
|
205
|
+
export declare function cancelRaf(id: number): void;
|
|
206
|
+
|
|
222
207
|
export declare const CascaderItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
223
208
|
|
|
224
209
|
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -228,7 +213,15 @@ export declare const CheckboxItem: DefineComponent<unknown, object, {}, Computed
|
|
|
228
213
|
*/
|
|
229
214
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
230
215
|
|
|
231
|
-
|
|
216
|
+
/**
|
|
217
|
+
* 克隆对象
|
|
218
|
+
* @param target
|
|
219
|
+
* @param source
|
|
220
|
+
* @param plain
|
|
221
|
+
*
|
|
222
|
+
* @returns
|
|
223
|
+
*/
|
|
224
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
232
225
|
|
|
233
226
|
export { compareTo }
|
|
234
227
|
|
|
@@ -261,13 +254,122 @@ export declare const DataItemsKey: unique symbol;
|
|
|
261
254
|
|
|
262
255
|
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
263
256
|
|
|
257
|
+
export declare const DateUtils: {
|
|
258
|
+
/**
|
|
259
|
+
* 格式化
|
|
260
|
+
* @param date
|
|
261
|
+
* @param template
|
|
262
|
+
* @returns
|
|
263
|
+
*/
|
|
264
|
+
format(date: Date, template: string): string;
|
|
265
|
+
/**
|
|
266
|
+
* 解析
|
|
267
|
+
* @param str
|
|
268
|
+
* @param template
|
|
269
|
+
*/
|
|
270
|
+
parser(str: string, template: string): Date;
|
|
271
|
+
/**
|
|
272
|
+
* 是否为闫年
|
|
273
|
+
* @return {Boolse} true|false
|
|
274
|
+
*/
|
|
275
|
+
isLeapYear(y: number): boolean;
|
|
276
|
+
/**
|
|
277
|
+
* 返回星期数
|
|
278
|
+
* @return {String}
|
|
279
|
+
*/
|
|
280
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
281
|
+
/**
|
|
282
|
+
* 返回星期数
|
|
283
|
+
* @return {Number}
|
|
284
|
+
*/
|
|
285
|
+
getMonthPreDay(year: number, month: number): number;
|
|
286
|
+
/**
|
|
287
|
+
* 返回月份天数
|
|
288
|
+
* @return {Number}
|
|
289
|
+
*/
|
|
290
|
+
getMonthDays(year: string, month: string): number;
|
|
291
|
+
/**
|
|
292
|
+
* 补齐数字位数
|
|
293
|
+
* @return {string}
|
|
294
|
+
*/
|
|
295
|
+
getNumTwoBit(n: number): string;
|
|
296
|
+
/**
|
|
297
|
+
* 日期对象转成字符串
|
|
298
|
+
* @return {string}
|
|
299
|
+
*/
|
|
300
|
+
date2Str: (date: Date, split?: string) => string;
|
|
301
|
+
/**
|
|
302
|
+
* 返回日期格式字符串
|
|
303
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
304
|
+
* @return {string} '2014-12-31'
|
|
305
|
+
*/
|
|
306
|
+
getDay(i: number): string;
|
|
307
|
+
/**
|
|
308
|
+
* 时间比较
|
|
309
|
+
* @return
|
|
310
|
+
*/
|
|
311
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
312
|
+
/**
|
|
313
|
+
* 时间是否相等
|
|
314
|
+
* @return
|
|
315
|
+
*/
|
|
316
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
317
|
+
/**
|
|
318
|
+
* get month week
|
|
319
|
+
* @param year
|
|
320
|
+
* @param month
|
|
321
|
+
* @param date
|
|
322
|
+
* @param firstDayOfWeek
|
|
323
|
+
* @returns
|
|
324
|
+
*/
|
|
325
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
326
|
+
/**
|
|
327
|
+
* get year week
|
|
328
|
+
* @param year
|
|
329
|
+
* @param month
|
|
330
|
+
* @param date
|
|
331
|
+
* @param firstDayOfWeek
|
|
332
|
+
* @returns
|
|
333
|
+
*/
|
|
334
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
335
|
+
/**
|
|
336
|
+
* get week date
|
|
337
|
+
*/
|
|
338
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
339
|
+
/**
|
|
340
|
+
* format result date
|
|
341
|
+
*/
|
|
342
|
+
formatResultDate: (date: string) => string[];
|
|
343
|
+
/**
|
|
344
|
+
* 判断日期是否在范围内
|
|
345
|
+
* @param date
|
|
346
|
+
* @param startDate
|
|
347
|
+
* @param span 允许负数
|
|
348
|
+
*/
|
|
349
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
350
|
+
/**
|
|
351
|
+
* 判断日期是否在范围内
|
|
352
|
+
* @param date
|
|
353
|
+
* @param startDate
|
|
354
|
+
* @param span
|
|
355
|
+
*/
|
|
356
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
357
|
+
};
|
|
358
|
+
|
|
264
359
|
/**
|
|
265
|
-
* 防抖函数
|
|
360
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
266
361
|
* @param func 函数
|
|
267
|
-
* @param
|
|
362
|
+
* @param delay 防止抖动毫秒数
|
|
268
363
|
* @returns
|
|
269
364
|
*/
|
|
270
|
-
export declare function debounce(func: GenericFunction,
|
|
365
|
+
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* 防抖Ref
|
|
369
|
+
* @param value
|
|
370
|
+
* @param delay
|
|
371
|
+
*/
|
|
372
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
271
373
|
|
|
272
374
|
/**
|
|
273
375
|
* 获取小数长度
|
|
@@ -286,6 +388,15 @@ export default _default;
|
|
|
286
388
|
*/
|
|
287
389
|
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
288
390
|
|
|
391
|
+
/**
|
|
392
|
+
* 安装config domain
|
|
393
|
+
* @param name 名称
|
|
394
|
+
* @param props 属性
|
|
395
|
+
* @param ignores 忽略的属性
|
|
396
|
+
* @returns
|
|
397
|
+
*/
|
|
398
|
+
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
399
|
+
|
|
289
400
|
/**
|
|
290
401
|
* 定义domain data item
|
|
291
402
|
* @returns
|
|
@@ -342,6 +453,8 @@ export declare interface Descriptor {
|
|
|
342
453
|
|
|
343
454
|
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
344
455
|
|
|
456
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
457
|
+
|
|
345
458
|
/**
|
|
346
459
|
* 禁用属性
|
|
347
460
|
* @param source
|
|
@@ -459,6 +572,8 @@ export declare interface DomainItem {
|
|
|
459
572
|
*/
|
|
460
573
|
export declare const DomainKey: unique symbol;
|
|
461
574
|
|
|
575
|
+
export declare const DomainProvider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
576
|
+
|
|
462
577
|
/**
|
|
463
578
|
* event listener
|
|
464
579
|
*/
|
|
@@ -474,7 +589,12 @@ declare interface EventListener_2 {
|
|
|
474
589
|
*/
|
|
475
590
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
476
591
|
|
|
477
|
-
|
|
592
|
+
/**
|
|
593
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
594
|
+
*
|
|
595
|
+
* @returns
|
|
596
|
+
*/
|
|
597
|
+
export declare function extend(...args: any[]): any;
|
|
478
598
|
|
|
479
599
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
480
600
|
|
|
@@ -729,6 +849,7 @@ declare interface FoxUI {
|
|
|
729
849
|
* UI Options
|
|
730
850
|
*/
|
|
731
851
|
declare interface FoxUIOptions {
|
|
852
|
+
install?: boolean;
|
|
732
853
|
headerBarHeight?: number;
|
|
733
854
|
footerBarHeight?: number;
|
|
734
855
|
safeAreaInset?: SafeAreaInset;
|
|
@@ -881,6 +1002,11 @@ declare interface GroupLayout {
|
|
|
881
1002
|
gutter: number;
|
|
882
1003
|
}
|
|
883
1004
|
|
|
1005
|
+
/**
|
|
1006
|
+
* 是否支持symbol
|
|
1007
|
+
*/
|
|
1008
|
+
export declare const hasSymbol: boolean;
|
|
1009
|
+
|
|
884
1010
|
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
885
1011
|
|
|
886
1012
|
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -901,8 +1027,12 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
901
1027
|
*/
|
|
902
1028
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
903
1029
|
|
|
1030
|
+
export declare const Indicator: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1031
|
+
|
|
904
1032
|
export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
905
1033
|
|
|
1034
|
+
export declare const InputNumberItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1035
|
+
|
|
906
1036
|
/**
|
|
907
1037
|
* 安装函数
|
|
908
1038
|
*/
|
|
@@ -910,20 +1040,41 @@ declare interface Installer {
|
|
|
910
1040
|
(app: App, options?: any): void;
|
|
911
1041
|
}
|
|
912
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* 安装校验规则
|
|
1045
|
+
* @param proxy
|
|
1046
|
+
*/
|
|
1047
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
1048
|
+
|
|
913
1049
|
/**
|
|
914
1050
|
* 获取整数长度
|
|
915
1051
|
* @param value
|
|
916
1052
|
*/
|
|
917
1053
|
export declare function integerLength(value: string | number): number;
|
|
918
1054
|
|
|
919
|
-
|
|
1055
|
+
/**
|
|
1056
|
+
* 是否数组
|
|
1057
|
+
*/
|
|
1058
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* 是否为类数组
|
|
1062
|
+
* @param obj
|
|
1063
|
+
* @returns {boolean}
|
|
1064
|
+
*/
|
|
1065
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
920
1066
|
|
|
921
1067
|
/**
|
|
922
1068
|
* 是否为浏览器环境
|
|
923
1069
|
*/
|
|
924
1070
|
export declare const isBrowser: boolean;
|
|
925
1071
|
|
|
926
|
-
|
|
1072
|
+
/**
|
|
1073
|
+
* 是否为Date
|
|
1074
|
+
* @param val
|
|
1075
|
+
* @returns
|
|
1076
|
+
*/
|
|
1077
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
927
1078
|
|
|
928
1079
|
/**
|
|
929
1080
|
* 是否空字符串
|
|
@@ -932,11 +1083,33 @@ export { isDate }
|
|
|
932
1083
|
*/
|
|
933
1084
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
934
1085
|
|
|
935
|
-
|
|
1086
|
+
/**
|
|
1087
|
+
* 判断两个对象是否一致
|
|
1088
|
+
* @param x
|
|
1089
|
+
* @param y
|
|
1090
|
+
* @return
|
|
1091
|
+
*/
|
|
1092
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
936
1093
|
|
|
937
|
-
|
|
1094
|
+
/**
|
|
1095
|
+
* 是否为es module
|
|
1096
|
+
* @param obj
|
|
1097
|
+
* @returns
|
|
1098
|
+
*/
|
|
1099
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
938
1100
|
|
|
939
|
-
|
|
1101
|
+
/**
|
|
1102
|
+
* 是否为函数
|
|
1103
|
+
* @param val
|
|
1104
|
+
* @returns
|
|
1105
|
+
*/
|
|
1106
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* 是否是隐藏element
|
|
1110
|
+
* @param el
|
|
1111
|
+
*/
|
|
1112
|
+
export declare function isHidden(el: any): boolean;
|
|
940
1113
|
|
|
941
1114
|
/**
|
|
942
1115
|
* 是否为内嵌页面
|
|
@@ -947,7 +1120,12 @@ export { isFunction }
|
|
|
947
1120
|
*/
|
|
948
1121
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
949
1122
|
|
|
950
|
-
|
|
1123
|
+
/**
|
|
1124
|
+
* 是否为Map
|
|
1125
|
+
* @param val
|
|
1126
|
+
* @returns
|
|
1127
|
+
*/
|
|
1128
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
951
1129
|
|
|
952
1130
|
/**
|
|
953
1131
|
* 是否为数字字符串
|
|
@@ -956,11 +1134,24 @@ export { isMap }
|
|
|
956
1134
|
*/
|
|
957
1135
|
export declare function isNumberString(value: string): boolean;
|
|
958
1136
|
|
|
959
|
-
|
|
1137
|
+
/**
|
|
1138
|
+
* 是否为object
|
|
1139
|
+
*/
|
|
1140
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
960
1141
|
|
|
961
|
-
|
|
1142
|
+
/**
|
|
1143
|
+
* 是否为plain对象
|
|
1144
|
+
* @param val
|
|
1145
|
+
* @returns
|
|
1146
|
+
*/
|
|
1147
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
962
1148
|
|
|
963
|
-
|
|
1149
|
+
/**
|
|
1150
|
+
* 是否为promise
|
|
1151
|
+
* @param val
|
|
1152
|
+
* @returns
|
|
1153
|
+
*/
|
|
1154
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
964
1155
|
|
|
965
1156
|
/**
|
|
966
1157
|
* 判断是否为正则表达式
|
|
@@ -969,9 +1160,19 @@ export { isPromise }
|
|
|
969
1160
|
*/
|
|
970
1161
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
971
1162
|
|
|
972
|
-
|
|
1163
|
+
/**
|
|
1164
|
+
* 是否为Set
|
|
1165
|
+
* @param val
|
|
1166
|
+
* @returns
|
|
1167
|
+
*/
|
|
1168
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
973
1169
|
|
|
974
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* 是否为字符串
|
|
1172
|
+
* @param val
|
|
1173
|
+
* @returns
|
|
1174
|
+
*/
|
|
1175
|
+
export declare const isString: (val: unknown) => val is string;
|
|
975
1176
|
|
|
976
1177
|
/**
|
|
977
1178
|
* 是否子页面
|
|
@@ -979,7 +1180,18 @@ export { isString }
|
|
|
979
1180
|
*/
|
|
980
1181
|
export declare function isSubPage(domain: Domain): boolean;
|
|
981
1182
|
|
|
982
|
-
|
|
1183
|
+
/**
|
|
1184
|
+
* 是否为symbol
|
|
1185
|
+
* @param val
|
|
1186
|
+
* @returns
|
|
1187
|
+
*/
|
|
1188
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* 是否是window对象
|
|
1192
|
+
* @param obj
|
|
1193
|
+
*/
|
|
1194
|
+
export declare function isWindow(obj: any): boolean;
|
|
983
1195
|
|
|
984
1196
|
export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
985
1197
|
|
|
@@ -991,6 +1203,14 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
991
1203
|
*/
|
|
992
1204
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
993
1205
|
|
|
1206
|
+
/**
|
|
1207
|
+
* 创建数组
|
|
1208
|
+
* @param arr
|
|
1209
|
+
* @param results
|
|
1210
|
+
* @return
|
|
1211
|
+
*/
|
|
1212
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1213
|
+
|
|
994
1214
|
export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
995
1215
|
|
|
996
1216
|
/**
|
|
@@ -1004,14 +1224,45 @@ export declare interface Matched {
|
|
|
1004
1224
|
level?: number;
|
|
1005
1225
|
}
|
|
1006
1226
|
|
|
1227
|
+
/**
|
|
1228
|
+
* 合并数组
|
|
1229
|
+
* @param first
|
|
1230
|
+
* @param second
|
|
1231
|
+
* @return
|
|
1232
|
+
*/
|
|
1233
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1234
|
+
|
|
1007
1235
|
export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1008
1236
|
|
|
1237
|
+
export declare const MoreButton: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1238
|
+
|
|
1009
1239
|
export { multiply }
|
|
1010
1240
|
|
|
1011
1241
|
export { negate }
|
|
1012
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* 下一个事件周期中执行函数
|
|
1245
|
+
* @param fn
|
|
1246
|
+
* @param args
|
|
1247
|
+
*/
|
|
1248
|
+
export declare function nextTick(fn: {
|
|
1249
|
+
(...args: any[]): void;
|
|
1250
|
+
}, ...args: any[]): void;
|
|
1251
|
+
|
|
1013
1252
|
export { numberFormat }
|
|
1014
1253
|
|
|
1254
|
+
/**
|
|
1255
|
+
* 对象类型
|
|
1256
|
+
*/
|
|
1257
|
+
export declare const objectToString: () => string;
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* 只执行一次函数
|
|
1261
|
+
* @param func
|
|
1262
|
+
* @returns
|
|
1263
|
+
*/
|
|
1264
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1265
|
+
|
|
1015
1266
|
/**
|
|
1016
1267
|
* padding
|
|
1017
1268
|
*/
|
|
@@ -1029,7 +1280,7 @@ export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
1029
1280
|
*/
|
|
1030
1281
|
export declare interface PageLayout {
|
|
1031
1282
|
width: number | string;
|
|
1032
|
-
height
|
|
1283
|
+
height?: number | string;
|
|
1033
1284
|
headerHeight: number | string;
|
|
1034
1285
|
footerHeight: number | string;
|
|
1035
1286
|
headerPadding?: Padding;
|
|
@@ -1083,9 +1334,6 @@ export declare function property(source: Ref, name: string, policy?: PriorityPol
|
|
|
1083
1334
|
|
|
1084
1335
|
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1085
1336
|
|
|
1086
|
-
/**
|
|
1087
|
-
* 动画
|
|
1088
|
-
*/
|
|
1089
1337
|
export declare const raf: any;
|
|
1090
1338
|
|
|
1091
1339
|
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -1184,21 +1432,38 @@ export declare const TableItem: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
1184
1432
|
|
|
1185
1433
|
export declare const TableMappingColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1186
1434
|
|
|
1435
|
+
export declare const TableRadioColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1436
|
+
|
|
1437
|
+
export declare const TableSetting: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1438
|
+
|
|
1439
|
+
declare const Text_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1440
|
+
export { Text_2 as Text }
|
|
1441
|
+
|
|
1187
1442
|
/**
|
|
1188
|
-
* 节流函数
|
|
1443
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1189
1444
|
* @param func 函数
|
|
1190
|
-
* @param
|
|
1445
|
+
* @param delay 延迟执行毫秒数
|
|
1191
1446
|
* @returns
|
|
1192
1447
|
*/
|
|
1193
|
-
export declare function throttle(func: GenericFunction,
|
|
1448
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1194
1449
|
|
|
1195
1450
|
export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1196
1451
|
|
|
1197
1452
|
export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1198
1453
|
|
|
1199
|
-
|
|
1454
|
+
/**
|
|
1455
|
+
* 转换为boolean值
|
|
1456
|
+
* @param val
|
|
1457
|
+
* @returns
|
|
1458
|
+
*/
|
|
1459
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1200
1460
|
|
|
1201
|
-
|
|
1461
|
+
/**
|
|
1462
|
+
* 转换为number值
|
|
1463
|
+
* @param val
|
|
1464
|
+
* @returns
|
|
1465
|
+
*/
|
|
1466
|
+
export declare function toNumber(val: unknown): number;
|
|
1202
1467
|
|
|
1203
1468
|
/**
|
|
1204
1469
|
* 转换为number rect
|
|
@@ -1220,7 +1485,9 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
1220
1485
|
*/
|
|
1221
1486
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1222
1487
|
|
|
1223
|
-
export
|
|
1488
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1489
|
+
|
|
1490
|
+
export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1224
1491
|
|
|
1225
1492
|
/**
|
|
1226
1493
|
* to model value
|
|
@@ -1230,6 +1497,15 @@ export { toTypeString }
|
|
|
1230
1497
|
*/
|
|
1231
1498
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1232
1499
|
|
|
1500
|
+
export declare const TreeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* 判断类型
|
|
1504
|
+
* @param obj
|
|
1505
|
+
* @returns any
|
|
1506
|
+
*/
|
|
1507
|
+
export declare function typeOf(obj: any): string;
|
|
1508
|
+
|
|
1233
1509
|
export declare class UniqueID {
|
|
1234
1510
|
/**
|
|
1235
1511
|
* seed id
|
|
@@ -1268,7 +1544,7 @@ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null):
|
|
|
1268
1544
|
* 获取当前domain
|
|
1269
1545
|
* @returns
|
|
1270
1546
|
*/
|
|
1271
|
-
export declare function useDomain(
|
|
1547
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
1272
1548
|
|
|
1273
1549
|
/**
|
|
1274
1550
|
* use expose
|
|
@@ -1292,12 +1568,33 @@ export declare const usePosition: (elementRef: (Element | Window) | Ref<Element
|
|
|
1292
1568
|
|
|
1293
1569
|
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
|
|
1294
1570
|
|
|
1571
|
+
export declare function useTouch(): {
|
|
1572
|
+
move: EventListener;
|
|
1573
|
+
start: EventListener;
|
|
1574
|
+
reset: () => void;
|
|
1575
|
+
startX: Ref<number>;
|
|
1576
|
+
startY: Ref<number>;
|
|
1577
|
+
startTime: Ref<number>;
|
|
1578
|
+
duration: Ref<number>;
|
|
1579
|
+
moveX: Ref<number>;
|
|
1580
|
+
moveY: Ref<number>;
|
|
1581
|
+
deltaX: Ref<number>;
|
|
1582
|
+
deltaY: Ref<number>;
|
|
1583
|
+
offsetX: Ref<number>;
|
|
1584
|
+
offsetY: Ref<number>;
|
|
1585
|
+
direction: Ref<Direction>;
|
|
1586
|
+
isVertical: () => boolean;
|
|
1587
|
+
isHorizontal: () => boolean;
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1295
1590
|
/**
|
|
1296
1591
|
* 校验条件
|
|
1297
1592
|
*/
|
|
1298
1593
|
export declare interface ValidateCondition {
|
|
1299
|
-
|
|
1594
|
+
deep?: boolean;
|
|
1300
1595
|
include?: string[];
|
|
1596
|
+
exclude?: string[];
|
|
1597
|
+
ignoreHidden?: boolean;
|
|
1301
1598
|
}
|
|
1302
1599
|
|
|
1303
1600
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fox-js/foxui-pc",
|
|
3
|
-
"version": "4.0.1-
|
|
3
|
+
"version": "4.0.1-61",
|
|
4
4
|
"description": "FoxUI PC端组件库",
|
|
5
5
|
"author": "jiangcheng",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -27,9 +27,13 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"publish:next": "npm version prerelease && npm publish --tag next"
|
|
30
|
+
"publish:next": "npm version prerelease && npm publish --tag next --no-git-checks"
|
|
31
31
|
},
|
|
32
32
|
"license": "",
|
|
33
33
|
"repository": "",
|
|
34
|
-
"
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@element-plus/icons-vue": ">=2.0.0",
|
|
36
|
+
"dayjs": ">=1.0.0",
|
|
37
|
+
"element-plus": ">=2.0.0"
|
|
38
|
+
}
|
|
35
39
|
}
|