@zamlia/mini-ui 0.0.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/es/components/common/BottomPopup/index.d.ts +78 -0
- package/es/components/common/BottomPopup/index.d.ts.map +1 -0
- package/es/components/common/Card/index.d.ts +33 -0
- package/es/components/common/Card/index.d.ts.map +1 -0
- package/es/components/common/CardItem/index.d.ts +60 -0
- package/es/components/common/CardItem/index.d.ts.map +1 -0
- package/es/components/common/DataSelect/index.d.ts +15 -0
- package/es/components/common/DataSelect/index.d.ts.map +1 -0
- package/es/components/common/Modal/index.d.ts +31 -0
- package/es/components/common/Modal/index.d.ts.map +1 -0
- package/es/components/common/NavBar/index.d.ts +38 -0
- package/es/components/common/NavBar/index.d.ts.map +1 -0
- package/es/components/common/Page/index.d.ts +16 -0
- package/es/components/common/Page/index.d.ts.map +1 -0
- package/es/components/common/PullToPushRefresh/index.d.ts +94 -0
- package/es/components/common/PullToPushRefresh/index.d.ts.map +1 -0
- package/es/components/common/Radio/index.d.ts +26 -0
- package/es/components/common/Radio/index.d.ts.map +1 -0
- package/es/components/common/TabPane/index.d.ts +9 -0
- package/es/components/common/TabPane/index.d.ts.map +1 -0
- package/es/components/common/Tabs/index.d.ts +27 -0
- package/es/components/common/Tabs/index.d.ts.map +1 -0
- package/es/components/common/UploadFile/index.d.ts +50 -0
- package/es/components/common/UploadFile/index.d.ts.map +1 -0
- package/es/components/common/UploadFile/upload.d.ts +11 -0
- package/es/components/common/UploadFile/upload.d.ts.map +1 -0
- package/es/components/common/UploadFile/utils.d.ts +20 -0
- package/es/components/common/UploadFile/utils.d.ts.map +1 -0
- package/es/components/common/VideoView/index.d.ts +14 -0
- package/es/components/common/VideoView/index.d.ts.map +1 -0
- package/es/components/common/index.d.ts +23 -0
- package/es/components/common/index.d.ts.map +1 -0
- package/es/components/industry/CitySelectButton/index.d.ts +17 -0
- package/es/components/industry/CitySelectButton/index.d.ts.map +1 -0
- package/es/components/industry/CitySelectModal/index.d.ts +13 -0
- package/es/components/industry/CitySelectModal/index.d.ts.map +1 -0
- package/es/components/industry/PaymentMethodSelect/index.d.ts +59 -0
- package/es/components/industry/PaymentMethodSelect/index.d.ts.map +1 -0
- package/es/components/industry/index.d.ts +5 -0
- package/es/components/industry/index.d.ts.map +1 -0
- package/es/config/classPrefix.d.ts +36 -0
- package/es/config/classPrefix.d.ts.map +1 -0
- package/es/index.d.ts +4 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +5334 -0
- package/es/index.js.map +1 -0
- package/es/styles/_base.scss +4 -0
- package/es/styles/index.scss +19 -0
- package/es/styles/mixins.scss +15 -0
- package/es/styles/variables.scss +2 -0
- package/es/utils/city.d.ts +4005 -0
- package/es/utils/city.d.ts.map +1 -0
- package/es/utils/index.d.ts +50 -0
- package/es/utils/index.d.ts.map +1 -0
- package/lib/components/common/BottomPopup/index.d.ts +78 -0
- package/lib/components/common/BottomPopup/index.d.ts.map +1 -0
- package/lib/components/common/Card/index.d.ts +33 -0
- package/lib/components/common/Card/index.d.ts.map +1 -0
- package/lib/components/common/CardItem/index.d.ts +60 -0
- package/lib/components/common/CardItem/index.d.ts.map +1 -0
- package/lib/components/common/DataSelect/index.d.ts +15 -0
- package/lib/components/common/DataSelect/index.d.ts.map +1 -0
- package/lib/components/common/Modal/index.d.ts +31 -0
- package/lib/components/common/Modal/index.d.ts.map +1 -0
- package/lib/components/common/NavBar/index.d.ts +38 -0
- package/lib/components/common/NavBar/index.d.ts.map +1 -0
- package/lib/components/common/Page/index.d.ts +16 -0
- package/lib/components/common/Page/index.d.ts.map +1 -0
- package/lib/components/common/PullToPushRefresh/index.d.ts +94 -0
- package/lib/components/common/PullToPushRefresh/index.d.ts.map +1 -0
- package/lib/components/common/Radio/index.d.ts +26 -0
- package/lib/components/common/Radio/index.d.ts.map +1 -0
- package/lib/components/common/TabPane/index.d.ts +9 -0
- package/lib/components/common/TabPane/index.d.ts.map +1 -0
- package/lib/components/common/Tabs/index.d.ts +27 -0
- package/lib/components/common/Tabs/index.d.ts.map +1 -0
- package/lib/components/common/UploadFile/index.d.ts +50 -0
- package/lib/components/common/UploadFile/index.d.ts.map +1 -0
- package/lib/components/common/UploadFile/upload.d.ts +11 -0
- package/lib/components/common/UploadFile/upload.d.ts.map +1 -0
- package/lib/components/common/UploadFile/utils.d.ts +20 -0
- package/lib/components/common/UploadFile/utils.d.ts.map +1 -0
- package/lib/components/common/VideoView/index.d.ts +14 -0
- package/lib/components/common/VideoView/index.d.ts.map +1 -0
- package/lib/components/common/index.d.ts +23 -0
- package/lib/components/common/index.d.ts.map +1 -0
- package/lib/components/industry/CitySelectButton/index.d.ts +17 -0
- package/lib/components/industry/CitySelectButton/index.d.ts.map +1 -0
- package/lib/components/industry/CitySelectModal/index.d.ts +13 -0
- package/lib/components/industry/CitySelectModal/index.d.ts.map +1 -0
- package/lib/components/industry/PaymentMethodSelect/index.d.ts +59 -0
- package/lib/components/industry/PaymentMethodSelect/index.d.ts.map +1 -0
- package/lib/components/industry/index.d.ts +5 -0
- package/lib/components/industry/index.d.ts.map +1 -0
- package/lib/config/classPrefix.d.ts +36 -0
- package/lib/config/classPrefix.d.ts.map +1 -0
- package/lib/index.d.ts +585 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5349 -0
- package/lib/index.js.map +1 -0
- package/lib/styles/_base.scss +4 -0
- package/lib/styles/index.scss +19 -0
- package/lib/styles/mixins.scss +15 -0
- package/lib/styles/variables.scss +2 -0
- package/lib/utils/city.d.ts +4005 -0
- package/lib/utils/city.d.ts.map +1 -0
- package/lib/utils/index.d.ts +50 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/package.json +81 -0
- package/src/components/common/BottomPopup/index.scss +34 -0
- package/src/components/common/BottomPopup/index.tsx +129 -0
- package/src/components/common/Card/index.scss +160 -0
- package/src/components/common/Card/index.tsx +72 -0
- package/src/components/common/CardItem/index.tsx +153 -0
- package/src/components/common/DataSelect/index.tsx +86 -0
- package/src/components/common/Modal/index.scss +49 -0
- package/src/components/common/Modal/index.tsx +105 -0
- package/src/components/common/NavBar/index.scss +26 -0
- package/src/components/common/NavBar/index.tsx +81 -0
- package/src/components/common/Page/index.scss +19 -0
- package/src/components/common/Page/index.tsx +56 -0
- package/src/components/common/PullToPushRefresh/index.scss +38 -0
- package/src/components/common/PullToPushRefresh/index.tsx +338 -0
- package/src/components/common/Radio/index.scss +15 -0
- package/src/components/common/Radio/index.tsx +56 -0
- package/src/components/common/TabPane/index.tsx +26 -0
- package/src/components/common/Tabs/index.scss +60 -0
- package/src/components/common/Tabs/index.tsx +107 -0
- package/src/components/common/UploadFile/index.scss +59 -0
- package/src/components/common/UploadFile/index.tsx +321 -0
- package/src/components/common/UploadFile/upload.ts +63 -0
- package/src/components/common/UploadFile/utils.ts +81 -0
- package/src/components/common/VideoView/index.tsx +50 -0
- package/src/components/common/index.ts +23 -0
- package/src/components/industry/CitySelectButton/index.tsx +76 -0
- package/src/components/industry/CitySelectModal/index.scss +122 -0
- package/src/components/industry/CitySelectModal/index.tsx +121 -0
- package/src/components/industry/PaymentMethodSelect/index.scss +146 -0
- package/src/components/industry/PaymentMethodSelect/index.tsx +316 -0
- package/src/components/industry/index.ts +5 -0
- package/src/config/classPrefix.ts +44 -0
- package/src/index.ts +9 -0
- package/src/styles/_base.scss +4 -0
- package/src/styles/index.scss +19 -0
- package/src/styles/mixins.scss +15 -0
- package/src/styles/variables.scss +2 -0
- package/src/utils/city.ts +4072 -0
- package/src/utils/index.ts +155 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { PopupProps } from '@nutui/nutui-react-taro';
|
|
3
|
+
export type BottomPopupProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string | React.ReactElement;
|
|
8
|
+
/**
|
|
9
|
+
* 弹窗是否开启
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 弹窗高度
|
|
15
|
+
*/
|
|
16
|
+
height?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 是否展示关闭按钮
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
showClose?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 点击遮罩是否关闭
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
maskClose?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 自定义头部导航样式
|
|
29
|
+
*/
|
|
30
|
+
customHeaderStyles?: CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* 底部固定区域
|
|
33
|
+
*/
|
|
34
|
+
bottomFixedCard?: React.ReactElement;
|
|
35
|
+
} & Partial<Omit<PopupProps, 'round' | 'transition' | 'position' | 'title'>>;
|
|
36
|
+
export type BottomPopupRef = {
|
|
37
|
+
/** 打开弹窗 */
|
|
38
|
+
open: () => void;
|
|
39
|
+
/** 关闭弹窗 */
|
|
40
|
+
close: () => void;
|
|
41
|
+
} | undefined;
|
|
42
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
43
|
+
/**
|
|
44
|
+
* 标题
|
|
45
|
+
*/
|
|
46
|
+
title?: string | React.ReactElement;
|
|
47
|
+
/**
|
|
48
|
+
* 弹窗是否开启
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
visible?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* 弹窗高度
|
|
54
|
+
*/
|
|
55
|
+
height?: number;
|
|
56
|
+
/**
|
|
57
|
+
* 是否展示关闭按钮
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
showClose?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 点击遮罩是否关闭
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
maskClose?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 自定义头部导航样式
|
|
68
|
+
*/
|
|
69
|
+
customHeaderStyles?: CSSProperties;
|
|
70
|
+
/**
|
|
71
|
+
* 底部固定区域
|
|
72
|
+
*/
|
|
73
|
+
bottomFixedCard?: React.ReactElement;
|
|
74
|
+
} & Partial<Omit<PopupProps, "round" | "transition" | "position" | "title">> & {
|
|
75
|
+
children?: React.ReactNode | undefined;
|
|
76
|
+
} & React.RefAttributes<BottomPopupRef>>;
|
|
77
|
+
export default _default;
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/BottomPopup/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAA+D,MAAM,OAAO,CAAC;AAC1G,OAAO,EAAS,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG5D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAA;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;MAEE;IACF,kBAAkB,CAAC,EAAE,aAAa,CAAA;IAClC;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;CACrC,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW;IACX,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,WAAW;IACX,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,GAAG,SAAS,CAAC;;IAtCZ;;OAEG;YACK,MAAM,GAAG,KAAK,CAAC,YAAY;IACnC;;;OAGG;cACO,OAAO;IACjB;;OAEG;aACM,MAAM;IACf;;;OAGG;gBACS,OAAO;IACnB;;;OAGG;gBACS,OAAO;IACnB;;MAEE;yBACmB,aAAa;IAClC;;OAEG;sBACe,KAAK,CAAC,YAAY;;;;AA2FtC,wBAAyG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { CardItemProps } from '../CardItem';
|
|
3
|
+
export type CardProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 是否显示Header
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
showHeader?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示Header Border
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
showHeaderBorder?: boolean;
|
|
14
|
+
/** 标题 */
|
|
15
|
+
title?: string | React.ReactElement;
|
|
16
|
+
/** header右边区域 */
|
|
17
|
+
extra?: React.ReactElement;
|
|
18
|
+
/**
|
|
19
|
+
* 底部模块
|
|
20
|
+
* @type {React.ReactElement | React.ReactElement[]}
|
|
21
|
+
* 如果是类型是数组 则是一个按钮集群,
|
|
22
|
+
* 超出部分可以一点点点显示剩下的按钮
|
|
23
|
+
*/
|
|
24
|
+
footer?: React.ReactElement | React.ReactElement[];
|
|
25
|
+
className?: string;
|
|
26
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
interface CardComponent extends React.FC<PropsWithChildren<CardProps>> {
|
|
29
|
+
Item: React.FC<CardItemProps>;
|
|
30
|
+
}
|
|
31
|
+
declare const Card: CardComponent;
|
|
32
|
+
export default Card;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;MAGE;IACF,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAA;IACnC,iBAAiB;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;IAC1B;;;;;MAKE;IACF,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAA;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;CACxC,CAAC;AAEF,UAAU,aAAc,SAAQ,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACpE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;CAC/B;AAED,QAAA,MAAM,IAAI,EAAE,aA+BX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { ITouchEvent } from '@tarojs/components';
|
|
3
|
+
/** 和Card共用样式 */
|
|
4
|
+
export type CardItemProps = {
|
|
5
|
+
/** label */
|
|
6
|
+
label: string | React.ReactElement;
|
|
7
|
+
/** 值 */
|
|
8
|
+
value: string | number | React.ReactElement | null;
|
|
9
|
+
/**
|
|
10
|
+
* label分割方式
|
|
11
|
+
* @default :
|
|
12
|
+
*/
|
|
13
|
+
labelDivider?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是隐藏分割符
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
disabledLabelDivider?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 右边区域
|
|
21
|
+
* x轴排列方向 justify = 'start' 才显示
|
|
22
|
+
*/
|
|
23
|
+
extra?: React.ReactElement | string | number | null;
|
|
24
|
+
/**
|
|
25
|
+
* x轴排列方向
|
|
26
|
+
* @default start
|
|
27
|
+
*/
|
|
28
|
+
justify?: 'start' | 'between';
|
|
29
|
+
/**
|
|
30
|
+
* y轴排列方向
|
|
31
|
+
* @default center
|
|
32
|
+
*/
|
|
33
|
+
align?: 'center' | 'start' | 'end';
|
|
34
|
+
/**
|
|
35
|
+
* 排列方式
|
|
36
|
+
* @default inline
|
|
37
|
+
*/
|
|
38
|
+
layout?: 'inline' | 'vertical';
|
|
39
|
+
/**
|
|
40
|
+
* value DOM是否脱离文档流
|
|
41
|
+
* 仅在layout == 'inline' 支持
|
|
42
|
+
* 不会影响上下item的间距
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
valueAbsolute?: boolean;
|
|
46
|
+
/** 自定义字体样式 */
|
|
47
|
+
labelStyle?: CSSProperties;
|
|
48
|
+
valueStyle?: CSSProperties;
|
|
49
|
+
className?: string;
|
|
50
|
+
/** 点击事件 */
|
|
51
|
+
onClick?: (e: ITouchEvent) => void;
|
|
52
|
+
/**
|
|
53
|
+
* 是否隐藏该组件
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
hide?: boolean;
|
|
57
|
+
};
|
|
58
|
+
declare const CardItem: React.FC<CardItemProps>;
|
|
59
|
+
export default CardItem;
|
|
60
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/CardItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAQ,MAAM,oBAAoB,CAAC;AAEvD,gBAAgB;AAChB,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY;IACZ,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAA;IAClC,QAAQ;IACR,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;IAClD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;KAGC;IACD,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;MAGE;IACF,KAAK,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACnD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B;;;KAGC;IACD,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC9B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc;IACd,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW;IACX,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IAClC;;;MAGE;IACF,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type DataSelectProps = {
|
|
3
|
+
dataSource: any[];
|
|
4
|
+
rangeKey: string;
|
|
5
|
+
remoteValue?: any;
|
|
6
|
+
onChange: (currentItem: any) => void;
|
|
7
|
+
childRender?: (currentItem: any) => React.ReactElement;
|
|
8
|
+
defaultSeletItem?: any;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
isSelectFirstItem?: boolean;
|
|
11
|
+
classNmaes?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DataSelect: React.FC<DataSelectProps>;
|
|
14
|
+
export default DataSelect;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/DataSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,GAAG,EAAE,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,GAAG,CAAA;IACjB,QAAQ,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,KAAK,CAAC,YAAY,CAAA;IACtD,gBAAgB,CAAC,EAAE,GAAG,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmEzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { DialogProps } from '@nutui/nutui-react-taro';
|
|
3
|
+
export type ModalProps = {
|
|
4
|
+
/** 底部 */
|
|
5
|
+
content?: React.ReactElement | string;
|
|
6
|
+
/**
|
|
7
|
+
* 是否显示右上角关闭按钮
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
showCloseIcon?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 是否显示取消按钮
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
showCancel?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 是否显示确认按钮
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
showConfirm?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
*自定义确定按钮文字
|
|
23
|
+
*/
|
|
24
|
+
confirmText?: React.ReactElement | string;
|
|
25
|
+
className?: string;
|
|
26
|
+
onCancel?: () => void;
|
|
27
|
+
onConfirm?: () => void;
|
|
28
|
+
} & Omit<DialogProps, 'content' | 'onCancel' | 'onConfirm' | 'confirmText'>;
|
|
29
|
+
declare const Modal: React.FC<PropsWithChildren<ModalProps>>;
|
|
30
|
+
export default Modal;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAU,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI9D,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS;IACT,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,MAAM,CAAA;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,MAAM,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC,CAAC;AAE5E,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAoElD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type NavBarProps = {
|
|
3
|
+
title?: string | React.ReactElement;
|
|
4
|
+
/**
|
|
5
|
+
* 标题剧中
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
titleCenter?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 是否是头像
|
|
11
|
+
* @default false
|
|
12
|
+
* @description 如果该值是true titleCenter则为true
|
|
13
|
+
*/
|
|
14
|
+
isHeader?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 背景颜色
|
|
17
|
+
* @default transparent
|
|
18
|
+
* @description 只有isHeader才生效
|
|
19
|
+
*/
|
|
20
|
+
backageColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否穿透
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
fixed?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 返回按钮
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
back?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 返回事件
|
|
33
|
+
*/
|
|
34
|
+
onBack?: () => void;
|
|
35
|
+
};
|
|
36
|
+
declare const NavBar: React.FC<NavBarProps>;
|
|
37
|
+
export default NavBar;
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/NavBar/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAA;IACnC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCjC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export type PageProps = {
|
|
3
|
+
error: boolean;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
loadingColor?: string;
|
|
6
|
+
loadingText?: string;
|
|
7
|
+
errorText?: string;
|
|
8
|
+
emptyDataText?: string;
|
|
9
|
+
emptyDataRender?: React.ReactElement;
|
|
10
|
+
dataSource: Array<any> | any;
|
|
11
|
+
onRequest?: () => void;
|
|
12
|
+
renderLoading?: any;
|
|
13
|
+
};
|
|
14
|
+
declare const Page: React.FC<PropsWithChildren<PageProps>>;
|
|
15
|
+
export default Page;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Page/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;IACpC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,GAAG,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAmChD,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
export type PullToPushRefreshProps<T = Record<string, any>> = {
|
|
3
|
+
pageSize?: number;
|
|
4
|
+
/** 没有数据展示内容 */
|
|
5
|
+
emptyRender?: React.ReactElement;
|
|
6
|
+
/** 加载文案
|
|
7
|
+
* @default 加载中...
|
|
8
|
+
*/
|
|
9
|
+
loadingText?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 错误文案
|
|
12
|
+
* @default 加载失败,请点击重试
|
|
13
|
+
*/
|
|
14
|
+
errorText?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 没有数据文案
|
|
17
|
+
* @default emptyText
|
|
18
|
+
* */
|
|
19
|
+
emptyText?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 底部文案
|
|
22
|
+
* @default 没有更多了
|
|
23
|
+
* */
|
|
24
|
+
bottomText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 是否展示底部文案
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
showBottomText?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否展示加载图标
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
showLoding?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 下拉刷新文案
|
|
37
|
+
* @default '松开即可刷新'
|
|
38
|
+
*/
|
|
39
|
+
refreshText?: string;
|
|
40
|
+
/**
|
|
41
|
+
* show页面是否加载数据
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
showPageRequest?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 是否首次进入页面自动掉接口
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
hasFirstPageAutoRequest?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 自定义每条数据的内容
|
|
52
|
+
* @param {T} item 当前条数据
|
|
53
|
+
* @param {number} index
|
|
54
|
+
*/
|
|
55
|
+
renderItem: (item: T, index: number) => React.ReactElement;
|
|
56
|
+
/**
|
|
57
|
+
* 请求方法
|
|
58
|
+
* @param {T} skip 当前页码
|
|
59
|
+
* @param {T} first pageSize
|
|
60
|
+
* @param {Record<string, any>} restParams 可以传其余的饿默认参数
|
|
61
|
+
*/
|
|
62
|
+
request: (skip: number, first: number, restParams?: Record<string, any>) => void;
|
|
63
|
+
};
|
|
64
|
+
export type PullToPushRefreshRef = {
|
|
65
|
+
/**
|
|
66
|
+
* 刷新
|
|
67
|
+
* @param isFirst 是否是第一次调用
|
|
68
|
+
* @param restParams 可以传其余的饿默认参数
|
|
69
|
+
*/
|
|
70
|
+
reload: (isFirst?: boolean, restParams?: Record<string, any>) => void;
|
|
71
|
+
/**
|
|
72
|
+
* 设置是否可以页面show刷新
|
|
73
|
+
* @param {boolean}bol
|
|
74
|
+
*/
|
|
75
|
+
showPageRequest: (bol: boolean) => void;
|
|
76
|
+
} | undefined;
|
|
77
|
+
export type PullToPushRefreshRequestType<T> = {
|
|
78
|
+
data: Array<T>;
|
|
79
|
+
total: number;
|
|
80
|
+
success: boolean;
|
|
81
|
+
};
|
|
82
|
+
export type ListInfoType<T> = {
|
|
83
|
+
loading: boolean;
|
|
84
|
+
error: boolean;
|
|
85
|
+
skip: number;
|
|
86
|
+
list: Array<T>;
|
|
87
|
+
total: number;
|
|
88
|
+
};
|
|
89
|
+
type WrappedPullToPushRefreshProps<T> = {
|
|
90
|
+
actionRef: MutableRefObject<PullToPushRefreshRef>;
|
|
91
|
+
} & PullToPushRefreshProps<T>;
|
|
92
|
+
declare const WrappedPullToPushRefresh: <T extends Record<string, any>>(props: WrappedPullToPushRefreshProps<T>) => React.JSX.Element;
|
|
93
|
+
export default WrappedPullToPushRefresh;
|
|
94
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/PullToPushRefresh/index.tsx"],"names":[],"mappings":"AACA,OACA,KAAK,EAAE,EACL,gBAAgB,EAMjB,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe;IACf,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;IAChC;;KAEC;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;IAGA;IACA,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;SAGK;IACL,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;QAGI;IACJ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;MAGE;IACF,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;MAGE;IACF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;MAGE;IACF,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC;;;;MAIE;IACF,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,YAAY,CAAA;IAC1D;;;;;MAKE;IAEF,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;CACjF,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;IACrE;;;OAGG;IACH,eAAe,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CACxC,GAAG,SAAS,CAAA;AAEb,MAAM,MAAM,4BAA4B,CAAC,CAAC,IAAI;IAC5C,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACf,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AA8ND,KAAK,6BAA6B,CAAC,CAAC,IAAI;IACtC,SAAS,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;CACnD,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAE9B,QAAA,MAAM,wBAAwB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,6BAA6B,CAAC,CAAC,CAAC,sBAIvG,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type RadioProps = {
|
|
3
|
+
/**
|
|
4
|
+
* 是否选中
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
visible: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 大小 大小等同于圆圈宽度
|
|
10
|
+
* @default 10
|
|
11
|
+
*/
|
|
12
|
+
size?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 边框颜色
|
|
15
|
+
* @default '#AAAAAA'
|
|
16
|
+
*/
|
|
17
|
+
borderColor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 边框宽度
|
|
20
|
+
* @default 1
|
|
21
|
+
*/
|
|
22
|
+
borderWidth?: number;
|
|
23
|
+
};
|
|
24
|
+
declare const Radio: React.FC<RadioProps>;
|
|
25
|
+
export default Radio;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Radio/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAEF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwB/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
/** 和Tabs共用样式 */
|
|
3
|
+
export type TabPaneProps = {
|
|
4
|
+
/** 标题 */
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
declare const TabPane: React.FC<PropsWithChildren<TabPaneProps>>;
|
|
8
|
+
export default TabPane;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/TabPane/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAYtD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import { TabPaneProps } from '../TabPane';
|
|
3
|
+
export type TabsProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 标签栏样式
|
|
6
|
+
* @default {}
|
|
7
|
+
*/
|
|
8
|
+
tabStyle?: CSSProperties;
|
|
9
|
+
/**
|
|
10
|
+
* 当前激活 tab 面板的值
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
value: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
/** 是否需要滚动 */
|
|
16
|
+
scroll?: boolean;
|
|
17
|
+
tabsRender?: (dom: {
|
|
18
|
+
tabsDom: React.ReactNode;
|
|
19
|
+
}) => React.ReactNode;
|
|
20
|
+
onChange: (value: number) => void;
|
|
21
|
+
};
|
|
22
|
+
interface TabsComponent extends React.FC<PropsWithChildren<TabsProps>> {
|
|
23
|
+
TabPane: React.FC<PropsWithChildren<TabPaneProps>>;
|
|
24
|
+
}
|
|
25
|
+
declare const Tabs: TabsComponent;
|
|
26
|
+
export default Tabs;
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Tabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAEzE,OAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB;;;MAGE;IACF,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAA;IAEnE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAC;AAEF,UAAU,aAAc,SAAQ,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;CACpD;AAED,QAAA,MAAM,IAAI,EAAE,aAyEX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UploadFileOption } from './upload';
|
|
3
|
+
export type UploadFile = {
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
export type UploadFileProps = {
|
|
7
|
+
host: string;
|
|
8
|
+
/**
|
|
9
|
+
* 可上传文件类型
|
|
10
|
+
*/
|
|
11
|
+
fileTypes?: string[];
|
|
12
|
+
value?: any;
|
|
13
|
+
/**
|
|
14
|
+
* 最大文件大小,单位MB(暂时没有)
|
|
15
|
+
*/
|
|
16
|
+
maxSize?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 最多上传多少个文件
|
|
19
|
+
* 最多是8张图片
|
|
20
|
+
*/
|
|
21
|
+
maxCount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 是否展示删除按钮
|
|
24
|
+
*/
|
|
25
|
+
showDelete?: boolean;
|
|
26
|
+
chooseType?: 'img' | 'video' | 'media';
|
|
27
|
+
dir?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 扩展参数
|
|
30
|
+
*/
|
|
31
|
+
extraData?: Record<string, any>;
|
|
32
|
+
onChange?: (v?: any) => void;
|
|
33
|
+
};
|
|
34
|
+
interface UploadFileConponent extends React.FC<UploadFileProps> {
|
|
35
|
+
upload?: (options: UploadFileOption) => Promise<string>;
|
|
36
|
+
/** 文件类型 */
|
|
37
|
+
UPLOAD_TYPES: string[];
|
|
38
|
+
/** 图片类型 */
|
|
39
|
+
UPLOAD_IMAGE_TYPES: string[];
|
|
40
|
+
/** 视频类型 */
|
|
41
|
+
UPLOAD_VIDEO_TYPES: string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param props
|
|
46
|
+
* @returns React.ReactElement
|
|
47
|
+
*/
|
|
48
|
+
export declare const UploadFile: UploadFileConponent;
|
|
49
|
+
export default UploadFile;
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/UploadFile/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,OAAO,EAAc,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAA;IACtC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC9B,CAAA;AAED,UAAU,mBAAoB,SAAQ,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC;IAC7D,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACvD,WAAW;IACX,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW;IACX,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,WAAW;IACX,kBAAkB,EAAE,MAAM,EAAE,CAAA;CAC7B;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,mBAuPxB,CAAA;AAOD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type UploadFileOption = {
|
|
2
|
+
file: string;
|
|
3
|
+
dir: string;
|
|
4
|
+
/**
|
|
5
|
+
* 扩展参数
|
|
6
|
+
*/
|
|
7
|
+
extraData?: Record<string, any>;
|
|
8
|
+
host: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const uploadFile: (options: UploadFileOption) => Promise<string>;
|
|
11
|
+
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/components/common/UploadFile/upload.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX;;MAEE;IACF,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAWD,eAAO,MAAM,UAAU,GAAI,SAAS,gBAAgB,KAAG,OAAO,CAAC,MAAM,CAwCpE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import UploadFile from ".";
|
|
2
|
+
export declare const uploadTypes: string[];
|
|
3
|
+
export declare const uploadImageTypes: string[];
|
|
4
|
+
export declare const uploadVideoTypes: string[];
|
|
5
|
+
/**
|
|
6
|
+
* 将业务文件转换为上传文件
|
|
7
|
+
* @param v
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const convertToUploadValue: (v: string[] | string) => any;
|
|
11
|
+
/**
|
|
12
|
+
* 将上传文件转换为业务文件
|
|
13
|
+
* @param {number} maxCount
|
|
14
|
+
* @param v
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare const convertToDomainFile: (maxCount: number, v?: UploadFile[]) => any;
|
|
18
|
+
export declare const beforeUpload: (file: string, verifyTypes: string[]) => boolean;
|
|
19
|
+
export declare const getKeyName: (file: string) => string;
|
|
20
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/common/UploadFile/utils.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,GAAG,CAAC;AAE3B,eAAO,MAAM,WAAW,UAAsF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,UAA8C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,UAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,GAU3D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,EAAE,IAAI,UAAU,EAAE,KAAG,GAkBxE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,aAAa,MAAM,EAAE,KAAG,OAYlE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,WAgBpC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type VideoViewProps = {
|
|
3
|
+
url: string;
|
|
4
|
+
hasToH5Show?: boolean;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
onH5Open?: (url: string) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 视频显示
|
|
11
|
+
*/
|
|
12
|
+
declare const VideoView: React.FC<VideoViewProps>;
|
|
13
|
+
export default VideoView;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/VideoView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { default as BottomPopup } from './BottomPopup';
|
|
2
|
+
export { default as Card } from './Card';
|
|
3
|
+
export { default as Modal } from './Modal';
|
|
4
|
+
export { default as NavBar } from './NavBar';
|
|
5
|
+
export { default as Page } from './Page';
|
|
6
|
+
export { default as PullToPushRefresh } from './PullToPushRefresh';
|
|
7
|
+
export { default as Tabs } from './Tabs';
|
|
8
|
+
export { default as VideoView } from './VideoView';
|
|
9
|
+
export { default as UploadFile } from './UploadFile';
|
|
10
|
+
export { default as Radio } from './Radio';
|
|
11
|
+
export { default as DataSelect } from './DataSelect';
|
|
12
|
+
export type { BottomPopupProps } from './BottomPopup';
|
|
13
|
+
export type { CardProps } from './Card';
|
|
14
|
+
export type { ModalProps } from './Modal';
|
|
15
|
+
export type { NavBarProps } from './NavBar';
|
|
16
|
+
export type { PageProps } from './Page';
|
|
17
|
+
export type { PullToPushRefreshProps } from './PullToPushRefresh';
|
|
18
|
+
export type { TabsProps } from './Tabs';
|
|
19
|
+
export type { VideoViewProps } from './VideoView';
|
|
20
|
+
export type { UploadFileProps } from './UploadFile';
|
|
21
|
+
export type { RadioProps } from './Radio';
|
|
22
|
+
export type { DataSelectProps } from './DataSelect';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC3C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,YAAa,EAAE,SAAS,EAAC,MAAM,QAAQ,CAAA;AACvC,YAAa,EAAE,UAAU,EAAC,MAAM,SAAS,CAAA;AACzC,YAAa,EAAE,WAAW,EAAC,MAAM,UAAU,CAAA;AAC3C,YAAa,EAAE,SAAS,EAAC,MAAM,QAAQ,CAAA;AACvC,YAAa,EAAE,sBAAsB,EAAC,MAAM,qBAAqB,CAAA;AACjE,YAAa,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CityData } from '../CitySelectModal';
|
|
3
|
+
export type CitySelectButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
onChange?: (value: CityData) => void;
|
|
6
|
+
/**
|
|
7
|
+
* @param {CityData} value
|
|
8
|
+
* @returns {React.ReactElement}
|
|
9
|
+
*/
|
|
10
|
+
buttonRender: (value: CityData) => React.ReactElement;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 顶部选择城市按钮
|
|
14
|
+
*/
|
|
15
|
+
declare const CitySelectButton: React.FC<CitySelectButtonProps>;
|
|
16
|
+
export default CitySelectButton;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/industry/CitySelectButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAwB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC;;;MAGE;IACF,YAAY,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,KAAK,CAAC,YAAY,CAAA;CACtD,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuDrD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|