@fox-js/foxui-pc 4.0.1-98 → 4.1.0

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.
@@ -6,6 +6,8 @@ import { divide } from '@fox-js/big-decimal';
6
6
  import { ExecuteValidator } from '@fox-js/validator';
7
7
  import { ElAffix as FoxAffix } from './base';
8
8
  import { ElAlert as FoxAlert } from './base';
9
+ import { ElAnchor as FoxAnchor } from './base';
10
+ import { ElAnchorLink as FoxAnchorLink } from './base';
9
11
  import { ElAside as FoxAside } from './base';
10
12
  import { ElAutocomplete as FoxAutocomplete } from './base';
11
13
  import { ElAutoResizer as FoxAutoResizer } from './base';
@@ -34,6 +36,7 @@ import { ElColorPicker as FoxColorPicker } from './base';
34
36
  import { FoxComponentPublicInstance } from './types';
35
37
  import { ElConfigProvider as FoxConfigProvider } from './base';
36
38
  import { ElContainer as FoxContainer } from './base';
39
+ import { ElCountdown as FoxCountdown } from './base';
37
40
  import { ElDatePicker as FoxDatePicker } from './base';
38
41
  import { ElDescriptions as FoxDescriptions } from './base';
39
42
  import { ElDescriptionsItem as FoxDescriptionsItem } from './base';
@@ -73,12 +76,14 @@ import { ElRate as FoxRate } from './base';
73
76
  import { ElResult as FoxResult } from './base';
74
77
  import { ElRow as FoxRow } from './base';
75
78
  import { ElScrollbar as FoxScrollbar } from './base';
79
+ import { ElSegmented as FoxSegmented } from './base';
76
80
  import { ElSelect as FoxSelect } from './base';
77
81
  import { ElSelectV2 as FoxSelectV2 } from './base';
78
82
  import { ElSkeleton as FoxSkeleton } from './base';
79
83
  import { ElSkeletonItem as FoxSkeletonItem } from './base';
80
84
  import { ElSlider as FoxSlider } from './base';
81
85
  import { ElSpace as FoxSpace } from './base';
86
+ import { ElStatistic as FoxStatistic } from './base';
82
87
  import { ElStep as FoxStep } from './base';
83
88
  import { ElSteps as FoxSteps } from './base';
84
89
  import { ElSubMenu as FoxSubMenu } from './base';
@@ -101,6 +106,7 @@ import { ElTreeV2 as FoxTreeV2 } from './base';
101
106
  import { FoxUI } from './interface';
102
107
  import { FoxUIOptions } from './interface';
103
108
  import { ElUpload as FoxUpload } from './base';
109
+ import { ElWatermark as FoxWatermark } from './base';
104
110
  import { multiply } from '@fox-js/big-decimal';
105
111
  import { negate } from '@fox-js/big-decimal';
106
112
  import { numberFormat } from '@fox-js/big-decimal';
@@ -457,49 +463,89 @@ export { _default_3 as FoxHeaderBar }
457
463
  export { _default_3 as HeaderBar }
458
464
 
459
465
  declare const _default_30: any;
460
- export { _default_30 as DialogItem }
461
- export { _default_30 as FoxDialogItem }
466
+ export { _default_30 as FoxTabsBar }
467
+ export { _default_30 as TabsBar }
462
468
 
463
469
  declare const _default_31: any;
464
- export { _default_31 as FoxMapping }
465
- export { _default_31 as Mapping }
470
+ export { _default_31 as FoxTabsContainer }
471
+ export { _default_31 as TabsContainer }
466
472
 
467
473
  declare const _default_32: any;
468
- export { _default_32 as FoxPrice }
469
- export { _default_32 as Price }
474
+ export { _default_32 as FoxTabsPane }
475
+ export { _default_32 as TabsPane }
470
476
 
471
477
  declare const _default_33: any;
