@fox-js/foxui-pc 4.0.1-99 → 4.1.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';
@@ -58,6 +61,9 @@ import { ElMain as FoxMain } from './base';
58
61
  import { ElMenu as FoxMenu } from './base';
59
62
  import { ElMenuItem as FoxMenuItem } from './base';
60
63
  import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
64
+ import { ElMessage as FoxMessage } from './base';
65
+ import { ElMessageBox as FoxMessageBox } from './base';
66
+ import { ElNotification as FoxNotification } from './base';
61
67
  import { ElOption as FoxOption } from './base';
62
68
  import { ElOptionGroup as FoxOptionGroup } from './base';
63
69
  import { ElPageHeader as FoxPageHeader } from './base';
@@ -73,12 +79,14 @@ import { ElRate as FoxRate } from './base';
73
79
  import { ElResult as FoxResult } from './base';
74
80
  import { ElRow as FoxRow } from './base';
75
81
  import { ElScrollbar as FoxScrollbar } from './base';
82
+ import { ElSegmented as FoxSegmented } from './base';
76
83
  import { ElSelect as FoxSelect } from './base';
77
84
  import { ElSelectV2 as FoxSelectV2 } from './base';
78
85
  import { ElSkeleton as FoxSkeleton } from './base';
79
86
  import { ElSkeletonItem as FoxSkeletonItem } from './base';
80
87
  import { ElSlider as FoxSlider } from './base';
81
88
  import { ElSpace as FoxSpace } from './base';
89
+ import { ElStatistic as FoxStatistic } from './base';
82
90
  import { ElStep as FoxStep } from './base';
83
91
  import { ElSteps as FoxSteps } from './base';
84
92
  import { ElSubMenu as FoxSubMenu } from './base';
@@ -101,6 +109,7 @@ import { ElTreeV2 as FoxTreeV2 } from './base';
101
109
  import { FoxUI } from './interface';
102
110
  import { FoxUIOptions } from './interface';
103
111
  import { ElUpload as FoxUpload } from './base';
112
+ import { ElWatermark as FoxWatermark } from './base';
104
113
  import { multiply } from '@fox-js/big-decimal';
105
114
  import { negate } from '@fox-js/big-decimal';
106
115
  import { numberFormat } from '@fox-js/big-decimal';
@@ -457,49 +466,89 @@ export { _default_3 as FoxHeaderBar }
457
466
  export { _default_3 as HeaderBar }
458
467
 
459
468
  declare const _default_30: any;
460
- export { _default_30 as DialogItem }
461
- export { _default_30 as FoxDialogItem }
469
+ export { _default_30 as FoxTabsBar }
470
+ export { _default_30 as TabsBar }
462
471
 
463
472
  declare const _default_31: any;
464
- export { _default_31 as FoxMapping }
465
- export { _default_31 as Mapping }
473
+ export { _default_31 as FoxTabsContainer }
474
+ export { _default_31 as TabsContainer }
466
475
 
467
476
  declare const _default_32: any;
468
- export { _default_32 as FoxPrice }
469
- export { _default_32 as Price }
477
+ export { _default_32 as FoxTabsPane }
478
+ export { _default_32 as TabsPane }
470
479
 
471
480
  declare const _default_33: any;
472
- export { _default_33 as FoxIndicator }
473
- export { _default_33 as Indicator }
481
+ export { _default_33 as FoxStepsBar }
482
+ export { _default_33 as StepsBar }
474
483
 
475
484
  declare const _default_34: any;
476
- export { _default_34 as FoxText }
477
- export { _default_34 as Text }
485
+ export { _default_34 as DialogItem }
486
+ export { _default_34 as FoxDialogItem }
478
487
 
479
488
  declare const _default_35: any;
480
- export { _default_35 as FoxMoreButton }
481
- export { _default_35 as MoreButton }
489
+ export { _default_35 as FoxOverLay }
490
+ export { _default_35 as OverLay }
482
491
 
483
492
  declare const _default_36: any;
