@nutui/nutui-react-taro 1.5.2-beta.1 → 1.5.2
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/dist/esm/ActionSheet.js +90 -14
- package/dist/esm/Address.js +620 -21
- package/dist/esm/Animate.js +53 -7
- package/dist/esm/AnimatingNumbers.js +125 -7
- package/dist/esm/Audio.js +264 -19
- package/dist/esm/Avatar.js +130 -11
- package/dist/esm/{AvatarContext-c96afdcc.js → AvatarContext-15733596.js} +1 -3
- package/dist/esm/AvatarGroup.js +41 -11
- package/dist/esm/BackTop.js +138 -10
- package/dist/esm/Badge.js +71 -9
- package/dist/esm/Barrage.js +97 -8
- package/dist/esm/Button.js +108 -9
- package/dist/esm/Calendar.js +128 -20
- package/dist/esm/CalendarItem.js +674 -12
- package/dist/esm/Card.js +61 -11
- package/dist/esm/Cascader.js +671 -16
- package/dist/esm/Cell.js +101 -9
- package/dist/esm/CellGroup.js +2 -5
- package/dist/esm/Checkbox.js +5 -7
- package/dist/esm/CheckboxGroup.js +111 -8
- package/dist/esm/CircleProgress.js +114 -8
- package/dist/esm/Col.js +57 -7
- package/dist/esm/Collapse.js +97 -7
- package/dist/esm/CollapseItem.js +146 -8
- package/dist/esm/ConfigProvider.js +187 -8
- package/dist/esm/CountDown.js +247 -9
- package/dist/esm/DatePicker.js +309 -25
- package/dist/esm/Dialog.js +296 -17
- package/dist/esm/Divider.js +34 -7
- package/dist/esm/Drag.js +118 -7
- package/dist/esm/Elevator.js +234 -8
- package/dist/esm/Ellipsis.js +176 -10
- package/dist/esm/Empty.js +79 -8
- package/dist/esm/FixedNav.js +103 -14
- package/dist/esm/Form.js +215 -10
- package/dist/esm/FormItem.js +3 -10
- package/dist/esm/Grid.js +81 -11
- package/dist/esm/GridItem.js +123 -13
- package/dist/esm/Icon.js +2 -5
- package/dist/esm/Image.js +169 -11
- package/dist/esm/ImagePreview.js +225 -19
- package/dist/esm/Indicator.js +50 -7
- package/dist/esm/Infiniteloading.js +215 -14
- package/dist/esm/Input.js +362 -12
- package/dist/esm/InputNumber.js +275 -9
- package/dist/esm/Layout.js +13 -5
- package/dist/esm/Menu.js +153 -10
- package/dist/esm/MenuItem.js +175 -15
- package/dist/esm/NavBar.js +114 -9
- package/dist/esm/NoticeBar.js +568 -10
- package/dist/esm/Notify.js +234 -8
- package/dist/esm/NumberKeyboard.js +247 -17
- package/dist/esm/Overlay.js +2 -6
- package/dist/esm/Pagination.js +168 -9
- package/dist/esm/Picker.js +494 -22
- package/dist/esm/Popover.js +223 -12
- package/dist/esm/Popup.js +193 -13
- package/dist/esm/Price.js +84 -6
- package/dist/esm/Progress.js +122 -9
- package/dist/esm/PullToRefresh.js +276 -13
- package/dist/esm/Radio.js +4 -8
- package/dist/esm/RadioGroup.js +120 -7
- package/dist/esm/Range.js +406 -15
- package/dist/esm/Rate.js +121 -9
- package/dist/esm/Row.js +49 -7
- package/dist/esm/SearchBar.js +235 -12
- package/dist/esm/ShortPassword.js +191 -17
- package/dist/esm/SideNavBar.js +57 -19
- package/dist/esm/SideNavBarItem.js +24 -5
- package/dist/esm/Signature.js +153 -13
- package/dist/esm/Skeleton.js +98 -12
- package/dist/esm/Step.js +87 -10
- package/dist/esm/Steps.js +38 -8
- package/dist/esm/Sticky.js +190 -11
- package/dist/esm/SubSideNavBar.js +78 -6
- package/dist/esm/Swipe.js +230 -10
- package/dist/esm/Swiper.js +490 -9
- package/dist/esm/SwiperItem.js +36 -8
- package/dist/esm/Switch.js +71 -6
- package/dist/esm/TabPane.js +2 -5
- package/dist/esm/Tabbar.js +68 -6
- package/dist/esm/TabbarItem.js +78 -9
- package/dist/esm/Table.js +140 -12
- package/dist/esm/Tabs.js +5 -8
- package/dist/esm/Tag.js +110 -10
- package/dist/esm/TextArea.js +148 -9
- package/dist/esm/TimeDetail.js +67 -9
- package/dist/esm/TimePannel.js +29 -9
- package/dist/esm/TimeSelect.js +171 -19
- package/dist/esm/Toast.js +268 -7
- package/dist/esm/TrendArrow.js +99 -7
- package/dist/esm/Uploader.js +566 -17
- package/dist/esm/{UserContext-0aac9a82.js → UserContext-101ad4a4.js} +1 -3
- package/dist/esm/{UserContext-e402e1a6.js → UserContext-2629d479.js} +1 -3
- package/dist/esm/{UserContext-e8176108.js → UserContext-b33bcf21.js} +1 -3
- package/dist/esm/Video.js +90 -7
- package/dist/esm/VirtualList.js +313 -9
- package/dist/esm/WaterMark.js +111 -11
- package/dist/esm/{bem-350c1702.js → bem-3b438e61.js} +6 -3
- package/dist/esm/cellgroup-fcc72767.js +34 -0
- package/dist/esm/checkbox-44e13cd0.js +137 -0
- package/dist/esm/date-c7aad4c0.js +97 -0
- package/dist/esm/formitem-8a73a5fb.js +157 -0
- package/dist/esm/get-scroll-parent-5f85dee8.js +24 -0
- package/dist/esm/{grid.taro.context-c2bbfb4f.js → grid.context-2ee27d95.js} +2 -4
- package/dist/esm/icon-4ef1581c.js +70 -0
- package/dist/esm/index-030b7245.js +11 -0
- package/dist/esm/nutui-react.es.js +94 -119
- package/dist/esm/offsetContext-3ab00d40.js +16 -0
- package/dist/esm/overlay-de6c79d5.js +83 -0
- package/dist/esm/radio-9f141e6b.js +118 -0
- package/dist/esm/render-bbebb760.js +79 -0
- package/dist/esm/tabpane-01075e6c.js +29 -0
- package/dist/esm/tabs-e1b4e4b1.js +181 -0
- package/dist/esm/typings-f27b58f4.js +8 -0
- package/dist/esm/useClientRect-56bb675b.js +39 -0
- package/dist/esm/useTouch-cf73a407.js +99 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +15025 -13192
- package/dist/nutui.react.umd.js +15004 -13169
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +183 -176
- package/package.json +1 -1
- package/dist/esm/actionsheet.taro-e6a51446.js +0 -53
- package/dist/esm/address.taro-3a9b6396.js +0 -461
- package/dist/esm/animate.taro-fb7986d6.js +0 -40
- package/dist/esm/animatingnumbers.taro-03e5d61d.js +0 -104
- package/dist/esm/audio.taro-87ec8bf2.js +0 -161
- package/dist/esm/avatar.taro-3676f38f.js +0 -103
- package/dist/esm/avatargroup-f3574510.js +0 -34
- package/dist/esm/backtop.taro-66394a36.js +0 -48
- package/dist/esm/badge.taro-a4e59c11.js +0 -52
- package/dist/esm/barrage.taro-0495a1b2.js +0 -94
- package/dist/esm/button.taro-9244d065.js +0 -100
- package/dist/esm/calendar.taro-670842ea.js +0 -65
- package/dist/esm/calendaritem.taro-2a603571.js +0 -787
- package/dist/esm/can-use-dom-3eeb5af4.js +0 -6
- package/dist/esm/card.taro-e4c76dad.js +0 -33
- package/dist/esm/cascader.taro-eb1fb011.js +0 -438
- package/dist/esm/cell.taro-a10a74d3.js +0 -64
- package/dist/esm/cellgroup.taro-abe501bc.js +0 -25
- package/dist/esm/checkbox.taro-6120e3e3.js +0 -171
- package/dist/esm/circleprogress.taro-79854448.js +0 -109
- package/dist/esm/col.taro-53eed3cc.js +0 -41
- package/dist/esm/collapse.taro-1a9e4ba2.js +0 -83
- package/dist/esm/collapseitem-4d0bc55d.js +0 -83
- package/dist/esm/configprovider-67d19d3a.js +0 -19
- package/dist/esm/configprovider.taro-8d71eb49.js +0 -42
- package/dist/esm/countdown.taro-5b17c607.js +0 -226
- package/dist/esm/datepicker.taro-6e9b4b8f.js +0 -275
- package/dist/esm/dialog.taro-a3267d29.js +0 -118
- package/dist/esm/divider.taro-26d1d8b4.js +0 -35
- package/dist/esm/drag.taro-79bb8744.js +0 -110
- package/dist/esm/elevator.taro-6019669e.js +0 -178
- package/dist/esm/ellipsis.taro-f15f26da.js +0 -241
- package/dist/esm/empty.taro-04ae4389.js +0 -62
- package/dist/esm/fixednav.taro-1f05acaf.js +0 -53
- package/dist/esm/form.taro-0c8e7a39.js +0 -179
- package/dist/esm/formitem.taro-190a3326.js +0 -89
- package/dist/esm/get-scroll-parent-b4a07e65.js +0 -25
- package/dist/esm/grid.taro-3503b82c.js +0 -61
- package/dist/esm/griditem.taro-cdb3f119.js +0 -98
- package/dist/esm/icon-296a1bec.js +0 -63
- package/dist/esm/icon.taro-296a1bec.js +0 -63
- package/dist/esm/image.taro-142cf512.js +0 -64
- package/dist/esm/imagepreview.taro-c50bb0a3.js +0 -167
- package/dist/esm/index-5bcb0ff8.js +0 -7
- package/dist/esm/indicator.taro-cba8b010.js +0 -37
- package/dist/esm/infiniteloading.taro-183bccbf.js +0 -144
- package/dist/esm/input.taro-97af6c96.js +0 -240
- package/dist/esm/inputnumber.taro-91f65d17.js +0 -130
- package/dist/esm/layout.taro-9046d093.js +0 -11
- package/dist/esm/menu.taro-7e4038a1.js +0 -99
- package/dist/esm/menuitem.taro-96cc4f15.js +0 -130
- package/dist/esm/navbar.taro-777c4705.js +0 -79
- package/dist/esm/noticebar.taro-4a23cdee.js +0 -448
- package/dist/esm/notify.taro-e17c6f82.js +0 -75
- package/dist/esm/numberkeyboard.taro-1bc24744.js +0 -159
- package/dist/esm/offsetContext-c2a746fa.js +0 -5
- package/dist/esm/overlay.taro-21e87fb1.js +0 -69
- package/dist/esm/pagination.taro-715a173b.js +0 -124
- package/dist/esm/picker.taro-9ad1b7c5.js +0 -473
- package/dist/esm/popover.taro-ad5e76ea.js +0 -156
- package/dist/esm/popup.taro-01676bff.js +0 -137
- package/dist/esm/price.taro-776ed16e.js +0 -83
- package/dist/esm/progress.taro-f0ce38e9.js +0 -90
- package/dist/esm/pulltorefresh.taro-a294f656.js +0 -181
- package/dist/esm/radio.taro-a6eff96c.js +0 -168
- package/dist/esm/range.taro-d8fc7656.js +0 -332
- package/dist/esm/rate.taro-6cdf03bd.js +0 -75
- package/dist/esm/row.taro-f64d4a13.js +0 -46
- package/dist/esm/searchbar.taro-0c25927b.js +0 -152
- package/dist/esm/shortpassword.taro-9ee034f7.js +0 -111
- package/dist/esm/sidenavbar.taro-c307b35e.js +0 -35
- package/dist/esm/sidenavbaritem.taro-5a7965d0.js +0 -12
- package/dist/esm/signature.taro-ec4e713b.js +0 -143
- package/dist/esm/skeleton.taro-76faf63f.js +0 -62
- package/dist/esm/step.taro-b7903e8c.js +0 -59
- package/dist/esm/steps.taro-c82d2252.js +0 -30
- package/dist/esm/sticky.taro-218bda37.js +0 -138
- package/dist/esm/subsidenavbar.taro-69cb9752.js +0 -63
- package/dist/esm/supports-passive-c85ef996.js +0 -18
- package/dist/esm/swipe.taro-ea35f07f.js +0 -177
- package/dist/esm/swiper.taro-7a94e211.js +0 -451
- package/dist/esm/swiperitem-c9e3d0d5.js +0 -29
- package/dist/esm/switch.taro-34ca8228.js +0 -50
- package/dist/esm/tabbar.taro-9acfc2fa.js +0 -59
- package/dist/esm/tabbaritem.taro-bf517487.js +0 -58
- package/dist/esm/table.taro-91fc0c01.js +0 -93
- package/dist/esm/tabpane.taro-4ca340ef.js +0 -23
- package/dist/esm/tabs.taro-6a7524a4.js +0 -140
- package/dist/esm/tag.taro-23ba0834.js +0 -92
- package/dist/esm/textarea.taro-442e7350.js +0 -94
- package/dist/esm/timedetail.taro-5b2f2269.js +0 -44
- package/dist/esm/timepannel.taro-d6e40180.js +0 -22
- package/dist/esm/timeselect.taro-a07036f4.js +0 -133
- package/dist/esm/toast.taro-d6c14811.js +0 -109
- package/dist/esm/trendarrow.taro-b8c5ccd9.js +0 -73
- package/dist/esm/typings-b9828dba.js +0 -9
- package/dist/esm/uploader.taro-587e6bf3.js +0 -492
- package/dist/esm/useClientRect-1f8ed1fe.js +0 -18
- package/dist/esm/useTouch-db24bb5c.js +0 -69
- package/dist/esm/video-f1be8a91.js +0 -67
- package/dist/esm/virtuallist.taro-f0b0270d.js +0 -214
- package/dist/esm/watermark.taro-9ce2ae37.js +0 -114
- package/dist/esm/zh-CN-c779e6c1.js +0 -131
package/dist/style.mjs
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, MouseEventHandler, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, Component } from 'react';
|
|
3
|
-
import { ButtonProps as ButtonProps$1, ITouchEvent } from '@tarojs/components';
|
|
4
|
-
import Taro, { InnerAudioContext } from '@tarojs/taro';
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, MouseEventHandler, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
|
|
5
3
|
|
|
6
4
|
interface BasicComponent {
|
|
7
5
|
className?: string;
|
|
@@ -11,8 +9,7 @@ interface BasicComponent {
|
|
|
11
9
|
children?: ReactNode;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps {
|
|
12
|
+
interface ButtonProps extends BasicComponent {
|
|
16
13
|
className: string;
|
|
17
14
|
color: string;
|
|
18
15
|
shape: ButtonShape;
|
|
@@ -42,7 +39,6 @@ interface CellProps extends BasicComponent {
|
|
|
42
39
|
icon: string;
|
|
43
40
|
roundRadius: string | number;
|
|
44
41
|
url: string;
|
|
45
|
-
to: string;
|
|
46
42
|
replace: boolean;
|
|
47
43
|
center: boolean;
|
|
48
44
|
size: string;
|
|
@@ -233,6 +229,9 @@ interface ImageProps {
|
|
|
233
229
|
showLoading: boolean;
|
|
234
230
|
slotLoding: React__default.ReactNode;
|
|
235
231
|
slotError: React__default.ReactNode | string;
|
|
232
|
+
isLazy?: boolean;
|
|
233
|
+
loadingImg?: string;
|
|
234
|
+
errorImg?: string;
|
|
236
235
|
onClick?: (e: MouseEvent) => void;
|
|
237
236
|
onLoad?: () => void;
|
|
238
237
|
onError?: () => void;
|
|
@@ -249,9 +248,8 @@ interface OverlayProps {
|
|
|
249
248
|
closeOnClickOverlay: boolean;
|
|
250
249
|
visible: boolean;
|
|
251
250
|
lockScroll: boolean;
|
|
252
|
-
onClick: (event: ITouchEvent) => void;
|
|
253
251
|
}
|
|
254
|
-
declare const Overlay: FunctionComponent<Partial<OverlayProps> &
|
|
252
|
+
declare const Overlay: FunctionComponent<Partial<OverlayProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
255
253
|
|
|
256
254
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
257
255
|
interface PopupProps extends OverlayProps, BasicComponent {
|
|
@@ -269,12 +267,13 @@ interface PopupProps extends OverlayProps, BasicComponent {
|
|
|
269
267
|
round: boolean;
|
|
270
268
|
onOpen: () => void;
|
|
271
269
|
onClose: () => void;
|
|
270
|
+
onClick: (e: MouseEvent$1) => void;
|
|
272
271
|
onOpened: (e: HTMLElement) => void;
|
|
273
272
|
onClosed: (e: HTMLElement) => void;
|
|
274
|
-
onClickOverlay: (e:
|
|
273
|
+
onClickOverlay: (e: MouseEvent$1) => void;
|
|
275
274
|
onClickCloseIcon: (e: MouseEvent$1) => void;
|
|
276
275
|
}
|
|
277
|
-
declare const Popup: FunctionComponent<Partial<PopupProps> &
|
|
276
|
+
declare const Popup: FunctionComponent<Partial<PopupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
278
277
|
|
|
279
278
|
type EventType$1 = 'row' | 'col';
|
|
280
279
|
interface ColProps {
|
|
@@ -400,7 +399,7 @@ interface FixedNavProps extends BasicComponent {
|
|
|
400
399
|
position: Position$2;
|
|
401
400
|
type: Direction$1;
|
|
402
401
|
onChange: (v: any) => void;
|
|
403
|
-
onSelected: (
|
|
402
|
+
onSelected: (v: any, event: MouseEvent$1) => void;
|
|
404
403
|
slotList: React__default.ReactNode;
|
|
405
404
|
slotBtn: React__default.ReactNode;
|
|
406
405
|
}
|
|
@@ -552,7 +551,6 @@ interface TabbarItemProps extends BasicComponent {
|
|
|
552
551
|
tabTitle: string;
|
|
553
552
|
icon: string;
|
|
554
553
|
href: string;
|
|
555
|
-
to: any;
|
|
556
554
|
num: string | number;
|
|
557
555
|
active: boolean;
|
|
558
556
|
activeColor: string;
|
|
@@ -778,10 +776,62 @@ interface DatePickerProps {
|
|
|
778
776
|
filter: (type: string, option: PickerOption$1[]) => PickerOption$1[];
|
|
779
777
|
onCloseDatePicker: () => void;
|
|
780
778
|
onConfirmDatePicker: (values: (string | number)[], options: PickerOption$1[]) => void;
|
|
781
|
-
onChange
|
|
779
|
+
onChange?: (columnIndex: string | number, values: (string | number)[], options: PickerOption$1[]) => void;
|
|
782
780
|
}
|
|
783
781
|
declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
784
782
|
|
|
783
|
+
interface BaseForm {
|
|
784
|
+
/**
|
|
785
|
+
* 经 Form.useForm() 创建的 form 控制实例,不提供时会自动创建
|
|
786
|
+
*/
|
|
787
|
+
form: any;
|
|
788
|
+
/**
|
|
789
|
+
* label的位置
|
|
790
|
+
* 可选值 top/left/right
|
|
791
|
+
*/
|
|
792
|
+
labelPosition: string | number;
|
|
793
|
+
/**
|
|
794
|
+
* 表单分组名称
|
|
795
|
+
*/
|
|
796
|
+
formGroupTitle: string;
|
|
797
|
+
starPositon: string;
|
|
798
|
+
/**
|
|
799
|
+
* 表单校验成功回调
|
|
800
|
+
*/
|
|
801
|
+
onFinish: (obj: object) => void;
|
|
802
|
+
/**
|
|
803
|
+
* 表单校验失败回调
|
|
804
|
+
*/
|
|
805
|
+
onFinishFailed: (value: []) => void;
|
|
806
|
+
}
|
|
807
|
+
type StoreValue = string | number;
|
|
808
|
+
type NamePath = string | number;
|
|
809
|
+
interface Callbacks<Values = any> {
|
|
810
|
+
onValuesChange?: (values: Values) => void;
|
|
811
|
+
onFinish?: (values: Values) => void;
|
|
812
|
+
onFinishFailed?: (Values: Values) => void;
|
|
813
|
+
}
|
|
814
|
+
interface FormInstance<Values = any> {
|
|
815
|
+
registerField: (entity: FieldEntity) => () => void;
|
|
816
|
+
getFieldValue: (name: NamePath) => StoreValue;
|
|
817
|
+
setFieldsValue: (value: any) => void;
|
|
818
|
+
resetFields: (fields?: NamePath[]) => void;
|
|
819
|
+
submit: () => void;
|
|
820
|
+
setCallback: (callbacks: Callbacks) => void;
|
|
821
|
+
}
|
|
822
|
+
interface FieldEntity {
|
|
823
|
+
onStoreChange: () => void;
|
|
824
|
+
getNamePath: () => NamePath;
|
|
825
|
+
props: {
|
|
826
|
+
name: NamePath;
|
|
827
|
+
rules?: any[];
|
|
828
|
+
dependencies?: NamePath[];
|
|
829
|
+
initialValue?: any;
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare const useForm: (form?: FormInstance) => any[];
|
|
834
|
+
|
|
785
835
|
interface FormItemRuleWithoutValidator {
|
|
786
836
|
[key: string]: any;
|
|
787
837
|
regex?: RegExp;
|
|
@@ -813,7 +863,7 @@ interface BaseFormField {
|
|
|
813
863
|
interface ConfigConsumerProps {
|
|
814
864
|
[propName: string]: any;
|
|
815
865
|
}
|
|
816
|
-
declare const FormItemContext: React.Context<ConfigConsumerProps>;
|
|
866
|
+
declare const FormItemContext: React$1.Context<ConfigConsumerProps>;
|
|
817
867
|
|
|
818
868
|
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
819
869
|
interface FormItemProps extends BasicComponent, BaseFormField {
|
|
@@ -821,6 +871,7 @@ interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
821
871
|
errorMessageAlign: TextAlign;
|
|
822
872
|
showErrorLine: boolean;
|
|
823
873
|
showErrorMessage: boolean;
|
|
874
|
+
initialValue: string;
|
|
824
875
|
}
|
|
825
876
|
declare const defaultProps: FormItemProps;
|
|
826
877
|
type FieldProps = typeof defaultProps & Partial<BaseFormField>;
|
|
@@ -829,10 +880,12 @@ declare class FormItem extends React__default.Component<FieldProps> {
|
|
|
829
880
|
static contextType: any;
|
|
830
881
|
context: React__default.ContextType<typeof FormItemContext>;
|
|
831
882
|
private cancelRegister;
|
|
883
|
+
private isInitialValue;
|
|
832
884
|
componentDidMount(): void;
|
|
833
885
|
componentWillUnmount(): void;
|
|
834
886
|
getControlled: (children: React__default.ReactElement) => {
|
|
835
887
|
value: any;
|
|
888
|
+
defaultValue: any;
|
|
836
889
|
onChange: (event: React__default.ChangeEvent<HTMLInputElement> | number | string | string[]) => void;
|
|
837
890
|
};
|
|
838
891
|
onStoreChange: () => void;
|
|
@@ -841,35 +894,12 @@ declare class FormItem extends React__default.Component<FieldProps> {
|
|
|
841
894
|
render(): JSX.Element;
|
|
842
895
|
}
|
|
843
896
|
|
|
844
|
-
interface BaseForm {
|
|
845
|
-
/**
|
|
846
|
-
* 经 Form.useForm() 创建的 form 控制实例,不提供时会自动创建
|
|
847
|
-
*/
|
|
848
|
-
form: any;
|
|
849
|
-
/**
|
|
850
|
-
* label的位置
|
|
851
|
-
* 可选值 top/left/right
|
|
852
|
-
*/
|
|
853
|
-
labelPosition: string | number;
|
|
854
|
-
/**
|
|
855
|
-
* 表单分组名称
|
|
856
|
-
*/
|
|
857
|
-
formGroupTitle: string;
|
|
858
|
-
starPositon: string;
|
|
859
|
-
/**
|
|
860
|
-
* 表单校验成功回调
|
|
861
|
-
*/
|
|
862
|
-
onFinish: (obj: object) => void;
|
|
863
|
-
/**
|
|
864
|
-
* 表单校验失败回调
|
|
865
|
-
*/
|
|
866
|
-
onFinishFailed: (value: []) => void;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
897
|
interface FormProps extends BasicComponent, BaseForm {
|
|
870
898
|
}
|
|
871
899
|
declare const Form: FunctionComponent<Partial<FormProps> & React__default.HTMLAttributes<HTMLFormElement>> & {
|
|
872
900
|
Item: typeof FormItem;
|
|
901
|
+
} & {
|
|
902
|
+
useForm: typeof useForm;
|
|
873
903
|
};
|
|
874
904
|
|
|
875
905
|
type InputAlignType = 'left' | 'center' | 'right';
|
|
@@ -942,6 +972,7 @@ interface InputNumberProps extends BasicComponent {
|
|
|
942
972
|
isAsync: boolean;
|
|
943
973
|
className: string;
|
|
944
974
|
style: React__default.CSSProperties;
|
|
975
|
+
formatter?: (displayValue: string | number) => string;
|
|
945
976
|
add: (e: MouseEvent) => void;
|
|
946
977
|
reduce: (e: MouseEvent) => void;
|
|
947
978
|
overlimit: (e: MouseEvent) => void;
|
|
@@ -1195,40 +1226,15 @@ declare class UploadOptions {
|
|
|
1195
1226
|
beforeXhrUpload?: Function;
|
|
1196
1227
|
}
|
|
1197
1228
|
|
|
1198
|
-
type FileType
|
|
1229
|
+
type FileType<T> = {
|
|
1199
1230
|
[key: string]: T;
|
|
1200
1231
|
};
|
|
1201
1232
|
type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
1202
|
-
/** 图片的尺寸 */
|
|
1203
|
-
interface sizeType {
|
|
1204
|
-
/** 原图 */
|
|
1205
|
-
original: string;
|
|
1206
|
-
/** compressed */
|
|
1207
|
-
compressed: string;
|
|
1208
|
-
}
|
|
1209
|
-
/** 图片的来源 */
|
|
1210
|
-
interface sourceType {
|
|
1211
|
-
/** 从相册选图 */
|
|
1212
|
-
album: string;
|
|
1213
|
-
/** 使用相机 */
|
|
1214
|
-
camera: string;
|
|
1215
|
-
}
|
|
1216
|
-
/** 视频的来源 */
|
|
1217
|
-
interface mediaType {
|
|
1218
|
-
/** 只能拍摄图片或从相册选择图片 */
|
|
1219
|
-
image: string;
|
|
1220
|
-
/** 只能拍摄视频或从相册选择视频 */
|
|
1221
|
-
video: string;
|
|
1222
|
-
}
|
|
1223
1233
|
interface UploaderProps extends BasicComponent {
|
|
1224
1234
|
url: string;
|
|
1225
1235
|
maximum: string | number;
|
|
1226
|
-
sizeType: (keyof sizeType)[];
|
|
1227
|
-
sourceType: (keyof sourceType)[];
|
|
1228
|
-
mediaType: (keyof mediaType)[];
|
|
1229
|
-
camera: string;
|
|
1230
1236
|
maximize: number;
|
|
1231
|
-
defaultFileList: FileType
|
|
1237
|
+
defaultFileList: FileType<string>[];
|
|
1232
1238
|
listType: string;
|
|
1233
1239
|
uploadIcon: string;
|
|
1234
1240
|
uploadIconSize: string | number;
|
|
@@ -1239,22 +1245,24 @@ interface UploaderProps extends BasicComponent {
|
|
|
1239
1245
|
autoUpload: boolean;
|
|
1240
1246
|
multiple: boolean;
|
|
1241
1247
|
timeout: number;
|
|
1242
|
-
data:
|
|
1248
|
+
data: any;
|
|
1243
1249
|
method: string;
|
|
1244
1250
|
xhrState: number | string;
|
|
1245
|
-
headers:
|
|
1251
|
+
headers: any;
|
|
1252
|
+
withCredentials: boolean;
|
|
1253
|
+
clearInput: boolean;
|
|
1246
1254
|
isPreview: boolean;
|
|
1247
1255
|
isDeletable: boolean;
|
|
1256
|
+
capture: boolean;
|
|
1248
1257
|
className: string;
|
|
1249
1258
|
defaultImg: string;
|
|
1250
|
-
maxDuration: number;
|
|
1251
1259
|
style: React__default.CSSProperties;
|
|
1252
1260
|
onStart?: (option: UploadOptions) => void;
|
|
1253
|
-
onRemove?: (file: FileItem, fileList:
|
|
1261
|
+
onRemove?: (file: FileItem, fileList: FileItem[]) => void;
|
|
1254
1262
|
onSuccess?: (param: {
|
|
1255
1263
|
responseText: XMLHttpRequest['responseText'];
|
|
1256
1264
|
option: UploadOptions;
|
|
1257
|
-
fileList:
|
|
1265
|
+
fileList: FileItem[];
|
|
1258
1266
|
file: FileItem;
|
|
1259
1267
|
}) => void;
|
|
1260
1268
|
onProgress?: (param: {
|
|
@@ -1265,16 +1273,18 @@ interface UploaderProps extends BasicComponent {
|
|
|
1265
1273
|
onFailure?: (param: {
|
|
1266
1274
|
responseText: XMLHttpRequest['responseText'];
|
|
1267
1275
|
option: UploadOptions;
|
|
1268
|
-
fileList:
|
|
1276
|
+
fileList: FileItem[];
|
|
1269
1277
|
file: FileItem;
|
|
1270
1278
|
}) => void;
|
|
1271
|
-
onUpdate?: (fileList:
|
|
1272
|
-
onOversize?: (
|
|
1279
|
+
onUpdate?: (fileList: FileItem[]) => void;
|
|
1280
|
+
onOversize?: (file: File[]) => void;
|
|
1273
1281
|
onChange?: (param: {
|
|
1274
|
-
fileList:
|
|
1282
|
+
fileList: FileItem[];
|
|
1283
|
+
event: React__default.ChangeEvent<HTMLInputElement>;
|
|
1275
1284
|
}) => void;
|
|
1285
|
+
onBeforeUpload?: (file: File[]) => Promise<File[] | boolean>;
|
|
1276
1286
|
onBeforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1277
|
-
onBeforeDelete?: (file: FileItem, files:
|
|
1287
|
+
onBeforeDelete?: (file: FileItem, files: FileItem[]) => boolean;
|
|
1278
1288
|
onFileItemClick?: (file: FileItem) => void;
|
|
1279
1289
|
}
|
|
1280
1290
|
declare class FileItem {
|
|
@@ -1286,7 +1296,7 @@ declare class FileItem {
|
|
|
1286
1296
|
type?: string;
|
|
1287
1297
|
path?: string;
|
|
1288
1298
|
percentage: string | number;
|
|
1289
|
-
formData:
|
|
1299
|
+
formData: FormData;
|
|
1290
1300
|
}
|
|
1291
1301
|
declare const Uploader: React__default.ForwardRefExoticComponent<Partial<UploaderProps> & {
|
|
1292
1302
|
children?: React__default.ReactNode;
|
|
@@ -1327,6 +1337,10 @@ interface BackTopProps extends BasicComponent {
|
|
|
1327
1337
|
}
|
|
1328
1338
|
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1329
1339
|
|
|
1340
|
+
type DialogConfigType = {
|
|
1341
|
+
prefixCls?: string;
|
|
1342
|
+
simple?: boolean;
|
|
1343
|
+
};
|
|
1330
1344
|
interface BasicDialogProps {
|
|
1331
1345
|
className?: string;
|
|
1332
1346
|
style?: CSSProperties;
|
|
@@ -1352,9 +1366,25 @@ interface BasicDialogProps {
|
|
|
1352
1366
|
onClickSelf?: () => void;
|
|
1353
1367
|
onConfirm?: (e?: MouseEvent) => Promise<() => void> | void;
|
|
1354
1368
|
}
|
|
1369
|
+
type DialogReturnProps = {
|
|
1370
|
+
update: (newConfig: ConfirmProps) => void;
|
|
1371
|
+
close: () => void;
|
|
1372
|
+
};
|
|
1373
|
+
interface ConfirmProps extends BasicDialogProps {
|
|
1374
|
+
content?: ReactNode;
|
|
1375
|
+
icon?: ReactNode | null;
|
|
1376
|
+
isNotice?: boolean;
|
|
1377
|
+
noticeType?: string;
|
|
1378
|
+
}
|
|
1379
|
+
interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<BasicDialogProps>> {
|
|
1380
|
+
confirm: (props: ConfirmProps) => DialogReturnProps;
|
|
1381
|
+
alert: (props: ConfirmProps) => DialogReturnProps;
|
|
1382
|
+
config: (config: DialogConfigType) => void;
|
|
1383
|
+
destroyAll: () => void;
|
|
1384
|
+
}
|
|
1355
1385
|
|
|
1356
1386
|
type DialogProps = BasicDialogProps;
|
|
1357
|
-
declare const
|
|
1387
|
+
declare const Dialog: DialogComponent;
|
|
1358
1388
|
|
|
1359
1389
|
interface DragProps {
|
|
1360
1390
|
attract: boolean;
|
|
@@ -1372,8 +1402,10 @@ declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAt
|
|
|
1372
1402
|
|
|
1373
1403
|
interface InfiniteloadingProps extends BasicComponent {
|
|
1374
1404
|
hasMore: boolean;
|
|
1375
|
-
|
|
1405
|
+
threshold: number;
|
|
1376
1406
|
containerId: string;
|
|
1407
|
+
useWindow: boolean;
|
|
1408
|
+
useCapture: boolean;
|
|
1377
1409
|
isOpenRefresh: boolean;
|
|
1378
1410
|
pullIcon: string;
|
|
1379
1411
|
pullTxt: string;
|
|
@@ -1389,21 +1421,25 @@ interface InfiniteloadingProps extends BasicComponent {
|
|
|
1389
1421
|
declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1390
1422
|
|
|
1391
1423
|
interface NotifyProps {
|
|
1392
|
-
id
|
|
1393
|
-
|
|
1424
|
+
id: string;
|
|
1425
|
+
color?: string;
|
|
1394
1426
|
msg: string;
|
|
1395
|
-
color: string;
|
|
1396
1427
|
duration: number;
|
|
1428
|
+
className?: string;
|
|
1429
|
+
background?: string;
|
|
1397
1430
|
type: string;
|
|
1398
|
-
className: string;
|
|
1399
|
-
background: string;
|
|
1400
1431
|
position: string;
|
|
1401
|
-
isWrapTeleport: boolean;
|
|
1402
|
-
visible: boolean;
|
|
1403
|
-
onClosed: () => void;
|
|
1404
1432
|
onClick: () => void;
|
|
1433
|
+
onClosed: () => void;
|
|
1405
1434
|
}
|
|
1406
|
-
declare const
|
|
1435
|
+
declare const _default$1: {
|
|
1436
|
+
text(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1437
|
+
success(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1438
|
+
primary(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1439
|
+
danger(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1440
|
+
warn(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1441
|
+
hide(): void;
|
|
1442
|
+
};
|
|
1407
1443
|
|
|
1408
1444
|
type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
1409
1445
|
interface PullToRefreshProps {
|
|
@@ -1467,7 +1503,7 @@ interface SwipeProps {
|
|
|
1467
1503
|
}
|
|
1468
1504
|
declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React__default.RefAttributes<SwipeInstance>>;
|
|
1469
1505
|
|
|
1470
|
-
interface SwitchProps {
|
|
1506
|
+
interface SwitchProps extends BasicComponent {
|
|
1471
1507
|
isAsync: boolean;
|
|
1472
1508
|
checked: boolean;
|
|
1473
1509
|
disable: boolean;
|
|
@@ -1483,26 +1519,34 @@ declare const Switch: FunctionComponent<Partial<SwitchProps>>;
|
|
|
1483
1519
|
|
|
1484
1520
|
interface ToastProps {
|
|
1485
1521
|
id?: string;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
iconSize: string;
|
|
1489
|
-
msg: string | React__default.ReactNode;
|
|
1490
|
-
bottom: number | string;
|
|
1522
|
+
msg: string;
|
|
1523
|
+
style?: React$1.CSSProperties;
|
|
1491
1524
|
duration: number;
|
|
1492
1525
|
center: boolean;
|
|
1493
1526
|
type: string;
|
|
1494
1527
|
title: string;
|
|
1495
|
-
customClass
|
|
1528
|
+
customClass?: string;
|
|
1529
|
+
bottom: string;
|
|
1496
1530
|
size: string | number;
|
|
1531
|
+
icon: string | null;
|
|
1532
|
+
iconSize: string;
|
|
1497
1533
|
textAlignCenter: boolean;
|
|
1534
|
+
loadingRotate: boolean;
|
|
1498
1535
|
bgColor: string;
|
|
1536
|
+
onClose: () => void;
|
|
1499
1537
|
cover: boolean;
|
|
1500
1538
|
coverColor: string;
|
|
1501
1539
|
closeOnClickOverlay: boolean;
|
|
1502
|
-
visible: boolean;
|
|
1503
|
-
onClose: () => void;
|
|
1504
1540
|
}
|
|
1505
|
-
declare const
|
|
1541
|
+
declare const _default: {
|
|
1542
|
+
text(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1543
|
+
success(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1544
|
+
fail(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1545
|
+
loading(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1546
|
+
warn(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1547
|
+
customIcon(msg: string | React$1.ReactNode, option?: {}): void;
|
|
1548
|
+
hide(): void;
|
|
1549
|
+
};
|
|
1506
1550
|
|
|
1507
1551
|
type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
|
|
1508
1552
|
type AnimateAction = 'initial' | 'click';
|
|
@@ -1539,20 +1583,22 @@ declare class AnimatingNumbers extends Component<AnimatingNumbersProps, Animatin
|
|
|
1539
1583
|
}
|
|
1540
1584
|
|
|
1541
1585
|
interface AudioProps extends BasicComponent {
|
|
1542
|
-
className
|
|
1543
|
-
style
|
|
1586
|
+
className: string;
|
|
1587
|
+
style: CSSProperties;
|
|
1544
1588
|
url: string;
|
|
1545
|
-
|
|
1546
|
-
|
|
1589
|
+
muted: boolean;
|
|
1590
|
+
autoplay: boolean;
|
|
1591
|
+
loop: boolean;
|
|
1592
|
+
preload: string;
|
|
1547
1593
|
type: string;
|
|
1548
|
-
onFastBack
|
|
1549
|
-
onForward
|
|
1550
|
-
onPause
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
onCanPlay
|
|
1594
|
+
onFastBack: (e: HTMLAudioElement) => void;
|
|
1595
|
+
onForward: (e: HTMLAudioElement) => void;
|
|
1596
|
+
onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1597
|
+
onPlayEnd: (e: HTMLAudioElement) => void;
|
|
1598
|
+
onMute: (e: HTMLAudioElement) => void;
|
|
1599
|
+
onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>;
|
|
1554
1600
|
}
|
|
1555
|
-
declare const Audio: FunctionComponent<Partial<AudioProps> &
|
|
1601
|
+
declare const Audio: FunctionComponent<Partial<AudioProps> & React__default.HTMLAttributes<HTMLElement>>;
|
|
1556
1602
|
|
|
1557
1603
|
interface AvatarProps extends BasicComponent {
|
|
1558
1604
|
size: string;
|
|
@@ -1564,6 +1610,7 @@ interface AvatarProps extends BasicComponent {
|
|
|
1564
1610
|
prefixCls: string;
|
|
1565
1611
|
url: string;
|
|
1566
1612
|
className: string;
|
|
1613
|
+
alt: string;
|
|
1567
1614
|
style: React__default.CSSProperties;
|
|
1568
1615
|
activeAvatar: (e: MouseEvent) => void;
|
|
1569
1616
|
onActiveAvatar: (e: MouseEvent) => void;
|
|
@@ -1625,7 +1672,7 @@ interface CollapseProps {
|
|
|
1625
1672
|
}
|
|
1626
1673
|
declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
|
|
1627
1674
|
|
|
1628
|
-
interface CollapseItemProps
|
|
1675
|
+
interface CollapseItemProps extends BasicComponent {
|
|
1629
1676
|
title: string;
|
|
1630
1677
|
name: string;
|
|
1631
1678
|
isOpen: boolean;
|
|
@@ -1642,7 +1689,7 @@ interface CollapseItemProps$1 extends BasicComponent {
|
|
|
1642
1689
|
childnull: boolean;
|
|
1643
1690
|
onToggle: (isOpen: boolean, name: string) => void;
|
|
1644
1691
|
}
|
|
1645
|
-
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps
|
|
1692
|
+
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1646
1693
|
|
|
1647
1694
|
interface CountDownProps {
|
|
1648
1695
|
className?: string;
|
|
@@ -1752,7 +1799,7 @@ interface PopoverProps extends BasicComponent {
|
|
|
1752
1799
|
className: string;
|
|
1753
1800
|
style?: CSSProperties;
|
|
1754
1801
|
children?: React__default.ReactNode;
|
|
1755
|
-
onClick: (e: React__default.MouseEvent
|
|
1802
|
+
onClick: (e: React__default.MouseEvent) => void;
|
|
1756
1803
|
onChoose: (item: List, index: number) => void;
|
|
1757
1804
|
}
|
|
1758
1805
|
declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1928,7 +1975,7 @@ interface TrendArrowProps {
|
|
|
1928
1975
|
}
|
|
1929
1976
|
declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1930
1977
|
|
|
1931
|
-
interface VideoProps
|
|
1978
|
+
interface VideoProps {
|
|
1932
1979
|
source: {
|
|
1933
1980
|
type: string;
|
|
1934
1981
|
src: string;
|
|
@@ -1950,22 +1997,29 @@ interface VideoProps$1 {
|
|
|
1950
1997
|
onPauseFuc: (e: HTMLVideoElement) => void;
|
|
1951
1998
|
onPlayend: (e: HTMLVideoElement) => void;
|
|
1952
1999
|
}
|
|
1953
|
-
declare const Video: FunctionComponent<Partial<VideoProps
|
|
2000
|
+
declare const Video: FunctionComponent<Partial<VideoProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1954
2001
|
|
|
1955
|
-
type
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
2002
|
+
type Data = any;
|
|
2003
|
+
interface BasicVirtualListProps {
|
|
2004
|
+
className?: string;
|
|
2005
|
+
style?: React.CSSProperties;
|
|
2006
|
+
sourceData: Array<Data>;
|
|
1959
2007
|
containerSize?: number;
|
|
1960
|
-
ItemRender?: any
|
|
1961
|
-
itemEqualSize?: boolean;
|
|
2008
|
+
ItemRender?: React.FC<any>;
|
|
1962
2009
|
itemSize?: number;
|
|
2010
|
+
itemEqualSize?: boolean;
|
|
2011
|
+
horizontal?: boolean;
|
|
1963
2012
|
overscan?: number;
|
|
2013
|
+
handleScroll?: (...args: any[]) => any;
|
|
1964
2014
|
onScroll?: (...args: any[]) => any;
|
|
1965
|
-
key?:
|
|
1966
|
-
locale?:
|
|
1967
|
-
|
|
1968
|
-
|
|
2015
|
+
key?: string;
|
|
2016
|
+
locale?: {
|
|
2017
|
+
[key in string]: string;
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
type VirtualListProps = BasicVirtualListProps;
|
|
2022
|
+
declare const VirtualList: FunctionComponent<VirtualListProps>;
|
|
1969
2023
|
|
|
1970
2024
|
interface WaterMarkProps {
|
|
1971
2025
|
content: string;
|
|
@@ -2086,22 +2140,15 @@ interface CardProps {
|
|
|
2086
2140
|
}
|
|
2087
2141
|
declare const Card: FunctionComponent<Partial<CardProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2088
2142
|
|
|
2089
|
-
interface FileType {
|
|
2090
|
-
/** jpg 图片 */
|
|
2091
|
-
jpg: any;
|
|
2092
|
-
/** png 图片 */
|
|
2093
|
-
png: any;
|
|
2094
|
-
}
|
|
2095
2143
|
interface SignatureProps {
|
|
2096
|
-
|
|
2097
|
-
type: keyof FileType;
|
|
2144
|
+
type: string;
|
|
2098
2145
|
lineWidth: number;
|
|
2099
2146
|
strokeStyle: string;
|
|
2100
2147
|
unSupportTpl: string;
|
|
2101
2148
|
className: string;
|
|
2102
|
-
confirm?: (dataurl: string) => void;
|
|
2149
|
+
confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
2103
2150
|
clear?: () => void;
|
|
2104
|
-
onConfirm?: (dataurl: string) => void;
|
|
2151
|
+
onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
|
|
2105
2152
|
onClear?: () => void;
|
|
2106
2153
|
}
|
|
2107
2154
|
declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -2151,44 +2198,4 @@ interface TimeSelectProps {
|
|
|
2151
2198
|
}
|
|
2152
2199
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
2153
2200
|
|
|
2154
|
-
|
|
2155
|
-
title: string;
|
|
2156
|
-
name: string;
|
|
2157
|
-
isOpen: boolean;
|
|
2158
|
-
icon: string;
|
|
2159
|
-
iconSize: string;
|
|
2160
|
-
iconColor: string;
|
|
2161
|
-
disabled: boolean;
|
|
2162
|
-
rotate: number;
|
|
2163
|
-
subTitle: string;
|
|
2164
|
-
titleIcon: string;
|
|
2165
|
-
titleIconColor: string;
|
|
2166
|
-
titleIconPosition: string;
|
|
2167
|
-
titleIconSize: string;
|
|
2168
|
-
onToggle: (isOpen: boolean, name: string) => void;
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
interface VideoProps {
|
|
2172
|
-
source: {
|
|
2173
|
-
type: string;
|
|
2174
|
-
src: string;
|
|
2175
|
-
};
|
|
2176
|
-
options: {
|
|
2177
|
-
controls?: boolean;
|
|
2178
|
-
muted?: boolean;
|
|
2179
|
-
autoplay?: boolean;
|
|
2180
|
-
poster?: string;
|
|
2181
|
-
playsinline?: boolean;
|
|
2182
|
-
loop?: boolean;
|
|
2183
|
-
};
|
|
2184
|
-
className: string;
|
|
2185
|
-
style: React__default.CSSProperties;
|
|
2186
|
-
play: (e: HTMLVideoElement) => void;
|
|
2187
|
-
pause: (e: HTMLVideoElement) => void;
|
|
2188
|
-
playend: (e: HTMLVideoElement) => void;
|
|
2189
|
-
onPlayFuc: (e: HTMLVideoElement) => void;
|
|
2190
|
-
onPauseFuc: (e: HTMLVideoElement) => void;
|
|
2191
|
-
onPlayend: (e: HTMLVideoElement) => void;
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2194
|
-
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, BaseDialog as Dialog, DialogProps, Divider, DividerProps, Drag, DragProps, Elevator, ElevatorProps, Ellipsis, EllipsisProps, Empty, EmptyProps, FixedNav, FixedNavProps, Form, FormItem, FormItemProps, FormProps, Grid, GridItem, GridItemProps, GridProps, Icon, IconProps, 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, 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, Toast, ToastProps, TrendArrow, TrendArrowProps, Uploader, UploaderProps, Video, VideoProps, VirtualList, VirtualListProps, WaterMark, WaterMarkProps };
|
|
2201
|
+
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, Icon, IconProps, 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 };
|