@nutui/nutui-react 1.5.1 → 2.0.0-alpha.1
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 +24 -664
- package/dist/esm/ActionSheet.js +62 -54
- package/dist/esm/Address/style/index.js +0 -1
- package/dist/esm/Address.js +235 -330
- package/dist/esm/Animate.js +43 -32
- package/dist/esm/AnimatingNumbers.js +88 -49
- package/dist/esm/Audio/style/index.js +0 -1
- package/dist/esm/Audio.js +108 -121
- package/dist/esm/Avatar.js +65 -78
- package/dist/esm/AvatarContext.js +5 -0
- package/dist/esm/AvatarGroup.js +46 -27
- package/dist/esm/BackTop/style/index.js +1 -1
- package/dist/esm/BackTop.js +74 -76
- package/dist/esm/Badge.js +57 -54
- package/dist/esm/Barrage.js +45 -32
- package/dist/esm/Button/style/index.js +1 -1
- package/dist/esm/Button.js +66 -87
- package/dist/esm/Calendar.js +80 -79
- package/dist/esm/CalendarItem.js +199 -231
- package/dist/esm/Card.js +44 -37
- package/dist/esm/Cascader.js +431 -434
- package/dist/esm/Cell/style/index.js +1 -1
- package/dist/esm/Cell.js +57 -87
- package/dist/esm/CellGroup.js +7 -5
- package/dist/esm/Checkbox/style/index.js +0 -1
- package/dist/esm/Checkbox.js +11 -8
- package/dist/esm/CheckboxGroup.js +78 -71
- package/dist/esm/CircleProgress.js +50 -40
- package/dist/esm/Col.js +49 -43
- package/dist/esm/Collapse.js +44 -44
- package/dist/esm/CollapseItem/style/index.js +1 -1
- package/dist/esm/CollapseItem.js +64 -104
- package/dist/esm/ConfigProvider.js +400 -101
- package/dist/esm/CountDown.js +90 -95
- package/dist/esm/DatePicker.js +104 -123
- package/dist/esm/Dialog.js +98 -104
- package/dist/esm/Divider.js +36 -27
- package/dist/esm/Drag.js +55 -59
- package/dist/esm/Elevator.js +77 -88
- package/dist/esm/Ellipsis.js +80 -79
- package/dist/esm/Empty.js +50 -44
- package/dist/esm/FixedNav/style/index.js +0 -1
- package/dist/esm/FixedNav.js +57 -65
- package/dist/esm/Form.js +1154 -123
- package/dist/esm/FormItem.js +7 -5
- package/dist/esm/Grid/style/index.js +1 -1
- package/dist/esm/Grid.js +51 -55
- package/dist/esm/GridItem.js +7 -124
- package/dist/esm/Icon.js +83 -5
- package/dist/esm/Image.js +123 -122
- package/dist/esm/ImagePreview.js +76 -94
- package/dist/esm/Indicator.js +41 -36
- package/dist/esm/Infiniteloading/style/index.js +1 -1
- package/dist/esm/Infiniteloading.js +77 -93
- package/dist/esm/Input/style/index.js +1 -1
- package/dist/esm/Input.js +120 -172
- package/dist/esm/InputNumber/style/index.js +1 -1
- package/dist/esm/InputNumber.js +133 -167
- package/dist/esm/Layout.js +27 -6
- package/dist/esm/Menu.js +84 -86
- package/dist/esm/MenuItem/style/index.js +0 -1
- package/dist/esm/MenuItem.js +76 -86
- package/dist/esm/NavBar/style/index.js +1 -1
- package/dist/esm/NavBar.js +59 -63
- package/dist/esm/NoticeBar/style/index.js +1 -1
- package/dist/esm/NoticeBar.js +173 -290
- package/dist/esm/Notify.js +112 -78
- package/dist/esm/NumberKeyboard.js +110 -109
- package/dist/esm/Overlay.js +7 -6
- package/dist/esm/Pagination.js +94 -135
- package/dist/esm/Picker.js +149 -201
- package/dist/esm/Popover/style/index.js +0 -1
- package/dist/esm/Popover.js +121 -116
- package/dist/esm/Popup/style/index.js +0 -1
- package/dist/esm/Popup.js +114 -131
- package/dist/esm/Price.js +51 -39
- package/dist/esm/Progress/style/index.js +1 -1
- package/dist/esm/Progress.js +59 -64
- package/dist/esm/PullToRefresh.js +173 -149
- package/dist/esm/Radio/style/index.js +0 -1
- package/dist/esm/Radio.js +8 -6
- package/dist/esm/RadioGroup.js +64 -84
- package/dist/esm/Range.js +93 -122
- package/dist/esm/Rate/style/index.js +1 -1
- package/dist/esm/Rate.js +77 -95
- package/dist/esm/Row.js +49 -37
- package/dist/esm/SearchBar/style/index.js +1 -1
- package/dist/esm/SearchBar.js +110 -120
- package/dist/esm/ShortPassword/style/index.js +0 -1
- package/dist/esm/ShortPassword.js +120 -116
- package/dist/esm/SideNavBar.js +38 -28
- package/dist/esm/SideNavBarItem.js +31 -14
- package/dist/esm/Signature.js +65 -61
- package/dist/esm/Skeleton.js +48 -40
- package/dist/esm/Step/style/index.js +1 -1
- package/dist/esm/Step.js +49 -49
- package/dist/esm/Steps.js +37 -23
- package/dist/esm/Sticky.js +111 -120
- package/dist/esm/SubSideNavBar.js +50 -38
- package/dist/esm/Swipe.js +75 -63
- package/dist/esm/Swiper.js +171 -206
- package/dist/esm/SwiperItem.js +39 -22
- package/dist/esm/Switch.js +46 -37
- package/dist/esm/TabPane.js +8 -6
- package/dist/esm/Tabbar.js +47 -39
- package/dist/esm/TabbarItem/style/index.js +1 -1
- package/dist/esm/TabbarItem.js +50 -52
- package/dist/esm/Table/style/index.js +1 -1
- package/dist/esm/Table.js +70 -70
- package/dist/esm/Tabs/style/index.js +1 -2
- package/dist/esm/Tabs.js +11 -9
- package/dist/esm/Tag/style/index.js +1 -1
- package/dist/esm/Tag.js +69 -70
- package/dist/esm/TextArea.js +70 -64
- package/dist/esm/TimeDetail.js +47 -38
- package/dist/esm/TimePannel.js +35 -19
- package/dist/esm/TimeSelect.js +60 -68
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast.js +126 -98
- package/dist/esm/TrendArrow/style/index.js +1 -1
- package/dist/esm/TrendArrow.js +59 -55
- package/dist/esm/Uploader/style/index.js +0 -1
- package/dist/esm/Uploader.js +195 -246
- package/dist/esm/UserContext.js +5 -0
- package/dist/esm/UserContext2.js +5 -0
- package/dist/esm/UserContext3.js +5 -0
- package/dist/esm/Video.js +49 -39
- package/dist/esm/VirtualList.js +111 -146
- package/dist/esm/WaterMark.js +57 -60
- package/dist/esm/bem.js +10 -0
- package/dist/esm/cellgroup2.js +49 -0
- package/dist/esm/checkbox2.js +145 -0
- package/dist/esm/{date-c7aad4c0.js → date.js} +13 -11
- package/dist/esm/{formitem-8a73a5fb.js → formitem2.js} +83 -50
- package/dist/esm/get-scroll-parent.js +26 -0
- package/dist/esm/griditem2.js +96 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/nutui-react.es.js +188 -94
- package/dist/esm/offsetContext.js +19 -0
- package/dist/esm/overlay2.js +98 -0
- package/dist/esm/px-check.js +6 -0
- package/dist/esm/radio2.js +129 -0
- package/dist/esm/render.js +95 -0
- package/dist/esm/tabpane2.js +44 -0
- package/dist/esm/tabs2.js +175 -0
- package/dist/esm/typings.js +7 -0
- package/dist/esm/use-client-rect.js +32 -0
- package/dist/esm/use-props-value.js +18 -0
- package/dist/esm/use-touch.js +74 -0
- package/dist/locales/base.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +3 -3
- package/dist/locales/id-ID.js +3 -3
- package/dist/locales/zh-CN.js +3 -3
- package/dist/locales/zh-TW.js +3 -3
- package/dist/locales/zh-UG.js +3 -3
- package/dist/nutui.react.mjs +8389 -4901
- package/dist/nutui.react.umd.js +8390 -4902
- package/dist/packages/actionsheet/actionsheet.scss +10 -2
- package/dist/packages/audio/audio.scss +2 -15
- package/dist/packages/backtop/backtop.scss +0 -8
- package/dist/packages/badge/badge.scss +3 -4
- package/dist/packages/button/button.scss +80 -93
- package/dist/packages/calendar/calendar.scss +0 -30
- package/dist/packages/cell/cell.scss +18 -90
- package/dist/packages/cellgroup/cellgroup.scss +26 -20
- package/dist/packages/collapseitem/collapseitem.scss +0 -1
- package/dist/packages/dialog/dialog.scss +1 -1
- package/dist/packages/divider/divider.scss +3 -17
- package/dist/packages/grid/grid.scss +1 -0
- package/dist/packages/griditem/griditem.scss +2 -17
- package/dist/packages/icon/icon.scss +0 -132
- package/dist/packages/image/image.scss +0 -12
- package/dist/packages/indicator/indicator.scss +21 -39
- package/dist/packages/infiniteloading/infiniteloading.scss +4 -12
- package/dist/packages/input/input.scss +4 -0
- package/dist/packages/inputnumber/inputnumber.scss +10 -26
- package/dist/packages/menuitem/menuitem.scss +2 -0
- package/dist/packages/navbar/navbar.scss +4 -5
- package/dist/packages/overlay/overlay.scss +0 -19
- package/dist/packages/picker/picker.scss +97 -103
- package/dist/packages/popup/popup.scss +0 -16
- package/dist/packages/progress/progress.scss +0 -1
- package/dist/packages/radio/radio.scss +8 -0
- package/dist/packages/rate/rate.scss +29 -6
- package/dist/packages/row/row.scss +13 -31
- package/dist/packages/searchbar/searchbar.scss +0 -1
- package/dist/packages/shortpassword/shortpassword.scss +4 -1
- package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
- package/dist/packages/step/step.scss +0 -1
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/swiper/swiper.scss +8 -0
- package/dist/packages/tabbaritem/tabbaritem.scss +0 -1
- package/dist/packages/table/table.scss +0 -1
- package/dist/packages/tag/tag.scss +9 -2
- package/dist/packages/timedetail/timedetail.scss +9 -3
- package/dist/packages/timeselect/timeselect.scss +1 -1
- package/dist/packages/toast/toast.scss +0 -1
- package/dist/packages/uploader/uploader.scss +2 -28
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/font-jmapp/config.json +175 -0
- package/dist/styles/font-jmapp/demo.css +539 -0
- package/dist/styles/font-jmapp/demo_index.html +1821 -0
- package/dist/styles/font-jmapp/iconfont.css +299 -0
- package/dist/styles/font-jmapp/iconfont.eot +0 -0
- package/dist/styles/font-jmapp/iconfont.js +68 -0
- package/dist/styles/font-jmapp/iconfont.json +506 -0
- package/dist/styles/font-jmapp/iconfont.svg +356 -0
- package/dist/styles/font-jmapp/iconfont.ttf +0 -0
- package/dist/styles/font-jmapp/iconfont.woff +0 -0
- package/dist/styles/font-jmapp/iconfont.woff2 +0 -0
- package/dist/styles/theme-default.scss +1 -0
- package/dist/styles/theme-jmapp.scss +41 -0
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +2601 -0
- package/dist/styles/variables.scss +49 -73
- package/dist/types/index.d.ts +169 -266
- package/package.json +23 -154
- package/dist/esm/AvatarContext-15733596.js +0 -3
- package/dist/esm/Icon/style/index.js +0 -4
- package/dist/esm/UserContext-101ad4a4.js +0 -3
- package/dist/esm/UserContext-2629d479.js +0 -3
- package/dist/esm/UserContext-b33bcf21.js +0 -3
- package/dist/esm/bem-3b438e61.js +0 -8
- package/dist/esm/cellgroup-fcc72767.js +0 -34
- package/dist/esm/checkbox-44e13cd0.js +0 -137
- package/dist/esm/get-scroll-parent-5f85dee8.js +0 -24
- package/dist/esm/grid.context-2ee27d95.js +0 -6
- package/dist/esm/icon-4ef1581c.js +0 -70
- package/dist/esm/index-030b7245.js +0 -11
- package/dist/esm/offsetContext-3ab00d40.js +0 -16
- package/dist/esm/overlay-de6c79d5.js +0 -83
- package/dist/esm/radio-9f141e6b.js +0 -118
- package/dist/esm/render-bbebb760.js +0 -79
- package/dist/esm/tabpane-01075e6c.js +0 -29
- package/dist/esm/tabs-e1b4e4b1.js +0 -181
- package/dist/esm/typings-f27b58f4.js +0 -8
- package/dist/esm/useClientRect-56bb675b.js +0 -39
- package/dist/esm/useTouch-cf73a407.js +0 -99
package/dist/types/index.d.ts
CHANGED
|
@@ -1,60 +1,43 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode, FunctionComponent,
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, FunctionComponent, MouseEvent as MouseEvent$1, MouseEventHandler, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
|
|
3
3
|
|
|
4
4
|
interface BasicComponent {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
|
-
iconFontClassName?: string;
|
|
8
|
-
iconClassPrefix?: string;
|
|
9
7
|
children?: ReactNode;
|
|
10
8
|
}
|
|
11
9
|
|
|
10
|
+
type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
11
|
+
type ButtonSize = 'large' | 'normal' | 'small';
|
|
12
|
+
type ButtonShape = 'square' | 'round';
|
|
13
|
+
type ButtonFill = 'solid' | 'outline' | 'none';
|
|
12
14
|
interface ButtonProps extends BasicComponent {
|
|
13
|
-
className: string;
|
|
14
15
|
color: string;
|
|
15
16
|
shape: ButtonShape;
|
|
16
|
-
plain: boolean;
|
|
17
|
-
loading: boolean;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
style: React__default.CSSProperties;
|
|
20
17
|
type: ButtonType;
|
|
21
18
|
size: ButtonSize;
|
|
19
|
+
fill: ButtonFill;
|
|
22
20
|
block: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
loading: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
icon: React__default.ReactNode;
|
|
26
24
|
onClick: (e: MouseEvent) => void;
|
|
27
25
|
}
|
|
28
|
-
|
|
29
|
-
type ButtonSize = 'large' | 'normal' | 'small';
|
|
30
|
-
type ButtonShape = 'square' | 'round';
|
|
31
|
-
declare const Button: FunctionComponent<Partial<ButtonProps>>;
|
|
26
|
+
declare const Button: React__default.ForwardRefExoticComponent<Partial<ButtonProps> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
32
27
|
|
|
33
28
|
interface CellProps extends BasicComponent {
|
|
34
29
|
title: ReactNode;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
icon: string;
|
|
40
|
-
roundRadius: string | number;
|
|
41
|
-
url: string;
|
|
42
|
-
replace: boolean;
|
|
43
|
-
center: boolean;
|
|
44
|
-
size: string;
|
|
45
|
-
className: string;
|
|
46
|
-
iconSlot: ReactNode;
|
|
47
|
-
linkSlot: ReactNode;
|
|
30
|
+
description: ReactNode;
|
|
31
|
+
extra: ReactNode;
|
|
32
|
+
radius: string | number;
|
|
33
|
+
align: string;
|
|
48
34
|
onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
49
35
|
}
|
|
50
36
|
declare const Cell: FunctionComponent<Partial<CellProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
51
37
|
|
|
52
|
-
interface CellGroupProps {
|
|
38
|
+
interface CellGroupProps extends BasicComponent {
|
|
53
39
|
title: ReactNode;
|
|
54
|
-
|
|
55
|
-
titleSlot: ReactNode;
|
|
56
|
-
descSlot: ReactNode;
|
|
57
|
-
className: string;
|
|
40
|
+
description: ReactNode;
|
|
58
41
|
children?: ReactNode;
|
|
59
42
|
}
|
|
60
43
|
declare const CellGroup: FunctionComponent<Partial<CellGroupProps>>;
|
|
@@ -73,7 +56,7 @@ interface BaseLang {
|
|
|
73
56
|
};
|
|
74
57
|
fixednav: {
|
|
75
58
|
activeText: string;
|
|
76
|
-
|
|
59
|
+
inactiveText: string;
|
|
77
60
|
};
|
|
78
61
|
infiniteloading: {
|
|
79
62
|
pullRefreshText: string;
|
|
@@ -100,7 +83,7 @@ interface BaseLang {
|
|
|
100
83
|
};
|
|
101
84
|
shortpassword: {
|
|
102
85
|
title: string;
|
|
103
|
-
|
|
86
|
+
description: string;
|
|
104
87
|
tips: string;
|
|
105
88
|
};
|
|
106
89
|
uploader: {
|
|
@@ -196,87 +179,59 @@ interface ConfigProviderProps {
|
|
|
196
179
|
}
|
|
197
180
|
declare const ConfigProvider: FunctionComponent<Partial<ConfigProviderProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
198
181
|
|
|
199
|
-
interface
|
|
200
|
-
name: string;
|
|
201
|
-
size: string | number;
|
|
202
|
-
classPrefix: string;
|
|
203
|
-
color: string;
|
|
204
|
-
tag: keyof ReactHTML;
|
|
205
|
-
onClick: (e: MouseEvent) => void;
|
|
206
|
-
fontClassName: string;
|
|
207
|
-
className: string;
|
|
208
|
-
style: React__default.CSSProperties;
|
|
209
|
-
children: React__default.ReactNode;
|
|
210
|
-
}
|
|
211
|
-
declare function Icon<T>(props: Partial<IconProps> & T): ReactElement;
|
|
212
|
-
declare namespace Icon {
|
|
213
|
-
var defaultProps: IconProps;
|
|
214
|
-
var displayName: string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
interface ImageProps {
|
|
218
|
-
className: string;
|
|
219
|
-
style: React__default.CSSProperties;
|
|
182
|
+
interface ImageProps extends BasicComponent {
|
|
220
183
|
src: string;
|
|
221
184
|
fit: ImageFit;
|
|
222
185
|
position: ImagePosition;
|
|
223
186
|
alt: string;
|
|
224
187
|
width: string;
|
|
225
188
|
height: string;
|
|
226
|
-
round: boolean;
|
|
227
189
|
radius: string | number;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
errorImg?: string;
|
|
235
|
-
onClick?: (e: MouseEvent) => void;
|
|
236
|
-
onLoad?: () => void;
|
|
237
|
-
onError?: () => void;
|
|
190
|
+
error: boolean | ReactNode;
|
|
191
|
+
loading: boolean | ReactNode;
|
|
192
|
+
lazy: boolean;
|
|
193
|
+
onClick: (e: MouseEvent) => void;
|
|
194
|
+
onLoad: () => void;
|
|
195
|
+
onError: () => void;
|
|
238
196
|
}
|
|
239
197
|
type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
240
198
|
type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
241
199
|
declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|
|
242
200
|
|
|
243
|
-
interface OverlayProps {
|
|
201
|
+
interface OverlayProps extends BasicComponent {
|
|
244
202
|
zIndex: number;
|
|
245
203
|
duration: number;
|
|
246
|
-
|
|
247
|
-
overlayStyle: React__default.CSSProperties;
|
|
248
|
-
closeOnClickOverlay: boolean;
|
|
204
|
+
closeOnOverlayClick: boolean;
|
|
249
205
|
visible: boolean;
|
|
250
206
|
lockScroll: boolean;
|
|
207
|
+
afterShow: () => void;
|
|
208
|
+
afterClose: () => void;
|
|
251
209
|
}
|
|
252
210
|
declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
253
211
|
|
|
254
212
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
255
|
-
interface PopupProps extends OverlayProps
|
|
213
|
+
interface PopupProps extends OverlayProps {
|
|
256
214
|
position: string;
|
|
257
215
|
transition: string;
|
|
258
|
-
|
|
259
|
-
|
|
216
|
+
overlayStyle: React__default.CSSProperties;
|
|
217
|
+
overlayClassName: string;
|
|
260
218
|
closeable: boolean;
|
|
261
219
|
closeIconPosition: string;
|
|
262
|
-
closeIcon:
|
|
263
|
-
closeIconSize?: string | number;
|
|
220
|
+
closeIcon: React__default.ReactNode;
|
|
264
221
|
destroyOnClose: boolean;
|
|
265
|
-
|
|
222
|
+
portal: Teleport;
|
|
266
223
|
overlay: boolean;
|
|
267
224
|
round: boolean;
|
|
268
225
|
onOpen: () => void;
|
|
269
226
|
onClose: () => void;
|
|
270
227
|
onClick: (e: MouseEvent$1) => void;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
onClickOverlay: (e: MouseEvent$1) => void;
|
|
274
|
-
onClickCloseIcon: (e: MouseEvent$1) => void;
|
|
228
|
+
onClickOverlay: (e: MouseEvent$1) => boolean | void;
|
|
229
|
+
onClickCloseIcon: (e: MouseEvent$1) => boolean | void;
|
|
275
230
|
}
|
|
276
231
|
declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
277
232
|
|
|
278
233
|
type EventType$1 = 'row' | 'col';
|
|
279
|
-
interface ColProps {
|
|
234
|
+
interface ColProps extends BasicComponent {
|
|
280
235
|
span: string | number;
|
|
281
236
|
offset: string | number;
|
|
282
237
|
gutter: string | number;
|
|
@@ -288,9 +243,7 @@ type ContentPositionType = 'left' | 'center' | 'right';
|
|
|
288
243
|
type DirectionType = 'horizontal' | 'vertical';
|
|
289
244
|
interface DividerProps {
|
|
290
245
|
contentPosition: ContentPositionType;
|
|
291
|
-
|
|
292
|
-
hairline: boolean;
|
|
293
|
-
styles?: React__default.CSSProperties;
|
|
246
|
+
style?: React__default.CSSProperties;
|
|
294
247
|
className?: string;
|
|
295
248
|
direction?: DirectionType;
|
|
296
249
|
}
|
|
@@ -299,17 +252,9 @@ declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.
|
|
|
299
252
|
type GridDirection$1 = 'horizontal' | 'vertical';
|
|
300
253
|
interface GridItemProps extends BasicComponent {
|
|
301
254
|
text: string | ReactNode;
|
|
302
|
-
fontSize: string | number;
|
|
303
|
-
color: string;
|
|
304
|
-
icon: string | ReactNode;
|
|
305
|
-
iconSize?: string | number;
|
|
306
|
-
iconColor?: string;
|
|
307
|
-
parentIconSize?: string | number;
|
|
308
|
-
parentIconColor?: string;
|
|
309
255
|
index: number;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
gutter: string | number;
|
|
256
|
+
columns: string | number;
|
|
257
|
+
gap: string | number;
|
|
313
258
|
center: boolean;
|
|
314
259
|
square: boolean;
|
|
315
260
|
reverse: boolean;
|
|
@@ -319,27 +264,26 @@ declare const GridItem: FunctionComponent<Partial<GridItemProps> & React__defaul
|
|
|
319
264
|
|
|
320
265
|
type GridDirection = 'horizontal' | 'vertical';
|
|
321
266
|
interface GridProps {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
gutter: string | number;
|
|
267
|
+
columns: string | number;
|
|
268
|
+
gap: string | number;
|
|
325
269
|
center: boolean;
|
|
326
270
|
square: boolean;
|
|
327
271
|
reverse: boolean;
|
|
328
272
|
direction: GridDirection;
|
|
329
273
|
className?: string;
|
|
330
|
-
iconSize?: string | number;
|
|
331
|
-
iconColor?: string;
|
|
332
274
|
style?: CSSProperties;
|
|
333
275
|
onClick: (item: GridItemProps, index: number) => void;
|
|
334
276
|
}
|
|
335
|
-
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'
|
|
277
|
+
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>> & {
|
|
278
|
+
Item: typeof GridItem;
|
|
279
|
+
};
|
|
336
280
|
|
|
337
281
|
interface LayoutProps {
|
|
338
282
|
}
|
|
339
283
|
declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
340
284
|
|
|
341
285
|
type EventType = 'row' | 'col';
|
|
342
|
-
interface RowProps {
|
|
286
|
+
interface RowProps extends BasicComponent {
|
|
343
287
|
type: string;
|
|
344
288
|
justify: string;
|
|
345
289
|
align: string;
|
|
@@ -350,16 +294,14 @@ interface RowProps {
|
|
|
350
294
|
declare const Row: FunctionComponent<Partial<RowProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
351
295
|
|
|
352
296
|
interface StickyProps extends BasicComponent {
|
|
353
|
-
container
|
|
354
|
-
position
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
bottom?: number;
|
|
358
|
-
zIndex?: number;
|
|
297
|
+
container: React__default.RefObject<HTMLElement>;
|
|
298
|
+
position: 'top' | 'bottom';
|
|
299
|
+
threshold: number;
|
|
300
|
+
zIndex: number;
|
|
359
301
|
children: React__default.ReactNode;
|
|
360
|
-
onChange
|
|
302
|
+
onChange: (val: boolean) => void;
|
|
361
303
|
}
|
|
362
|
-
declare const Sticky: FunctionComponent<StickyProps
|
|
304
|
+
declare const Sticky: FunctionComponent<Partial<StickyProps>>;
|
|
363
305
|
|
|
364
306
|
declare const elevatorContext: React__default.Context<ElevatorData>;
|
|
365
307
|
interface ElevatorProps {
|
|
@@ -390,28 +332,23 @@ type Position$2 = {
|
|
|
390
332
|
bottom?: string;
|
|
391
333
|
};
|
|
392
334
|
interface FixedNavProps extends BasicComponent {
|
|
393
|
-
fixednavClass: string;
|
|
394
335
|
visible: boolean;
|
|
395
336
|
overlay: boolean;
|
|
396
|
-
|
|
337
|
+
list: Array<any>;
|
|
397
338
|
activeText: string;
|
|
398
|
-
|
|
339
|
+
inactiveText: string;
|
|
399
340
|
position: Position$2;
|
|
400
341
|
type: Direction$1;
|
|
401
|
-
onChange: (
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
slotBtn: React__default.ReactNode;
|
|
342
|
+
onChange: (item: any) => void;
|
|
343
|
+
onSelect: (item: any, event: MouseEvent$1) => void;
|
|
344
|
+
content: React__default.ReactNode;
|
|
405
345
|
}
|
|
406
|
-
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
346
|
+
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
|
|
407
347
|
|
|
408
348
|
interface IndicatorProps {
|
|
409
|
-
|
|
349
|
+
total: number;
|
|
410
350
|
current: number;
|
|
411
|
-
|
|
412
|
-
align: 'left' | 'right' | 'center';
|
|
413
|
-
fillZero: boolean;
|
|
414
|
-
vertical: boolean;
|
|
351
|
+
direction: string;
|
|
415
352
|
}
|
|
416
353
|
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
417
354
|
|
|
@@ -422,7 +359,7 @@ interface MenuProps extends BasicComponent {
|
|
|
422
359
|
closeOnClickOverlay: boolean;
|
|
423
360
|
scrollFixed: boolean | string | number;
|
|
424
361
|
lockScroll: boolean;
|
|
425
|
-
titleIcon:
|
|
362
|
+
titleIcon: React__default.ReactNode;
|
|
426
363
|
children: React__default.ReactNode;
|
|
427
364
|
}
|
|
428
365
|
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
@@ -438,12 +375,10 @@ interface MenuItemProps extends BasicComponent {
|
|
|
438
375
|
options: OptionItem[];
|
|
439
376
|
disabled: boolean;
|
|
440
377
|
columns: number;
|
|
441
|
-
optionsIcon:
|
|
378
|
+
optionsIcon: React__default.ReactNode;
|
|
442
379
|
direction: string;
|
|
443
380
|
activeTitleClass: string;
|
|
444
381
|
inactiveTitleClass: string;
|
|
445
|
-
fontClassName: string;
|
|
446
|
-
iconClassPrefix: string;
|
|
447
382
|
value: string | number;
|
|
448
383
|
onChange: (event: any) => void;
|
|
449
384
|
children: React__default.ReactNode;
|
|
@@ -453,9 +388,8 @@ declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuIte
|
|
|
453
388
|
interface NavBarProps$1 extends BasicComponent {
|
|
454
389
|
leftShow: boolean;
|
|
455
390
|
title: string;
|
|
456
|
-
titIcon: string;
|
|
457
391
|
leftText: string;
|
|
458
|
-
|
|
392
|
+
description: string;
|
|
459
393
|
className: string;
|
|
460
394
|
fixed: boolean;
|
|
461
395
|
safeAreaInsetTop: boolean;
|
|
@@ -471,22 +405,18 @@ interface NavBarProps$1 extends BasicComponent {
|
|
|
471
405
|
}
|
|
472
406
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
473
407
|
|
|
474
|
-
interface PaginationProps {
|
|
408
|
+
interface PaginationProps extends BasicComponent {
|
|
409
|
+
value: number;
|
|
475
410
|
defaultValue: number;
|
|
476
|
-
modelValue: number;
|
|
477
411
|
mode: 'multi' | 'simple';
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
pageNodeRender: (page: any) => React__default.ReactNode;
|
|
412
|
+
prev: ReactNode;
|
|
413
|
+
next: ReactNode;
|
|
414
|
+
total: number;
|
|
415
|
+
pageSize: number;
|
|
416
|
+
itemSize: number;
|
|
417
|
+
ellipse: boolean;
|
|
418
|
+
itemRender: (page: any) => ReactNode;
|
|
486
419
|
onChange: (currPage: number) => void;
|
|
487
|
-
updatecurrent: (currPage: number) => void;
|
|
488
|
-
style?: React__default.CSSProperties;
|
|
489
|
-
className?: string;
|
|
490
420
|
}
|
|
491
421
|
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
492
422
|
|
|
@@ -506,10 +436,10 @@ declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
|
506
436
|
|
|
507
437
|
type SideNavBarItemProps = {
|
|
508
438
|
title: string;
|
|
509
|
-
|
|
510
|
-
onClick?: ({ title,
|
|
439
|
+
key: string | number;
|
|
440
|
+
onClick?: ({ title, key }: {
|
|
511
441
|
title: string;
|
|
512
|
-
|
|
442
|
+
key: string | number;
|
|
513
443
|
}) => void;
|
|
514
444
|
children?: React__default.ReactNode;
|
|
515
445
|
};
|
|
@@ -517,12 +447,12 @@ declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
|
|
|
517
447
|
|
|
518
448
|
type SubSideNavBarProps = {
|
|
519
449
|
title: string;
|
|
520
|
-
|
|
450
|
+
key: string | number;
|
|
521
451
|
open?: boolean;
|
|
522
452
|
children?: React__default.ReactNode;
|
|
523
|
-
onClick?: ({ title,
|
|
453
|
+
onClick?: ({ title, key, isShow, }: {
|
|
524
454
|
title: string;
|
|
525
|
-
|
|
455
|
+
key: string | number;
|
|
526
456
|
isShow: boolean;
|
|
527
457
|
}) => void;
|
|
528
458
|
};
|
|
@@ -545,11 +475,9 @@ declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
|
|
|
545
475
|
|
|
546
476
|
interface TabbarItemProps extends BasicComponent {
|
|
547
477
|
dot: boolean;
|
|
548
|
-
size: string | number;
|
|
549
|
-
iconSize: string | number;
|
|
550
478
|
className: string;
|
|
551
479
|
tabTitle: string;
|
|
552
|
-
icon:
|
|
480
|
+
icon: React__default.ReactNode;
|
|
553
481
|
href: string;
|
|
554
482
|
num: string | number;
|
|
555
483
|
active: boolean;
|
|
@@ -726,7 +654,8 @@ type CheckboxTextPosition = 'left' | 'right';
|
|
|
726
654
|
type CheckboxDirection = 'horizontal' | 'vertical';
|
|
727
655
|
interface CheckboxGroupProps {
|
|
728
656
|
disabled: boolean;
|
|
729
|
-
|
|
657
|
+
value?: string[];
|
|
658
|
+
defaultValue?: string[];
|
|
730
659
|
max: number | undefined;
|
|
731
660
|
textPosition: CheckboxTextPosition;
|
|
732
661
|
direction: CheckboxDirection;
|
|
@@ -738,16 +667,17 @@ declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Partial<Ch
|
|
|
738
667
|
interface CheckboxProps extends BasicComponent {
|
|
739
668
|
checked: boolean;
|
|
740
669
|
disabled: boolean;
|
|
670
|
+
defaultChecked: boolean;
|
|
741
671
|
textPosition: 'left' | 'right';
|
|
742
672
|
iconSize: string | number;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
673
|
+
icon: React__default.ReactNode;
|
|
674
|
+
checkedIcon: React__default.ReactNode;
|
|
675
|
+
indeterminateIcon: React__default.ReactNode;
|
|
746
676
|
iconClassPrefix: string;
|
|
747
677
|
iconFontClassName: string;
|
|
748
678
|
indeterminate: boolean;
|
|
749
679
|
label: string | number;
|
|
750
|
-
onChange: (state: boolean
|
|
680
|
+
onChange: (state: boolean) => void;
|
|
751
681
|
}
|
|
752
682
|
declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
|
|
753
683
|
Group: typeof CheckboxGroup;
|
|
@@ -927,12 +857,10 @@ interface InputProps extends BasicComponent {
|
|
|
927
857
|
readonly: boolean;
|
|
928
858
|
error: boolean;
|
|
929
859
|
maxlength: any;
|
|
930
|
-
leftIcon:
|
|
931
|
-
|
|
932
|
-
rightIcon: string;
|
|
933
|
-
rightIconSize: string | number;
|
|
860
|
+
leftIcon: React__default.ReactNode;
|
|
861
|
+
rightIcon: React__default.ReactNode;
|
|
934
862
|
clearable: boolean;
|
|
935
|
-
clearIcon:
|
|
863
|
+
clearIcon: React__default.ReactNode;
|
|
936
864
|
clearSize: string | number;
|
|
937
865
|
border: boolean;
|
|
938
866
|
formatTrigger: InputFormatTrigger;
|
|
@@ -961,32 +889,26 @@ declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default
|
|
|
961
889
|
|
|
962
890
|
interface InputNumberProps extends BasicComponent {
|
|
963
891
|
disabled: boolean;
|
|
964
|
-
buttonSize: string | number;
|
|
965
892
|
min: string | number;
|
|
966
893
|
max: string | number;
|
|
967
|
-
inputWidth: string | number;
|
|
968
894
|
readonly: boolean;
|
|
969
|
-
|
|
895
|
+
value: string | number;
|
|
896
|
+
defaultValue: string | number;
|
|
897
|
+
allowEmpty: boolean;
|
|
970
898
|
step: string | number;
|
|
971
|
-
|
|
972
|
-
|
|
899
|
+
digits: string | number;
|
|
900
|
+
async: boolean;
|
|
973
901
|
className: string;
|
|
974
902
|
style: React__default.CSSProperties;
|
|
975
903
|
formatter?: (displayValue: string | number) => string;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
overlimit: (e: MouseEvent) => void;
|
|
979
|
-
blur: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
980
|
-
focus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
981
|
-
change: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
982
|
-
onAdd: (e: MouseEvent) => void;
|
|
983
|
-
onReduce: (e: MouseEvent) => void;
|
|
904
|
+
onPlus: (e: MouseEvent) => void;
|
|
905
|
+
onMinus: (e: MouseEvent) => void;
|
|
984
906
|
onOverlimit: (e: MouseEvent) => void;
|
|
985
|
-
|
|
907
|
+
onBlur: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
986
908
|
onFocus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
987
|
-
|
|
909
|
+
onChange: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
988
910
|
}
|
|
989
|
-
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
911
|
+
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
990
912
|
|
|
991
913
|
interface NumberKeyboardProps {
|
|
992
914
|
confirmText: string;
|
|
@@ -1013,7 +935,7 @@ interface PickerOption {
|
|
|
1013
935
|
className?: string | number;
|
|
1014
936
|
}
|
|
1015
937
|
interface PickerProps {
|
|
1016
|
-
|
|
938
|
+
visible: boolean;
|
|
1017
939
|
title?: string;
|
|
1018
940
|
listData: (PickerOption | PickerOption[])[];
|
|
1019
941
|
defaultValueData?: (number | string)[];
|
|
@@ -1049,8 +971,8 @@ interface RadioProps extends BasicComponent {
|
|
|
1049
971
|
shape: Shape;
|
|
1050
972
|
textPosition: Position;
|
|
1051
973
|
value: string | number | boolean;
|
|
1052
|
-
|
|
1053
|
-
|
|
974
|
+
icon: React__default.ReactNode;
|
|
975
|
+
checkedIcon: React__default.ReactNode;
|
|
1054
976
|
iconSize: string | number;
|
|
1055
977
|
onChange: MouseEventHandler<HTMLDivElement>;
|
|
1056
978
|
}
|
|
@@ -1088,19 +1010,16 @@ interface RangeProps {
|
|
|
1088
1010
|
declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
1089
1011
|
|
|
1090
1012
|
interface RateProps extends BasicComponent {
|
|
1091
|
-
count:
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
checkedIcon: string;
|
|
1098
|
-
uncheckedIcon: string;
|
|
1013
|
+
count: number;
|
|
1014
|
+
value: number;
|
|
1015
|
+
defaultValue: number;
|
|
1016
|
+
min: number;
|
|
1017
|
+
checkedIcon: React__default.ReactNode;
|
|
1018
|
+
uncheckedIcon: React__default.ReactNode;
|
|
1099
1019
|
disabled: boolean;
|
|
1100
|
-
|
|
1020
|
+
readOnly: boolean;
|
|
1101
1021
|
allowHalf: boolean;
|
|
1102
|
-
|
|
1103
|
-
onChange: (val: number) => void;
|
|
1022
|
+
onChange: (value: number) => void;
|
|
1104
1023
|
}
|
|
1105
1024
|
declare const Rate: FunctionComponent<Partial<RateProps>>;
|
|
1106
1025
|
|
|
@@ -1119,7 +1038,7 @@ interface SearchBarProps extends BasicComponent {
|
|
|
1119
1038
|
maxLength?: number;
|
|
1120
1039
|
/** 是否启用清除图标,点击清除图标后会清空输入框 */
|
|
1121
1040
|
clearable?: boolean;
|
|
1122
|
-
|
|
1041
|
+
clearSize?: string | number;
|
|
1123
1042
|
/** 搜索框外部背景色 */
|
|
1124
1043
|
background?: string;
|
|
1125
1044
|
/** 搜索框背景色 */
|
|
@@ -1169,8 +1088,10 @@ declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React_
|
|
|
1169
1088
|
|
|
1170
1089
|
interface ShortPasswordProps extends BasicComponent {
|
|
1171
1090
|
title: string;
|
|
1172
|
-
|
|
1091
|
+
description: string;
|
|
1173
1092
|
tips: string;
|
|
1093
|
+
tipsIcon: React__default.ReactNode;
|
|
1094
|
+
iconSize: string | number;
|
|
1174
1095
|
visible: boolean;
|
|
1175
1096
|
modelValue: string | number;
|
|
1176
1097
|
errorMsg: string;
|
|
@@ -1232,13 +1153,14 @@ type FileType<T> = {
|
|
|
1232
1153
|
type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
1233
1154
|
interface UploaderProps extends BasicComponent {
|
|
1234
1155
|
url: string;
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1156
|
+
maxCount: string | number;
|
|
1157
|
+
maxFileSize: number;
|
|
1158
|
+
defaultValue?: FileType<React__default.ReactNode>[];
|
|
1159
|
+
value?: FileType<string>[];
|
|
1160
|
+
previewType: 'picture' | 'list';
|
|
1161
|
+
imageFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1162
|
+
uploadIcon?: React__default.ReactNode;
|
|
1163
|
+
uploadLabel?: React__default.ReactNode;
|
|
1242
1164
|
name: string;
|
|
1243
1165
|
accept: string;
|
|
1244
1166
|
disabled: boolean;
|
|
@@ -1251,14 +1173,14 @@ interface UploaderProps extends BasicComponent {
|
|
|
1251
1173
|
headers: any;
|
|
1252
1174
|
withCredentials: boolean;
|
|
1253
1175
|
clearInput: boolean;
|
|
1254
|
-
|
|
1255
|
-
|
|
1176
|
+
preview: boolean;
|
|
1177
|
+
deletable: boolean;
|
|
1256
1178
|
capture: boolean;
|
|
1257
1179
|
className: string;
|
|
1258
|
-
|
|
1180
|
+
previewUrl?: string;
|
|
1259
1181
|
style: React__default.CSSProperties;
|
|
1260
1182
|
onStart?: (option: UploadOptions) => void;
|
|
1261
|
-
|
|
1183
|
+
onDelete?: (file: FileItem, fileList: FileItem[]) => void;
|
|
1262
1184
|
onSuccess?: (param: {
|
|
1263
1185
|
responseText: XMLHttpRequest['responseText'];
|
|
1264
1186
|
option: UploadOptions;
|
|
@@ -1280,9 +1202,9 @@ interface UploaderProps extends BasicComponent {
|
|
|
1280
1202
|
fileList: FileItem[];
|
|
1281
1203
|
event: React__default.ChangeEvent<HTMLInputElement>;
|
|
1282
1204
|
}) => void;
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1205
|
+
beforeUpload?: (file: File[]) => Promise<File[] | boolean>;
|
|
1206
|
+
beforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1207
|
+
beforeDelete?: (file: FileItem, files: FileItem[]) => boolean;
|
|
1286
1208
|
onFileItemClick?: (file: FileItem) => void;
|
|
1287
1209
|
}
|
|
1288
1210
|
declare class FileItem {
|
|
@@ -1304,7 +1226,7 @@ type ItemType<T> = {
|
|
|
1304
1226
|
[key: string]: T;
|
|
1305
1227
|
};
|
|
1306
1228
|
interface ActionSheetProps {
|
|
1307
|
-
|
|
1229
|
+
cancelText: string;
|
|
1308
1230
|
optionTag: string;
|
|
1309
1231
|
optionSubTag: string;
|
|
1310
1232
|
chooseTagValue: string;
|
|
@@ -1321,16 +1243,10 @@ interface ActionSheetProps {
|
|
|
1321
1243
|
declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1322
1244
|
|
|
1323
1245
|
interface BackTopProps extends BasicComponent {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
right: number;
|
|
1327
|
-
elId: string;
|
|
1328
|
-
distance: number;
|
|
1246
|
+
target: string;
|
|
1247
|
+
threshold: number;
|
|
1329
1248
|
zIndex: number;
|
|
1330
|
-
isAnimation: boolean;
|
|
1331
1249
|
duration: number;
|
|
1332
|
-
children?: HTMLElement | any;
|
|
1333
|
-
style?: React__default.CSSProperties;
|
|
1334
1250
|
onClick?: (event: MouseEvent) => void;
|
|
1335
1251
|
}
|
|
1336
1252
|
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -1346,7 +1262,7 @@ interface BasicDialogProps {
|
|
|
1346
1262
|
title?: ReactNode;
|
|
1347
1263
|
content?: ReactNode;
|
|
1348
1264
|
footer?: ReactNode;
|
|
1349
|
-
|
|
1265
|
+
confirmText?: ReactNode;
|
|
1350
1266
|
cancelText?: ReactNode;
|
|
1351
1267
|
mask?: boolean;
|
|
1352
1268
|
noOkBtn?: boolean;
|
|
@@ -1405,11 +1321,11 @@ interface InfiniteloadingProps extends BasicComponent {
|
|
|
1405
1321
|
useWindow: boolean;
|
|
1406
1322
|
useCapture: boolean;
|
|
1407
1323
|
isOpenRefresh: boolean;
|
|
1408
|
-
pullIcon:
|
|
1409
|
-
|
|
1410
|
-
loadIcon:
|
|
1411
|
-
|
|
1412
|
-
|
|
1324
|
+
pullIcon: ReactNode;
|
|
1325
|
+
pullText: string;
|
|
1326
|
+
loadIcon: ReactNode;
|
|
1327
|
+
loadingText: string;
|
|
1328
|
+
loadMoreText: string;
|
|
1413
1329
|
className: string;
|
|
1414
1330
|
style: React__default.CSSProperties;
|
|
1415
1331
|
onRefresh: (param: () => void) => void;
|
|
@@ -1581,18 +1497,16 @@ declare class AnimatingNumbers extends Component<AnimatingNumbersProps, Animatin
|
|
|
1581
1497
|
}
|
|
1582
1498
|
|
|
1583
1499
|
interface AudioProps extends BasicComponent {
|
|
1584
|
-
|
|
1585
|
-
style: CSSProperties;
|
|
1586
|
-
url: string;
|
|
1500
|
+
src: string;
|
|
1587
1501
|
muted: boolean;
|
|
1588
1502
|
autoplay: boolean;
|
|
1589
1503
|
loop: boolean;
|
|
1590
1504
|
preload: string;
|
|
1591
1505
|
type: string;
|
|
1592
|
-
|
|
1506
|
+
onBack: (e: HTMLAudioElement) => void;
|
|
1593
1507
|
onForward: (e: HTMLAudioElement) => void;
|
|
1594
1508
|
onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1595
|
-
|
|
1509
|
+
onEnd: (e: HTMLAudioElement) => void;
|
|
1596
1510
|
onMute: (e: HTMLAudioElement) => void;
|
|
1597
1511
|
onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1598
1512
|
}
|
|
@@ -1600,8 +1514,7 @@ declare const Audio: FunctionComponent<Partial<AudioProps> & React__default.HTML
|
|
|
1600
1514
|
|
|
1601
1515
|
interface AvatarProps extends BasicComponent {
|
|
1602
1516
|
size: string;
|
|
1603
|
-
icon:
|
|
1604
|
-
iconSize?: string | number;
|
|
1517
|
+
icon: React__default.ReactNode;
|
|
1605
1518
|
shape: AvatarShape;
|
|
1606
1519
|
bgColor: string;
|
|
1607
1520
|
color: string;
|
|
@@ -1639,7 +1552,7 @@ interface BadgeProps extends BasicComponent {
|
|
|
1639
1552
|
right: string;
|
|
1640
1553
|
zIndex: string;
|
|
1641
1554
|
color: string;
|
|
1642
|
-
|
|
1555
|
+
icon: ReactNode;
|
|
1643
1556
|
children?: ReactNode;
|
|
1644
1557
|
}
|
|
1645
1558
|
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
@@ -1661,9 +1574,7 @@ interface CollapseProps {
|
|
|
1661
1574
|
style: React__default.CSSProperties;
|
|
1662
1575
|
activeName: Array<number | string> | number | string;
|
|
1663
1576
|
accordion: boolean;
|
|
1664
|
-
|
|
1665
|
-
iconSize: string;
|
|
1666
|
-
iconColor: string;
|
|
1577
|
+
expandIcon: ReactNode;
|
|
1667
1578
|
rotate: number;
|
|
1668
1579
|
onChange: (isOpen: boolean, name: string) => void;
|
|
1669
1580
|
children?: React__default.ReactNode;
|
|
@@ -1671,23 +1582,17 @@ interface CollapseProps {
|
|
|
1671
1582
|
declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
|
|
1672
1583
|
|
|
1673
1584
|
interface CollapseItemProps extends BasicComponent {
|
|
1674
|
-
title:
|
|
1585
|
+
title: ReactNode;
|
|
1675
1586
|
name: string;
|
|
1676
1587
|
isOpen: boolean;
|
|
1677
|
-
|
|
1678
|
-
iconSize: string;
|
|
1679
|
-
iconColor: string;
|
|
1588
|
+
expandIcon: ReactNode;
|
|
1680
1589
|
disabled: boolean;
|
|
1681
1590
|
rotate: number;
|
|
1682
|
-
subTitle:
|
|
1683
|
-
titleIcon: string;
|
|
1684
|
-
titleIconColor: string;
|
|
1685
|
-
titleIconPosition: string;
|
|
1686
|
-
titleIconSize: string;
|
|
1591
|
+
subTitle: ReactNode;
|
|
1687
1592
|
childnull: boolean;
|
|
1688
1593
|
onToggle: (isOpen: boolean, name: string) => void;
|
|
1689
1594
|
}
|
|
1690
|
-
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1595
|
+
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
1691
1596
|
|
|
1692
1597
|
interface CountDownProps {
|
|
1693
1598
|
className?: string;
|
|
@@ -1765,13 +1670,13 @@ interface NoticeBarProps extends BasicComponent {
|
|
|
1765
1670
|
text: string;
|
|
1766
1671
|
closeMode: boolean;
|
|
1767
1672
|
wrapable: boolean;
|
|
1768
|
-
leftIcon:
|
|
1673
|
+
leftIcon: ReactNode;
|
|
1674
|
+
rightIcon: ReactNode;
|
|
1769
1675
|
color: string;
|
|
1770
1676
|
background: string;
|
|
1771
1677
|
delay: string | number;
|
|
1772
1678
|
scrollable: boolean | null;
|
|
1773
1679
|
speed: number;
|
|
1774
|
-
rightIcon?: HTMLElement | any;
|
|
1775
1680
|
close?: (event: any) => void;
|
|
1776
1681
|
click?: (event: any) => void;
|
|
1777
1682
|
onClose?: (event: any) => void;
|
|
@@ -1784,7 +1689,7 @@ type PopoverTheme = 'light' | 'dark';
|
|
|
1784
1689
|
type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1785
1690
|
interface List {
|
|
1786
1691
|
name: string;
|
|
1787
|
-
icon?:
|
|
1692
|
+
icon?: React__default.ReactNode;
|
|
1788
1693
|
disabled?: boolean;
|
|
1789
1694
|
}
|
|
1790
1695
|
interface PopoverProps extends BasicComponent {
|
|
@@ -1832,9 +1737,7 @@ interface ProgressProps extends BasicComponent {
|
|
|
1832
1737
|
textBackground: string;
|
|
1833
1738
|
textType: TextType;
|
|
1834
1739
|
status: boolean;
|
|
1835
|
-
|
|
1836
|
-
iconColor: string;
|
|
1837
|
-
iconSize: string;
|
|
1740
|
+
icon: ReactNode;
|
|
1838
1741
|
children: ReactNode;
|
|
1839
1742
|
}
|
|
1840
1743
|
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1861,9 +1764,8 @@ interface StepProps extends BasicComponent {
|
|
|
1861
1764
|
title: string;
|
|
1862
1765
|
content: string;
|
|
1863
1766
|
activeIndex: number;
|
|
1864
|
-
icon:
|
|
1767
|
+
icon: ReactNode;
|
|
1865
1768
|
iconColor: string;
|
|
1866
|
-
size: string;
|
|
1867
1769
|
className: string;
|
|
1868
1770
|
style: React__default.CSSProperties;
|
|
1869
1771
|
renderContent: () => React__default.ReactNode;
|
|
@@ -1923,6 +1825,7 @@ interface BasicTableProps extends BasicComponent {
|
|
|
1923
1825
|
summary?: React__default.ReactNode;
|
|
1924
1826
|
striped?: boolean;
|
|
1925
1827
|
noData?: React__default.ReactNode;
|
|
1828
|
+
sorterIcon?: React__default.ReactNode;
|
|
1926
1829
|
onSorter?: (item: TableColumnProps, data: Array<any>) => void;
|
|
1927
1830
|
showHeader?: boolean;
|
|
1928
1831
|
}
|
|
@@ -1945,7 +1848,7 @@ interface TagProps extends BasicComponent {
|
|
|
1945
1848
|
round: boolean;
|
|
1946
1849
|
mark: boolean;
|
|
1947
1850
|
closeable: boolean;
|
|
1948
|
-
|
|
1851
|
+
closeIcon: React__default.ReactNode;
|
|
1949
1852
|
prefixCls: string;
|
|
1950
1853
|
onClick: (e: MouseEvent) => void;
|
|
1951
1854
|
onClose: (e?: any) => void;
|
|
@@ -1965,8 +1868,8 @@ interface TrendArrowProps {
|
|
|
1965
1868
|
riseColor: string;
|
|
1966
1869
|
dropColor: string;
|
|
1967
1870
|
iconSize: string;
|
|
1968
|
-
|
|
1969
|
-
|
|
1871
|
+
upIcon: React__default.ReactNode;
|
|
1872
|
+
downIcon: React__default.ReactNode;
|
|
1970
1873
|
className: string;
|
|
1971
1874
|
style: React__default.CSSProperties;
|
|
1972
1875
|
}
|
|
@@ -1990,11 +1893,11 @@ interface VideoProps {
|
|
|
1990
1893
|
play: (e: HTMLVideoElement) => void;
|
|
1991
1894
|
pause: (e: HTMLVideoElement) => void;
|
|
1992
1895
|
playend: (e: HTMLVideoElement) => void;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1896
|
+
onPlay: (e: HTMLVideoElement) => void;
|
|
1897
|
+
onPause: (e: HTMLVideoElement) => void;
|
|
1898
|
+
onPlayEnd: (e: HTMLVideoElement) => void;
|
|
1996
1899
|
}
|
|
1997
|
-
declare const Video: FunctionComponent<Partial<VideoProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1900
|
+
declare const Video: FunctionComponent<Partial<VideoProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;
|
|
1998
1901
|
|
|
1999
1902
|
type Data = any;
|
|
2000
1903
|
interface BasicVirtualListProps {
|
|
@@ -2091,16 +1994,16 @@ interface AddressProps extends BasicComponent {
|
|
|
2091
1994
|
existAddressTitle: string;
|
|
2092
1995
|
customAndExistTitle: string;
|
|
2093
1996
|
height: string | number;
|
|
2094
|
-
defaultIcon:
|
|
2095
|
-
selectedIcon:
|
|
2096
|
-
closeBtnIcon:
|
|
2097
|
-
backBtnIcon:
|
|
1997
|
+
defaultIcon: React__default.ReactNode;
|
|
1998
|
+
selectedIcon: React__default.ReactNode;
|
|
1999
|
+
closeBtnIcon: React__default.ReactNode;
|
|
2000
|
+
backBtnIcon: React__default.ReactNode;
|
|
2098
2001
|
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
2099
2002
|
onClose?: (cal: CloseCallBack) => void;
|
|
2100
|
-
|
|
2003
|
+
onCancel?: (cal: {
|
|
2101
2004
|
closeWay: string;
|
|
2102
2005
|
}) => void;
|
|
2103
|
-
|
|
2006
|
+
onSwitch?: (cal: {
|
|
2104
2007
|
type: string;
|
|
2105
2008
|
}) => void;
|
|
2106
2009
|
onChange?: (cal: ChangeCallBack) => void;
|
|
@@ -2172,7 +2075,7 @@ interface TimePannelProps {
|
|
|
2172
2075
|
declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2173
2076
|
|
|
2174
2077
|
interface DateType {
|
|
2175
|
-
|
|
2078
|
+
paneKey?: string | number;
|
|
2176
2079
|
date: string;
|
|
2177
2080
|
}
|
|
2178
2081
|
interface TimeSelectProps {
|
|
@@ -2195,4 +2098,4 @@ interface TimeSelectProps {
|
|
|
2195
2098
|
}
|
|
2196
2099
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
2197
2100
|
|
|
2198
|
-
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,
|
|
2101
|
+
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 };
|