@nutui/nutui-react 1.4.3-beta.0 → 1.4.4-beta.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.
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, MouseEventHandler, ChangeEvent, FocusEvent, HTMLInputTypeAttribute, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
2
+ import React__default, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, MouseEventHandler, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
3
3
 
4
4
  interface BasicComponent {
5
5
  className?: string;
@@ -58,58 +58,6 @@ interface CellGroupProps {
58
58
  }
59
59
  declare const CellGroup: FunctionComponent<Partial<CellGroupProps>>;
60
60
 
61
- interface IconProps {
62
- name: string;
63
- size: string | number;
64
- classPrefix: string;
65
- color: string;
66
- tag: keyof ReactHTML;
67
- onClick: (e: MouseEvent) => void;
68
- fontClassName: string;
69
- className: string;
70
- style: React__default.CSSProperties;
71
- children: React__default.ReactNode;
72
- }
73
- declare function Icon<T>(props: Partial<IconProps> & T): ReactElement;
74
- declare namespace Icon {
75
- var defaultProps: IconProps;
76
- var displayName: string;
77
- }
78
-
79
- interface OverlayProps {
80
- zIndex: number;
81
- duration: number;
82
- overlayClass: string;
83
- overlayStyle: React__default.CSSProperties;
84
- closeOnClickOverlay: boolean;
85
- visible: boolean;
86
- lockScroll: boolean;
87
- }
88
- declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
89
-
90
- type Teleport = HTMLElement | (() => HTMLElement) | null;
91
- interface PopupProps extends OverlayProps, BasicComponent {
92
- position: string;
93
- transition: string;
94
- style: React__default.CSSProperties;
95
- popClass: string;
96
- closeable: boolean;
97
- closeIconPosition: string;
98
- closeIcon: string;
99
- destroyOnClose: boolean;
100
- teleport: Teleport;
101
- overlay: boolean;
102
- round: boolean;
103
- onOpen: () => void;
104
- onClose: () => void;
105
- onClick: (e: MouseEvent$1) => void;
106
- onOpened: (e: HTMLElement) => void;
107
- onClosed: (e: HTMLElement) => void;
108
- onClickOverlay: (e: MouseEvent$1) => void;
109
- onClickCloseIcon: (e: MouseEvent$1) => void;
110
- }
111
- declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
112
-
113
61
  interface BaseLang {
114
62
  save: string;
115
63
  confirm: string;
@@ -246,6 +194,24 @@ interface ConfigProviderProps {
246
194
  }
247
195
  declare const ConfigProvider: FunctionComponent<Partial<ConfigProviderProps> & React__default.HTMLAttributes<HTMLDivElement>>;
248
196
 
197
+ interface IconProps {
198
+ name: string;
199
+ size: string | number;
200
+ classPrefix: string;
201
+ color: string;
202
+ tag: keyof ReactHTML;
203
+ onClick: (e: MouseEvent) => void;
204
+ fontClassName: string;
205
+ className: string;
206
+ style: React__default.CSSProperties;
207
+ children: React__default.ReactNode;
208
+ }
209
+ declare function Icon<T>(props: Partial<IconProps> & T): ReactElement;
210
+ declare namespace Icon {
211
+ var defaultProps: IconProps;
212
+ var displayName: string;
213
+ }
214
+
249
215
  interface ImageProps {
250
216
  className: string;
251
217
  style: React__default.CSSProperties;
@@ -269,9 +235,39 @@ type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
269
235
  type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
270
236
  declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
271
237
 
272
- interface LayoutProps {
238
+ interface OverlayProps {
239
+ zIndex: number;
240
+ duration: number;
241
+ overlayClass: string;
242
+ overlayStyle: React__default.CSSProperties;
243
+ closeOnClickOverlay: boolean;
244
+ visible: boolean;
245
+ lockScroll: boolean;
273
246
  }
274
- declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
247
+ declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
248
+
249
+ type Teleport = HTMLElement | (() => HTMLElement) | null;
250
+ interface PopupProps extends OverlayProps, BasicComponent {
251
+ position: string;
252
+ transition: string;
253
+ style: React__default.CSSProperties;
254
+ popClass: string;
255
+ closeable: boolean;
256
+ closeIconPosition: string;
257
+ closeIcon: string;
258
+ destroyOnClose: boolean;
259
+ teleport: Teleport;
260
+ overlay: boolean;
261
+ round: boolean;
262
+ onOpen: () => void;
263
+ onClose: () => void;
264
+ onClick: (e: MouseEvent$1) => void;
265
+ onOpened: (e: HTMLElement) => void;
266
+ onClosed: (e: HTMLElement) => void;
267
+ onClickOverlay: (e: MouseEvent$1) => void;
268
+ onClickCloseIcon: (e: MouseEvent$1) => void;
269
+ }
270
+ declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
275
271
 
276
272
  type EventType$1 = 'row' | 'col';
277
273
  interface ColProps {
@@ -282,17 +278,6 @@ interface ColProps {
282
278
  }
283
279
  declare const Col: FunctionComponent<Partial<ColProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
284
280
 
285
- type EventType = 'row' | 'col';
286
- interface RowProps {
287
- type: string;
288
- justify: string;
289
- align: string;
290
- wrap: string;
291
- gutter: string | number;
292
- onClick: (e: any, type: EventType) => void;
293
- }
294
- declare const Row: FunctionComponent<Partial<RowProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
295
-
296
281
  type ContentPositionType = 'left' | 'center' | 'right';
297
282
  type DirectionType = 'horizontal' | 'vertical';
298
283
  interface DividerProps {
@@ -308,6 +293,8 @@ declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.
308
293
  type GridDirection$1 = 'horizontal' | 'vertical';
309
294
  interface GridItemProps extends BasicComponent {
310
295
  text: string | ReactNode;
296
+ fontSize: string | number;
297
+ color: string;
311
298
  icon: string | ReactNode;
312
299
  iconSize?: string | number;
313
300
  iconColor?: string;
@@ -341,6 +328,21 @@ interface GridProps {
341
328
  }
342
329
  declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
343
330
 
331
+ interface LayoutProps {
332
+ }
333
+ declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
334
+
335
+ type EventType = 'row' | 'col';
336
+ interface RowProps {
337
+ type: string;
338
+ justify: string;
339
+ align: string;
340
+ wrap: string;
341
+ gutter: string | number;
342
+ onClick: (e: any, type: EventType) => void;
343
+ }
344
+ declare const Row: FunctionComponent<Partial<RowProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
345
+
344
346
  interface StickyProps extends BasicComponent {
345
347
  container?: React__default.RefObject<HTMLElement>;
346
348
  position?: 'top' | 'bottom';
@@ -353,26 +355,25 @@ interface StickyProps extends BasicComponent {
353
355
  }
354
356
  declare const Sticky: FunctionComponent<StickyProps>;
355
357
 
356
- interface NavBarProps$1 extends BasicComponent {
357
- leftShow: boolean;
358
- title: string;
359
- titIcon: string;
360
- leftText: string;
361
- desc: string;
358
+ interface ElevatorProps {
359
+ height: number | string;
360
+ acceptKey: string;
361
+ indexList: any[];
362
+ isSticky: boolean;
363
+ spaceHeight: number;
364
+ titleHeight: number;
362
365
  className: string;
363
- fixed: boolean;
364
- safeAreaInsetTop: boolean;
365
- border: boolean;
366
- placeholder: boolean;
367
- zIndex: number | string;
368
366
  style: React__default.CSSProperties;
369
- onClickTitle: (e: React__default.MouseEvent<HTMLDivElement>) => void;
370
- onClickIcon: (e: React__default.MouseEvent<HTMLDivElement>) => void;
371
- onClickBack: (e: React__default.MouseEvent<HTMLElement>) => void;
372
- onClickRight: (e: React__default.MouseEvent<HTMLDivElement>) => void;
373
- children?: React__default.ReactNode;
367
+ children: React__default.ReactNode;
368
+ onClickItem: (key: string, item: ElevatorData) => void;
369
+ onClickIndex: (key: string) => void;
374
370
  }
375
- declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
371
+ interface ElevatorData {
372
+ name: string;
373
+ id: number | string;
374
+ [key: string]: string | number;
375
+ }
376
+ declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
376
377
 
377
378
  type Direction$1 = 'right' | 'left';
378
379
  type Position$2 = {
@@ -395,128 +396,90 @@ interface FixedNavProps extends BasicComponent {
395
396
  }
396
397
  declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & React__default.HTMLAttributes<HTMLDivElement>>;
397
398
 
398
- interface TabbarProps {
399
- visible: number | string;
400
- bottom: boolean;
401
- size: string | number;
402
- unactiveColor: string;
403
- activeColor: string;
404
- safeAreaInsetBottom: boolean;
405
- className: string;
406
- style: React__default.CSSProperties;
407
- tabSwitch: (child: React__default.ReactElement<any>, active: number) => void;
408
- onSwitch: (child: React__default.ReactElement<any>, active: number) => void;
409
- children?: React__default.ReactNode;
399
+ interface IndicatorProps {
400
+ size: number;
401
+ current: number;
402
+ block: boolean;
403
+ align: 'left' | 'right' | 'center';
404
+ fillZero: boolean;
405
+ vertical: boolean;
410
406
  }
411
- declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
407
+ declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
412
408
 
413
- interface TabbarItemProps extends BasicComponent {
414
- dot: boolean;
415
- size: string | number;
409
+ interface MenuProps extends BasicComponent {
416
410
  className: string;
417
- tabTitle: string;
418
- icon: string;
419
- href: string;
420
- num: string | number;
421
- active: boolean;
411
+ style: React__default.CSSProperties;
422
412
  activeColor: string;
423
- unactiveColor: string;
424
- index: number;
425
- handleClick: (idx: number) => void;
413
+ closeOnClickOverlay: boolean;
414
+ scrollFixed: boolean | string | number;
415
+ lockScroll: boolean;
416
+ titleIcon: string;
417
+ children: React__default.ReactNode;
426
418
  }
427
- declare const TabbarItem: FunctionComponent<Partial<TabbarItemProps>>;
419
+ declare const Menu: FunctionComponent<Partial<MenuProps>>;
428
420
 
429
- interface ElevatorProps {
430
- height: number | string;
431
- acceptKey: string;
432
- indexList: any[];
433
- isSticky: boolean;
434
- spaceHeight: number;
435
- titleHeight: number;
421
+ interface OptionItem {
422
+ text: string;
423
+ value: string | number;
424
+ }
425
+ interface MenuItemProps extends BasicComponent {
436
426
  className: string;
437
427
  style: React__default.CSSProperties;
428
+ title: React__default.ReactNode;
429
+ options: OptionItem[];
430
+ disabled: boolean;
431
+ columns: number;
432
+ optionsIcon: string;
433
+ direction: string;
434
+ activeTitleClass: string;
435
+ inactiveTitleClass: string;
436
+ fontClassName: string;
437
+ iconClassPrefix: string;
438
+ value: string | number;
439
+ onChange: (event: any) => void;
438
440
  children: React__default.ReactNode;
439
- onClickItem: (key: string, item: ElevatorData) => void;
440
- onClickIndex: (key: string) => void;
441
441
  }
442
- interface ElevatorData {
443
- name: string;
444
- id: number | string;
445
- [key: string]: string | number;
446
- }
447
- declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
442
+ declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
448
443
 
449
- interface PaginationProps {
450
- defaultValue: number;
451
- modelValue: number;
452
- mode: 'multi' | 'simple';
453
- prevText?: React__default.ReactNode;
454
- nextText?: React__default.ReactNode;
455
- pageCount: string | number;
456
- totalItems: string | number;
457
- itemsPerPage: string | number;
458
- showPageSize: string | number;
459
- forceEllipses: boolean;
460
- pageNodeRender: (page: any) => React__default.ReactNode;
461
- onChange: (currPage: number) => void;
462
- updatecurrent: (currPage: number) => void;
463
- style?: React__default.CSSProperties;
464
- className?: string;
465
- }
466
- declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
467
-
468
- declare class Title {
444
+ interface NavBarProps$1 extends BasicComponent {
445
+ leftShow: boolean;
469
446
  title: string;
470
- paneKey: string;
471
- disabled: boolean;
472
- index: number;
473
- constructor();
474
- }
475
- type TabsSize = 'large' | 'normal' | 'small';
476
- interface TabsProps extends BasicComponent {
447
+ titIcon: string;
448
+ leftText: string;
449
+ desc: string;
477
450
  className: string;
451
+ fixed: boolean;
452
+ safeAreaInsetTop: boolean;
453
+ border: boolean;
454
+ placeholder: boolean;
455
+ zIndex: number | string;
478
456
  style: React__default.CSSProperties;
479
- tabStyle: React__default.CSSProperties;
480
- value: string | number;
481
- color: string;
482
- background: string;
483
- direction: string;
484
- type: string;
485
- titleScroll: boolean;
486
- ellipsis: boolean;
487
- animatedTime: number | string;
488
- titleGutter: number | string;
489
- size: TabsSize;
490
- titleNode: () => JSX.Element[];
491
- onChange: (t: Title) => void;
492
- onClick: (t: Title) => void;
493
- autoHeight: boolean;
494
- children?: React__default.ReactNode;
495
- }
496
- declare const Tabs: FunctionComponent<Partial<TabsProps>>;
497
-
498
- interface TabPanelInnerProps {
499
- autoHeightClassName: string;
500
- }
501
- interface TabPaneProps {
502
- title: string | number;
503
- paneKey: string | number;
504
- activeKey: string | number;
505
- disabled: boolean;
506
- className: string;
457
+ onClickTitle: (e: React__default.MouseEvent<HTMLDivElement>) => void;
458
+ onClickIcon: (e: React__default.MouseEvent<HTMLDivElement>) => void;
459
+ onClickBack: (e: React__default.MouseEvent<HTMLElement>) => void;
460
+ onClickRight: (e: React__default.MouseEvent<HTMLDivElement>) => void;
507
461
  children?: React__default.ReactNode;
508
462
  }
509
- declare const TabPane: FunctionComponent<Partial<TabPaneProps & TabPanelInnerProps>>;
463
+ declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
510
464
 
511
- interface IndicatorProps {
512
- size: number;
513
- current: number;
514
- block: boolean;
515
- align: 'left' | 'right' | 'center';
516
- fillZero: boolean;
517
- vertical: boolean;
465
+ interface PaginationProps {
466
+ defaultValue: number;
467
+ modelValue: number;
468
+ mode: 'multi' | 'simple';
469
+ prevText?: React__default.ReactNode;
470
+ nextText?: React__default.ReactNode;
471
+ pageCount: string | number;
472
+ totalItems: string | number;
473
+ itemsPerPage: string | number;
474
+ showPageSize: string | number;
475
+ forceEllipses: boolean;
476
+ pageNodeRender: (page: any) => React__default.ReactNode;
477
+ onChange: (currPage: number) => void;
478
+ updatecurrent: (currPage: number) => void;
479
+ style?: React__default.CSSProperties;
480
+ className?: string;
518
481
  }
519
- declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
482
+ declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
520
483
 
521
484
  type NavBarProps = {
522
485
  showhead?: boolean;
@@ -532,93 +495,103 @@ interface SideNavBarProps extends React__default.HTMLAttributes<HTMLDivElement>,
532
495
  }
533
496
  declare const SideNavBar: FunctionComponent<SideNavBarProps>;
534
497
 
535
- type SubSideNavBarProps = {
498
+ type SideNavBarItemProps = {
536
499
  title: string;
537
500
  ikey: string | number;
538
- open?: boolean;
539
- children?: React__default.ReactNode;
540
- onClick?: ({ title, ikey, isShow, }: {
501
+ onClick?: ({ title, ikey }: {
541
502
  title: string;
542
503
  ikey: string | number;
543
- isShow: boolean;
544
504
  }) => void;
505
+ children?: React__default.ReactNode;
545
506
  };
546
- declare const SubSideNavBar: FunctionComponent<SubSideNavBarProps>;
507
+ declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
547
508
 
548
- type SideNavBarItemProps = {
509
+ type SubSideNavBarProps = {
549
510
  title: string;
550
511
  ikey: string | number;
551
- onClick?: ({ title, ikey }: {
512
+ open?: boolean;
513
+ children?: React__default.ReactNode;
514
+ onClick?: ({ title, ikey, isShow, }: {
552
515
  title: string;
553
516
  ikey: string | number;
517
+ isShow: boolean;
554
518
  }) => void;
555
- children?: React__default.ReactNode;
556
519
  };
557
- declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
520
+ declare const SubSideNavBar: FunctionComponent<SubSideNavBarProps>;
558
521
 
559
- interface MenuProps extends BasicComponent {
522
+ interface TabbarProps {
523
+ visible: number | string;
524
+ bottom: boolean;
525
+ size: string | number;
526
+ unactiveColor: string;
527
+ activeColor: string;
528
+ safeAreaInsetBottom: boolean;
560
529
  className: string;
561
530
  style: React__default.CSSProperties;
531
+ tabSwitch: (child: React__default.ReactElement<any>, active: number) => void;
532
+ onSwitch: (child: React__default.ReactElement<any>, active: number) => void;
533
+ children?: React__default.ReactNode;
534
+ }
535
+ declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
536
+
537
+ interface TabbarItemProps extends BasicComponent {
538
+ dot: boolean;
539
+ size: string | number;
540
+ className: string;
541
+ tabTitle: string;
542
+ icon: string;
543
+ href: string;
544
+ num: string | number;
545
+ active: boolean;
562
546
  activeColor: string;
563
- closeOnClickOverlay: boolean;
564
- scrollFixed: boolean | string | number;
565
- lockScroll: boolean;
566
- titleIcon: string;
567
- children: React__default.ReactNode;
547
+ unactiveColor: string;
548
+ index: number;
549
+ handleClick: (idx: number) => void;
568
550
  }
569
- declare const Menu: FunctionComponent<Partial<MenuProps>>;
551
+ declare const TabbarItem: FunctionComponent<Partial<TabbarItemProps>>;
570
552
 
571
- interface OptionItem {
572
- text: string;
573
- value: string | number;
553
+ interface TabPanelInnerProps {
554
+ autoHeightClassName: string;
574
555
  }
575
- interface MenuItemProps extends BasicComponent {
576
- className: string;
577
- style: React__default.CSSProperties;
578
- title: React__default.ReactNode;
579
- options: OptionItem[];
556
+ interface TabPaneProps {
557
+ title: string | number;
558
+ paneKey: string | number;
559
+ activeKey: string | number;
580
560
  disabled: boolean;
581
- columns: number;
582
- optionsIcon: string;
583
- direction: string;
584
- activeTitleClass: string;
585
- inactiveTitleClass: string;
586
- fontClassName: string;
587
- iconClassPrefix: string;
588
- value: string | number;
589
- onChange: (event: any) => void;
590
- children: React__default.ReactNode;
561
+ className: string;
562
+ children?: React__default.ReactNode;
591
563
  }
592
- declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
564
+ declare const TabPane: FunctionComponent<Partial<TabPaneProps & TabPanelInnerProps>>;
593
565
 
594
- type SliderValue = number | number[];
595
- interface RangeProps {
596
- className: string;
597
- style: CSSProperties;
598
- range: boolean;
566
+ declare class Title {
567
+ title: string;
568
+ paneKey: string;
599
569
  disabled: boolean;
600
- activeColor: string;
601
- inactiveColor: string;
602
- buttonColor: string;
603
- hiddenRange: boolean;
604
- hiddenTag: boolean;
605
- min: number | string;
606
- max: number | string;
607
- minDesc: number | string;
608
- maxDesc: number | string;
609
- curValueDesc: number | string;
610
- step: number | string;
611
- modelValue: SliderValue;
612
- button: React__default.ReactNode;
613
- vertical: boolean;
614
- marks: Record<string, unknown>;
615
- dragStart?: () => void;
616
- dragEnd?: () => void;
617
- onChange?: (value: number) => void;
618
- onDragStart?: () => void;
619
- onDragEnd?: () => void;
570
+ index: number;
571
+ constructor();
620
572
  }
621
- declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
573
+ type TabsSize = 'large' | 'normal' | 'small';
574
+ interface TabsProps extends BasicComponent {
575
+ className: string;
576
+ style: React__default.CSSProperties;
577
+ tabStyle: React__default.CSSProperties;
578
+ value: string | number;
579
+ color: string;
580
+ background: string;
581
+ direction: string;
582
+ type: string;
583
+ titleScroll: boolean;
584
+ ellipsis: boolean;
585
+ animatedTime: number | string;
586
+ titleGutter: number | string;
587
+ size: TabsSize;
588
+ titleNode: () => JSX.Element[];
589
+ onChange: (t: Title) => void;
590
+ onClick: (t: Title) => void;
591
+ autoHeight: boolean;
592
+ children?: React__default.ReactNode;
593
+ }
594
+ declare const Tabs: FunctionComponent<Partial<TabsProps>>;
622
595
 
623
596
  type CalendarRef$1 = {
624
597
  scrollToDate: (date: string) => void;
@@ -653,21 +626,94 @@ interface CalendarProps {
653
626
  }
654
627
  declare const Calendar: React__default.ForwardRefExoticComponent<Partial<CalendarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, ""> & React__default.RefAttributes<CalendarRef$1>>;
655
628
 
656
- interface RadioGroupOptionType {
657
- label: string;
658
- value: string;
659
- disabled?: boolean;
660
- onChange?: MouseEventHandler<HTMLDivElement>;
629
+ type CalendarRef = {
630
+ scrollToDate: (date: string) => void;
631
+ };
632
+ type InputDate = string | string[];
633
+ interface Day {
634
+ day: string | number;
635
+ type: string;
661
636
  }
662
-
663
- interface CheckboxGroupProps {
664
- disabled: boolean;
665
- checkedValue: string[];
666
- max: number | undefined;
667
- onChange: (value: string[]) => void;
668
- options: RadioGroupOptionType[];
637
+ interface CalendarItemProps {
638
+ type?: string;
639
+ isAutoBackFill?: boolean;
640
+ poppable?: boolean;
641
+ visible?: boolean;
642
+ title?: string;
643
+ defaultValue: InputDate;
644
+ startDate?: InputDate;
645
+ endDate?: InputDate;
646
+ showToday?: boolean;
647
+ startText?: string;
648
+ endText?: string;
649
+ confirmText?: string;
650
+ showTitle?: boolean;
651
+ showSubTitle?: boolean;
652
+ toDateAnimation?: boolean;
653
+ onBtn?: (() => string | JSX.Element) | undefined;
654
+ onDay?: ((date: Day) => string | JSX.Element) | undefined;
655
+ onTopInfo?: ((date: Day) => string | JSX.Element) | undefined;
656
+ onBottomInfo?: ((date: Day) => string | JSX.Element) | undefined;
657
+ onChoose?: (data: any) => void;
658
+ onUpdate?: () => void;
659
+ onSelected?: (data: string) => void;
669
660
  }
670
- declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
661
+ declare const CalendarItem: React__default.ForwardRefExoticComponent<Partial<CalendarItemProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, ""> & React__default.RefAttributes<CalendarRef>>;
662
+
663
+ interface CascaderOption {
664
+ text?: string;
665
+ value?: number | string;
666
+ paneKey?: string;
667
+ disabled?: boolean;
668
+ children?: CascaderOption[];
669
+ leaf?: boolean;
670
+ level?: number;
671
+ loading?: boolean;
672
+ root?: boolean;
673
+ }
674
+
675
+ interface CascaderProps {
676
+ className: string;
677
+ style: CSSProperties;
678
+ activeColor: string;
679
+ tabsColor: string;
680
+ poppable: boolean;
681
+ visible: boolean;
682
+ options: CascaderOption[];
683
+ value: string[];
684
+ title: string;
685
+ textKey: string;
686
+ valueKey: string;
687
+ childrenKey: string;
688
+ convertConfig: Record<string, string | number | null>;
689
+ closeable: boolean;
690
+ closeIconPosition: string;
691
+ closeIcon: string;
692
+ lazy: boolean;
693
+ lazyLoad: (node: any, resolve: any) => void;
694
+ onClose?: () => void;
695
+ onChange: (value: any, params: any) => void;
696
+ onPathChange: (value: any, params: any) => void;
697
+ }
698
+ declare const Cascader: React__default.ForwardRefExoticComponent<Partial<CascaderProps> & {
699
+ children?: React__default.ReactNode;
700
+ } & React__default.RefAttributes<unknown>>;
701
+
702
+ interface RadioGroupOptionType {
703
+ label: string;
704
+ value: string;
705
+ disabled?: boolean;
706
+ onChange?: MouseEventHandler<HTMLDivElement>;
707
+ }
708
+
709
+ interface CheckboxGroupProps {
710
+ disabled: boolean;
711
+ checkedValue: string[];
712
+ max: number | undefined;
713
+ onChange: (value: string[]) => void;
714
+ options: RadioGroupOptionType[];
715
+ }
716
+ declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
671
717
 
672
718
  interface InheritParentProps {
673
719
  getParentVals?: () => string[] | undefined;
@@ -718,33 +764,95 @@ interface DatePickerProps {
718
764
  }
719
765
  declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
720
766
 
721
- interface InputNumberProps extends BasicComponent {
767
+ interface FormItemRuleWithoutValidator {
768
+ [key: string]: any;
769
+ regex?: RegExp;
770
+ required?: boolean;
771
+ message?: string;
772
+ }
773
+ interface FormItemRule extends FormItemRuleWithoutValidator {
774
+ validator?: (value: any, ruleCfg: FormItemRuleWithoutValidator) => boolean | string | Promise<boolean | string>;
775
+ }
776
+ interface BaseFormField {
777
+ /**
778
+ * 字段名
779
+ */
780
+ name: string;
781
+ /**
782
+ * label 标签的文本
783
+ */
784
+ label: string;
785
+ /**
786
+ * 校验规则,设置字段的校验逻辑
787
+ */
788
+ rules: FormItemRule[];
789
+ /**
790
+ * 是否禁用表单项
791
+ */
722
792
  disabled: boolean;
723
- buttonSize: string | number;
724
- min: string | number;
725
- max: string | number;
726
- inputWidth: string | number;
727
- readonly: boolean;
728
- modelValue: string | number;
729
- step: string | number;
730
- decimalPlaces: string | number;
731
- isAsync: boolean;
732
- className: string;
733
- style: React__default.CSSProperties;
734
- add: (e: MouseEvent) => void;
735
- reduce: (e: MouseEvent) => void;
736
- overlimit: (e: MouseEvent) => void;
737
- blur: (e: ChangeEvent<HTMLInputElement>) => void;
738
- focus: (e: FocusEvent<HTMLInputElement>) => void;
739
- change: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
740
- onAdd: (e: MouseEvent) => void;
741
- onReduce: (e: MouseEvent) => void;
742
- onOverlimit: (e: MouseEvent) => void;
743
- onBlurFuc: (e: ChangeEvent<HTMLInputElement>) => void;
744
- onFocus: (e: FocusEvent<HTMLInputElement>) => void;
745
- onChangeFuc: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
746
793
  }
747
- declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React__default.HTMLAttributes<HTMLDivElement>>;
794
+
795
+ interface ConfigConsumerProps {
796
+ [propName: string]: any;
797
+ }
798
+ declare const FormItemContext: React$1.Context<ConfigConsumerProps>;
799
+
800
+ type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
801
+ interface FormItemProps extends BasicComponent, BaseFormField {
802
+ labelWidth: string | number;
803
+ errorMessageAlign: TextAlign;
804
+ showErrorLine: boolean;
805
+ showErrorMessage: boolean;
806
+ }
807
+ declare const defaultProps: FormItemProps;
808
+ type FieldProps = typeof defaultProps & Partial<BaseFormField>;
809
+ declare class FormItem extends React__default.Component<FieldProps> {
810
+ static defaultProps: FormItemProps;
811
+ static contextType: any;
812
+ context: React__default.ContextType<typeof FormItemContext>;
813
+ private cancelRegister;
814
+ componentDidMount(): void;
815
+ componentWillUnmount(): void;
816
+ getControlled: (children: React__default.ReactElement) => {
817
+ value: any;
818
+ onChange: (event: React__default.ChangeEvent<HTMLInputElement> | number | string | string[]) => void;
819
+ };
820
+ onStoreChange: () => void;
821
+ renderLayout: (childNode: React__default.ReactNode) => JSX.Element;
822
+ pxCheck: (value: string | number) => string;
823
+ render(): JSX.Element;
824
+ }
825
+
826
+ interface BaseForm {
827
+ /**
828
+ * 经 Form.useForm() 创建的 form 控制实例,不提供时会自动创建
829
+ */
830
+ form: any;
831
+ /**
832
+ * label的位置
833
+ * 可选值 top/left/right
834
+ */
835
+ labelPosition: string | number;
836
+ /**
837
+ * 表单分组名称
838
+ */
839
+ formGroupTitle: string;
840
+ starPositon: string;
841
+ /**
842
+ * 表单校验成功回调
843
+ */
844
+ onFinish: (obj: object) => void;
845
+ /**
846
+ * 表单校验失败回调
847
+ */
848
+ onFinishFailed: (value: []) => void;
849
+ }
850
+
851
+ interface FormProps extends BasicComponent, BaseForm {
852
+ }
853
+ declare const Form: FunctionComponent<Partial<FormProps> & React__default.HTMLAttributes<HTMLFormElement>> & {
854
+ Item: typeof FormItem;
855
+ };
748
856
 
749
857
  type InputAlignType = 'left' | 'center' | 'right';
750
858
  type InputFormatTrigger = 'onChange' | 'onBlur';
@@ -803,6 +911,73 @@ interface InputProps extends BasicComponent {
803
911
  }
804
912
  declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus' | 'onClick'>>;
805
913
 
914
+ interface InputNumberProps extends BasicComponent {
915
+ disabled: boolean;
916
+ buttonSize: string | number;
917
+ min: string | number;
918
+ max: string | number;
919
+ inputWidth: string | number;
920
+ readonly: boolean;
921
+ modelValue: string | number;
922
+ step: string | number;
923
+ decimalPlaces: string | number;
924
+ isAsync: boolean;
925
+ className: string;
926
+ style: React__default.CSSProperties;
927
+ add: (e: MouseEvent) => void;
928
+ reduce: (e: MouseEvent) => void;
929
+ overlimit: (e: MouseEvent) => void;
930
+ blur: (e: ChangeEvent<HTMLInputElement>) => void;
931
+ focus: (e: FocusEvent<HTMLInputElement>) => void;
932
+ change: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
933
+ onAdd: (e: MouseEvent) => void;
934
+ onReduce: (e: MouseEvent) => void;
935
+ onOverlimit: (e: MouseEvent) => void;
936
+ onBlurFuc: (e: ChangeEvent<HTMLInputElement>) => void;
937
+ onFocus: (e: FocusEvent<HTMLInputElement>) => void;
938
+ onChangeFuc: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
939
+ }
940
+ declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React__default.HTMLAttributes<HTMLDivElement>>;
941
+
942
+ interface NumberKeyboardProps {
943
+ confirmText: string;
944
+ title: string;
945
+ visible: boolean;
946
+ type: string;
947
+ customKey: Array<string>;
948
+ randomKeys: boolean;
949
+ popClass: string;
950
+ className: string;
951
+ style?: CSSProperties;
952
+ onChange?: (value: string) => void;
953
+ onDelete?: () => void;
954
+ onClose: () => void;
955
+ }
956
+ declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
957
+
958
+ interface PickerOption {
959
+ text: string | number;
960
+ value: string | number;
961
+ disabled?: string;
962
+ children?: PickerOption[];
963
+ className?: string | number;
964
+ }
965
+ interface PickerProps {
966
+ isVisible: boolean;
967
+ title?: string;
968
+ listData: (PickerOption | PickerOption[])[];
969
+ defaultValueData?: (number | string)[];
970
+ className?: '';
971
+ style?: React__default.CSSProperties;
972
+ threeDimensional?: boolean;
973
+ swipeDuration: number | string;
974
+ onConfirm?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
975
+ onClose?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
976
+ onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
977
+ onChange?: (index: number, value: (string | number)[], selectedOptions: PickerOption[]) => void;
978
+ }
979
+ declare const Picker: React__default.ForwardRefExoticComponent<Partial<PickerProps> & React__default.RefAttributes<unknown>>;
980
+
806
981
  type Position$1 = 'left' | 'right';
807
982
  type Direction = 'horizontal' | 'vertical';
808
983
  interface RadioGroupProps {
@@ -833,79 +1008,113 @@ declare const Radio: FunctionComponent<Partial<RadioProps> & React__default.HTML
833
1008
  RadioGroup: typeof RadioGroup;
834
1009
  };
835
1010
 
836
- interface RateProps extends BasicComponent {
837
- count: string | number;
838
- modelValue: string | number;
839
- minimizeValue: string | number;
840
- iconSize: string | number;
841
- activeColor: string;
842
- voidColor: string;
843
- checkedIcon: string;
844
- uncheckedIcon: string;
1011
+ type SliderValue = number | number[];
1012
+ interface RangeProps {
1013
+ className: string;
1014
+ style: CSSProperties;
1015
+ range: boolean;
845
1016
  disabled: boolean;
846
- readonly: boolean;
847
- allowHalf: boolean;
848
- spacing: string | number;
849
- onChange: (val: number) => void;
850
- }
851
- declare const Rate: FunctionComponent<Partial<RateProps>>;
852
-
853
- type CalendarRef = {
854
- scrollToDate: (date: string) => void;
855
- };
856
- type InputDate = string | string[];
857
- interface Day {
858
- day: string | number;
859
- type: string;
860
- }
861
- interface CalendarItemProps {
862
- type?: string;
863
- isAutoBackFill?: boolean;
864
- poppable?: boolean;
865
- visible?: boolean;
866
- title?: string;
867
- defaultValue: InputDate;
868
- startDate?: InputDate;
869
- endDate?: InputDate;
870
- showToday?: boolean;
871
- startText?: string;
872
- endText?: string;
873
- confirmText?: string;
874
- showTitle?: boolean;
875
- showSubTitle?: boolean;
876
- toDateAnimation?: boolean;
877
- onBtn?: (() => string | JSX.Element) | undefined;
878
- onDay?: ((date: Day) => string | JSX.Element) | undefined;
879
- onTopInfo?: ((date: Day) => string | JSX.Element) | undefined;
880
- onBottomInfo?: ((date: Day) => string | JSX.Element) | undefined;
881
- onChoose?: (data: any) => void;
882
- onUpdate?: () => void;
883
- onSelected?: (data: string) => void;
1017
+ activeColor: string;
1018
+ inactiveColor: string;
1019
+ buttonColor: string;
1020
+ hiddenRange: boolean;
1021
+ hiddenTag: boolean;
1022
+ min: number | string;
1023
+ max: number | string;
1024
+ minDesc: number | string;
1025
+ maxDesc: number | string;
1026
+ curValueDesc: number | string;
1027
+ step: number | string;
1028
+ modelValue: SliderValue;
1029
+ button: React__default.ReactNode;
1030
+ vertical: boolean;
1031
+ marks: Record<string, unknown>;
1032
+ dragStart?: () => void;
1033
+ dragEnd?: () => void;
1034
+ onChange?: (value: number) => void;
1035
+ onDragStart?: () => void;
1036
+ onDragEnd?: () => void;
884
1037
  }
885
- declare const CalendarItem: React__default.ForwardRefExoticComponent<Partial<CalendarItemProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, ""> & React__default.RefAttributes<CalendarRef>>;
1038
+ declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
886
1039
 
887
- interface PickerOption {
888
- text: string | number;
889
- value: string | number;
890
- disabled?: string;
891
- children?: PickerOption[];
892
- className?: string | number;
1040
+ interface RateProps extends BasicComponent {
1041
+ count: string | number;
1042
+ modelValue: string | number;
1043
+ minimizeValue: string | number;
1044
+ iconSize: string | number;
1045
+ activeColor: string;
1046
+ voidColor: string;
1047
+ checkedIcon: string;
1048
+ uncheckedIcon: string;
1049
+ disabled: boolean;
1050
+ readonly: boolean;
1051
+ allowHalf: boolean;
1052
+ spacing: string | number;
1053
+ onChange: (val: number) => void;
893
1054
  }
894
- interface PickerProps {
895
- isVisible: boolean;
896
- title?: string;
897
- listData: (PickerOption | PickerOption[])[];
898
- defaultValueData?: (number | string)[];
899
- className?: '';
900
- style?: React__default.CSSProperties;
901
- threeDimensional?: boolean;
902
- swipeDuration: number | string;
903
- onConfirm?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
904
- onClose?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
905
- onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
906
- onChange?: (index: number, value: (string | number)[], selectedOptions: PickerOption[]) => void;
1055
+ declare const Rate: FunctionComponent<Partial<RateProps>>;
1056
+
1057
+ interface SearchBarProps extends BasicComponent {
1058
+ /** 文本值 */
1059
+ value?: number | string;
1060
+ /** 输入框占位提示文字 */
1061
+ placeholder?: string;
1062
+ /** 搜索框形状,可选值为 round */
1063
+ shape?: 'square' | 'round';
1064
+ /** 自定义class名 */
1065
+ className?: string;
1066
+ /** 是否禁用输入框 */
1067
+ disabled?: boolean;
1068
+ /** 最大输入长度 */
1069
+ maxLength?: number;
1070
+ /** 是否启用清除图标,点击清除图标后会清空输入框 */
1071
+ clearable?: boolean;
1072
+ /** 搜索框外部背景色 */
1073
+ background?: string;
1074
+ /** 搜索框背景色 */
1075
+ inputBackground?: string;
1076
+ /** 输入框内容对齐方式 */
1077
+ align?: string;
1078
+ /** 是否将输入框设为只读状态,只读状态下无法输入内容 */
1079
+ readOnly?: boolean;
1080
+ /** 是否自动聚焦,iOS 系统不支持该属性 */
1081
+ autoFocus?: boolean;
1082
+ /** 搜索框左侧文本 */
1083
+ label?: React__default.ReactNode;
1084
+ /** 输入框内 左icon */
1085
+ leftinIcon?: React__default.ReactNode;
1086
+ /** 输入框内 右icon */
1087
+ rightinIcon?: React__default.ReactNode;
1088
+ /** 输入框外 左icon */
1089
+ leftoutIcon?: React__default.ReactNode;
1090
+ /** 输入框外 右icon */
1091
+ rightoutIcon?: React__default.ReactNode;
1092
+ /** 取消按钮文字 */
1093
+ actionText?: React__default.ReactNode;
1094
+ /** 确定搜索时触发 */
1095
+ onSearch?: (val: string) => void;
1096
+ /** 输入框内容变化时触发 */
1097
+ onChange?: (value: string, event: Event) => void;
1098
+ /** 输入框获得焦点时触发 */
1099
+ onFocus?: (value: string, event: Event) => void;
1100
+ /** 输入框失去焦点时触发 */
1101
+ onBlur?: (value: string, event: Event) => void;
1102
+ /** 点击清除按钮后触发 */
1103
+ onClear?: (event: Event) => void;
1104
+ /** 点击取消按钮后触发 */
1105
+ onCancel?: () => void;
1106
+ /** 点击输入区域时触发 */
1107
+ onClickInput?: (event: Event) => void;
1108
+ /** 点击输入框内左侧图标时触发 */
1109
+ onClickLeftinIcon?: (value: string, event: Event) => void;
1110
+ /** 点击输入框外左侧图标时触发 */
1111
+ onClickLeftoutIcon?: (value: string, event: Event) => void;
1112
+ /** 点击输入框内右侧图标时触发 */
1113
+ onClickRightinIcon?: (value: string, event: Event) => void;
1114
+ /** 点击输入框外右侧图标时触发 */
1115
+ onClickRightoutIcon?: (value: string, event: Event) => void;
907
1116
  }
908
- declare const Picker: React__default.ForwardRefExoticComponent<Partial<PickerProps> & React__default.RefAttributes<unknown>>;
1117
+ declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
909
1118
 
910
1119
  interface ShortPasswordProps extends BasicComponent {
911
1120
  title: string;
@@ -1037,267 +1246,46 @@ declare const Uploader: React__default.ForwardRefExoticComponent<Partial<Uploade
1037
1246
  children?: React__default.ReactNode;
1038
1247
  } & React__default.RefAttributes<unknown>>;
1039
1248
 
1040
- interface CascaderOption {
1041
- text?: string;
1042
- value?: number | string;
1043
- paneKey?: string;
1044
- disabled?: boolean;
1045
- children?: CascaderOption[];
1046
- leaf?: boolean;
1047
- level?: number;
1048
- loading?: boolean;
1049
- root?: boolean;
1249
+ type ItemType<T> = {
1250
+ [key: string]: T;
1251
+ };
1252
+ interface ActionSheetProps {
1253
+ cancelTxt: string;
1254
+ optionTag: string;
1255
+ optionSubTag: string;
1256
+ chooseTagValue: string;
1257
+ title: string;
1258
+ color: string;
1259
+ description: string;
1260
+ menuItems: ItemType<string | boolean>[];
1261
+ onCancel: () => void;
1262
+ onChoose: (item: any, index: number) => void;
1263
+ visible: boolean;
1264
+ className: string;
1265
+ style: React__default.CSSProperties;
1050
1266
  }
1267
+ declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1051
1268
 
1052
- interface CascaderProps {
1053
- className: string;
1054
- style: CSSProperties;
1055
- activeColor: string;
1056
- tabsColor: string;
1057
- poppable: boolean;
1058
- visible: boolean;
1059
- options: CascaderOption[];
1060
- value: string[];
1061
- title: string;
1062
- textKey: string;
1063
- valueKey: string;
1064
- childrenKey: string;
1065
- convertConfig: Record<string, string | number | null>;
1066
- closeable: boolean;
1067
- closeIconPosition: string;
1068
- closeIcon: string;
1069
- lazy: boolean;
1070
- lazyLoad: (node: any, resolve: any) => void;
1071
- onClose?: () => void;
1072
- onChange: (value: any, params: any) => void;
1073
- onPathChange: (value: any, params: any) => void;
1269
+ interface BackTopProps extends BasicComponent {
1270
+ className?: string;
1271
+ bottom: number;
1272
+ right: number;
1273
+ elId: string;
1274
+ distance: number;
1275
+ zIndex: number;
1276
+ isAnimation: boolean;
1277
+ duration: number;
1278
+ children?: HTMLElement | any;
1279
+ style?: React__default.CSSProperties;
1280
+ onClick?: (event: MouseEvent) => void;
1074
1281
  }
1075
- declare const Cascader: React__default.ForwardRefExoticComponent<Partial<CascaderProps> & {
1076
- children?: React__default.ReactNode;
1077
- } & React__default.RefAttributes<unknown>>;
1282
+ declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1078
1283
 
1079
- interface SearchBarProps extends BasicComponent {
1080
- /** 文本值 */
1081
- value?: number | string;
1082
- /** 输入框占位提示文字 */
1083
- placeholder?: string;
1084
- /** 搜索框形状,可选值为 round */
1085
- shape?: 'square' | 'round';
1086
- /** 自定义class名 */
1087
- className?: string;
1088
- /** 是否禁用输入框 */
1089
- disabled?: boolean;
1090
- /** 最大输入长度 */
1091
- maxLength?: number;
1092
- /** 是否启用清除图标,点击清除图标后会清空输入框 */
1093
- clearable?: boolean;
1094
- /** 搜索框外部背景色 */
1095
- background?: string;
1096
- /** 搜索框背景色 */
1097
- inputBackground?: string;
1098
- /** 输入框内容对齐方式 */
1099
- align?: string;
1100
- /** 是否将输入框设为只读状态,只读状态下无法输入内容 */
1101
- readOnly?: boolean;
1102
- /** 是否自动聚焦,iOS 系统不支持该属性 */
1103
- autoFocus?: boolean;
1104
- /** 搜索框左侧文本 */
1105
- label?: React__default.ReactNode;
1106
- /** 输入框内 左icon */
1107
- leftinIcon?: React__default.ReactNode;
1108
- /** 输入框内 右icon */
1109
- rightinIcon?: React__default.ReactNode;
1110
- /** 输入框外 左icon */
1111
- leftoutIcon?: React__default.ReactNode;
1112
- /** 输入框外 右icon */
1113
- rightoutIcon?: React__default.ReactNode;
1114
- /** 取消按钮文字 */
1115
- actionText?: React__default.ReactNode;
1116
- /** 确定搜索时触发 */
1117
- onSearch?: (val: string) => void;
1118
- /** 输入框内容变化时触发 */
1119
- onChange?: (value: string, event: Event) => void;
1120
- /** 输入框获得焦点时触发 */
1121
- onFocus?: (value: string, event: Event) => void;
1122
- /** 输入框失去焦点时触发 */
1123
- onBlur?: (value: string, event: Event) => void;
1124
- /** 点击清除按钮后触发 */
1125
- onClear?: (event: Event) => void;
1126
- /** 点击取消按钮后触发 */
1127
- onCancel?: () => void;
1128
- /** 点击输入区域时触发 */
1129
- onClickInput?: (event: Event) => void;
1130
- /** 点击输入框内左侧图标时触发 */
1131
- onClickLeftinIcon?: (value: string, event: Event) => void;
1132
- /** 点击输入框外左侧图标时触发 */
1133
- onClickLeftoutIcon?: (value: string, event: Event) => void;
1134
- /** 点击输入框内右侧图标时触发 */
1135
- onClickRightinIcon?: (value: string, event: Event) => void;
1136
- /** 点击输入框外右侧图标时触发 */
1137
- onClickRightoutIcon?: (value: string, event: Event) => void;
1138
- }
1139
- declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
1140
-
1141
- interface NumberKeyboardProps {
1142
- confirmText: string;
1143
- title: string;
1144
- visible: boolean;
1145
- type: string;
1146
- customKey: Array<string>;
1147
- randomKeys: boolean;
1148
- popClass: string;
1149
- className: string;
1150
- style?: CSSProperties;
1151
- onChange?: (value: string) => void;
1152
- onDelete?: () => void;
1153
- onClose: () => void;
1154
- }
1155
- declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
1156
-
1157
- interface FormItemRuleWithoutValidator {
1158
- [key: string]: any;
1159
- regex?: RegExp;
1160
- required?: boolean;
1161
- message?: string;
1162
- }
1163
- interface FormItemRule extends FormItemRuleWithoutValidator {
1164
- validator?: (value: any, ruleCfg: FormItemRuleWithoutValidator) => boolean | string | Promise<boolean | string>;
1165
- }
1166
- interface BaseFormField {
1167
- /**
1168
- * 字段名
1169
- */
1170
- name: string;
1171
- /**
1172
- * label 标签的文本
1173
- */
1174
- label: string;
1175
- /**
1176
- * 校验规则,设置字段的校验逻辑
1177
- */
1178
- rules: FormItemRule[];
1179
- /**
1180
- * 是否禁用表单项
1181
- */
1182
- disabled: boolean;
1183
- }
1184
-
1185
- interface ConfigConsumerProps {
1186
- [propName: string]: any;
1187
- }
1188
- declare const FormItemContext: React$1.Context<ConfigConsumerProps>;
1189
-
1190
- type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
1191
- interface FormItemProps extends BasicComponent, BaseFormField {
1192
- labelWidth: string | number;
1193
- errorMessageAlign: TextAlign;
1194
- showErrorLine: boolean;
1195
- showErrorMessage: boolean;
1196
- }
1197
- declare const defaultProps: FormItemProps;
1198
- type FieldProps = typeof defaultProps & Partial<BaseFormField>;
1199
- declare class FormItem extends React__default.Component<FieldProps> {
1200
- static defaultProps: FormItemProps;
1201
- static contextType: any;
1202
- context: React__default.ContextType<typeof FormItemContext>;
1203
- private cancelRegister;
1204
- componentDidMount(): void;
1205
- componentWillUnmount(): void;
1206
- getControlled: (children: React__default.ReactElement) => {
1207
- value: any;
1208
- onChange: (event: React__default.ChangeEvent<HTMLInputElement> | number | string | string[]) => void;
1209
- };
1210
- onStoreChange: () => void;
1211
- renderLayout: (childNode: React__default.ReactNode) => JSX.Element;
1212
- pxCheck: (value: string | number) => string;
1213
- render(): JSX.Element;
1214
- }
1215
-
1216
- interface BaseForm {
1217
- /**
1218
- * 经 Form.useForm() 创建的 form 控制实例,不提供时会自动创建
1219
- */
1220
- form: any;
1221
- /**
1222
- * label的位置
1223
- * 可选值 top/left/right
1224
- */
1225
- labelPosition: string | number;
1226
- /**
1227
- * 表单分组名称
1228
- */
1229
- formGroupTitle: string;
1230
- starPositon: string;
1231
- /**
1232
- * 表单校验成功回调
1233
- */
1234
- onFinish: (obj: object) => void;
1235
- /**
1236
- * 表单校验失败回调
1237
- */
1238
- onFinishFailed: (value: []) => void;
1239
- }
1240
-
1241
- interface FormProps extends BasicComponent, BaseForm {
1242
- }
1243
- declare const Form: FunctionComponent<Partial<FormProps> & React__default.HTMLAttributes<HTMLFormElement>> & {
1244
- Item: typeof FormItem;
1245
- };
1246
-
1247
- type ItemType<T> = {
1248
- [key: string]: T;
1249
- };
1250
- interface ActionSheetProps {
1251
- cancelTxt: string;
1252
- optionTag: string;
1253
- optionSubTag: string;
1254
- chooseTagValue: string;
1255
- title: string;
1256
- color: string;
1257
- description: string;
1258
- menuItems: ItemType<string | boolean>[];
1259
- onCancel: () => void;
1260
- onChoose: (item: any, index: number) => void;
1261
- visible: boolean;
1262
- className: string;
1263
- style: React__default.CSSProperties;
1264
- }
1265
- declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1266
-
1267
- interface BackTopProps extends BasicComponent {
1268
- className?: string;
1269
- bottom: number;
1270
- right: number;
1271
- elId: string;
1272
- distance: number;
1273
- zIndex: number;
1274
- isAnimation: boolean;
1275
- duration: number;
1276
- children?: HTMLElement | any;
1277
- style?: React__default.CSSProperties;
1278
- onClick?: (event: MouseEvent) => void;
1279
- }
1280
- declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1281
-
1282
- interface DragProps {
1283
- attract: boolean;
1284
- direction: 'x' | 'y' | 'lock' | undefined;
1285
- boundary: {
1286
- top: number;
1287
- left: number;
1288
- right: number;
1289
- bottom: number;
1290
- };
1291
- className: string;
1292
- style: React__default.CSSProperties;
1293
- }
1294
- declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1295
-
1296
- type DialogConfigType = {
1297
- prefixCls?: string;
1298
- simple?: boolean;
1299
- };
1300
- interface BasicDialogProps {
1284
+ type DialogConfigType = {
1285
+ prefixCls?: string;
1286
+ simple?: boolean;
1287
+ };
1288
+ interface BasicDialogProps {
1301
1289
  className?: string;
1302
1290
  style?: CSSProperties;
1303
1291
  visible?: boolean;
@@ -1342,6 +1330,20 @@ interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Ba
1342
1330
  type DialogProps = BasicDialogProps;
1343
1331
  declare const Dialog: DialogComponent;
1344
1332
 
1333
+ interface DragProps {
1334
+ attract: boolean;
1335
+ direction: 'x' | 'y' | 'lock' | undefined;
1336
+ boundary: {
1337
+ top: number;
1338
+ left: number;
1339
+ right: number;
1340
+ bottom: number;
1341
+ };
1342
+ className: string;
1343
+ style: React__default.CSSProperties;
1344
+ }
1345
+ declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1346
+
1345
1347
  interface InfiniteloadingProps extends BasicComponent {
1346
1348
  hasMore: boolean;
1347
1349
  threshold: number;
@@ -1384,50 +1386,23 @@ declare const _default$1: {
1384
1386
  hide(): void;
1385
1387
  };
1386
1388
 
1387
- interface SwitchProps {
1388
- isAsync: boolean;
1389
- checked: boolean;
1390
- disable: boolean;
1391
- activeColor: string;
1392
- inactiveColor: string;
1393
- activeText: string;
1394
- inactiveText: string;
1389
+ type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
1390
+ interface PullToRefreshProps {
1395
1391
  className: string;
1396
1392
  style: React__default.CSSProperties;
1397
- onChange: (val: boolean, event: React__default.MouseEvent) => void;
1398
- }
1399
- declare const Switch: FunctionComponent<Partial<SwitchProps>>;
1400
-
1401
- interface ToastProps {
1402
- id?: string;
1403
- msg: string;
1404
- style?: React$1.CSSProperties;
1405
- duration: number;
1406
- center: boolean;
1407
- type: string;
1408
- title: string;
1409
- customClass?: string;
1410
- bottom: string;
1411
- size: string | number;
1412
- icon: string | null;
1413
- iconSize: string;
1414
- textAlignCenter: boolean;
1415
- loadingRotate: boolean;
1416
- bgColor: string;
1417
- onClose: () => void;
1418
- cover: boolean;
1419
- coverColor: string;
1420
- closeOnClickOverlay: boolean;
1393
+ onRefresh: () => Promise<any>;
1394
+ pullingText: ReactNode;
1395
+ canReleaseText: ReactNode;
1396
+ refreshingText: ReactNode;
1397
+ completeText: ReactNode;
1398
+ completeDelay: number;
1399
+ headHeight: number;
1400
+ threshold: number;
1401
+ disabled: boolean;
1402
+ renderText: (status: PullStatus) => ReactNode;
1403
+ children: React__default.ReactNode;
1421
1404
  }
1422
- declare const _default: {
1423
- text(msg: string | React$1.ReactNode, option?: {}): void;
1424
- success(msg: string | React$1.ReactNode, option?: {}): void;
1425
- fail(msg: string | React$1.ReactNode, option?: {}): void;
1426
- loading(msg: string | React$1.ReactNode, option?: {}): void;
1427
- warn(msg: string | React$1.ReactNode, option?: {}): void;
1428
- customIcon(msg: string | React$1.ReactNode, option?: {}): void;
1429
- hide(): void;
1430
- };
1405
+ declare const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>>;
1431
1406
 
1432
1407
  type SwipeSide = 'left' | 'right';
1433
1408
  type SwipePosition = SwipeSide | 'cell' | 'outside';
@@ -1470,117 +1445,102 @@ interface SwipeProps {
1470
1445
  }
1471
1446
  declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<SwipeInstance>>;
1472
1447
 
1473
- type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
1474
- interface PullToRefreshProps {
1448
+ interface SwitchProps {
1449
+ isAsync: boolean;
1450
+ checked: boolean;
1451
+ disable: boolean;
1452
+ activeColor: string;
1453
+ inactiveColor: string;
1454
+ activeText: string;
1455
+ inactiveText: string;
1475
1456
  className: string;
1476
1457
  style: React__default.CSSProperties;
1477
- onRefresh: () => Promise<any>;
1478
- pullingText: ReactNode;
1479
- canReleaseText: ReactNode;
1480
- refreshingText: ReactNode;
1481
- completeText: ReactNode;
1482
- completeDelay: number;
1483
- headHeight: number;
1484
- threshold: number;
1485
- disabled: boolean;
1486
- renderText: (status: PullStatus) => ReactNode;
1487
- children: React__default.ReactNode;
1458
+ onChange: (val: boolean, event: React__default.MouseEvent) => void;
1488
1459
  }
1489
- declare const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>>;
1460
+ declare const Switch: FunctionComponent<Partial<SwitchProps>>;
1490
1461
 
1491
- interface CircleProgressProps {
1492
- progress: string | number;
1493
- strokeWidth?: string | number;
1494
- radius?: number | string;
1495
- strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
1496
- circleColor?: object | string;
1497
- pathColor?: string;
1498
- clockwise?: boolean;
1499
- className?: string;
1462
+ interface ToastProps {
1463
+ id?: string;
1464
+ msg: string;
1465
+ style?: React$1.CSSProperties;
1466
+ duration: number;
1467
+ center: boolean;
1468
+ type: string;
1469
+ title: string;
1470
+ customClass?: string;
1471
+ bottom: string;
1472
+ size: string | number;
1473
+ icon: string | null;
1474
+ iconSize: string;
1475
+ textAlignCenter: boolean;
1476
+ loadingRotate: boolean;
1477
+ bgColor: string;
1478
+ onClose: () => void;
1479
+ cover: boolean;
1480
+ coverColor: string;
1481
+ closeOnClickOverlay: boolean;
1500
1482
  }
1501
- declare const CircleProgress: FunctionComponent<CircleProgressProps & React__default.HTMLAttributes<HTMLDivElement>>;
1483
+ declare const _default: {
1484
+ text(msg: string | React$1.ReactNode, option?: {}): void;
1485
+ success(msg: string | React$1.ReactNode, option?: {}): void;
1486
+ fail(msg: string | React$1.ReactNode, option?: {}): void;
1487
+ loading(msg: string | React$1.ReactNode, option?: {}): void;
1488
+ warn(msg: string | React$1.ReactNode, option?: {}): void;
1489
+ customIcon(msg: string | React$1.ReactNode, option?: {}): void;
1490
+ hide(): void;
1491
+ };
1502
1492
 
1503
- interface NoticeBarProps extends BasicComponent {
1504
- direction: string;
1505
- className?: string;
1506
- style?: CSSProperties;
1507
- list: any;
1508
- standTime: number;
1509
- complexAm: boolean;
1510
- height: number;
1511
- text: string;
1512
- closeMode: boolean;
1513
- wrapable: boolean;
1514
- leftIcon: string;
1515
- color: string;
1516
- background: string;
1517
- delay: string | number;
1518
- scrollable: boolean | null;
1519
- speed: number;
1520
- rightIcon?: HTMLElement | any;
1521
- close?: (list?: any) => void;
1522
- click?: (item?: any) => void;
1523
- onClose?: (list?: any) => void;
1524
- onClick?: (item?: any) => void;
1525
- }
1526
- declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1493
+ type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
1494
+ type AnimateAction = 'initial' | 'click';
1527
1495
 
1528
- interface StepsProps {
1529
- current: number;
1530
- direction: string;
1531
- progressDot: boolean;
1496
+ interface AnimateProps {
1497
+ type: AnimateType;
1498
+ action: AnimateAction;
1499
+ loop: boolean;
1532
1500
  className: string;
1533
1501
  style: React__default.CSSProperties;
1534
- clickStep: (index: number) => void;
1535
- onClickStep: (index: number) => void;
1502
+ onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1536
1503
  }
1537
- declare const Steps: FunctionComponent<Partial<StepsProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1504
+ declare const Animate: FunctionComponent<Partial<AnimateProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1538
1505
 
1539
- interface StepProps extends BasicComponent {
1540
- title: string;
1541
- content: string;
1542
- activeIndex: number;
1543
- icon: string;
1544
- iconColor: string;
1545
- size: string;
1506
+ interface CountUpProps {
1507
+ maxLen: number;
1508
+ endNumber: string;
1509
+ delaySpeed?: number;
1510
+ easeSpeed: number;
1511
+ thousands: boolean;
1546
1512
  className: string;
1547
1513
  style: React__default.CSSProperties;
1548
- renderContent: () => React__default.ReactNode;
1549
1514
  }
1550
- declare const Step: FunctionComponent<Partial<StepProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1551
1515
 
1552
- type SwiperRef = {
1553
- to: (index: number) => void;
1554
- next: () => void;
1555
- prev: () => void;
1556
- };
1557
- interface SwiperProps {
1558
- width: number | string;
1559
- height: number | string;
1560
- duration: number | string;
1561
- initPage: number | string;
1562
- autoPlay: number | string;
1563
- direction: 'horizontal' | 'vertical';
1564
- paginationColor: string;
1565
- paginationBgColor: string;
1566
- paginationVisible: boolean;
1567
- loop: boolean;
1568
- touchable: boolean;
1569
- isPreventDefault: boolean;
1570
- isStopPropagation: boolean;
1571
- isCenter: boolean;
1572
- className?: string;
1573
- style?: React__default.CSSProperties;
1574
- pageContent?: React__default.ReactNode;
1575
- onChange?: (currPage: number) => void;
1516
+ interface AnimatingNumbersProps {
1517
+ }
1518
+ type AnimatingNumbersStates = {};
1519
+ declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
1520
+ static defaultProps: AnimatingNumbersProps;
1521
+ static displayName: string;
1522
+ static CountUp: React__default.FunctionComponent<Partial<CountUpProps>>;
1523
+ constructor(props: AnimatingNumbersProps);
1524
+ render(): JSX.Element;
1576
1525
  }
1577
- declare const Swiper: React__default.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<SwiperRef>>;
1578
1526
 
1579
- interface SwiperItemProps {
1580
- direction?: string;
1581
- size?: 0;
1527
+ interface AudioProps extends BasicComponent {
1528
+ className: string;
1529
+ style: CSSProperties;
1530
+ url: string;
1531
+ muted: boolean;
1532
+ autoplay: boolean;
1533
+ loop: boolean;
1534
+ preload: string;
1535
+ type: string;
1536
+ onFastBack: (e: HTMLAudioElement) => void;
1537
+ onForward: (e: HTMLAudioElement) => void;
1538
+ onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
1539
+ onPlayEnd: (e: HTMLAudioElement) => void;
1540
+ onMute: (e: HTMLAudioElement) => void;
1541
+ onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
1582
1542
  }
1583
- declare const SwiperItem: React__default.ForwardRefExoticComponent<Partial<SwiperItemProps> & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
1543
+ declare const Audio: FunctionComponent<Partial<AudioProps> & React__default.HTMLAttributes<HTMLElement>>;
1584
1544
 
1585
1545
  interface AvatarProps extends BasicComponent {
1586
1546
  size: string;
@@ -1615,19 +1575,6 @@ interface AvatarGroupProps {
1615
1575
  }
1616
1576
  declare const AvatarGroup: FunctionComponent<Partial<AvatarGroupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1617
1577
 
1618
- interface PriceProps {
1619
- price: number | string;
1620
- needSymbol: boolean;
1621
- symbol: string;
1622
- decimalDigits: number;
1623
- thousands: boolean;
1624
- position: string;
1625
- size: string;
1626
- className: string;
1627
- style: React__default.CSSProperties;
1628
- }
1629
- declare const Price: FunctionComponent<Partial<PriceProps>>;
1630
-
1631
1578
  interface BadgeProps extends BasicComponent {
1632
1579
  value: any;
1633
1580
  dot: boolean;
@@ -1641,21 +1588,140 @@ interface BadgeProps extends BasicComponent {
1641
1588
  }
1642
1589
  declare const Badge: FunctionComponent<Partial<BadgeProps>>;
1643
1590
 
1644
- interface TagProps extends BasicComponent {
1645
- type: TagType;
1646
- color: string;
1647
- textColor: string;
1648
- plain: boolean;
1649
- round: boolean;
1650
- mark: boolean;
1651
- closeable: boolean;
1652
- prefixCls: string;
1653
- onClick: (e: MouseEvent) => void;
1654
- onClose: (e?: any) => void;
1591
+ interface CircleProgressProps {
1592
+ progress: string | number;
1593
+ strokeWidth?: string | number;
1594
+ radius?: number | string;
1595
+ strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
1596
+ circleColor?: object | string;
1597
+ pathColor?: string;
1598
+ clockwise?: boolean;
1599
+ className?: string;
1600
+ }
1601
+ declare const CircleProgress: FunctionComponent<CircleProgressProps & React__default.HTMLAttributes<HTMLDivElement>>;
1602
+
1603
+ interface CollapseProps {
1604
+ className: string;
1605
+ style: React__default.CSSProperties;
1606
+ activeName: Array<number | string> | number | string;
1607
+ accordion: boolean;
1608
+ icon: string;
1609
+ iconSize: string;
1610
+ iconColor: string;
1611
+ rotate: number;
1612
+ onChange: (isOpen: boolean, name: string) => void;
1655
1613
  children?: React__default.ReactNode;
1656
1614
  }
1657
- type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
1658
- declare const Tag: FunctionComponent<Partial<TagProps>>;
1615
+ declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
1616
+
1617
+ interface CollapseItemProps extends BasicComponent {
1618
+ title: string;
1619
+ name: string;
1620
+ isOpen: boolean;
1621
+ icon: string;
1622
+ iconSize: string;
1623
+ iconColor: string;
1624
+ disabled: boolean;
1625
+ rotate: number;
1626
+ subTitle: string;
1627
+ titleIcon: string;
1628
+ titleIconColor: string;
1629
+ titleIconPosition: string;
1630
+ titleIconSize: string;
1631
+ childnull: boolean;
1632
+ onToggle: (isOpen: boolean, name: string) => void;
1633
+ }
1634
+ declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1635
+
1636
+ interface CountDownProps {
1637
+ className?: string;
1638
+ style?: CSSProperties;
1639
+ paused: boolean;
1640
+ startTime: number;
1641
+ endTime: number;
1642
+ millisecond: boolean;
1643
+ format: string;
1644
+ autoStart: boolean;
1645
+ time: number;
1646
+ onEnd: () => void;
1647
+ onPaused: (restTime: number) => void;
1648
+ onRestart: (restTime: number) => void;
1649
+ onUpdate: (restTime: any) => void;
1650
+ children: ReactNode;
1651
+ }
1652
+ declare const CountDown: React__default.ForwardRefExoticComponent<Partial<CountDownProps> & React__default.RefAttributes<unknown>>;
1653
+
1654
+ interface EllipsisProps {
1655
+ content: string;
1656
+ direction: string;
1657
+ rows: number | string;
1658
+ expandText: string;
1659
+ collapseText: string;
1660
+ symbol: string;
1661
+ lineHeight: number | string;
1662
+ onClick: () => void;
1663
+ onChange: (type: string) => void;
1664
+ }
1665
+ declare const Ellipsis: FunctionComponent<Partial<EllipsisProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
1666
+
1667
+ interface EmptyProps {
1668
+ image: ReactNode;
1669
+ imageSize: number | string;
1670
+ description: ReactNode;
1671
+ className: string;
1672
+ }
1673
+ declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1674
+
1675
+ interface ImagePreviewProps {
1676
+ className?: string;
1677
+ images: Array<{
1678
+ src: string;
1679
+ }>;
1680
+ videos: Array<{
1681
+ source: {
1682
+ src: string;
1683
+ type: string;
1684
+ };
1685
+ options: {
1686
+ muted: boolean;
1687
+ controls: boolean;
1688
+ };
1689
+ }>;
1690
+ show: boolean;
1691
+ autoplay: number | string;
1692
+ initNo: number;
1693
+ contentClose: boolean;
1694
+ paginationVisible: boolean;
1695
+ style?: CSSProperties;
1696
+ paginationColor: string;
1697
+ onClose: () => void;
1698
+ }
1699
+ declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
1700
+
1701
+ interface NoticeBarProps extends BasicComponent {
1702
+ direction: string;
1703
+ className?: string;
1704
+ style?: CSSProperties;
1705
+ list: any;
1706
+ standTime: number;
1707
+ complexAm: boolean;
1708
+ height: number;
1709
+ text: string;
1710
+ closeMode: boolean;
1711
+ wrapable: boolean;
1712
+ leftIcon: string;
1713
+ color: string;
1714
+ background: string;
1715
+ delay: string | number;
1716
+ scrollable: boolean | null;
1717
+ speed: number;
1718
+ rightIcon?: HTMLElement | any;
1719
+ close?: (list?: any) => void;
1720
+ click?: (item?: any) => void;
1721
+ onClose?: (list?: any) => void;
1722
+ onClick?: (item?: any) => void;
1723
+ }
1724
+ declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1659
1725
 
1660
1726
  type PopoverTheme = 'light' | 'dark';
1661
1727
  type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
@@ -1678,6 +1744,45 @@ interface PopoverProps extends BasicComponent {
1678
1744
  }
1679
1745
  declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1680
1746
 
1747
+ interface PriceProps {
1748
+ price: number | string;
1749
+ needSymbol: boolean;
1750
+ symbol: string;
1751
+ decimalDigits: number;
1752
+ thousands: boolean;
1753
+ position: string;
1754
+ size: string;
1755
+ className: string;
1756
+ style: React__default.CSSProperties;
1757
+ }
1758
+ declare const Price: FunctionComponent<Partial<PriceProps>>;
1759
+
1760
+ type ProgressSize = 'small' | 'base' | 'large';
1761
+ type TextType = 'icon' | 'text';
1762
+ interface ProgressProps extends BasicComponent {
1763
+ className: string;
1764
+ style: CSSProperties;
1765
+ isShowPercentage: boolean;
1766
+ percentage: number;
1767
+ fillColor: string;
1768
+ strokeColor: string;
1769
+ strokeWidth: string;
1770
+ size: ProgressSize;
1771
+ textColor: string;
1772
+ textWidth: string;
1773
+ showText: boolean;
1774
+ textInside: boolean;
1775
+ textBackground: string;
1776
+ textType: TextType;
1777
+ status: boolean;
1778
+ iconName: string;
1779
+ iconColor: string;
1780
+ iconSize: string;
1781
+ rounded: boolean | string;
1782
+ children: ReactNode;
1783
+ }
1784
+ declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1785
+
1681
1786
  type avatarShape = 'round' | 'square';
1682
1787
  interface SkeletonProps {
1683
1788
  width: string;
@@ -1696,107 +1801,62 @@ interface SkeletonProps {
1696
1801
  }
1697
1802
  declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
1698
1803
 
1699
- interface CountDownProps {
1700
- className?: string;
1701
- style?: CSSProperties;
1702
- paused: boolean;
1703
- startTime: number;
1704
- endTime: number;
1705
- millisecond: boolean;
1706
- format: string;
1707
- autoStart: boolean;
1708
- time: number;
1709
- onEnd: () => void;
1710
- onPaused: (restTime: number) => void;
1711
- onRestart: (restTime: number) => void;
1712
- onUpdate: (restTime: any) => void;
1713
- children: ReactNode;
1714
- }
1715
- declare const CountDown: React__default.ForwardRefExoticComponent<Partial<CountDownProps> & React__default.RefAttributes<unknown>>;
1716
-
1717
- interface CollapseProps {
1718
- className: string;
1719
- style: React__default.CSSProperties;
1720
- activeName: Array<number | string> | number | string;
1721
- accordion: boolean;
1722
- icon: string;
1723
- iconSize: string;
1724
- iconColor: string;
1725
- rotate: number;
1726
- onChange: (isOpen: boolean, name: string) => void;
1727
- children?: React__default.ReactNode;
1728
- }
1729
- declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
1730
-
1731
- interface CollapseItemProps extends BasicComponent {
1804
+ interface StepProps extends BasicComponent {
1732
1805
  title: string;
1733
- name: string;
1734
- isOpen: boolean;
1806
+ content: string;
1807
+ activeIndex: number;
1735
1808
  icon: string;
1736
- iconSize: string;
1737
1809
  iconColor: string;
1738
- disabled: boolean;
1739
- rotate: number;
1740
- subTitle: string;
1741
- titleIcon: string;
1742
- titleIconColor: string;
1743
- titleIconPosition: string;
1744
- titleIconSize: string;
1745
- childnull: boolean;
1746
- onToggle: (isOpen: boolean, name: string) => void;
1747
- }
1748
- declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1749
-
1750
- interface CountUpProps {
1751
- maxLen: number;
1752
- endNumber: string;
1753
- delaySpeed?: number;
1754
- easeSpeed: number;
1755
- thousands: boolean;
1810
+ size: string;
1756
1811
  className: string;
1757
1812
  style: React__default.CSSProperties;
1813
+ renderContent: () => React__default.ReactNode;
1758
1814
  }
1815
+ declare const Step: FunctionComponent<Partial<StepProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1759
1816
 
1760
- interface AnimatingNumbersProps {
1761
- }
1762
- type AnimatingNumbersStates = {};
1763
- declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
1764
- static defaultProps: AnimatingNumbersProps;
1765
- static displayName: string;
1766
- static CountUp: React__default.FunctionComponent<Partial<CountUpProps>>;
1767
- constructor(props: AnimatingNumbersProps);
1768
- render(): JSX.Element;
1769
- }
1770
-
1771
- interface EmptyProps {
1772
- image: ReactNode;
1773
- imageSize: number | string;
1774
- description: ReactNode;
1817
+ interface StepsProps {
1818
+ current: number;
1819
+ direction: string;
1820
+ progressDot: boolean;
1775
1821
  className: string;
1822
+ style: React__default.CSSProperties;
1823
+ clickStep: (index: number) => void;
1824
+ onClickStep: (index: number) => void;
1776
1825
  }
1777
- declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1826
+ declare const Steps: FunctionComponent<Partial<StepsProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1778
1827
 
1779
- type Data = any;
1780
- interface BasicVirtualListProps {
1828
+ type SwiperRef = {
1829
+ to: (index: number) => void;
1830
+ next: () => void;
1831
+ prev: () => void;
1832
+ };
1833
+ interface SwiperProps {
1834
+ width: number | string;
1835
+ height: number | string;
1836
+ duration: number | string;
1837
+ initPage: number | string;
1838
+ autoPlay: number | string;
1839
+ direction: 'horizontal' | 'vertical';
1840
+ paginationColor: string;
1841
+ paginationBgColor: string;
1842
+ paginationVisible: boolean;
1843
+ loop: boolean;
1844
+ touchable: boolean;
1845
+ isPreventDefault: boolean;
1846
+ isStopPropagation: boolean;
1847
+ isCenter: boolean;
1781
1848
  className?: string;
1782
- style?: React.CSSProperties;
1783
- sourceData: Array<Data>;
1784
- containerSize?: number;
1785
- ItemRender?: React.FC<any>;
1786
- itemSize?: number;
1787
- itemEqualSize?: boolean;
1788
- horizontal?: boolean;
1789
- overscan?: number;
1790
- handleScroll?: (...args: any[]) => any;
1791
- onScroll?: (...args: any[]) => any;
1792
- key?: string;
1793
- locale?: {
1794
- [key in string]: string;
1795
- };
1849
+ style?: React__default.CSSProperties;
1850
+ pageContent?: React__default.ReactNode;
1851
+ onChange?: (currPage: number) => void;
1796
1852
  }
1853
+ declare const Swiper: React__default.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<SwiperRef>>;
1797
1854
 
1798
- type VirtualListProps = BasicVirtualListProps;
1799
- declare const VirtualList: FunctionComponent<VirtualListProps>;
1855
+ interface SwiperItemProps {
1856
+ direction?: string;
1857
+ size?: 0;
1858
+ }
1859
+ declare const SwiperItem: React__default.ForwardRefExoticComponent<Partial<SwiperItemProps> & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
1800
1860
 
1801
1861
  interface BasicTableProps extends BasicComponent {
1802
1862
  className: string;
@@ -1820,6 +1880,40 @@ interface TableColumnProps {
1820
1880
  type TableProps = BasicTableProps;
1821
1881
  declare const Table: FunctionComponent<Partial<TableProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1822
1882
 
1883
+ interface TagProps extends BasicComponent {
1884
+ type: TagType;
1885
+ color: string;
1886
+ textColor: string;
1887
+ plain: boolean;
1888
+ round: boolean;
1889
+ mark: boolean;
1890
+ closeable: boolean;
1891
+ prefixCls: string;
1892
+ onClick: (e: MouseEvent) => void;
1893
+ onClose: (e?: any) => void;
1894
+ children?: React__default.ReactNode;
1895
+ }
1896
+ type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
1897
+ declare const Tag: FunctionComponent<Partial<TagProps>>;
1898
+
1899
+ interface TrendArrowProps {
1900
+ rate: number;
1901
+ digits: number;
1902
+ showSign: boolean;
1903
+ showZero: boolean;
1904
+ arrowLeft: boolean;
1905
+ syncTextColor: boolean;
1906
+ textColor: string;
1907
+ riseColor: string;
1908
+ dropColor: string;
1909
+ iconSize: string;
1910
+ upIconName: string;
1911
+ downIconName: string;
1912
+ className: string;
1913
+ style: React__default.CSSProperties;
1914
+ }
1915
+ declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1916
+
1823
1917
  interface VideoProps {
1824
1918
  source: {
1825
1919
  type: string;
@@ -1844,93 +1938,27 @@ interface VideoProps {
1844
1938
  }
1845
1939
  declare const Video: FunctionComponent<Partial<VideoProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1846
1940
 
1847
- type ProgressSize = 'small' | 'base' | 'large';
1848
- type TextType = 'icon' | 'text';
1849
- interface ProgressProps extends BasicComponent {
1850
- className: string;
1851
- style: CSSProperties;
1852
- isShowPercentage: boolean;
1853
- percentage: number;
1854
- fillColor: string;
1855
- strokeColor: string;
1856
- strokeWidth: string;
1857
- size: ProgressSize;
1858
- textColor: string;
1859
- textWidth: string;
1860
- showText: boolean;
1861
- textInside: boolean;
1862
- textBackground: string;
1863
- textType: TextType;
1864
- status: boolean;
1865
- iconName: string;
1866
- iconColor: string;
1867
- iconSize: string;
1868
- rounded: boolean | string;
1869
- children: ReactNode;
1870
- }
1871
- declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1872
-
1873
- interface AudioProps extends BasicComponent {
1874
- className: string;
1875
- style: CSSProperties;
1876
- url: string;
1877
- muted: boolean;
1878
- autoplay: boolean;
1879
- loop: boolean;
1880
- preload: string;
1881
- type: string;
1882
- onFastBack: (e: HTMLAudioElement) => void;
1883
- onForward: (e: HTMLAudioElement) => void;
1884
- onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
1885
- onPlayEnd: (e: HTMLAudioElement) => void;
1886
- onMute: (e: HTMLAudioElement) => void;
1887
- onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
1888
- }
1889
- declare const Audio: FunctionComponent<Partial<AudioProps> & React__default.HTMLAttributes<HTMLElement>>;
1890
-
1891
- interface ImagePreviewProps {
1941
+ type Data = any;
1942
+ interface BasicVirtualListProps {
1892
1943
  className?: string;
1893
- images: Array<{
1894
- src: string;
1895
- }>;
1896
- videos: Array<{
1897
- source: {
1898
- src: string;
1899
- type: string;
1900
- };
1901
- options: {
1902
- muted: boolean;
1903
- controls: boolean;
1904
- };
1905
- }>;
1906
- show: boolean;
1907
- autoplay: number | string;
1908
- initNo: number;
1909
- contentClose: boolean;
1910
- paginationVisible: boolean;
1911
- style?: CSSProperties;
1912
- paginationColor: string;
1913
- onClose: () => void;
1944
+ style?: React.CSSProperties;
1945
+ sourceData: Array<Data>;
1946
+ containerSize?: number;
1947
+ ItemRender?: React.FC<any>;
1948
+ itemSize?: number;
1949
+ itemEqualSize?: boolean;
1950
+ horizontal?: boolean;
1951
+ overscan?: number;
1952
+ handleScroll?: (...args: any[]) => any;
1953
+ onScroll?: (...args: any[]) => any;
1954
+ key?: string;
1955
+ locale?: {
1956
+ [key in string]: string;
1957
+ };
1914
1958
  }
1915
- declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
1916
1959
 
1917
- interface TrendArrowProps {
1918
- rate: number;
1919
- digits: number;
1920
- showSign: boolean;
1921
- showZero: boolean;
1922
- arrowLeft: boolean;
1923
- syncTextColor: boolean;
1924
- textColor: string;
1925
- riseColor: string;
1926
- dropColor: string;
1927
- iconSize: string;
1928
- upIconName: string;
1929
- downIconName: string;
1930
- className: string;
1931
- style: React__default.CSSProperties;
1932
- }
1933
- declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1960
+ type VirtualListProps = BasicVirtualListProps;
1961
+ declare const VirtualList: FunctionComponent<VirtualListProps>;
1934
1962
 
1935
1963
  interface WaterMarkProps {
1936
1964
  content: string;
@@ -1954,32 +1982,6 @@ interface WaterMarkProps {
1954
1982
  }
1955
1983
  declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1956
1984
 
1957
- type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
1958
- type AnimateAction = 'initial' | 'click';
1959
-
1960
- interface AnimateProps {
1961
- type: AnimateType;
1962
- action: AnimateAction;
1963
- loop: boolean;
1964
- className: string;
1965
- style: React__default.CSSProperties;
1966
- onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1967
- }
1968
- declare const Animate: FunctionComponent<Partial<AnimateProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1969
-
1970
- interface EllipsisProps {
1971
- content: string;
1972
- direction: string;
1973
- rows: number | string;
1974
- expandText: string;
1975
- collapseText: string;
1976
- symbol: string;
1977
- lineHeight: number | string;
1978
- onClick: () => void;
1979
- onChange: (type: string) => void;
1980
- }
1981
- declare const Ellipsis: FunctionComponent<Partial<EllipsisProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
1982
-
1983
1985
  interface RegionData {
1984
1986
  name?: string;
1985
1987
  [key: string]: any;
@@ -2060,19 +2062,6 @@ interface BarrageProps {
2060
2062
  }
2061
2063
  declare const Barrage: React__default.ForwardRefExoticComponent<Partial<BarrageProps> & React__default.RefAttributes<unknown>>;
2062
2064
 
2063
- interface SignatureProps {
2064
- type: string;
2065
- lineWidth: number;
2066
- strokeStyle: string;
2067
- unSupportTpl: string;
2068
- className: string;
2069
- confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
2070
- clear?: () => void;
2071
- onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
2072
- onClear?: () => void;
2073
- }
2074
- declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2075
-
2076
2065
  interface CardProps {
2077
2066
  imgUrl: string;
2078
2067
  title: string;
@@ -2090,13 +2079,18 @@ interface CardProps {
2090
2079
  }
2091
2080
  declare const Card: FunctionComponent<Partial<CardProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2092
2081
 
2093
- interface TimePannelProps {
2094
- date: string;
2095
- curKey: string | number;
2096
- className?: string;
2097
- change: (curKey: string | number) => void;
2082
+ interface SignatureProps {
2083
+ type: string;
2084
+ lineWidth: number;
2085
+ strokeStyle: string;
2086
+ unSupportTpl: string;
2087
+ className: string;
2088
+ confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
2089
+ clear?: () => void;
2090
+ onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
2091
+ onClear?: () => void;
2098
2092
  }
2099
- declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2093
+ declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2100
2094
 
2101
2095
  interface TimeType {
2102
2096
  key?: string | number;
@@ -2111,6 +2105,14 @@ interface TimeDetailProps {
2111
2105
  }
2112
2106
  declare const TimeDetail: FunctionComponent<Partial<TimeDetailProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2113
2107
 
2108
+ interface TimePannelProps {
2109
+ date: string;
2110
+ curKey: string | number;
2111
+ className?: string;
2112
+ change: (curKey: string | number) => void;
2113
+ }
2114
+ declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2115
+
2114
2116
  interface DateType {
2115
2117
  'pannel-key'?: string | number;
2116
2118
  date: string;