taro-react-uilib 1.4.22-0 → 1.4.22-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Checkbox/Group/index.js +1 -1
- package/dist/components/Checkbox/Group/index.js.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Notice/index.js +2 -0
- package/dist/components/Notice/index.js.map +1 -0
- package/dist/components/Radio/Group/index.js +1 -1
- package/dist/components/Radio/Group/index.js.map +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/src/index.js +1 -1
- package/dist/components/src/utils/index.js +1 -1
- package/dist/components/src/utils/index.js.map +1 -1
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/components/font/iconfont.ttf +0 -0
- package/dist/styles/components/font/iconfont.woff +0 -0
- package/dist/styles/components/font/iconfont.woff2 +0 -0
- package/dist/styles/components/icon.scss +5 -1
- package/dist/styles/components/index.scss +2 -0
- package/dist/styles/components/notice.scss +43 -0
- package/dist/styles/components/tabnav.scss +97 -0
- package/package.json +2 -2
- package/types/components/ActionSheet/index.d.ts +43 -44
- package/types/components/ActivityIndicator/index.d.ts +12 -13
- package/types/components/AmountInput/index.d.ts +25 -26
- package/types/components/AmountKeyboard/index.d.ts +35 -36
- package/types/components/Animated/Animated.d.ts +11 -12
- package/types/components/Animated/Fade/index.d.ts +9 -9
- package/types/components/Animated/Scale/index.d.ts +9 -9
- package/types/components/Animated/Slide/index.d.ts +11 -11
- package/types/components/Animated/index.d.ts +3 -3
- package/types/components/Badge/index.d.ts +7 -8
- package/types/components/BankCardNumberInput/index.d.ts +47 -48
- package/types/components/BankIcon/index.d.ts +8 -9
- package/types/components/Button/DotJump.d.ts +7 -7
- package/types/components/Button/index.d.ts +29 -30
- package/types/components/Captcha/index.d.ts +24 -25
- package/types/components/Cell/index.d.ts +29 -30
- package/types/components/Checkbox/Group/index.d.ts +23 -23
- package/types/components/Checkbox/index.d.ts +28 -29
- package/types/components/CheckboxButton/index.d.ts +23 -24
- package/types/components/Collapse/index.d.ts +10 -11
- package/types/components/Countdown/index.d.ts +10 -11
- package/types/components/Dialog/Alert/index.d.ts +26 -26
- package/types/components/Dialog/Confirm/index.d.ts +37 -37
- package/types/components/Dialog/index.d.ts +11 -11
- package/types/components/DialogComponent/index.d.ts +18 -19
- package/types/components/DialogRef/index.d.ts +37 -38
- package/types/components/Echarts/index.d.ts +5 -5
- package/types/components/Echarts/types.d.ts +34 -34
- package/types/components/Echarts/weapp/wx-canvas.d.ts +21 -21
- package/types/components/Echarts/weapp/wx-touch.d.ts +13 -13
- package/types/components/FormInput/index.d.ts +55 -56
- package/types/components/IDNumberInput/index.d.ts +39 -40
- package/types/components/Icon/index.d.ts +13 -14
- package/types/components/Image/index.d.ts +11 -12
- package/types/components/LicensePlateInput/Keyboard.d.ts +26 -27
- package/types/components/LicensePlateInput/index.d.ts +37 -38
- package/types/components/LinkMan/index.d.ts +33 -34
- package/types/components/List/index.d.ts +21 -22
- package/types/components/Loading/index.d.ts +11 -12
- package/types/components/Mask/index.d.ts +9 -10
- package/types/components/NavBar/index.d.ts +11 -12
- package/types/components/Notice/index.d.ts +13 -0
- package/types/components/NumberKeyboard/index.d.ts +24 -25
- package/types/components/Page/index.d.ts +21 -22
- package/types/components/PasswordInput/index.d.ts +10 -11
- package/types/components/Picker/Picker.d.ts +24 -24
- package/types/components/Picker/PickerSlot.d.ts +23 -24
- package/types/components/Picker/index.d.ts +12 -13
- package/types/components/Popup/index.d.ts +10 -11
- package/types/components/Progress/index.d.ts +21 -22
- package/types/components/ProgressCircle/index.d.ts +13 -14
- package/types/components/Radio/Group/index.d.ts +29 -29
- package/types/components/Radio/index.d.ts +29 -30
- package/types/components/Rank/index.d.ts +13 -14
- package/types/components/Result/index.d.ts +23 -24
- package/types/components/ScrollView/index.d.ts +11 -11
- package/types/components/Space/Item.d.ts +11 -11
- package/types/components/Space/config-provider.d.ts +12 -12
- package/types/components/Space/index.d.ts +20 -21
- package/types/components/Step/Steps/index.d.ts +14 -14
- package/types/components/Step/index.d.ts +19 -20
- package/types/components/Switch/index.d.ts +11 -12
- package/types/components/TabNav/TabNavItem/index.d.ts +8 -0
- package/types/components/TabNav/index.d.ts +27 -0
- package/types/components/Tabbar/index.d.ts +8 -9
- package/types/components/Tabbar/tabbar/TabItem.d.ts +8 -8
- package/types/components/Tabbar/tabbar/Tabbar.d.ts +31 -31
- package/types/components/ThemeProvider/index.d.ts +30 -30
- package/types/components/Toast/Toast.d.ts +19 -20
- package/types/components/Toast/index.d.ts +4 -5
- package/types/hooks/index.d.ts +2 -2
- package/types/hooks/useCustomNavbar.d.ts +6 -6
- package/types/hooks/useFirstMountState.d.ts +1 -1
- package/types/hooks/useFlexGapSupport.d.ts +2 -2
- package/types/hooks/useGenerateId.d.ts +1 -1
- package/types/hooks/usePrevious.d.ts +1 -1
- package/types/hooks/useRefs.d.ts +1 -1
- package/types/hooks/useTouch.d.ts +18 -18
- package/types/hooks/useUnMount.d.ts +1 -1
- package/types/hooks/useUpdateEffect.d.ts +1 -1
- package/types/index.d.ts +44 -43
- package/types/types/index.d.ts +5 -5
- package/types/utils/index.d.ts +57 -57
- package/lib/components/ActionSheet/index.js +0 -67
- package/lib/components/ActionSheet/index.js.map +0 -1
- package/lib/components/ActivityIndicator/index.js +0 -30
- package/lib/components/ActivityIndicator/index.js.map +0 -1
- package/lib/components/AmountInput/index.js +0 -53
- package/lib/components/AmountInput/index.js.map +0 -1
- package/lib/components/AmountKeyboard/index.js +0 -134
- package/lib/components/AmountKeyboard/index.js.map +0 -1
- package/lib/components/Animated/Animated.js +0 -20
- package/lib/components/Animated/Animated.js.map +0 -1
- package/lib/components/Animated/Fade/index.js +0 -19
- package/lib/components/Animated/Fade/index.js.map +0 -1
- package/lib/components/Animated/Scale/index.js +0 -19
- package/lib/components/Animated/Scale/index.js.map +0 -1
- package/lib/components/Animated/Slide/index.js +0 -19
- package/lib/components/Animated/Slide/index.js.map +0 -1
- package/lib/components/Animated/index.js +0 -5
- package/lib/components/Animated/index.js.map +0 -1
- package/lib/components/Badge/index.js +0 -11
- package/lib/components/Badge/index.js.map +0 -1
- package/lib/components/BankCardNumberInput/index.js +0 -44
- package/lib/components/BankCardNumberInput/index.js.map +0 -1
- package/lib/components/BankIcon/index.js +0 -12
- package/lib/components/BankIcon/index.js.map +0 -1
- package/lib/components/Button/DotJump.js +0 -13
- package/lib/components/Button/DotJump.js.map +0 -1
- package/lib/components/Button/index.js +0 -62
- package/lib/components/Button/index.js.map +0 -1
- package/lib/components/Captcha/index.js +0 -76
- package/lib/components/Captcha/index.js.map +0 -1
- package/lib/components/Cell/index.js +0 -29
- package/lib/components/Cell/index.js.map +0 -1
- package/lib/components/Checkbox/Group/index.js +0 -49
- package/lib/components/Checkbox/Group/index.js.map +0 -1
- package/lib/components/Checkbox/index.js +0 -55
- package/lib/components/Checkbox/index.js.map +0 -1
- package/lib/components/CheckboxButton/index.js +0 -30
- package/lib/components/CheckboxButton/index.js.map +0 -1
- package/lib/components/Collapse/index.js +0 -47
- package/lib/components/Collapse/index.js.map +0 -1
- package/lib/components/Countdown/index.js +0 -69
- package/lib/components/Countdown/index.js.map +0 -1
- package/lib/components/Dialog/Alert/index.js +0 -35
- package/lib/components/Dialog/Alert/index.js.map +0 -1
- package/lib/components/Dialog/Confirm/index.js +0 -41
- package/lib/components/Dialog/Confirm/index.js.map +0 -1
- package/lib/components/Dialog/index.js +0 -8
- package/lib/components/Dialog/index.js.map +0 -1
- package/lib/components/DialogComponent/index.js +0 -36
- package/lib/components/DialogComponent/index.js.map +0 -1
- package/lib/components/DialogRef/index.js +0 -55
- package/lib/components/DialogRef/index.js.map +0 -1
- package/lib/components/Echarts/index.js +0 -276
- package/lib/components/Echarts/index.js.map +0 -1
- package/lib/components/Echarts/types.js +0 -2
- package/lib/components/Echarts/types.js.map +0 -1
- package/lib/components/Echarts/weapp/wx-canvas.js +0 -125
- package/lib/components/Echarts/weapp/wx-canvas.js.map +0 -1
- package/lib/components/Echarts/weapp/wx-touch.js +0 -75
- package/lib/components/Echarts/weapp/wx-touch.js.map +0 -1
- package/lib/components/FormInput/index.js +0 -75
- package/lib/components/FormInput/index.js.map +0 -1
- package/lib/components/IDNumberInput/index.js +0 -37
- package/lib/components/IDNumberInput/index.js.map +0 -1
- package/lib/components/Icon/index.js +0 -24
- package/lib/components/Icon/index.js.map +0 -1
- package/lib/components/Image/index.js +0 -48
- package/lib/components/Image/index.js.map +0 -1
- package/lib/components/LicensePlateInput/Keyboard.js +0 -168
- package/lib/components/LicensePlateInput/Keyboard.js.map +0 -1
- package/lib/components/LicensePlateInput/index.js +0 -94
- package/lib/components/LicensePlateInput/index.js.map +0 -1
- package/lib/components/LinkMan/index.js +0 -348
- package/lib/components/LinkMan/index.js.map +0 -1
- package/lib/components/List/index.js +0 -26
- package/lib/components/List/index.js.map +0 -1
- package/lib/components/Loading/index.js +0 -18
- package/lib/components/Loading/index.js.map +0 -1
- package/lib/components/Mask/index.js +0 -17
- package/lib/components/Mask/index.js.map +0 -1
- package/lib/components/NavBar/index.js +0 -41
- package/lib/components/NavBar/index.js.map +0 -1
- package/lib/components/NumberKeyboard/index.js +0 -63
- package/lib/components/NumberKeyboard/index.js.map +0 -1
- package/lib/components/Page/index.js +0 -30
- package/lib/components/Page/index.js.map +0 -1
- package/lib/components/PasswordInput/index.js +0 -24
- package/lib/components/PasswordInput/index.js.map +0 -1
- package/lib/components/Picker/Picker.js +0 -205
- package/lib/components/Picker/Picker.js.map +0 -1
- package/lib/components/Picker/PickerSlot.js +0 -226
- package/lib/components/Picker/PickerSlot.js.map +0 -1
- package/lib/components/Picker/index.js +0 -33
- package/lib/components/Picker/index.js.map +0 -1
- package/lib/components/Popup/index.js +0 -60
- package/lib/components/Popup/index.js.map +0 -1
- package/lib/components/Progress/index.js +0 -29
- package/lib/components/Progress/index.js.map +0 -1
- package/lib/components/ProgressCircle/index.js +0 -22
- package/lib/components/ProgressCircle/index.js.map +0 -1
- package/lib/components/Radio/Group/index.js +0 -58
- package/lib/components/Radio/Group/index.js.map +0 -1
- package/lib/components/Radio/index.js +0 -56
- package/lib/components/Radio/index.js.map +0 -1
- package/lib/components/Rank/index.js +0 -22
- package/lib/components/Rank/index.js.map +0 -1
- package/lib/components/Result/index.js +0 -38
- package/lib/components/Result/index.js.map +0 -1
- package/lib/components/ScrollView/index.js +0 -34
- package/lib/components/ScrollView/index.js.map +0 -1
- package/lib/components/Space/Item.js +0 -25
- package/lib/components/Space/Item.js.map +0 -1
- package/lib/components/Space/config-provider.js +0 -8
- package/lib/components/Space/config-provider.js.map +0 -1
- package/lib/components/Space/index.js +0 -77
- package/lib/components/Space/index.js.map +0 -1
- package/lib/components/Step/Steps/index.js +0 -33
- package/lib/components/Step/Steps/index.js.map +0 -1
- package/lib/components/Step/index.js +0 -20
- package/lib/components/Step/index.js.map +0 -1
- package/lib/components/Switch/index.js +0 -26
- package/lib/components/Switch/index.js.map +0 -1
- package/lib/components/Tabbar/index.js +0 -7
- package/lib/components/Tabbar/index.js.map +0 -1
- package/lib/components/Tabbar/tabbar/TabItem.js +0 -9
- package/lib/components/Tabbar/tabbar/TabItem.js.map +0 -1
- package/lib/components/Tabbar/tabbar/Tabbar.js +0 -87
- package/lib/components/Tabbar/tabbar/Tabbar.js.map +0 -1
- package/lib/components/ThemeProvider/index.js +0 -32
- package/lib/components/ThemeProvider/index.js.map +0 -1
- package/lib/components/Toast/Toast.js +0 -38
- package/lib/components/Toast/Toast.js.map +0 -1
- package/lib/components/Toast/index.js +0 -56
- package/lib/components/Toast/index.js.map +0 -1
- package/lib/hooks/index.js +0 -17
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useCustomNavbar.js +0 -24
- package/lib/hooks/useCustomNavbar.js.map +0 -1
- package/lib/hooks/useFirstMountState.js +0 -10
- package/lib/hooks/useFirstMountState.js.map +0 -1
- package/lib/hooks/useFlexGapSupport.js +0 -10
- package/lib/hooks/useFlexGapSupport.js.map +0 -1
- package/lib/hooks/useGenerateId.js +0 -12
- package/lib/hooks/useGenerateId.js.map +0 -1
- package/lib/hooks/usePrevious.js +0 -9
- package/lib/hooks/usePrevious.js.map +0 -1
- package/lib/hooks/useRefs.js +0 -13
- package/lib/hooks/useRefs.js.map +0 -1
- package/lib/hooks/useTouch.js +0 -67
- package/lib/hooks/useTouch.js.map +0 -1
- package/lib/hooks/useUnMount.js +0 -5
- package/lib/hooks/useUnMount.js.map +0 -1
- package/lib/hooks/useUpdateEffect.js +0 -12
- package/lib/hooks/useUpdateEffect.js.map +0 -1
- package/lib/index.js +0 -44
- package/lib/index.js.map +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +0 -1
- package/lib/utils/index.js +0 -320
- package/lib/utils/index.js.map +0 -1
- package/types/components/BankIcon/bank.d.ts +0 -18
- package/types/components/Dialog/Dialog/index.d.ts +0 -19
- package/types/components/Dialog/DialogComponent/index.d.ts +0 -19
- package/types/components/NumberKeyboard/Key/index.d.ts +0 -8
- package/types/components/PickerSlot/index.d.ts +0 -24
- package/types/components/Tabbar/components/TabItem.d.ts +0 -9
- package/types/components/Tabbar/components/Tabbar.d.ts +0 -30
- package/types/components/Theme/index.d.ts +0 -27
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export default XHAddLinMan;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type AddLinkManProps = {
|
|
3
|
+
linkManNum: number;
|
|
4
|
+
onChange?: (data: LinkManItem[], pass: boolean) => void;
|
|
5
|
+
onGetContacts?: (index: number) => void;
|
|
6
|
+
showImportIcon?: boolean;
|
|
7
|
+
onBlur?: (type: keyof LinkManItem, index: number) => void;
|
|
8
|
+
onCheckRelation?: (value: {
|
|
9
|
+
text: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}, index: number) => void;
|
|
12
|
+
onInputChange?: (type: "linkmanName" | "linkmanPhone", index: number) => void;
|
|
13
|
+
/**
|
|
14
|
+
* 可以选择的关系
|
|
15
|
+
*/
|
|
16
|
+
relations?: {
|
|
17
|
+
text: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
needName?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare type LinkManItem = {
|
|
23
|
+
linkmanName: string;
|
|
24
|
+
linkmanPhone: string;
|
|
25
|
+
relationType: string;
|
|
26
|
+
relationValue: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type LinkManRef = {
|
|
29
|
+
canSubmit: boolean;
|
|
30
|
+
setContacts: (item: Partial<Pick<LinkManItem, "linkmanName" | "linkmanPhone">>, index: number) => void;
|
|
31
|
+
};
|
|
32
|
+
declare const XHAddLinMan: React.ForwardRefExoticComponent<AddLinkManProps & React.RefAttributes<LinkManRef>>;
|
|
33
|
+
export default XHAddLinMan;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { ITouchEvent } from "@tarojs/components";
|
|
3
|
-
import { XHComponentCommonProps } from "../../types";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export default XHList;
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { ITouchEvent } from "@tarojs/components";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
export declare type XHListProps = {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string | ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
extra?: string | ReactNode;
|
|
9
|
+
extraIcon?: ReactNode;
|
|
10
|
+
border?: boolean;
|
|
11
|
+
arrow?: boolean;
|
|
12
|
+
outline?: boolean;
|
|
13
|
+
condensed?: boolean;
|
|
14
|
+
onClick?: (e: ITouchEvent) => void;
|
|
15
|
+
descriptionColor?: string;
|
|
16
|
+
extraColor?: string;
|
|
17
|
+
ellipsis?: boolean;
|
|
18
|
+
padding?: boolean;
|
|
19
|
+
} & XHComponentCommonProps;
|
|
20
|
+
declare const XHList: FC<XHListProps>;
|
|
21
|
+
export default XHList;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { MaskProps } from "../Mask";
|
|
3
|
-
import { XHComponentCommonProps } from "../../types";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default Loading;
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { MaskProps } from "../Mask";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
export declare type LoadingProps = {
|
|
5
|
+
mask?: MaskProps["mask"];
|
|
6
|
+
color?: string;
|
|
7
|
+
tip?: string | ReactNode;
|
|
8
|
+
size?: number;
|
|
9
|
+
} & XHComponentCommonProps;
|
|
10
|
+
declare const Loading: FC<LoadingProps>;
|
|
11
|
+
export default Loading;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { FC, MouseEvent } from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export default Mask;
|
|
1
|
+
import { FC, MouseEvent } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type MaskProps = {
|
|
4
|
+
closeOnClickMask?: boolean;
|
|
5
|
+
onClick?: (e: MouseEvent) => void;
|
|
6
|
+
mask?: "transparent" | "normal";
|
|
7
|
+
} & XHComponentCommonProps;
|
|
8
|
+
declare const Mask: FC<MaskProps>;
|
|
9
|
+
export default Mask;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default NavBar;
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type NavBarProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
leftIcon?: boolean;
|
|
6
|
+
rightIcon?: ReactNode;
|
|
7
|
+
navBarBorder?: boolean;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
} & XHComponentCommonProps;
|
|
10
|
+
declare const NavBar: FC<NavBarProps>;
|
|
11
|
+
export default NavBar;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Property } from "csstype";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
export declare type RemindProps = {
|
|
5
|
+
content: string[] | ReactNode[];
|
|
6
|
+
internal?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
icon?: ReactNode | boolean;
|
|
9
|
+
itemHeight?: number;
|
|
10
|
+
bgColor?: Property.BackgroundColor;
|
|
11
|
+
} & XHComponentCommonProps;
|
|
12
|
+
declare const Notice: React.FC<RemindProps>;
|
|
13
|
+
export default Notice;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { FC, MouseEvent } from "react";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
export declare type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export default NumberKeyboard;
|
|
1
|
+
import { FC, MouseEvent } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type NumberKeyboardType = "default" | "custom";
|
|
4
|
+
export declare type NumberKeyboardProps = {
|
|
5
|
+
show: boolean;
|
|
6
|
+
type?: NumberKeyboardType;
|
|
7
|
+
showClose?: boolean;
|
|
8
|
+
closeOnClickSpace?: boolean;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
onBlur?: (e: MouseEvent | Event) => void;
|
|
11
|
+
onClose?: (e: MouseEvent | Event) => void;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
value: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
closeText?: string;
|
|
16
|
+
} & XHComponentCommonProps;
|
|
17
|
+
export declare type KeyType = "number" | "delete" | "string" | "none";
|
|
18
|
+
export interface IKey {
|
|
19
|
+
text: number | string;
|
|
20
|
+
value: number | string;
|
|
21
|
+
type: KeyType;
|
|
22
|
+
}
|
|
23
|
+
declare const NumberKeyboard: FC<NumberKeyboardProps>;
|
|
24
|
+
export default NumberKeyboard;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* @
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export default Page;
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
import { LoadingProps } from "../Loading";
|
|
4
|
+
export interface PageProps extends XHComponentCommonProps {
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
mask?: LoadingProps["mask"];
|
|
7
|
+
tip?: ReactNode;
|
|
8
|
+
loadingColor?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @supported 小程序
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
customNavBar?: boolean;
|
|
14
|
+
onBack?: () => void;
|
|
15
|
+
title?: string;
|
|
16
|
+
leftIcon?: boolean;
|
|
17
|
+
rightIcon?: ReactNode;
|
|
18
|
+
navBarBorder?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const Page: FC<PageProps>;
|
|
21
|
+
export default Page;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export default PasswordInput;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type PasswordInputProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
length: number;
|
|
6
|
+
mask?: boolean;
|
|
7
|
+
onFocus?: (e: any) => void;
|
|
8
|
+
} & XHComponentCommonProps;
|
|
9
|
+
declare const PasswordInput: FC<PasswordInputProps>;
|
|
10
|
+
export default PasswordInput;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React, { RefObject, ReactNode } from "react";
|
|
2
|
-
export interface PickerOption {
|
|
3
|
-
text: string | number;
|
|
4
|
-
value: string | number;
|
|
5
|
-
children?: PickerOption[];
|
|
6
|
-
}
|
|
7
|
-
export declare type PickerValue = string | PickerOption;
|
|
8
|
-
export interface PickerProps<T extends PickerValue = PickerValue> {
|
|
9
|
-
visible?: boolean;
|
|
10
|
-
title?: ReactNode | string;
|
|
11
|
-
data: (T | T[])[];
|
|
12
|
-
defaultValueData?: (string | number)[];
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
mode?: "normal" | "3D";
|
|
16
|
-
swipeDuration?: number | string;
|
|
17
|
-
onConfirm?: (selectedValue: T[], index: number) => void;
|
|
18
|
-
onCancel?: () => void;
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
|
|
21
|
-
onChange?: (index: number, value: (string | number)[], selectedOptions: PickerValue[]) => void;
|
|
22
|
-
}
|
|
23
|
-
declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps<PickerValue>> & React.RefAttributes<unknown>>;
|
|
24
|
-
export default Picker;
|
|
1
|
+
import React, { RefObject, ReactNode } from "react";
|
|
2
|
+
export interface PickerOption {
|
|
3
|
+
text: string | number;
|
|
4
|
+
value: string | number;
|
|
5
|
+
children?: PickerOption[];
|
|
6
|
+
}
|
|
7
|
+
export declare type PickerValue = string | PickerOption;
|
|
8
|
+
export interface PickerProps<T extends PickerValue = PickerValue> {
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
title?: ReactNode | string;
|
|
11
|
+
data: (T | T[])[];
|
|
12
|
+
defaultValueData?: (string | number)[];
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
mode?: "normal" | "3D";
|
|
16
|
+
swipeDuration?: number | string;
|
|
17
|
+
onConfirm?: (selectedValue: T[], index: number) => void;
|
|
18
|
+
onCancel?: () => void;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
|
|
21
|
+
onChange?: (index: number, value: (string | number)[], selectedOptions: PickerValue[]) => void;
|
|
22
|
+
}
|
|
23
|
+
declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps<PickerValue>> & React.RefAttributes<unknown>>;
|
|
24
|
+
export default Picker;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import React, { MouseEventHandler } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export default PickerSlot;
|
|
1
|
+
import React, { MouseEventHandler } from "react";
|
|
2
|
+
interface PickerObjectValue {
|
|
3
|
+
text: string | number;
|
|
4
|
+
value: string | number;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare type PickerValue = string | PickerObjectValue;
|
|
8
|
+
interface PickerSlotProps<T extends PickerValue = PickerObjectValue> {
|
|
9
|
+
defaultValue?: string | number;
|
|
10
|
+
data: T[];
|
|
11
|
+
mode?: "normal" | "3D";
|
|
12
|
+
swipeDuration?: number | string;
|
|
13
|
+
onConfirm?: (value: T, index: number) => void;
|
|
14
|
+
onCancel?: MouseEventHandler;
|
|
15
|
+
onClose?: MouseEventHandler;
|
|
16
|
+
keyIndex: number;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const PickerSlot: React.ForwardRefExoticComponent<Partial<PickerSlotProps<PickerObjectValue>> & React.RefAttributes<{
|
|
20
|
+
stopMomentum: () => void;
|
|
21
|
+
moving: boolean;
|
|
22
|
+
}>>;
|
|
23
|
+
export default PickerSlot;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
2
|
-
import type { PickerValue, PickerProps, PickerOption } from "./Picker";
|
|
3
|
-
|
|
4
|
-
export declare type
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export default PickerField;
|
|
1
|
+
import { PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { PickerValue, PickerProps, PickerOption } from "./Picker";
|
|
3
|
+
export declare type PickerDataType = PickerValue;
|
|
4
|
+
export declare type PickerDataOptionType = PickerOption;
|
|
5
|
+
export interface PickerFieldProps<T extends PickerValue> extends PropsWithChildren<PickerProps> {
|
|
6
|
+
title?: ReactNode | string;
|
|
7
|
+
data: T[] | T[][];
|
|
8
|
+
className?: string;
|
|
9
|
+
onConfirm?: (value: T[], index: number) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const PickerField: <T extends PickerValue>(props: PickerFieldProps<T>) => ReactElement;
|
|
12
|
+
export default PickerField;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export default Popup;
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
export declare type PopupPosition = "top" | "bottom" | "left" | "right";
|
|
3
|
+
export interface PopupProps extends PropsWithChildren<{}> {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
position?: PopupPosition;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Popup: FC<PopupProps>;
|
|
10
|
+
export default Popup;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StandardLonghandProperties } from "csstype";
|
|
3
|
-
import { XHComponentCommonProps } from "../../types";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export default Progress;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StandardLonghandProperties } from "csstype";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
export declare type ProgressProps = {
|
|
5
|
+
percent: number;
|
|
6
|
+
showPercent?: boolean;
|
|
7
|
+
doneColor?: string;
|
|
8
|
+
percentColor?: string;
|
|
9
|
+
height?: number;
|
|
10
|
+
/**
|
|
11
|
+
* @description 百分比,不要百分号
|
|
12
|
+
*/
|
|
13
|
+
dots?: number[];
|
|
14
|
+
/**
|
|
15
|
+
* 苗条模式
|
|
16
|
+
*/
|
|
17
|
+
solid?: boolean;
|
|
18
|
+
backgroundColor?: StandardLonghandProperties["color"];
|
|
19
|
+
} & XHComponentCommonProps;
|
|
20
|
+
declare const Progress: React.FC<ProgressProps>;
|
|
21
|
+
export default Progress;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export default Progress;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type ProgressProps = {
|
|
4
|
+
percent: number;
|
|
5
|
+
doneColor?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
maskColor?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
text?: React.ReactNode;
|
|
11
|
+
} & XHComponentCommonProps;
|
|
12
|
+
declare const Progress: React.FC<ProgressProps>;
|
|
13
|
+
export default Progress;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
export declare type RadioItemType = {
|
|
3
|
-
label: string | ReactNode;
|
|
4
|
-
value: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare type RadioItem = RadioItemType | string;
|
|
9
|
-
export declare type RadioGroupProps = {
|
|
10
|
-
option: RadioItem[];
|
|
11
|
-
onChange?: (value: string | number) => void;
|
|
12
|
-
name: string;
|
|
13
|
-
circle?: boolean;
|
|
14
|
-
align?: "center" | "end";
|
|
15
|
-
direction?: "rtl";
|
|
16
|
-
justify?: "around" | "between";
|
|
17
|
-
id?: string;
|
|
18
|
-
padding?: true;
|
|
19
|
-
border?: boolean;
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
radioStyle?: React.CSSProperties;
|
|
22
|
-
defaultChecked?: string | number;
|
|
23
|
-
color?: string;
|
|
24
|
-
inline?: boolean;
|
|
25
|
-
fancy?: boolean;
|
|
26
|
-
checkedClass?: string;
|
|
27
|
-
};
|
|
28
|
-
declare const RadioGroup: React.FC<RadioGroupProps>;
|
|
29
|
-
export default RadioGroup;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type RadioItemType = {
|
|
3
|
+
label: string | ReactNode;
|
|
4
|
+
value: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type RadioItem = RadioItemType | string;
|
|
9
|
+
export declare type RadioGroupProps = {
|
|
10
|
+
option: RadioItem[];
|
|
11
|
+
onChange?: (value: string | number) => void;
|
|
12
|
+
name: string;
|
|
13
|
+
circle?: boolean;
|
|
14
|
+
align?: "center" | "end";
|
|
15
|
+
direction?: "rtl";
|
|
16
|
+
justify?: "around" | "between";
|
|
17
|
+
id?: string;
|
|
18
|
+
padding?: true;
|
|
19
|
+
border?: boolean;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
radioStyle?: React.CSSProperties;
|
|
22
|
+
defaultChecked?: string | number;
|
|
23
|
+
color?: string;
|
|
24
|
+
inline?: boolean;
|
|
25
|
+
fancy?: boolean;
|
|
26
|
+
checkedClass?: string;
|
|
27
|
+
};
|
|
28
|
+
declare const RadioGroup: React.FC<RadioGroupProps>;
|
|
29
|
+
export default RadioGroup;
|