484
- export { _default_36 as FoxTour }
485
- export { _default_36 as Tour }
493
+ export { _default_36 as FoxPopup }
494
+ export { _default_36 as Popup }
486
495
 
487
496
  declare const _default_37: any;
488
- export { _default_37 as FloatingWindow }
489
- export { _default_37 as FoxFloatingWindow }
497
+ export { _default_37 as FoxToast }
498
+ export { _default_37 as Toast }
490
499
 
491
500
  declare const _default_38: any;
492
- export { _default_38 as DomainProvider }
493
- export { _default_38 as FoxDomainProvider }
501
+ export { _default_38 as FoxSearchBar }
502
+ export { _default_38 as SearchBar }
494
503
 
495
504
  declare const _default_39: any;
496
- export { _default_39 as FoxRollingProvider }
497
- export { _default_39 as RollingProvider }
505
+ export { _default_39 as FoxInfiniteLoading }
506
+ export { _default_39 as InfiniteLoading }
498
507
 
499
508
  declare const _default_4: any;
500
509
  export { _default_4 as FooterBar }
501
510
  export { _default_4 as FoxFooterBar }
502
511
 
512
+ declare const _default_40: any;
513
+ export { _default_40 as FoxPullRefresh }
514
+ export { _default_40 as PullRefresh }
515
+
516
+ declare const _default_41: any;
517
+ export { _default_41 as FoxMapping }
518
+ export { _default_41 as Mapping }
519
+
520
+ declare const _default_42: any;
521
+ export { _default_42 as FoxPrice }
522
+ export { _default_42 as Price }
523
+
524
+ declare const _default_43: any;
525
+ export { _default_43 as FoxIndicator }
526
+ export { _default_43 as Indicator }
527
+
528
+ declare const _default_44: any;
529
+ export { _default_44 as FoxText }
530
+ export { _default_44 as Text }
531
+
532
+ declare const _default_45: any;
533
+ export { _default_45 as FoxMoreButton }
534
+ export { _default_45 as MoreButton }
535
+
536
+ declare const _default_46: any;
537
+ export { _default_46 as FoxTour }
538
+ export { _default_46 as Tour }
539
+
540
+ declare const _default_47: any;
541
+ export { _default_47 as FloatingWindow }
542
+ export { _default_47 as FoxFloatingWindow }
543
+
544
+ declare const _default_48: any;
545
+ export { _default_48 as DomainProvider }
546
+ export { _default_48 as FoxDomainProvider }
547
+
548
+ declare const _default_49: any;
549
+ export { _default_49 as FoxRollingProvider }
550
+ export { _default_49 as RollingProvider }
551
+
503
552
  declare const _default_5: any;
504
553
  export { _default_5 as Content }
505
554
  export { _default_5 as FoxContent }
