@fox-js/foxui-pad 4.0.1-11 → 4.0.1-12
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 +3 -3
- package/dist/index.esm.js +6544 -5022
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +121 -7
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -206,6 +206,8 @@ export declare const CalendarItem: DefineComponent<unknown, object, {}, Computed
|
|
|
206
206
|
|
|
207
207
|
export declare const CalendarPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
208
208
|
|
|
209
|
+
export declare function cancelRaf(id: number): void;
|
|
210
|
+
|
|
209
211
|
export declare const CascaderItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
210
212
|
|
|
211
213
|
export declare const CascaderPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -260,8 +262,110 @@ export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
260
262
|
|
|
261
263
|
export declare const DatePicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
262
264
|
|
|
265
|
+
export declare const DateUtils: {
|
|
266
|
+
/**
|
|
267
|
+
* 格式化
|
|
268
|
+
* @param date
|
|
269
|
+
* @param template
|
|
270
|
+
* @returns
|
|
271
|
+
*/
|
|
272
|
+
format(date: Date, template: string): string;
|
|
273
|
+
/**
|
|
274
|
+
* 解析
|
|
275
|
+
* @param str
|
|
276
|
+
* @param template
|
|
277
|
+
*/
|
|
278
|
+
parser(str: string, template: string): Date;
|
|
279
|
+
/**
|
|
280
|
+
* 是否为闫年
|
|
281
|
+
* @return {Boolse} true|false
|
|
282
|
+
*/
|
|
283
|
+
isLeapYear(y: number): boolean;
|
|
284
|
+
/**
|
|
285
|
+
* 返回星期数
|
|
286
|
+
* @return {String}
|
|
287
|
+
*/
|
|
288
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
289
|
+
/**
|
|
290
|
+
* 返回星期数
|
|
291
|
+
* @return {Number}
|
|
292
|
+
*/
|
|
293
|
+
getMonthPreDay(year: number, month: number): number;
|
|
294
|
+
/**
|
|
295
|
+
* 返回月份天数
|
|
296
|
+
* @return {Number}
|
|
297
|
+
*/
|
|
298
|
+
getMonthDays(year: string, month: string): number;
|
|
299
|
+
/**
|
|
300
|
+
* 补齐数字位数
|
|
301
|
+
* @return {string}
|
|
302
|
+
*/
|
|
303
|
+
getNumTwoBit(n: number): string;
|
|
304
|
+
/**
|
|
305
|
+
* 日期对象转成字符串
|
|
306
|
+
* @return {string}
|
|
307
|
+
*/
|
|
308
|
+
date2Str: (date: Date, split?: string) => string;
|
|
309
|
+
/**
|
|
310
|
+
* 返回日期格式字符串
|
|
311
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
312
|
+
* @return {string} '2014-12-31'
|
|
313
|
+
*/
|
|
314
|
+
getDay(i: number): string;
|
|
315
|
+
/**
|
|
316
|
+
* 时间比较
|
|
317
|
+
* @return
|
|
318
|
+
*/
|
|
319
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
320
|
+
/**
|
|
321
|
+
* 时间是否相等
|
|
322
|
+
* @return
|
|
323
|
+
*/
|
|
324
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
325
|
+
/**
|
|
326
|
+
* get month week
|
|
327
|
+
* @param year
|
|
328
|
+
* @param month
|
|
329
|
+
* @param date
|
|
330
|
+
* @param firstDayOfWeek
|
|
331
|
+
* @returns
|
|
332
|
+
*/
|
|
333
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
334
|
+
/**
|
|
335
|
+
* get year week
|
|
336
|
+
* @param year
|
|
337
|
+
* @param month
|
|
338
|
+
* @param date
|
|
339
|
+
* @param firstDayOfWeek
|
|
340
|
+
* @returns
|
|
341
|
+
*/
|
|
342
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
343
|
+
/**
|
|
344
|
+
* get week date
|
|
345
|
+
*/
|
|
346
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
347
|
+
/**
|
|
348
|
+
* format result date
|
|
349
|
+
*/
|
|
350
|
+
formatResultDate: (date: string) => string[];
|
|
351
|
+
/**
|
|
352
|
+
* 判断日期是否在范围内
|
|
353
|
+
* @param date
|
|
354
|
+
* @param startDate
|
|
355
|
+
* @param span 允许负数
|
|
356
|
+
*/
|
|
357
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
358
|
+
/**
|
|
359
|
+
* 判断日期是否在范围内
|
|
360
|
+
* @param date
|
|
361
|
+
* @param startDate
|
|
362
|
+
* @param span
|
|
363
|
+
*/
|
|
364
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
365
|
+
};
|
|
366
|
+
|
|
263
367
|
/**
|
|
264
|
-
* 防抖函数
|
|
368
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
265
369
|
* @param func 函数
|
|
266
370
|
* @param delay 防止抖动毫秒数
|
|
267
371
|
* @returns
|
|
@@ -500,8 +604,6 @@ export declare function excludeProps(src: Record<string, any>, ...excludeTemplat
|
|
|
500
604
|
*/
|
|
501
605
|
export declare function extend(...args: any[]): any;
|
|
502
606
|
|
|
503
|
-
export declare const ExtIcon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
504
|
-
|
|
505
607
|
export declare const ExtTabPane: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
506
608
|
|
|
507
609
|
export declare const ExtTabs: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -1166,6 +1268,13 @@ export { numberFormat }
|
|
|
1166
1268
|
*/
|
|
1167
1269
|
export declare const objectToString: () => string;
|
|
1168
1270
|
|
|
1271
|
+
/**
|
|
1272
|
+
* 只执行一次函数
|
|
1273
|
+
* @param func
|
|
1274
|
+
* @returns
|
|
1275
|
+
*/
|
|
1276
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1277
|
+
|
|
1169
1278
|
export declare const Overlay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1170
1279
|
|
|
1171
1280
|
/**
|
|
@@ -1243,9 +1352,6 @@ export declare function property(source: Ref, name: string, policy?: PriorityPol
|
|
|
1243
1352
|
|
|
1244
1353
|
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1245
1354
|
|
|
1246
|
-
/**
|
|
1247
|
-
* 动画
|
|
1248
|
-
*/
|
|
1249
1355
|
export declare const raf: any;
|
|
1250
1356
|
|
|
1251
1357
|
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -1338,17 +1444,23 @@ export declare function setGlobalValidator(type: string, validator: ExecuteValid
|
|
|
1338
1444
|
|
|
1339
1445
|
export declare const SlotItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1340
1446
|
|
|
1447
|
+
export declare const sticky: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1448
|
+
|
|
1341
1449
|
export declare const SwitchItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1342
1450
|
|
|
1343
1451
|
export declare const TableItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1344
1452
|
|
|
1345
1453
|
export declare const TableMappingColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1346
1454
|
|
|
1455
|
+
export declare const TableRadioColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1456
|
+
|
|
1457
|
+
export declare const TableSetting: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1458
|
+
|
|
1347
1459
|
declare const Text_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1348
1460
|
export { Text_2 as Text }
|
|
1349
1461
|
|
|
1350
1462
|
/**
|
|
1351
|
-
* 节流函数
|
|
1463
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1352
1464
|
* @param func 函数
|
|
1353
1465
|
* @param delay 延迟执行毫秒数
|
|
1354
1466
|
* @returns
|
|
@@ -1407,6 +1519,8 @@ export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
1407
1519
|
*/
|
|
1408
1520
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1409
1521
|
|
|
1522
|
+
export declare const TreeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1523
|
+
|
|
1410
1524
|
/**
|
|
1411
1525
|
* 判断类型
|
|
1412
1526
|
* @param obj
|