@nutui/nutui-react-taro 1.4.3 → 1.4.4

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