@nutui/nutui-react 2.0.0-alpha.0 → 2.0.0-alpha.10
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.
- package/CHANGELOG.md +137 -638
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Animate.js +6 -7
- package/dist/esm/Audio.js +28 -27
- package/dist/esm/Avatar.js +30 -25
- package/dist/esm/AvatarGroup.js +10 -15
- package/dist/esm/Badge.js +4 -73
- package/dist/esm/CalendarItem.js +2 -12
- package/dist/esm/Cascader.js +67 -69
- package/dist/esm/Checkbox.js +1 -2
- package/dist/esm/CheckboxGroup.js +18 -20
- package/dist/esm/CircleProgress.js +20 -25
- package/dist/esm/Col.js +4 -3
- package/dist/esm/DatePicker.js +10 -10
- package/dist/esm/Dialog.js +162 -171
- package/dist/esm/Divider.js +4 -3
- package/dist/esm/Drag.js +7 -9
- package/dist/esm/Elevator.js +39 -41
- package/dist/esm/Ellipsis.js +13 -12
- package/dist/esm/Empty.js +18 -26
- package/dist/esm/Image.js +5 -10
- package/dist/esm/ImagePreview.js +67 -58
- package/dist/esm/Indicator.js +4 -4
- package/dist/esm/Input.js +87 -193
- package/dist/esm/Menu.js +75 -73
- package/dist/esm/MenuItem.js +29 -27
- package/dist/esm/NavBar.js +17 -48
- package/dist/esm/NoticeBar.js +50 -87
- package/dist/esm/Notify.js +35 -46
- package/dist/esm/NumberKeyboard.js +137 -195
- package/dist/esm/Picker.js +175 -160
- package/dist/esm/Popup.js +24 -33
- package/dist/esm/Price.js +22 -23
- package/dist/esm/Progress.js +74 -67
- package/dist/esm/PullToRefresh.js +8 -8
- package/dist/esm/Radio.js +2 -0
- package/dist/esm/RadioGroup.js +31 -51
- package/dist/esm/Range/style/index.js +1 -1
- package/dist/esm/Range.js +119 -174
- package/dist/esm/Row.js +6 -5
- package/dist/esm/SideNavBar.js +0 -2
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Step.js +23 -28
- package/dist/esm/Steps/style/index.js +1 -1
- package/dist/esm/Steps.js +10 -11
- package/dist/esm/Swipe.js +4 -10
- package/dist/esm/Swiper.js +86 -91
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Switch.js +16 -30
- package/dist/esm/TabPane.js +39 -5
- package/dist/esm/Tabbar/style/index.js +1 -1
- package/dist/esm/Tabbar.js +29 -33
- package/dist/esm/TabbarItem.js +5 -75
- package/dist/esm/Table.js +20 -34
- package/dist/esm/Tabs.js +2 -2
- package/dist/esm/TextArea.js +53 -81
- package/dist/esm/Uploader.js +49 -52
- package/dist/esm/badge2.js +69 -0
- package/dist/esm/cellgroup2.js +5 -4
- package/dist/esm/checkbox2.js +34 -47
- package/dist/esm/nutui-react.es.js +170 -170
- package/dist/esm/overlay2.js +12 -14
- package/dist/esm/radio2.js +52 -54
- package/dist/esm/raf.js +16 -0
- package/dist/esm/tabbaritem2.js +61 -0
- package/dist/esm/tabs2.js +126 -95
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +23562 -24489
- package/dist/nutui.react.umd.js +23560 -24487
- package/dist/packages/audio/audio.scss +2 -15
- package/dist/packages/badge/badge.scss +8 -18
- package/dist/packages/calendar/calendar.scss +0 -30
- package/dist/packages/cascader/cascader.scss +0 -26
- package/dist/packages/cellgroup/cellgroup.scss +20 -16
- package/dist/packages/checkbox/checkbox.scss +8 -11
- package/dist/packages/circleprogress/circleprogress.scss +0 -9
- package/dist/packages/dialog/dialog.scss +36 -65
- package/dist/packages/elevator/elevator.scss +2 -28
- package/dist/packages/empty/empty.scss +0 -9
- package/dist/packages/imagepreview/imagepreview.scss +52 -16
- package/dist/packages/input/input.scss +13 -180
- package/dist/packages/menu/menu.scss +44 -55
- package/dist/packages/menuitem/menuitem.scss +16 -26
- package/dist/packages/navbar/navbar.scss +16 -115
- package/dist/packages/noticebar/noticebar.scss +18 -19
- package/dist/packages/notify/notify.scss +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
- package/dist/packages/overlay/overlay.scss +11 -4
- package/dist/packages/picker/picker.scss +66 -137
- package/dist/packages/popup/popup.scss +0 -16
- package/dist/packages/price/price.scss +8 -0
- package/dist/packages/progress/progress.scss +19 -58
- package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
- package/dist/packages/radio/radio.scss +13 -32
- package/dist/packages/radiogroup/radiogroup.scss +17 -51
- package/dist/packages/range/range.scss +24 -49
- package/dist/packages/row/row.scss +13 -31
- package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
- package/dist/packages/step/step.scss +9 -62
- package/dist/packages/steps/steps.scss +2 -0
- package/dist/packages/swiper/swiper.scss +3 -18
- package/dist/packages/switch/switch.scss +13 -31
- package/dist/packages/tabbar/tabbar.scss +16 -22
- package/dist/packages/tabbaritem/tabbaritem.scss +9 -70
- package/dist/packages/table/table.scss +0 -56
- package/dist/packages/tabs/tabs.scss +196 -225
- package/dist/packages/textarea/textarea.scss +5 -12
- package/dist/packages/uploader/uploader.scss +2 -28
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +17 -18
- package/dist/styles/variables-jmapp.scss +120 -240
- package/dist/styles/variables.scss +139 -252
- package/dist/types/index.d.ts +565 -708
- package/package.json +2 -2
- package/dist/esm/Icon.js +0 -83
- package/dist/esm/tabpane2.js +0 -44
- package/dist/packages/icon/icon.scss +0 -0
- /package/dist/esm/{AvatarContext.js → context.js} +0 -0
- /package/dist/esm/{UserContext2.js → context2.js} +0 -0
- /package/dist/esm/{UserContext3.js → context3.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode, FunctionComponent, MouseEvent as MouseEvent$1,
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, FunctionComponent, MouseEvent as MouseEvent$1, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
|
|
3
3
|
|
|
4
4
|
interface BasicComponent {
|
|
5
5
|
className?: string;
|
|
@@ -39,6 +39,7 @@ interface CellGroupProps extends BasicComponent {
|
|
|
39
39
|
title: ReactNode;
|
|
40
40
|
description: ReactNode;
|
|
41
41
|
children?: ReactNode;
|
|
42
|
+
divider: boolean;
|
|
42
43
|
}
|
|
43
44
|
declare const CellGroup: FunctionComponent<Partial<CellGroupProps>>;
|
|
44
45
|
|
|
@@ -204,37 +205,14 @@ interface OverlayProps extends BasicComponent {
|
|
|
204
205
|
closeOnOverlayClick: boolean;
|
|
205
206
|
visible: boolean;
|
|
206
207
|
lockScroll: boolean;
|
|
208
|
+
onClick: (event: MouseEvent$1) => void;
|
|
207
209
|
afterShow: () => void;
|
|
208
210
|
afterClose: () => void;
|
|
209
211
|
}
|
|
210
212
|
declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
211
213
|
|
|
212
|
-
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
213
|
-
interface PopupProps extends OverlayProps {
|
|
214
|
-
position: string;
|
|
215
|
-
transition: string;
|
|
216
|
-
overlayStyle: React__default.CSSProperties;
|
|
217
|
-
overlayClass: string;
|
|
218
|
-
popClass: string;
|
|
219
|
-
closeable: boolean;
|
|
220
|
-
closeIconPosition: string;
|
|
221
|
-
closeIcon: React__default.ReactNode;
|
|
222
|
-
destroyOnClose: boolean;
|
|
223
|
-
teleport: Teleport;
|
|
224
|
-
overlay: boolean;
|
|
225
|
-
round: boolean;
|
|
226
|
-
onOpen: () => void;
|
|
227
|
-
onClose: () => void;
|
|
228
|
-
onClick: (e: MouseEvent$1) => void;
|
|
229
|
-
onOpened: (e: HTMLElement) => void;
|
|
230
|
-
onClosed: (e: HTMLElement) => void;
|
|
231
|
-
onClickOverlay: (e: MouseEvent$1) => void;
|
|
232
|
-
onClickCloseIcon: (e: MouseEvent$1) => void;
|
|
233
|
-
}
|
|
234
|
-
declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
235
|
-
|
|
236
214
|
type EventType$1 = 'row' | 'col';
|
|
237
|
-
interface ColProps {
|
|
215
|
+
interface ColProps extends BasicComponent {
|
|
238
216
|
span: string | number;
|
|
239
217
|
offset: string | number;
|
|
240
218
|
gutter: string | number;
|
|
@@ -244,10 +222,8 @@ declare const Col: FunctionComponent<Partial<ColProps> & Omit<React__default.HTM
|
|
|
244
222
|
|
|
245
223
|
type ContentPositionType = 'left' | 'center' | 'right';
|
|
246
224
|
type DirectionType = 'horizontal' | 'vertical';
|
|
247
|
-
interface DividerProps {
|
|
225
|
+
interface DividerProps extends BasicComponent {
|
|
248
226
|
contentPosition: ContentPositionType;
|
|
249
|
-
style?: React__default.CSSProperties;
|
|
250
|
-
className?: string;
|
|
251
227
|
direction?: DirectionType;
|
|
252
228
|
}
|
|
253
229
|
declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -286,7 +262,7 @@ interface LayoutProps {
|
|
|
286
262
|
declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
287
263
|
|
|
288
264
|
type EventType = 'row' | 'col';
|
|
289
|
-
interface RowProps {
|
|
265
|
+
interface RowProps extends BasicComponent {
|
|
290
266
|
type: string;
|
|
291
267
|
justify: string;
|
|
292
268
|
align: string;
|
|
@@ -306,16 +282,24 @@ interface StickyProps extends BasicComponent {
|
|
|
306
282
|
}
|
|
307
283
|
declare const Sticky: FunctionComponent<Partial<StickyProps>>;
|
|
308
284
|
|
|
285
|
+
interface BackTopProps extends BasicComponent {
|
|
286
|
+
target: string;
|
|
287
|
+
threshold: number;
|
|
288
|
+
zIndex: number;
|
|
289
|
+
duration: number;
|
|
290
|
+
onClick?: (event: MouseEvent) => void;
|
|
291
|
+
}
|
|
292
|
+
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
293
|
+
|
|
309
294
|
declare const elevatorContext: React__default.Context<ElevatorData>;
|
|
310
|
-
interface ElevatorProps {
|
|
295
|
+
interface ElevatorProps extends BasicComponent {
|
|
311
296
|
height: number | string;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
297
|
+
floorKey: string;
|
|
298
|
+
list: any[];
|
|
299
|
+
sticky: boolean;
|
|
315
300
|
spaceHeight: number;
|
|
316
301
|
titleHeight: number;
|
|
317
|
-
|
|
318
|
-
style: React__default.CSSProperties;
|
|
302
|
+
showKeys: boolean;
|
|
319
303
|
children: React__default.ReactNode;
|
|
320
304
|
onClickItem: (key: string, item: ElevatorData) => void;
|
|
321
305
|
onClickIndex: (key: string) => void;
|
|
@@ -329,7 +313,7 @@ declare const Elevator: FunctionComponent<Partial<ElevatorProps> & React__defaul
|
|
|
329
313
|
Context: typeof elevatorContext;
|
|
330
314
|
};
|
|
331
315
|
|
|
332
|
-
type Direction$
|
|
316
|
+
type Direction$2 = 'right' | 'left';
|
|
333
317
|
type Position$2 = {
|
|
334
318
|
top?: string;
|
|
335
319
|
bottom?: string;
|
|
@@ -341,88 +325,26 @@ interface FixedNavProps extends BasicComponent {
|
|
|
341
325
|
activeText: string;
|
|
342
326
|
inactiveText: string;
|
|
343
327
|
position: Position$2;
|
|
344
|
-
type: Direction$
|
|
328
|
+
type: Direction$2;
|
|
345
329
|
onChange: (item: any) => void;
|
|
346
330
|
onSelect: (item: any, event: MouseEvent$1) => void;
|
|
347
331
|
content: React__default.ReactNode;
|
|
348
332
|
}
|
|
349
333
|
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
|
|
350
334
|
|
|
351
|
-
interface IndicatorProps {
|
|
352
|
-
total: number;
|
|
353
|
-
current: number;
|
|
354
|
-
direction: string;
|
|
355
|
-
}
|
|
356
|
-
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
357
|
-
|
|
358
|
-
interface MenuProps extends BasicComponent {
|
|
359
|
-
className: string;
|
|
360
|
-
style: React__default.CSSProperties;
|
|
361
|
-
activeColor: string;
|
|
362
|
-
closeOnClickOverlay: boolean;
|
|
363
|
-
scrollFixed: boolean | string | number;
|
|
364
|
-
lockScroll: boolean;
|
|
365
|
-
titleIcon: React__default.ReactNode;
|
|
366
|
-
children: React__default.ReactNode;
|
|
367
|
-
}
|
|
368
|
-
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
369
|
-
|
|
370
|
-
interface OptionItem {
|
|
371
|
-
text: string;
|
|
372
|
-
value: string | number;
|
|
373
|
-
}
|
|
374
|
-
interface MenuItemProps extends BasicComponent {
|
|
375
|
-
className: string;
|
|
376
|
-
style: React__default.CSSProperties;
|
|
377
|
-
title: React__default.ReactNode;
|
|
378
|
-
options: OptionItem[];
|
|
379
|
-
disabled: boolean;
|
|
380
|
-
columns: number;
|
|
381
|
-
optionsIcon: React__default.ReactNode;
|
|
382
|
-
direction: string;
|
|
383
|
-
activeTitleClass: string;
|
|
384
|
-
inactiveTitleClass: string;
|
|
385
|
-
value: string | number;
|
|
386
|
-
onChange: (event: any) => void;
|
|
387
|
-
children: React__default.ReactNode;
|
|
388
|
-
}
|
|
389
|
-
declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
|
|
390
|
-
|
|
391
335
|
interface NavBarProps$1 extends BasicComponent {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
description: string;
|
|
396
|
-
className: string;
|
|
336
|
+
left: React__default.ReactNode;
|
|
337
|
+
back: React__default.ReactNode;
|
|
338
|
+
right: React__default.ReactNode;
|
|
397
339
|
fixed: boolean;
|
|
398
340
|
safeAreaInsetTop: boolean;
|
|
399
|
-
border: boolean;
|
|
400
341
|
placeholder: boolean;
|
|
401
342
|
zIndex: number | string;
|
|
402
|
-
style: React__default.CSSProperties;
|
|
403
|
-
onClickTitle: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
404
|
-
onClickIcon: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
405
343
|
onClickBack: (e: React__default.MouseEvent<HTMLElement>) => void;
|
|
406
|
-
onClickRight: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
407
344
|
children?: React__default.ReactNode;
|
|
408
345
|
}
|
|
409
346
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
410
347
|
|
|
411
|
-
interface PaginationProps extends BasicComponent {
|
|
412
|
-
value: number;
|
|
413
|
-
defaultValue: number;
|
|
414
|
-
mode: 'multi' | 'simple';
|
|
415
|
-
prev: ReactNode;
|
|
416
|
-
next: ReactNode;
|
|
417
|
-
total: number;
|
|
418
|
-
pageSize: number;
|
|
419
|
-
itemSize: number;
|
|
420
|
-
ellipse: boolean;
|
|
421
|
-
itemRender: (page: any) => ReactNode;
|
|
422
|
-
onChange: (currPage: number) => void;
|
|
423
|
-
}
|
|
424
|
-
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
425
|
-
|
|
426
348
|
type NavBarProps = {
|
|
427
349
|
showhead?: boolean;
|
|
428
350
|
};
|
|
@@ -461,75 +383,64 @@ type SubSideNavBarProps = {
|
|
|
461
383
|
};
|
|
462
384
|
declare const SubSideNavBar: FunctionComponent<SubSideNavBarProps>;
|
|
463
385
|
|
|
464
|
-
interface
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
safeAreaInsetBottom: boolean;
|
|
472
|
-
className: string;
|
|
473
|
-
style: React__default.CSSProperties;
|
|
474
|
-
onSwitch: (child: React__default.ReactElement<any>, active: number) => void;
|
|
475
|
-
children?: React__default.ReactNode;
|
|
386
|
+
interface BadgeProps extends BasicComponent {
|
|
387
|
+
value: ReactNode;
|
|
388
|
+
dot: boolean;
|
|
389
|
+
max: number;
|
|
390
|
+
top: string;
|
|
391
|
+
right: string;
|
|
392
|
+
color: string;
|
|
476
393
|
}
|
|
477
|
-
declare const
|
|
394
|
+
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
478
395
|
|
|
479
|
-
interface TabbarItemProps extends
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
tabTitle: string;
|
|
483
|
-
icon: React__default.ReactNode;
|
|
484
|
-
href: string;
|
|
485
|
-
num: string | number;
|
|
396
|
+
interface TabbarItemProps extends BadgeProps {
|
|
397
|
+
title: ReactNode;
|
|
398
|
+
icon: ReactNode;
|
|
486
399
|
active: boolean;
|
|
487
400
|
activeColor: string;
|
|
488
|
-
|
|
401
|
+
inactiveColor: string;
|
|
489
402
|
index: number;
|
|
490
403
|
handleClick: (idx: number) => void;
|
|
491
404
|
}
|
|
492
405
|
declare const TabbarItem: FunctionComponent<Partial<TabbarItemProps>>;
|
|
493
406
|
|
|
407
|
+
interface TabbarProps extends BasicComponent {
|
|
408
|
+
defaultValue: number;
|
|
409
|
+
value?: number;
|
|
410
|
+
fixed: boolean;
|
|
411
|
+
inactiveColor: string;
|
|
412
|
+
activeColor: string;
|
|
413
|
+
safeArea: boolean;
|
|
414
|
+
onSwitch: (value: number) => void;
|
|
415
|
+
}
|
|
416
|
+
declare const Tabbar: FunctionComponent<Partial<TabbarProps>> & {
|
|
417
|
+
Item: typeof TabbarItem;
|
|
418
|
+
};
|
|
419
|
+
|
|
494
420
|
interface TabPanelInnerProps {
|
|
495
421
|
autoHeightClassName: string;
|
|
496
422
|
}
|
|
497
423
|
interface TabPaneProps {
|
|
498
424
|
title: string | number;
|
|
499
|
-
|
|
500
|
-
activeKey: string | number;
|
|
425
|
+
value: string | number;
|
|
501
426
|
disabled: boolean;
|
|
502
427
|
className: string;
|
|
503
428
|
children?: React__default.ReactNode;
|
|
504
429
|
}
|
|
505
430
|
declare const TabPane: FunctionComponent<Partial<TabPaneProps & TabPanelInnerProps>>;
|
|
506
431
|
|
|
507
|
-
declare class Title {
|
|
508
|
-
title: string;
|
|
509
|
-
paneKey: string;
|
|
510
|
-
disabled: boolean;
|
|
511
|
-
index: number;
|
|
512
|
-
constructor();
|
|
513
|
-
}
|
|
514
|
-
type TabsSize = 'large' | 'normal' | 'small';
|
|
515
432
|
interface TabsProps extends BasicComponent {
|
|
516
|
-
className: string;
|
|
517
|
-
style: React__default.CSSProperties;
|
|
518
433
|
tabStyle: React__default.CSSProperties;
|
|
519
434
|
value: string | number;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
direction:
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
leftAlign: boolean;
|
|
530
|
-
titleNode: () => JSX.Element[];
|
|
531
|
-
onChange: (t: Title) => void;
|
|
532
|
-
onClick: (t: Title) => void;
|
|
435
|
+
defaultValue: string | number;
|
|
436
|
+
activeColor: string;
|
|
437
|
+
direction: 'horizontal' | 'vertical';
|
|
438
|
+
activeType: 'line' | 'smile';
|
|
439
|
+
duration: number | string;
|
|
440
|
+
align: 'left' | 'right';
|
|
441
|
+
title: () => JSX.Element[];
|
|
442
|
+
onChange: (index: string | number) => void;
|
|
443
|
+
onClick: (index: string | number) => void;
|
|
533
444
|
autoHeight: boolean;
|
|
534
445
|
children?: React__default.ReactNode;
|
|
535
446
|
}
|
|
@@ -537,6 +448,74 @@ declare const Tabs: FunctionComponent<Partial<TabsProps>> & {
|
|
|
537
448
|
TabPane: typeof TabPane;
|
|
538
449
|
};
|
|
539
450
|
|
|
451
|
+
interface RegionData {
|
|
452
|
+
name?: string;
|
|
453
|
+
[key: string]: any;
|
|
454
|
+
}
|
|
455
|
+
interface ChangeCallBack {
|
|
456
|
+
next: string;
|
|
457
|
+
value: string | RegionData;
|
|
458
|
+
custom: string;
|
|
459
|
+
}
|
|
460
|
+
interface CloseCallBackData extends SelectedRegionObj {
|
|
461
|
+
addressIdStr: string;
|
|
462
|
+
addressStr: string;
|
|
463
|
+
}
|
|
464
|
+
interface CloseCallBack {
|
|
465
|
+
data: CloseCallBackData | AddressList;
|
|
466
|
+
type: string;
|
|
467
|
+
}
|
|
468
|
+
interface AddressList {
|
|
469
|
+
id?: string | number;
|
|
470
|
+
provinceName: string;
|
|
471
|
+
cityName: string;
|
|
472
|
+
countyName: string;
|
|
473
|
+
townName: string;
|
|
474
|
+
addressDetail: string;
|
|
475
|
+
selectedAddress: boolean;
|
|
476
|
+
name?: string;
|
|
477
|
+
phone?: string;
|
|
478
|
+
}
|
|
479
|
+
interface SelectedRegionObj {
|
|
480
|
+
province: RegionData;
|
|
481
|
+
city: RegionData;
|
|
482
|
+
country: RegionData;
|
|
483
|
+
town: RegionData;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
interface AddressProps extends BasicComponent {
|
|
487
|
+
className?: string;
|
|
488
|
+
style?: CSSProperties;
|
|
489
|
+
modelValue: boolean;
|
|
490
|
+
modelSelect: (string | number)[];
|
|
491
|
+
type: string;
|
|
492
|
+
customAddressTitle: string;
|
|
493
|
+
province: RegionData[];
|
|
494
|
+
city: RegionData[];
|
|
495
|
+
country: RegionData[];
|
|
496
|
+
town: RegionData[];
|
|
497
|
+
isShowCustomAddress: boolean;
|
|
498
|
+
existAddress: AddressList[];
|
|
499
|
+
existAddressTitle: string;
|
|
500
|
+
customAndExistTitle: string;
|
|
501
|
+
height: string | number;
|
|
502
|
+
defaultIcon: React__default.ReactNode;
|
|
503
|
+
selectedIcon: React__default.ReactNode;
|
|
504
|
+
closeBtnIcon: React__default.ReactNode;
|
|
505
|
+
backBtnIcon: React__default.ReactNode;
|
|
506
|
+
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
507
|
+
onClose?: (cal: CloseCallBack) => void;
|
|
508
|
+
onCancel?: (cal: {
|
|
509
|
+
closeWay: string;
|
|
510
|
+
}) => void;
|
|
511
|
+
onSwitch?: (cal: {
|
|
512
|
+
type: string;
|
|
513
|
+
}) => void;
|
|
514
|
+
onChange?: (cal: ChangeCallBack) => void;
|
|
515
|
+
onTabChecked?: (cal: string) => void;
|
|
516
|
+
}
|
|
517
|
+
declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
518
|
+
|
|
540
519
|
type CalendarRef$1 = {
|
|
541
520
|
scrollToDate: (date: string) => void;
|
|
542
521
|
};
|
|
@@ -617,30 +596,32 @@ interface CascaderOption {
|
|
|
617
596
|
loading?: boolean;
|
|
618
597
|
root?: boolean;
|
|
619
598
|
}
|
|
599
|
+
type CascaderValue = Exclude<CascaderOption['value'], undefined>[];
|
|
600
|
+
interface optionKey {
|
|
601
|
+
textKey: string;
|
|
602
|
+
valueKey: string;
|
|
603
|
+
childrenKey: string;
|
|
604
|
+
}
|
|
620
605
|
|
|
621
|
-
interface CascaderProps {
|
|
622
|
-
|
|
623
|
-
style: CSSProperties;
|
|
624
|
-
activeColor: string;
|
|
625
|
-
checkedIcon: string;
|
|
626
|
-
tabsColor: string;
|
|
627
|
-
poppable: boolean;
|
|
606
|
+
interface CascaderProps extends BasicComponent {
|
|
607
|
+
popup: boolean;
|
|
628
608
|
visible: boolean;
|
|
609
|
+
activeColor: string;
|
|
610
|
+
activeIcon: string;
|
|
629
611
|
options: CascaderOption[];
|
|
630
|
-
value
|
|
612
|
+
value?: CascaderValue;
|
|
613
|
+
defaultValue?: CascaderValue;
|
|
631
614
|
title: string;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
childrenKey: string;
|
|
635
|
-
convertConfig: Record<string, string | number | null>;
|
|
615
|
+
optionKey: optionKey;
|
|
616
|
+
format: Record<string, string | number | null>;
|
|
636
617
|
closeable: boolean;
|
|
637
618
|
closeIconPosition: string;
|
|
638
619
|
closeIcon: string;
|
|
639
620
|
lazy: boolean;
|
|
640
|
-
|
|
621
|
+
onLoad: (node: any, resolve: any) => void;
|
|
641
622
|
onClose?: () => void;
|
|
642
|
-
onChange: (value:
|
|
643
|
-
onPathChange: (value:
|
|
623
|
+
onChange: (value: CascaderValue, params?: any) => void;
|
|
624
|
+
onPathChange: (value: CascaderValue, params: any) => void;
|
|
644
625
|
}
|
|
645
626
|
declare const Cascader: React__default.ForwardRefExoticComponent<Partial<CascaderProps> & {
|
|
646
627
|
children?: React__default.ReactNode;
|
|
@@ -650,20 +631,20 @@ interface RadioGroupOptionType {
|
|
|
650
631
|
label: string;
|
|
651
632
|
value: string;
|
|
652
633
|
disabled?: boolean;
|
|
653
|
-
onChange?:
|
|
634
|
+
onChange?: (checked: boolean) => void;
|
|
654
635
|
}
|
|
655
636
|
|
|
656
|
-
type
|
|
637
|
+
type CheckboxLabelPosition = 'left' | 'right';
|
|
657
638
|
type CheckboxDirection = 'horizontal' | 'vertical';
|
|
658
639
|
interface CheckboxGroupProps {
|
|
659
|
-
disabled
|
|
640
|
+
disabled?: boolean;
|
|
660
641
|
value?: string[];
|
|
661
642
|
defaultValue?: string[];
|
|
662
643
|
max: number | undefined;
|
|
663
|
-
|
|
644
|
+
labelPosition: CheckboxLabelPosition;
|
|
664
645
|
direction: CheckboxDirection;
|
|
665
|
-
onChange: (value: string[]) => void;
|
|
666
646
|
options: RadioGroupOptionType[];
|
|
647
|
+
onChange: (value: string[]) => void;
|
|
667
648
|
}
|
|
668
649
|
declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
|
|
669
650
|
|
|
@@ -671,16 +652,14 @@ interface CheckboxProps extends BasicComponent {
|
|
|
671
652
|
checked: boolean;
|
|
672
653
|
disabled: boolean;
|
|
673
654
|
defaultChecked: boolean;
|
|
674
|
-
|
|
675
|
-
iconSize: string | number;
|
|
655
|
+
labelPosition: 'left' | 'right';
|
|
676
656
|
icon: React__default.ReactNode;
|
|
677
|
-
|
|
657
|
+
activeIcon: React__default.ReactNode;
|
|
678
658
|
indeterminateIcon: React__default.ReactNode;
|
|
679
|
-
|
|
680
|
-
iconFontClassName: string;
|
|
659
|
+
value: string | number;
|
|
681
660
|
indeterminate: boolean;
|
|
682
661
|
label: string | number;
|
|
683
|
-
onChange: (
|
|
662
|
+
onChange: (value: boolean) => void;
|
|
684
663
|
}
|
|
685
664
|
declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
|
|
686
665
|
Group: typeof CheckboxGroup;
|
|
@@ -689,7 +668,7 @@ declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React__d
|
|
|
689
668
|
interface PickerOption$1 {
|
|
690
669
|
text: string | number;
|
|
691
670
|
value: string | number;
|
|
692
|
-
disabled?:
|
|
671
|
+
disabled?: boolean;
|
|
693
672
|
children?: PickerOption$1[];
|
|
694
673
|
className?: string | number;
|
|
695
674
|
}
|
|
@@ -708,8 +687,8 @@ interface DatePickerProps {
|
|
|
708
687
|
formatter: (type: string, option: PickerOption$1) => PickerOption$1;
|
|
709
688
|
filter: (type: string, option: PickerOption$1[]) => PickerOption$1[];
|
|
710
689
|
onCloseDatePicker: () => void;
|
|
711
|
-
onConfirmDatePicker: (
|
|
712
|
-
onChange?: (
|
|
690
|
+
onConfirmDatePicker: (selectedOptions: PickerOption$1[], selectedValue: (string | number)[]) => void;
|
|
691
|
+
onChange?: (selectedOptions: PickerOption$1[], selectedValue: (string | number)[], columnIndex: number) => void;
|
|
713
692
|
}
|
|
714
693
|
declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
715
694
|
|
|
@@ -838,57 +817,30 @@ declare const Form: FunctionComponent<Partial<FormProps> & React__default.HTMLAt
|
|
|
838
817
|
type InputAlignType = 'left' | 'center' | 'right';
|
|
839
818
|
type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
840
819
|
type InputType = HTMLInputTypeAttribute;
|
|
841
|
-
type
|
|
842
|
-
pattern?: RegExp;
|
|
843
|
-
message?: string;
|
|
844
|
-
required?: boolean;
|
|
845
|
-
};
|
|
820
|
+
type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
846
821
|
interface InputProps extends BasicComponent {
|
|
847
822
|
type: InputType;
|
|
848
823
|
name: string;
|
|
849
|
-
defaultValue
|
|
824
|
+
defaultValue?: string;
|
|
825
|
+
value?: string;
|
|
850
826
|
placeholder: string;
|
|
851
|
-
|
|
852
|
-
labelClass: string;
|
|
853
|
-
labelWidth: string | number;
|
|
854
|
-
labelAlign: InputAlignType;
|
|
855
|
-
colon: boolean;
|
|
856
|
-
inputAlign: InputAlignType;
|
|
857
|
-
center: boolean;
|
|
858
|
-
required: boolean;
|
|
827
|
+
align: InputAlignType;
|
|
859
828
|
disabled: boolean;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
maxlength: any;
|
|
863
|
-
leftIcon: React__default.ReactNode;
|
|
864
|
-
rightIcon: React__default.ReactNode;
|
|
829
|
+
readOnly: boolean;
|
|
830
|
+
maxLength: number;
|
|
865
831
|
clearable: boolean;
|
|
866
832
|
clearIcon: React__default.ReactNode;
|
|
867
|
-
clearSize: string | number;
|
|
868
|
-
border: boolean;
|
|
869
833
|
formatTrigger: InputFormatTrigger;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
formatter: (value: string) => void;
|
|
881
|
-
onChange?: (value: any, event: Event) => void;
|
|
882
|
-
onBlur?: (value: any, event: Event) => void;
|
|
883
|
-
onFocus?: (value: any, event: Event) => void;
|
|
884
|
-
onClear?: (value: any, event: Event) => void;
|
|
885
|
-
keypress?: (value: any, event: Event) => void;
|
|
886
|
-
onClickInput?: (value: any) => void;
|
|
887
|
-
onClickLeftIcon?: (value: any) => void;
|
|
888
|
-
onClickRightIcon?: (value: any) => void;
|
|
889
|
-
onClick?: (value: any) => void;
|
|
890
|
-
}
|
|
891
|
-
declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus' | 'onClick'>>;
|
|
834
|
+
autoFocus: boolean;
|
|
835
|
+
confirmType: ConfirmTextType;
|
|
836
|
+
formatter?: (value: string) => void;
|
|
837
|
+
onChange?: (value: string) => void;
|
|
838
|
+
onBlur?: (value: string) => void;
|
|
839
|
+
onFocus?: (value: string) => void;
|
|
840
|
+
onClear?: (value: string) => void;
|
|
841
|
+
onClick?: (value: MouseEvent$1<HTMLDivElement>) => void;
|
|
842
|
+
}
|
|
843
|
+
declare const Input: React__default.ForwardRefExoticComponent<Partial<InputProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onClick" | "onFocus" | "onBlur" | "onChange"> & React__default.RefAttributes<unknown>>;
|
|
892
844
|
|
|
893
845
|
interface InputNumberProps extends BasicComponent {
|
|
894
846
|
disabled: boolean;
|
|
@@ -901,8 +853,6 @@ interface InputNumberProps extends BasicComponent {
|
|
|
901
853
|
step: string | number;
|
|
902
854
|
digits: string | number;
|
|
903
855
|
async: boolean;
|
|
904
|
-
className: string;
|
|
905
|
-
style: React__default.CSSProperties;
|
|
906
856
|
formatter?: (displayValue: string | number) => string;
|
|
907
857
|
onPlus: (e: MouseEvent) => void;
|
|
908
858
|
onMinus: (e: MouseEvent) => void;
|
|
@@ -913,104 +863,143 @@ interface InputNumberProps extends BasicComponent {
|
|
|
913
863
|
}
|
|
914
864
|
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
915
865
|
|
|
916
|
-
interface
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
randomKeys: boolean;
|
|
924
|
-
popClass: string;
|
|
925
|
-
className: string;
|
|
926
|
-
style?: CSSProperties;
|
|
927
|
-
onChange?: (value: string) => void;
|
|
928
|
-
onDelete?: () => void;
|
|
929
|
-
onClose: () => void;
|
|
866
|
+
interface MenuProps extends BasicComponent {
|
|
867
|
+
activeColor: string;
|
|
868
|
+
closeOnOverlayClick: boolean;
|
|
869
|
+
scrollFixed: boolean | string | number;
|
|
870
|
+
lockScroll: boolean;
|
|
871
|
+
icon: React__default.ReactNode;
|
|
872
|
+
children: React__default.ReactNode;
|
|
930
873
|
}
|
|
931
|
-
declare const
|
|
874
|
+
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
932
875
|
|
|
933
|
-
interface
|
|
934
|
-
text: string
|
|
876
|
+
interface OptionItem {
|
|
877
|
+
text: string;
|
|
935
878
|
value: string | number;
|
|
936
|
-
disabled?: string;
|
|
937
|
-
children?: PickerOption[];
|
|
938
|
-
className?: string | number;
|
|
939
|
-
}
|
|
940
|
-
interface PickerProps {
|
|
941
|
-
visible: boolean;
|
|
942
|
-
title?: string;
|
|
943
|
-
listData: (PickerOption | PickerOption[])[];
|
|
944
|
-
defaultValueData?: (number | string)[];
|
|
945
|
-
className?: '';
|
|
946
|
-
style?: React__default.CSSProperties;
|
|
947
|
-
threeDimensional?: boolean;
|
|
948
|
-
swipeDuration: number | string;
|
|
949
|
-
onConfirm?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
|
|
950
|
-
onClose?: (selectedValue: (string | number)[], selectedOptions: PickerOption[]) => void;
|
|
951
|
-
onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
|
|
952
|
-
onChange?: (index: number, value: (string | number)[], selectedOptions: PickerOption[]) => void;
|
|
953
879
|
}
|
|
954
|
-
|
|
955
|
-
|
|
880
|
+
interface MenuItemProps extends BasicComponent {
|
|
881
|
+
title: React__default.ReactNode;
|
|
882
|
+
options: OptionItem[];
|
|
883
|
+
disabled: boolean;
|
|
884
|
+
columns: number;
|
|
885
|
+
icon: React__default.ReactNode;
|
|
886
|
+
closeOnClickAway: boolean;
|
|
887
|
+
direction: string;
|
|
888
|
+
activeTitleClass: string;
|
|
889
|
+
inactiveTitleClass: string;
|
|
890
|
+
value: string | number;
|
|
891
|
+
onChange: (event: any) => void;
|
|
892
|
+
children: React__default.ReactNode;
|
|
893
|
+
}
|
|
894
|
+
declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
|
|
895
|
+
|
|
896
|
+
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
897
|
+
interface PopupProps extends OverlayProps {
|
|
898
|
+
position: string;
|
|
899
|
+
transition: string;
|
|
900
|
+
overlayStyle: React__default.CSSProperties;
|
|
901
|
+
overlayClassName: string;
|
|
902
|
+
closeable: boolean;
|
|
903
|
+
closeIconPosition: string;
|
|
904
|
+
closeIcon: React__default.ReactNode;
|
|
905
|
+
destroyOnClose: boolean;
|
|
906
|
+
portal: Teleport;
|
|
907
|
+
overlay: boolean;
|
|
908
|
+
round: boolean;
|
|
909
|
+
onOpen: () => void;
|
|
910
|
+
onClose: () => void;
|
|
911
|
+
onClickOverlay: (e: MouseEvent$1) => boolean | void;
|
|
912
|
+
onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
|
|
913
|
+
}
|
|
914
|
+
declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
915
|
+
|
|
916
|
+
interface NumberKeyboardProps extends PopupProps {
|
|
917
|
+
visible: boolean;
|
|
918
|
+
title?: ReactNode;
|
|
919
|
+
confirmText?: string;
|
|
920
|
+
type: 'default' | 'rightColumn';
|
|
921
|
+
custom: Array<string>;
|
|
922
|
+
random: boolean;
|
|
923
|
+
onChange?: (value: string) => void;
|
|
924
|
+
onDelete?: () => void;
|
|
925
|
+
onClose: () => void;
|
|
926
|
+
onConfirm?: () => void;
|
|
927
|
+
}
|
|
928
|
+
declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onClick' | 'title'>>;
|
|
929
|
+
|
|
930
|
+
interface PickerOption {
|
|
931
|
+
text: string | number;
|
|
932
|
+
value: string | number;
|
|
933
|
+
disabled?: boolean;
|
|
934
|
+
children?: PickerOption[];
|
|
935
|
+
className?: string | number;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
interface PickerProps extends BasicComponent {
|
|
939
|
+
visible: boolean;
|
|
940
|
+
title?: string;
|
|
941
|
+
options: (PickerOption | PickerOption[])[];
|
|
942
|
+
value?: (number | string)[];
|
|
943
|
+
defaultValue?: (number | string)[];
|
|
944
|
+
threeDimensional?: boolean;
|
|
945
|
+
duration: number | string;
|
|
946
|
+
onConfirm?: (selectedOptions: PickerOption[], selectedValue: (string | number)[]) => void;
|
|
947
|
+
onClose?: (selectedOptions: PickerOption[], selectedValue: (string | number)[]) => void;
|
|
948
|
+
afterClose?: (selectedOptions: PickerOption[], selectedValue: (string | number)[], pickerRef: RefObject<HTMLDivElement>) => void;
|
|
949
|
+
onChange?: (selectedOptions: PickerOption[], selectedValue: (string | number)[], columnIndex: number) => void;
|
|
950
|
+
}
|
|
951
|
+
declare const Picker: React__default.ForwardRefExoticComponent<Partial<PickerProps> & React__default.RefAttributes<unknown>>;
|
|
952
|
+
|
|
956
953
|
type Position$1 = 'left' | 'right';
|
|
957
|
-
type Direction = 'horizontal' | 'vertical';
|
|
954
|
+
type Direction$1 = 'horizontal' | 'vertical';
|
|
958
955
|
interface RadioGroupProps {
|
|
959
|
-
value
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
956
|
+
value?: string | number;
|
|
957
|
+
defaultValue?: string | number;
|
|
958
|
+
labelPosition: Position$1;
|
|
959
|
+
direction: Direction$1;
|
|
960
|
+
disabled?: boolean;
|
|
963
961
|
options: RadioGroupOptionType[];
|
|
962
|
+
onChange: (value: string | number) => void;
|
|
964
963
|
}
|
|
965
964
|
declare const RadioGroup: React__default.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
|
|
966
965
|
|
|
967
966
|
type Shape = 'button' | 'round';
|
|
968
967
|
type Position = 'right' | 'left';
|
|
969
968
|
interface RadioProps extends BasicComponent {
|
|
970
|
-
className: string;
|
|
971
|
-
style: React__default.CSSProperties;
|
|
972
969
|
disabled: boolean;
|
|
973
970
|
checked: boolean;
|
|
971
|
+
defaultChecked: boolean;
|
|
974
972
|
shape: Shape;
|
|
975
|
-
|
|
976
|
-
value: string | number | boolean;
|
|
973
|
+
labelPosition: Position;
|
|
977
974
|
icon: React__default.ReactNode;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
onChange:
|
|
975
|
+
activeIcon: React__default.ReactNode;
|
|
976
|
+
value: string | number;
|
|
977
|
+
onChange: (checked: boolean) => void;
|
|
981
978
|
}
|
|
982
|
-
declare const Radio: FunctionComponent<Partial<RadioProps> & React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
983
|
-
|
|
979
|
+
declare const Radio: FunctionComponent<Partial<RadioProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
|
|
980
|
+
Group: typeof RadioGroup;
|
|
984
981
|
};
|
|
985
982
|
|
|
986
|
-
type
|
|
987
|
-
interface RangeProps {
|
|
988
|
-
|
|
989
|
-
|
|
983
|
+
type RangeValue = number | number[];
|
|
984
|
+
interface RangeProps extends BasicComponent {
|
|
985
|
+
value: RangeValue;
|
|
986
|
+
defaultValue: RangeValue;
|
|
990
987
|
range: boolean;
|
|
991
988
|
disabled: boolean;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
max: number | string;
|
|
999
|
-
minDesc: number | string;
|
|
1000
|
-
maxDesc: number | string;
|
|
1001
|
-
curValueDesc: number | string;
|
|
1002
|
-
step: number | string;
|
|
1003
|
-
modelValue: SliderValue;
|
|
1004
|
-
button: React__default.ReactNode;
|
|
989
|
+
min: number;
|
|
990
|
+
max: number;
|
|
991
|
+
step: number;
|
|
992
|
+
minDescription: ReactNode;
|
|
993
|
+
maxDescription: ReactNode;
|
|
994
|
+
button: ReactNode;
|
|
1005
995
|
vertical: boolean;
|
|
1006
996
|
marks: Record<string, unknown>;
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
onDragEnd?: () => void;
|
|
997
|
+
currentDescription: ((value: RangeValue) => ReactNode) | null;
|
|
998
|
+
onChange: (value: RangeValue) => void;
|
|
999
|
+
onStart: () => void;
|
|
1000
|
+
onEnd: (value: RangeValue) => void;
|
|
1012
1001
|
}
|
|
1013
|
-
declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
1002
|
+
declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange' | 'defaultValue'>>;
|
|
1014
1003
|
|
|
1015
1004
|
interface RateProps extends BasicComponent {
|
|
1016
1005
|
count: number;
|
|
@@ -1113,23 +1102,44 @@ interface ShortPasswordProps extends BasicComponent {
|
|
|
1113
1102
|
}
|
|
1114
1103
|
declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
1115
1104
|
|
|
1116
|
-
interface
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1105
|
+
interface SignatureProps {
|
|
1106
|
+
type: string;
|
|
1107
|
+
lineWidth: number;
|
|
1108
|
+
strokeStyle: string;
|
|
1109
|
+
unSupportTpl: string;
|
|
1110
|
+
className: string;
|
|
1111
|
+
confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
1112
|
+
clear?: () => void;
|
|
1113
|
+
onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
1114
|
+
onClear?: () => void;
|
|
1115
|
+
}
|
|
1116
|
+
declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1117
|
+
|
|
1118
|
+
interface SwitchProps extends BasicComponent {
|
|
1119
|
+
checked: boolean;
|
|
1120
|
+
defaultChecked: boolean;
|
|
1121
|
+
disabled: boolean;
|
|
1122
|
+
activeText: string;
|
|
1123
|
+
inactiveText: string;
|
|
1124
|
+
onChange: (val: boolean, event: React__default.MouseEvent) => void;
|
|
1125
|
+
}
|
|
1126
|
+
declare const Switch: FunctionComponent<Partial<SwitchProps>>;
|
|
1127
|
+
|
|
1128
|
+
interface TextAreaProps extends BasicComponent {
|
|
1129
|
+
value: string;
|
|
1130
|
+
defaultValue: string;
|
|
1131
|
+
showCount: boolean;
|
|
1132
|
+
maxLength: number;
|
|
1133
|
+
rows: number;
|
|
1134
|
+
placeholder: string;
|
|
1135
|
+
readOnly: boolean;
|
|
1136
|
+
disabled: boolean;
|
|
1137
|
+
autoSize: boolean;
|
|
1138
|
+
onChange: (value: string) => void;
|
|
1139
|
+
onBlur: (event: Event) => void;
|
|
1140
|
+
onFocus: (event: Event) => void;
|
|
1131
1141
|
}
|
|
1132
|
-
declare const TextArea: FunctionComponent<Partial<TextAreaProps> & Omit<React__default.HTMLAttributes<
|
|
1142
|
+
declare const TextArea: FunctionComponent<Partial<TextAreaProps> & Omit<React__default.HTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onBlur' | 'onFocus'>>;
|
|
1133
1143
|
|
|
1134
1144
|
declare class UploadOptions {
|
|
1135
1145
|
url: string;
|
|
@@ -1156,13 +1166,14 @@ type FileType<T> = {
|
|
|
1156
1166
|
type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
1157
1167
|
interface UploaderProps extends BasicComponent {
|
|
1158
1168
|
url: string;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1169
|
+
maxCount: string | number;
|
|
1170
|
+
maxFileSize: number;
|
|
1171
|
+
defaultValue?: FileType<React__default.ReactNode>[];
|
|
1172
|
+
value?: FileType<string>[];
|
|
1173
|
+
previewType: 'picture' | 'list';
|
|
1174
|
+
imageFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1175
|
+
uploadIcon?: React__default.ReactNode;
|
|
1176
|
+
uploadLabel?: React__default.ReactNode;
|
|
1166
1177
|
name: string;
|
|
1167
1178
|
accept: string;
|
|
1168
1179
|
disabled: boolean;
|
|
@@ -1175,14 +1186,14 @@ interface UploaderProps extends BasicComponent {
|
|
|
1175
1186
|
headers: any;
|
|
1176
1187
|
withCredentials: boolean;
|
|
1177
1188
|
clearInput: boolean;
|
|
1178
|
-
|
|
1179
|
-
|
|
1189
|
+
preview: boolean;
|
|
1190
|
+
deletable: boolean;
|
|
1180
1191
|
capture: boolean;
|
|
1181
1192
|
className: string;
|
|
1182
|
-
|
|
1193
|
+
previewUrl?: string;
|
|
1183
1194
|
style: React__default.CSSProperties;
|
|
1184
1195
|
onStart?: (option: UploadOptions) => void;
|
|
1185
|
-
|
|
1196
|
+
onDelete?: (file: FileItem, fileList: FileItem[]) => void;
|
|
1186
1197
|
onSuccess?: (param: {
|
|
1187
1198
|
responseText: XMLHttpRequest['responseText'];
|
|
1188
1199
|
option: UploadOptions;
|
|
@@ -1204,9 +1215,9 @@ interface UploaderProps extends BasicComponent {
|
|
|
1204
1215
|
fileList: FileItem[];
|
|
1205
1216
|
event: React__default.ChangeEvent<HTMLInputElement>;
|
|
1206
1217
|
}) => void;
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1218
|
+
beforeUpload?: (file: File[]) => Promise<File[] | boolean>;
|
|
1219
|
+
beforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1220
|
+
beforeDelete?: (file: FileItem, files: FileItem[]) => boolean;
|
|
1210
1221
|
onFileItemClick?: (file: FileItem) => void;
|
|
1211
1222
|
}
|
|
1212
1223
|
declare class FileItem {
|
|
@@ -1244,43 +1255,30 @@ interface ActionSheetProps {
|
|
|
1244
1255
|
}
|
|
1245
1256
|
declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1246
1257
|
|
|
1247
|
-
interface BackTopProps extends BasicComponent {
|
|
1248
|
-
target: string;
|
|
1249
|
-
threshold: number;
|
|
1250
|
-
zIndex: number;
|
|
1251
|
-
duration: number;
|
|
1252
|
-
onClick?: (event: MouseEvent) => void;
|
|
1253
|
-
}
|
|
1254
|
-
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1255
|
-
|
|
1256
1258
|
type DialogConfigType = {
|
|
1257
1259
|
prefixCls?: string;
|
|
1258
1260
|
simple?: boolean;
|
|
1259
1261
|
};
|
|
1260
1262
|
interface BasicDialogProps {
|
|
1261
|
-
className?: string;
|
|
1262
|
-
style?: CSSProperties;
|
|
1263
1263
|
visible?: boolean;
|
|
1264
1264
|
title?: ReactNode;
|
|
1265
1265
|
content?: ReactNode;
|
|
1266
1266
|
footer?: ReactNode;
|
|
1267
1267
|
confirmText?: ReactNode;
|
|
1268
1268
|
cancelText?: ReactNode;
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
closeOnClickOverlay?: boolean;
|
|
1275
|
-
cancelAutoClose?: boolean;
|
|
1276
|
-
textAlign?: string;
|
|
1269
|
+
overlay?: boolean;
|
|
1270
|
+
hideConfirmButton?: boolean;
|
|
1271
|
+
hideCancelButton?: boolean;
|
|
1272
|
+
disableConfirmButton?: boolean;
|
|
1273
|
+
closeOnOverlayClick?: boolean;
|
|
1277
1274
|
footerDirection?: string;
|
|
1278
1275
|
lockScroll?: boolean;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
onClickSelf?: () => void;
|
|
1276
|
+
beforeClose?: () => boolean;
|
|
1277
|
+
beforeCancel?: () => boolean;
|
|
1278
|
+
onClose?: () => void;
|
|
1283
1279
|
onConfirm?: (e?: MouseEvent) => Promise<() => void> | void;
|
|
1280
|
+
onCancel?: () => void;
|
|
1281
|
+
onClick?: () => void;
|
|
1284
1282
|
}
|
|
1285
1283
|
type DialogReturnProps = {
|
|
1286
1284
|
update: (newConfig: ConfirmProps) => void;
|
|
@@ -1302,7 +1300,7 @@ interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Ba
|
|
|
1302
1300
|
type DialogProps = BasicDialogProps;
|
|
1303
1301
|
declare const Dialog: DialogComponent;
|
|
1304
1302
|
|
|
1305
|
-
interface DragProps {
|
|
1303
|
+
interface DragProps extends BasicComponent {
|
|
1306
1304
|
attract: boolean;
|
|
1307
1305
|
direction: 'x' | 'y' | 'lock' | undefined;
|
|
1308
1306
|
boundary: {
|
|
@@ -1311,11 +1309,17 @@ interface DragProps {
|
|
|
1311
1309
|
right: number;
|
|
1312
1310
|
bottom: number;
|
|
1313
1311
|
};
|
|
1314
|
-
className: string;
|
|
1315
|
-
style: React__default.CSSProperties;
|
|
1316
1312
|
}
|
|
1317
1313
|
declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1318
1314
|
|
|
1315
|
+
interface EmptyProps extends BasicComponent {
|
|
1316
|
+
image?: ReactNode;
|
|
1317
|
+
imageSize: number | string;
|
|
1318
|
+
description: ReactNode;
|
|
1319
|
+
status: 'empty' | 'error' | 'network';
|
|
1320
|
+
}
|
|
1321
|
+
declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1322
|
+
|
|
1319
1323
|
interface InfiniteloadingProps extends BasicComponent {
|
|
1320
1324
|
hasMore: boolean;
|
|
1321
1325
|
threshold: number;
|
|
@@ -1336,31 +1340,67 @@ interface InfiniteloadingProps extends BasicComponent {
|
|
|
1336
1340
|
}
|
|
1337
1341
|
declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1338
1342
|
|
|
1339
|
-
interface
|
|
1343
|
+
interface NoticeBarProps extends BasicComponent {
|
|
1344
|
+
direction: string;
|
|
1345
|
+
list: any;
|
|
1346
|
+
duration: number;
|
|
1347
|
+
height: number;
|
|
1348
|
+
content: string;
|
|
1349
|
+
closeable: boolean;
|
|
1350
|
+
wrap: boolean;
|
|
1351
|
+
leftIcon: ReactNode;
|
|
1352
|
+
rightIcon: ReactNode;
|
|
1353
|
+
delay: string | number;
|
|
1354
|
+
scrollable: boolean | null;
|
|
1355
|
+
speed: number;
|
|
1356
|
+
close?: (event: any) => void;
|
|
1357
|
+
click?: (event: any) => void;
|
|
1358
|
+
onClose?: (event: any) => void;
|
|
1359
|
+
onClick?: (event: any) => void;
|
|
1360
|
+
onClickItem?: (event: any, value: any) => void;
|
|
1361
|
+
}
|
|
1362
|
+
declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1363
|
+
|
|
1364
|
+
interface NotifyProps extends BasicComponent {
|
|
1340
1365
|
id: string;
|
|
1341
|
-
color?: string;
|
|
1342
|
-
msg: string;
|
|
1343
1366
|
duration: number;
|
|
1344
|
-
className?: string;
|
|
1345
|
-
background?: string;
|
|
1346
1367
|
type: string;
|
|
1347
1368
|
position: string;
|
|
1348
1369
|
onClick: () => void;
|
|
1349
|
-
|
|
1370
|
+
onClose: () => void;
|
|
1350
1371
|
}
|
|
1351
1372
|
declare const _default$1: {
|
|
1352
|
-
text(
|
|
1353
|
-
success(
|
|
1354
|
-
primary(
|
|
1355
|
-
danger(
|
|
1356
|
-
warn(
|
|
1373
|
+
text(message: string | React$1.ReactNode, option?: {}): void;
|
|
1374
|
+
success(message: string | React$1.ReactNode, option?: {}): void;
|
|
1375
|
+
primary(message: string | React$1.ReactNode, option?: {}): void;
|
|
1376
|
+
danger(message: string | React$1.ReactNode, option?: {}): void;
|
|
1377
|
+
warn(message: string | React$1.ReactNode, option?: {}): void;
|
|
1357
1378
|
hide(): void;
|
|
1358
1379
|
};
|
|
1359
1380
|
|
|
1360
|
-
type
|
|
1361
|
-
|
|
1381
|
+
type PopoverTheme = 'light' | 'dark';
|
|
1382
|
+
type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1383
|
+
interface List {
|
|
1384
|
+
name: string;
|
|
1385
|
+
icon?: React__default.ReactNode;
|
|
1386
|
+
disabled?: boolean;
|
|
1387
|
+
}
|
|
1388
|
+
interface PopoverProps extends BasicComponent {
|
|
1389
|
+
list: List[];
|
|
1390
|
+
theme: PopoverTheme;
|
|
1391
|
+
location: PopoverLocation | string;
|
|
1392
|
+
visible: boolean;
|
|
1393
|
+
offset: string | number;
|
|
1362
1394
|
className: string;
|
|
1363
|
-
style
|
|
1395
|
+
style?: CSSProperties;
|
|
1396
|
+
children?: React__default.ReactNode;
|
|
1397
|
+
onClick: (e: React__default.MouseEvent) => void;
|
|
1398
|
+
onChoose: (item: List, index: number) => void;
|
|
1399
|
+
}
|
|
1400
|
+
declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1401
|
+
|
|
1402
|
+
type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
1403
|
+
interface PullToRefreshProps extends BasicComponent {
|
|
1364
1404
|
onRefresh: () => Promise<any>;
|
|
1365
1405
|
pullingText: ReactNode;
|
|
1366
1406
|
canReleaseText: ReactNode;
|
|
@@ -1371,12 +1411,28 @@ interface PullToRefreshProps {
|
|
|
1371
1411
|
threshold: number;
|
|
1372
1412
|
disabled: boolean;
|
|
1373
1413
|
renderText: (status: PullStatus) => ReactNode;
|
|
1374
|
-
children: React__default.ReactNode;
|
|
1375
1414
|
}
|
|
1376
1415
|
declare const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>>;
|
|
1377
1416
|
|
|
1417
|
+
type avatarShape = 'round' | 'square';
|
|
1418
|
+
interface SkeletonProps {
|
|
1419
|
+
width: string;
|
|
1420
|
+
height: string;
|
|
1421
|
+
animated: boolean;
|
|
1422
|
+
row: number;
|
|
1423
|
+
title: boolean;
|
|
1424
|
+
avatar: boolean;
|
|
1425
|
+
className?: string;
|
|
1426
|
+
style?: React__default.CSSProperties;
|
|
1427
|
+
avatarSize: string;
|
|
1428
|
+
round: boolean;
|
|
1429
|
+
loading: boolean;
|
|
1430
|
+
avatarShape: avatarShape;
|
|
1431
|
+
children?: React__default.ReactNode;
|
|
1432
|
+
}
|
|
1433
|
+
declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
|
|
1434
|
+
|
|
1378
1435
|
type SwipeSide = 'left' | 'right';
|
|
1379
|
-
type SwipePosition = SwipeSide | 'cell' | 'outside';
|
|
1380
1436
|
interface SwipeInstance {
|
|
1381
1437
|
open: (side: SwipeSide) => void;
|
|
1382
1438
|
close: () => void;
|
|
@@ -1388,10 +1444,6 @@ interface SwipeProps {
|
|
|
1388
1444
|
style: React__default.CSSProperties;
|
|
1389
1445
|
/** 标识符,可以在事件参数中获取到 */
|
|
1390
1446
|
name?: string | number;
|
|
1391
|
-
/** 指定左侧滑动区域宽度,单位为px */
|
|
1392
|
-
leftWidth?: string | number;
|
|
1393
|
-
/** 指定右侧滑动区域宽度,单位为 px */
|
|
1394
|
-
rightWidth?: string | number;
|
|
1395
1447
|
/** 左侧滑动区域的内容 */
|
|
1396
1448
|
leftAction?: React__default.ReactNode;
|
|
1397
1449
|
/** 右侧滑动区域的内容 */
|
|
@@ -1408,10 +1460,10 @@ interface SwipeProps {
|
|
|
1408
1460
|
/** 关闭时触发 */
|
|
1409
1461
|
onClose?: ({ name, position, }: {
|
|
1410
1462
|
name: string | number;
|
|
1411
|
-
position:
|
|
1463
|
+
position: SwipeSide;
|
|
1412
1464
|
}) => void;
|
|
1413
1465
|
/** 点击时触发 */
|
|
1414
|
-
onActionClick?: (event: Event, position:
|
|
1466
|
+
onActionClick?: (event: Event, position: SwipeSide) => void;
|
|
1415
1467
|
onTouchStart?: (event: Event) => void;
|
|
1416
1468
|
onTouchEnd?: (event: Event) => void;
|
|
1417
1469
|
onTouchMove?: (event: Event) => void;
|
|
@@ -1419,20 +1471,6 @@ interface SwipeProps {
|
|
|
1419
1471
|
}
|
|
1420
1472
|
declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React__default.RefAttributes<SwipeInstance>>;
|
|
1421
1473
|
|
|
1422
|
-
interface SwitchProps extends BasicComponent {
|
|
1423
|
-
isAsync: boolean;
|
|
1424
|
-
checked: boolean;
|
|
1425
|
-
disable: boolean;
|
|
1426
|
-
activeColor: string;
|
|
1427
|
-
inactiveColor: string;
|
|
1428
|
-
activeText: string;
|
|
1429
|
-
inactiveText: string;
|
|
1430
|
-
className: string;
|
|
1431
|
-
style: React__default.CSSProperties;
|
|
1432
|
-
onChange: (val: boolean, event: React__default.MouseEvent) => void;
|
|
1433
|
-
}
|
|
1434
|
-
declare const Switch: FunctionComponent<Partial<SwitchProps>>;
|
|
1435
|
-
|
|
1436
1474
|
interface ToastProps {
|
|
1437
1475
|
id?: string;
|
|
1438
1476
|
msg: string;
|
|
@@ -1467,12 +1505,10 @@ declare const _default: {
|
|
|
1467
1505
|
type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
|
|
1468
1506
|
type AnimateAction = 'initial' | 'click';
|
|
1469
1507
|
|
|
1470
|
-
interface AnimateProps {
|
|
1508
|
+
interface AnimateProps extends BasicComponent {
|
|
1471
1509
|
type: AnimateType;
|
|
1472
1510
|
action: AnimateAction;
|
|
1473
1511
|
loop: boolean;
|
|
1474
|
-
className: string;
|
|
1475
|
-
style: React__default.CSSProperties;
|
|
1476
1512
|
onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1477
1513
|
}
|
|
1478
1514
|
declare const Animate: FunctionComponent<Partial<AnimateProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1499,18 +1535,16 @@ declare class AnimatingNumbers extends Component<AnimatingNumbersProps, Animatin
|
|
|
1499
1535
|
}
|
|
1500
1536
|
|
|
1501
1537
|
interface AudioProps extends BasicComponent {
|
|
1502
|
-
|
|
1503
|
-
style: CSSProperties;
|
|
1504
|
-
url: string;
|
|
1538
|
+
src: string;
|
|
1505
1539
|
muted: boolean;
|
|
1506
|
-
|
|
1540
|
+
autoPlay: boolean;
|
|
1507
1541
|
loop: boolean;
|
|
1508
1542
|
preload: string;
|
|
1509
1543
|
type: string;
|
|
1510
|
-
|
|
1544
|
+
onBack: (e: HTMLAudioElement) => void;
|
|
1511
1545
|
onForward: (e: HTMLAudioElement) => void;
|
|
1512
1546
|
onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1513
|
-
|
|
1547
|
+
onEnd: (e: HTMLAudioElement) => void;
|
|
1514
1548
|
onMute: (e: HTMLAudioElement) => void;
|
|
1515
1549
|
onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1516
1550
|
}
|
|
@@ -1519,59 +1553,40 @@ declare const Audio: FunctionComponent<Partial<AudioProps> & React__default.HTML
|
|
|
1519
1553
|
interface AvatarProps extends BasicComponent {
|
|
1520
1554
|
size: string;
|
|
1521
1555
|
icon: React__default.ReactNode;
|
|
1556
|
+
fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1522
1557
|
shape: AvatarShape;
|
|
1523
|
-
|
|
1558
|
+
background: string;
|
|
1524
1559
|
color: string;
|
|
1525
|
-
|
|
1526
|
-
url: string;
|
|
1527
|
-
className: string;
|
|
1560
|
+
src: string;
|
|
1528
1561
|
alt: string;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
onActiveAvatar: (e: MouseEvent) => void;
|
|
1532
|
-
onError: (e: any) => void;
|
|
1562
|
+
onClick: (e: MouseEvent) => void;
|
|
1563
|
+
onError: () => void;
|
|
1533
1564
|
}
|
|
1534
1565
|
type AvatarShape = 'round' | 'square';
|
|
1535
|
-
declare const Avatar: FunctionComponent<Partial<AvatarProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1566
|
+
declare const Avatar: FunctionComponent<Partial<AvatarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1536
1567
|
|
|
1537
|
-
interface AvatarGroupProps {
|
|
1568
|
+
interface AvatarGroupProps extends BasicComponent {
|
|
1538
1569
|
maxContent: string;
|
|
1539
|
-
|
|
1540
|
-
|
|
1570
|
+
max: string | number;
|
|
1571
|
+
maxBackground: string;
|
|
1541
1572
|
maxColor: string;
|
|
1542
|
-
size:
|
|
1543
|
-
shape:
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
className: string;
|
|
1547
|
-
style: React__default.CSSProperties;
|
|
1573
|
+
size: 'large' | 'normal' | 'small';
|
|
1574
|
+
shape: 'round' | 'square';
|
|
1575
|
+
gap: string;
|
|
1576
|
+
level: 'left' | 'right';
|
|
1548
1577
|
}
|
|
1549
1578
|
declare const AvatarGroup: FunctionComponent<Partial<AvatarGroupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1550
1579
|
|
|
1551
|
-
interface
|
|
1552
|
-
|
|
1553
|
-
dot: boolean;
|
|
1554
|
-
max: number;
|
|
1555
|
-
top: string;
|
|
1556
|
-
right: string;
|
|
1557
|
-
zIndex: string;
|
|
1558
|
-
color: string;
|
|
1559
|
-
icon: ReactNode;
|
|
1560
|
-
children?: ReactNode;
|
|
1561
|
-
}
|
|
1562
|
-
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
1563
|
-
|
|
1564
|
-
interface CircleProgressProps {
|
|
1565
|
-
progress: string | number;
|
|
1580
|
+
interface CircleProgressProps extends BasicComponent {
|
|
1581
|
+
percent: string | number;
|
|
1566
1582
|
strokeWidth?: string | number;
|
|
1567
1583
|
radius?: number | string;
|
|
1568
|
-
strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit'
|
|
1569
|
-
|
|
1570
|
-
|
|
1584
|
+
strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
|
|
1585
|
+
color?: object | string;
|
|
1586
|
+
background?: string;
|
|
1571
1587
|
clockwise?: boolean;
|
|
1572
|
-
className?: string;
|
|
1573
1588
|
}
|
|
1574
|
-
declare const CircleProgress: FunctionComponent<CircleProgressProps & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1589
|
+
declare const CircleProgress: FunctionComponent<CircleProgressProps & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'color'>>;
|
|
1575
1590
|
|
|
1576
1591
|
interface CollapseProps {
|
|
1577
1592
|
className: string;
|
|
@@ -1616,9 +1631,10 @@ interface CountDownProps {
|
|
|
1616
1631
|
}
|
|
1617
1632
|
declare const CountDown: React__default.ForwardRefExoticComponent<Partial<CountDownProps> & React__default.RefAttributes<unknown>>;
|
|
1618
1633
|
|
|
1619
|
-
|
|
1634
|
+
type Direction = 'start' | 'end' | 'middle';
|
|
1635
|
+
interface EllipsisProps extends BasicComponent {
|
|
1620
1636
|
content: string;
|
|
1621
|
-
direction:
|
|
1637
|
+
direction: Direction;
|
|
1622
1638
|
rows: number | string;
|
|
1623
1639
|
expandText: string;
|
|
1624
1640
|
collapseText: string;
|
|
@@ -1629,16 +1645,7 @@ interface EllipsisProps {
|
|
|
1629
1645
|
}
|
|
1630
1646
|
declare const Ellipsis: FunctionComponent<Partial<EllipsisProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
1631
1647
|
|
|
1632
|
-
interface
|
|
1633
|
-
image: ReactNode;
|
|
1634
|
-
imageSize: number | string;
|
|
1635
|
-
description: ReactNode;
|
|
1636
|
-
className: string;
|
|
1637
|
-
}
|
|
1638
|
-
declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1639
|
-
|
|
1640
|
-
interface ImagePreviewProps {
|
|
1641
|
-
className?: string;
|
|
1648
|
+
interface ImagePreviewProps extends BasicComponent {
|
|
1642
1649
|
images: Array<{
|
|
1643
1650
|
src: string;
|
|
1644
1651
|
}>;
|
|
@@ -1652,138 +1659,98 @@ interface ImagePreviewProps {
|
|
|
1652
1659
|
controls: boolean;
|
|
1653
1660
|
};
|
|
1654
1661
|
}>;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
+
visible: boolean;
|
|
1663
|
+
autoPlay: number | string;
|
|
1664
|
+
value?: number;
|
|
1665
|
+
defaultValue: number;
|
|
1666
|
+
closeOnContentClick: boolean;
|
|
1667
|
+
indicator: boolean;
|
|
1668
|
+
indicatorColor: string;
|
|
1669
|
+
onChange: (value: number) => void;
|
|
1662
1670
|
onClose: () => void;
|
|
1663
1671
|
}
|
|
1664
1672
|
declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
|
|
1665
1673
|
|
|
1666
|
-
interface
|
|
1674
|
+
interface IndicatorProps {
|
|
1675
|
+
total: number;
|
|
1676
|
+
current: number;
|
|
1667
1677
|
direction: string;
|
|
1668
|
-
className?: string;
|
|
1669
|
-
style?: CSSProperties;
|
|
1670
|
-
list: any;
|
|
1671
|
-
standTime: number;
|
|
1672
|
-
complexAm: boolean;
|
|
1673
|
-
height: number;
|
|
1674
|
-
text: string;
|
|
1675
|
-
closeMode: boolean;
|
|
1676
|
-
wrapable: boolean;
|
|
1677
|
-
leftIcon: ReactNode;
|
|
1678
|
-
rightIcon: ReactNode;
|
|
1679
|
-
color: string;
|
|
1680
|
-
background: string;
|
|
1681
|
-
delay: string | number;
|
|
1682
|
-
scrollable: boolean | null;
|
|
1683
|
-
speed: number;
|
|
1684
|
-
close?: (event: any) => void;
|
|
1685
|
-
click?: (event: any) => void;
|
|
1686
|
-
onClose?: (event: any) => void;
|
|
1687
|
-
onClick?: (event: any) => void;
|
|
1688
|
-
onClickItem?: (event: any, value: any) => void;
|
|
1689
1678
|
}
|
|
1690
|
-
declare const
|
|
1679
|
+
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1691
1680
|
|
|
1692
|
-
type
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1681
|
+
type Data = any;
|
|
1682
|
+
interface BasicVirtualListProps {
|
|
1683
|
+
className?: string;
|
|
1684
|
+
style?: React.CSSProperties;
|
|
1685
|
+
sourceData: Array<Data>;
|
|
1686
|
+
containerSize?: number;
|
|
1687
|
+
ItemRender?: React.FC<any>;
|
|
1688
|
+
itemSize?: number;
|
|
1689
|
+
itemEqualSize?: boolean;
|
|
1690
|
+
horizontal?: boolean;
|
|
1691
|
+
overscan?: number;
|
|
1692
|
+
handleScroll?: (...args: any[]) => any;
|
|
1693
|
+
onScroll?: (...args: any[]) => any;
|
|
1694
|
+
key?: string;
|
|
1695
|
+
locale?: {
|
|
1696
|
+
[key in string]: string;
|
|
1697
|
+
};
|
|
1698
1698
|
}
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1699
|
+
|
|
1700
|
+
type VirtualListProps = BasicVirtualListProps;
|
|
1701
|
+
declare const VirtualList: FunctionComponent<VirtualListProps>;
|
|
1702
|
+
|
|
1703
|
+
interface PaginationProps extends BasicComponent {
|
|
1704
|
+
value: number;
|
|
1705
|
+
defaultValue: number;
|
|
1706
|
+
mode: 'multi' | 'simple';
|
|
1707
|
+
prev: ReactNode;
|
|
1708
|
+
next: ReactNode;
|
|
1709
|
+
total: number;
|
|
1710
|
+
pageSize: number;
|
|
1711
|
+
itemSize: number;
|
|
1712
|
+
ellipse: boolean;
|
|
1713
|
+
itemRender: (page: any) => ReactNode;
|
|
1714
|
+
onChange: (currPage: number) => void;
|
|
1710
1715
|
}
|
|
1711
|
-
declare const
|
|
1716
|
+
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
1712
1717
|
|
|
1713
|
-
interface PriceProps {
|
|
1718
|
+
interface PriceProps extends BasicComponent {
|
|
1714
1719
|
price: number | string;
|
|
1715
|
-
needSymbol: boolean;
|
|
1716
1720
|
symbol: string;
|
|
1717
|
-
|
|
1721
|
+
digits: number;
|
|
1718
1722
|
thousands: boolean;
|
|
1719
1723
|
position: string;
|
|
1720
1724
|
size: string;
|
|
1721
|
-
|
|
1722
|
-
style: React__default.CSSProperties;
|
|
1725
|
+
line: boolean;
|
|
1723
1726
|
}
|
|
1724
1727
|
declare const Price: FunctionComponent<Partial<PriceProps>>;
|
|
1725
1728
|
|
|
1726
|
-
type ProgressSize = 'small' | 'base' | 'large';
|
|
1727
|
-
type TextType = 'icon' | 'text';
|
|
1728
1729
|
interface ProgressProps extends BasicComponent {
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
percentage: number;
|
|
1733
|
-
fillColor: string;
|
|
1734
|
-
strokeColor: string;
|
|
1730
|
+
percent: number;
|
|
1731
|
+
background: string;
|
|
1732
|
+
color: string;
|
|
1735
1733
|
strokeWidth: string;
|
|
1736
|
-
size: ProgressSize;
|
|
1737
|
-
textColor: string;
|
|
1738
|
-
textWidth: string;
|
|
1739
1734
|
showText: boolean;
|
|
1740
|
-
textInside: boolean;
|
|
1741
|
-
textBackground: string;
|
|
1742
|
-
textType: TextType;
|
|
1743
|
-
status: boolean;
|
|
1744
|
-
icon: ReactNode;
|
|
1745
|
-
children: ReactNode;
|
|
1746
|
-
}
|
|
1747
|
-
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1748
|
-
|
|
1749
|
-
type avatarShape = 'round' | 'square';
|
|
1750
|
-
interface SkeletonProps {
|
|
1751
|
-
width: string;
|
|
1752
|
-
height: string;
|
|
1753
1735
|
animated: boolean;
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
avatar: boolean;
|
|
1757
|
-
className?: string;
|
|
1758
|
-
style?: React__default.CSSProperties;
|
|
1759
|
-
avatarSize: string;
|
|
1760
|
-
round: boolean;
|
|
1761
|
-
loading: boolean;
|
|
1762
|
-
avatarShape: avatarShape;
|
|
1763
|
-
children?: React__default.ReactNode;
|
|
1736
|
+
lazy: boolean;
|
|
1737
|
+
delay: number;
|
|
1764
1738
|
}
|
|
1765
|
-
declare const
|
|
1739
|
+
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1766
1740
|
|
|
1767
1741
|
interface StepProps extends BasicComponent {
|
|
1768
|
-
title:
|
|
1769
|
-
|
|
1770
|
-
|
|
1742
|
+
title: ReactNode;
|
|
1743
|
+
description: ReactNode;
|
|
1744
|
+
value: number;
|
|
1771
1745
|
icon: ReactNode;
|
|
1772
|
-
iconColor: string;
|
|
1773
|
-
className: string;
|
|
1774
|
-
style: React__default.CSSProperties;
|
|
1775
|
-
renderContent: () => React__default.ReactNode;
|
|
1776
1746
|
}
|
|
1777
|
-
declare const Step: FunctionComponent<Partial<StepProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1747
|
+
declare const Step: FunctionComponent<Partial<StepProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
1778
1748
|
|
|
1779
|
-
interface StepsProps {
|
|
1780
|
-
|
|
1749
|
+
interface StepsProps extends BasicComponent {
|
|
1750
|
+
value: number;
|
|
1781
1751
|
direction: string;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
style: React__default.CSSProperties;
|
|
1785
|
-
clickStep: (index: number) => void;
|
|
1786
|
-
onClickStep: (index: number) => void;
|
|
1752
|
+
dot: boolean;
|
|
1753
|
+
onStepClick: (index: number) => void;
|
|
1787
1754
|
}
|
|
1788
1755
|
declare const Steps: FunctionComponent<Partial<StepsProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1789
1756
|
|
|
@@ -1792,25 +1759,20 @@ type SwiperRef = {
|
|
|
1792
1759
|
next: () => void;
|
|
1793
1760
|
prev: () => void;
|
|
1794
1761
|
};
|
|
1795
|
-
interface SwiperProps {
|
|
1762
|
+
interface SwiperProps extends BasicComponent {
|
|
1796
1763
|
width: number | string;
|
|
1797
1764
|
height: number | string;
|
|
1798
1765
|
duration: number | string;
|
|
1799
|
-
|
|
1766
|
+
defaultValue: number | string;
|
|
1800
1767
|
autoPlay: number | string;
|
|
1801
1768
|
direction: 'horizontal' | 'vertical';
|
|
1802
|
-
|
|
1803
|
-
paginationBgColor: string;
|
|
1804
|
-
paginationVisible: boolean;
|
|
1769
|
+
indicator: ReactNode;
|
|
1805
1770
|
loop: boolean;
|
|
1806
1771
|
touchable: boolean;
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
style?: React__default.CSSProperties;
|
|
1812
|
-
pageContent?: React__default.ReactNode;
|
|
1813
|
-
onChange?: (currPage: number) => void;
|
|
1772
|
+
preventDefault: boolean;
|
|
1773
|
+
stopPropagation: boolean;
|
|
1774
|
+
center: boolean;
|
|
1775
|
+
onChange?: (current: number) => void;
|
|
1814
1776
|
}
|
|
1815
1777
|
declare const Swiper: React__default.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<SwiperRef>>;
|
|
1816
1778
|
|
|
@@ -1821,8 +1783,6 @@ interface SwiperItemProps {
|
|
|
1821
1783
|
declare const SwiperItem: React__default.ForwardRefExoticComponent<Partial<SwiperItemProps> & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1822
1784
|
|
|
1823
1785
|
interface BasicTableProps extends BasicComponent {
|
|
1824
|
-
className: string;
|
|
1825
|
-
style: React__default.CSSProperties;
|
|
1826
1786
|
columns: Array<TableColumnProps>;
|
|
1827
1787
|
data: Array<any>;
|
|
1828
1788
|
bordered: boolean;
|
|
@@ -1830,7 +1790,7 @@ interface BasicTableProps extends BasicComponent {
|
|
|
1830
1790
|
striped?: boolean;
|
|
1831
1791
|
noData?: React__default.ReactNode;
|
|
1832
1792
|
sorterIcon?: React__default.ReactNode;
|
|
1833
|
-
|
|
1793
|
+
onSort?: (item: TableColumnProps, data: Array<any>) => void;
|
|
1834
1794
|
showHeader?: boolean;
|
|
1835
1795
|
}
|
|
1836
1796
|
interface TableColumnProps {
|
|
@@ -1861,24 +1821,6 @@ interface TagProps extends BasicComponent {
|
|
|
1861
1821
|
type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
1862
1822
|
declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
1863
1823
|
|
|
1864
|
-
interface TrendArrowProps {
|
|
1865
|
-
rate: number;
|
|
1866
|
-
digits: number;
|
|
1867
|
-
showSign: boolean;
|
|
1868
|
-
showZero: boolean;
|
|
1869
|
-
arrowLeft: boolean;
|
|
1870
|
-
syncTextColor: boolean;
|
|
1871
|
-
textColor: string;
|
|
1872
|
-
riseColor: string;
|
|
1873
|
-
dropColor: string;
|
|
1874
|
-
iconSize: string;
|
|
1875
|
-
upIcon: React__default.ReactNode;
|
|
1876
|
-
downIcon: React__default.ReactNode;
|
|
1877
|
-
className: string;
|
|
1878
|
-
style: React__default.CSSProperties;
|
|
1879
|
-
}
|
|
1880
|
-
declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1881
|
-
|
|
1882
1824
|
interface VideoProps {
|
|
1883
1825
|
source: {
|
|
1884
1826
|
type: string;
|
|
@@ -1903,118 +1845,6 @@ interface VideoProps {
|
|
|
1903
1845
|
}
|
|
1904
1846
|
declare const Video: FunctionComponent<Partial<VideoProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;
|
|
1905
1847
|
|
|
1906
|
-
type Data = any;
|
|
1907
|
-
interface BasicVirtualListProps {
|
|
1908
|
-
className?: string;
|
|
1909
|
-
style?: React.CSSProperties;
|
|
1910
|
-
sourceData: Array<Data>;
|
|
1911
|
-
containerSize?: number;
|
|
1912
|
-
ItemRender?: React.FC<any>;
|
|
1913
|
-
itemSize?: number;
|
|
1914
|
-
itemEqualSize?: boolean;
|
|
1915
|
-
horizontal?: boolean;
|
|
1916
|
-
overscan?: number;
|
|
1917
|
-
handleScroll?: (...args: any[]) => any;
|
|
1918
|
-
onScroll?: (...args: any[]) => any;
|
|
1919
|
-
key?: string;
|
|
1920
|
-
locale?: {
|
|
1921
|
-
[key in string]: string;
|
|
1922
|
-
};
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
type VirtualListProps = BasicVirtualListProps;
|
|
1926
|
-
declare const VirtualList: FunctionComponent<VirtualListProps>;
|
|
1927
|
-
|
|
1928
|
-
interface WaterMarkProps {
|
|
1929
|
-
content: string;
|
|
1930
|
-
fullPage: boolean;
|
|
1931
|
-
zIndex: number;
|
|
1932
|
-
className: string;
|
|
1933
|
-
gapX: number;
|
|
1934
|
-
gapY: number;
|
|
1935
|
-
width: number;
|
|
1936
|
-
height: number;
|
|
1937
|
-
image: string;
|
|
1938
|
-
imageWidth: number;
|
|
1939
|
-
imageHeight: number;
|
|
1940
|
-
rotate: number;
|
|
1941
|
-
fontColor: string;
|
|
1942
|
-
fontStyle: string;
|
|
1943
|
-
fontFamily: string;
|
|
1944
|
-
fontWeight: string;
|
|
1945
|
-
fontSize: string | number;
|
|
1946
|
-
style: React__default.CSSProperties;
|
|
1947
|
-
}
|
|
1948
|
-
declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1949
|
-
|
|
1950
|
-
interface RegionData {
|
|
1951
|
-
name?: string;
|
|
1952
|
-
[key: string]: any;
|
|
1953
|
-
}
|
|
1954
|
-
interface ChangeCallBack {
|
|
1955
|
-
next: string;
|
|
1956
|
-
value: string | RegionData;
|
|
1957
|
-
custom: string;
|
|
1958
|
-
}
|
|
1959
|
-
interface CloseCallBackData extends SelectedRegionObj {
|
|
1960
|
-
addressIdStr: string;
|
|
1961
|
-
addressStr: string;
|
|
1962
|
-
}
|
|
1963
|
-
interface CloseCallBack {
|
|
1964
|
-
data: CloseCallBackData | AddressList;
|
|
1965
|
-
type: string;
|
|
1966
|
-
}
|
|
1967
|
-
interface AddressList {
|
|
1968
|
-
id?: string | number;
|
|
1969
|
-
provinceName: string;
|
|
1970
|
-
cityName: string;
|
|
1971
|
-
countyName: string;
|
|
1972
|
-
townName: string;
|
|
1973
|
-
addressDetail: string;
|
|
1974
|
-
selectedAddress: boolean;
|
|
1975
|
-
name?: string;
|
|
1976
|
-
phone?: string;
|
|
1977
|
-
}
|
|
1978
|
-
interface SelectedRegionObj {
|
|
1979
|
-
province: RegionData;
|
|
1980
|
-
city: RegionData;
|
|
1981
|
-
country: RegionData;
|
|
1982
|
-
town: RegionData;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
interface AddressProps extends BasicComponent {
|
|
1986
|
-
className?: string;
|
|
1987
|
-
style?: CSSProperties;
|
|
1988
|
-
modelValue: boolean;
|
|
1989
|
-
modelSelect: (string | number)[];
|
|
1990
|
-
type: string;
|
|
1991
|
-
customAddressTitle: string;
|
|
1992
|
-
province: RegionData[];
|
|
1993
|
-
city: RegionData[];
|
|
1994
|
-
country: RegionData[];
|
|
1995
|
-
town: RegionData[];
|
|
1996
|
-
isShowCustomAddress: boolean;
|
|
1997
|
-
existAddress: AddressList[];
|
|
1998
|
-
existAddressTitle: string;
|
|
1999
|
-
customAndExistTitle: string;
|
|
2000
|
-
height: string | number;
|
|
2001
|
-
defaultIcon: React__default.ReactNode;
|
|
2002
|
-
selectedIcon: React__default.ReactNode;
|
|
2003
|
-
closeBtnIcon: React__default.ReactNode;
|
|
2004
|
-
backBtnIcon: React__default.ReactNode;
|
|
2005
|
-
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
2006
|
-
onClose?: (cal: CloseCallBack) => void;
|
|
2007
|
-
onCancel?: (cal: {
|
|
2008
|
-
closeWay: string;
|
|
2009
|
-
}) => void;
|
|
2010
|
-
onSwitch?: (cal: {
|
|
2011
|
-
type: string;
|
|
2012
|
-
}) => void;
|
|
2013
|
-
onChange?: (cal: ChangeCallBack) => void;
|
|
2014
|
-
onTabChecked?: (cal: string) => void;
|
|
2015
|
-
}
|
|
2016
|
-
declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
2017
|
-
|
|
2018
1848
|
interface BarrageProps {
|
|
2019
1849
|
className: string;
|
|
2020
1850
|
style: React__default.CSSProperties;
|
|
@@ -2044,19 +1874,6 @@ interface CardProps {
|
|
|
2044
1874
|
}
|
|
2045
1875
|
declare const Card: FunctionComponent<Partial<CardProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2046
1876
|
|
|
2047
|
-
interface SignatureProps {
|
|
2048
|
-
type: string;
|
|
2049
|
-
lineWidth: number;
|
|
2050
|
-
strokeStyle: string;
|
|
2051
|
-
unSupportTpl: string;
|
|
2052
|
-
className: string;
|
|
2053
|
-
confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
2054
|
-
clear?: () => void;
|
|
2055
|
-
onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
2056
|
-
onClear?: () => void;
|
|
2057
|
-
}
|
|
2058
|
-
declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2059
|
-
|
|
2060
1877
|
interface TimeType {
|
|
2061
1878
|
key?: string | number;
|
|
2062
1879
|
list: string[];
|
|
@@ -2102,4 +1919,44 @@ interface TimeSelectProps {
|
|
|
2102
1919
|
}
|
|
2103
1920
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
2104
1921
|
|
|
1922
|
+
interface TrendArrowProps {
|
|
1923
|
+
rate: number;
|
|
1924
|
+
digits: number;
|
|
1925
|
+
showSign: boolean;
|
|
1926
|
+
showZero: boolean;
|
|
1927
|
+
arrowLeft: boolean;
|
|
1928
|
+
syncTextColor: boolean;
|
|
1929
|
+
textColor: string;
|
|
1930
|
+
riseColor: string;
|
|
1931
|
+
dropColor: string;
|
|
1932
|
+
iconSize: string;
|
|
1933
|
+
upIcon: React__default.ReactNode;
|
|
1934
|
+
downIcon: React__default.ReactNode;
|
|
1935
|
+
className: string;
|
|
1936
|
+
style: React__default.CSSProperties;
|
|
1937
|
+
}
|
|
1938
|
+
declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1939
|
+
|
|
1940
|
+
interface WaterMarkProps {
|
|
1941
|
+
content: string;
|
|
1942
|
+
fullPage: boolean;
|
|
1943
|
+
zIndex: number;
|
|
1944
|
+
className: string;
|
|
1945
|
+
gapX: number;
|
|
1946
|
+
gapY: number;
|
|
1947
|
+
width: number;
|
|
1948
|
+
height: number;
|
|
1949
|
+
image: string;
|
|
1950
|
+
imageWidth: number;
|
|
1951
|
+
imageHeight: number;
|
|
1952
|
+
rotate: number;
|
|
1953
|
+
fontColor: string;
|
|
1954
|
+
fontStyle: string;
|
|
1955
|
+
fontFamily: string;
|
|
1956
|
+
fontWeight: string;
|
|
1957
|
+
fontSize: string | number;
|
|
1958
|
+
style: React__default.CSSProperties;
|
|
1959
|
+
}
|
|
1960
|
+
declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1961
|
+
|
|
2105
1962
|
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 };
|