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 +1 @@
|
|
|
1
|
-
export default function usePrevious<T = unknown>(value: any): T | undefined;
|
|
1
|
+
export default function usePrevious<T = unknown>(value: any): T | undefined;
|
package/types/hooks/useRefs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useRefs(): any[];
|
|
1
|
+
export default function useRefs(): any[];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
declare type Direction = "" | "vertical" | "horizontal";
|
|
2
|
-
export declare function useTouch(): {
|
|
3
|
-
move: EventListener;
|
|
4
|
-
start: EventListener;
|
|
5
|
-
reset: () => void;
|
|
6
|
-
startX: number;
|
|
7
|
-
startY: number;
|
|
8
|
-
moveX: number;
|
|
9
|
-
moveY: number;
|
|
10
|
-
deltaX: number;
|
|
11
|
-
deltaY: number;
|
|
12
|
-
offsetX: number;
|
|
13
|
-
offsetY: number;
|
|
14
|
-
direction: Direction;
|
|
15
|
-
isVertical: () => boolean;
|
|
16
|
-
isHorizontal: () => boolean;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
1
|
+
declare type Direction = "" | "vertical" | "horizontal";
|
|
2
|
+
export declare function useTouch(): {
|
|
3
|
+
move: EventListener;
|
|
4
|
+
start: EventListener;
|
|
5
|
+
reset: () => void;
|
|
6
|
+
startX: number;
|
|
7
|
+
startY: number;
|
|
8
|
+
moveX: number;
|
|
9
|
+
moveY: number;
|
|
10
|
+
deltaX: number;
|
|
11
|
+
deltaY: number;
|
|
12
|
+
offsetX: number;
|
|
13
|
+
offsetY: number;
|
|
14
|
+
direction: Direction;
|
|
15
|
+
isVertical: () => boolean;
|
|
16
|
+
isHorizontal: () => boolean;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useUnMount(fn: () => void): void;
|
|
1
|
+
export default function useUnMount(fn: () => void): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useUpdateEffect(effect: any, deps: any): void;
|
|
1
|
+
export default function useUpdateEffect(effect: any, deps: any): void;
|
package/types/index.d.ts
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
export { default as XHButton } from "./components/Button";
|
|
2
|
-
export { default as XHPage } from "./components/Page";
|
|
3
|
-
export { default as XHLoading } from "./components/Loading";
|
|
4
|
-
export { default as XHBankIcon } from "./components/BankIcon";
|
|
5
|
-
export { default as XHCaptcha, type CaptchaRef as Type_CaptchaRef, } from "./components/Captcha";
|
|
6
|
-
export { default as XHFormInput } from "./components/FormInput";
|
|
7
|
-
export { default as XHList } from "./components/List";
|
|
8
|
-
export { default as XHMask } from "./components/Mask";
|
|
9
|
-
export { default as XHImage } from "./components/Image";
|
|
10
|
-
export { default as XHDialog } from "./components/Dialog";
|
|
11
|
-
export { default as XHNumberKeyboard } from "./components/NumberKeyboard";
|
|
12
|
-
export { default as XHPasswordInput } from "./components/PasswordInput";
|
|
13
|
-
export { default as XHProgress } from "./components/Progress";
|
|
14
|
-
export { default as XHToast } from "./components/Toast";
|
|
15
|
-
export { default as XHDialogRef } from "./components/DialogRef";
|
|
16
|
-
export { default as XHTabbar } from "./components/Tabbar";
|
|
17
|
-
export { default as XHPopup } from "./components/Popup";
|
|
18
|
-
export { default as XHPicker } from "./components/Picker";
|
|
19
|
-
export { default as XHSpace } from "./components/Space";
|
|
20
|
-
export { default as ThemeProvider } from "./components/ThemeProvider";
|
|
21
|
-
export { default as XHCheckbox } from "./components/Checkbox";
|
|
22
|
-
export { default as XHRadio } from "./components/Radio";
|
|
23
|
-
export { default as XHStep } from "./components/Step";
|
|
24
|
-
export { default as XHBadge } from "./components/Badge";
|
|
25
|
-
export { default as XHAmountInput } from "./components/AmountInput";
|
|
26
|
-
export { default as XHAmountKeyboard } from "./components/AmountKeyboard";
|
|
27
|
-
export { default as XHCollapse } from "./components/Collapse";
|
|
28
|
-
export { default as XHNavBar } from "./components/NavBar";
|
|
29
|
-
export { default as XHIcon } from "./components/Icon";
|
|
30
|
-
export { default as XHActionSheet } from "./components/ActionSheet";
|
|
31
|
-
export { default as XHRank } from "./components/Rank";
|
|
32
|
-
export { default as XHCell } from "./components/Cell";
|
|
33
|
-
export { default as XHActivityIndicator } from "./components/ActivityIndicator";
|
|
34
|
-
export { default as XHSwitch } from "./components/Switch";
|
|
35
|
-
export { default as XHLinkMan } from "./components/LinkMan";
|
|
36
|
-
export { default as XHResult } from "./components/Result";
|
|
37
|
-
export { default as XHProgressCircle } from "./components/ProgressCircle";
|
|
38
|
-
export { default as XHLicensePlateInput } from "./components/LicensePlateInput";
|
|
39
|
-
export { default as XHCountdown } from "./components/Countdown";
|
|
40
|
-
export { default as XHCheckboxButton } from "./components/CheckboxButton";
|
|
41
|
-
export { default as
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as
|
|
1
|
+
export { default as XHButton } from "./components/Button";
|
|
2
|
+
export { default as XHPage } from "./components/Page";
|
|
3
|
+
export { default as XHLoading } from "./components/Loading";
|
|
4
|
+
export { default as XHBankIcon } from "./components/BankIcon";
|
|
5
|
+
export { default as XHCaptcha, type CaptchaRef as Type_CaptchaRef, } from "./components/Captcha";
|
|
6
|
+
export { default as XHFormInput } from "./components/FormInput";
|
|
7
|
+
export { default as XHList } from "./components/List";
|
|
8
|
+
export { default as XHMask } from "./components/Mask";
|
|
9
|
+
export { default as XHImage } from "./components/Image";
|
|
10
|
+
export { default as XHDialog } from "./components/Dialog";
|
|
11
|
+
export { default as XHNumberKeyboard } from "./components/NumberKeyboard";
|
|
12
|
+
export { default as XHPasswordInput } from "./components/PasswordInput";
|
|
13
|
+
export { default as XHProgress } from "./components/Progress";
|
|
14
|
+
export { default as XHToast } from "./components/Toast";
|
|
15
|
+
export { default as XHDialogRef } from "./components/DialogRef";
|
|
16
|
+
export { default as XHTabbar } from "./components/Tabbar";
|
|
17
|
+
export { default as XHPopup } from "./components/Popup";
|
|
18
|
+
export { default as XHPicker } from "./components/Picker";
|
|
19
|
+
export { default as XHSpace } from "./components/Space";
|
|
20
|
+
export { default as ThemeProvider } from "./components/ThemeProvider";
|
|
21
|
+
export { default as XHCheckbox } from "./components/Checkbox";
|
|
22
|
+
export { default as XHRadio } from "./components/Radio";
|
|
23
|
+
export { default as XHStep } from "./components/Step";
|
|
24
|
+
export { default as XHBadge } from "./components/Badge";
|
|
25
|
+
export { default as XHAmountInput } from "./components/AmountInput";
|
|
26
|
+
export { default as XHAmountKeyboard } from "./components/AmountKeyboard";
|
|
27
|
+
export { default as XHCollapse } from "./components/Collapse";
|
|
28
|
+
export { default as XHNavBar } from "./components/NavBar";
|
|
29
|
+
export { default as XHIcon } from "./components/Icon";
|
|
30
|
+
export { default as XHActionSheet } from "./components/ActionSheet";
|
|
31
|
+
export { default as XHRank } from "./components/Rank";
|
|
32
|
+
export { default as XHCell } from "./components/Cell";
|
|
33
|
+
export { default as XHActivityIndicator } from "./components/ActivityIndicator";
|
|
34
|
+
export { default as XHSwitch } from "./components/Switch";
|
|
35
|
+
export { default as XHLinkMan } from "./components/LinkMan";
|
|
36
|
+
export { default as XHResult } from "./components/Result";
|
|
37
|
+
export { default as XHProgressCircle } from "./components/ProgressCircle";
|
|
38
|
+
export { default as XHLicensePlateInput } from "./components/LicensePlateInput";
|
|
39
|
+
export { default as XHCountdown } from "./components/Countdown";
|
|
40
|
+
export { default as XHCheckboxButton } from "./components/CheckboxButton";
|
|
41
|
+
export { default as XHNotice } from "./components/Notice";
|
|
42
|
+
export { default as XHBankCardNumberInput, type BankCardNumberInputRef as Type_BankCardNumberInputRef, } from "./components/BankCardNumberInput";
|
|
43
|
+
export { default as XHIDNumberInput, type IDNumberInputRef as Type_IDNumberInputRef, } from "./components/IDNumberInput";
|
|
44
|
+
export { default as XHEcharts, type EChartsProps as Type_EChartsProps, type EChartOption as Type_EChartOptions, type EChartsInstance as Type_EChartsInstance, type EChartsLoadingOption as Type_EChartsLoadingOption, type EchartsHandle as Type_EchartsHandle, } from "./components/Echarts";
|
package/types/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export declare type XHComponentCommonProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode | undefined;
|
|
5
|
-
};
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type XHComponentCommonProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: ReactNode | undefined;
|
|
5
|
+
};
|
package/types/utils/index.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 禁止输入emoji表情
|
|
3
|
-
* @param {string} val - 输入内容
|
|
4
|
-
* @returns {boolean} - 校验结果 返回 true || false
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
export declare const inputRange: (val: string) => string;
|
|
8
|
-
export declare const throtte: (fn: Function, delay?: number) => (arg: any) => void;
|
|
9
|
-
export declare const debounce: (fn: (...arg: any) => any, delay?: number) => () => void;
|
|
10
|
-
export declare function pxTransform(size: number, designWidth?: number): string;
|
|
11
|
-
export declare const detectFlexGapSupported: () => boolean;
|
|
12
|
-
export interface Option {
|
|
13
|
-
keepEmpty?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function toArray(children: React.ReactNode, option?: Option): React.ReactElement[];
|
|
16
|
-
export declare const checkBankCard: (cardNo: string) => boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 格式化银行卡号
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @param {string} cardNum 6217002712347888987
|
|
22
|
-
* @param {boolean} mask 是否掩码
|
|
23
|
-
* @returns {string} 6217 0027 1234 7888 987
|
|
24
|
-
*/
|
|
25
|
-
export declare function creditCard(cardNum: string, mask?: boolean): string;
|
|
26
|
-
/**
|
|
27
|
-
* 校验身份证号是否符合规范
|
|
28
|
-
*
|
|
29
|
-
* @export
|
|
30
|
-
* @param {string} idcard
|
|
31
|
-
* @returns {boolean} true 符合 | false 不符合
|
|
32
|
-
*/
|
|
33
|
-
export declare function verifyIdcard(idcard: string): boolean;
|
|
34
|
-
export declare function tripleDefer(func: () => void): void;
|
|
35
|
-
export declare function isString(v: any): boolean;
|
|
36
|
-
export declare function isFunction(v: any): boolean;
|
|
37
|
-
export declare function isEqual(x: any, y: any): boolean;
|
|
38
|
-
export declare function pick(obj: any, keys: any): {};
|
|
39
|
-
export declare function uniqueId(prefix?: string): string;
|
|
40
|
-
/**
|
|
41
|
-
* 版本号比较进阶版
|
|
42
|
-
* @param {string} ver1 5.19.1 前一个版本
|
|
43
|
-
* @param {string} ver2 5.18.3 后一个版本
|
|
44
|
-
* @returns {number} 1: 前一个版本 大于 后一个版本
|
|
45
|
-
* -1: 前一个版本 小于 后一个版本
|
|
46
|
-
* 0: 前一个版本 等于 后一个版本
|
|
47
|
-
*/
|
|
48
|
-
export declare function compareVersion(ver1: string, ver2: string): number;
|
|
49
|
-
export declare const replaceCharByIndex: (str: string, index: number, replace: string) => string;
|
|
50
|
-
/**
|
|
51
|
-
* 车牌号正则校验
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
* @param {string} str 车牌号
|
|
55
|
-
* @returns {boolean} false | true
|
|
56
|
-
*/
|
|
57
|
-
export declare const isLicenseNo: (str: string) => boolean;
|
|
1
|
+
/**
|
|
2
|
+
* 禁止输入emoji表情
|
|
3
|
+
* @param {string} val - 输入内容
|
|
4
|
+
* @returns {boolean} - 校验结果 返回 true || false
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
export declare const inputRange: (val: string) => string;
|
|
8
|
+
export declare const throtte: (fn: Function, delay?: number) => (arg: any) => void;
|
|
9
|
+
export declare const debounce: (fn: (...arg: any) => any, delay?: number) => () => void;
|
|
10
|
+
export declare function pxTransform(size: number, designWidth?: number): string;
|
|
11
|
+
export declare const detectFlexGapSupported: () => boolean;
|
|
12
|
+
export interface Option {
|
|
13
|
+
keepEmpty?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function toArray(children: React.ReactNode, option?: Option): React.ReactElement[];
|
|
16
|
+
export declare const checkBankCard: (cardNo: string) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 格式化银行卡号
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @param {string} cardNum 6217002712347888987
|
|
22
|
+
* @param {boolean} mask 是否掩码
|
|
23
|
+
* @returns {string} 6217 0027 1234 7888 987
|
|
24
|
+
*/
|
|
25
|
+
export declare function creditCard(cardNum: string, mask?: boolean): string;
|
|
26
|
+
/**
|
|
27
|
+
* 校验身份证号是否符合规范
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
* @param {string} idcard
|
|
31
|
+
* @returns {boolean} true 符合 | false 不符合
|
|
32
|
+
*/
|
|
33
|
+
export declare function verifyIdcard(idcard: string): boolean;
|
|
34
|
+
export declare function tripleDefer(func: () => void): void;
|
|
35
|
+
export declare function isString(v: any): boolean;
|
|
36
|
+
export declare function isFunction(v: any): boolean;
|
|
37
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
38
|
+
export declare function pick(obj: any, keys: any): {};
|
|
39
|
+
export declare function uniqueId(prefix?: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* 版本号比较进阶版
|
|
42
|
+
* @param {string} ver1 5.19.1 前一个版本
|
|
43
|
+
* @param {string} ver2 5.18.3 后一个版本
|
|
44
|
+
* @returns {number} 1: 前一个版本 大于 后一个版本
|
|
45
|
+
* -1: 前一个版本 小于 后一个版本
|
|
46
|
+
* 0: 前一个版本 等于 后一个版本
|
|
47
|
+
*/
|
|
48
|
+
export declare function compareVersion(ver1: string, ver2: string): number;
|
|
49
|
+
export declare const replaceCharByIndex: (str: string, index: number, replace: string) => string;
|
|
50
|
+
/**
|
|
51
|
+
* 车牌号正则校验
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @param {string} str 车牌号
|
|
55
|
+
* @returns {boolean} false | true
|
|
56
|
+
*/
|
|
57
|
+
export declare const isLicenseNo: (str: string) => boolean;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import { View } from "@tarojs/components";
|
|
4
|
-
import Popup from "../Popup";
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
const ActionSheet = (props) => {
|
|
7
|
-
const { visible = false, title, description, data = [], onConfirm, onCancel, className, children, style, mode, submitText = "提交", cancelText = "取消", showCancel = false, renderItem, ItemWrapper, onSubmit, onClick, showClose = false, justifyContent = "center", inline = false, defaultValue = "", } = props;
|
|
8
|
-
const [innerVisible, setInnerVisible] = useState(visible);
|
|
9
|
-
const [value, selectedValue] = useState(typeof defaultValue === "string" ? defaultValue : defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value);
|
|
10
|
-
const handleCancel = (bottom) => {
|
|
11
|
-
onCancel === null || onCancel === void 0 ? void 0 : onCancel(bottom);
|
|
12
|
-
onClick === null || onClick === void 0 ? void 0 : onClick(false);
|
|
13
|
-
setInnerVisible(false);
|
|
14
|
-
};
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setInnerVisible(visible);
|
|
17
|
-
}, [visible]);
|
|
18
|
-
const handleClick = () => {
|
|
19
|
-
if (onClick) {
|
|
20
|
-
onClick(!visible);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (data.length <= 0)
|
|
24
|
-
return;
|
|
25
|
-
setInnerVisible(true);
|
|
26
|
-
};
|
|
27
|
-
const handleConfirm = (item, index) => {
|
|
28
|
-
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(item, index);
|
|
29
|
-
setInnerVisible(false);
|
|
30
|
-
const checkValue = typeof item === "string" ? item : item.value;
|
|
31
|
-
selectedValue(checkValue);
|
|
32
|
-
};
|
|
33
|
-
const handleSubmit = () => {
|
|
34
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
35
|
-
};
|
|
36
|
-
const submitButton = () => {
|
|
37
|
-
return (React.createElement(View, null,
|
|
38
|
-
React.createElement(View, { className: "xh-action-sheet-main-action-submit", onClick: handleSubmit }, submitText),
|
|
39
|
-
showCancel && (React.createElement(View, { className: "xh-action-sheet-main-action-cancel mode", onClick: () => handleCancel(true) }, cancelText))));
|
|
40
|
-
};
|
|
41
|
-
const itemRender = () => data.map((item, index) => {
|
|
42
|
-
return renderItem ? (renderItem(item, index)) : (React.createElement(View, { className: classNames("xh-action-sheet-main-panel-item", justifyContent, {
|
|
43
|
-
active: typeof item === "string"
|
|
44
|
-
? item === value
|
|
45
|
-
: item.value === value,
|
|
46
|
-
}), key: index, onClick: () => {
|
|
47
|
-
handleConfirm(item, index);
|
|
48
|
-
} }, typeof item === "string" ? item : item.text));
|
|
49
|
-
});
|
|
50
|
-
const innerShowClose = showClose || (mode === "controlled" && !showCancel);
|
|
51
|
-
return (React.createElement(View, { className: classNames("xh-action-sheet", { inline }), onClick: handleClick },
|
|
52
|
-
React.createElement(Popup, { visible: innerVisible },
|
|
53
|
-
React.createElement(View, { className: classNames("xh-action-sheet-main", className, mode), style: style },
|
|
54
|
-
title && (React.createElement(View, { className: "xh-action-sheet-main-header" },
|
|
55
|
-
React.createElement(View, { className: "xh-action-sheet-main-header-title" }, title),
|
|
56
|
-
React.createElement(View, { className: "xh-action-sheet-main-header-desc" }, description),
|
|
57
|
-
innerShowClose && (React.createElement(View, { className: "xh-action-sheet-main-header-close", onClick: () => handleCancel() })))),
|
|
58
|
-
React.createElement(View, { className: classNames("xh-action-sheet-main-panel", {
|
|
59
|
-
noTitle: !title,
|
|
60
|
-
}), onClick: e => process.env.TARO_ENV !== "h5" && e.stopPropagation() }, ItemWrapper ? (React.createElement(ItemWrapper, null, itemRender())) : (React.createElement(React.Fragment, null, itemRender()))),
|
|
61
|
-
React.createElement(View, { className: classNames("xh-action-sheet-main-action", {
|
|
62
|
-
noMarinTop: mode !== "controlled" && innerShowClose,
|
|
63
|
-
}), onClick: e => process.env.TARO_ENV !== "h5" && e.stopPropagation() }, mode === "controlled" ? (submitButton()) : !innerShowClose ? (React.createElement(View, { className: "xh-action-sheet-main-action-cancel", onClick: () => handleCancel(true) }, cancelText)) : (React.createElement("div", null))))),
|
|
64
|
-
children));
|
|
65
|
-
};
|
|
66
|
-
export default ActionSheet;
|
|
67
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ActionSheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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,CAAC,KAAK;qBAChB,CAAC,EACF,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,IAEjE,WAAW,CAAC,CAAC,CAAC,CACb,oBAAC,WAAW,QAAE,UAAU,EAAE,CAAe,CAC1C,CAAC,CAAC,CAAC,CACF,oBAAC,KAAK,CAAC,QAAQ,QAAE,UAAU,EAAE,CAAkB,CAChD,CACI;gBACP,oBAAC,IAAI,IACH,SAAS,EAAE,UAAU,CAAC,6BAA6B,EAAE;wBACnD,UAAU,EAAE,IAAI,KAAK,YAAY,IAAI,cAAc;qBACpD,CAAC,EACF,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,IAEjE,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,CACvB,YAAY,EAAE,CACf,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CACpB,oBAAC,IAAI,IACH,SAAS,EAAC,oCAAoC,EAC9C,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAEhC,UAAU,CACN,CACR,CAAC,CAAC,CAAC,CACF,gCAAW,CACZ,CACI,CACF,CACD;QACP,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from "react";
|
|
13
|
-
import classNames from "classnames";
|
|
14
|
-
import { View } from "@tarojs/components";
|
|
15
|
-
import { pxTransform } from "@/utils";
|
|
16
|
-
import "./index.scss";
|
|
17
|
-
const Activityindicator = (_a) => {
|
|
18
|
-
var { className, style, size = 36 } = _a, rest = __rest(_a, ["className", "style", "size"]);
|
|
19
|
-
const cls = classNames("xh-activity-indicator", className);
|
|
20
|
-
let finalStyle = Object.assign(Object.assign({}, style), rest);
|
|
21
|
-
if (size !== 36) {
|
|
22
|
-
finalStyle = Object.assign(Object.assign({}, finalStyle), { width: pxTransform(size), height: pxTransform(size) });
|
|
23
|
-
}
|
|
24
|
-
return (React.createElement(View, { className: cls, style: finalStyle },
|
|
25
|
-
React.createElement(View, { className: "xh-activity-indicator-main" }),
|
|
26
|
-
React.createElement(View, { className: "xh-activity-indicator-main" }),
|
|
27
|
-
React.createElement(View, { className: "xh-activity-indicator-main" })));
|
|
28
|
-
};
|
|
29
|
-
export default Activityindicator;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ActivityIndicator/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,OAAO,cAAc,CAAC;AAUtB,MAAM,iBAAiB,GAAqB,CAAC,EAK5C,EAAE,EAAE;QALwC,EAC3C,SAAS,EACT,KAAK,EACL,IAAI,GAAG,EAAE,OAEV,EADI,IAAI,cAJoC,8BAK5C,CADQ;IAEP,MAAM,GAAG,GAAG,UAAU,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC;IAE3D,IAAI,UAAU,mCACT,KAAK,GACL,IAAI,CACR,CAAC;IACF,IAAI,IAAI,KAAK,EAAE,EAAE;QACf,UAAU,mCACL,UAAU,KACb,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,GAC1B,CAAC;KACH;IAED,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU;QACrC,oBAAC,IAAI,IAAC,SAAS,EAAC,4BAA4B,GAAQ;QACpD,oBAAC,IAAI,IAAC,SAAS,EAAC,4BAA4B,GAAQ;QACpD,oBAAC,IAAI,IAAC,SAAS,EAAC,4BAA4B,GAAQ,CAC/C,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "@tarojs/components";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import "./index.scss";
|
|
5
|
-
const AmountInput = props => {
|
|
6
|
-
const { value, maxlength = value.length, onFocus, className, focus = false, shortcut = "借全部", step = 100, errTip = "", onUpgrade, minAmount, maxAmount, showUpgrade = false, loanOnekey = () => { }, placeholder = `单笔${minAmount}-${maxAmount}元,${step}的整数倍`, slot, showBottom = true, title = false, } = props;
|
|
7
|
-
function renderInputs() {
|
|
8
|
-
const Inputs = [""];
|
|
9
|
-
if (value === "")
|
|
10
|
-
return (React.createElement(View, { className: "xh-amount-input-top-amount-num-placeholder" }, placeholder));
|
|
11
|
-
for (let i = 0; i < maxlength; i++) {
|
|
12
|
-
const char = value[i];
|
|
13
|
-
Inputs.push(React.createElement(View, { key: i, className: "xh-amount-input-top-amount-num-key" }, char));
|
|
14
|
-
}
|
|
15
|
-
return Inputs;
|
|
16
|
-
}
|
|
17
|
-
function handlerClick(e) {
|
|
18
|
-
e.stopPropagation();
|
|
19
|
-
onFocus && onFocus(e);
|
|
20
|
-
}
|
|
21
|
-
const cls = classNames("xh-amount-input", className);
|
|
22
|
-
const handleUpgrade = (e) => {
|
|
23
|
-
e.stopPropagation();
|
|
24
|
-
onUpgrade === null || onUpgrade === void 0 ? void 0 : onUpgrade();
|
|
25
|
-
};
|
|
26
|
-
return (React.createElement(View, { className: cls },
|
|
27
|
-
title && React.createElement(View, { className: "xh-amount-input-title" }, title),
|
|
28
|
-
React.createElement(View, { className: "xh-amount-input-top" },
|
|
29
|
-
React.createElement(View, { className: "xh-amount-input-top-unit" }, "\u00A5"),
|
|
30
|
-
React.createElement(View, { className: "xh-amount-input-top-amount", onClick: handlerClick },
|
|
31
|
-
React.createElement(View, { className: "xh-amount-input-top-amount-num" },
|
|
32
|
-
React.createElement(View, { className: "xh-amount-input-top-amount-num-key" }, "\u00A0"),
|
|
33
|
-
renderInputs(),
|
|
34
|
-
React.createElement(View, { className: classNames("xh-amount-input-top-amount-num-cursor", {
|
|
35
|
-
focus,
|
|
36
|
-
}) })),
|
|
37
|
-
React.createElement(View, { className: "xh-amount-input-top-amount-shortcut", onClick: loanOnekey }, typeof shortcut === "string" ? (React.createElement(View, { className: "xh-amount-input-top-amount-shortcut-text" }, shortcut)) : (shortcut))),
|
|
38
|
-
errTip && React.createElement(View, { className: "xh-amount-input-top-error" }, errTip)),
|
|
39
|
-
slot && React.createElement(View, { className: "xh-amount-input-slot" }, slot),
|
|
40
|
-
showBottom && (React.createElement(View, { className: "xh-amount-input-bottom" },
|
|
41
|
-
React.createElement(View, { className: "xh-amount-input-bottom-range" },
|
|
42
|
-
"\u5355\u7B14\u53EF\u501F\uFF1A",
|
|
43
|
-
React.createElement(View, { className: "xh-amount-input-bottom-range-number" },
|
|
44
|
-
minAmount,
|
|
45
|
-
"-",
|
|
46
|
-
maxAmount,
|
|
47
|
-
"\u5143")),
|
|
48
|
-
showUpgrade && (React.createElement(View, { className: "xh-amount-input-bottom-tip" },
|
|
49
|
-
"\u989D\u5EA6\u4E0D\u6EE1\u610F\uFF1F",
|
|
50
|
-
React.createElement(View, { className: "xh-amount-input-bottom-tip-update", onClick: handleUpgrade }, "\u7ACB\u5373\u63D0\u989D")))))));
|
|
51
|
-
};
|
|
52
|
-
export default AmountInput;
|
|
53
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AmountInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAe,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAyBtB,MAAM,WAAW,GAA+B,KAAK,CAAC,EAAE;IACtD,MAAM,EACJ,KAAK,EACL,SAAS,GAAG,KAAK,CAAC,MAAM,EACxB,OAAO,EACP,SAAS,EACT,KAAK,GAAG,KAAK,EACb,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,GAAG,EACV,MAAM,GAAG,EAAE,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,GAAG,KAAK,EACnB,UAAU,GAAG,GAAG,EAAE,GAAE,CAAC,EACrB,WAAW,GAAG,KAAK,SAAS,IAAI,SAAS,KAAK,IAAI,MAAM,EACxD,IAAI,EACJ,UAAU,GAAG,IAAI,EACjB,KAAK,GAAG,KAAK,GACd,GAAG,KAAK,CAAC;IAEV,SAAS,YAAY;QACnB,MAAM,MAAM,GAAQ,CAAC,EAAE,CAAC,CAAC;QAEzB,IAAI,KAAK,KAAK,EAAE;YACd,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,EAAC,4CAA4C,IACzD,WAAW,CACP,CACR,CAAC;QACJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YAClC,MAAM,IAAI,G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AQ,CACJ,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACI,CACF;YACN,MAAM,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAC,2BAA2B,IAAE,MAAM,CAAQ,CACjE;QACN,IAAI,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAC,sBAAsB,IAAE,IAAI,CAAQ;QAC5D,UAAU,IAAI,CACb,oBAAC,IAAI,IAAC,SAAS,EAAC,wBAAwB;YACtC,oBAAC,IAAI,IAAC,SAAS,EAAC,8BAA8B;;gBAE5C,oBAAC,IAAI,IAAC,SAAS,EAAC,qCAAqC;oBAClD,SAAS;;oBAAG,SAAS;6BACjB,CACF;YACN,WAAW,IAAI,CACd,oBAAC,IAAI,IAAC,SAAS,EAAC,4BAA4B;;gBAE1C,oBAAC,IAAI,IACH,SAAS,EAAC,mCAAmC,EAC7C,OAAO,EAAE,aAAa,+BAGjB,CACF,CACR,CACI,CACR,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect, useCallback, } from "react";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import { CSSTransition } from "react-transition-group";
|
|
4
|
-
import { View } from "@tarojs/components";
|
|
5
|
-
import { pxTransform } from "@/utils";
|
|
6
|
-
import Badge from "../Badge";
|
|
7
|
-
import "./index.scss";
|
|
8
|
-
import Space from "../Space";
|
|
9
|
-
const XHAmountKeys = [
|
|
10
|
-
{ text: 1, value: 1, type: "number" },
|
|
11
|
-
{ text: 2, value: 2, type: "number" },
|
|
12
|
-
{ text: 3, value: 3, type: "number" },
|
|
13
|
-
{ text: "", value: "", type: "delete" },
|
|
14
|
-
{ text: 4, value: 4, type: "number" },
|
|
15
|
-
{ text: 5, value: 5, type: "number" },
|
|
16
|
-
{ text: 6, value: 6, type: "number" },
|
|
17
|
-
{ text: "", value: "", type: "none" },
|
|
18
|
-
{ text: 7, value: 7, type: "number" },
|
|
19
|
-
{ text: 8, value: 8, type: "number" },
|
|
20
|
-
{ text: 9, value: 9, type: "number" },
|
|
21
|
-
{ text: "", value: "", type: "none" },
|
|
22
|
-
{ text: "00", value: "00", type: "number" },
|
|
23
|
-
{ text: 0, value: 0, type: "number" },
|
|
24
|
-
{ text: "", value: "", type: "close" },
|
|
25
|
-
{ text: "", value: "", type: "none" },
|
|
26
|
-
];
|
|
27
|
-
const XHAmountKeysWithDot = [
|
|
28
|
-
{ text: 1, value: 1, type: "number" },
|
|
29
|
-
{ text: 2, value: 2, type: "number" },
|
|
30
|
-
{ text: 3, value: 3, type: "number" },
|
|
31
|
-
{ text: "", value: "", type: "delete" },
|
|
32
|
-
{ text: 4, value: 4, type: "number" },
|
|
33
|
-
{ text: 5, value: 5, type: "number" },
|
|
34
|
-
{ text: 6, value: 6, type: "number" },
|
|
35
|
-
{ text: "", value: "", type: "none" },
|
|
36
|
-
{ text: 7, value: 7, type: "number" },
|
|
37
|
-
{ text: 8, value: 8, type: "number" },
|
|
38
|
-
{ text: 9, value: 9, type: "number" },
|
|
39
|
-
{ text: "", value: "", type: "none" },
|
|
40
|
-
{ text: "·", value: ".", type: "number" },
|
|
41
|
-
{ text: 0, value: 0, type: "number" },
|
|
42
|
-
{ text: "", value: "", type: "close" },
|
|
43
|
-
{ text: "", value: "", type: "none" },
|
|
44
|
-
];
|
|
45
|
-
const AmountKeyboard = props => {
|
|
46
|
-
const { onBlur, show, maxLength = Number.MAX_SAFE_INTEGER, closeOnClickSpace = true, onClose, onChange, value, className, onConfirm, recommend = [], header, disabled = false, tip, decimal, } = props;
|
|
47
|
-
const [input, setInput] = useState(value);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
if (closeOnClickSpace) {
|
|
50
|
-
document.addEventListener("click", handleClose);
|
|
51
|
-
}
|
|
52
|
-
return () => {
|
|
53
|
-
document.removeEventListener("click", handleClose);
|
|
54
|
-
};
|
|
55
|
-
}, []);
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
setInput(value);
|
|
58
|
-
}, [value]);
|
|
59
|
-
function handleClose(e) {
|
|
60
|
-
onClose && onClose(e);
|
|
61
|
-
onBlur && onBlur(e);
|
|
62
|
-
}
|
|
63
|
-
const handleOnRecommand = (e, amount) => {
|
|
64
|
-
e.stopPropagation();
|
|
65
|
-
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(`${amount}`, true);
|
|
66
|
-
};
|
|
67
|
-
const handleKeyPress = useCallback((e, { type, value }) => {
|
|
68
|
-
if (process.env.TARO_ENV === "h5") {
|
|
69
|
-
e.stopImmediatePropagation();
|
|
70
|
-
}
|
|
71
|
-
if (disabled)
|
|
72
|
-
return;
|
|
73
|
-
if (type === "none")
|
|
74
|
-
return;
|
|
75
|
-
// 第一个字符不能是.
|
|
76
|
-
if (value === "." && input === "")
|
|
77
|
-
return;
|
|
78
|
-
if (type === "close") {
|
|
79
|
-
handleClose(e);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
let newInput = input;
|
|
83
|
-
if (type === "delete") {
|
|
84
|
-
newInput = input.slice(0, input.length - 1);
|
|
85
|
-
}
|
|
86
|
-
else if (newInput.replace(/^0+/g, "").length < maxLength) {
|
|
87
|
-
newInput = input + value;
|
|
88
|
-
}
|
|
89
|
-
// 支持小数点的情况下,如果第一个是0,自动填充.
|
|
90
|
-
if (decimal && value === 0 && input === "")
|
|
91
|
-
newInput = value + ".";
|
|
92
|
-
// 不能包含多个小数点
|
|
93
|
-
if (value === "." && input.includes("."))
|
|
94
|
-
return;
|
|
95
|
-
// 保留两位小数
|
|
96
|
-
if (type === "number" &&
|
|
97
|
-
input.indexOf(".") > -1 &&
|
|
98
|
-
input.length - input.indexOf(".") === 3)
|
|
99
|
-
return;
|
|
100
|
-
// 前后两个值相等就不触发onchange
|
|
101
|
-
if (newInput === input)
|
|
102
|
-
return;
|
|
103
|
-
setInput(newInput);
|
|
104
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newInput);
|
|
105
|
-
}, [input, disabled]);
|
|
106
|
-
const renderKeys = decimal ? XHAmountKeysWithDot : XHAmountKeys;
|
|
107
|
-
const handleConfirm = (e) => {
|
|
108
|
-
e.stopPropagation();
|
|
109
|
-
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(input);
|
|
110
|
-
};
|
|
111
|
-
const keyboardcls = classNames("xh-amount-keyboard", className);
|
|
112
|
-
return (React.createElement(CSSTransition, { classNames: "slide-up", in: show, unmountOnExit: true, timeout: 200 },
|
|
113
|
-
React.createElement(View, { className: keyboardcls },
|
|
114
|
-
React.createElement(View, { className: "xh-amount-keyboard-header" },
|
|
115
|
-
React.createElement(View, { className: "xh-amount-keyboard-header-wrapper" },
|
|
116
|
-
header ||
|
|
117
|
-
(recommend.length > 0 && (React.createElement(View, { className: "xh-amount-keyboard-header-wrapper-text" },
|
|
118
|
-
"\u731C\u60A8\u60F3\u501F",
|
|
119
|
-
" ",
|
|
120
|
-
React.createElement(Space, { style: { marginLeft: pxTransform(24) } }, recommend === null || recommend === void 0 ? void 0 : recommend.map((amount, index) => (React.createElement(View, { key: index, onClick: e => handleOnRecommand(e, amount) },
|
|
121
|
-
React.createElement(Badge, { content: `¥${amount}`, key: index })))))))),
|
|
122
|
-
tip)),
|
|
123
|
-
React.createElement(View, { className: "xh-amount-keyboard-body" },
|
|
124
|
-
renderKeys.map((key, index) => (React.createElement(View, { key: index, className: classNames("xh-amount-keyboard-body-key", {
|
|
125
|
-
none: key.type === "none",
|
|
126
|
-
delete: key.type === "delete",
|
|
127
|
-
close: key.type === "close",
|
|
128
|
-
}), onClick: e => {
|
|
129
|
-
handleKeyPress(e, key);
|
|
130
|
-
} }, key.text))),
|
|
131
|
-
React.createElement(View, { className: "xh-amount-keyboard-body-key confirm-fake", onClick: handleConfirm }, "\u786E\u5B9A")))));
|
|
132
|
-
};
|
|
133
|
-
export default AmountKeyboard;
|
|
134
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{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J,CACR,CAAC;gBACF,oBAAC,IAAI,IACH,SAAS,EAAC,0CAA0C,EACpD,OAAO,EAAE,aAAa,mBAGjB,CACF,CACF,CACO,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from "react";
|
|
13
|
-
import { CSSTransition } from "react-transition-group";
|
|
14
|
-
import "./index.scss";
|
|
15
|
-
const Animated = props => {
|
|
16
|
-
const { children, timeout = 300, in: inProp, name, unmountOnExit = true } = props, rest = __rest(props, ["children", "timeout", "in", "name", "unmountOnExit"]);
|
|
17
|
-
return (React.createElement(CSSTransition, Object.assign({ unmountOnExit: unmountOnExit, classNames: name, in: inProp, timeout: timeout }, rest), children));
|
|
18
|
-
};
|
|
19
|
-
export default Animated;
|
|
20
|
-
//# sourceMappingURL=Animated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animated.js","sourceRoot":"","sources":["../../../src/components/Animated/Animated.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,cAAc,CAAC;AAWtB,MAAM,QAAQ,GAAsB,KAAK,CAAC,EAAE;IAC1C,MAAM,EACJ,QAAQ,EACR,OAAO,GAAG,GAAG,EACb,EAAE,EAAE,MAAM,EACV,IAAI,EACJ,aAAa,GAAG,IAAI,KAElB,KAAK,EADJ,IAAI,UACL,KAAK,EAPH,sDAOL,CAAQ,CAAC;IAEV,OAAO,CACL,oBAAC,aAAa,kBACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,IAAI,EAChB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,IACZ,IAAI,GAEP,QAAQ,CACK,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|