@fox-js/foxui-pc 4.1.1-2 → 4.1.1-21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,8 +56,10 @@ import { ElImage as FoxImage } from './base';
56
56
  import { ElImageViewer as FoxImageViewer } from './base';
57
57
  import { ElInput as FoxInput } from './base';
58
58
  import { ElInputNumber as FoxInputNumber } from './base';
59
+ import { ElInputTag as FoxInputTag } from './base';
59
60
  import { ElLink as FoxLink } from './base';
60
61
  import { ElMain as FoxMain } from './base';
62
+ import { ElMention as FoxMention } from './base';
61
63
  import { ElMenu as FoxMenu } from './base';
62
64
  import { ElMenuItem as FoxMenuItem } from './base';
63
65
  import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
@@ -153,6 +155,10 @@ export declare class Broadcast {
153
155
  * 名称
154
156
  */
155
157
  private name?;
158
+ /**
159
+ * 持久消息注册表
160
+ */
161
+ private persistantMessages;
156
162
  /**
157
163
  * 构造函数
158
164
  * @param parent
@@ -174,6 +180,46 @@ export declare class Broadcast {
174
180
  * 销毁
175
181
  */
176
182
  destroy(): void;
183
+ /**
184
+ * 设置持久化消息
185
+ * @param matched
186
+ * @param action
187
+ * @param args
188
+ */
189
+ private setPersistantMessage;
190
+ /**
191
+ * 删除持久化消息
192
+ * @param matched
193
+ * @param action
194
+ * @param args
195
+ */
196
+ private deletePersistantMessage;
197
+ /**
198
+ * 获取持久化消息列表
199
+ * @returns
200
+ */
201
+ getPersistantMessages(): PersistantMessage[];
202
+ /**
203
+ * 清空持久化消息列表
204
+ */
205
+ clearPersistantMessage(): void;
206
+ /**
207
+ * 判断是否匹配
208
+ * @param name
209
+ * @param matched
210
+ * @returns
211
+ */
212
+ private isMatched;
213
+ /**
214
+ * 触发函数
215
+ * @param action
216
+ * @param args
217
+ */
218
+ private trigger;
219
+ /**
220
+ * 拉取持久消息
221
+ */
222
+ pull(): void;
177
223
  /**
178
224
  * 发生消息
179
225
  * @param matched
@@ -204,6 +250,9 @@ export declare interface BroadcastCallback {
204
250
  (...args: any[]): Result;
205
251
  }
206
252
 
253
+ /**
254
+ * broadcast key
255
+ */
207
256
  export declare const BroadcastKey: unique symbol;
208
257
 
209
258
  export declare function cancelRaf(id: number): void;
@@ -298,9 +347,11 @@ export declare const DateUtils: {
298
347
  * 返回日期格式字符串
299
348
  * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
300
349
  * @param {Date} 起点日期
350
+ * @param {formatTemplate} 格式化模版
301
351
  * @return {string} '2014-12-31'
352
+ *
302
353
  */
303
- getDay(i: number, startDate?: Date): string;
354
+ getDay(i: number, startDate?: Date, formatTemplate?: string): string;
304
355
  /**
305
356
  * 时间比较
306
357
  * @return
@@ -378,181 +429,201 @@ declare const _default: FoxUIVue;
378
429
  export default _default;
379
430
 
380
431
  declare const _default_10: any;
381
- export { _default_10 as FoxHintText }
382
- export { _default_10 as HintText }
432
+ export { _default_10 as ButtonsItem }
433
+ export { _default_10 as FoxButtonsItem }
383
434
 
384
435
  declare const _default_11: any;
385
- export { _default_11 as FoxInputItem }
386
- export { _default_11 as InputItem }
436
+ export { _default_11 as FoxHintText }
437
+ export { _default_11 as HintText }
387
438
 
388
439
  declare const _default_12: any;
389
- export { _default_12 as FoxSelectItem }
390
- export { _default_12 as SelectItem }
440
+ export { _default_12 as FoxInputItem }
441
+ export { _default_12 as InputItem }
391
442
 
392
443
  declare const _default_13: any;
393
- export { _default_13 as DateItem }
394
- export { _default_13 as FoxDateItem }
444
+ export { _default_13 as FoxSelectItem }
445
+ export { _default_13 as SelectItem }
395
446
 
396
447
  declare const _default_14: any;
397
- export { _default_14 as FoxTimeItem }
398
- export { _default_14 as TimeItem }
448
+ export { _default_14 as DateItem }
449
+ export { _default_14 as FoxDateItem }
399
450
 
400
451
  declare const _default_15: any;
401
- export { _default_15 as FoxTimeSelectItem }
402
- export { _default_15 as TimeSelectItem }
452
+ export { _default_15 as FoxTimeItem }
453
+ export { _default_15 as TimeItem }
403
454
 
404
455
  declare const _default_16: any;
405
- export { _default_16 as FoxMoneyItem }
406
- export { _default_16 as MoneyItem }
456
+ export { _default_16 as FoxTimeSelectItem }
457
+ export { _default_16 as TimeSelectItem }
407
458
 
408
459
  declare const _default_17: any;
409
- export { _default_17 as FoxInputNumberItem }
410
- export { _default_17 as InputNumberItem }
460
+ export { _default_17 as FoxMoneyItem }
461
+ export { _default_17 as MoneyItem }
411
462
 
412
463
  declare const _default_18: any;
413
- export { _default_18 as CascaderItem }
414
- export { _default_18 as FoxCascaderItem }
464
+ export { _default_18 as FoxInputNumberItem }
465
+ export { _default_18 as InputNumberItem }
415
466
 
416
467
  declare const _default_19: any;
417
- export { _default_19 as AutocompleteItem }
418
- export { _default_19 as FoxAutocompleteItem }
468
+ export { _default_19 as CascaderItem }
469
+ export { _default_19 as FoxCascaderItem }
419
470
 
420
471
  declare const _default_2: any;
421
472
  export { _default_2 as FoxPage }
422
473
  export { _default_2 as Page }
423
474
 
424
475
  declare const _default_20: any;
425
- export { _default_20 as FoxTableMappingColumn }
426
- export { _default_20 as TableMappingColumn }
476
+ export { _default_20 as AutocompleteItem }
477
+ export { _default_20 as FoxAutocompleteItem }
427
478
 
428
479
  declare const _default_21: any;
429
- export { _default_21 as FoxTableRadioColumn }
430
- export { _default_21 as TableRadioColumn }
480
+ export { _default_21 as FoxTableMappingColumn }
481
+ export { _default_21 as TableMappingColumn }
431
482
 
432
483
  declare const _default_22: any;
433
- export { _default_22 as FoxTableSetting }
434
- export { _default_22 as TableSetting }
484
+ export { _default_22 as FoxTableRadioColumn }
485
+ export { _default_22 as TableRadioColumn }
435
486
 
436
487
  declare const _default_23: any;
437
- export { _default_23 as FoxTableItem }
438
- export { _default_23 as TableItem }
488
+ export { _default_23 as FoxTableSetting }
489
+ export { _default_23 as TableSetting }
439
490
 
440
491
  declare const _default_24: any;
441
- export { _default_24 as FoxRadioItem }
442
- export { _default_24 as RadioItem }
492
+ export { _default_24 as FoxTableItem }
493
+ export { _default_24 as TableItem }
443
494
 
444
495
  declare const _default_25: any;
445
- export { _default_25 as CheckboxItem }
446
- export { _default_25 as FoxCheckboxItem }
496
+ export { _default_25 as FoxRadioItem }
497
+ export { _default_25 as RadioItem }
447
498
 
448
499
  declare const _default_26: any;
449
- export { _default_26 as FoxRateItem }
450
- export { _default_26 as RateItem }
500
+ export { _default_26 as CheckboxItem }
501
+ export { _default_26 as FoxCheckboxItem }
451
502
 
452
503
  declare const _default_27: any;
453
- export { _default_27 as FoxSwitchItem }
454
- export { _default_27 as SwitchItem }
504
+ export { _default_27 as FoxRateItem }
505
+ export { _default_27 as RateItem }
455
506
 
456
507
  declare const _default_28: any;
457
- export { _default_28 as FoxTreeSelectItem }
458
- export { _default_28 as TreeSelectItem }
508
+ export { _default_28 as FoxSwitchItem }
509
+ export { _default_28 as SwitchItem }
459
510
 
460
511
  declare const _default_29: any;
461
- export { _default_29 as FoxGroupSetting }
462
- export { _default_29 as GroupSetting }
512
+ export { _default_29 as FoxTreeSelectItem }
513
+ export { _default_29 as TreeSelectItem }
463
514
 
464
515
  declare const _default_3: any;
465
516
  export { _default_3 as FoxHeaderBar }
466
517
  export { _default_3 as HeaderBar }
467
518
 
468
519
  declare const _default_30: any;
469
- export { _default_30 as FoxTabsBar }
470
- export { _default_30 as TabsBar }
520
+ export { _default_30 as FoxGroupSetting }
521
+ export { _default_30 as GroupSetting }
471
522
 
472
523
  declare const _default_31: any;
473
- export { _default_31 as FoxTabsContainer }
474
- export { _default_31 as TabsContainer }
524
+ export { _default_31 as FoxTreeItem }
525
+ export { _default_31 as TreeItem }
475
526
 
476
527
  declare const _default_32: any;
477
- export { _default_32 as FoxTabsPane }
478
- export { _default_32 as TabsPane }
528
+ export { _default_32 as FoxTabsBar }
529
+ export { _default_32 as TabsBar }
479
530
 
480
531
  declare const _default_33: any;
481
- export { _default_33 as FoxStepsBar }
482
- export { _default_33 as StepsBar }
532
+ export { _default_33 as FoxTabsContainer }
533
+ export { _default_33 as TabsContainer }
483
534
 
484
535
  declare const _default_34: any;
485
- export { _default_34 as DialogItem }
486
- export { _default_34 as FoxDialogItem }
536
+ export { _default_34 as FoxTabsPane }
537
+ export { _default_34 as TabsPane }
487
538
 
488
539
  declare const _default_35: any;
489
- export { _default_35 as FoxOverLay }
490
- export { _default_35 as OverLay }
540
+ export { _default_35 as FoxTabsFrame }
541
+ export { _default_35 as TabsFrame }
491
542
 
492
543
  declare const _default_36: any;
493
- export { _default_36 as FoxPopup }
494
- export { _default_36 as Popup }
544
+ export { _default_36 as FoxStepsBar }
545
+ export { _default_36 as StepsBar }
495
546
 
496
547
  declare const _default_37: any;
497
- export { _default_37 as FoxToast }
498
- export { _default_37 as Toast }
548
+ export { _default_37 as DialogItem }
549
+ export { _default_37 as FoxDialogItem }
499
550
 
500
551
  declare const _default_38: any;
501
- export { _default_38 as FoxSearchBar }
502
- export { _default_38 as SearchBar }
552
+ export { _default_38 as FoxOverLay }
553
+ export { _default_38 as OverLay }
503
554
 
504
555
  declare const _default_39: any;
505
- export { _default_39 as FoxInfiniteLoading }
506
- export { _default_39 as InfiniteLoading }
556
+ export { _default_39 as FoxPopup }
557
+ export { _default_39 as Popup }
507
558
 
508
559
  declare const _default_4: any;
509
560
  export { _default_4 as FooterBar }
510
561
  export { _default_4 as FoxFooterBar }
511
562
 
512
563
  declare const _default_40: any;
513
- export { _default_40 as FoxPullRefresh }
514
- export { _default_40 as PullRefresh }
564
+ export { _default_40 as FoxToast }
565
+ export { _default_40 as Toast }
515
566
 
516
567
  declare const _default_41: any;
517
- export { _default_41 as FoxMapping }
518
- export { _default_41 as Mapping }
568
+ export { _default_41 as FoxSearchBar }
569
+ export { _default_41 as SearchBar }
519
570
 
520
571
  declare const _default_42: any;
521
- export { _default_42 as FoxPrice }
522
- export { _default_42 as Price }
572
+ export { _default_42 as FoxInfiniteLoading }
573
+ export { _default_42 as InfiniteLoading }
523
574
 
524
575
  declare const _default_43: any;
525
- export { _default_43 as FoxIndicator }
526
- export { _default_43 as Indicator }
576
+ export { _default_43 as FoxPullRefresh }
577
+ export { _default_43 as PullRefresh }
527
578
 
528
579
  declare const _default_44: any;
529
- export { _default_44 as FoxText }
530
- export { _default_44 as Text }
580
+ export { _default_44 as FoxMoreButton }
581
+ export { _default_44 as MoreButton }
531
582
 
532
583
  declare const _default_45: any;
533
- export { _default_45 as FoxMoreButton }
534
- export { _default_45 as MoreButton }
584
+ export { _default_45 as FloatingButton }
585
+ export { _default_45 as FoxFloatingButton }
535
586
 
536
587
  declare const _default_46: any;
537
- export { _default_46 as FoxTour }
538
- export { _default_46 as Tour }
588
+ export { _default_46 as FloatingWindow }
589
+ export { _default_46 as FoxFloatingWindow }
539
590
 
540
591
  declare const _default_47: any;
541
- export { _default_47 as FloatingWindow }
542
- export { _default_47 as FoxFloatingWindow }
592
+ export { _default_47 as FoxPopoverDialog }
593
+ export { _default_47 as PopoverDialog }
543
594
 
544
595
  declare const _default_48: any;
545
- export { _default_48 as DomainProvider }
546
- export { _default_48 as FoxDomainProvider }
596
+ export { _default_48 as FoxMapping }
597
+ export { _default_48 as Mapping }
547
598
 
548
599
  declare const _default_49: any;
549
- export { _default_49 as FoxRollingProvider }
550
- export { _default_49 as RollingProvider }
600
+ export { _default_49 as FoxPrice }
601
+ export { _default_49 as Price }
551
602
 
552
603
  declare const _default_5: any;
553
604
  export { _default_5 as Content }
554
605
  export { _default_5 as FoxContent }
555
606
 
607
+ declare const _default_50: any;
608
+ export { _default_50 as FoxIndicator }
609
+ export { _default_50 as Indicator }
610
+
611
+ declare const _default_51: any;
612
+ export { _default_51 as FoxText }
613
+ export { _default_51 as Text }
614
+
615
+ declare const _default_52: any;
616
+ export { _default_52 as FoxTour }
617
+ export { _default_52 as Tour }
618
+
619
+ declare const _default_53: any;
620
+ export { _default_53 as DomainProvider }
621
+ export { _default_53 as FoxDomainProvider }
622
+
623
+ declare const _default_54: any;
624
+ export { _default_54 as FoxRollingProvider }
625
+ export { _default_54 as RollingProvider }
626
+
556
627
  declare const _default_6: any;
557
628
  export { _default_6 as FoxGroup }
558
629
  export { _default_6 as Group }
@@ -904,10 +975,14 @@ export { FoxInput }
904
975
 
905
976
  export { FoxInputNumber }
906
977
 
978
+ export { FoxInputTag }
979
+
907
980
  export { FoxLink }
908
981
 
909
982
  export { FoxMain }
910
983
 
984
+ export { FoxMention }
985
+
911
986
  export { FoxMenu }
912
987
 
913
988
  export { FoxMenuItem }
@@ -1034,12 +1109,12 @@ declare class FoxUIVue implements FoxUI {
1034
1109
  */
1035
1110
  install(app: App, options?: FoxUIOptions): any;
1036
1111
  /**
1037
- * 初始化page Layout
1112
+ * 更新Layout
1038
1113
  *
1039
1114
  * @param options
1040
1115
  * @param rootDomain
1041
1116
  */
1042
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1117
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1043
1118
  /**
1044
1119
  * 设置scope getter
1045
1120
  * @param getter
@@ -1163,12 +1238,6 @@ declare interface Installer {
1163
1238
  (app: App, options?: any): void;
1164
1239
  }
1165
1240
 
1166
- /**
1167
- * 安装校验规则
1168
- * @param proxy
1169
- */
1170
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1171
-
1172
1241
  /**
1173
1242
  * 获取整数长度
1174
1243
  * @param value
@@ -1229,8 +1298,11 @@ export declare function isESModule(obj: any): obj is Object;
1229
1298
  export declare const isFunction: (val: unknown) => val is Function;
1230
1299
 
1231
1300
  /**
1232
- * 是否是隐藏element
1233
- * @param el
1301
+ * 是否是隐藏 element(自身或任意父级隐藏)
1302
+ * - display: none
1303
+ * - visibility: hidden
1304
+ * - hidden 属性
1305
+ * - 父级隐藏
1234
1306
  */
1235
1307
  export declare function isHidden(el: any): boolean;
1236
1308
 
@@ -1350,8 +1422,11 @@ export declare interface Matched {
1350
1422
  name?: string | RegExp | {
1351
1423
  (name: string): boolean;
1352
1424
  };
1353
- maxLevel?: number;
1354
- level?: number;
1425
+ resolve?: Resolve;
1426
+ resolved?: boolean;
1427
+ uniqueId?: string;
1428
+ cachePolicy?: MessageCachePolicy;
1429
+ messagingPolicy?: MessagingPolicy;
1355
1430
  }
1356
1431
 
1357
1432
  /**
@@ -1362,6 +1437,18 @@ export declare interface Matched {
1362
1437
  */
1363
1438
  export declare function merge(first: any[], second: any[]): any[];
1364
1439
 
1440
+ /**
1441
+ * 消息缓存策略
1442
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1443
+ */
1444
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1445
+
1446
+ /**
1447
+ * 消息传递策略
1448
+ * broadcast
1449
+ */
1450
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1451
+
1365
1452
  export { multiply }
1366
1453
 
1367
1454
  export { negate }
@@ -1409,8 +1496,8 @@ export declare interface Padding {
1409
1496
  * page layout
1410
1497
  */
1411
1498
  export declare interface PageLayout {
1412
- width: number | string;
1413
- height: number | string;
1499
+ width?: number | string;
1500
+ height?: number | string;
1414
1501
  headerHeight?: number | string;
1415
1502
  footerHeight?: number | string;
1416
1503
  headerPadding?: Padding;
@@ -1439,6 +1526,15 @@ export declare interface PageState {
1439
1526
  footerMounted?: boolean;
1440
1527
  }
1441
1528
 
1529
+ /**
1530
+ * 持久消息
1531
+ */
1532
+ declare interface PersistantMessage {
1533
+ matched: Matched;
1534
+ action: string;
1535
+ args: any[];
1536
+ }
1537
+
1442
1538
  /**
1443
1539
  * 坐标
1444
1540
  */
@@ -1481,6 +1577,11 @@ declare interface Rect {
1481
1577
  height: number;
1482
1578
  }
1483
1579
 
1580
+ /**
1581
+ * 消息确认函数
1582
+ */
1583
+ declare type Resolve = (...args: any) => void;
1584
+
1484
1585
  /**
1485
1586
  * 结果类型
1486
1587
  */
@@ -1573,13 +1674,15 @@ export declare function toPadding(rect: any): Padding;
1573
1674
  */
1574
1675
  export declare function toPx(value: number | string, size?: number): number;
1575
1676
 
1677
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
1678
+
1576
1679
  /**
1577
- * to px desc
1680
+ * to px string
1578
1681
  * @param value
1579
1682
  * @parma size
1580
1683
  * @returns
1581
1684
  */
1582
- export declare const toPxDesc: (value: string | number, size?: number) => string;
1685
+ export declare const toPxString: (value: string | number, size?: number) => string;
1583
1686
 
1584
1687
  export declare const toTypeString: (value: unknown) => string;
1585
1688
 
@@ -1645,8 +1748,8 @@ export { unNumberFormat }
1645
1748
  /**
1646
1749
  * 更新 page state
1647
1750
  * @param state
1648
- * @param pageLayout
1649
- * @param overrideProps
1751
+ * @param pageLayout(领域设置)
1752
+ * @param overrideProps(组件属性)
1650
1753
  * @param root
1651
1754
  * @param rootWidth
1652
1755
  * @param rootHeight
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pc",
3
3
  "type": "module",
4
- "version": "4.1.1-2",
4
+ "version": "4.1.1-21",
5
5
  "description": "FoxUI PC端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",
@@ -40,6 +40,6 @@
40
40
  "peerDependencies": {
41
41
  "@element-plus/icons-vue": ">=2.3.1",
42
42
  "dayjs": ">=1.0.0",
43
- "element-plus": ">=2.7.6"
43
+ "element-plus": ">=2.9.3"
44
44
  }
45
45
  }