@nutui/nutui-react-taro 1.5.1 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -35
- package/dist/esm/ActionSheet.js +6 -6
- package/dist/esm/Address/style/index.js +0 -1
- package/dist/esm/Address.js +11 -12
- package/dist/esm/Audio/style/index.js +0 -1
- package/dist/esm/Audio.js +11 -12
- package/dist/esm/Avatar.js +2 -3
- package/dist/esm/AvatarGroup.js +3 -3
- package/dist/esm/BackTop/style/index.js +1 -1
- package/dist/esm/BackTop.js +4 -5
- package/dist/esm/Badge.js +2 -3
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button/style/index.js +1 -1
- package/dist/esm/Button.js +4 -5
- package/dist/esm/Calendar.js +10 -10
- package/dist/esm/CalendarItem.js +4 -4
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Cascader.js +7 -7
- package/dist/esm/Cell/style/index.js +1 -1
- package/dist/esm/Cell.js +3 -6
- package/dist/esm/CellGroup.js +3 -3
- package/dist/esm/Checkbox/style/index.js +0 -1
- package/dist/esm/Checkbox.js +3 -3
- package/dist/esm/CheckboxGroup.js +3 -3
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem/style/index.js +1 -1
- package/dist/esm/CollapseItem.js +1 -3
- package/dist/esm/ConfigProvider.js +3 -2
- package/dist/esm/CountDown.js +3 -3
- package/dist/esm/DatePicker.js +10 -12
- package/dist/esm/Dialog.js +6 -8
- package/dist/esm/Divider.js +1 -3
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Ellipsis.js +4 -4
- package/dist/esm/Empty.js +3 -3
- package/dist/esm/FixedNav/style/index.js +0 -1
- package/dist/esm/FixedNav.js +6 -8
- package/dist/esm/Form.js +6 -9
- package/dist/esm/FormItem.js +4 -7
- package/dist/esm/Grid/style/index.js +1 -1
- package/dist/esm/Grid.js +4 -6
- package/dist/esm/GridItem.js +3 -8
- package/dist/esm/Icon.js +60 -4
- package/dist/esm/Image.js +4 -6
- package/dist/esm/ImagePreview.js +6 -6
- package/dist/esm/Indicator.js +1 -3
- package/dist/esm/Infiniteloading/style/index.js +1 -1
- package/dist/esm/Infiniteloading.js +4 -5
- package/dist/esm/Input/style/index.js +1 -1
- package/dist/esm/Input.js +5 -7
- package/dist/esm/InputNumber/style/index.js +1 -1
- package/dist/esm/InputNumber.js +4 -5
- package/dist/esm/Menu.js +3 -5
- package/dist/esm/MenuItem/style/index.js +0 -1
- package/dist/esm/MenuItem.js +6 -8
- package/dist/esm/NavBar/style/index.js +1 -1
- package/dist/esm/NavBar.js +3 -3
- package/dist/esm/NoticeBar/style/index.js +1 -1
- package/dist/esm/NoticeBar.js +4 -4
- package/dist/esm/NumberKeyboard.js +7 -7
- package/dist/esm/Overlay.js +2 -3
- package/dist/esm/Pagination.js +6 -5
- package/dist/esm/Picker.js +9 -10
- package/dist/esm/Popover/style/index.js +0 -1
- package/dist/esm/Popover.js +4 -7
- package/dist/esm/Popup/style/index.js +0 -1
- package/dist/esm/Popup.js +5 -5
- package/dist/esm/Progress/style/index.js +1 -1
- package/dist/esm/Progress.js +3 -3
- package/dist/esm/PullToRefresh.js +3 -3
- package/dist/esm/Radio/style/index.js +0 -1
- package/dist/esm/Radio.js +3 -3
- package/dist/esm/RadioGroup.js +3 -3
- package/dist/esm/Range.js +7 -7
- package/dist/esm/Rate/style/index.js +1 -1
- package/dist/esm/Rate.js +4 -5
- package/dist/esm/SearchBar/style/index.js +1 -1
- package/dist/esm/SearchBar.js +5 -5
- package/dist/esm/ShortPassword/style/index.js +0 -1
- package/dist/esm/ShortPassword.js +7 -7
- package/dist/esm/SideNavBar.js +8 -8
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +7 -6
- package/dist/esm/Skeleton.js +3 -4
- package/dist/esm/Step/style/index.js +1 -1
- package/dist/esm/Step.js +2 -3
- package/dist/esm/Sticky.js +3 -4
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe.js +3 -3
- package/dist/esm/TabbarItem/style/index.js +1 -1
- package/dist/esm/TabbarItem.js +2 -3
- package/dist/esm/Table/style/index.js +1 -1
- package/dist/esm/Table.js +5 -5
- package/dist/esm/Tabs/style/index.js +1 -2
- package/dist/esm/Tabs.js +3 -3
- package/dist/esm/Tag/style/index.js +1 -1
- package/dist/esm/Tag.js +3 -5
- package/dist/esm/TextArea.js +3 -3
- package/dist/esm/TimeDetail.js +3 -3
- package/dist/esm/TimePannel.js +3 -3
- package/dist/esm/TimeSelect.js +10 -10
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast.js +2 -2
- package/dist/esm/TrendArrow/style/index.js +1 -1
- package/dist/esm/TrendArrow.js +2 -2
- package/dist/esm/Uploader/style/index.js +0 -1
- package/dist/esm/Uploader.js +8 -8
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +3 -3
- package/dist/esm/WaterMark.js +3 -3
- package/dist/esm/{actionsheet.taro-e6a51446.js → actionsheet.taro-b76a342e.js} +5 -5
- package/dist/esm/{address.taro-3a9b6396.js → address.taro-1812caeb.js} +24 -24
- package/dist/esm/{audio.taro-87ec8bf2.js → audio.taro-f672a68c.js} +7 -6
- package/dist/esm/{avatar.taro-3676f38f.js → avatar.taro-de157a1f.js} +8 -6
- package/dist/esm/{avatargroup-f3574510.js → avatargroup-b476ac68.js} +1 -1
- package/dist/esm/backtop.taro-ba271b8f.js +52 -0
- package/dist/esm/{badge.taro-a4e59c11.js → badge.taro-ae154f41.js} +4 -6
- package/dist/esm/{barrage.taro-0495a1b2.js → barrage.taro-80df08d3.js} +2 -2
- package/dist/esm/button.taro-a1c9512f.js +65 -0
- package/dist/esm/{calendar.taro-670842ea.js → calendar.taro-b6b147ca.js} +3 -3
- package/dist/esm/{calendaritem.taro-2a603571.js → calendaritem.taro-ae167e59.js} +3 -3
- package/dist/esm/{card.taro-e4c76dad.js → card.taro-5e9b34c8.js} +1 -1
- package/dist/esm/{cascader.taro-eb1fb011.js → cascader.taro-9c0a1a38.js} +17 -8
- package/dist/esm/cell.taro-26870740.js +43 -0
- package/dist/esm/cellgroup.taro-6e901b54.js +24 -0
- package/dist/esm/{checkbox.taro-6120e3e3.js → checkbox.taro-785c528b.js} +10 -13
- package/dist/esm/{collapse.taro-1a9e4ba2.js → collapse.taro-35a8a0d6.js} +3 -7
- package/dist/esm/{collapseitem-4d0bc55d.js → collapseitem-690eb91c.js} +6 -21
- package/dist/esm/{configprovider-67d19d3a.js → configprovider-9960f0fb.js} +1 -1
- package/dist/esm/{configprovider.taro-8d71eb49.js → configprovider.taro-c8c54556.js} +5 -2
- package/dist/esm/{countdown.taro-dbcb9a4f.js → countdown.taro-0e6bf7a2.js} +1 -1
- package/dist/esm/{datepicker.taro-6e9b4b8f.js → datepicker.taro-439e2080.js} +3 -3
- package/dist/esm/{dialog.taro-a3267d29.js → dialog.taro-00ac41fd.js} +5 -5
- package/dist/esm/divider.taro-6c1657ce.js +31 -0
- package/dist/esm/{elevator.taro-6019669e.js → elevator.taro-81a11ecc.js} +1 -1
- package/dist/esm/{ellipsis.taro-f15f26da.js → ellipsis.taro-b6cda065.js} +2 -2
- package/dist/esm/{empty.taro-04ae4389.js → empty.taro-fde835ca.js} +1 -1
- package/dist/esm/fixednav.taro-39fbd47a.js +54 -0
- package/dist/esm/{form.taro-0c8e7a39.js → form.taro-0d83f1e8.js} +3 -3
- package/dist/esm/{formitem.taro-190a3326.js → formitem.taro-0de07d1e.js} +2 -2
- package/dist/esm/{grid.taro-3503b82c.js → grid.taro-3797169c.js} +12 -24
- package/dist/esm/griditem.taro-04f59ae1.js +80 -0
- package/dist/esm/{image.taro-142cf512.js → image.taro-edb572bb.js} +4 -4
- package/dist/esm/{imagepreview.taro-c50bb0a3.js → imagepreview.taro-867ee24a.js} +1 -1
- package/dist/esm/indicator.taro-c10334e8.js +30 -0
- package/dist/esm/{infiniteloading.taro-183bccbf.js → infiniteloading.taro-73c9b8ca.js} +12 -15
- package/dist/esm/{input.taro-97af6c96.js → input.taro-10ed5500.js} +18 -21
- package/dist/esm/inputnumber.taro-108c4784.js +199 -0
- package/dist/esm/{menu.taro-7e4038a1.js → menu.taro-54951911.js} +6 -7
- package/dist/esm/{menuitem.taro-96cc4f15.js → menuitem.taro-86a6bb6c.js} +8 -10
- package/dist/esm/{navbar.taro-777c4705.js → navbar.taro-69f47d51.js} +8 -10
- package/dist/esm/{noticebar.taro-4a23cdee.js → noticebar.taro-49e7441f.js} +10 -31
- package/dist/esm/{numberkeyboard.taro-1bc24744.js → numberkeyboard.taro-81b36e5e.js} +2 -2
- package/dist/esm/nutui-react.es.js +87 -88
- package/dist/esm/{overlay.taro-21e87fb1.js → overlay.taro-ad0d4775.js} +20 -14
- package/dist/esm/pagination.taro-60b22b27.js +91 -0
- package/dist/esm/{picker.taro-9ad1b7c5.js → picker.taro-5c9030a7.js} +110 -160
- package/dist/esm/{popover.taro-ad5e76ea.js → popover.taro-2a57eae4.js} +12 -15
- package/dist/esm/{popup.taro-01676bff.js → popup.taro-124b9bab.js} +15 -10
- package/dist/esm/{progress.taro-f0ce38e9.js → progress.taro-24392ef3.js} +5 -7
- package/dist/esm/{pulltorefresh.taro-a294f656.js → pulltorefresh.taro-d5fcfcb0.js} +1 -1
- package/dist/esm/{radio.taro-a6eff96c.js → radio.taro-51e10152.js} +16 -7
- package/dist/esm/{range.taro-d8fc7656.js → range.taro-7a2b6ca1.js} +4 -4
- package/dist/esm/rate.taro-57341aa9.js +77 -0
- package/dist/esm/{searchbar.taro-0c25927b.js → searchbar.taro-eef468bb.js} +7 -7
- package/dist/esm/{shortpassword.taro-9ee034f7.js → shortpassword.taro-9a2c98ad.js} +17 -9
- package/dist/esm/{sidenavbar.taro-c307b35e.js → sidenavbar.taro-0265812f.js} +2 -2
- package/dist/esm/{sidenavbaritem.taro-5a7965d0.js → sidenavbaritem.taro-bb80dbf4.js} +2 -2
- package/dist/esm/{signature.taro-ec4e713b.js → signature.taro-f01b2b05.js} +2 -2
- package/dist/esm/{skeleton.taro-76faf63f.js → skeleton.taro-64e858a2.js} +1 -1
- package/dist/esm/{step.taro-b7903e8c.js → step.taro-2ec1f283.js} +5 -6
- package/dist/esm/{sticky.taro-218bda37.js → sticky.taro-b5bde7b1.js} +15 -17
- package/dist/esm/{subsidenavbar.taro-69cb9752.js → subsidenavbar.taro-3cce8442.js} +2 -2
- package/dist/esm/{swipe.taro-ea35f07f.js → swipe.taro-350c9a94.js} +2 -2
- package/dist/esm/{tabbaritem.taro-bf517487.js → tabbaritem.taro-42ba353f.js} +4 -7
- package/dist/esm/{table.taro-91fc0c01.js → table.taro-3946697c.js} +7 -5
- package/dist/esm/{tabs.taro-6a7524a4.js → tabs.taro-be8cacb5.js} +4 -4
- package/dist/esm/{tag.taro-23ba0834.js → tag.taro-0c2567de.js} +10 -10
- package/dist/esm/{textarea.taro-442e7350.js → textarea.taro-a0f79515.js} +1 -1
- package/dist/esm/{timedetail.taro-5b2f2269.js → timedetail.taro-fce4e614.js} +1 -1
- package/dist/esm/{timepannel.taro-d6e40180.js → timepannel.taro-fd3d008d.js} +1 -1
- package/dist/esm/{timeselect.taro-a07036f4.js → timeselect.taro-5b047850.js} +6 -6
- package/dist/esm/{toast.taro-d6c14811.js → toast.taro-e4f44812.js} +6 -7
- package/dist/esm/{trendarrow.taro-b8c5ccd9.js → trendarrow.taro-7cf90def.js} +5 -8
- package/dist/esm/typings-d8491423.js +6 -0
- package/dist/esm/{uploader.taro-5a53aa33.js → uploader.taro-0cca7e97.js} +57 -51
- package/dist/esm/use-props-value-ae7ee726.js +15 -0
- package/dist/esm/{video-f1be8a91.js → video-7ed508cc.js} +4 -4
- package/dist/esm/{virtuallist.taro-f0b0270d.js → virtuallist.taro-35b9bd9a.js} +2 -2
- package/dist/esm/{watermark.taro-9ce2ae37.js → watermark.taro-c780d360.js} +1 -1
- package/dist/esm/{zh-CN-c779e6c1.js → zh-CN-b4f493ba.js} +2 -2
- package/dist/locales/base.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +3 -3
- package/dist/locales/id-ID.js +3 -3
- package/dist/locales/zh-CN.js +3 -3
- package/dist/locales/zh-TW.js +3 -3
- package/dist/locales/zh-UG.js +3 -3
- package/dist/nutui.react.mjs +7854 -5031
- package/dist/nutui.react.umd.js +7851 -5028
- package/dist/packages/actionsheet/actionsheet.scss +10 -2
- package/dist/packages/backtop/backtop.scss +0 -8
- package/dist/packages/badge/badge.scss +3 -4
- package/dist/packages/button/button.scss +80 -93
- package/dist/packages/cell/cell.scss +18 -90
- package/dist/packages/cellgroup/cellgroup.scss +26 -20
- package/dist/packages/collapseitem/collapseitem.scss +0 -1
- package/dist/packages/dialog/dialog.scss +1 -1
- package/dist/packages/divider/divider.scss +3 -17
- package/dist/packages/grid/grid.scss +1 -0
- package/dist/packages/griditem/griditem.scss +2 -17
- package/dist/packages/icon/icon.scss +0 -132
- package/dist/packages/image/image.scss +0 -12
- package/dist/packages/indicator/indicator.scss +21 -39
- package/dist/packages/infiniteloading/infiniteloading.scss +4 -12
- package/dist/packages/input/input.scss +4 -0
- package/dist/packages/inputnumber/inputnumber.scss +10 -26
- package/dist/packages/menuitem/menuitem.scss +2 -0
- package/dist/packages/navbar/navbar.scss +4 -5
- package/dist/packages/overlay/overlay.scss +0 -19
- package/dist/packages/picker/picker.scss +97 -103
- package/dist/packages/progress/progress.scss +0 -1
- package/dist/packages/radio/radio.scss +8 -0
- package/dist/packages/rate/rate.scss +29 -6
- package/dist/packages/searchbar/searchbar.scss +0 -1
- package/dist/packages/shortpassword/shortpassword.scss +4 -1
- package/dist/packages/step/step.scss +0 -1
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/swiper/swiper.scss +8 -0
- package/dist/packages/tabbaritem/tabbaritem.scss +0 -1
- package/dist/packages/table/table.scss +0 -1
- package/dist/packages/tag/tag.scss +9 -2
- package/dist/packages/timedetail/timedetail.scss +9 -3
- package/dist/packages/timeselect/timeselect.scss +1 -1
- package/dist/packages/toast/toast.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/font-jmapp/config.json +175 -0
- package/dist/styles/font-jmapp/demo.css +539 -0
- package/dist/styles/font-jmapp/demo_index.html +1821 -0
- package/dist/styles/font-jmapp/iconfont.css +299 -0
- package/dist/styles/font-jmapp/iconfont.eot +0 -0
- package/dist/styles/font-jmapp/iconfont.js +68 -0
- package/dist/styles/font-jmapp/iconfont.json +506 -0
- package/dist/styles/font-jmapp/iconfont.svg +356 -0
- package/dist/styles/font-jmapp/iconfont.ttf +0 -0
- package/dist/styles/font-jmapp/iconfont.woff +0 -0
- package/dist/styles/font-jmapp/iconfont.woff2 +0 -0
- package/dist/styles/theme-default.scss +1 -0
- package/dist/styles/theme-jmapp.scss +41 -0
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +2601 -0
- package/dist/styles/variables.scss +49 -73
- package/dist/types/index.d.ts +145 -242
- package/package.json +23 -154
- package/dist/esm/Icon/style/index.js +0 -4
- package/dist/esm/backtop.taro-66394a36.js +0 -48
- package/dist/esm/button.taro-9244d065.js +0 -100
- package/dist/esm/cell.taro-a10a74d3.js +0 -64
- package/dist/esm/cellgroup.taro-abe501bc.js +0 -25
- package/dist/esm/divider.taro-26d1d8b4.js +0 -35
- package/dist/esm/fixednav.taro-1f05acaf.js +0 -53
- package/dist/esm/grid.taro.context-c2bbfb4f.js +0 -8
- 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/indicator.taro-cba8b010.js +0 -37
- package/dist/esm/inputnumber.taro-91f65d17.js +0 -130
- package/dist/esm/pagination.taro-715a173b.js +0 -124
- package/dist/esm/rate.taro-6cdf03bd.js +0 -75
- package/dist/esm/typings-b9828dba.js +0 -9
- /package/dist/esm/{useClientRect-1f8ed1fe.js → use-client-rect-1f8ed1fe.js} +0 -0
- /package/dist/esm/{useTouch-db24bb5c.js → use-touch-db24bb5c.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,64 +1,46 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode, FunctionComponent,
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, FunctionComponent, MouseEvent as MouseEvent$1, MouseEventHandler, HTMLInputTypeAttribute, ChangeEvent, FocusEvent, RefObject, Component } from 'react';
|
|
3
3
|
import { ButtonProps as ButtonProps$1, ITouchEvent } from '@tarojs/components';
|
|
4
4
|
import Taro, { InnerAudioContext } from '@tarojs/taro';
|
|
5
5
|
|
|
6
6
|
interface BasicComponent {
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: CSSProperties;
|
|
9
|
-
iconFontClassName?: string;
|
|
10
|
-
iconClassPrefix?: string;
|
|
11
9
|
children?: ReactNode;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
type OmitMiniProgramButtonProps = Omit<ButtonProps$1, 'size' | 'type' | 'onClick'>;
|
|
12
|
+
type OmitMiniProgramButtonProps = Omit<ButtonProps$1, 'size' | 'type' | 'onClick' | 'style'>;
|
|
13
|
+
type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
14
|
+
type ButtonSize = 'large' | 'normal' | 'small';
|
|
15
|
+
type ButtonShape = 'square' | 'round';
|
|
16
|
+
type ButtonFill = 'solid' | 'outline' | 'none';
|
|
15
17
|
interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps {
|
|
16
|
-
className: string;
|
|
17
18
|
color: string;
|
|
18
19
|
shape: ButtonShape;
|
|
19
|
-
plain: boolean;
|
|
20
|
-
loading: boolean;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
style: React__default.CSSProperties;
|
|
23
20
|
type: ButtonType;
|
|
24
21
|
size: ButtonSize;
|
|
22
|
+
fill: ButtonFill;
|
|
25
23
|
block: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
loading: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
icon: React__default.ReactNode;
|
|
29
27
|
onClick: (e: MouseEvent) => void;
|
|
30
28
|
}
|
|
31
|
-
|
|
32
|
-
type ButtonSize = 'large' | 'normal' | 'small';
|
|
33
|
-
type ButtonShape = 'square' | 'round';
|
|
34
|
-
declare const Button: FunctionComponent<Partial<ButtonProps>>;
|
|
29
|
+
declare const Button: React__default.ForwardRefExoticComponent<Omit<Partial<ButtonProps>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
35
30
|
|
|
36
31
|
interface CellProps extends BasicComponent {
|
|
37
32
|
title: ReactNode;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
icon: string;
|
|
43
|
-
roundRadius: string | number;
|
|
44
|
-
url: string;
|
|
45
|
-
to: string;
|
|
46
|
-
replace: boolean;
|
|
47
|
-
center: boolean;
|
|
48
|
-
size: string;
|
|
49
|
-
className: string;
|
|
50
|
-
iconSlot: ReactNode;
|
|
51
|
-
linkSlot: ReactNode;
|
|
33
|
+
description: ReactNode;
|
|
34
|
+
extra: ReactNode;
|
|
35
|
+
radius: string | number;
|
|
36
|
+
align: string;
|
|
52
37
|
onClick: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
53
38
|
}
|
|
54
39
|
declare const Cell: FunctionComponent<Partial<CellProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
55
40
|
|
|
56
|
-
interface CellGroupProps {
|
|
41
|
+
interface CellGroupProps extends BasicComponent {
|
|
57
42
|
title: ReactNode;
|
|
58
|
-
|
|
59
|
-
titleSlot: ReactNode;
|
|
60
|
-
descSlot: ReactNode;
|
|
61
|
-
className: string;
|
|
43
|
+
description: ReactNode;
|
|
62
44
|
children?: ReactNode;
|
|
63
45
|
}
|
|
64
46
|
declare const CellGroup: FunctionComponent<Partial<CellGroupProps>>;
|
|
@@ -77,7 +59,7 @@ interface BaseLang {
|
|
|
77
59
|
};
|
|
78
60
|
fixednav: {
|
|
79
61
|
activeText: string;
|
|
80
|
-
|
|
62
|
+
inactiveText: string;
|
|
81
63
|
};
|
|
82
64
|
infiniteloading: {
|
|
83
65
|
pullRefreshText: string;
|
|
@@ -104,7 +86,7 @@ interface BaseLang {
|
|
|
104
86
|
};
|
|
105
87
|
shortpassword: {
|
|
106
88
|
title: string;
|
|
107
|
-
|
|
89
|
+
description: string;
|
|
108
90
|
tips: string;
|
|
109
91
|
};
|
|
110
92
|
uploader: {
|
|
@@ -200,24 +182,6 @@ interface ConfigProviderProps {
|
|
|
200
182
|
}
|
|
201
183
|
declare const ConfigProvider: FunctionComponent<Partial<ConfigProviderProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
202
184
|
|
|
203
|
-
interface IconProps {
|
|
204
|
-
name: string;
|
|
205
|
-
size: string | number;
|
|
206
|
-
classPrefix: string;
|
|
207
|
-
color: string;
|
|
208
|
-
tag: keyof ReactHTML;
|
|
209
|
-
onClick: (e: MouseEvent) => void;
|
|
210
|
-
fontClassName: string;
|
|
211
|
-
className: string;
|
|
212
|
-
style: React__default.CSSProperties;
|
|
213
|
-
children: React__default.ReactNode;
|
|
214
|
-
}
|
|
215
|
-
declare function Icon<T>(props: Partial<IconProps> & T): ReactElement;
|
|
216
|
-
declare namespace Icon {
|
|
217
|
-
var defaultProps: IconProps;
|
|
218
|
-
var displayName: string;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
185
|
interface ImageProps {
|
|
222
186
|
className: string;
|
|
223
187
|
style: React__default.CSSProperties;
|
|
@@ -232,7 +196,7 @@ interface ImageProps {
|
|
|
232
196
|
showError: boolean;
|
|
233
197
|
showLoading: boolean;
|
|
234
198
|
slotLoding: React__default.ReactNode;
|
|
235
|
-
slotError: React__default.ReactNode
|
|
199
|
+
slotError: React__default.ReactNode;
|
|
236
200
|
onClick?: (e: MouseEvent) => void;
|
|
237
201
|
onLoad?: () => void;
|
|
238
202
|
onError?: () => void;
|
|
@@ -241,28 +205,28 @@ type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
|
241
205
|
type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
242
206
|
declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|
|
243
207
|
|
|
244
|
-
interface OverlayProps {
|
|
208
|
+
interface OverlayProps extends BasicComponent {
|
|
245
209
|
zIndex: number;
|
|
246
210
|
duration: number;
|
|
247
|
-
|
|
248
|
-
overlayStyle: React__default.CSSProperties;
|
|
249
|
-
closeOnClickOverlay: boolean;
|
|
211
|
+
closeOnOverlayClick: boolean;
|
|
250
212
|
visible: boolean;
|
|
251
213
|
lockScroll: boolean;
|
|
252
214
|
onClick: (event: ITouchEvent) => void;
|
|
215
|
+
afterShow: () => void;
|
|
216
|
+
afterClose: () => void;
|
|
253
217
|
}
|
|
254
218
|
declare const Overlay: FunctionComponent<Partial<OverlayProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
255
219
|
|
|
256
220
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
257
|
-
interface PopupProps extends OverlayProps
|
|
221
|
+
interface PopupProps extends OverlayProps {
|
|
258
222
|
position: string;
|
|
259
223
|
transition: string;
|
|
260
|
-
|
|
224
|
+
overlayStyle: React__default.CSSProperties;
|
|
225
|
+
overlayClass: string;
|
|
261
226
|
popClass: string;
|
|
262
227
|
closeable: boolean;
|
|
263
228
|
closeIconPosition: string;
|
|
264
|
-
closeIcon:
|
|
265
|
-
closeIconSize?: string | number;
|
|
229
|
+
closeIcon: React__default.ReactNode;
|
|
266
230
|
destroyOnClose: boolean;
|
|
267
231
|
teleport: Teleport;
|
|
268
232
|
overlay: boolean;
|
|
@@ -289,9 +253,7 @@ type ContentPositionType = 'left' | 'center' | 'right';
|
|
|
289
253
|
type DirectionType = 'horizontal' | 'vertical';
|
|
290
254
|
interface DividerProps {
|
|
291
255
|
contentPosition: ContentPositionType;
|
|
292
|
-
|
|
293
|
-
hairline: boolean;
|
|
294
|
-
styles?: React__default.CSSProperties;
|
|
256
|
+
style?: React__default.CSSProperties;
|
|
295
257
|
className?: string;
|
|
296
258
|
direction?: DirectionType;
|
|
297
259
|
}
|
|
@@ -300,17 +262,9 @@ declare const Divider: FunctionComponent<Partial<DividerProps> & React__default.
|
|
|
300
262
|
type GridDirection$1 = 'horizontal' | 'vertical';
|
|
301
263
|
interface GridItemProps extends BasicComponent {
|
|
302
264
|
text: string | ReactNode;
|
|
303
|
-
fontSize: string | number;
|
|
304
|
-
color: string;
|
|
305
|
-
icon: string | ReactNode;
|
|
306
|
-
iconSize?: string | number;
|
|
307
|
-
iconColor?: string;
|
|
308
|
-
parentIconSize?: string | number;
|
|
309
|
-
parentIconColor?: string;
|
|
310
265
|
index: number;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
gutter: string | number;
|
|
266
|
+
columns: string | number;
|
|
267
|
+
gap: string | number;
|
|
314
268
|
center: boolean;
|
|
315
269
|
square: boolean;
|
|
316
270
|
reverse: boolean;
|
|
@@ -320,20 +274,19 @@ declare const GridItem: FunctionComponent<Partial<GridItemProps> & React__defaul
|
|
|
320
274
|
|
|
321
275
|
type GridDirection = 'horizontal' | 'vertical';
|
|
322
276
|
interface GridProps {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
gutter: string | number;
|
|
277
|
+
columns: string | number;
|
|
278
|
+
gap: string | number;
|
|
326
279
|
center: boolean;
|
|
327
280
|
square: boolean;
|
|
328
281
|
reverse: boolean;
|
|
329
282
|
direction: GridDirection;
|
|
330
283
|
className?: string;
|
|
331
|
-
iconSize?: string | number;
|
|
332
|
-
iconColor?: string;
|
|
333
284
|
style?: CSSProperties;
|
|
334
285
|
onClick: (item: GridItemProps, index: number) => void;
|
|
335
286
|
}
|
|
336
|
-
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'
|
|
287
|
+
declare const Grid: FunctionComponent<Partial<GridProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>> & {
|
|
288
|
+
Item: typeof GridItem;
|
|
289
|
+
};
|
|
337
290
|
|
|
338
291
|
interface LayoutProps {
|
|
339
292
|
}
|
|
@@ -351,16 +304,13 @@ interface RowProps {
|
|
|
351
304
|
declare const Row: FunctionComponent<Partial<RowProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
352
305
|
|
|
353
306
|
interface StickyProps extends BasicComponent {
|
|
354
|
-
container
|
|
355
|
-
position
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
zIndex?: number;
|
|
360
|
-
children: React__default.ReactNode;
|
|
361
|
-
onChange?: (val: boolean) => void;
|
|
307
|
+
container: React__default.RefObject<HTMLElement>;
|
|
308
|
+
position: 'top' | 'bottom';
|
|
309
|
+
threshold: number;
|
|
310
|
+
zIndex: number;
|
|
311
|
+
onChange: (val: boolean) => void;
|
|
362
312
|
}
|
|
363
|
-
declare const Sticky: FunctionComponent<StickyProps
|
|
313
|
+
declare const Sticky: FunctionComponent<Partial<StickyProps>>;
|
|
364
314
|
|
|
365
315
|
declare const elevatorContext: React__default.Context<ElevatorData>;
|
|
366
316
|
interface ElevatorProps {
|
|
@@ -391,28 +341,23 @@ type Position$2 = {
|
|
|
391
341
|
bottom?: string;
|
|
392
342
|
};
|
|
393
343
|
interface FixedNavProps extends BasicComponent {
|
|
394
|
-
fixednavClass: string;
|
|
395
344
|
visible: boolean;
|
|
396
345
|
overlay: boolean;
|
|
397
|
-
|
|
346
|
+
list: Array<any>;
|
|
398
347
|
activeText: string;
|
|
399
|
-
|
|
348
|
+
inactiveText: string;
|
|
400
349
|
position: Position$2;
|
|
401
350
|
type: Direction$1;
|
|
402
|
-
onChange: (
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
slotBtn: React__default.ReactNode;
|
|
351
|
+
onChange: (item: any) => void;
|
|
352
|
+
onSelect: (item: any, event: MouseEvent$1) => void;
|
|
353
|
+
content: React__default.ReactNode;
|
|
406
354
|
}
|
|
407
|
-
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
355
|
+
declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
|
|
408
356
|
|
|
409
357
|
interface IndicatorProps {
|
|
410
|
-
|
|
358
|
+
total: number;
|
|
411
359
|
current: number;
|
|
412
|
-
|
|
413
|
-
align: 'left' | 'right' | 'center';
|
|
414
|
-
fillZero: boolean;
|
|
415
|
-
vertical: boolean;
|
|
360
|
+
direction: string;
|
|
416
361
|
}
|
|
417
362
|
declare const Indicator: FunctionComponent<Partial<IndicatorProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
418
363
|
|
|
@@ -423,7 +368,7 @@ interface MenuProps extends BasicComponent {
|
|
|
423
368
|
closeOnClickOverlay: boolean;
|
|
424
369
|
scrollFixed: boolean | string | number;
|
|
425
370
|
lockScroll: boolean;
|
|
426
|
-
titleIcon:
|
|
371
|
+
titleIcon: React__default.ReactNode;
|
|
427
372
|
children: React__default.ReactNode;
|
|
428
373
|
}
|
|
429
374
|
declare const Menu: FunctionComponent<Partial<MenuProps>>;
|
|
@@ -439,12 +384,10 @@ interface MenuItemProps extends BasicComponent {
|
|
|
439
384
|
options: OptionItem[];
|
|
440
385
|
disabled: boolean;
|
|
441
386
|
columns: number;
|
|
442
|
-
optionsIcon:
|
|
387
|
+
optionsIcon: React__default.ReactNode;
|
|
443
388
|
direction: string;
|
|
444
389
|
activeTitleClass: string;
|
|
445
390
|
inactiveTitleClass: string;
|
|
446
|
-
fontClassName: string;
|
|
447
|
-
iconClassPrefix: string;
|
|
448
391
|
value: string | number;
|
|
449
392
|
onChange: (event: any) => void;
|
|
450
393
|
children: React__default.ReactNode;
|
|
@@ -454,9 +397,8 @@ declare const MenuItem: React__default.ForwardRefExoticComponent<Partial<MenuIte
|
|
|
454
397
|
interface NavBarProps$1 extends BasicComponent {
|
|
455
398
|
leftShow: boolean;
|
|
456
399
|
title: string;
|
|
457
|
-
titIcon: string;
|
|
458
400
|
leftText: string;
|
|
459
|
-
|
|
401
|
+
description: string;
|
|
460
402
|
className: string;
|
|
461
403
|
fixed: boolean;
|
|
462
404
|
safeAreaInsetTop: boolean;
|
|
@@ -472,22 +414,18 @@ interface NavBarProps$1 extends BasicComponent {
|
|
|
472
414
|
}
|
|
473
415
|
declare const NavBar: FunctionComponent<Partial<NavBarProps$1>>;
|
|
474
416
|
|
|
475
|
-
interface PaginationProps {
|
|
417
|
+
interface PaginationProps extends BasicComponent {
|
|
476
418
|
defaultValue: number;
|
|
477
|
-
|
|
419
|
+
value: number;
|
|
478
420
|
mode: 'multi' | 'simple';
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
pageNodeRender: (page: any) => React__default.ReactNode;
|
|
421
|
+
prev: ReactNode;
|
|
422
|
+
next: ReactNode;
|
|
423
|
+
total: number;
|
|
424
|
+
pageSize: number;
|
|
425
|
+
itemSize: number;
|
|
426
|
+
ellipse: boolean;
|
|
427
|
+
itemRender: (page: any) => ReactNode;
|
|
487
428
|
onChange: (currPage: number) => void;
|
|
488
|
-
updatecurrent: (currPage: number) => void;
|
|
489
|
-
style?: React__default.CSSProperties;
|
|
490
|
-
className?: string;
|
|
491
429
|
}
|
|
492
430
|
declare const Pagination: FunctionComponent<Partial<PaginationProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
493
431
|
|
|
@@ -507,10 +445,10 @@ declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
|
507
445
|
|
|
508
446
|
type SideNavBarItemProps = {
|
|
509
447
|
title: string;
|
|
510
|
-
|
|
511
|
-
onClick?: ({ title,
|
|
448
|
+
key: string | number;
|
|
449
|
+
onClick?: ({ title, key }: {
|
|
512
450
|
title: string;
|
|
513
|
-
|
|
451
|
+
key: string | number;
|
|
514
452
|
}) => void;
|
|
515
453
|
children?: React__default.ReactNode;
|
|
516
454
|
};
|
|
@@ -518,12 +456,12 @@ declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
|
|
|
518
456
|
|
|
519
457
|
type SubSideNavBarProps = {
|
|
520
458
|
title: string;
|
|
521
|
-
|
|
459
|
+
key: string | number;
|
|
522
460
|
open?: boolean;
|
|
523
461
|
children?: React__default.ReactNode;
|
|
524
|
-
onClick?: ({ title,
|
|
462
|
+
onClick?: ({ title, key, isShow, }: {
|
|
525
463
|
title: string;
|
|
526
|
-
|
|
464
|
+
key: string | number;
|
|
527
465
|
isShow: boolean;
|
|
528
466
|
}) => void;
|
|
529
467
|
};
|
|
@@ -546,11 +484,9 @@ declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
|
|
|
546
484
|
|
|
547
485
|
interface TabbarItemProps extends BasicComponent {
|
|
548
486
|
dot: boolean;
|
|
549
|
-
size: string | number;
|
|
550
|
-
iconSize: string | number;
|
|
551
487
|
className: string;
|
|
552
488
|
tabTitle: string;
|
|
553
|
-
icon:
|
|
489
|
+
icon: React__default.ReactNode;
|
|
554
490
|
href: string;
|
|
555
491
|
to: any;
|
|
556
492
|
num: string | number;
|
|
@@ -742,9 +678,9 @@ interface CheckboxProps extends BasicComponent {
|
|
|
742
678
|
disabled: boolean;
|
|
743
679
|
textPosition: 'left' | 'right';
|
|
744
680
|
iconSize: string | number;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
681
|
+
icon: React__default.ReactNode;
|
|
682
|
+
checkedIcon: React__default.ReactNode;
|
|
683
|
+
indeterminateIcon: React__default.ReactNode;
|
|
748
684
|
iconClassPrefix: string;
|
|
749
685
|
iconFontClassName: string;
|
|
750
686
|
indeterminate: boolean;
|
|
@@ -897,12 +833,10 @@ interface InputProps extends BasicComponent {
|
|
|
897
833
|
readonly: boolean;
|
|
898
834
|
error: boolean;
|
|
899
835
|
maxlength: any;
|
|
900
|
-
leftIcon:
|
|
901
|
-
|
|
902
|
-
rightIcon: string;
|
|
903
|
-
rightIconSize: string | number;
|
|
836
|
+
leftIcon: React__default.ReactNode;
|
|
837
|
+
rightIcon: React__default.ReactNode;
|
|
904
838
|
clearable: boolean;
|
|
905
|
-
clearIcon:
|
|
839
|
+
clearIcon: React__default.ReactNode;
|
|
906
840
|
clearSize: string | number;
|
|
907
841
|
border: boolean;
|
|
908
842
|
formatTrigger: InputFormatTrigger;
|
|
@@ -931,31 +865,26 @@ declare const Input: FunctionComponent<Partial<InputProps> & Omit<React__default
|
|
|
931
865
|
|
|
932
866
|
interface InputNumberProps extends BasicComponent {
|
|
933
867
|
disabled: boolean;
|
|
934
|
-
buttonSize: string | number;
|
|
935
868
|
min: string | number;
|
|
936
869
|
max: string | number;
|
|
937
|
-
inputWidth: string | number;
|
|
938
870
|
readonly: boolean;
|
|
939
|
-
|
|
871
|
+
value: string | number;
|
|
872
|
+
defaultValue: string | number;
|
|
873
|
+
allowEmpty: boolean;
|
|
940
874
|
step: string | number;
|
|
941
|
-
|
|
942
|
-
|
|
875
|
+
digits: string | number;
|
|
876
|
+
async: boolean;
|
|
943
877
|
className: string;
|
|
944
878
|
style: React__default.CSSProperties;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
blur: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
949
|
-
focus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
950
|
-
change: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
951
|
-
onAdd: (e: MouseEvent) => void;
|
|
952
|
-
onReduce: (e: MouseEvent) => void;
|
|
879
|
+
formatter?: (displayValue: string | number) => string;
|
|
880
|
+
onPlus: (e: MouseEvent) => void;
|
|
881
|
+
onMinus: (e: MouseEvent) => void;
|
|
953
882
|
onOverlimit: (e: MouseEvent) => void;
|
|
954
|
-
|
|
883
|
+
onBlur: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
955
884
|
onFocus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
956
|
-
|
|
885
|
+
onChange: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
957
886
|
}
|
|
958
|
-
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
887
|
+
declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
959
888
|
|
|
960
889
|
interface NumberKeyboardProps {
|
|
961
890
|
confirmText: string;
|
|
@@ -982,7 +911,7 @@ interface PickerOption {
|
|
|
982
911
|
className?: string | number;
|
|
983
912
|
}
|
|
984
913
|
interface PickerProps {
|
|
985
|
-
|
|
914
|
+
visible: boolean;
|
|
986
915
|
title?: string;
|
|
987
916
|
listData: (PickerOption | PickerOption[])[];
|
|
988
917
|
defaultValueData?: (number | string)[];
|
|
@@ -1018,8 +947,8 @@ interface RadioProps extends BasicComponent {
|
|
|
1018
947
|
shape: Shape;
|
|
1019
948
|
textPosition: Position;
|
|
1020
949
|
value: string | number | boolean;
|
|
1021
|
-
|
|
1022
|
-
|
|
950
|
+
icon: React__default.ReactNode;
|
|
951
|
+
checkedIcon: React__default.ReactNode;
|
|
1023
952
|
iconSize: string | number;
|
|
1024
953
|
onChange: MouseEventHandler<HTMLDivElement>;
|
|
1025
954
|
}
|
|
@@ -1057,19 +986,16 @@ interface RangeProps {
|
|
|
1057
986
|
declare const Range: FunctionComponent<Partial<RangeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
1058
987
|
|
|
1059
988
|
interface RateProps extends BasicComponent {
|
|
1060
|
-
count:
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
checkedIcon: string;
|
|
1067
|
-
uncheckedIcon: string;
|
|
989
|
+
count: number;
|
|
990
|
+
value: number;
|
|
991
|
+
defaultValue: number;
|
|
992
|
+
min: number;
|
|
993
|
+
checkedIcon: React__default.ReactNode;
|
|
994
|
+
uncheckedIcon: React__default.ReactNode;
|
|
1068
995
|
disabled: boolean;
|
|
1069
|
-
|
|
996
|
+
readOnly: boolean;
|
|
1070
997
|
allowHalf: boolean;
|
|
1071
|
-
|
|
1072
|
-
onChange: (val: number) => void;
|
|
998
|
+
onChange: (value: number) => void;
|
|
1073
999
|
}
|
|
1074
1000
|
declare const Rate: FunctionComponent<Partial<RateProps>>;
|
|
1075
1001
|
|
|
@@ -1088,7 +1014,7 @@ interface SearchBarProps extends BasicComponent {
|
|
|
1088
1014
|
maxLength?: number;
|
|
1089
1015
|
/** 是否启用清除图标,点击清除图标后会清空输入框 */
|
|
1090
1016
|
clearable?: boolean;
|
|
1091
|
-
|
|
1017
|
+
clearSize?: string | number;
|
|
1092
1018
|
/** 搜索框外部背景色 */
|
|
1093
1019
|
background?: string;
|
|
1094
1020
|
/** 搜索框背景色 */
|
|
@@ -1138,8 +1064,10 @@ declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React_
|
|
|
1138
1064
|
|
|
1139
1065
|
interface ShortPasswordProps extends BasicComponent {
|
|
1140
1066
|
title: string;
|
|
1141
|
-
|
|
1067
|
+
description: string;
|
|
1142
1068
|
tips: string;
|
|
1069
|
+
tipsIcon: React__default.ReactNode;
|
|
1070
|
+
iconSize: string | number;
|
|
1143
1071
|
visible: boolean;
|
|
1144
1072
|
modelValue: string | number;
|
|
1145
1073
|
errorMsg: string;
|
|
@@ -1230,7 +1158,7 @@ interface UploaderProps extends BasicComponent {
|
|
|
1230
1158
|
maximize: number;
|
|
1231
1159
|
defaultFileList: FileType$1<string>[];
|
|
1232
1160
|
listType: string;
|
|
1233
|
-
uploadIcon:
|
|
1161
|
+
uploadIcon: React__default.ReactNode;
|
|
1234
1162
|
uploadIconSize: string | number;
|
|
1235
1163
|
uploadIconTip: string;
|
|
1236
1164
|
name: string;
|
|
@@ -1294,7 +1222,7 @@ type ItemType<T> = {
|
|
|
1294
1222
|
[key: string]: T;
|
|
1295
1223
|
};
|
|
1296
1224
|
interface ActionSheetProps {
|
|
1297
|
-
|
|
1225
|
+
cancelText: string;
|
|
1298
1226
|
optionTag: string;
|
|
1299
1227
|
optionSubTag: string;
|
|
1300
1228
|
chooseTagValue: string;
|
|
@@ -1311,16 +1239,9 @@ interface ActionSheetProps {
|
|
|
1311
1239
|
declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1312
1240
|
|
|
1313
1241
|
interface BackTopProps extends BasicComponent {
|
|
1314
|
-
|
|
1315
|
-
bottom: number;
|
|
1316
|
-
right: number;
|
|
1317
|
-
elId: string;
|
|
1318
|
-
distance: number;
|
|
1242
|
+
threshold: number;
|
|
1319
1243
|
zIndex: number;
|
|
1320
|
-
isAnimation: boolean;
|
|
1321
1244
|
duration: number;
|
|
1322
|
-
children?: HTMLElement | any;
|
|
1323
|
-
style?: React__default.CSSProperties;
|
|
1324
1245
|
onClick?: (event: MouseEvent) => void;
|
|
1325
1246
|
}
|
|
1326
1247
|
declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -1332,7 +1253,7 @@ interface BasicDialogProps {
|
|
|
1332
1253
|
title?: ReactNode;
|
|
1333
1254
|
content?: ReactNode;
|
|
1334
1255
|
footer?: ReactNode;
|
|
1335
|
-
|
|
1256
|
+
confirmText?: ReactNode;
|
|
1336
1257
|
cancelText?: ReactNode;
|
|
1337
1258
|
mask?: boolean;
|
|
1338
1259
|
noOkBtn?: boolean;
|
|
@@ -1373,11 +1294,11 @@ interface InfiniteloadingProps extends BasicComponent {
|
|
|
1373
1294
|
upperThreshold: number;
|
|
1374
1295
|
containerId: string;
|
|
1375
1296
|
isOpenRefresh: boolean;
|
|
1376
|
-
pullIcon:
|
|
1377
|
-
|
|
1378
|
-
loadIcon:
|
|
1379
|
-
|
|
1380
|
-
|
|
1297
|
+
pullIcon: ReactNode;
|
|
1298
|
+
pullText: string;
|
|
1299
|
+
loadIcon: ReactNode;
|
|
1300
|
+
loadingText: string;
|
|
1301
|
+
loadMoreText: string;
|
|
1381
1302
|
className: string;
|
|
1382
1303
|
style: React__default.CSSProperties;
|
|
1383
1304
|
onRefresh: (param: () => void) => void;
|
|
@@ -1463,7 +1384,7 @@ interface SwipeProps {
|
|
|
1463
1384
|
onTouchMove?: (event: Event) => void;
|
|
1464
1385
|
children?: React__default.ReactNode;
|
|
1465
1386
|
}
|
|
1466
|
-
declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "
|
|
1387
|
+
declare const Swipe: React__default.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onTouchStart" | "onTouchMove" | "onTouchEnd"> & React__default.RefAttributes<SwipeInstance>>;
|
|
1467
1388
|
|
|
1468
1389
|
interface SwitchProps {
|
|
1469
1390
|
isAsync: boolean;
|
|
@@ -1554,8 +1475,7 @@ declare const Audio: FunctionComponent<Partial<AudioProps> & (React__default.HTM
|
|
|
1554
1475
|
|
|
1555
1476
|
interface AvatarProps extends BasicComponent {
|
|
1556
1477
|
size: string;
|
|
1557
|
-
icon:
|
|
1558
|
-
iconSize?: string | number;
|
|
1478
|
+
icon: React__default.ReactNode;
|
|
1559
1479
|
shape: AvatarShape;
|
|
1560
1480
|
bgColor: string;
|
|
1561
1481
|
color: string;
|
|
@@ -1592,7 +1512,7 @@ interface BadgeProps extends BasicComponent {
|
|
|
1592
1512
|
right: string;
|
|
1593
1513
|
zIndex: string;
|
|
1594
1514
|
color: string;
|
|
1595
|
-
|
|
1515
|
+
icon: ReactNode;
|
|
1596
1516
|
children?: ReactNode;
|
|
1597
1517
|
}
|
|
1598
1518
|
declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
@@ -1614,9 +1534,7 @@ interface CollapseProps {
|
|
|
1614
1534
|
style: React__default.CSSProperties;
|
|
1615
1535
|
activeName: Array<number | string> | number | string;
|
|
1616
1536
|
accordion: boolean;
|
|
1617
|
-
|
|
1618
|
-
iconSize: string;
|
|
1619
|
-
iconColor: string;
|
|
1537
|
+
expandIcon: ReactNode;
|
|
1620
1538
|
rotate: number;
|
|
1621
1539
|
onChange: (isOpen: boolean, name: string) => void;
|
|
1622
1540
|
children?: React__default.ReactNode;
|
|
@@ -1624,23 +1542,17 @@ interface CollapseProps {
|
|
|
1624
1542
|
declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
|
|
1625
1543
|
|
|
1626
1544
|
interface CollapseItemProps$1 extends BasicComponent {
|
|
1627
|
-
title:
|
|
1545
|
+
title: ReactNode;
|
|
1628
1546
|
name: string;
|
|
1629
1547
|
isOpen: boolean;
|
|
1630
|
-
|
|
1631
|
-
iconSize: string;
|
|
1632
|
-
iconColor: string;
|
|
1548
|
+
expandIcon: ReactNode;
|
|
1633
1549
|
disabled: boolean;
|
|
1634
1550
|
rotate: number;
|
|
1635
|
-
subTitle:
|
|
1636
|
-
titleIcon: string;
|
|
1637
|
-
titleIconColor: string;
|
|
1638
|
-
titleIconPosition: string;
|
|
1639
|
-
titleIconSize: string;
|
|
1551
|
+
subTitle: ReactNode;
|
|
1640
1552
|
childnull: boolean;
|
|
1641
1553
|
onToggle: (isOpen: boolean, name: string) => void;
|
|
1642
1554
|
}
|
|
1643
|
-
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps$1> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1555
|
+
declare const CollapseItem: FunctionComponent<Partial<CollapseItemProps$1> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'>>;
|
|
1644
1556
|
|
|
1645
1557
|
interface CountDownProps {
|
|
1646
1558
|
className?: string;
|
|
@@ -1718,13 +1630,13 @@ interface NoticeBarProps extends BasicComponent {
|
|
|
1718
1630
|
text: string;
|
|
1719
1631
|
closeMode: boolean;
|
|
1720
1632
|
wrapable: boolean;
|
|
1721
|
-
leftIcon:
|
|
1633
|
+
leftIcon: ReactNode;
|
|
1634
|
+
rightIcon: ReactNode;
|
|
1722
1635
|
color: string;
|
|
1723
1636
|
background: string;
|
|
1724
1637
|
delay: string | number;
|
|
1725
1638
|
scrollable: boolean | null;
|
|
1726
1639
|
speed: number;
|
|
1727
|
-
rightIcon?: HTMLElement | any;
|
|
1728
1640
|
close?: (event: any) => void;
|
|
1729
1641
|
click?: (event: any) => void;
|
|
1730
1642
|
onClose?: (event: any) => void;
|
|
@@ -1737,7 +1649,7 @@ type PopoverTheme = 'light' | 'dark';
|
|
|
1737
1649
|
type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1738
1650
|
interface List {
|
|
1739
1651
|
name: string;
|
|
1740
|
-
icon?:
|
|
1652
|
+
icon?: React__default.ReactNode;
|
|
1741
1653
|
disabled?: boolean;
|
|
1742
1654
|
}
|
|
1743
1655
|
interface PopoverProps extends BasicComponent {
|
|
@@ -1785,9 +1697,7 @@ interface ProgressProps extends BasicComponent {
|
|
|
1785
1697
|
textBackground: string;
|
|
1786
1698
|
textType: TextType;
|
|
1787
1699
|
status: boolean;
|
|
1788
|
-
|
|
1789
|
-
iconColor: string;
|
|
1790
|
-
iconSize: string;
|
|
1700
|
+
icon: ReactNode;
|
|
1791
1701
|
children: ReactNode;
|
|
1792
1702
|
}
|
|
1793
1703
|
declare const Progress: FunctionComponent<Partial<ProgressProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1814,9 +1724,7 @@ interface StepProps extends BasicComponent {
|
|
|
1814
1724
|
title: string;
|
|
1815
1725
|
content: string;
|
|
1816
1726
|
activeIndex: number;
|
|
1817
|
-
icon:
|
|
1818
|
-
iconColor: string;
|
|
1819
|
-
size: string;
|
|
1727
|
+
icon: ReactNode;
|
|
1820
1728
|
className: string;
|
|
1821
1729
|
style: React__default.CSSProperties;
|
|
1822
1730
|
renderContent: () => React__default.ReactNode;
|
|
@@ -1876,6 +1784,7 @@ interface BasicTableProps extends BasicComponent {
|
|
|
1876
1784
|
summary?: React__default.ReactNode;
|
|
1877
1785
|
striped?: boolean;
|
|
1878
1786
|
noData?: React__default.ReactNode;
|
|
1787
|
+
sorterIcon?: React__default.ReactNode;
|
|
1879
1788
|
onSorter?: (item: TableColumnProps, data: Array<any>) => void;
|
|
1880
1789
|
showHeader?: boolean;
|
|
1881
1790
|
}
|
|
@@ -1898,7 +1807,7 @@ interface TagProps extends BasicComponent {
|
|
|
1898
1807
|
round: boolean;
|
|
1899
1808
|
mark: boolean;
|
|
1900
1809
|
closeable: boolean;
|
|
1901
|
-
|
|
1810
|
+
closeIcon: React__default.ReactNode;
|
|
1902
1811
|
prefixCls: string;
|
|
1903
1812
|
onClick: (e: MouseEvent) => void;
|
|
1904
1813
|
onClose: (e?: any) => void;
|
|
@@ -1918,8 +1827,8 @@ interface TrendArrowProps {
|
|
|
1918
1827
|
riseColor: string;
|
|
1919
1828
|
dropColor: string;
|
|
1920
1829
|
iconSize: string;
|
|
1921
|
-
|
|
1922
|
-
|
|
1830
|
+
upIcon: React__default.ReactNode;
|
|
1831
|
+
downIcon: React__default.ReactNode;
|
|
1923
1832
|
className: string;
|
|
1924
1833
|
style: React__default.CSSProperties;
|
|
1925
1834
|
}
|
|
@@ -1943,11 +1852,11 @@ interface VideoProps$1 {
|
|
|
1943
1852
|
play: (e: HTMLVideoElement) => void;
|
|
1944
1853
|
pause: (e: HTMLVideoElement) => void;
|
|
1945
1854
|
playend: (e: HTMLVideoElement) => void;
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1855
|
+
onPlay: (e: HTMLVideoElement) => void;
|
|
1856
|
+
onPause: (e: HTMLVideoElement) => void;
|
|
1857
|
+
onPlayEnd: (e: HTMLVideoElement) => void;
|
|
1949
1858
|
}
|
|
1950
|
-
declare const Video: FunctionComponent<Partial<VideoProps$1> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
1859
|
+
declare const Video: FunctionComponent<Partial<VideoProps$1> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;
|
|
1951
1860
|
|
|
1952
1861
|
type VirtualListProps = {
|
|
1953
1862
|
className?: string | any;
|
|
@@ -2037,16 +1946,16 @@ interface AddressProps extends BasicComponent {
|
|
|
2037
1946
|
existAddressTitle: string;
|
|
2038
1947
|
customAndExistTitle: string;
|
|
2039
1948
|
height: string | number;
|
|
2040
|
-
defaultIcon:
|
|
2041
|
-
selectedIcon:
|
|
2042
|
-
closeBtnIcon:
|
|
2043
|
-
backBtnIcon:
|
|
1949
|
+
defaultIcon: React__default.ReactNode;
|
|
1950
|
+
selectedIcon: React__default.ReactNode;
|
|
1951
|
+
closeBtnIcon: React__default.ReactNode;
|
|
1952
|
+
backBtnIcon: React__default.ReactNode;
|
|
2044
1953
|
onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
|
|
2045
1954
|
onClose?: (cal: CloseCallBack) => void;
|
|
2046
|
-
|
|
1955
|
+
onCancel?: (cal: {
|
|
2047
1956
|
closeWay: string;
|
|
2048
1957
|
}) => void;
|
|
2049
|
-
|
|
1958
|
+
onSwitch?: (cal: {
|
|
2050
1959
|
type: string;
|
|
2051
1960
|
}) => void;
|
|
2052
1961
|
onChange?: (cal: ChangeCallBack) => void;
|
|
@@ -2125,7 +2034,7 @@ interface TimePannelProps {
|
|
|
2125
2034
|
declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
2126
2035
|
|
|
2127
2036
|
interface DateType {
|
|
2128
|
-
|
|
2037
|
+
paneKey?: string | number;
|
|
2129
2038
|
date: string;
|
|
2130
2039
|
}
|
|
2131
2040
|
interface TimeSelectProps {
|
|
@@ -2149,19 +2058,13 @@ interface TimeSelectProps {
|
|
|
2149
2058
|
declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
2150
2059
|
|
|
2151
2060
|
interface CollapseItemProps extends BasicComponent {
|
|
2152
|
-
title:
|
|
2061
|
+
title: ReactNode;
|
|
2153
2062
|
name: string;
|
|
2154
2063
|
isOpen: boolean;
|
|
2155
|
-
|
|
2156
|
-
iconSize: string;
|
|
2157
|
-
iconColor: string;
|
|
2064
|
+
expandIcon: ReactNode;
|
|
2158
2065
|
disabled: boolean;
|
|
2159
2066
|
rotate: number;
|
|
2160
|
-
subTitle:
|
|
2161
|
-
titleIcon: string;
|
|
2162
|
-
titleIconColor: string;
|
|
2163
|
-
titleIconPosition: string;
|
|
2164
|
-
titleIconSize: string;
|
|
2067
|
+
subTitle: ReactNode;
|
|
2165
2068
|
onToggle: (isOpen: boolean, name: string) => void;
|
|
2166
2069
|
}
|
|
2167
2070
|
|
|
@@ -2183,9 +2086,9 @@ interface VideoProps {
|
|
|
2183
2086
|
play: (e: HTMLVideoElement) => void;
|
|
2184
2087
|
pause: (e: HTMLVideoElement) => void;
|
|
2185
2088
|
playend: (e: HTMLVideoElement) => void;
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2089
|
+
onPlay: (e: HTMLVideoElement) => void;
|
|
2090
|
+
onPause: (e: HTMLVideoElement) => void;
|
|
2091
|
+
onPlayEnd: (e: HTMLVideoElement) => void;
|
|
2189
2092
|
}
|
|
2190
2093
|
|
|
2191
|
-
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,
|
|
2094
|
+
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, 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 };
|