@nutui/nutui-react 2.0.0-alpha.2 → 2.0.0-alpha.3

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.
@@ -204,32 +204,12 @@ interface OverlayProps extends BasicComponent {
204
204
  closeOnOverlayClick: boolean;
205
205
  visible: boolean;
206
206
  lockScroll: boolean;
207
+ onClick: (event: MouseEvent$1) => void;
207
208
  afterShow: () => void;
208
209
  afterClose: () => void;
209
210
  }
210
211
  declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
211
212
 
212
- type Teleport = HTMLElement | (() => HTMLElement) | null;
213
- interface PopupProps extends OverlayProps {
214
- position: string;
215
- transition: string;
216
- overlayStyle: React__default.CSSProperties;
217
- overlayClassName: string;
218
- closeable: boolean;
219
- closeIconPosition: string;
220
- closeIcon: React__default.ReactNode;
221
- destroyOnClose: boolean;
222
- portal: Teleport;
223
- overlay: boolean;
224
- round: boolean;
225
- onOpen: () => void;
226
- onClose: () => void;
227
- onClick: (e: MouseEvent$1) => void;
228
- onClickOverlay: (e: MouseEvent$1) => boolean | void;
229
- onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
230
- }
231
- declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
232
-
233
213
  type EventType$1 = 'row' | 'col';
