@nutui/nutui-react-taro 2.0.0-alpha.1 → 2.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/esm/ActionSheet.js +3 -3
- package/dist/esm/Address.js +5 -5
- package/dist/esm/Animate.js +2 -3
- package/dist/esm/AnimatingNumbers.js +1 -1
- package/dist/esm/Audio.js +5 -5
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarGroup.js +1 -1
- package/dist/esm/BackTop.js +1 -1
- package/dist/esm/Badge.js +1 -3
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar.js +5 -5
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Cascader.js +6 -5
- package/dist/esm/Cell.js +1 -1
- package/dist/esm/CellGroup.js +1 -1
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/Col.js +1 -1
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem.js +1 -1
- package/dist/esm/ConfigProvider.js +2 -2
- package/dist/esm/CountDown.js +2 -2
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/Dialog.js +5 -4
- package/dist/esm/Divider.js +2 -1
- package/dist/esm/Drag.js +2 -3
- package/dist/esm/Elevator.js +3 -3
- package/dist/esm/Ellipsis.js +2 -2
- package/dist/esm/Empty.js +2 -2
- package/dist/esm/FixedNav.js +3 -3
- package/dist/esm/Form.js +4 -4
- package/dist/esm/FormItem.js +2 -2
- package/dist/esm/Grid.js +3 -3
- package/dist/esm/GridItem.js +2 -2
- package/dist/esm/Icon.js +2 -2
- package/dist/esm/Image.js +2 -2
- package/dist/esm/ImagePreview.js +5 -5
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/Infiniteloading.js +2 -2
- package/dist/esm/Input.js +2 -2
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Layout.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +4 -5
- package/dist/esm/NavBar.js +1 -4
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard.js +4 -4
- package/dist/esm/Overlay.js +1 -1
- package/dist/esm/Pagination.js +2 -2
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/Popover.js +2 -2
- package/dist/esm/Popup.js +2 -2
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Progress.js +1 -4
- package/dist/esm/PullToRefresh.js +2 -2
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup.js +1 -1
- package/dist/esm/Range.js +3 -3
- package/dist/esm/Rate.js +1 -1
- package/dist/esm/Row.js +1 -1
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/SideNavBar.js +3 -3
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +3 -3
- package/dist/esm/Skeleton.js +2 -2
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe.js +1 -1
- package/dist/esm/Swiper.js +1 -1
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Switch.js +3 -3
- package/dist/esm/TabPane.js +1 -3
- package/dist/esm/Tabbar.js +1 -1
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Table.js +2 -2
- package/dist/esm/Tabs.js +4 -4
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea.js +2 -2
- package/dist/esm/TimeDetail.js +2 -2
- package/dist/esm/TimePannel.js +2 -2
- package/dist/esm/TimeSelect.js +6 -6
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/TrendArrow.js +1 -1
- package/dist/esm/Uploader.js +4 -6
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +2 -2
- package/dist/esm/WaterMark.js +2 -2
- package/dist/esm/{actionsheet.taro-10cc53ee.js → actionsheet.taro-12cf5a3e.js} +10 -10
- package/dist/esm/{address.taro-632ca799.js → address.taro-67e32c33.js} +37 -37
- package/dist/esm/{animate.taro-fb7986d6.js → animate.taro-485331bb.js} +7 -6
- package/dist/esm/{animatingnumbers.taro-03e5d61d.js → animatingnumbers.taro-f6eaffef.js} +8 -8
- package/dist/esm/{audio.taro-f672a68c.js → audio.taro-51eafc9d.js} +20 -20
- package/dist/esm/{avatar.taro-de157a1f.js → avatar.taro-a840f345.js} +9 -9
- package/dist/esm/{avatargroup-b476ac68.js → avatargroup-0eadb514.js} +3 -3
- package/dist/esm/{backtop.taro-ba271b8f.js → backtop.taro-8ec80d02.js} +3 -3
- package/dist/esm/{badge.taro-ae154f41.js → badge.taro-e2169fbe.js} +13 -18
- package/dist/esm/{barrage.taro-80df08d3.js → barrage.taro-aa08da6c.js} +5 -5
- package/dist/esm/{button.taro-a1c9512f.js → button.taro-b50bc217.js} +6 -6
- package/dist/esm/{calendar.taro-099cb4a2.js → calendar.taro-b3ebdc35.js} +8 -8
- package/dist/esm/{calendaritem.taro-ae167e59.js → calendaritem.taro-ab1ec154.js} +36 -32
- package/dist/esm/card.taro-0e849e94.js +33 -0
- package/dist/esm/{cascader.taro-62e764a7.js → cascader.taro-467910b2.js} +21 -21
- package/dist/esm/{cell.taro-26870740.js → cell.taro-ea725a95.js} +7 -7
- package/dist/esm/{cellgroup.taro-6e901b54.js → cellgroup.taro-660faffc.js} +5 -5
- package/dist/esm/{checkbox.taro-785c528b.js → checkbox.taro-ae460d3a.js} +12 -12
- package/dist/esm/{circleprogress.taro-79854448.js → circleprogress.taro-d8973ae9.js} +4 -4
- package/dist/esm/{col.taro-a99a9171.js → col.taro-4477c9f7.js} +2 -2
- package/dist/esm/{collapse.taro-35a8a0d6.js → collapse.taro-89bcadf2.js} +4 -4
- package/dist/esm/{collapseitem-690eb91c.js → collapseitem-0e228cec.js} +9 -9
- package/dist/esm/{configprovider.taro-c8c54556.js → configprovider.taro-43a3c646.js} +3 -3
- package/dist/esm/{countdown.taro-0e6bf7a2.js → countdown.taro-c14b5c1f.js} +4 -4
- package/dist/esm/{datepicker.taro-0f2bcf42.js → datepicker.taro-7d522ff8.js} +4 -4
- package/dist/esm/dialog.taro-f9ca73a2.js +107 -0
- package/dist/esm/{divider.taro-6c1657ce.js → divider.taro-3993d7d5.js} +4 -2
- package/dist/esm/{drag.taro-79bb8744.js → drag.taro-347dfb84.js} +6 -5
- package/dist/esm/{elevator.taro-81a11ecc.js → elevator.taro-360a831f.js} +34 -27
- package/dist/esm/{ellipsis.taro-b6cda065.js → ellipsis.taro-79044d54.js} +14 -14
- package/dist/esm/{empty.taro-fde835ca.js → empty.taro-f8585835.js} +7 -7
- package/dist/esm/fixednav.taro-cca9a6df.js +54 -0
- package/dist/esm/{form.taro-0d83f1e8.js → form.taro-7413d868.js} +6 -6
- package/dist/esm/{formitem.taro-0de07d1e.js → formitem.taro-b550d29c.js} +12 -12
- package/dist/esm/{grid.taro-3797169c.js → grid.taro-10eb7716.js} +6 -6
- package/dist/esm/{griditem.taro-04f59ae1.js → griditem.taro-fb15eeec.js} +7 -7
- package/dist/esm/{image.taro-edb572bb.js → image.taro-b897a058.js} +6 -6
- package/dist/esm/{imagepreview.taro-b88fcf41.js → imagepreview.taro-d511342c.js} +10 -10
- package/dist/esm/{indicator.taro-c10334e8.js → indicator.taro-bfb21d45.js} +3 -3
- package/dist/esm/{infiniteloading.taro-73c9b8ca.js → infiniteloading.taro-cce53c60.js} +11 -11
- package/dist/esm/{input.taro-10ed5500.js → input.taro-f4e067f7.js} +24 -24
- package/dist/esm/{inputnumber.taro-108c4784.js → inputnumber.taro-1f893d42.js} +7 -7
- package/dist/esm/{layout.taro-9046d093.js → layout.taro-e4bf83cb.js} +2 -2
- package/dist/esm/menu.taro-e5c68cb8.js +111 -0
- package/dist/esm/{menuitem.taro-86a6bb6c.js → menuitem.taro-37c18382.js} +38 -37
- package/dist/esm/navbar.taro-92bab9c4.js +57 -0
- package/dist/esm/{noticebar.taro-49e7441f.js → noticebar.taro-cbe93c9e.js} +18 -18
- package/dist/esm/{notify.taro-e17c6f82.js → notify.taro-f1079218.js} +4 -4
- package/dist/esm/{numberkeyboard.taro-ed9b2149.js → numberkeyboard.taro-10ab54d6.js} +22 -22
- package/dist/esm/nutui-react.es.js +95 -95
- package/dist/esm/{overlay.taro-ad0d4775.js → overlay.taro-067b7202.js} +12 -14
- package/dist/esm/{pagination.taro-60b22b27.js → pagination.taro-df441058.js} +9 -9
- package/dist/esm/{picker.taro-5028afcb.js → picker.taro-9f1bb6a4.js} +24 -24
- package/dist/esm/{popover.taro-2a57eae4.js → popover.taro-84a55ff9.js} +15 -15
- package/dist/esm/{popup.taro-020bf791.js → popup.taro-89cc342a.js} +9 -9
- package/dist/esm/{price.taro-776ed16e.js → price.taro-959d82f2.js} +6 -6
- package/dist/esm/progress.taro-1a7ac8a4.js +40 -0
- package/dist/esm/{pulltorefresh.taro-d5fcfcb0.js → pulltorefresh.taro-37dadbc5.js} +6 -6
- package/dist/esm/{radio.taro-51e10152.js → radio.taro-36438449.js} +16 -16
- package/dist/esm/{range.taro-7a2b6ca1.js → range.taro-432d20d7.js} +16 -16
- package/dist/esm/{rate.taro-57341aa9.js → rate.taro-895bb41c.js} +8 -8
- package/dist/esm/{row.taro-75039d53.js → row.taro-e929ec5c.js} +2 -2
- package/dist/esm/{searchbar.taro-eef468bb.js → searchbar.taro-4aa300df.js} +15 -15
- package/dist/esm/{shortpassword.taro-681a33a1.js → shortpassword.taro-99645f99.js} +22 -22
- package/dist/esm/sidenavbar.taro-f8ffb7dc.js +33 -0
- package/dist/esm/{sidenavbaritem.taro-bb80dbf4.js → sidenavbaritem.taro-6cb0821e.js} +2 -2
- package/dist/esm/{signature.taro-f01b2b05.js → signature.taro-e5ede25a.js} +8 -8
- package/dist/esm/{skeleton.taro-64e858a2.js → skeleton.taro-fabd423a.js} +10 -10
- package/dist/esm/{step.taro-2ec1f283.js → step.taro-7ea33a76.js} +10 -10
- package/dist/esm/{steps.taro-c82d2252.js → steps.taro-86753d36.js} +2 -2
- package/dist/esm/{sticky.taro-b5bde7b1.js → sticky.taro-a142a5f2.js} +3 -3
- package/dist/esm/{subsidenavbar.taro-3cce8442.js → subsidenavbar.taro-85c03291.js} +5 -5
- package/dist/esm/{swipe.taro-350c9a94.js → swipe.taro-b18a73ff.js} +4 -4
- package/dist/esm/{swiper.taro-7a94e211.js → swiper.taro-c0e9a56b.js} +13 -13
- package/dist/esm/{swiperitem-c9e3d0d5.js → swiperitem-abab7606.js} +3 -3
- package/dist/esm/switch.taro-e82809f6.js +38 -0
- package/dist/esm/{tabbar.taro-9acfc2fa.js → tabbar.taro-eefd0f8e.js} +5 -5
- package/dist/esm/{tabbaritem.taro-42ba353f.js → tabbaritem.taro-7a97e645.js} +7 -7
- package/dist/esm/{table.taro-3946697c.js → table.taro-eca757f3.js} +16 -16
- package/dist/esm/tabpane.taro-406cc0d3.js +21 -0
- package/dist/esm/tabs.taro-d47ccfc5.js +120 -0
- package/dist/esm/{tag.taro-0c2567de.js → tag.taro-846ee805.js} +6 -6
- package/dist/esm/{textarea.taro-a0f79515.js → textarea.taro-e256e741.js} +7 -7
- package/dist/esm/{timedetail.taro-fce4e614.js → timedetail.taro-cae362b9.js} +3 -3
- package/dist/esm/{timepannel.taro-fd3d008d.js → timepannel.taro-d6f4cf80.js} +3 -3
- package/dist/esm/{timeselect.taro-a4b86771.js → timeselect.taro-804199f9.js} +12 -12
- package/dist/esm/{toast.taro-e4f44812.js → toast.taro-c509a870.js} +10 -10
- package/dist/esm/{trendarrow.taro-7cf90def.js → trendarrow.taro-dd83ec94.js} +4 -4
- package/dist/esm/{uploader.taro-2151eec6.js → uploader.taro-716f9a50.js} +31 -31
- package/dist/esm/{video-7ed508cc.js → video-1c6405b4.js} +5 -5
- package/dist/esm/{virtuallist.taro-35b9bd9a.js → virtuallist.taro-0bd611cb.js} +8 -8
- package/dist/esm/{watermark.taro-c780d360.js → watermark.taro-8966896a.js} +3 -3
- 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 +21943 -22501
- package/dist/nutui.react.umd.js +21943 -22501
- package/dist/packages/badge/badge.scss +8 -17
- package/dist/packages/dialog/dialog.scss +36 -65
- package/dist/packages/elevator/elevator.scss +2 -28
- package/dist/packages/menu/menu.scss +44 -55
- package/dist/packages/menuitem/menuitem.scss +16 -26
- package/dist/packages/navbar/navbar.scss +16 -115
- package/dist/packages/overlay/overlay.scss +11 -4
- package/dist/packages/progress/progress.scss +19 -58
- package/dist/packages/switch/switch.scss +13 -31
- package/dist/packages/tabs/tabs.scss +196 -225
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +17 -17
- package/dist/styles/variables-jmapp.scss +35 -125
- package/dist/styles/variables.scss +53 -136
- package/dist/types/index.d.ts +352 -408
- package/package.json +2 -2
- package/dist/esm/card.taro-5e9b34c8.js +0 -33
- package/dist/esm/dialog.taro-00ac41fd.js +0 -118
- package/dist/esm/fixednav.taro-39fbd47a.js +0 -54
- package/dist/esm/menu.taro-54951911.js +0 -98
- package/dist/esm/navbar.taro-69f47d51.js +0 -77
- package/dist/esm/progress.taro-24392ef3.js +0 -88
- package/dist/esm/sidenavbar.taro-d5c5b331.js +0 -33
- package/dist/esm/switch.taro-34ca8228.js +0 -50
- package/dist/esm/tabpane.taro-4ca340ef.js +0 -23
- package/dist/esm/tabs.taro-be8cacb5.js +0 -140
package/dist/types/index.d.ts
CHANGED
|
@@ -217,26 +217,6 @@ interface OverlayProps extends BasicComponent {
|
|
|
217
217
|
}
|
|
218
218
|
declare const Overlay: FunctionComponent<Partial<OverlayProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
219
219
|
|
|
220
|
-
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
221
|
-
interface PopupProps extends OverlayProps {
|
|
222
|
-
position: string;
|
|
223
|
-
transition: string;
|
|
224
|
-
overlayStyle: React__default.CSSProperties;
|
|
225
|
-
overlayClassName: string;
|
|
226
|
-
closeable: boolean;
|
|
227
|
-
closeIconPosition: string;
|
|
228
|
-
closeIcon: React__default.ReactNode;
|
|
229
|
-
destroyOnClose: boolean;
|
|
230
|
-
portal: Teleport;
|
|
231
|
-
overlay: boolean;
|
|
232
|
-
round: boolean;
|
|
233
|
-
onOpen: () => void;
|
|
234
|
-
onClose: () => void;
|
|
235
|
-
onClickOverlay: (e: ITouchEvent) => boolean | void;
|
|
236
|
-
onClickCloseIcon: (e: ITouchEvent) => boolean | void;
|
|
237
|
-
}
|
|
238
|
-
declare const Popup: FunctionComponent<Partial<PopupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
239
|
-
|
|
240
220
|
type EventType$1 = 'row' | 'col';
|
|
241
221
|
interface ColProps extends BasicComponent {
|
|
242
222
|
span: string | number;
|
|
@@ -248,10 +228,8 @@ declare const Col: FunctionComponent<Partial<ColProps> & Omit<React__default.HTM
|
|
|
248
228
|
|
|
249
229
|
type ContentPositionType = 'left' | 'center' | 'right';
|
|
250
230
|
type DirectionType = 'horizontal' | 'vertical';
|
|
251
|
-
interface DividerProps {
|
|
231
|
+
interface DividerProps extends BasicComponent {
|
|
252
232
|
contentPosition: ContentPositionType;
|
|
253
|
-
style?: React__default.CSSProperties;
|
|
254
|
-
className?: string;
|
|
255
233
|
direction?: DirectionType;
|
|
256
234
|
}
|
|
257
235
|
declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -309,15 +287,22 @@ interface StickyProps extends BasicComponent {
|
|
|
309
287
|
}
|
|
310
288
|
declare const Sticky: FunctionComponent<Partial<StickyProps>>;
|
|
311
289
|
|
|
290
|
+
interface BackTopProps extends BasicComponent {
|
|
291
|
+
threshold: number;
|
|
292
|
+
zIndex: number;
|
|
293
|
+
duration: number;
|
|
294
|
+
onClick?: (event: MouseEvent) => void;
|
|
295
|
+
}
|
|
296
|
+
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
297
|
+
|
|
312
298
|
declare const elevatorContext: React__default.Context<ElevatorData>;
|
|
313
|
-
interface ElevatorProps {
|
|
299
|
+
interface ElevatorProps extends BasicComponent {
|
|
314
300
|
height: number | string;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
301
|
+
floorKey: string;
|
|
302
|
+
list: any[];
|
|
303
|
+
sticky: boolean;
|
|
318
304
|
spaceHeight: number;
|
|
319
305
|
titleHeight: number;
|
|
320
|
-
className: string;
|
|
321
306
|
style: React__default.CSSProperties;
|
|
322
307
|
children: React__default.ReactNode;
|
|
323
308
|
onClickItem: (key: string, item: ElevatorData) => void;
|
|
@@ -351,81 +336,19 @@ interface FixedNavProps extends BasicComponent {
|
|
|
351
336
|
}
|
|
352
337
|
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
|
|
353
338
|
|
|
354
|
-
interface IndicatorProps {
|
|
355
|
-
total: number;
|
|
356
|
-
current: number;
|
|
357
|
-
direction: string;
|
|
358
|
-
}
|
|
359
|
-
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
360
|
-
|
|
361
|
-
interface MenuProps extends BasicComponent {
|
|
362
|
-
className: string;
|
|
363
|
-
style: React__default.CSSProperties;
|
|
364
|
-
activeColor: string;
|
|
365
|
-
closeOnClickOverlay: boolean;
|
|
366
|
-
scrollFixed: boolean | string | number;
|
|
367
|
-
lockScroll: boolean;
|
|
368
|
-
titleIcon: React__default.ReactNode;
|
|
369
|
-
children: React__default.ReactNode;
|
|
370
|
-
}
|
|
371
|
-
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
372
|
-
|
|
373
|
-
interface OptionItem {
|
|
374
|
-
text: string;
|
|
375
|
-
value: string | number;
|
|
376
|
-
}
|
|
377
|
-
interface MenuItemProps extends BasicComponent {
|
|
378
|
-
className: string;
|
|
379
|
-
style: React__default.CSSProperties;
|
|
380
|
-
title: React__default.ReactNode;
|
|
381
|
-
options: OptionItem[];
|
|
382
|
-
disabled: boolean;
|
|
383
|
-
columns: number;
|
|
384
|
-
optionsIcon: React__default.ReactNode;
|
|
385
|
-
direction: string;
|
|
386
|
-
activeTitleClass: string;
|
|
387
|
-
inactiveTitleClass: string;
|
|
388
|
-
value: string | number;
|
|
389
|
-
onChange: (event: any) => void;
|
|
390
|
-
children: React__default.ReactNode;
|
|
391
|
-
}
|
|
392
|
-
declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
|
|
393
|
-
|
|
394
339
|
interface NavBarProps$1 extends BasicComponent {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
description: string;
|
|
399
|
-
className: string;
|
|
340
|
+
left: React__default.ReactNode;
|
|
341
|
+
back: React__default.ReactNode;
|
|
342
|
+
right: React__default.ReactNode;
|
|
400
343
|
fixed: boolean;
|
|
401
344
|
safeAreaInsetTop: boolean;
|
|
402
|
-
border: boolean;
|
|
403
345
|
placeholder: boolean;
|
|
404
346
|
zIndex: number | string;
|
|
405
|
-
style: React__default.CSSProperties;
|
|
406
|
-
onClickTitle: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
407
|
-
onClickIcon: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
408
347
|
onClickBack: (e: React__default.MouseEvent<HTMLElement>) => void;
|
|
409
|
-
onClickRight: (e: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
410
348
|
children?: React__default.ReactNode;
|
|
411
349
|
}
|
|
412
350
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
413
351
|
|
|
414
|
-
interface PaginationProps extends BasicComponent {
|
|
415
|
-
defaultValue: number;
|
|
416
|
-
value: number;
|
|
417
|
-
mode: 'multi' | 'simple';
|
|
418
|
-
prev: ReactNode;
|
|
419
|
-
next: ReactNode;
|
|
420
|
-
total: number;
|
|
421
|
-
pageSize: number;
|
|
422
|
-
itemSize: number;
|
|
423
|
-
ellipse: boolean;
|
|
424
|
-
itemRender: (page: any) => ReactNode;
|
|
425
|
-
onChange: (currPage: number) => void;
|
|
426
|
-
}
|
|
427
|
-
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
428
|
-
|
|
429
352
|
type NavBarProps = {
|
|
430
353
|
showhead?: boolean;
|
|
431
354
|
};
|
|
@@ -500,40 +423,25 @@ interface TabPanelInnerProps {
|
|
|
500
423
|
}
|
|
501
424
|
interface TabPaneProps {
|
|
502
425
|
title: string | number;
|
|
503
|
-
|
|
504
|
-
activeKey: string | number;
|
|
426
|
+
value: string | number;
|
|
505
427
|
disabled: boolean;
|
|
506
428
|
className: string;
|
|
507
429
|
children?: React__default.ReactNode;
|
|
508
430
|
}
|
|
509
431
|
declare const TabPane: FunctionComponent<Partial<TabPaneProps & TabPanelInnerProps>>;
|
|
510
432
|
|
|
511
|
-
declare class Title {
|
|
512
|
-
title: string;
|
|
513
|
-
paneKey: string;
|
|
514
|
-
disabled: boolean;
|
|
515
|
-
index: number;
|
|
516
|
-
constructor();
|
|
517
|
-
}
|
|
518
|
-
type TabsSize = 'large' | 'normal' | 'small';
|
|
519
433
|
interface TabsProps extends BasicComponent {
|
|
520
|
-
className: string;
|
|
521
|
-
style: React__default.CSSProperties;
|
|
522
434
|
tabStyle: React__default.CSSProperties;
|
|
523
435
|
value: string | number;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
direction:
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
leftAlign: boolean;
|
|
534
|
-
titleNode: () => JSX.Element[];
|
|
535
|
-
onChange: (t: Title) => void;
|
|
536
|
-
onClick: (t: Title) => void;
|
|
436
|
+
defaultValue: string | number;
|
|
437
|
+
activeColor: string;
|
|
438
|
+
direction: 'horizontal' | 'vertical';
|
|
439
|
+
activeType: 'line' | 'smile';
|
|
440
|
+
duration: number | string;
|
|
441
|
+
align: 'left' | 'right';
|
|
442
|
+
title: () => JSX.Element[];
|
|
443
|
+
onChange: (index: string | number) => void;
|
|
444
|
+
onClick: (index: string | number) => void;
|
|
537
445
|
autoHeight: boolean;
|
|
538
446
|
children?: React__default.ReactNode;
|
|
539
447
|
}
|
|
@@ -541,6 +449,74 @@ declare const Tabs: FunctionComponent<Partial<TabsProps>> & {
|
|
|
541
449
|
TabPane: typeof TabPane;
|
|
542
450
|
};
|
|
543
451
|
|
|
452
|
+
interface RegionData {
|
|
453
|
+
name?: string;
|
|
454
|
+
[key: string]: any;
|
|
455
|
+
}
|
|
456
|
+
interface ChangeCallBack {
|
|
457
|
+
next: string;
|
|
458
|
+
value: string | RegionData;
|
|
459
|
+
custom: string;
|
|
460
|
+
}
|
|
461
|
+
interface CloseCallBackData extends SelectedRegionObj {
|
|
462
|
+
addressIdStr: string;
|
|
463
|
+
addressStr: string;
|
|
464
|
+
}
|
|
465
|
+
interface CloseCallBack {
|
|
466
|
+
data: CloseCallBackData | AddressList;
|
|
467
|
+
type: string;
|
|
468
|
+
}
|
|
469
|
+
interface AddressList {
|
|
470
|
+
id?: string | number;
|
|
471
|
+
provinceName: string;
|
|
472
|
+
cityName: string;
|
|
473
|
+
countyName: string;
|
|
474
|
+
townName: string;
|
|
475
|
+
addressDetail: string;
|
|
476
|
+
selectedAddress: boolean;
|
|
477
|
+
name?: string;
|
|
478
|
+
phone?: string;
|
|
479
|
+
}
|
|
480
|
+
interface SelectedRegionObj {
|
|
481
|
+
province: RegionData;
|
|
482
|
+
city: RegionData;
|
|
483
|
+
country: RegionData;
|
|
484
|
+
town: RegionData;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
interface AddressProps extends BasicComponent {
|
|
488
|
+
className?: string;
|
|
489
|
+
style?: CSSProperties;
|
|
490
|
+
modelValue: boolean;
|
|
491
|
+
modelSelect: (string | number)[];
|
|
492
|
+
type: string;
|
|
493
|
+
customAddressTitle: string;
|
|
494
|
+
province: RegionData[];
|
|
495
|
+
city: RegionData[];
|
|
496
|
+
country: RegionData[];
|
|
497
|
+
town: RegionData[];
|
|
498
|
+
isShowCustomAddress: boolean;
|
|
499
|
+
existAddress: AddressList[];
|
|
500
|
+
existAddressTitle: string;
|
|
501
|
+
customAndExistTitle: string;
|
|
502
|
+
height: string | number;
|
|
503
|
+
defaultIcon: React__default.ReactNode;
|
|
504
|
+
selectedIcon: React__default.ReactNode;
|
|
505
|
+
closeBtnIcon: React__default.ReactNode;
|
|
506
|
+
backBtnIcon: React__default.ReactNode;
|
|
507
|
+
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
508
|
+
onClose?: (cal: CloseCallBack) => void;
|
|
509
|
+
onCancel?: (cal: {
|
|
510
|
+
closeWay: string;
|
|
511
|
+
}) => void;
|
|
512
|
+
onSwitch?: (cal: {
|
|
513
|
+
type: string;
|
|
514
|
+
}) => void;
|
|
515
|
+
onChange?: (cal: ChangeCallBack) => void;
|
|
516
|
+
onTabChecked?: (cal: string) => void;
|
|
517
|
+
}
|
|
518
|
+
declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
519
|
+
|
|
544
520
|
type CalendarRef$1 = {
|
|
545
521
|
scrollToDate: (date: string) => void;
|
|
546
522
|
};
|
|
@@ -883,6 +859,36 @@ interface InputNumberProps extends BasicComponent {
|
|
|
883
859
|
}
|
|
884
860
|
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
885
861
|
|
|
862
|
+
interface MenuProps extends BasicComponent {
|
|
863
|
+
activeColor: string;
|
|
864
|
+
closeOnClickOverlay: boolean;
|
|
865
|
+
scrollFixed: boolean | string | number;
|
|
866
|
+
lockScroll: boolean;
|
|
867
|
+
icon: React__default.ReactNode;
|
|
868
|
+
children: React__default.ReactNode;
|
|
869
|
+
}
|
|
870
|
+
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
871
|
+
|
|
872
|
+
interface OptionItem {
|
|
873
|
+
text: string;
|
|
874
|
+
value: string | number;
|
|
875
|
+
}
|
|
876
|
+
interface MenuItemProps extends BasicComponent {
|
|
877
|
+
title: React__default.ReactNode;
|
|
878
|
+
options: OptionItem[];
|
|
879
|
+
disabled: boolean;
|
|
880
|
+
columns: number;
|
|
881
|
+
icon: React__default.ReactNode;
|
|
882
|
+
closeOnClickAway: boolean;
|
|
883
|
+
direction: string;
|
|
884
|
+
activeTitleClass: string;
|
|
885
|
+
inactiveTitleClass: string;
|
|
886
|
+
value: string | number;
|
|
887
|
+
onChange: (event: any) => void;
|
|
888
|
+
children: React__default.ReactNode;
|
|
889
|
+
}
|
|
890
|
+
declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuItemProps> & React__default.RefAttributes<unknown>>;
|
|
891
|
+
|
|
886
892
|
interface NumberKeyboardProps {
|
|
887
893
|
confirmText: string;
|
|
888
894
|
title: string;
|
|
@@ -1083,6 +1089,36 @@ interface ShortPasswordProps extends BasicComponent {
|
|
|
1083
1089
|
}
|
|
1084
1090
|
declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
1085
1091
|
|
|
1092
|
+
interface FileType$1 {
|
|
1093
|
+
/** jpg 图片 */
|
|
1094
|
+
jpg: any;
|
|
1095
|
+
/** png 图片 */
|
|
1096
|
+
png: any;
|
|
1097
|
+
}
|
|
1098
|
+
interface SignatureProps {
|
|
1099
|
+
canvasId: string;
|
|
1100
|
+
type: keyof FileType$1;
|
|
1101
|
+
lineWidth: number;
|
|
1102
|
+
strokeStyle: string;
|
|
1103
|
+
unSupportTpl: string;
|
|
1104
|
+
className: string;
|
|
1105
|
+
confirm?: (dataurl: string) => void;
|
|
1106
|
+
clear?: () => void;
|
|
1107
|
+
onConfirm?: (dataurl: string) => void;
|
|
1108
|
+
onClear?: () => void;
|
|
1109
|
+
}
|
|
1110
|
+
declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1111
|
+
|
|
1112
|
+
interface SwitchProps extends BasicComponent {
|
|
1113
|
+
checked: boolean;
|
|
1114
|
+
defaultChecked: boolean;
|
|
1115
|
+
disabled: boolean;
|
|
1116
|
+
activeText: string;
|
|
1117
|
+
inactiveText: string;
|
|
1118
|
+
onChange: (val: boolean, event: React__default.MouseEvent) => void;
|
|
1119
|
+
}
|
|
1120
|
+
declare const Switch: FunctionComponent<Partial<SwitchProps>>;
|
|
1121
|
+
|
|
1086
1122
|
interface TextAreaProps {
|
|
1087
1123
|
className?: string;
|
|
1088
1124
|
defaultValue: string | number | any;
|
|
@@ -1120,7 +1156,7 @@ declare class UploadOptions {
|
|
|
1120
1156
|
beforeXhrUpload?: Function;
|
|
1121
1157
|
}
|
|
1122
1158
|
|
|
1123
|
-
type FileType
|
|
1159
|
+
type FileType<T> = {
|
|
1124
1160
|
[key: string]: T;
|
|
1125
1161
|
};
|
|
1126
1162
|
type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
|
|
@@ -1153,8 +1189,8 @@ interface UploaderProps extends BasicComponent {
|
|
|
1153
1189
|
mediaType: (keyof mediaType)[];
|
|
1154
1190
|
camera: string;
|
|
1155
1191
|
maxFileSize: number;
|
|
1156
|
-
defaultValue?: FileType
|
|
1157
|
-
value?: FileType
|
|
1192
|
+
defaultValue?: FileType<React__default.ReactNode>[];
|
|
1193
|
+
value?: FileType<string>[];
|
|
1158
1194
|
previewType: 'picture' | 'list';
|
|
1159
1195
|
imageFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1160
1196
|
uploadIcon?: React__default.ReactNode;
|
|
@@ -1176,11 +1212,11 @@ interface UploaderProps extends BasicComponent {
|
|
|
1176
1212
|
maxDuration: number;
|
|
1177
1213
|
style: React__default.CSSProperties;
|
|
1178
1214
|
onStart?: (option: UploadOptions) => void;
|
|
1179
|
-
onDelete?: (file: FileItem, fileList: FileType
|
|
1215
|
+
onDelete?: (file: FileItem, fileList: FileType<React__default.ReactNode>[]) => void;
|
|
1180
1216
|
onSuccess?: (param: {
|
|
1181
1217
|
responseText: XMLHttpRequest['responseText'];
|
|
1182
1218
|
option: UploadOptions;
|
|
1183
|
-
fileList: FileType
|
|
1219
|
+
fileList: FileType<React__default.ReactNode>[];
|
|
1184
1220
|
}) => void;
|
|
1185
1221
|
onProgress?: (param: {
|
|
1186
1222
|
e: ProgressEvent<XMLHttpRequestEventTarget>;
|
|
@@ -1190,15 +1226,15 @@ interface UploaderProps extends BasicComponent {
|
|
|
1190
1226
|
onFailure?: (param: {
|
|
1191
1227
|
responseText: XMLHttpRequest['responseText'];
|
|
1192
1228
|
option: UploadOptions;
|
|
1193
|
-
fileList: FileType
|
|
1229
|
+
fileList: FileType<React__default.ReactNode>[];
|
|
1194
1230
|
}) => void;
|
|
1195
|
-
onUpdate?: (fileList: FileType
|
|
1231
|
+
onUpdate?: (fileList: FileType<React__default.ReactNode>[]) => void;
|
|
1196
1232
|
onOversize?: (files: Taro.chooseImage.ImageFile[] | Taro.chooseMedia.ChooseMedia[] | any) => void;
|
|
1197
1233
|
onChange?: (param: {
|
|
1198
|
-
fileList: FileType
|
|
1234
|
+
fileList: FileType<React__default.ReactNode>[];
|
|
1199
1235
|
}) => void;
|
|
1200
1236
|
beforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1201
|
-
beforeDelete?: (file: FileItem, files: FileType
|
|
1237
|
+
beforeDelete?: (file: FileItem, files: FileType<React__default.ReactNode>[]) => boolean;
|
|
1202
1238
|
onFileItemClick?: (file: FileItem) => void;
|
|
1203
1239
|
}
|
|
1204
1240
|
declare class FileItem {
|
|
@@ -1236,44 +1272,42 @@ interface ActionSheetProps {
|
|
|
1236
1272
|
}
|
|
1237
1273
|
declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1238
1274
|
|
|
1239
|
-
interface
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1275
|
+
interface BadgeProps extends BasicComponent {
|
|
1276
|
+
value: ReactNode;
|
|
1277
|
+
dot: boolean;
|
|
1278
|
+
max: number;
|
|
1279
|
+
top: string;
|
|
1280
|
+
right: string;
|
|
1281
|
+
color: string;
|
|
1244
1282
|
}
|
|
1245
|
-
declare const
|
|
1283
|
+
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
1246
1284
|
|
|
1247
1285
|
interface BasicDialogProps {
|
|
1248
|
-
className?: string;
|
|
1249
|
-
style?: CSSProperties;
|
|
1250
1286
|
visible?: boolean;
|
|
1251
1287
|
title?: ReactNode;
|
|
1252
1288
|
content?: ReactNode;
|
|
1253
1289
|
footer?: ReactNode;
|
|
1254
1290
|
confirmText?: ReactNode;
|
|
1255
1291
|
cancelText?: ReactNode;
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
closeOnClickOverlay?: boolean;
|
|
1262
|
-
cancelAutoClose?: boolean;
|
|
1263
|
-
textAlign?: string;
|
|
1292
|
+
overlay?: boolean;
|
|
1293
|
+
hideConfirmButton?: boolean;
|
|
1294
|
+
hideCancelButton?: boolean;
|
|
1295
|
+
disableConfirmButton?: boolean;
|
|
1296
|
+
closeOnOverlayClick?: boolean;
|
|
1264
1297
|
footerDirection?: string;
|
|
1265
1298
|
lockScroll?: boolean;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
onClickSelf?: () => void;
|
|
1299
|
+
beforeClose?: () => boolean;
|
|
1300
|
+
beforeCancel?: () => boolean;
|
|
1301
|
+
onClose?: () => void;
|
|
1270
1302
|
onConfirm?: (e?: MouseEvent) => Promise<() => void> | void;
|
|
1303
|
+
onCancel?: () => void;
|
|
1304
|
+
onClick?: () => void;
|
|
1271
1305
|
}
|
|
1272
1306
|
|
|
1273
1307
|
type DialogProps = BasicDialogProps;
|
|
1274
|
-
declare const BaseDialog: React__default.ForwardRefExoticComponent<Partial<BasicDialogProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "title" | "content"> & React__default.RefAttributes<unknown>>;
|
|
1308
|
+
declare const BaseDialog: React__default.ForwardRefExoticComponent<Partial<BasicDialogProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onClick" | "title" | "content"> & React__default.RefAttributes<unknown>>;
|
|
1275
1309
|
|
|
1276
|
-
interface DragProps {
|
|
1310
|
+
interface DragProps extends BasicComponent {
|
|
1277
1311
|
attract: boolean;
|
|
1278
1312
|
direction: 'x' | 'y' | 'lock' | undefined;
|
|
1279
1313
|
boundary: {
|
|
@@ -1282,11 +1316,17 @@ interface DragProps {
|
|
|
1282
1316
|
right: number;
|
|
1283
1317
|
bottom: number;
|
|
1284
1318
|
};
|
|
1285
|
-
className: string;
|
|
1286
|
-
style: React__default.CSSProperties;
|
|
1287
1319
|
}
|
|
1288
1320
|
declare const Drag: FunctionComponent<Partial<DragProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1289
1321
|
|
|
1322
|
+
interface EmptyProps {
|
|
1323
|
+
image: ReactNode;
|
|
1324
|
+
imageSize: number | string;
|
|
1325
|
+
description: ReactNode;
|
|
1326
|
+
className: string;
|
|
1327
|
+
}
|
|
1328
|
+
declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1329
|
+
|
|
1290
1330
|
interface InfiniteloadingProps extends BasicComponent {
|
|
1291
1331
|
hasMore: boolean;
|
|
1292
1332
|
upperThreshold: number;
|
|
@@ -1305,7 +1345,33 @@ interface InfiniteloadingProps extends BasicComponent {
|
|
|
1305
1345
|
}
|
|
1306
1346
|
declare const Infiniteloading: FunctionComponent<Partial<InfiniteloadingProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1307
1347
|
|
|
1308
|
-
interface
|
|
1348
|
+
interface NoticeBarProps extends BasicComponent {
|
|
1349
|
+
direction: string;
|
|
1350
|
+
className?: string;
|
|
1351
|
+
style?: CSSProperties;
|
|
1352
|
+
list: any;
|
|
1353
|
+
standTime: number;
|
|
1354
|
+
complexAm: boolean;
|
|
1355
|
+
height: number;
|
|
1356
|
+
text: string;
|
|
1357
|
+
closeMode: boolean;
|
|
1358
|
+
wrapable: boolean;
|
|
1359
|
+
leftIcon: ReactNode;
|
|
1360
|
+
rightIcon: ReactNode;
|
|
1361
|
+
color: string;
|
|
1362
|
+
background: string;
|
|
1363
|
+
delay: string | number;
|
|
1364
|
+
scrollable: boolean | null;
|
|
1365
|
+
speed: number;
|
|
1366
|
+
close?: (event: any) => void;
|
|
1367
|
+
click?: (event: any) => void;
|
|
1368
|
+
onClose?: (event: any) => void;
|
|
1369
|
+
onClick?: (event: any) => void;
|
|
1370
|
+
onClickItem?: (event: any, value: any) => void;
|
|
1371
|
+
}
|
|
1372
|
+
declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1373
|
+
|
|
1374
|
+
interface NotifyProps {
|
|
1309
1375
|
id?: string;
|
|
1310
1376
|
style?: React__default.CSSProperties;
|
|
1311
1377
|
msg: string;
|
|
@@ -1322,6 +1388,27 @@ interface NotifyProps {
|
|
|
1322
1388
|
}
|
|
1323
1389
|
declare const Notify: FunctionComponent<Partial<NotifyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1324
1390
|
|
|
1391
|
+
type PopoverTheme = 'light' | 'dark';
|
|
1392
|
+
type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1393
|
+
interface List {
|
|
1394
|
+
name: string;
|
|
1395
|
+
icon?: React__default.ReactNode;
|
|
1396
|
+
disabled?: boolean;
|
|
1397
|
+
}
|
|
1398
|
+
interface PopoverProps extends BasicComponent {
|
|
1399
|
+
list: List[];
|
|
1400
|
+
theme: PopoverTheme;
|
|
1401
|
+
location: PopoverLocation | string;
|
|
1402
|
+
visible: boolean;
|
|
1403
|
+
offset: string | number;
|
|
1404
|
+
className: string;
|
|
1405
|
+
style?: CSSProperties;
|
|
1406
|
+
children?: React__default.ReactNode;
|
|
1407
|
+
onClick: (e: React__default.MouseEvent | ITouchEvent) => void;
|
|
1408
|
+
onChoose: (item: List, index: number) => void;
|
|
1409
|
+
}
|
|
1410
|
+
declare const Popover: FunctionComponent<Partial<PopoverProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1411
|
+
|
|
1325
1412
|
type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
1326
1413
|
interface PullToRefreshProps {
|
|
1327
1414
|
className: string;
|
|
@@ -1340,6 +1427,24 @@ interface PullToRefreshProps {
|
|
|
1340
1427
|
}
|
|
1341
1428
|
declare const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>>;
|
|
1342
1429
|
|
|
1430
|
+
type avatarShape = 'round' | 'square';
|
|
1431
|
+
interface SkeletonProps {
|
|
1432
|
+
width: string;
|
|
1433
|
+
height: string;
|
|
1434
|
+
animated: boolean;
|
|
1435
|
+
row: number;
|
|
1436
|
+
title: boolean;
|
|
1437
|
+
avatar: boolean;
|
|
1438
|
+
className?: string;
|
|
1439
|
+
style?: React__default.CSSProperties;
|
|
1440
|
+
avatarSize: string;
|
|
1441
|
+
round: boolean;
|
|
1442
|
+
loading: boolean;
|
|
1443
|
+
avatarShape: avatarShape;
|
|
1444
|
+
children?: React__default.ReactNode;
|
|
1445
|
+
}
|
|
1446
|
+
declare const Skeleton: FunctionComponent<Partial<SkeletonProps>>;
|
|
1447
|
+
|
|
1343
1448
|
type SwipeSide = 'left' | 'right';
|
|
1344
1449
|
type SwipePosition = SwipeSide | 'cell' | 'outside';
|
|
1345
1450
|
interface SwipeInstance {
|
|
@@ -1384,19 +1489,25 @@ interface SwipeProps {
|
|
|
1384
1489
|
}
|
|
1385
1490
|
declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchStart" | "onTouchMove" | "onTouchEnd"> & React__default.RefAttributes<SwipeInstance>>;
|
|
1386
1491
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1492
|
+
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
1493
|
+
interface PopupProps extends OverlayProps {
|
|
1494
|
+
position: string;
|
|
1495
|
+
transition: string;
|
|
1496
|
+
overlayStyle: React__default.CSSProperties;
|
|
1497
|
+
overlayClassName: string;
|
|
1498
|
+
closeable: boolean;
|
|
1499
|
+
closeIconPosition: string;
|
|
1500
|
+
closeIcon: React__default.ReactNode;
|
|
1501
|
+
destroyOnClose: boolean;
|
|
1502
|
+
portal: Teleport;
|
|
1503
|
+
overlay: boolean;
|
|
1504
|
+
round: boolean;
|
|
1505
|
+
onOpen: () => void;
|
|
1506
|
+
onClose: () => void;
|
|
1507
|
+
onClickOverlay: (e: ITouchEvent) => boolean | void;
|
|
1508
|
+
onClickCloseIcon: (e: ITouchEvent) => boolean | void;
|
|
1398
1509
|
}
|
|
1399
|
-
declare const
|
|
1510
|
+
declare const Popup: FunctionComponent<Partial<PopupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1400
1511
|
|
|
1401
1512
|
interface ToastProps {
|
|
1402
1513
|
id?: string;
|
|
@@ -1424,12 +1535,10 @@ declare const Toast: FunctionComponent<Partial<ToastProps> & React__default.HTML
|
|
|
1424
1535
|
type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
|
|
1425
1536
|
type AnimateAction = 'initial' | 'click';
|
|
1426
1537
|
|
|
1427
|
-
interface AnimateProps {
|
|
1538
|
+
interface AnimateProps extends BasicComponent {
|
|
1428
1539
|
type: AnimateType;
|
|
1429
1540
|
action: AnimateAction;
|
|
1430
1541
|
loop: boolean;
|
|
1431
|
-
className: string;
|
|
1432
|
-
style: React__default.CSSProperties;
|
|
1433
1542
|
onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1434
1543
|
}
|
|
1435
1544
|
declare const Animate: FunctionComponent<Partial<AnimateProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1502,19 +1611,6 @@ interface AvatarGroupProps {
|
|
|
1502
1611
|
}
|
|
1503
1612
|
declare const AvatarGroup: FunctionComponent<Partial<AvatarGroupProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1504
1613
|
|
|
1505
|
-
interface BadgeProps extends BasicComponent {
|
|
1506
|
-
value: any;
|
|
1507
|
-
dot: boolean;
|
|
1508
|
-
max: number;
|
|
1509
|
-
top: string;
|
|
1510
|
-
right: string;
|
|
1511
|
-
zIndex: string;
|
|
1512
|
-
color: string;
|
|
1513
|
-
icon: ReactNode;
|
|
1514
|
-
children?: ReactNode;
|
|
1515
|
-
}
|
|
1516
|
-
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
1517
|
-
|
|
1518
1614
|
interface CircleProgressProps {
|
|
1519
1615
|
progress: string | number;
|
|
1520
1616
|
strokeWidth?: string | number;
|
|
@@ -1583,14 +1679,6 @@ interface EllipsisProps {
|
|
|
1583
1679
|
}
|
|
1584
1680
|
declare const Ellipsis: FunctionComponent<Partial<EllipsisProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
1585
1681
|
|
|
1586
|
-
interface EmptyProps {
|
|
1587
|
-
image: ReactNode;
|
|
1588
|
-
imageSize: number | string;
|
|
1589
|
-
description: ReactNode;
|
|
1590
|
-
className: string;
|
|
1591
|
-
}
|
|
1592
|
-
declare const Empty: FunctionComponent<Partial<EmptyProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1593
|
-
|
|
1594
1682
|
interface ImagePreviewProps {
|
|
1595
1683
|
className?: string;
|
|
1596
1684
|
images: Array<{
|
|
@@ -1617,52 +1705,42 @@ interface ImagePreviewProps {
|
|
|
1617
1705
|
}
|
|
1618
1706
|
declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
|
|
1619
1707
|
|
|
1620
|
-
interface
|
|
1708
|
+
interface IndicatorProps {
|
|
1709
|
+
total: number;
|
|
1710
|
+
current: number;
|
|
1621
1711
|
direction: string;
|
|
1622
|
-
className?: string;
|
|
1623
|
-
style?: CSSProperties;
|
|
1624
|
-
list: any;
|
|
1625
|
-
standTime: number;
|
|
1626
|
-
complexAm: boolean;
|
|
1627
|
-
height: number;
|
|
1628
|
-
text: string;
|
|
1629
|
-
closeMode: boolean;
|
|
1630
|
-
wrapable: boolean;
|
|
1631
|
-
leftIcon: ReactNode;
|
|
1632
|
-
rightIcon: ReactNode;
|
|
1633
|
-
color: string;
|
|
1634
|
-
background: string;
|
|
1635
|
-
delay: string | number;
|
|
1636
|
-
scrollable: boolean | null;
|
|
1637
|
-
speed: number;
|
|
1638
|
-
close?: (event: any) => void;
|
|
1639
|
-
click?: (event: any) => void;
|
|
1640
|
-
onClose?: (event: any) => void;
|
|
1641
|
-
onClick?: (event: any) => void;
|
|
1642
|
-
onClickItem?: (event: any, value: any) => void;
|
|
1643
1712
|
}
|
|
1644
|
-
declare const
|
|
1713
|
+
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1645
1714
|
|
|
1646
|
-
type
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1715
|
+
type VirtualListProps = {
|
|
1716
|
+
className?: string | any;
|
|
1717
|
+
style?: React__default.CSSProperties;
|
|
1718
|
+
sourceData: any;
|
|
1719
|
+
containerSize?: number;
|
|
1720
|
+
ItemRender?: any;
|
|
1721
|
+
itemEqualSize?: boolean;
|
|
1722
|
+
itemSize?: number;
|
|
1723
|
+
overscan?: number;
|
|
1724
|
+
onScroll?: (...args: any[]) => any;
|
|
1725
|
+
key?: any;
|
|
1726
|
+
locale?: any;
|
|
1727
|
+
};
|
|
1728
|
+
declare const VirtualList: FunctionComponent<VirtualListProps & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1729
|
+
|
|
1730
|
+
interface PaginationProps extends BasicComponent {
|
|
1731
|
+
defaultValue: number;
|
|
1732
|
+
value: number;
|
|
1733
|
+
mode: 'multi' | 'simple';
|
|
1734
|
+
prev: ReactNode;
|
|
1735
|
+
next: ReactNode;
|
|
1736
|
+
total: number;
|
|
1737
|
+
pageSize: number;
|
|
1738
|
+
itemSize: number;
|
|
1739
|
+
ellipse: boolean;
|
|
1740
|
+
itemRender: (page: any) => ReactNode;
|
|
1741
|
+
onChange: (currPage: number) => void;
|
|
1664
1742
|
}
|
|
1665
|
-
declare const
|
|
1743
|
+
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
1666
1744
|
|
|
1667
1745
|
interface PriceProps {
|
|
1668
1746
|
price: number | string;
|
|
@@ -1677,46 +1755,15 @@ interface PriceProps {
|
|
|
1677
1755
|
}
|
|
1678
1756
|
declare const Price: FunctionComponent<Partial<PriceProps>>;
|
|
1679
1757
|
|
|
1680
|
-
type ProgressSize = 'small' | 'base' | 'large';
|
|
1681
|
-
type TextType = 'icon' | 'text';
|
|
1682
1758
|
interface ProgressProps extends BasicComponent {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
percentage: number;
|
|
1687
|
-
fillColor: string;
|
|
1688
|
-
strokeColor: string;
|
|
1759
|
+
percent: number;
|
|
1760
|
+
background: string;
|
|
1761
|
+
color: string;
|
|
1689
1762
|
strokeWidth: string;
|
|
1690
|
-
size: ProgressSize;
|
|
1691
|
-
textColor: string;
|
|
1692
|
-
textWidth: string;
|
|
1693
1763
|
showText: boolean;
|
|
1694
|
-
textInside: boolean;
|
|
1695
|
-
textBackground: string;
|
|
1696
|
-
textType: TextType;
|
|
1697
|
-
status: boolean;
|
|
1698
|
-
icon: ReactNode;
|
|
1699
|
-
children: ReactNode;
|
|
1700
|
-
}
|
|
1701
|
-
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1702
|
-
|
|
1703
|
-
type avatarShape = 'round' | 'square';
|
|
1704
|
-
interface SkeletonProps {
|
|
1705
|
-
width: string;
|
|
1706
|
-
height: string;
|
|
1707
1764
|
animated: boolean;
|
|
1708
|
-
row: number;
|
|
1709
|
-
title: boolean;
|
|
1710
|
-
avatar: boolean;
|
|
1711
|
-
className?: string;
|
|
1712
|
-
style?: React__default.CSSProperties;
|
|
1713
|
-
avatarSize: string;
|
|
1714
|
-
round: boolean;
|
|
1715
|
-
loading: boolean;
|
|
1716
|
-
avatarShape: avatarShape;
|
|
1717
|
-
children?: React__default.ReactNode;
|
|
1718
1765
|
}
|
|
1719
|
-
declare const
|
|
1766
|
+
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1720
1767
|
|
|
1721
1768
|
interface StepProps extends BasicComponent {
|
|
1722
1769
|
title: string;
|
|
@@ -1814,24 +1861,6 @@ interface TagProps extends BasicComponent {
|
|
|
1814
1861
|
type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
1815
1862
|
declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
1816
1863
|
|
|
1817
|
-
interface TrendArrowProps {
|
|
1818
|
-
rate: number;
|
|
1819
|
-
digits: number;
|
|
1820
|
-
showSign: boolean;
|
|
1821
|
-
showZero: boolean;
|
|
1822
|
-
arrowLeft: boolean;
|
|
1823
|
-
syncTextColor: boolean;
|
|
1824
|
-
textColor: string;
|
|
1825
|
-
riseColor: string;
|
|
1826
|
-
dropColor: string;
|
|
1827
|
-
iconSize: string;
|
|
1828
|
-
upIcon: React__default.ReactNode;
|
|
1829
|
-
downIcon: React__default.ReactNode;
|
|
1830
|
-
className: string;
|
|
1831
|
-
style: React__default.CSSProperties;
|
|
1832
|
-
}
|
|
1833
|
-
declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1834
|
-
|
|
1835
1864
|
interface VideoProps$1 {
|
|
1836
1865
|
source: {
|
|
1837
1866
|
type: string;
|
|
@@ -1856,111 +1885,6 @@ interface VideoProps$1 {
|
|
|
1856
1885
|
}
|
|
1857
1886
|
declare const Video: FunctionComponent<Partial<VideoProps$1> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;
|
|
1858
1887
|
|
|
1859
|
-
type VirtualListProps = {
|
|
1860
|
-
className?: string | any;
|
|
1861
|
-
style?: React__default.CSSProperties;
|
|
1862
|
-
sourceData: any;
|
|
1863
|
-
containerSize?: number;
|
|
1864
|
-
ItemRender?: any;
|
|
1865
|
-
itemEqualSize?: boolean;
|
|
1866
|
-
itemSize?: number;
|
|
1867
|
-
overscan?: number;
|
|
1868
|
-
onScroll?: (...args: any[]) => any;
|
|
1869
|
-
key?: any;
|
|
1870
|
-
locale?: any;
|
|
1871
|
-
};
|
|
1872
|
-
declare const VirtualList: FunctionComponent<VirtualListProps & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1873
|
-
|
|
1874
|
-
interface WaterMarkProps {
|
|
1875
|
-
content: string;
|
|
1876
|
-
fullPage: boolean;
|
|
1877
|
-
zIndex: number;
|
|
1878
|
-
className: string;
|
|
1879
|
-
gapX: number;
|
|
1880
|
-
gapY: number;
|
|
1881
|
-
width: number;
|
|
1882
|
-
height: number;
|
|
1883
|
-
image: string;
|
|
1884
|
-
imageWidth: number;
|
|
1885
|
-
imageHeight: number;
|
|
1886
|
-
rotate: number;
|
|
1887
|
-
fontColor: string;
|
|
1888
|
-
fontStyle: string;
|
|
1889
|
-
fontFamily: string;
|
|
1890
|
-
fontWeight: string;
|
|
1891
|
-
fontSize: string | number;
|
|
1892
|
-
style: React__default.CSSProperties;
|
|
1893
|
-
}
|
|
1894
|
-
declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1895
|
-
|
|
1896
|
-
interface RegionData {
|
|
1897
|
-
name?: string;
|
|
1898
|
-
[key: string]: any;
|
|
1899
|
-
}
|
|
1900
|
-
interface ChangeCallBack {
|
|
1901
|
-
next: string;
|
|
1902
|
-
value: string | RegionData;
|
|
1903
|
-
custom: string;
|
|
1904
|
-
}
|
|
1905
|
-
interface CloseCallBackData extends SelectedRegionObj {
|
|
1906
|
-
addressIdStr: string;
|
|
1907
|
-
addressStr: string;
|
|
1908
|
-
}
|
|
1909
|
-
interface CloseCallBack {
|
|
1910
|
-
data: CloseCallBackData | AddressList;
|
|
1911
|
-
type: string;
|
|
1912
|
-
}
|
|
1913
|
-
interface AddressList {
|
|
1914
|
-
id?: string | number;
|
|
1915
|
-
provinceName: string;
|
|
1916
|
-
cityName: string;
|
|
1917
|
-
countyName: string;
|
|
1918
|
-
townName: string;
|
|
1919
|
-
addressDetail: string;
|
|
1920
|
-
selectedAddress: boolean;
|
|
1921
|
-
name?: string;
|
|
1922
|
-
phone?: string;
|
|
1923
|
-
}
|
|
1924
|
-
interface SelectedRegionObj {
|
|
1925
|
-
province: RegionData;
|
|
1926
|
-
city: RegionData;
|
|
1927
|
-
country: RegionData;
|
|
1928
|
-
town: RegionData;
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
interface AddressProps extends BasicComponent {
|
|
1932
|
-
className?: string;
|
|
1933
|
-
style?: CSSProperties;
|
|
1934
|
-
modelValue: boolean;
|
|
1935
|
-
modelSelect: (string | number)[];
|
|
1936
|
-
type: string;
|
|
1937
|
-
customAddressTitle: string;
|
|
1938
|
-
province: RegionData[];
|
|
1939
|
-
city: RegionData[];
|
|
1940
|
-
country: RegionData[];
|
|
1941
|
-
town: RegionData[];
|
|
1942
|
-
isShowCustomAddress: boolean;
|
|
1943
|
-
existAddress: AddressList[];
|
|
1944
|
-
existAddressTitle: string;
|
|
1945
|
-
customAndExistTitle: string;
|
|
1946
|
-
height: string | number;
|
|
1947
|
-
defaultIcon: React__default.ReactNode;
|
|
1948
|
-
selectedIcon: React__default.ReactNode;
|
|
1949
|
-
closeBtnIcon: React__default.ReactNode;
|
|
1950
|
-
backBtnIcon: React__default.ReactNode;
|
|
1951
|
-
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
1952
|
-
onClose?: (cal: CloseCallBack) => void;
|
|
1953
|
-
onCancel?: (cal: {
|
|
1954
|
-
closeWay: string;
|
|
1955
|
-
}) => void;
|
|
1956
|
-
onSwitch?: (cal: {
|
|
1957
|
-
type: string;
|
|
1958
|
-
}) => void;
|
|
1959
|
-
onChange?: (cal: ChangeCallBack) => void;
|
|
1960
|
-
onTabChecked?: (cal: string) => void;
|
|
1961
|
-
}
|
|
1962
|
-
declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
1963
|
-
|
|
1964
1888
|
interface BarrageProps {
|
|
1965
1889
|
className: string;
|
|
1966
1890
|
style: React__default.CSSProperties;
|
|
@@ -1990,26 +1914,6 @@ interface CardProps {
|
|
|
1990
1914
|
}
|
|
1991
1915
|
declare const Card: FunctionComponent<Partial<CardProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1992
1916
|
|
|
1993
|
-
interface FileType {
|
|
1994
|
-
/** jpg 图片 */
|
|
1995
|
-
jpg: any;
|
|
1996
|
-
/** png 图片 */
|
|
1997
|
-
png: any;
|
|
1998
|
-
}
|
|
1999
|
-
interface SignatureProps {
|
|
2000
|
-
canvasId: string;
|
|
2001
|
-
type: keyof FileType;
|
|
2002
|
-
lineWidth: number;
|
|
2003
|
-
strokeStyle: string;
|
|
2004
|
-
unSupportTpl: string;
|
|
2005
|
-
className: string;
|
|
2006
|
-
confirm?: (dataurl: string) => void;
|
|
2007
|
-
clear?: () => void;
|
|
2008
|
-
onConfirm?: (dataurl: string) => void;
|
|
2009
|
-
onClear?: () => void;
|
|
2010
|
-
}
|
|
2011
|
-
declare const Signature: FunctionComponent<Partial<SignatureProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2012
|
-
|
|
2013
1917
|
interface TimeType {
|
|
2014
1918
|
key?: string | number;
|
|
2015
1919
|
list: string[];
|
|
@@ -2055,6 +1959,46 @@ interface TimeSelectProps {
|
|
|
2055
1959
|
}
|
|
2056
1960
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
2057
1961
|
|
|
1962
|
+
interface TrendArrowProps {
|
|
1963
|
+
rate: number;
|
|
1964
|
+
digits: number;
|
|
1965
|
+
showSign: boolean;
|
|
1966
|
+
showZero: boolean;
|
|
1967
|
+
arrowLeft: boolean;
|
|
1968
|
+
syncTextColor: boolean;
|
|
1969
|
+
textColor: string;
|
|
1970
|
+
riseColor: string;
|
|
1971
|
+
dropColor: string;
|
|
1972
|
+
iconSize: string;
|
|
1973
|
+
upIcon: React__default.ReactNode;
|
|
1974
|
+
downIcon: React__default.ReactNode;
|
|
1975
|
+
className: string;
|
|
1976
|
+
style: React__default.CSSProperties;
|
|
1977
|
+
}
|
|
1978
|
+
declare const TrendArrow: FunctionComponent<Partial<TrendArrowProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1979
|
+
|
|
1980
|
+
interface WaterMarkProps {
|
|
1981
|
+
content: string;
|
|
1982
|
+
fullPage: boolean;
|
|
1983
|
+
zIndex: number;
|
|
1984
|
+
className: string;
|
|
1985
|
+
gapX: number;
|
|
1986
|
+
gapY: number;
|
|
1987
|
+
width: number;
|
|
1988
|
+
height: number;
|
|
1989
|
+
image: string;
|
|
1990
|
+
imageWidth: number;
|
|
1991
|
+
imageHeight: number;
|
|
1992
|
+
rotate: number;
|
|
1993
|
+
fontColor: string;
|
|
1994
|
+
fontStyle: string;
|
|
1995
|
+
fontFamily: string;
|
|
1996
|
+
fontWeight: string;
|
|
1997
|
+
fontSize: string | number;
|
|
1998
|
+
style: React__default.CSSProperties;
|
|
1999
|
+
}
|
|
2000
|
+
declare const WaterMark: FunctionComponent<Partial<WaterMarkProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2001
|
+
|
|
2058
2002
|
interface CollapseItemProps extends BasicComponent {
|
|
2059
2003
|
title: ReactNode;
|
|
2060
2004
|
name: string;
|