472
- export { _default_33 as FoxIndicator }
473
- export { _default_33 as Indicator }
478
+ export { _default_33 as FoxStepsBar }
479
+ export { _default_33 as StepsBar }
474
480
 
475
481
  declare const _default_34: any;
476
- export { _default_34 as FoxText }
477
- export { _default_34 as Text }
482
+ export { _default_34 as DialogItem }
483
+ export { _default_34 as FoxDialogItem }
478
484
 
479
485
  declare const _default_35: any;
480
- export { _default_35 as FoxMoreButton }
481
- export { _default_35 as MoreButton }
486
+ export { _default_35 as FoxOverLay }
487
+ export { _default_35 as OverLay }
482
488
 
483
489
  declare const _default_36: any;
484
- export { _default_36 as FoxTour }
485
- export { _default_36 as Tour }
490
+ export { _default_36 as FoxPopup }
491
+ export { _default_36 as Popup }
486
492
 
487
493
  declare const _default_37: any;
488
- export { _default_37 as FloatingWindow }
489
- export { _default_37 as FoxFloatingWindow }
494
+ export { _default_37 as FoxToast }
495
+ export { _default_37 as Toast }
490
496
 
491
497
  declare const _default_38: any;
492
- export { _default_38 as DomainProvider }
493
- export { _default_38 as FoxDomainProvider }
498
+ export { _default_38 as FoxSearchBar }
499
+ export { _default_38 as SearchBar }
494
500
 
495
501
  declare const _default_39: any;
496
- export { _default_39 as FoxRollingProvider }
497
- export { _default_39 as RollingProvider }
502
+ export { _default_39 as FoxInfiniteLoading }
503
+ export { _default_39 as InfiniteLoading }
498
504
 
499
505
  declare const _default_4: any;
500
506
  export { _default_4 as FooterBar }
501
507
  export { _default_4 as FoxFooterBar }
502
508
 
509
+ declare const _default_40: any;
510
+ export { _default_40 as FoxPullRefresh }
511
+ export { _default_40 as PullRefresh }
512
+
513
+ declare const _default_41: any;
514
+ export { _default_41 as FoxMapping }
515
+ export { _default_41 as Mapping }
516
+
517
+ declare const _default_42: any;
518
+ export { _default_42 as FoxPrice }
519
+ export { _default_42 as Price }
520
+
521
+ declare const _default_43: any;
522
+ export { _default_43 as FoxIndicator }
523
+ export { _default_43 as Indicator }
524
+
525
+ declare const _default_44: any;
526
+ export { _default_44 as FoxText }
527
+ export { _default_44 as Text }
528
+
529
+ declare const _default_45: any;
530
+ export { _default_45 as FoxMoreButton }
531
+ export { _default_45 as MoreButton }
532
+
533
+ declare const _default_46: any;
534
+ export { _default_46 as FoxTour }
535
+ export { _default_46 as Tour }
536
+
537
+ declare const _default_47: any;
538
+ export { _default_47 as FloatingWindow }
539
+ export { _default_47 as FoxFloatingWindow }
540
+
541
+ declare const _default_48: any;
542
+ export { _default_48 as DomainProvider }
543
+ export { _default_48 as FoxDomainProvider }
544
+
545
+ declare const _default_49: any;
546
+ export { _default_49 as FoxRollingProvider }
547
+ export { _default_49 as RollingProvider }
548
+
503
549
  declare const _default_5: any;
504
550
  export { _default_5 as Content }
505
551
  export { _default_5 as FoxContent }
