taro-react-uilib 1.4.21 → 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/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/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 +4 -4
- 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 -55
- 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,38 +1,37 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export default DialogCom;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type DialogProps = {
|
|
4
|
+
header?: string | ReactNode;
|
|
5
|
+
content: string | ReactNode;
|
|
6
|
+
footer?: ReactNode;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
confirmText?: string;
|
|
9
|
+
showCancel?: boolean;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
onConfirm?: () => void;
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
tranparent?: boolean;
|
|
15
|
+
portrait?: boolean;
|
|
16
|
+
fancy?: boolean;
|
|
17
|
+
} & XHComponentCommonProps;
|
|
18
|
+
export declare type IDialogRef = {
|
|
19
|
+
close: () => void;
|
|
20
|
+
open: () => void;
|
|
21
|
+
};
|
|
22
|
+
declare const DialogCom: React.ForwardRefExoticComponent<{
|
|
23
|
+
header?: string | ReactNode;
|
|
24
|
+
content: string | ReactNode;
|
|
25
|
+
footer?: ReactNode;
|
|
26
|
+
cancelText?: string | undefined;
|
|
27
|
+
confirmText?: string | undefined;
|
|
28
|
+
showCancel?: boolean | undefined;
|
|
29
|
+
visible: boolean;
|
|
30
|
+
onConfirm?: (() => void) | undefined;
|
|
31
|
+
onCancel?: (() => void) | undefined;
|
|
32
|
+
onClose?: (() => void) | undefined;
|
|
33
|
+
tranparent?: boolean | undefined;
|
|
34
|
+
portrait?: boolean | undefined;
|
|
35
|
+
fancy?: boolean | undefined;
|
|
36
|
+
} & XHComponentCommonProps & React.RefAttributes<IDialogRef>>;
|
|
37
|
+
export default DialogCom;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { EChartsProps, EchartsHandle } from "./types";
|
|
3
|
-
export type { EChartsProps, EChartOption, EChartsInstance, EChartsLoadingOption, EchartsHandle, } from "./types";
|
|
4
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<EChartsProps, "
|
|
5
|
-
export default _default;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EChartsProps, EchartsHandle } from "./types";
|
|
3
|
+
export type { EChartsProps, EChartOption, EChartsInstance, EChartsLoadingOption, EchartsHandle, } from "./types";
|
|
4
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<EChartsProps, "echarts" | "isPage" | "canvasId" | "type" | "disableScroll" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onLongTap" | "onError" | "nativeProps" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "option" | "theme" | "notMerge" | "lazyUpdate" | "showLoading" | "loadingOption" | "opts" | "onChartReady" | "onEvents"> & React.RefAttributes<EchartsHandle>>>;
|
|
5
|
+
export default _default;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { CanvasProps } from "@tarojs/components/types/Canvas";
|
|
2
|
-
import { EChartOption, EChartsLoadingOption, ECharts } from "echarts";
|
|
3
|
-
import { CSSProperties, MutableRefObject } from "react";
|
|
4
|
-
export type { EChartOption, ECharts as EChartsInstance, EChartsLoadingOption, } from "echarts";
|
|
5
|
-
export declare type Opts = {
|
|
6
|
-
devicePixelRatio?: number | undefined;
|
|
7
|
-
renderer?: string | undefined;
|
|
8
|
-
width?: number | string | undefined;
|
|
9
|
-
height?: number | string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export declare type EChartsProps = CanvasProps & {
|
|
12
|
-
echarts: any;
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
option: EChartOption;
|
|
16
|
-
theme?: string | Record<string, any>;
|
|
17
|
-
notMerge?: boolean;
|
|
18
|
-
lazyUpdate?: boolean;
|
|
19
|
-
showLoading?: boolean;
|
|
20
|
-
loadingOption?: EChartsLoadingOption;
|
|
21
|
-
opts?: Opts;
|
|
22
|
-
onChartReady?: (instance: ECharts) => void;
|
|
23
|
-
onEvents?: Record<string, (...args: any[]) => void>;
|
|
24
|
-
isPage?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare type InitEchart = {
|
|
27
|
-
devicePixelRatio: number | undefined;
|
|
28
|
-
width: number | string | undefined;
|
|
29
|
-
height: number | string | undefined;
|
|
30
|
-
};
|
|
31
|
-
export declare type EchartsHandle = {
|
|
32
|
-
canvasRef: Partial<MutableRefObject<HTMLDivElement | HTMLCanvasElement | null>>;
|
|
33
|
-
chartRef: Partial<MutableRefObject<ECharts>>;
|
|
34
|
-
};
|
|
1
|
+
import { CanvasProps } from "@tarojs/components/types/Canvas";
|
|
2
|
+
import { EChartOption, EChartsLoadingOption, ECharts } from "echarts";
|
|
3
|
+
import { CSSProperties, MutableRefObject } from "react";
|
|
4
|
+
export type { EChartOption, ECharts as EChartsInstance, EChartsLoadingOption, } from "echarts";
|
|
5
|
+
export declare type Opts = {
|
|
6
|
+
devicePixelRatio?: number | undefined;
|
|
7
|
+
renderer?: string | undefined;
|
|
8
|
+
width?: number | string | undefined;
|
|
9
|
+
height?: number | string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare type EChartsProps = CanvasProps & {
|
|
12
|
+
echarts: any;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
option: EChartOption;
|
|
16
|
+
theme?: string | Record<string, any>;
|
|
17
|
+
notMerge?: boolean;
|
|
18
|
+
lazyUpdate?: boolean;
|
|
19
|
+
showLoading?: boolean;
|
|
20
|
+
loadingOption?: EChartsLoadingOption;
|
|
21
|
+
opts?: Opts;
|
|
22
|
+
onChartReady?: (instance: ECharts) => void;
|
|
23
|
+
onEvents?: Record<string, (...args: any[]) => void>;
|
|
24
|
+
isPage?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare type InitEchart = {
|
|
27
|
+
devicePixelRatio: number | undefined;
|
|
28
|
+
width: number | string | undefined;
|
|
29
|
+
height: number | string | undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare type EchartsHandle = {
|
|
32
|
+
canvasRef: Partial<MutableRefObject<HTMLDivElement | HTMLCanvasElement | null>>;
|
|
33
|
+
chartRef: Partial<MutableRefObject<ECharts>>;
|
|
34
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { CanvasContext } from "@tarojs/taro";
|
|
2
|
-
export default class WxCanvas {
|
|
3
|
-
private ctx;
|
|
4
|
-
private chart;
|
|
5
|
-
private canvasNode;
|
|
6
|
-
private event;
|
|
7
|
-
constructor(ctx: CanvasContext, isNew: boolean, canvasNode?: any);
|
|
8
|
-
getContext(contextType: any): CanvasContext | undefined;
|
|
9
|
-
setChart(chart: any): void;
|
|
10
|
-
attachEvent(): void;
|
|
11
|
-
addEventListener(): void;
|
|
12
|
-
removeEventListener(): void;
|
|
13
|
-
detachEvent(): void;
|
|
14
|
-
_initCanvas(zrender: any, ctx: any): void;
|
|
15
|
-
_initStyle(ctx: any): void;
|
|
16
|
-
_initEvent(): void;
|
|
17
|
-
set width(w: any);
|
|
18
|
-
set height(h: any);
|
|
19
|
-
get width(): any;
|
|
20
|
-
get height(): any;
|
|
21
|
-
}
|
|
1
|
+
import { CanvasContext } from "@tarojs/taro";
|
|
2
|
+
export default class WxCanvas {
|
|
3
|
+
private ctx;
|
|
4
|
+
private chart;
|
|
5
|
+
private canvasNode;
|
|
6
|
+
private event;
|
|
7
|
+
constructor(ctx: CanvasContext, isNew: boolean, canvasNode?: any);
|
|
8
|
+
getContext(contextType: any): CanvasContext | undefined;
|
|
9
|
+
setChart(chart: any): void;
|
|
10
|
+
attachEvent(): void;
|
|
11
|
+
addEventListener(): void;
|
|
12
|
+
removeEventListener(): void;
|
|
13
|
+
detachEvent(): void;
|
|
14
|
+
_initCanvas(zrender: any, ctx: any): void;
|
|
15
|
+
_initStyle(ctx: any): void;
|
|
16
|
+
_initEvent(): void;
|
|
17
|
+
set width(w: any);
|
|
18
|
+
set height(h: any);
|
|
19
|
+
get width(): any;
|
|
20
|
+
get height(): any;
|
|
21
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare function wrapTouch(event: any): any;
|
|
2
|
-
export declare function touchStart({ chart, event }: {
|
|
3
|
-
chart: any;
|
|
4
|
-
event: any;
|
|
5
|
-
}): void;
|
|
6
|
-
export declare function touchMove({ chart, event }: {
|
|
7
|
-
chart: any;
|
|
8
|
-
event: any;
|
|
9
|
-
}): void;
|
|
10
|
-
export declare function touchEnd({ chart, event }: {
|
|
11
|
-
chart: any;
|
|
12
|
-
event: any;
|
|
13
|
-
}): void;
|
|
1
|
+
export declare function wrapTouch(event: any): any;
|
|
2
|
+
export declare function touchStart({ chart, event }: {
|
|
3
|
+
chart: any;
|
|
4
|
+
event: any;
|
|
5
|
+
}): void;
|
|
6
|
+
export declare function touchMove({ chart, event }: {
|
|
7
|
+
chart: any;
|
|
8
|
+
event: any;
|
|
9
|
+
}): void;
|
|
10
|
+
export declare function touchEnd({ chart, event }: {
|
|
11
|
+
chart: any;
|
|
12
|
+
event: any;
|
|
13
|
+
}): void;
|
|
@@ -1,56 +1,55 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { InputProps, CommonEventFunction } from "@tarojs/components";
|
|
3
|
-
|
|
4
|
-
export declare type
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
* @
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export default FormInput;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { InputProps, CommonEventFunction } from "@tarojs/components";
|
|
3
|
+
export declare type HTMLFormType = "tel" | "text" | "number" | "password" | "idcard" | "digit" | "safe-password" | "nickname";
|
|
4
|
+
export declare type FormInputProps = {
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onBlur?: (value: string) => void;
|
|
7
|
+
/** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
|
|
8
|
+
* @supported weapp, h5, rn
|
|
9
|
+
*/
|
|
10
|
+
onInput?: CommonEventFunction<InputProps.inputEventDetail>;
|
|
11
|
+
/** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
|
|
12
|
+
* @supported weapp, h5, rn
|
|
13
|
+
*/
|
|
14
|
+
onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>;
|
|
15
|
+
/** 输入框失去焦点时触发
|
|
16
|
+
*
|
|
17
|
+
* event.detail = {value: value}
|
|
18
|
+
* @supported weapp, h5, rn
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
21
|
+
maxlength?: number;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
type?: HTMLFormType;
|
|
24
|
+
pattern?: string;
|
|
25
|
+
RightComponent?: ReactNode;
|
|
26
|
+
label?: string;
|
|
27
|
+
labelHtml?: string;
|
|
28
|
+
LeftComponent?: ReactNode;
|
|
29
|
+
LeftIcon?: ReactNode;
|
|
30
|
+
name?: string;
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
withArrow?: boolean;
|
|
33
|
+
direction?: "row" | "column";
|
|
34
|
+
border?: boolean;
|
|
35
|
+
mainExtra?: ReactNode;
|
|
36
|
+
padding?: boolean;
|
|
37
|
+
focus?: boolean;
|
|
38
|
+
/** 设置键盘右下角按钮的文字
|
|
39
|
+
* @default done
|
|
40
|
+
* @supported weapp, rn
|
|
41
|
+
*/
|
|
42
|
+
confirmType?: "send" | "search" | "next" | "go" | "done";
|
|
43
|
+
/** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
|
|
44
|
+
* @supported h5
|
|
45
|
+
*/
|
|
46
|
+
nativeProps?: Record<string, unknown>;
|
|
47
|
+
className?: string;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
align?: "left" | "right";
|
|
50
|
+
};
|
|
51
|
+
export declare type FocusHandler = {
|
|
52
|
+
focus: () => void;
|
|
53
|
+
};
|
|
54
|
+
declare const FormInput: React.ForwardRefExoticComponent<FormInputProps & React.RefAttributes<FocusHandler>>;
|
|
55
|
+
export default FormInput;
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export default BankCardNumberInput;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type IDNumberInputProps = {
|
|
4
|
+
showScan?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
value: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
direction?: "column" | "row";
|
|
12
|
+
onScan?: () => void;
|
|
13
|
+
onError?: (msg: string) => void;
|
|
14
|
+
maxlength?: number;
|
|
15
|
+
slot?: ReactNode;
|
|
16
|
+
border?: boolean;
|
|
17
|
+
onBlur?: () => void;
|
|
18
|
+
} & XHComponentCommonProps;
|
|
19
|
+
export declare type IDNumberInputRef = {
|
|
20
|
+
isValid: boolean;
|
|
21
|
+
focus: () => void;
|
|
22
|
+
};
|
|
23
|
+
declare const BankCardNumberInput: React.ForwardRefExoticComponent<{
|
|
24
|
+
showScan?: boolean | undefined;
|
|
25
|
+
label?: string | undefined;
|
|
26
|
+
onChange?: ((value: string) => void) | undefined;
|
|
27
|
+
value: string;
|
|
28
|
+
placeholder?: string | undefined;
|
|
29
|
+
readOnly?: boolean | undefined;
|
|
30
|
+
disabled?: boolean | undefined;
|
|
31
|
+
direction?: "column" | "row" | undefined;
|
|
32
|
+
onScan?: (() => void) | undefined;
|
|
33
|
+
onError?: ((msg: string) => void) | undefined;
|
|
34
|
+
maxlength?: number | undefined;
|
|
35
|
+
slot?: ReactNode;
|
|
36
|
+
border?: boolean | undefined;
|
|
37
|
+
onBlur?: (() => void) | undefined;
|
|
38
|
+
} & XHComponentCommonProps & React.RefAttributes<IDNumberInputRef>>;
|
|
39
|
+
export default BankCardNumberInput;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StandardLonghandProperties } from "csstype";
|
|
3
|
-
import { XHComponentCommonProps } from "../../types";
|
|
4
|
-
|
|
5
|
-
export declare type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export default Icon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StandardLonghandProperties } from "csstype";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
export declare type XHIcon = "prompt" | "score" | "info" | "failure" | "success" | "loading" | "back" | "notice" | "scan" | "light" | "faceScan" | "delete" | "radioFull" | "checkboxFull" | "checkedSquare" | "checked2" | "arrowTop" | "notice2" | "position" | "contacts" | "billFull" | "bill2" | "bill3" | "bill4" | "edit" | "editFull" | "camera" | "close" | "gift" | "message" | "user" | "wenhao" | "kefu" | "play" | "arrowLeft" | "arrowRight" | "keyboardClose" | "add" | "tongxunlu" | "zhuyi" | "duigou" | "edit2" | "alipay" | "wechat" | "friendPay" | "pen" | "location" | "search" | "qa" | "thumbsUp" | "thumbsDown" | "thumbsUpFull" | "thumbsDownFull" | "waiting" | "scan2" | "safety" | "report" | (string & {});
|
|
5
|
+
export declare type XHIconProps = {
|
|
6
|
+
icon: XHIcon;
|
|
7
|
+
size?: number;
|
|
8
|
+
color?: StandardLonghandProperties["color"];
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
} & XHComponentCommonProps;
|
|
12
|
+
declare const Icon: React.FC<XHIconProps>;
|
|
13
|
+
export default Icon;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default XHImage;
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type ImageProps = {
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
src: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
} & XHComponentCommonProps;
|
|
10
|
+
declare const XHImage: FC<ImageProps>;
|
|
11
|
+
export default XHImage;
|
|
@@ -1,27 +1,26 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
export default LicensePlateKeyboard;
|
|
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
|
+
showClose?: boolean;
|
|
7
|
+
closeOnClickSpace?: boolean;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
onBlur?: (e: MouseEvent | Event) => void;
|
|
10
|
+
onClose?: (e: MouseEvent | Event) => void;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
onDelete: () => void;
|
|
13
|
+
value: string;
|
|
14
|
+
closeText?: string;
|
|
15
|
+
activeIndex: number;
|
|
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
|
+
activeIndex: number;
|
|
23
|
+
}
|
|
24
|
+
export declare type TYPE_MODE = "province" | "letter" | "mixed";
|
|
25
|
+
declare const LicensePlateKeyboard: FC<NumberKeyboardProps>;
|
|
26
|
+
export default LicensePlateKeyboard;
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export default LicensePlateInput;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type LicensePlateProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (index: string) => void;
|
|
6
|
+
/**
|
|
7
|
+
* 是否默认展示键盘
|
|
8
|
+
*/
|
|
9
|
+
showKeyboard?: boolean;
|
|
10
|
+
closeText?: string;
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
onFinish?: () => void;
|
|
13
|
+
padding?: boolean;
|
|
14
|
+
border?: boolean;
|
|
15
|
+
autoScroll?: boolean;
|
|
16
|
+
} & XHComponentCommonProps;
|
|
17
|
+
export declare type LicensePlateInputRef = {
|
|
18
|
+
/**
|
|
19
|
+
* 是否有效,组件会用大写字母(O) 来代替空位,如果要自己校验,那么就得判断有没有“O”来判断有没有空格
|
|
20
|
+
*/
|
|
21
|
+
isValid: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare const LicensePlateInput: React.ForwardRefExoticComponent<{
|
|
24
|
+
value: string;
|
|
25
|
+
onChange: (index: string) => void;
|
|
26
|
+
/**
|
|
27
|
+
* 是否默认展示键盘
|
|
28
|
+
*/
|
|
29
|
+
showKeyboard?: boolean | undefined;
|
|
30
|
+
closeText?: string | undefined;
|
|
31
|
+
label?: ReactNode;
|
|
32
|
+
onFinish?: (() => void) | undefined;
|
|
33
|
+
padding?: boolean | undefined;
|
|
34
|
+
border?: boolean | undefined;
|
|
35
|
+
autoScroll?: boolean | undefined;
|
|
36
|
+
} & XHComponentCommonProps & React.RefAttributes<LicensePlateInputRef>>;
|
|
37
|
+
export default LicensePlateInput;
|