234
214
  interface ColProps extends BasicComponent {
235
215
  span: string | number;
@@ -301,6 +281,15 @@ interface StickyProps extends BasicComponent {
301
281
  }
302
282
  declare const Sticky: FunctionComponent<Partial<StickyProps>>;
303
283
 
284
+ interface BackTopProps extends BasicComponent {
285
+ target: string;
286
+ threshold: number;
287
+ zIndex: number;
288
+ duration: number;
289
+ onClick?: (event: MouseEvent) => void;
290
+ }
291
+ declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
292
+
304
293
  declare const elevatorContext: React__default.Context<ElevatorData>;
305
294
  interface ElevatorProps extends BasicComponent {
306
295
  height: number | string;
@@ -341,43 +330,6 @@ interface FixedNavProps extends BasicComponent {
341
330
  }
342
331
  declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
343
332
 
344
- interface IndicatorProps {
345
- total: number;
346
- current: number;
347
- direction: string;
348
- }
349
- declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
350
-
351
- interface MenuProps extends BasicComponent {
352
- activeColor: string;
353
- closeOnOverlayClick: boolean;
354
- scrollFixed: boolean | string | number;
355
- lockScroll: boolean;
356
- icon: React__default.ReactNode;
357
- children: React__default.ReactNode;
358
- }
359
- declare const Menu: FunctionComponent<Partial<MenuProps>>;
360
-
361
- interface OptionItem {
362
- text: string;
363
- value: string | number;
364
- }
365
- interface MenuItemProps extends BasicComponent {
366
- title: React__default.ReactNode;
367
- options: OptionItem[];
368
- disabled: boolean;
369
- columns: number;
370
- icon: React__default.ReactNode;
371
- closeOnClickAway: boolean;
372
- direction: string;
373
- activeTitleClass: string;
374
- inactiveTitleClass: string;
375
- value: string | number;
376
- onChange: (event: any) => void;
377
- children: React__default.ReactNode;
378
- }
379
- declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
380
-
381
333
  interface NavBarProps$1 extends BasicComponent {
382
334
  left: React__default.ReactNode;
383
335
  back: React__default.ReactNode;
@@ -391,21 +343,6 @@ interface NavBarProps$1 extends BasicComponent {
391
343
  }
392
344
  declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
393
345
 
394
- interface PaginationProps extends BasicComponent {
395
- value: number;
396
- defaultValue: number;
397
- mode: 'multi' | 'simple';
398
- prev: ReactNode;
399
- next: ReactNode;
400
- total: number;
401
- pageSize: number;
402
- itemSize: number;
403
- ellipse: boolean;
404
- itemRender: (page: any) => ReactNode;
405
- onChange: (currPage: number) => void;
406
- }
407
- declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
408
-
409
346
  type NavBarProps = {
410
347
  showhead?: boolean;
411
348
  };
@@ -479,40 +416,25 @@ interface TabPanelInnerProps {
479
416
  }
480
417
  interface TabPaneProps {
481
418
  title: string | number;
482
- paneKey: string | number;
483
- activeKey: string | number;
419
+ value: string | number;
484
420
  disabled: boolean;
485
421
  className: string;
486
422
  children?: React__default.ReactNode;
487
423
  }
488
424
  declare const TabPane: FunctionComponent<Partial<TabPaneProps & TabPanelInnerProps>>;
489
425
 
490
- declare class Title {
491
- title: string;
492
- paneKey: string;
493
- disabled: boolean;
494
- index: number;
495
- constructor();
496
- }
497
- type TabsSize = 'large' | 'normal' | 'small';
498
426
  interface TabsProps extends BasicComponent {
499
- className: string;
500
- style: React__default.CSSProperties;
501
427
  tabStyle: React__default.CSSProperties;
502
428
  value: string | number;
503
- color: string;
504
- background: string;
505
- direction: string;
506
- type: string;
507
- titleScroll: boolean;
508
- ellipsis: boolean;
509
- animatedTime: number | string;
510
- titleGutter: number | string;
511
- size: TabsSize;
512
- leftAlign: boolean;
513
- titleNode: () => JSX.Element[];
514
- onChange: (t: Title) => void;
515
- onClick: (t: Title) => void;
429
+ defaultValue: string | number;
430
+ activeColor: string;
431
+ direction: 'horizontal' | 'vertical';
432
+ activeType: 'line' | 'smile';
433
+ duration: number | string;
434
+ align: 'left' | 'right';
435
+ title: () => JSX.Element[];
436
+ onChange: (index: string | number) => void;
437
+ onClick: (index: string | number) => void;
516
438
  autoHeight: boolean;
517
439
  children?: React__default.ReactNode;
518
440
  }
@@ -520,6 +442,74 @@ declare const Tabs: FunctionComponent<Partial<TabsProps>> & {
520
442
  TabPane: typeof TabPane;
521
443
  };
522
444
 
445
+ interface RegionData {
446
+ name?: string;
447
+ [key: string]: any;
448
+ }
449
+ interface ChangeCallBack {
450
+ next: string;
451
+ value: string | RegionData;
452
+ custom: string;
453
+ }
454
+ interface CloseCallBackData extends SelectedRegionObj {
455
+ addressIdStr: string;
456
+ addressStr: string;
457
+ }
458
+ interface CloseCallBack {
459
+ data: CloseCallBackData | AddressList;
460
+ type: string;
461
+ }
462
+ interface AddressList {
463
+ id?: string | number;
464
+ provinceName: string;
465
+ cityName: string;
466
+ countyName: string;
467
+ townName: string;
468
+ addressDetail: string;
469
+ selectedAddress: boolean;
470
+ name?: string;
471
+ phone?: string;
472
+ }
473
+ interface SelectedRegionObj {
474
+ province: RegionData;
475
+ city: RegionData;
476
+ country: RegionData;
477
+ town: RegionData;
478
+ }
479
+
480
+ interface AddressProps extends BasicComponent {
481
+ className?: string;
482
+ style?: CSSProperties;
483
+ modelValue: boolean;
484
+ modelSelect: (string | number)[];
485
+ type: string;
486
+ customAddressTitle: string;
487
+ province: RegionData[];
488
+ city: RegionData[];
489
+ country: RegionData[];
490
+ town: RegionData[];
491
+ isShowCustomAddress: boolean;
492
+ existAddress: AddressList[];
493
+ existAddressTitle: string;
494
+ customAndExistTitle: string;
495
+ height: string | number;
496
+ defaultIcon: React__default.ReactNode;
497
+ selectedIcon: React__default.ReactNode;
498
+ closeBtnIcon: React__default.ReactNode;
499
+ backBtnIcon: React__default.ReactNode;
500
+ onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
501
+ onClose?: (cal: CloseCallBack) => void;
502
+ onCancel?: (cal: {
503
+ closeWay: string;
504
+ }) => void;
505
+ onSwitch?: (cal: {
506
+ type: string;
507
+ }) => void;
508
+ onChange?: (cal: ChangeCallBack) => void;
509
+ onTabChecked?: (cal: string) => void;
510
+ }
511
+ declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
512
+
523
513
  type CalendarRef$1 = {
524
514
  scrollToDate: (date: string) => void;
525
515
  };
@@ -896,6 +886,36 @@ interface InputNumberProps extends BasicComponent {
896
886
  }
897
887
  declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
898
888
 
889
+ interface MenuProps extends BasicComponent {
890
+ activeColor: string;
891
+ closeOnOverlayClick: boolean;
892
+ scrollFixed: boolean | string | number;
893
+ lockScroll: boolean;
894
+ icon: React__default.ReactNode;
895
+ children: React__default.ReactNode;
896
+ }
897
+ declare const Menu: FunctionComponent<Partial<MenuProps>>;
898
+
899
+ interface OptionItem {
900
+ text: string;
901
+ value: string | number;
902
+ }
903
+ interface MenuItemProps extends BasicComponent {
904
+ title: React__default.ReactNode;
905
+ options: OptionItem[];
906
+ disabled: boolean;
907
+ columns: number;
908
+ icon: React__default.ReactNode;
909
+ closeOnClickAway: boolean;
910
+ direction: string;
911
+ activeTitleClass: string;
912
+ inactiveTitleClass: string;
913
+ value: string | number;
914
+ onChange: (event: any) => void;
915
+ children: React__default.ReactNode;
916
+ }
917
+ declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
918
+
899
919
  interface NumberKeyboardProps {
900
920
  confirmText: string;
901
921
  title: string;
@@ -1096,6 +1116,29 @@ interface ShortPasswordProps extends BasicComponent {
1096
1116
  }
1097
1117
  declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
1098
1118
 
1119
+ interface SignatureProps {
1120
+ type: string;
1121
+ lineWidth: number;
1122
+ strokeStyle: string;
1123
+ unSupportTpl: string;
1124
+ className: string;
1125
+ confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
1126
+ clear?: () => void;
1127
+ onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
1128
+ onClear?: () => void;
1129
+ }
1130
+ declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1131
+
1132
+ interface SwitchProps extends BasicComponent {
1133
+ checked: boolean;
1134
+ defaultChecked: boolean;
1135
+ disabled: boolean;
1136
+ activeText: string;
1137
+ inactiveText: string;
1138
+ onChange: (val: boolean, event: React__default.MouseEvent) => void;
1139
+ }
1140
+ declare const Switch: FunctionComponent<Partial<SwitchProps>>;
1141
+
1099
1142
  interface TextAreaProps {
1100
1143
  className?: string;
1101
1144
  defaultValue: string | number | any;
@@ -1228,43 +1271,40 @@ interface ActionSheetProps {
1228
1271
  }
1229
1272
  declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1230
1273
 
1231
- interface BackTopProps extends BasicComponent {
1232
- target: string;
1233
- threshold: number;
1234
- zIndex: number;
1235
- duration: number;
1236
- onClick?: (event: MouseEvent) => void;
1274
+ interface BadgeProps extends BasicComponent {
1275
+ value: ReactNode;
1276
+ dot: boolean;
1277
+ max: number;
1278
+ top: string;
1279
+ right: string;
1280
+ color: string;
1237
1281
  }
1238
- declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1282
+ declare const Badge: FunctionComponent<Partial<BadgeProps>>;
1239
1283
 
1240
1284
  type DialogConfigType = {
1241
1285
  prefixCls?: string;
1242
1286
  simple?: boolean;
1243
1287
  };
1244
1288
  interface BasicDialogProps {
1245
- className?: string;
1246
- style?: CSSProperties;
1247
1289
  visible?: boolean;
1248
1290
  title?: ReactNode;
1249
1291
  content?: ReactNode;
1250
1292
  footer?: ReactNode;
1251
1293
  confirmText?: ReactNode;
1252
1294
  cancelText?: ReactNode;
1253
- mask?: boolean;
1254
- noOkBtn?: boolean;
1255
- noCancelBtn?: boolean;
1256
- okBtnDisabled?: boolean;
1257
- noFooter?: boolean;
1258
- closeOnClickOverlay?: boolean;
1259
- cancelAutoClose?: boolean;
1260
- textAlign?: string;
1295
+ overlay?: boolean;
1296
+ hideConfirmButton?: boolean;
1297
+ hideCancelButton?: boolean;
1298
+ disableConfirmButton?: boolean;
1299
+ closeOnOverlayClick?: boolean;
1261
1300
  footerDirection?: string;
1262
1301
  lockScroll?: boolean;
1263
- onClosed?: () => void;
1264
- onOk?: (e?: MouseEvent) => Promise<() => void> | void;
1265
- onCancel?: () => void;
1266
- onClickSelf?: () => void;
1302
+ beforeClose?: () => boolean;
1303
+ beforeCancel?: () => boolean;
1304
+ onClose?: () => void;
1267
1305
  onConfirm?: (e?: MouseEvent) => Promise<() => void> | void;
1306
+ onCancel?: () => void;
1307
+ onClick?: () => void;
1268
1308
  }
1269
1309
  type DialogReturnProps = {
1270
1310
  update: (newConfig: ConfirmProps) => void;
@@ -1298,6 +1338,14 @@ interface DragProps extends BasicComponent {
1298
1338
  }
1299
1339
  declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1300
1340
 
1341
+ interface EmptyProps {
1342
+ image: ReactNode;
1343
+ imageSize: number | string;
1344
+ description: ReactNode;
1345
+ className: string;
1346
+ }
1347
+ declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1348
+
1301
1349
  interface InfiniteloadingProps extends BasicComponent {
1302
1350
  hasMore: boolean;
1303
1351
  threshold: number;
@@ -1318,16 +1366,42 @@ interface InfiniteloadingProps extends BasicComponent {
1318
1366
  }
1319
1367
  declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1320
1368
 
1321
- interface NotifyProps {
1322
- id: string;
1323
- color?: string;
1324
- msg: string;
1325
- duration: number;
1369
+ interface NoticeBarProps extends BasicComponent {
1370
+ direction: string;
1326
1371
  className?: string;
1327
- background?: string;
1328
- type: string;
1329
- position: string;
1330
- onClick: () => void;
1372
+ style?: CSSProperties;
1373
+ list: any;
1374
+ standTime: number;
1375
+ complexAm: boolean;
1376
+ height: number;
1377
+ text: string;
1378
+ closeMode: boolean;
1379
+ wrapable: boolean;
1380
+ leftIcon: ReactNode;
1381
+ rightIcon: ReactNode;
1382
+ color: string;
1383
+ background: string;
1384
+ delay: string | number;
1385
+ scrollable: boolean | null;
1386
+ speed: number;
1387
+ close?: (event: any) => void;
1388
+ click?: (event: any) => void;
1389
+ onClose?: (event: any) => void;
1390
+ onClick?: (event: any) => void;
1391
+ onClickItem?: (event: any, value: any) => void;
1392
+ }
1393
+ declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1394
+
1395
+ interface NotifyProps {
1396
+ id: string;
1397
+ color?: string;
1398
+ msg: string;
1399
+ duration: number;
1400
+ className?: string;
1401
+ background?: string;
1402
+ type: string;
1403
+ position: string;
1404
+ onClick: () => void;
1331
1405
  onClosed: () => void;
1332
1406
  }
1333
1407
  declare const _default$1: {
@@ -1339,6 +1413,27 @@ declare const _default$1: {
1339
1413
  hide(): void;
1340
1414
  };
1341
1415
 
1416
+ type PopoverTheme = 'light' | 'dark';
1417
+ type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
1418
+ interface List {
1419
+ name: string;
1420
+ icon?: React__default.ReactNode;
1421
+ disabled?: boolean;
1422
+ }
1423
+ interface PopoverProps extends BasicComponent {
1424
+ list: List[];
1425
+ theme: PopoverTheme;
1426
+ location: PopoverLocation | string;
1427
+ visible: boolean;
1428
+ offset: string | number;
1429
+ className: string;
1430
+ style?: CSSProperties;
1431
+ children?: React__default.ReactNode;
1432
+ onClick: (e: React__default.MouseEvent) => void;
1433
+ onChoose: (item: List, index: number) => void;
1434
+ }
1435
+ declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1436
+
1342
1437
  type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
1343
1438
  interface PullToRefreshProps {
1344
1439
  className: string;
@@ -1357,6 +1452,24 @@ interface PullToRefreshProps {
1357
1452
  }
1358
1453
  declare const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>>;
1359
1454
 
1455
+ type avatarShape = 'round' | 'square';
1456
+ interface SkeletonProps {
1457
+ width: string;
1458
+ height: string;
1459
+ animated: boolean;
1460
+ row: number;
1461
+ title: boolean;
1462
+ avatar: boolean;
1463
+ className?: string;
1464
+ style?: React__default.CSSProperties;
1465
+ avatarSize: string;
1466
+ round: boolean;
1467
+ loading: boolean;
1468
+ avatarShape: avatarShape;
1469
+ children?: React__default.ReactNode;
1470
+ }
1471
+ declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
1472
+
1360
1473
  type SwipeSide = 'left' | 'right';
1361
1474
  type SwipePosition = SwipeSide | 'cell' | 'outside';
1362
1475
  interface SwipeInstance {
@@ -1401,19 +1514,25 @@ interface SwipeProps {
1401
1514
  }
1402
1515
  declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React__default.RefAttributes<SwipeInstance>>;
1403
1516
 
1404
- interface SwitchProps extends BasicComponent {
1405
- isAsync: boolean;
1406
- checked: boolean;
1407
- disable: boolean;
1408
- activeColor: string;
1409
- inactiveColor: string;
1410
- activeText: string;
1411
- inactiveText: string;
1412
- className: string;
1413
- style: React__default.CSSProperties;
1414
- onChange: (val: boolean, event: React__default.MouseEvent) => void;
1517
+ type Teleport = HTMLElement | (() => HTMLElement) | null;
1518
+ interface PopupProps extends OverlayProps {
1519
+ position: string;
1520
+ transition: string;
1521
+ overlayStyle: React__default.CSSProperties;
1522
+ overlayClassName: string;
1523
+ closeable: boolean;
1524
+ closeIconPosition: string;
1525
+ closeIcon: React__default.ReactNode;
1526
+ destroyOnClose: boolean;
1527
+ portal: Teleport;
1528
+ overlay: boolean;
1529
+ round: boolean;
1530
+ onOpen: () => void;
1531
+ onClose: () => void;
1532
+ onClickOverlay: (e: MouseEvent$1) => boolean | void;
1533
+ onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
1415
1534
  }
1416
- declare const Switch: FunctionComponent<Partial<SwitchProps>>;
1535
+ declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1417
1536
 
1418
1537
  interface ToastProps {
1419
1538
  id?: string;
@@ -1526,16 +1645,6 @@ interface AvatarGroupProps {
1526
1645
  }
1527
1646
  declare const AvatarGroup: FunctionComponent<Partial<AvatarGroupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1528
1647
 
1529
- interface BadgeProps extends BasicComponent {
1530
- value: ReactNode;
1531
- dot: boolean;
1532
- max: number;
1533
- top: string;
1534
- right: string;
1535
- color: string;
1536
- }
1537
- declare const Badge: FunctionComponent<Partial<BadgeProps>>;
1538
-
1539
1648
  interface CircleProgressProps {
1540
1649
  progress: string | number;
1541
1650
  strokeWidth?: string | number;
@@ -1604,14 +1713,6 @@ interface EllipsisProps {
1604
1713
  }
1605
1714
  declare const Ellipsis: FunctionComponent<Partial<EllipsisProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
1606
1715
 
1607
- interface EmptyProps {
1608
- image: ReactNode;
1609
- imageSize: number | string;
1610
- description: ReactNode;
1611
- className: string;
1612
- }
1613
- declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1614
-
1615
1716
  interface ImagePreviewProps {
1616
1717
  className?: string;
1617
1718
  images: Array<{
@@ -1638,52 +1739,49 @@ interface ImagePreviewProps {
1638
1739
  }
1639
1740
  declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
1640
1741
 
1641
- interface NoticeBarProps extends BasicComponent {
1742
+ interface IndicatorProps {
1743
+ total: number;
1744
+ current: number;
1642
1745
  direction: string;
1643
- className?: string;
1644
- style?: CSSProperties;
1645
- list: any;
1646
- standTime: number;
1647
- complexAm: boolean;
1648
- height: number;
1649
- text: string;
1650
- closeMode: boolean;
1651
- wrapable: boolean;
1652
- leftIcon: ReactNode;
1653
- rightIcon: ReactNode;
1654
- color: string;
1655
- background: string;
1656
- delay: string | number;
1657
- scrollable: boolean | null;
1658
- speed: number;
1659
- close?: (event: any) => void;
1660
- click?: (event: any) => void;
1661
- onClose?: (event: any) => void;
1662
- onClick?: (event: any) => void;
1663
- onClickItem?: (event: any, value: any) => void;
1664
1746
  }
1665
- declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
1747
+ declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1666
1748
 
1667
- type PopoverTheme = 'light' | 'dark';
1668
- type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
1669
- interface List {
1670
- name: string;
1671
- icon?: React__default.ReactNode;
1672
- disabled?: boolean;
1749
+ type Data = any;
1750
+ interface BasicVirtualListProps {
1751
+ className?: string;
1752
+ style?: React.CSSProperties;
1753
+ sourceData: Array<Data>;
1754
+ containerSize?: number;
1755
+ ItemRender?: React.FC<any>;
1756
+ itemSize?: number;
1757
+ itemEqualSize?: boolean;
1758
+ horizontal?: boolean;
1759
+ overscan?: number;
1760
+ handleScroll?: (...args: any[]) => any;
1761
+ onScroll?: (...args: any[]) => any;
1762
+ key?: string;
1763
+ locale?: {
1764
+ [key in string]: string;
1765
+ };
1673
1766
  }
1674
- interface PopoverProps extends BasicComponent {
1675
- list: List[];
1676
- theme: PopoverTheme;
1677
- location: PopoverLocation | string;
1678
- visible: boolean;
1679
- offset: string | number;
1680
- className: string;
1681
- style?: CSSProperties;
1682
- children?: React__default.ReactNode;
1683
- onClick: (e: React__default.MouseEvent) => void;
1684
- onChoose: (item: List, index: number) => void;
1767
+
1768
+ type VirtualListProps = BasicVirtualListProps;
1769
+ declare const VirtualList: FunctionComponent<VirtualListProps>;
1770
+
1771
+ interface PaginationProps extends BasicComponent {
1772
+ value: number;
1773
+ defaultValue: number;
1774
+ mode: 'multi' | 'simple';
1775
+ prev: ReactNode;
1776
+ next: ReactNode;
1777
+ total: number;
1778
+ pageSize: number;
1779
+ itemSize: number;
1780
+ ellipse: boolean;
1781
+ itemRender: (page: any) => ReactNode;
1782
+ onChange: (currPage: number) => void;
1685
1783
  }
1686
- declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1784
+ declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
1687
1785
 
1688
1786
  interface PriceProps {
1689
1787
  price: number | string;
@@ -1708,24 +1806,6 @@ interface ProgressProps extends BasicComponent {
1708
1806
  }
1709
1807
  declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1710
1808
 
1711
- type avatarShape = 'round' | 'square';
1712
- interface SkeletonProps {
1713
- width: string;
1714
- height: string;
1715
- animated: boolean;
1716
- row: number;
1717
- title: boolean;
1718
- avatar: boolean;
1719
- className?: string;
1720
- style?: React__default.CSSProperties;
1721
- avatarSize: string;
1722
- round: boolean;
1723
- loading: boolean;
1724
- avatarShape: avatarShape;
1725
- children?: React__default.ReactNode;
1726
- }
1727
- declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
1728
-
1729
1809
  interface StepProps extends BasicComponent {
1730
1810
  title: string;
1731
1811
  content: string;
@@ -1823,24 +1903,6 @@ interface TagProps extends BasicComponent {
1823
1903
  type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
1824
1904
  declare const Tag: FunctionComponent<Partial<TagProps>>;
1825
1905
 
1826
- interface TrendArrowProps {
1827
- rate: number;
1828
- digits: number;
1829
- showSign: boolean;
1830
- showZero: boolean;
1831
- arrowLeft: boolean;
1832
- syncTextColor: boolean;
1833
- textColor: string;
1834
- riseColor: string;
1835
- dropColor: string;
1836
- iconSize: string;
1837
- upIcon: React__default.ReactNode;
1838
- downIcon: React__default.ReactNode;
1839
- className: string;
1840
- style: React__default.CSSProperties;
1841
- }
1842
- declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1843
-
1844
1906
  interface VideoProps {
1845
1907
  source: {
1846
1908
  type: string;
@@ -1865,118 +1927,6 @@ interface VideoProps {
1865
1927
  }
1866
1928
  declare const Video: FunctionComponent<Partial<VideoProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;
1867
1929
 
1868
- type Data = any;
1869
- interface BasicVirtualListProps {
1870
- className?: string;
1871
- style?: React.CSSProperties;
1872
- sourceData: Array<Data>;
1873
- containerSize?: number;
1874
- ItemRender?: React.FC<any>;
1875
- itemSize?: number;
1876
- itemEqualSize?: boolean;
1877
- horizontal?: boolean;
1878
- overscan?: number;
1879
- handleScroll?: (...args: any[]) => any;
1880
- onScroll?: (...args: any[]) => any;
1881
- key?: string;
1882
- locale?: {
1883
- [key in string]: string;
1884
- };
1885
- }
1886
-
1887
- type VirtualListProps = BasicVirtualListProps;
1888
- declare const VirtualList: FunctionComponent<VirtualListProps>;
1889
-
1890
- interface WaterMarkProps {
1891
- content: string;
1892
- fullPage: boolean;
1893
- zIndex: number;
1894
- className: string;
1895
- gapX: number;
1896
- gapY: number;
1897
- width: number;
1898
- height: number;
1899
- image: string;
1900
- imageWidth: number;
1901
- imageHeight: number;
1902
- rotate: number;
1903
- fontColor: string;
1904
- fontStyle: string;
1905
- fontFamily: string;
1906
- fontWeight: string;
1907
- fontSize: string | number;
1908
- style: React__default.CSSProperties;
1909
- }
1910
- declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
1911
-
1912
- interface RegionData {
1913
- name?: string;
1914
- [key: string]: any;
1915
- }
1916
- interface ChangeCallBack {
1917
- next: string;
1918
- value: string | RegionData;
1919
- custom: string;
1920
- }
1921
- interface CloseCallBackData extends SelectedRegionObj {
1922
- addressIdStr: string;
1923
- addressStr: string;
1924
- }
1925
- interface CloseCallBack {
1926
- data: CloseCallBackData | AddressList;
1927
- type: string;
1928
- }
1929
- interface AddressList {
1930
- id?: string | number;
1931
- provinceName: string;
1932
- cityName: string;
1933
- countyName: string;
1934
- townName: string;
1935
- addressDetail: string;
1936
- selectedAddress: boolean;
1937
- name?: string;
1938
- phone?: string;
1939
- }
1940
- interface SelectedRegionObj {
1941
- province: RegionData;
1942
- city: RegionData;
1943
- country: RegionData;
1944
- town: RegionData;
1945
- }
1946
-
1947
- interface AddressProps extends BasicComponent {
1948
- className?: string;
1949
- style?: CSSProperties;
1950
- modelValue: boolean;
1951
- modelSelect: (string | number)[];
1952
- type: string;
1953
- customAddressTitle: string;
1954
- province: RegionData[];
1955
- city: RegionData[];
1956
- country: RegionData[];
1957
- town: RegionData[];
1958
- isShowCustomAddress: boolean;
1959
- existAddress: AddressList[];
1960
- existAddressTitle: string;
1961
- customAndExistTitle: string;
1962
- height: string | number;
1963
- defaultIcon: React__default.ReactNode;
1964
- selectedIcon: React__default.ReactNode;
1965
- closeBtnIcon: React__default.ReactNode;
1966
- backBtnIcon: React__default.ReactNode;
1967
- onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
1968
- onClose?: (cal: CloseCallBack) => void;
1969
- onCancel?: (cal: {
1970
- closeWay: string;
1971
- }) => void;
1972
- onSwitch?: (cal: {
1973
- type: string;
1974
- }) => void;
1975
- onChange?: (cal: ChangeCallBack) => void;
1976
- onTabChecked?: (cal: string) => void;
1977
- }
1978
- declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
1979
-
1980
1930
  interface BarrageProps {
1981
1931
  className: string;
1982
1932
  style: React__default.CSSProperties;
@@ -2006,19 +1956,6 @@ interface CardProps {
2006
1956
  }
2007
1957
  declare const Card: FunctionComponent<Partial<CardProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2008
1958
 
2009
- interface SignatureProps {
2010
- type: string;
2011
- lineWidth: number;
2012
- strokeStyle: string;
2013
- unSupportTpl: string;
2014
- className: string;
2015
- confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
2016
- clear?: () => void;
2017
- onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
2018
- onClear?: () => void;
2019
- }
2020
- declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2021
-
2022
1959
  interface TimeType {
2023
1960
  key?: string | number;
2024
1961
  list: string[];
@@ -2064,4 +2001,44 @@ interface TimeSelectProps {
2064
2001
  }
2065
2002
  declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
2066
2003
 
2004
+ interface TrendArrowProps {
2005
+ rate: number;
2006
+ digits: number;
2007
+ showSign: boolean;
2008
+ showZero: boolean;
2009
+ arrowLeft: boolean;
2010
+ syncTextColor: boolean;
2011
+ textColor: string;
2012
+ riseColor: string;
2013
+ dropColor: string;
2014
+ iconSize: string;
2015
+ upIcon: React__default.ReactNode;
2016
+ downIcon: React__default.ReactNode;
2017
+ className: string;
2018
+ style: React__default.CSSProperties;
2019
+ }
2020
+ declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2021
+
2022
+ interface WaterMarkProps {
2023
+ content: string;
2024
+ fullPage: boolean;
2025
+ zIndex: number;
2026
+ className: string;
2027
+ gapX: number;
2028
+ gapY: number;
2029
+ width: number;
2030
+ height: number;
2031
+ image: string;
2032
+ imageWidth: number;
2033
+ imageHeight: number;
2034
+ rotate: number;
2035
+ fontColor: string;
2036
+ fontStyle: string;
2037
+ fontFamily: string;
2038
+ fontWeight: string;
2039
+ fontSize: string | number;
2040
+ style: React__default.CSSProperties;
2041
+ }
2042
+ declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
2043
+
2067
2044
  export { ActionSheet, ActionSheetProps, Address, AddressProps, Animate, AnimateProps, AnimatingNumbers, AnimatingNumbersProps, Audio, AudioProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, Barrage, BarrageProps, Button, ButtonProps, Calendar, CalendarItem, CalendarItemProps, CalendarProps, Card, CardProps, Cascader, CascaderProps, Cell, CellGroup, CellGroupProps, CellProps, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CircleProgress, CircleProgressProps, Col, ColProps, Collapse, CollapseItem, CollapseItemProps, CollapseProps, ConfigProvider, ConfigProviderProps, CountDown, CountDownProps, DatePicker, DatePickerProps, Dialog, DialogProps, Divider, DividerProps, Drag, DragProps, Elevator, ElevatorProps, Ellipsis, EllipsisProps, Empty, EmptyProps, FixedNav, FixedNavProps, Form, FormItem, FormItemProps, FormProps, Grid, GridItem, GridItemProps, GridProps, Image, ImagePreview, ImagePreviewProps, ImageProps, Indicator, IndicatorProps, Infiniteloading, InfiniteloadingProps, Input, InputNumber, InputNumberProps, InputProps, Layout, LayoutProps, Menu, MenuItem, MenuItemProps, MenuProps, NavBar, NavBarProps$1 as NavBarProps, NoticeBar, NoticeBarProps, _default$1 as Notify, NotifyProps, NumberKeyboard, NumberKeyboardProps, Overlay, OverlayProps, Pagination, PaginationProps, Picker, PickerProps, Popover, PopoverProps, Popup, PopupProps, Price, PriceProps, Progress, ProgressProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, Range, RangeProps, Rate, RateProps, Row, RowProps, SearchBar, SearchBarProps, ShortPassword, ShortPasswordProps, SideNavBar, SideNavBarItem, SideNavBarItemProps, SideNavBarProps, Signature, SignatureProps, Skeleton, SkeletonProps, Step, StepProps, Steps, StepsProps, Sticky, StickyProps, SubSideNavBar, SubSideNavBarProps, Swipe, SwipeProps, Swiper, SwiperItem, SwiperItemProps, SwiperProps, Switch, SwitchProps, TabPane, TabPaneProps, Tabbar, TabbarItem, TabbarItemProps, TabbarProps, Table, TableProps, Tabs, TabsProps, Tag, TagProps, TextArea, TextAreaProps, TimeDetail, TimeDetailProps, TimePannel, TimePannelProps, TimeSelect, TimeSelectProps, _default as Toast, ToastProps, TrendArrow, TrendArrowProps, Uploader, UploaderProps, Video, VideoProps, VirtualList, VirtualListProps, WaterMark, WaterMarkProps };