@@ -570,6 +619,16 @@ export declare function defineItem(descriptor: Descriptor, name?: string, expose
570
619
  */
571
620
  export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
572
621
 
622
+ /**
623
+ * 定义simple item
624
+ * @returns
625
+ */
626
+ export declare function defineSimpleItem(): {
627
+ emitEvent: (type: string, ...args: any[]) => void;
628
+ onEvent: (type: string, listener: EventListener_2) => void;
629
+ offEvent: (type: string, listener: EventListener_2) => void;
630
+ };
631
+
573
632
  /**
574
633
  * 删除公共校验器
575
634
  * @param type
@@ -585,12 +644,16 @@ export declare interface Descriptor {
585
644
  valueName?: string;
586
645
  valueType?: ValueType;
587
646
  validate?: boolean;
647
+ readonly?: boolean;
648
+ disabled?: boolean;
588
649
  pureDataValidate?: boolean;
589
650
  validateHandler?: ValidateHandler;
590
651
  validateCheckEvents?: string[];
591
652
  validateResetEvents?: string[];
592
653
  }
593
654
 
655
+ declare type Direction = '' | 'vertical' | 'horizontal';
656
+
594
657
  /**
595
658
  * 禁用属性
596
659
  * @param source
@@ -743,6 +806,10 @@ export { FoxAffix }
743
806
 
744
807
  export { FoxAlert }
745
808
 
809
+ export { FoxAnchor }
810
+
811
+ export { FoxAnchorLink }
812
+
746
813
  export { FoxAside }
747
814
 
748
815
  export { FoxAutocomplete }
@@ -797,6 +864,8 @@ export { FoxConfigProvider }
797
864
 
798
865
  export { FoxContainer }
799
866
 
867
+ export { FoxCountdown }
868
+
800
869
  export { FoxDatePicker }
801
870
 
802
871
  export { FoxDescriptions }
@@ -845,6 +914,12 @@ export { FoxMenuItem }
845
914
 
846
915
  export { FoxMenuItemGroup }
847
916
 
917
+ export { FoxMessage }
918
+
919
+ export { FoxMessageBox }
920
+
921
+ export { FoxNotification }
922
+
848
923
  export { FoxOption }
849
924
 
850
925
  export { FoxOptionGroup }
@@ -875,6 +950,8 @@ export { FoxRow }
875
950
 
876
951
  export { FoxScrollbar }
877
952
 
953
+ export { FoxSegmented }
954
+
878
955
  export { FoxSelect }
879
956
 
880
957
  export { FoxSelectV2 }
@@ -887,6 +964,8 @@ export { FoxSlider }
887
964
 
888
965
  export { FoxSpace }
889
966
 
967
+ export { FoxStatistic }
968
+
890
969
  export { FoxStep }
891
970
 
892
971
  export { FoxSteps }
@@ -999,6 +1078,8 @@ declare class FoxUIVue implements FoxUI {
999
1078
 
1000
1079
  export { FoxUpload }
1001
1080
 
1081
+ export { FoxWatermark }
1082
+
1002
1083
  /**
1003
1084
  * 通用函数接口
1004
1085
  */
@@ -1123,7 +1204,7 @@ export declare const isDate: (val: unknown) => val is Date;
1123
1204
  * @param v
1124
1205
  * @returns
1125
1206
  */
1126
- export declare const isEmptyString: (v: unknown) => v is "";
1207
+ export declare const isEmptyString: (v: unknown) => v is null | undefined | "";
1127
1208
 
1128
1209
  /**
1129
1210
  * 判断两个对象是否一致
@@ -1234,6 +1315,12 @@ export declare function isSubPage(domain: Domain): boolean;
1234
1315
  */
1235
1316
  export declare const isSymbol: (val: unknown) => val is symbol;
1236
1317
 
1318
+ /**
1319
+ * 是否为支持触摸
1320
+ * @returns
1321
+ */
1322
+ export declare function isTouch(): boolean;
1323
+
1237
1324
  /**
1238
1325
  * 是否是window对象
1239
1326
  * @param obj
@@ -1302,6 +1389,12 @@ export declare const objectToString: () => string;
1302
1389
  */
1303
1390
  export declare function once(func: GenericFunction): GenericFunction;
1304
1391
 
1392
+ /**
1393
+ * 覆盖更新公共的校验处理器
1394
+ * @param validateHandler
1395
+ */
1396
+ export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
1397
+
1305
1398
  /**
1306
1399
  * padding
1307
1400
  */
@@ -1318,8 +1411,8 @@ export declare interface Padding {
1318
1411
  export declare interface PageLayout {
1319
1412
  width: number | string;
1320
1413
  height: number | string;
1321
- headerHeight: number | string;
1322
- footerHeight: number | string;
1414
+ headerHeight?: number | string;
1415
+ footerHeight?: number | string;
1323
1416
  headerPadding?: Padding;
1324
1417
  footerPadding?: Padding;
1325
1418
  contentPadding?: Padding;
@@ -1493,10 +1586,14 @@ export declare const toTypeString: (value: unknown) => string;
1493
1586
  /**
1494
1587
  * to model value
1495
1588
  * @param props
1589
+ * @param name
1496
1590
  * @param format
1591
+ * @param emitEvent
1497
1592
  * @returns
1498
1593
  */
1499
- export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
1594
+ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
1595
+ (type: string, ...args: any[]): void;
1596
+ }): Ref;
1500
1597
 
1501
1598
  /**
1502
1599
  * 尝试执行多次函数
@@ -1505,8 +1602,11 @@ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: st
1505
1602
  * @param maxLimit 最大尝试次数
1506
1603
  * @param step 间隔增加步长
1507
1604
  * @param immediately 是否立刻执行
1605
+ * @param callback 执行成功后的回调函数
1508
1606
  */
1509
- export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1607
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean, callback?: {
1608
+ (ret: boolean): void;
1609
+ }): void;
1510
1610
 
