@nutui/nutui-react 1.5.1 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -35
- 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 +104 -114
- 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 +430 -433
- 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 +46 -41
- 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 +75 -93
- 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 +109 -119
- 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 +46 -35
- 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 +39 -27
- 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 +180 -229
- 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 +8327 -4829
- package/dist/nutui.react.umd.js +8328 -4830
- package/dist/packages/actionsheet/actionsheet.scss +10 -2
- 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/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/progress/progress.scss +0 -1
- package/dist/packages/radio/radio.scss +8 -0
- package/dist/packages/rate/rate.scss +29 -6
- package/dist/packages/searchbar/searchbar.scss +0 -1
- package/dist/packages/shortpassword/shortpassword.scss +4 -1
- 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/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 +147 -240
- 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,71 +179,46 @@ 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
|
-
|
|
216
|
+
overlayStyle: React__default.CSSProperties;
|
|
217
|
+
overlayClass: string;
|
|
259
218
|
popClass: string;
|
|
260
219
|
closeable: boolean;
|
|
261
220
|
closeIconPosition: string;
|
|
262
|
-
closeIcon:
|
|
263
|
-
closeIconSize?: string | number;
|
|
221
|
+
closeIcon: React__default.ReactNode;
|
|
264
222
|
destroyOnClose: boolean;
|
|
265
223
|
teleport: Teleport;
|
|
266
224
|
overlay: boolean;
|
|
@@ -288,9 +246,7 @@ type ContentPositionType = 'left' | 'center' | 'right';
|
|
|
288
246
|
type DirectionType = 'horizontal' | 'vertical';
|
|
289
247
|
interface DividerProps {
|
|
290
248
|
contentPosition: ContentPositionType;
|
|
291
|
-
|
|
292
|
-
hairline: boolean;
|
|
293
|
-
styles?: React__default.CSSProperties;
|
|
249
|
+
style?: React__default.CSSProperties;
|
|
294
250
|
className?: string;
|
|
295
251
|
direction?: DirectionType;
|
|
296
252
|
}
|
|
@@ -299,17 +255,9 @@ declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.
|
|
|
299
255
|
type GridDirection$1 = 'horizontal' | 'vertical';
|
|
300
256
|
interface GridItemProps extends BasicComponent {
|
|
301
257
|
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
258
|
index: number;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
gutter: string | number;
|
|
259
|
+
columns: string | number;
|
|
260
|
+
gap: string | number;
|
|
313
261
|
center: boolean;
|
|
314
262
|
square: boolean;
|
|
315
263
|
reverse: boolean;
|
|
@@ -319,20 +267,19 @@ declare const GridItem: FunctionComponent<Partial<GridItemProps> & React__defaul
|
|
|
319
267
|
|
|
320
268
|
type GridDirection = 'horizontal' | 'vertical';
|
|
321
269
|
interface GridProps {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
gutter: string | number;
|
|
270
|
+
columns: string | number;
|
|
271
|
+
gap: string | number;
|
|
325
272
|
center: boolean;
|
|
326
273
|
square: boolean;
|
|
327
274
|
reverse: boolean;
|
|
328
275
|
direction: GridDirection;
|
|
329
276
|
className?: string;
|
|
330
|
-
iconSize?: string | number;
|
|
331
|
-
iconColor?: string;
|
|
332
277
|
style?: CSSProperties;
|
|
333
278
|
onClick: (item: GridItemProps, index: number) => void;
|
|
334
279
|
}
|
|
335
|
-
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'
|
|
280
|
+
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>> & {
|
|
281
|
+
Item: typeof GridItem;
|
|
282
|
+
};
|
|
336
283
|
|
|
337
284
|
interface LayoutProps {
|
|
338
285
|
}
|
|
@@ -350,16 +297,14 @@ interface RowProps {
|
|
|
350
297
|
declare const Row: FunctionComponent<Partial<RowProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
351
298
|
|
|
352
299
|
interface StickyProps extends BasicComponent {
|
|
353
|
-
container
|
|
354
|
-
position
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
bottom?: number;
|
|
358
|
-
zIndex?: number;
|
|
300
|
+
container: React__default.RefObject<HTMLElement>;
|
|
301
|
+
position: 'top' | 'bottom';
|
|
302
|
+
threshold: number;
|
|
303
|
+
zIndex: number;
|
|
359
304
|
children: React__default.ReactNode;
|
|
360
|
-
onChange
|
|
305
|
+
onChange: (val: boolean) => void;
|
|
361
306
|
}
|
|
362
|
-
declare const Sticky: FunctionComponent<StickyProps
|
|
307
|
+
declare const Sticky: FunctionComponent<Partial<StickyProps>>;
|
|
363
308
|
|
|
364
309
|
declare const elevatorContext: React__default.Context<ElevatorData>;
|
|
365
310
|
interface ElevatorProps {
|
|
@@ -390,28 +335,23 @@ type Position$2 = {
|
|
|
390
335
|
bottom?: string;
|
|
391
336
|
};
|
|
392
337
|
interface FixedNavProps extends BasicComponent {
|
|
393
|
-
fixednavClass: string;
|
|
394
338
|
visible: boolean;
|
|
395
339
|
overlay: boolean;
|
|
396
|
-
|
|
340
|
+
list: Array<any>;
|
|
397
341
|
activeText: string;
|
|
398
|
-
|
|
342
|
+
inactiveText: string;
|
|
399
343
|
position: Position$2;
|
|
400
344
|
type: Direction$1;
|
|
401
|
-
onChange: (
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
slotBtn: React__default.ReactNode;
|
|
345
|
+
onChange: (item: any) => void;
|
|
346
|
+
onSelect: (item: any, event: MouseEvent$1) => void;
|
|
347
|
+
content: React__default.ReactNode;
|
|
405
348
|
}
|
|
406
|
-
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
349
|
+
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
|
|
407
350
|
|
|
408
351
|
interface IndicatorProps {
|
|
409
|
-
|
|
352
|
+
total: number;
|
|
410
353
|
current: number;
|
|
411
|
-
|
|
412
|
-
align: 'left' | 'right' | 'center';
|
|
413
|
-
fillZero: boolean;
|
|
414
|
-
vertical: boolean;
|
|
354
|
+
direction: string;
|
|
415
355
|
}
|
|
416
356
|
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
417
357
|
|
|
@@ -422,7 +362,7 @@ interface MenuProps extends BasicComponent {
|
|
|
422
362
|
closeOnClickOverlay: boolean;
|
|
423
363
|
scrollFixed: boolean | string | number;
|
|
424
364
|
lockScroll: boolean;
|
|
425
|
-
titleIcon:
|
|
365
|
+
titleIcon: React__default.ReactNode;
|
|
426
366
|
children: React__default.ReactNode;
|
|
427
367
|
}
|
|
428
368
|
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
@@ -438,12 +378,10 @@ interface MenuItemProps extends BasicComponent {
|
|
|
438
378
|
options: OptionItem[];
|
|
439
379
|
disabled: boolean;
|
|
440
380
|
columns: number;
|
|
441
|
-
optionsIcon:
|
|
381
|
+
optionsIcon: React__default.ReactNode;
|
|
442
382
|
direction: string;
|
|
443
383
|
activeTitleClass: string;
|
|
444
384
|
inactiveTitleClass: string;
|
|
445
|
-
fontClassName: string;
|
|
446
|
-
iconClassPrefix: string;
|
|
447
385
|
value: string | number;
|
|
448
386
|
onChange: (event: any) => void;
|
|
449
387
|
children: React__default.ReactNode;
|
|
@@ -453,9 +391,8 @@ declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuIte
|
|
|
453
391
|
interface NavBarProps$1 extends BasicComponent {
|
|
454
392
|
leftShow: boolean;
|
|
455
393
|
title: string;
|
|
456
|
-
titIcon: string;
|
|
457
394
|
leftText: string;
|
|
458
|
-
|
|
395
|
+
description: string;
|
|
459
396
|
className: string;
|
|
460
397
|
fixed: boolean;
|
|
461
398
|
safeAreaInsetTop: boolean;
|
|
@@ -471,22 +408,18 @@ interface NavBarProps$1 extends BasicComponent {
|
|
|
471
408
|
}
|
|
472
409
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
473
410
|
|
|
474
|
-
interface PaginationProps {
|
|
411
|
+
interface PaginationProps extends BasicComponent {
|
|
412
|
+
value: number;
|
|
475
413
|
defaultValue: number;
|
|
476
|
-
modelValue: number;
|
|
477
414
|
mode: 'multi' | 'simple';
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
pageNodeRender: (page: any) => React__default.ReactNode;
|
|
415
|
+
prev: ReactNode;
|
|
416
|
+
next: ReactNode;
|
|
417
|
+
total: number;
|
|
418
|
+
pageSize: number;
|
|
419
|
+
itemSize: number;
|
|
420
|
+
ellipse: boolean;
|
|
421
|
+
itemRender: (page: any) => ReactNode;
|
|
486
422
|
onChange: (currPage: number) => void;
|
|
487
|
-
updatecurrent: (currPage: number) => void;
|
|
488
|
-
style?: React__default.CSSProperties;
|
|
489
|
-
className?: string;
|
|
490
423
|
}
|
|
491
424
|
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
492
425
|
|
|
@@ -506,10 +439,10 @@ declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
|
506
439
|
|
|
507
440
|
type SideNavBarItemProps = {
|
|
508
441
|
title: string;
|
|
509
|
-
|
|
510
|
-
onClick?: ({ title,
|
|
442
|
+
key: string | number;
|
|
443
|
+
onClick?: ({ title, key }: {
|
|
511
444
|
title: string;
|
|
512
|
-
|
|
445
|
+
key: string | number;
|
|
513
446
|
}) => void;
|
|
514
447
|
children?: React__default.ReactNode;
|
|
515
448
|
};
|
|
@@ -517,12 +450,12 @@ declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
|
|
|
517
450
|
|
|
518
451
|
type SubSideNavBarProps = {
|
|
519
452
|
title: string;
|
|
520
|
-
|
|
453
|
+
key: string | number;
|
|
521
454
|
open?: boolean;
|
|
522
455
|
children?: React__default.ReactNode;
|
|
523
|
-
onClick?: ({ title,
|
|
456
|
+
onClick?: ({ title, key, isShow, }: {
|
|
524
457
|
title: string;
|
|
525
|
-
|
|
458
|
+
key: string | number;
|
|
526
459
|
isShow: boolean;
|
|
527
460
|
}) => void;
|
|
528
461
|
};
|
|
@@ -545,11 +478,9 @@ declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
|
|
|
545
478
|
|
|
546
479
|
interface TabbarItemProps extends BasicComponent {
|
|
547
480
|
dot: boolean;
|
|
548
|
-
size: string | number;
|
|
549
|
-
iconSize: string | number;
|
|
550
481
|
className: string;
|
|
551
482
|
tabTitle: string;
|
|
552
|
-
icon:
|
|
483
|
+
icon: React__default.ReactNode;
|
|
553
484
|
href: string;
|
|
554
485
|
num: string | number;
|
|
555
486
|
active: boolean;
|
|
@@ -726,7 +657,8 @@ type CheckboxTextPosition = 'left' | 'right';
|
|
|
726
657
|
type CheckboxDirection = 'horizontal' | 'vertical';
|
|
727
658
|
interface CheckboxGroupProps {
|
|
728
659
|
disabled: boolean;
|
|
729
|
-
|
|
660
|
+
value?: string[];
|
|
661
|
+
defaultValue?: string[];
|
|
730
662
|
max: number | undefined;
|
|
731
663
|
textPosition: CheckboxTextPosition;
|
|
732
664
|
direction: CheckboxDirection;
|
|
@@ -738,16 +670,17 @@ declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Partial<Ch
|
|
|
738
670
|
interface CheckboxProps extends BasicComponent {
|
|
739
671
|
checked: boolean;
|
|
740
672
|
disabled: boolean;
|
|
673
|
+
defaultChecked: boolean;
|
|
741
674
|
textPosition: 'left' | 'right';
|
|
742
675
|
iconSize: string | number;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
676
|
+
icon: React__default.ReactNode;
|
|
677
|
+
checkedIcon: React__default.ReactNode;
|
|
678
|
+
indeterminateIcon: React__default.ReactNode;
|
|
746
679
|
iconClassPrefix: string;
|
|
747
680
|
iconFontClassName: string;
|
|
748
681
|
indeterminate: boolean;
|
|
749
682
|
label: string | number;
|
|
750
|
-
onChange: (state: boolean
|
|
683
|
+
onChange: (state: boolean) => void;
|
|
751
684
|
}
|
|
752
685
|
declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
|
|
753
686
|
Group: typeof CheckboxGroup;
|
|
@@ -927,12 +860,10 @@ interface InputProps extends BasicComponent {
|
|
|
927
860
|
readonly: boolean;
|
|
928
861
|
error: boolean;
|
|
929
862
|
maxlength: any;
|
|
930
|
-
leftIcon:
|
|
931
|
-
|
|
932
|
-
rightIcon: string;
|
|
933
|
-
rightIconSize: string | number;
|
|
863
|
+
leftIcon: React__default.ReactNode;
|
|
864
|
+
rightIcon: React__default.ReactNode;
|
|
934
865
|
clearable: boolean;
|
|
935
|
-
clearIcon:
|
|
866
|
+
clearIcon: React__default.ReactNode;
|
|
936
867
|
clearSize: string | number;
|
|
937
868
|
border: boolean;
|
|
938
869
|
formatTrigger: InputFormatTrigger;
|
|
@@ -961,32 +892,26 @@ declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default
|
|
|
961
892
|
|
|
962
893
|
interface InputNumberProps extends BasicComponent {
|
|
963
894
|
disabled: boolean;
|
|
964
|
-
buttonSize: string | number;
|
|
965
895
|
min: string | number;
|
|
966
896
|
max: string | number;
|
|
967
|
-
inputWidth: string | number;
|
|
968
897
|
readonly: boolean;
|
|
969
|
-
|
|
898
|
+
value: string | number;
|
|
899
|
+
defaultValue: string | number;
|
|
900
|
+
allowEmpty: boolean;
|
|
970
901
|
step: string | number;
|
|
971
|
-
|
|
972
|
-
|
|
902
|
+
digits: string | number;
|
|
903
|
+
async: boolean;
|
|
973
904
|
className: string;
|
|
974
905
|
style: React__default.CSSProperties;
|
|
975
906
|
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;
|
|
907
|
+
onPlus: (e: MouseEvent) => void;
|
|
908
|
+
onMinus: (e: MouseEvent) => void;
|
|
984
909
|
onOverlimit: (e: MouseEvent) => void;
|
|
985
|
-
|
|
910
|
+
onBlur: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
986
911
|
onFocus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
987
|
-
|
|
912
|
+
onChange: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
988
913
|
}
|
|
989
|
-
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
914
|
+
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
990
915
|
|
|
991
916
|
interface NumberKeyboardProps {
|
|
992
917
|
confirmText: string;
|
|
@@ -1013,7 +938,7 @@ interface PickerOption {
|
|
|
1013
938
|
className?: string | number;
|
|
1014
939
|
}
|
|
1015
940
|
interface PickerProps {
|
|
1016
|
-
|
|
941
|
+
visible: boolean;
|
|
1017
942
|
title?: string;
|
|
1018
943
|
listData: (PickerOption | PickerOption[])[];
|
|
1019
944
|
defaultValueData?: (number | string)[];
|
|
@@ -1049,8 +974,8 @@ interface RadioProps extends BasicComponent {
|
|
|
1049
974
|
shape: Shape;
|
|
1050
975
|
textPosition: Position;
|
|
1051
976
|
value: string | number | boolean;
|
|
1052
|
-
|
|
1053
|
-
|
|
977
|
+
icon: React__default.ReactNode;
|
|
978
|
+
checkedIcon: React__default.ReactNode;
|
|
1054
979
|
iconSize: string | number;
|
|
1055
980
|
onChange: MouseEventHandler<HTMLDivElement>;
|
|
1056
981
|
}
|
|
@@ -1088,19 +1013,16 @@ interface RangeProps {
|
|
|
1088
1013
|
declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
1089
1014
|
|
|
1090
1015
|
interface RateProps extends BasicComponent {
|
|
1091
|
-
count:
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
checkedIcon: string;
|
|
1098
|
-
uncheckedIcon: string;
|
|
1016
|
+
count: number;
|
|
1017
|
+
value: number;
|
|
1018
|
+
defaultValue: number;
|
|
1019
|
+
min: number;
|
|
1020
|
+
checkedIcon: React__default.ReactNode;
|
|
1021
|
+
uncheckedIcon: React__default.ReactNode;
|
|
1099
1022
|
disabled: boolean;
|
|
1100
|
-
|
|
1023
|
+
readOnly: boolean;
|
|
1101
1024
|
allowHalf: boolean;
|
|
1102
|
-
|
|
1103
|
-
onChange: (val: number) => void;
|
|
1025
|
+
onChange: (value: number) => void;
|
|
1104
1026
|
}
|
|
1105
1027
|
declare const Rate: FunctionComponent<Partial<RateProps>>;
|
|
1106
1028
|
|
|
@@ -1119,7 +1041,7 @@ interface SearchBarProps extends BasicComponent {
|
|
|
1119
1041
|
maxLength?: number;
|
|
1120
1042
|
/** 是否启用清除图标,点击清除图标后会清空输入框 */
|
|
1121
1043
|
clearable?: boolean;
|
|
1122
|
-
|
|
1044
|
+
clearSize?: string | number;
|
|
1123
1045
|
/** 搜索框外部背景色 */
|
|
1124
1046
|
background?: string;
|
|
1125
1047
|
/** 搜索框背景色 */
|
|
@@ -1169,8 +1091,10 @@ declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React_
|
|
|
1169
1091
|
|
|
1170
1092
|
interface ShortPasswordProps extends BasicComponent {
|
|
1171
1093
|
title: string;
|
|
1172
|
-
|
|
1094
|
+
description: string;
|
|
1173
1095
|
tips: string;
|
|
1096
|
+
tipsIcon: React__default.ReactNode;
|
|
1097
|
+
iconSize: string | number;
|
|
1174
1098
|
visible: boolean;
|
|
1175
1099
|
modelValue: string | number;
|
|
1176
1100
|
errorMsg: string;
|
|
@@ -1236,7 +1160,7 @@ interface UploaderProps extends BasicComponent {
|
|
|
1236
1160
|
maximize: number;
|
|
1237
1161
|
defaultFileList: FileType<string>[];
|
|
1238
1162
|
listType: string;
|
|
1239
|
-
uploadIcon:
|
|
1163
|
+
uploadIcon: React__default.ReactNode;
|
|
1240
1164
|
uploadIconSize: string | number;
|
|
1241
1165
|
uploadIconTip: string;
|
|
1242
1166
|
name: string;
|
|
@@ -1304,7 +1228,7 @@ type ItemType<T> = {
|
|
|
1304
1228
|
[key: string]: T;
|
|
1305
1229
|
};
|
|
1306
1230
|
interface ActionSheetProps {
|
|
1307
|
-
|
|
1231
|
+
cancelText: string;
|
|
1308
1232
|
optionTag: string;
|
|
1309
1233
|
optionSubTag: string;
|
|
1310
1234
|
chooseTagValue: string;
|
|
@@ -1321,16 +1245,10 @@ interface ActionSheetProps {
|
|
|
1321
1245
|
declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1322
1246
|
|
|
1323
1247
|
interface BackTopProps extends BasicComponent {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
right: number;
|
|
1327
|
-
elId: string;
|
|
1328
|
-
distance: number;
|
|
1248
|
+
target: string;
|
|
1249
|
+
threshold: number;
|
|
1329
1250
|
zIndex: number;
|
|
1330
|
-
isAnimation: boolean;
|
|
1331
1251
|
duration: number;
|
|
1332
|
-
children?: HTMLElement | any;
|
|
1333
|
-
style?: React__default.CSSProperties;
|
|
1334
1252
|
onClick?: (event: MouseEvent) => void;
|
|
1335
1253
|
}
|
|
1336
1254
|
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -1346,7 +1264,7 @@ interface BasicDialogProps {
|
|
|
1346
1264
|
title?: ReactNode;
|
|
1347
1265
|
content?: ReactNode;
|
|
1348
1266
|
footer?: ReactNode;
|
|
1349
|
-
|
|
1267
|
+
confirmText?: ReactNode;
|
|
1350
1268
|
cancelText?: ReactNode;
|
|
1351
1269
|
mask?: boolean;
|
|
1352
1270
|
noOkBtn?: boolean;
|
|
@@ -1405,11 +1323,11 @@ interface InfiniteloadingProps extends BasicComponent {
|
|
|
1405
1323
|
useWindow: boolean;
|
|
1406
1324
|
useCapture: boolean;
|
|
1407
1325
|
isOpenRefresh: boolean;
|
|
1408
|
-
pullIcon:
|
|
1409
|
-
|
|
1410
|
-
loadIcon:
|
|
1411
|
-
|
|
1412
|
-
|
|
1326
|
+
pullIcon: ReactNode;
|
|
1327
|
+
pullText: string;
|
|
1328
|
+
loadIcon: ReactNode;
|
|
1329
|
+
loadingText: string;
|
|
1330
|
+
loadMoreText: string;
|
|
1413
1331
|
className: string;
|
|
1414
1332
|
style: React__default.CSSProperties;
|
|
1415
1333
|
onRefresh: (param: () => void) => void;
|
|
@@ -1600,8 +1518,7 @@ declare const Audio: FunctionComponent<Partial<AudioProps> & React__default.HTML
|
|
|
1600
1518
|
|
|
1601
1519
|
interface AvatarProps extends BasicComponent {
|
|
1602
1520
|
size: string;
|
|
1603
|
-
icon:
|
|
1604
|
-
iconSize?: string | number;
|
|
1521
|
+
icon: React__default.ReactNode;
|
|
1605
1522
|
shape: AvatarShape;
|
|
1606
1523
|
bgColor: string;
|
|
1607
1524
|
color: string;
|
|
@@ -1639,7 +1556,7 @@ interface BadgeProps extends BasicComponent {
|
|
|
1639
1556
|
right: string;
|
|
1640
1557
|
zIndex: string;
|
|
1641
1558
|
color: string;
|
|
1642
|
-
|
|
1559
|
+
icon: ReactNode;
|
|
1643
1560
|
children?: ReactNode;
|
|
1644
1561
|
}
|
|
1645
1562
|
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
@@ -1661,9 +1578,7 @@ interface CollapseProps {
|
|
|
1661
1578
|
style: React__default.CSSProperties;
|
|
1662
1579
|
activeName: Array<number | string> | number | string;
|
|
1663
1580
|
accordion: boolean;
|
|
1664
|
-
|
|
1665
|
-
iconSize: string;
|
|
1666
|
-
iconColor: string;
|
|
1581
|
+
expandIcon: ReactNode;
|
|
1667
1582
|
rotate: number;
|
|
1668
1583
|
onChange: (isOpen: boolean, name: string) => void;
|
|
1669
1584
|
children?: React__default.ReactNode;
|
|
@@ -1671,23 +1586,17 @@ interface CollapseProps {
|
|
|
1671
1586
|
declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
|
|
1672
1587
|
|
|
1673
1588
|
interface CollapseItemProps extends BasicComponent {
|
|
1674
|
-
title:
|
|
1589
|
+
title: ReactNode;
|
|
1675
1590
|
name: string;
|
|
1676
1591
|
isOpen: boolean;
|
|
1677
|
-
|
|
1678
|
-
iconSize: string;
|
|
1679
|
-
iconColor: string;
|
|
1592
|
+
expandIcon: ReactNode;
|
|
1680
1593
|
disabled: boolean;
|
|
1681
1594
|
rotate: number;
|
|
1682
|
-
subTitle:
|
|
1683
|
-
titleIcon: string;
|
|
1684
|
-
titleIconColor: string;
|
|
1685
|
-
titleIconPosition: string;
|
|
1686
|
-
titleIconSize: string;
|
|
1595
|
+
subTitle: ReactNode;
|
|
1687
1596
|
childnull: boolean;
|
|
1688
1597
|
onToggle: (isOpen: boolean, name: string) => void;
|
|
1689
1598
|
}
|
|
1690
|
-
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1599
|
+
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
1691
1600
|
|
|
1692
1601
|
interface CountDownProps {
|
|
1693
1602
|
className?: string;
|
|
@@ -1765,13 +1674,13 @@ interface NoticeBarProps extends BasicComponent {
|
|
|
1765
1674
|
text: string;
|
|
1766
1675
|
closeMode: boolean;
|
|
1767
1676
|
wrapable: boolean;
|
|
1768
|
-
leftIcon:
|
|
1677
|
+
leftIcon: ReactNode;
|
|
1678
|
+
rightIcon: ReactNode;
|
|
1769
1679
|
color: string;
|
|
1770
1680
|
background: string;
|
|
1771
1681
|
delay: string | number;
|
|
1772
1682
|
scrollable: boolean | null;
|
|
1773
1683
|
speed: number;
|
|
1774
|
-
rightIcon?: HTMLElement | any;
|
|
1775
1684
|
close?: (event: any) => void;
|
|
1776
1685
|
click?: (event: any) => void;
|
|
1777
1686
|
onClose?: (event: any) => void;
|
|
@@ -1784,7 +1693,7 @@ type PopoverTheme = 'light' | 'dark';
|
|
|
1784
1693
|
type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1785
1694
|
interface List {
|
|
1786
1695
|
name: string;
|
|
1787
|
-
icon?:
|
|
1696
|
+
icon?: React__default.ReactNode;
|
|
1788
1697
|
disabled?: boolean;
|
|
1789
1698
|
}
|
|
1790
1699
|
interface PopoverProps extends BasicComponent {
|
|
@@ -1832,9 +1741,7 @@ interface ProgressProps extends BasicComponent {
|
|
|
1832
1741
|
textBackground: string;
|
|
1833
1742
|
textType: TextType;
|
|
1834
1743
|
status: boolean;
|
|
1835
|
-
|
|
1836
|
-
iconColor: string;
|
|
1837
|
-
iconSize: string;
|
|
1744
|
+
icon: ReactNode;
|
|
1838
1745
|
children: ReactNode;
|
|
1839
1746
|
}
|
|
1840
1747
|
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1861,9 +1768,8 @@ interface StepProps extends BasicComponent {
|
|
|
1861
1768
|
title: string;
|
|
1862
1769
|
content: string;
|
|
1863
1770
|
activeIndex: number;
|
|
1864
|
-
icon:
|
|
1771
|
+
icon: ReactNode;
|
|
1865
1772
|
iconColor: string;
|
|
1866
|
-
size: string;
|
|
1867
1773
|
className: string;
|
|
1868
1774
|
style: React__default.CSSProperties;
|
|
1869
1775
|
renderContent: () => React__default.ReactNode;
|
|
@@ -1923,6 +1829,7 @@ interface BasicTableProps extends BasicComponent {
|
|
|
1923
1829
|
summary?: React__default.ReactNode;
|
|
1924
1830
|
striped?: boolean;
|
|
1925
1831
|
noData?: React__default.ReactNode;
|
|
1832
|
+
sorterIcon?: React__default.ReactNode;
|
|
1926
1833
|
onSorter?: (item: TableColumnProps, data: Array<any>) => void;
|
|
1927
1834
|
showHeader?: boolean;
|
|
1928
1835
|
}
|
|
@@ -1945,7 +1852,7 @@ interface TagProps extends BasicComponent {
|
|
|
1945
1852
|
round: boolean;
|
|
1946
1853
|
mark: boolean;
|
|
1947
1854
|
closeable: boolean;
|
|
1948
|
-
|
|
1855
|
+
closeIcon: React__default.ReactNode;
|
|
1949
1856
|
prefixCls: string;
|
|
1950
1857
|
onClick: (e: MouseEvent) => void;
|
|
1951
1858
|
onClose: (e?: any) => void;
|
|
@@ -1965,8 +1872,8 @@ interface TrendArrowProps {
|
|
|
1965
1872
|
riseColor: string;
|
|
1966
1873
|
dropColor: string;
|
|
1967
1874
|
iconSize: string;
|
|
1968
|
-
|
|
1969
|
-
|
|
1875
|
+
upIcon: React__default.ReactNode;
|
|
1876
|
+
downIcon: React__default.ReactNode;
|
|
1970
1877
|
className: string;
|
|
1971
1878
|
style: React__default.CSSProperties;
|
|
1972
1879
|
}
|
|
@@ -1990,11 +1897,11 @@ interface VideoProps {
|
|
|
1990
1897
|
play: (e: HTMLVideoElement) => void;
|
|
1991
1898
|
pause: (e: HTMLVideoElement) => void;
|
|
1992
1899
|
playend: (e: HTMLVideoElement) => void;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1900
|
+
onPlay: (e: HTMLVideoElement) => void;
|
|
1901
|
+
onPause: (e: HTMLVideoElement) => void;
|
|
1902
|
+
onPlayEnd: (e: HTMLVideoElement) => void;
|
|
1996
1903
|
}
|
|
1997
|
-
declare const Video: FunctionComponent<Partial<VideoProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1904
|
+
declare const Video: FunctionComponent<Partial<VideoProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;
|
|
1998
1905
|
|
|
1999
1906
|
type Data = any;
|
|
2000
1907
|
interface BasicVirtualListProps {
|
|
@@ -2091,16 +1998,16 @@ interface AddressProps extends BasicComponent {
|
|
|
2091
1998
|
existAddressTitle: string;
|
|
2092
1999
|
customAndExistTitle: string;
|
|
2093
2000
|
height: string | number;
|
|
2094
|
-
defaultIcon:
|
|
2095
|
-
selectedIcon:
|
|
2096
|
-
closeBtnIcon:
|
|
2097
|
-
backBtnIcon:
|
|
2001
|
+
defaultIcon: React__default.ReactNode;
|
|
2002
|
+
selectedIcon: React__default.ReactNode;
|
|
2003
|
+
closeBtnIcon: React__default.ReactNode;
|
|
2004
|
+
backBtnIcon: React__default.ReactNode;
|
|
2098
2005
|
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
2099
2006
|
onClose?: (cal: CloseCallBack) => void;
|
|
2100
|
-
|
|
2007
|
+
onCancel?: (cal: {
|
|
2101
2008
|
closeWay: string;
|
|
2102
2009
|
}) => void;
|
|
2103
|
-
|
|
2010
|
+
onSwitch?: (cal: {
|
|
2104
2011
|
type: string;
|
|
2105
2012
|
}) => void;
|
|
2106
2013
|
onChange?: (cal: ChangeCallBack) => void;
|
|
@@ -2172,7 +2079,7 @@ interface TimePannelProps {
|
|
|
2172
2079
|
declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2173
2080
|
|
|
2174
2081
|
interface DateType {
|
|
2175
|
-
|
|
2082
|
+
paneKey?: string | number;
|
|
2176
2083
|
date: string;
|
|
2177
2084
|
}
|
|
2178
2085
|
interface TimeSelectProps {
|
|
@@ -2195,4 +2102,4 @@ interface TimeSelectProps {
|
|
|
2195
2102
|
}
|
|
2196
2103
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
2197
2104
|
|
|
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,
|
|
2105
|
+
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 };
|