@@ -570,6 +616,16 @@ export declare function defineItem(descriptor: Descriptor, name?: string, expose
570
616
  */
571
617
  export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
572
618
 
619
+ /**
620
+ * 定义simple item
621
+ * @returns
622
+ */
623
+ export declare function defineSimpleItem(): {
624
+ emitEvent: (type: string, ...args: any[]) => void;
625
+ onEvent: (type: string, listener: EventListener_2) => void;
626
+ offEvent: (type: string, listener: EventListener_2) => void;
627
+ };
628
+
573
629
  /**
574
630
  * 删除公共校验器
575
631
  * @param type
@@ -585,12 +641,16 @@ export declare interface Descriptor {
585
641
  valueName?: string;
586
642
  valueType?: ValueType;
587
643
  validate?: boolean;
644
+ readonly?: boolean;
645
+ disabled?: boolean;
588
646
  pureDataValidate?: boolean;
589
647
  validateHandler?: ValidateHandler;
590
648
  validateCheckEvents?: string[];
591
649
  validateResetEvents?: string[];
592
650
  }
593
651
 
652
+ declare type Direction = '' | 'vertical' | 'horizontal';
653
+
594
654
  /**
595
655
  * 禁用属性
596
656
  * @param source
@@ -743,6 +803,10 @@ export { FoxAffix }
743
803
 
744
804
  export { FoxAlert }
745
805
 
806
+ export { FoxAnchor }
807
+
808
+ export { FoxAnchorLink }
809
+
746
810
  export { FoxAside }
747
811
 
748
812
  export { FoxAutocomplete }
@@ -797,6 +861,8 @@ export { FoxConfigProvider }
797
861
 
798
862
  export { FoxContainer }
799
863
 
864
+ export { FoxCountdown }
865
+
800
866
  export { FoxDatePicker }
801
867
 
802
868
  export { FoxDescriptions }
@@ -875,6 +941,8 @@ export { FoxRow }
875
941
 
876
942
  export { FoxScrollbar }
877
943
 
944
+ export { FoxSegmented }
945
+
878
946
  export { FoxSelect }
879
947
 
880
948
  export { FoxSelectV2 }
@@ -887,6 +955,8 @@ export { FoxSlider }
887
955
 
888
956
  export { FoxSpace }
889
957
 
958
+ export { FoxStatistic }
959
+
890
960
  export { FoxStep }
891
961
 
892
962
  export { FoxSteps }
@@ -999,6 +1069,8 @@ declare class FoxUIVue implements FoxUI {
999
1069
 
1000
1070
  export { FoxUpload }
1001
1071
 
1072
+ export { FoxWatermark }
1073
+
1002
1074
  /**
1003
1075
  * 通用函数接口
1004
1076
  */
@@ -1234,6 +1306,12 @@ export declare function isSubPage(domain: Domain): boolean;
1234
1306
  */
1235
1307
  export declare const isSymbol: (val: unknown) => val is symbol;
1236
1308
 
1309
+ /**
1310
+ * 是否为支持触摸
1311
+ * @returns
1312
+ */
1313
+ export declare function isTouch(): boolean;
1314
+
1237
1315
  /**
1238
1316
  * 是否是window对象
1239
1317
  * @param obj
@@ -1302,6 +1380,12 @@ export declare const objectToString: () => string;
1302
1380
  */
1303
1381
  export declare function once(func: GenericFunction): GenericFunction;
1304
1382
 
1383
+ /**
1384
+ * 覆盖更新公共的校验处理器
1385
+ * @param validateHandler
1386
+ */
1387
+ export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
1388
+
1305
1389
  /**
1306
1390
  * padding
1307
1391
  */
@@ -1318,8 +1402,8 @@ export declare interface Padding {
1318
1402
  export declare interface PageLayout {
1319
1403
  width: number | string;
1320
1404
  height: number | string;
1321
- headerHeight: number | string;
1322
- footerHeight: number | string;
1405
+ headerHeight?: number | string;
1406
+ footerHeight?: number | string;
1323
1407
  headerPadding?: Padding;
1324
1408
  footerPadding?: Padding;
1325
1409
  contentPadding?: Padding;
@@ -1493,10 +1577,14 @@ export declare const toTypeString: (value: unknown) => string;
1493
1577
  /**
1494
1578
  * to model value
1495
1579
  * @param props
1580
+ * @param name
1496
1581
  * @param format
1582
+ * @param emitEvent
1497
1583
  * @returns
1498
1584
  */
1499
- export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
1585
+ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
1586
+ (type: string, ...args: any[]): void;
1587
+ }): Ref;
1500
1588
 
1501
1589
  /**
1502
1590
  * 尝试执行多次函数
@@ -1505,8 +1593,11 @@ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: st
1505
1593
  * @param maxLimit 最大尝试次数
1506
1594
  * @param step 间隔增加步长
1507
1595
  * @param immediately 是否立刻执行
1596
+ * @param callback 执行成功后的回调函数
1508
1597
  */
1509
- export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1598
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean, callback?: {
1599
+ (ret: boolean): void;
1600
+ }): void;
1510
1601
 