1511
1611
  /**
1512
1612
  * 尝试多次函数
@@ -1547,6 +1647,11 @@ export { unNumberFormat }
1547
1647
  * @param state
1548
1648
  * @param pageLayout
1549
1649
  * @param overrideProps
1650
+ * @param root
1651
+ * @param rootWidth
1652
+ * @param rootHeight
1653
+ * @param headerBarHeight
1654
+ * @param footerBarHeight
1550
1655
  */
1551
1656
  export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
1552
1657
 
@@ -1590,6 +1695,31 @@ export declare function usePageState(domain: Domain): PageState | null;
1590
1695
  */
1591
1696
  export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
1592
1697
 
1698
+ /**
1699
+ * 获取非响应式touch对象
1700
+ * @returns
1701
+ */
1702
+ export declare function useRawTouch(): {
1703
+ move: EventListener;
1704
+ start: EventListener;
1705
+ reset: () => void;
1706
+ isVertical: () => boolean;
1707
+ isHorizontal: () => boolean;
1708
+ state: {
1709
+ startX: number;
1710
+ startY: number;
1711
+ startTime: number;
1712
+ duration: number;
1713
+ moveX: number;
1714
+ moveY: number;
1715
+ deltaX: number;
1716
+ deltaY: number;
1717
+ offsetX: number;
1718
+ offsetY: number;
1719
+ direction: Direction;
1720
+ };
1721
+ };
1722
+
1593
1723
  export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1594
1724
 
1595
1725
  /**
@@ -1599,6 +1729,10 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
1599
1729
  */
1600
1730
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1601
1731
 
1732
+ /**
1733
+ * 获取响应式touch对象
1734
+ * @returns
1735
+ */
1602
1736
  export declare function useTouch(): {
1603
1737
  move: EventListener;
1604
1738
  start: EventListener;
@@ -1626,6 +1760,8 @@ export declare interface ValidateCondition {
1626
1760
  include?: string[];
1627
1761
  exclude?: string[];
1628
1762
  ignoreHidden?: boolean;
1763
+ ignoreDisabled?: boolean;
1764
+ ignoreReadonly?: boolean;
1629
1765
  }
1630
1766
 
1631
1767
  /**
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-99",
4
+ "version": "4.1.1-0",
5
5
  "description": "FoxUI PC端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",
@@ -10,6 +10,7 @@
10
10
  "style": "./dist/style.css",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/types/index.d.ts",
13
14
  "import": "./dist/index.esm.js",
14
15
  "require": "./dist/index.umd.js"
15
16
  },
@@ -31,13 +32,14 @@
31
32
  "scripts": {
32
33
  "publish:next": "npm version prerelease && npm publish --tag next --no-git-checks",
33
34
  "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"
35
+ "publish:minor:next": "npm version minor && npm publish --tag next --no-git-checks",
36
+ "publish:only": "npm publish --tag next --no-git-checks"
35
37
  },
36
38
  "license": "",
37
39
  "repository": "",
38
40
  "peerDependencies": {
39
- "@element-plus/icons-vue": ">=2.0.0",
41
+ "@element-plus/icons-vue": ">=2.3.1",
40
42
  "dayjs": ">=1.0.0",
41
- "element-plus": ">=2.0.0"
43
+ "element-plus": ">=2.7.6"
42
44
  }
43
45
  }