@trionesdev/antd-mobile-react 0.0.2-beta.2 → 0.0.2-beta.20
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/LICENSE +21 -21
- package/dist/ActionSheet/ActionSheet.d.ts +25 -0
- package/dist/ActionSheet/ActionSheet.js +77 -0
- package/dist/ActionSheet/index.d.ts +1 -1
- package/dist/ActionSheet/index.js +1 -1
- package/dist/ActionSheet/style.scss +52 -0
- package/dist/Avatar/demo/base.js +2 -2
- package/dist/Avatar/demo/style.scss +6 -6
- package/dist/Badge/demo/base.js +2 -2
- package/dist/Badge/demo/base.scss +6 -6
- package/dist/Button/button.d.ts +2 -1
- package/dist/Button/button.js +1 -1
- package/dist/Button/demo/base.js +2 -2
- package/dist/Button/style.scss +234 -232
- package/dist/Calendar/calendar-grid.d.ts +10 -9
- package/dist/Calendar/calendar-grid.js +41 -64
- package/dist/Calendar/calendar-header.d.ts +3 -2
- package/dist/Calendar/calendar-header.js +6 -6
- package/dist/Calendar/calendar-range.d.ts +4 -3
- package/dist/Calendar/calendar-range.js +12 -11
- package/dist/Calendar/calendar.d.ts +5 -4
- package/dist/Calendar/calendar.js +23 -14
- package/dist/Calendar/style.scss +85 -85
- package/dist/Calendar/touchable-calendar-grid.d.ts +6 -5
- package/dist/Calendar/touchable-calendar-grid.js +67 -59
- package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +3 -2
- package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +14 -28
- package/dist/CalendarDatetimePicker/DateTimeSwitch.d.ts +3 -2
- package/dist/CalendarDatetimePicker/DateTimeSwitch.js +4 -3
- package/dist/CalendarDatetimePicker/demo/base.js +1 -1
- package/dist/CalendarDatetimePicker/style.scss +54 -54
- package/dist/CalendarDatetimePicker/types.d.ts +1 -1
- package/dist/CalendarDatetimePicker/types.js +1 -1
- package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +11 -0
- package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +61 -0
- package/dist/{Mask → CalendarDatetimePickerCell}/demo/base.js +9 -15
- package/dist/CalendarDatetimePickerCell/index.d.ts +3 -0
- package/dist/CalendarDatetimePickerCell/index.js +2 -0
- package/dist/CalendarDatetimePickerCell/style.scss +10 -0
- package/dist/CalendarDatetimePickerCell/types.d.ts +1 -0
- package/dist/CalendarDatetimePickerCell/types.js +1 -0
- package/dist/CalendarPicker/calendar-picker.js +2 -2
- package/dist/CalendarPicker/calendar-range-picker.d.ts +4 -4
- package/dist/CalendarPicker/calendar-range-picker.js +11 -9
- package/dist/CalendarPicker/demo/base.js +6 -6
- package/dist/CalendarPicker/index.d.ts +2 -2
- package/dist/CalendarPicker/index.js +3 -3
- package/dist/CalendarPicker/style.scss +31 -31
- package/dist/CalendarPicker/types.d.ts +8 -7
- package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +11 -0
- package/dist/CalendarPickerCell/CalendarPickerCell.js +54 -0
- package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +11 -0
- package/dist/CalendarPickerCell/CalendarRangePickerCell.js +56 -0
- package/dist/CalendarPickerCell/demo/base.d.ts +3 -0
- package/dist/CalendarPickerCell/demo/base.js +31 -0
- package/dist/CalendarPickerCell/index.d.ts +8 -0
- package/dist/CalendarPickerCell/index.js +5 -0
- package/dist/Card/demo/base.js +2 -2
- package/dist/Card/demo/base.scss +18 -18
- package/dist/CascaderPicker/cascader-picker.d.ts +27 -0
- package/dist/CascaderPicker/cascader-picker.js +90 -0
- package/dist/CascaderPicker/demo/base.js +1 -4
- package/dist/CascaderPicker/index.d.ts +1 -1
- package/dist/CascaderPicker/index.js +1 -1
- package/dist/CascaderPicker/style.scss +45 -0
- package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +21 -0
- package/dist/CascaderPickerCell/CascaderPickerCell.js +70 -0
- package/dist/CascaderPickerCell/demo/base.js +71 -0
- package/dist/CascaderPickerCell/index.d.ts +3 -0
- package/dist/CascaderPickerCell/index.js +2 -0
- package/dist/CascaderPickerCell/style.scss +24 -0
- package/dist/Cell/demo/base.js +41 -2
- package/dist/Checkbox/demo/base.js +11 -6
- package/dist/Checkbox/demo/disabled.js +2 -1
- package/dist/ConfigProvider/demo/base.js +2 -2
- package/dist/DemoBlock/index.d.ts +6 -0
- package/dist/DemoBlock/index.js +9 -2
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Divider/demo/base.js +2 -2
- package/dist/Ellipsis/demo/base.js +2 -2
- package/dist/Empty/demo/base.js +2 -2
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/FetchPicker/FetchPicker.d.ts +113 -0
- package/dist/FetchPicker/FetchPicker.js +319 -0
- package/dist/FetchPicker/index.d.ts +4 -0
- package/dist/FetchPicker/index.js +3 -0
- package/dist/FetchPicker/styles.scss +118 -0
- package/dist/FloatButton/FloatButton.d.ts +21 -0
- package/dist/FloatButton/FloatButton.js +66 -0
- package/dist/FloatButton/FloatButtonGroup.d.ts +21 -0
- package/dist/FloatButton/FloatButtonGroup.js +120 -0
- package/dist/FloatButton/context.d.ts +13 -0
- package/dist/FloatButton/context.js +2 -0
- package/dist/FloatButton/demo/base.d.ts +3 -0
- package/dist/FloatButton/demo/base.js +10 -0
- package/dist/FloatButton/demo/group.d.ts +3 -0
- package/dist/FloatButton/demo/group.js +20 -0
- package/dist/FloatButton/demo/square.d.ts +3 -0
- package/dist/FloatButton/demo/square.js +12 -0
- package/dist/FloatButton/index.d.ts +10 -0
- package/dist/FloatButton/index.js +5 -0
- package/dist/FloatButton/style.scss +123 -0
- package/dist/Footer/demo/base.js +2 -2
- package/dist/Form/FormItem/form-item-content.d.ts +17 -0
- package/dist/Form/FormItem/form-item-content.js +39 -0
- package/dist/Form/FormItem/form-item-label.d.ts +13 -0
- package/dist/Form/FormItem/form-item-label.js +29 -0
- package/dist/Form/FormItem/form-item.d.ts +51 -0
- package/dist/Form/FormItem/form-item.js +74 -0
- package/dist/Form/FormItem/index.d.ts +5 -0
- package/dist/Form/FormItem/index.js +3 -0
- package/dist/Form/demo/input.js +7 -3
- package/dist/Form/demo/vertical.d.ts +3 -0
- package/dist/Form/demo/vertical.js +45 -0
- package/dist/Form/index.d.ts +9 -2
- package/dist/Form/index.js +5 -1
- package/dist/Form/style.scss +106 -0
- package/dist/FormCell/index.d.ts +3 -0
- package/dist/FormCell/index.js +2 -0
- package/dist/Grid/demo/base.js +2 -2
- package/dist/Grid/demo/base.scss +7 -7
- package/dist/Icon/demo/base.js +2 -2
- package/dist/Image/demo/base.js +2 -2
- package/dist/Image/demo/base.scss +4 -4
- package/dist/Image/style.scss +30 -30
- package/dist/ImagesPreview/ImagesPreview.js +2 -2
- package/dist/ImagesPreview/style.scss +34 -34
- package/dist/ImagesWall/CameraModal.js +2 -2
- package/dist/ImagesWall/style.scss +70 -70
- package/dist/Input/base-input.d.ts +13 -0
- package/dist/Input/base-input.js +41 -0
- package/dist/Input/demo/base.js +115 -13
- package/dist/Input/index.d.ts +14 -2
- package/dist/Input/index.js +11 -1
- package/dist/Input/index.scss +240 -0
- package/dist/Input/input-affix-wrapper.d.ts +13 -0
- package/dist/Input/input-affix-wrapper.js +37 -0
- package/dist/Input/input-opt.d.ts +16 -0
- package/dist/Input/input-opt.js +87 -0
- package/dist/Input/input-password.d.ts +7 -0
- package/dist/Input/input-password.js +48 -0
- package/dist/Input/input.d.ts +20 -0
- package/dist/Input/input.js +66 -0
- package/dist/Input/textarea.d.ts +15 -0
- package/dist/Input/textarea.js +51 -0
- package/dist/Input/types.d.ts +3 -0
- package/dist/Input/types.js +2 -0
- package/dist/Loading/DotLoading.d.ts +1 -0
- package/dist/Loading/DotLoading.js +1 -0
- package/dist/Loading/SpinLoading.d.ts +1 -0
- package/dist/Loading/SpinLoading.js +1 -0
- package/dist/Loading/demo/base.d.ts +3 -0
- package/dist/{SpinLoading → Loading}/demo/base.js +8 -2
- package/dist/Loading/demo/dot-loading.d.ts +3 -0
- package/dist/Loading/demo/dot-loading.js +25 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/index.js +3 -0
- package/dist/NavBar/demo/base.scss +5 -5
- package/dist/NoticeBar/demo/base.js +2 -2
- package/dist/Overlay/Overlay.d.ts +16 -0
- package/dist/Overlay/Overlay.js +117 -0
- package/dist/Overlay/demo/base.d.ts +3 -0
- package/dist/Overlay/demo/base.js +27 -0
- package/dist/Overlay/index.d.ts +4 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Overlay/style.scss +20 -0
- package/dist/PageIndicator/demo/base.js +2 -2
- package/dist/Picker/index.d.ts +1 -1
- package/dist/Picker/index.js +1 -1
- package/dist/Picker/picker.d.ts +20 -0
- package/dist/Picker/picker.js +94 -0
- package/dist/Picker/style.scss +44 -0
- package/dist/PickerView/index.d.ts +2 -1
- package/dist/PickerView/index.js +1 -1
- package/dist/PickerView/picker-view-column-item.d.ts +7 -0
- package/dist/PickerView/picker-view-column-item.js +11 -0
- package/dist/PickerView/picker-view-column.d.ts +10 -0
- package/dist/PickerView/picker-view-column.js +117 -0
- package/dist/PickerView/picker-view.d.ts +12 -0
- package/dist/PickerView/picker-view.js +60 -0
- package/dist/PickerView/style.scss +72 -0
- package/dist/PickerView/types.d.ts +4 -0
- package/dist/PickerView/types.js +1 -0
- package/dist/Popup/demo/base.js +109 -27
- package/dist/Popup/index.d.ts +2 -1
- package/dist/Popup/index.js +2 -1
- package/dist/Popup/popup.d.ts +31 -0
- package/dist/Popup/popup.js +87 -0
- package/dist/Popup/style.scss +129 -0
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.js +1 -1
- package/dist/Radio/demo/base.js +2 -2
- package/dist/Radio/demo/base.scss +4 -4
- package/dist/Result/demo/base.js +2 -2
- package/dist/SafeArea/demo/base.scss +18 -18
- package/dist/ScrollView/index.d.ts +2 -1
- package/dist/ScrollView/index.js +1 -1
- package/dist/ScrollView/scroll-view.d.ts +4 -0
- package/dist/ScrollView/scroll-view.js +55 -0
- package/dist/ScrollView/style.scss +19 -0
- package/dist/ScrollView/types.d.ts +26 -0
- package/dist/ScrollView/types.js +1 -0
- package/dist/Segmented/demo/base.d.ts +3 -0
- package/dist/Segmented/demo/base.js +33 -0
- package/dist/Segmented/index.d.ts +3 -0
- package/dist/Segmented/index.js +2 -0
- package/dist/SideBar/index.d.ts +1 -1
- package/dist/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Skeleton/demo/base.d.ts +3 -0
- package/dist/Skeleton/demo/base.js +8 -0
- package/dist/Skeleton/index.d.ts +3 -0
- package/dist/Skeleton/index.js +2 -0
- package/dist/Space/demo/base.js +2 -2
- package/dist/Stepper/demo/base.d.ts +3 -0
- package/dist/Stepper/demo/base.js +23 -0
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Swiper/style.scss +54 -54
- package/dist/Switch/demo/base.js +2 -2
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Toast/style.scss +63 -63
- package/dist/Toast/toast-modal.js +4 -4
- package/dist/VerificationCodeInput/demo/base.js +2 -2
- package/dist/VerificationCodeInput/index.d.ts +2 -2
- package/dist/VerificationCodeInput/index.js +1 -1
- package/dist/VerificationCodeInput/style.scss +20 -0
- package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
- package/dist/VerificationCodeInput/verification-code-input.js +99 -0
- package/dist/WaterMark/demo/demo1.js +2 -2
- package/dist/WaterMark/demo/demo1.scss +6 -6
- package/dist/WaterMark/demo/demo2.js +2 -2
- package/dist/index.d.ts +33 -19
- package/dist/index.js +9 -2
- package/dist/style/variable.scss +1 -1
- package/dist/types.d.ts +0 -8
- package/dist/types.js +0 -1
- package/dist/utils/dayjs.d.ts +4 -0
- package/dist/utils/dayjs.js +42 -0
- package/dist/utils/type.js +36 -36
- package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +11 -16
- package/readme.md +43 -43
- package/dist/Mask/index.d.ts +0 -3
- package/dist/Mask/index.js +0 -2
- package/dist/Progress/Progress.d.ts +0 -37
- package/dist/Progress/Progress.js +0 -52
- package/dist/Progress/ProgressCircle.d.ts +0 -17
- package/dist/Progress/ProgressCircle.js +0 -148
- package/dist/Progress/ProgressLine.d.ts +0 -15
- package/dist/Progress/ProgressLine.js +0 -87
- package/dist/Progress/style.scss +0 -33
- package/dist/Progress/types.d.ts +0 -4
- package/dist/Progress/types.js +0 -2
- package/dist/SpinLoading/index.d.ts +0 -3
- package/dist/SpinLoading/index.js +0 -2
- /package/dist/{Mask → CalendarDatetimePickerCell}/demo/base.d.ts +0 -0
- /package/dist/{SpinLoading → CascaderPickerCell}/demo/base.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as ActionSheet } from
|
|
1
|
+
export { default as ActionSheet } from './ActionSheet';
|
|
2
2
|
export type { ActionSheetProps } from './ActionSheet';
|
|
3
3
|
export { default as Alert } from './Alert';
|
|
4
4
|
export type { AlertProps } from './Alert';
|
|
@@ -12,22 +12,28 @@ export { default as Calendar, CalendarGrid, TouchableCalendarGrid, } from './Cal
|
|
|
12
12
|
export type { CalendarGridProps, CalendarProps } from './Calendar';
|
|
13
13
|
export { default as CalendarDatetimePicker } from './CalendarDatetimePicker';
|
|
14
14
|
export type { CalendarDatetimePickerProps } from './CalendarDatetimePicker';
|
|
15
|
+
export { default as CalendarDatetimePickerCell } from './CalendarDatetimePickerCell';
|
|
16
|
+
export type { CalendarDatetimePickerCellProps } from './CalendarDatetimePickerCell';
|
|
15
17
|
export { default as CalendarPicker } from './CalendarPicker';
|
|
16
18
|
export type { CalendarPickerProps } from './CalendarPicker';
|
|
19
|
+
export { default as CalendarPickerCell } from './CalendarPickerCell';
|
|
20
|
+
export type { CalendarPickerCellProps, CalendarRangePickerCellProps, } from './CalendarPickerCell';
|
|
17
21
|
export { default as Card } from './Card';
|
|
18
22
|
export type { CardProps } from './Card';
|
|
23
|
+
export { default as CascaderPickerCell } from './CascaderPickerCell';
|
|
24
|
+
export type { CascaderPickerCellProps } from './CascaderPickerCell';
|
|
19
25
|
export { default as CascaderPicker } from './CascaderPicker';
|
|
20
26
|
export type { CascaderPickerProps } from './CascaderPicker';
|
|
21
27
|
export { default as CascaderView } from './CascaderView';
|
|
22
28
|
export type { CascaderViewProps } from './CascaderView';
|
|
23
29
|
export { default as Cell } from './Cell';
|
|
24
|
-
export type {
|
|
30
|
+
export type { CellGroupProps, CellProps } from './Cell';
|
|
25
31
|
export { default as Checkbox } from './Checkbox';
|
|
26
32
|
export type { CheckboxProps } from './Checkbox';
|
|
27
33
|
export { default as ConfigProvider } from './ConfigProvider';
|
|
28
34
|
export type { ConfigProviderProps } from './ConfigProvider';
|
|
29
|
-
export { default as Descriptions } from
|
|
30
|
-
export type { DescriptionsProps } from
|
|
35
|
+
export { default as Descriptions } from './Descriptions';
|
|
36
|
+
export type { DescriptionsProps } from './Descriptions';
|
|
31
37
|
export { default as Divider } from './Divider';
|
|
32
38
|
export type { DividerProps } from './Divider';
|
|
33
39
|
export { default as Ellipsis } from './Ellipsis';
|
|
@@ -35,35 +41,37 @@ export type { EllipsisProps } from './Ellipsis';
|
|
|
35
41
|
export { default as Empty } from './Empty';
|
|
36
42
|
export type { EmptyProps } from './Empty';
|
|
37
43
|
export { default as ErrorBlock } from './ErrorBlock';
|
|
38
|
-
export type {
|
|
44
|
+
export type { ErrorBlockProps, ErrorBlockStatus } from './ErrorBlock';
|
|
45
|
+
export { default as FloatButton } from './FloatButton';
|
|
46
|
+
export type { FloatButtonGroupProps, FloatButtonProps } from './FloatButton';
|
|
39
47
|
export { default as Footer } from './Footer';
|
|
40
48
|
export type { FooterProps } from './Footer';
|
|
41
49
|
export { default as Form } from './Form';
|
|
42
|
-
export type { FormItemProps, FormProps } from './Form';
|
|
50
|
+
export type { FormItemProps, FormProps, FormInstance } from './Form';
|
|
43
51
|
export { default as Grid } from './Grid';
|
|
44
|
-
export type {
|
|
52
|
+
export type { GridItemProps, GridProps } from './Grid';
|
|
45
53
|
export { default as Image } from './Image';
|
|
46
|
-
export type { ImageProps } from
|
|
54
|
+
export type { ImageProps } from './Image';
|
|
47
55
|
export { default as ImagesPreview } from './ImagesPreview';
|
|
48
56
|
export type { ImagePreviewProps } from './ImagesPreview';
|
|
49
57
|
export { default as ImagesWall } from './ImagesWall';
|
|
50
|
-
export type {
|
|
58
|
+
export type { ImagesWallItemProps, ImagesWallProps } from './ImagesWall';
|
|
51
59
|
export { default as Input } from './Input';
|
|
52
|
-
export type { InputOPTProps, InputPasswordProps, InputProps, InputTextareaProps } from './Input';
|
|
60
|
+
export type { InputOPTProps, InputPasswordProps, InputProps, InputTextareaProps, } from './Input';
|
|
53
61
|
export { default as InputNumber } from './InputNumber';
|
|
54
62
|
export type { InputNumberProps } from './InputNumber';
|
|
55
|
-
export { default as Mask } from "./Mask";
|
|
56
|
-
export type { MaskProps } from "./Mask";
|
|
57
63
|
export { default as NavBar } from './NavBar';
|
|
58
64
|
export type { NavBarProps } from './NavBar';
|
|
59
65
|
export { default as NoticeBar } from './NoticeBar';
|
|
60
66
|
export type { NoticeBarProps } from './NoticeBar';
|
|
67
|
+
export { default as Overlay } from './Overlay';
|
|
68
|
+
export type { OverlayProps } from './Overlay';
|
|
61
69
|
export { default as PageIndicator } from './PageIndicator';
|
|
62
70
|
export type { PageIndicatorProps } from './PageIndicator';
|
|
63
71
|
export { default as Picker } from './Picker';
|
|
64
72
|
export type { PickerProps } from './Picker';
|
|
65
73
|
export { default as PickerView } from './PickerView';
|
|
66
|
-
export type {
|
|
74
|
+
export type { PickerColumnOption, PickerViewProps } from './PickerView';
|
|
67
75
|
export { default as Popup } from './Popup';
|
|
68
76
|
export type { PopupProps } from './Popup';
|
|
69
77
|
export { default as Progress } from './Progress';
|
|
@@ -80,16 +88,22 @@ export { default as Scaffold } from './Scaffold';
|
|
|
80
88
|
export type { ScaffoldProps } from './Scaffold';
|
|
81
89
|
export { default as ScrollView } from './ScrollView';
|
|
82
90
|
export type { ScrollViewProps } from './ScrollView';
|
|
91
|
+
export { default as Segmented } from './Segmented';
|
|
92
|
+
export type { SegmentedProps } from './Segmented';
|
|
83
93
|
export { default as SideBar } from './SideBar';
|
|
84
94
|
export type { SideBarProps } from './SideBar';
|
|
95
|
+
export { default as Skeleton } from './Skeleton';
|
|
96
|
+
export type { SkeletonAvatarProps, SkeletonAvatarShape, SkeletonAvatarSize, SkeletonBlockType, SkeletonButtonProps, SkeletonButtonShape, SkeletonInputProps, SkeletonParagraphProps, SkeletonProps, SkeletonTitleProps, } from './Skeleton';
|
|
85
97
|
export { default as Space } from './Space';
|
|
86
98
|
export type { SpaceProps } from './Space';
|
|
87
|
-
export {
|
|
88
|
-
export type { SpinLoadingProps } from './
|
|
89
|
-
export { default as
|
|
99
|
+
export { SpinLoading, DotLoading } from './Loading';
|
|
100
|
+
export type { SpinLoadingProps, DotLoadingProps } from './Loading';
|
|
101
|
+
export { default as Stepper } from './Stepper';
|
|
102
|
+
export type { StepperProps } from './Stepper';
|
|
103
|
+
export { default as Swiper } from './Swiper';
|
|
90
104
|
export type { SwiperProps } from './Swiper';
|
|
91
|
-
export { default as Steps } from
|
|
92
|
-
export type {
|
|
105
|
+
export { default as Steps } from './Steps';
|
|
106
|
+
export type { StepsItemProps, StepsProps } from './Steps';
|
|
93
107
|
export { default as Switch } from './Switch';
|
|
94
108
|
export type { SwitchProps } from './Switch';
|
|
95
109
|
export { default as TabBar } from './TabBar';
|
|
@@ -101,6 +115,6 @@ export type { ToastProps } from './Toast';
|
|
|
101
115
|
export { default as Tabs } from './Tabs';
|
|
102
116
|
export type { TabsProps } from './Tabs';
|
|
103
117
|
export { default as VerificationCodeInput } from './VerificationCodeInput';
|
|
104
|
-
export type {
|
|
118
|
+
export type { VerificationCodeInputProps } from './VerificationCodeInput';
|
|
105
119
|
export { default as WaterMark } from './WaterMark';
|
|
106
120
|
export type { WaterMarkProps } from './WaterMark';
|
package/dist/index.js
CHANGED
|
@@ -5,8 +5,11 @@ export { default as Badge } from "./Badge";
|
|
|
5
5
|
export { default as Button } from "./Button";
|
|
6
6
|
export { default as Calendar, CalendarGrid, TouchableCalendarGrid } from "./Calendar";
|
|
7
7
|
export { default as CalendarDatetimePicker } from "./CalendarDatetimePicker";
|
|
8
|
+
export { default as CalendarDatetimePickerCell } from "./CalendarDatetimePickerCell";
|
|
8
9
|
export { default as CalendarPicker } from "./CalendarPicker";
|
|
10
|
+
export { default as CalendarPickerCell } from "./CalendarPickerCell";
|
|
9
11
|
export { default as Card } from "./Card";
|
|
12
|
+
export { default as CascaderPickerCell } from "./CascaderPickerCell";
|
|
10
13
|
export { default as CascaderPicker } from "./CascaderPicker";
|
|
11
14
|
export { default as CascaderView } from "./CascaderView";
|
|
12
15
|
export { default as Cell } from "./Cell";
|
|
@@ -17,6 +20,7 @@ export { default as Divider } from "./Divider";
|
|
|
17
20
|
export { default as Ellipsis } from "./Ellipsis";
|
|
18
21
|
export { default as Empty } from "./Empty";
|
|
19
22
|
export { default as ErrorBlock } from "./ErrorBlock";
|
|
23
|
+
export { default as FloatButton } from "./FloatButton";
|
|
20
24
|
export { default as Footer } from "./Footer";
|
|
21
25
|
export { default as Form } from "./Form";
|
|
22
26
|
export { default as Grid } from "./Grid";
|
|
@@ -25,9 +29,9 @@ export { default as ImagesPreview } from "./ImagesPreview";
|
|
|
25
29
|
export { default as ImagesWall } from "./ImagesWall";
|
|
26
30
|
export { default as Input } from "./Input";
|
|
27
31
|
export { default as InputNumber } from "./InputNumber";
|
|
28
|
-
export { default as Mask } from "./Mask";
|
|
29
32
|
export { default as NavBar } from "./NavBar";
|
|
30
33
|
export { default as NoticeBar } from "./NoticeBar";
|
|
34
|
+
export { default as Overlay } from "./Overlay";
|
|
31
35
|
export { default as PageIndicator } from "./PageIndicator";
|
|
32
36
|
export { default as Picker } from "./Picker";
|
|
33
37
|
export { default as PickerView } from "./PickerView";
|
|
@@ -39,9 +43,12 @@ export { default as Result } from "./Result";
|
|
|
39
43
|
export { default as SafeArea } from "./SafeArea";
|
|
40
44
|
export { default as Scaffold } from "./Scaffold";
|
|
41
45
|
export { default as ScrollView } from "./ScrollView";
|
|
46
|
+
export { default as Segmented } from "./Segmented";
|
|
42
47
|
export { default as SideBar } from "./SideBar";
|
|
48
|
+
export { default as Skeleton } from "./Skeleton";
|
|
43
49
|
export { default as Space } from "./Space";
|
|
44
|
-
export {
|
|
50
|
+
export { SpinLoading, DotLoading } from "./Loading";
|
|
51
|
+
export { default as Stepper } from "./Stepper";
|
|
45
52
|
export { default as Swiper } from "./Swiper";
|
|
46
53
|
export { default as Steps } from "./Steps";
|
|
47
54
|
export { default as Switch } from "./Switch";
|
package/dist/style/variable.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
|
|
1
|
+
@forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
|
package/dist/types.d.ts
CHANGED
package/dist/types.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import dayjs, { OpUnitType } from "dayjs";
|
|
2
|
+
export declare const toDayjsArray: (dateArr?: (dayjs.Dayjs | Date)[]) => dayjs.Dayjs[] | undefined;
|
|
3
|
+
export declare const isSame: (x?: dayjs.Dayjs | Date, y?: dayjs.Dayjs | Date, unit?: OpUnitType) => boolean;
|
|
4
|
+
export declare const isSameArray: (x?: (dayjs.Dayjs | Date)[], y?: (dayjs.Dayjs | Date)[], unit?: OpUnitType) => boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import { isEmpty, isNil } from "lodash-es";
|
|
3
|
+
export var toDayjsArray = function toDayjsArray(dateArr) {
|
|
4
|
+
if (isNil(dateArr)) {
|
|
5
|
+
return dateArr;
|
|
6
|
+
}
|
|
7
|
+
if (isEmpty(dateArr)) {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
return dateArr === null || dateArr === void 0 ? void 0 : dateArr.map(function (date) {
|
|
11
|
+
if (isNil(date)) {
|
|
12
|
+
return date;
|
|
13
|
+
} else {
|
|
14
|
+
return dayjs(date);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export var isSame = function isSame(x, y, unit) {
|
|
19
|
+
if (isNil(x) && isNil(y)) {
|
|
20
|
+
return true;
|
|
21
|
+
} else if (isNil(x) && !isNil(y)) {
|
|
22
|
+
return false;
|
|
23
|
+
} else if (!isNil(x) && isNil(y)) {
|
|
24
|
+
return false;
|
|
25
|
+
} else {
|
|
26
|
+
var _dayjs;
|
|
27
|
+
return Boolean((_dayjs = dayjs(x)) === null || _dayjs === void 0 ? void 0 : _dayjs.isSame(y, unit));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export var isSameArray = function isSameArray(x, y, unit) {
|
|
31
|
+
var xa = x !== null && x !== void 0 ? x : [];
|
|
32
|
+
var ya = y !== null && y !== void 0 ? y : [];
|
|
33
|
+
if (xa.length === 0 && ya.length === 0) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (xa.length !== ya.length) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return xa.every(function (date, index) {
|
|
40
|
+
return isSame(date, ya[index], unit);
|
|
41
|
+
});
|
|
42
|
+
};
|
package/dist/utils/type.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Get component props
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { Checkbox } from 'antd'
|
|
8
|
-
* import type { GetProps } from 'antd';
|
|
9
|
-
*
|
|
10
|
-
* type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
|
|
11
|
-
* ```
|
|
12
|
-
* @since 5.13.0
|
|
3
|
+
/**
|
|
4
|
+
* Get component props
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { Checkbox } from 'antd'
|
|
8
|
+
* import type { GetProps } from 'antd';
|
|
9
|
+
*
|
|
10
|
+
* type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
|
|
11
|
+
* ```
|
|
12
|
+
* @since 5.13.0
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Get component props by component name
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* import { Select } from 'antd';
|
|
20
|
-
* import type { GetProp, SelectProps } from 'antd';
|
|
21
|
-
*
|
|
22
|
-
* type SelectOption1 = GetProp<SelectProps, 'options'>[number];
|
|
23
|
-
* // or
|
|
24
|
-
* type SelectOption2 = GetProp<typeof Select, 'options'>[number];
|
|
25
|
-
*
|
|
26
|
-
* const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
|
|
27
|
-
* // Do something
|
|
28
|
-
* };
|
|
29
|
-
* ```
|
|
30
|
-
* @since 5.13.0
|
|
15
|
+
/**
|
|
16
|
+
* Get component props by component name
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Select } from 'antd';
|
|
20
|
+
* import type { GetProp, SelectProps } from 'antd';
|
|
21
|
+
*
|
|
22
|
+
* type SelectOption1 = GetProp<SelectProps, 'options'>[number];
|
|
23
|
+
* // or
|
|
24
|
+
* type SelectOption2 = GetProp<typeof Select, 'options'>[number];
|
|
25
|
+
*
|
|
26
|
+
* const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
|
|
27
|
+
* // Do something
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
* @since 5.13.0
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* Get component ref
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { Input } from 'antd';
|
|
38
|
-
* import type { GetRef } from 'antd';
|
|
39
|
-
*
|
|
40
|
-
* type InputRef = GetRef<typeof Input>;
|
|
41
|
-
* ```
|
|
42
|
-
* @since 5.13.0
|
|
33
|
+
/**
|
|
34
|
+
* Get component ref
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { Input } from 'antd';
|
|
38
|
+
* import type { GetRef } from 'antd';
|
|
39
|
+
*
|
|
40
|
+
* type InputRef = GetRef<typeof Input>;
|
|
41
|
+
* ```
|
|
42
|
+
* @since 5.13.0
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
export var ComponentDefaults = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const useIsomorphicUpdateLayoutEffect: typeof import("react").
|
|
2
|
+
export declare const useIsomorphicUpdateLayoutEffect: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
|
|
@@ -15,10 +15,10 @@ export function mergeProps() {
|
|
|
15
15
|
return ret;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Merge props and return the first non-undefined value.
|
|
20
|
-
* The later has higher priority. e.g. (10, 1, 5) => 5 wins.
|
|
21
|
-
* This is useful with legacy props that have been deprecated.
|
|
18
|
+
/**
|
|
19
|
+
* Merge props and return the first non-undefined value.
|
|
20
|
+
* The later has higher priority. e.g. (10, 1, 5) => 5 wins.
|
|
21
|
+
* This is useful with legacy props that have been deprecated.
|
|
22
22
|
*/
|
|
23
23
|
export function mergeProp(defaultProp) {
|
|
24
24
|
for (var _len2 = arguments.length, propList = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trionesdev/antd-mobile-react",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.20",
|
|
4
4
|
"description": "antd mobile react ",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
19
19
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
20
20
|
"prepublishOnly": "father doctor && npm run build",
|
|
21
|
-
"publish": "npm publish --registry=https://registry.npmjs.org/",
|
|
21
|
+
"publish": "npm publish --tag latest --registry=https://registry.npmjs.org/",
|
|
22
22
|
"publishOnly": "npm publish --ignore-scripts --registry=https://registry.npmjs.org/"
|
|
23
23
|
},
|
|
24
24
|
"authors": [
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@commitlint/cli": "^19.6.1",
|
|
65
65
|
"@commitlint/config-conventional": "^19.6.0",
|
|
66
66
|
"@trionesdev/antd-mobile-base-react": "workspace:*",
|
|
67
|
-
"@trionesdev/antd-mobile-icons-react": "
|
|
67
|
+
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.20",
|
|
68
68
|
"@types/crypto-js": "^4.2.2",
|
|
69
69
|
"@types/lodash-es": "^4.17.12",
|
|
70
70
|
"@types/react": "^18.0.0",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"@umijs/lint": "^4.0.0",
|
|
74
74
|
"classnames": "^2.5.1",
|
|
75
75
|
"cross-env": "^7.0.3",
|
|
76
|
-
"dumi": "2.4.
|
|
76
|
+
"dumi": "2.4.23",
|
|
77
77
|
"dumi-theme-mobile": "^2.3.5",
|
|
78
78
|
"eslint": "^8.23.0",
|
|
79
|
-
"father": "^4.
|
|
79
|
+
"father": "^4.6.19",
|
|
80
80
|
"husky": "^8.0.1",
|
|
81
81
|
"lint-staged": "^13.0.3",
|
|
82
|
-
"lodash-es": "^4.17.
|
|
82
|
+
"lodash-es": "^4.17.23",
|
|
83
83
|
"prettier": "^3.4.2",
|
|
84
84
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
85
85
|
"prettier-plugin-packagejson": "^2.5.6",
|
|
@@ -89,16 +89,11 @@
|
|
|
89
89
|
"stylelint": "^16.12.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@trionesdev/antd-mobile-base-react": "
|
|
93
|
-
"ahooks": "^3.
|
|
92
|
+
"@trionesdev/antd-mobile-base-react": "0.0.2-beta.20",
|
|
93
|
+
"ahooks": "^3.9.7",
|
|
94
94
|
"crypto-js": "^4.2.0",
|
|
95
|
-
"
|
|
96
|
-
"rc-
|
|
97
|
-
"runes2": "^1.1.4"
|
|
98
|
-
},
|
|
99
|
-
"optionalDependencies": {
|
|
100
|
-
"@trionesdev/antd-mobile-base-react": "workspace:*",
|
|
101
|
-
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.2"
|
|
95
|
+
"dayjs": "^1.11.20",
|
|
96
|
+
"rc-field-form": "^2.7.1"
|
|
102
97
|
},
|
|
103
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "6826587141b29a1e9eda58f95d92210671cbd31c"
|
|
104
99
|
}
|
package/readme.md
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
# @trionesdev/antd-taro-react
|
|
2
|
-
|
|
3
|
-
[](https://npmjs.org/package/@trionesdev/antd-mobile-react)
|
|
4
|
-
[](https://npmjs.org/package/@trionesdev/antd-mobile-react)
|
|
5
|
-
|
|
6
|
-
antd mobile react
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
TODO
|
|
11
|
-
|
|
12
|
-
## Options
|
|
13
|
-
|
|
14
|
-
TODO
|
|
15
|
-
|
|
16
|
-
## Development
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# install dependencies
|
|
20
|
-
$ pnpm install
|
|
21
|
-
|
|
22
|
-
# develop library by docs demo
|
|
23
|
-
$ pnpm start
|
|
24
|
-
|
|
25
|
-
# build library source code
|
|
26
|
-
$ pnpm run build
|
|
27
|
-
|
|
28
|
-
# build library source code in watch mode
|
|
29
|
-
$ pnpm run build:watch
|
|
30
|
-
|
|
31
|
-
# build docs
|
|
32
|
-
$ pnpm run docs:build
|
|
33
|
-
|
|
34
|
-
# Locally preview the production build.
|
|
35
|
-
$ pnpm run docs:preview
|
|
36
|
-
|
|
37
|
-
# check your project for potential problems
|
|
38
|
-
$ pnpm run doctor
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## LICENSE
|
|
42
|
-
|
|
43
|
-
MIT
|
|
1
|
+
# @trionesdev/antd-taro-react
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/package/@trionesdev/antd-mobile-react)
|
|
4
|
+
[](https://npmjs.org/package/@trionesdev/antd-mobile-react)
|
|
5
|
+
|
|
6
|
+
antd mobile react
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
TODO
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
TODO
|
|
15
|
+
|
|
16
|
+
## Development
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# install dependencies
|
|
20
|
+
$ pnpm install
|
|
21
|
+
|
|
22
|
+
# develop library by docs demo
|
|
23
|
+
$ pnpm start
|
|
24
|
+
|
|
25
|
+
# build library source code
|
|
26
|
+
$ pnpm run build
|
|
27
|
+
|
|
28
|
+
# build library source code in watch mode
|
|
29
|
+
$ pnpm run build:watch
|
|
30
|
+
|
|
31
|
+
# build docs
|
|
32
|
+
$ pnpm run docs:build
|
|
33
|
+
|
|
34
|
+
# Locally preview the production build.
|
|
35
|
+
$ pnpm run docs:preview
|
|
36
|
+
|
|
37
|
+
# check your project for potential problems
|
|
38
|
+
$ pnpm run doctor
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## LICENSE
|
|
42
|
+
|
|
43
|
+
MIT
|
package/dist/Mask/index.d.ts
DELETED
package/dist/Mask/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import "./style.scss";
|
|
3
|
-
import { PercentPositionAlign, ProgressStatus } from "./types";
|
|
4
|
-
import { Size } from "@trionesdev/antd-mobile-base-react";
|
|
5
|
-
export type ProgressProps = {
|
|
6
|
-
/**
|
|
7
|
-
* @description 内容的模板函数
|
|
8
|
-
* @default percent => `${percent}%`
|
|
9
|
-
*/
|
|
10
|
-
format?: (percent: number) => string;
|
|
11
|
-
type?: 'line' | 'circle';
|
|
12
|
-
/**
|
|
13
|
-
* @description 百分比
|
|
14
|
-
* @default 0
|
|
15
|
-
*/
|
|
16
|
-
percent?: number;
|
|
17
|
-
size?: Size;
|
|
18
|
-
/**
|
|
19
|
-
* @description 是否显示进度数值或状态图标
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
showInfo?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* @description 未完成的分段的颜色
|
|
25
|
-
*/
|
|
26
|
-
railColor?: string;
|
|
27
|
-
/**
|
|
28
|
-
* @description 进度条的色彩
|
|
29
|
-
*/
|
|
30
|
-
strokeColor?: string;
|
|
31
|
-
status?: ProgressStatus;
|
|
32
|
-
/**
|
|
33
|
-
* @description 进度数值位置
|
|
34
|
-
*/
|
|
35
|
-
percentPositionAlign?: PercentPositionAlign;
|
|
36
|
-
};
|
|
37
|
-
export declare const Progress: FC<ProgressProps>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ProgressCircle } from "./ProgressCircle";
|
|
3
|
-
import "./style.scss";
|
|
4
|
-
import { ProgressLine } from "./ProgressLine";
|
|
5
|
-
import { exceptionColor, successColor } from "./types";
|
|
6
|
-
export var Progress = function Progress(_ref) {
|
|
7
|
-
var format = _ref.format,
|
|
8
|
-
_ref$type = _ref.type,
|
|
9
|
-
type = _ref$type === void 0 ? 'line' : _ref$type,
|
|
10
|
-
_ref$percent = _ref.percent,
|
|
11
|
-
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
12
|
-
_ref$size = _ref.size,
|
|
13
|
-
size = _ref$size === void 0 ? 'middle' : _ref$size,
|
|
14
|
-
_ref$showInfo = _ref.showInfo,
|
|
15
|
-
showInfo = _ref$showInfo === void 0 ? true : _ref$showInfo,
|
|
16
|
-
_ref$railColor = _ref.railColor,
|
|
17
|
-
railColor = _ref$railColor === void 0 ? '#E5E5E5' : _ref$railColor,
|
|
18
|
-
_ref$strokeColor = _ref.strokeColor,
|
|
19
|
-
strokeColor = _ref$strokeColor === void 0 ? '#1777FF' : _ref$strokeColor,
|
|
20
|
-
status = _ref.status,
|
|
21
|
-
percentPositionAlign = _ref.percentPositionAlign;
|
|
22
|
-
var handleComputedStrokeColor = function handleComputedStrokeColor() {
|
|
23
|
-
if (status === 'exception') {
|
|
24
|
-
return exceptionColor;
|
|
25
|
-
}
|
|
26
|
-
if (percent >= 100) {
|
|
27
|
-
return successColor;
|
|
28
|
-
}
|
|
29
|
-
return strokeColor;
|
|
30
|
-
};
|
|
31
|
-
if (type === 'line') {
|
|
32
|
-
return /*#__PURE__*/React.createElement(ProgressLine, {
|
|
33
|
-
format: format,
|
|
34
|
-
percent: percent,
|
|
35
|
-
size: size,
|
|
36
|
-
railColor: railColor,
|
|
37
|
-
strokeColor: handleComputedStrokeColor(),
|
|
38
|
-
status: status,
|
|
39
|
-
showInfo: showInfo,
|
|
40
|
-
percentPositionAlign: percentPositionAlign
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return /*#__PURE__*/React.createElement(ProgressCircle, {
|
|
44
|
-
format: format,
|
|
45
|
-
percent: percent,
|
|
46
|
-
size: size,
|
|
47
|
-
railColor: railColor,
|
|
48
|
-
strokeColor: handleComputedStrokeColor(),
|
|
49
|
-
showInfo: showInfo,
|
|
50
|
-
status: status
|
|
51
|
-
});
|
|
52
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { Size } from "@trionesdev/antd-mobile-base-react";
|
|
3
|
-
import './style.scss';
|
|
4
|
-
import { ProgressStatus } from "./types";
|
|
5
|
-
type ProcessCircleProps = {
|
|
6
|
-
format?: (percent: number) => string;
|
|
7
|
-
percent?: number;
|
|
8
|
-
strokeWidth?: number;
|
|
9
|
-
size?: Size;
|
|
10
|
-
showInfo?: boolean;
|
|
11
|
-
railColor?: string;
|
|
12
|
-
strokeColor?: string;
|
|
13
|
-
strokeLineCap?: 'butt' | 'round' | 'square';
|
|
14
|
-
status?: ProgressStatus;
|
|
15
|
-
};
|
|
16
|
-
export declare const ProgressCircle: FC<ProcessCircleProps>;
|
|
17
|
-
export {};
|