1511
1602
  /**
1512
1603
  * 尝试多次函数
@@ -1547,6 +1638,11 @@ export { unNumberFormat }
1547
1638
  * @param state
1548
1639
  * @param pageLayout
1549
1640
  * @param overrideProps
1641
+ * @param root
1642
+ * @param rootWidth
1643
+ * @param rootHeight
1644
+ * @param headerBarHeight
1645
+ * @param footerBarHeight
1550
1646
  */
1551
1647
  export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
1552
1648
 
@@ -1590,6 +1686,31 @@ export declare function usePageState(domain: Domain): PageState | null;
1590
1686
  */
1591
1687
  export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
1592
1688
 
1689
+ /**
1690
+ * 获取非响应式touch对象
1691
+ * @returns
1692
+ */
1693
+ export declare function useRawTouch(): {
1694
+ move: EventListener;
1695
+ start: EventListener;
1696
+ reset: () => void;
1697
+ isVertical: () => boolean;
1698
+ isHorizontal: () => boolean;
1699
+ state: {
1700
+ startX: number;
1701
+ startY: number;
1702
+ startTime: number;
1703
+ duration: number;
1704
+ moveX: number;
1705
+ moveY: number;
1706
+ deltaX: number;
1707
+ deltaY: number;
1708
+ offsetX: number;
1709
+ offsetY: number;
1710
+ direction: Direction;
1711
+ };
1712
+ };
1713
+
1593
1714
  export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1594
1715
 
1595
1716
  /**
@@ -1599,6 +1720,10 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
1599
1720
  */
1600
1721
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1601
1722
 
1723
+ /**
1724
+ * 获取响应式touch对象
1725
+ * @returns
1726
+ */
1602
1727
  export declare function useTouch(): {
1603
1728
  move: EventListener;
1604
1729
  start: EventListener;
@@ -1626,6 +1751,8 @@ export declare interface ValidateCondition {
1626
1751
  include?: string[];
1627
1752
  exclude?: string[];
1628
1753
  ignoreHidden?: boolean;
1754
+ ignoreDisabled?: boolean;
1755
+ ignoreReadonly?: boolean;
1629
1756
  }
1630
1757
 
1631
1758
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pc",
3
3
  "type": "module",
4
- "version": "4.0.1-98",
4
+ "version": "4.1.0",
5
5
  "description": "FoxUI PC端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",
@@ -31,7 +31,8 @@
31
31
  "scripts": {
32
32
  "publish:next": "npm version prerelease && npm publish --tag next --no-git-checks",
33
33
  "publish:patch:next": "npm version patch && npm publish --tag next --no-git-checks",
34
- "publish:minor:next": "npm version minor && npm publish --tag next --no-git-checks"
34
+ "publish:minor:next": "npm version minor && npm publish --tag next --no-git-checks",
35
+ "publish:only": "npm publish --tag next --no-git-checks"
35
36
  },
36
37
  "license": "",
37
38
  "repository": "",
@@ -40,4 +41,4 @@
40
41
  "dayjs": ">=1.0.0",
41
42
  "element-plus": ">=2.0.0"
42
43
  }
43
- }
44
+ }