@pisell/materials 3.3.38 → 3.3.39
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/package.json +3 -3
- package/es/components/pisellCardList/index.d.ts +0 -73
- package/es/components/pisellGoodPassCard/index.d.ts +0 -49
- package/es/components/pisellWalletPassCard/index.d.ts +0 -85
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/hooks/useOpenNote.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -5
- package/es/components/translation/index.d.ts +0 -14
- package/es/index.d.ts +0 -141
- package/lib/components/pisellCardList/index.d.ts +0 -73
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -49
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -85
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/hooks/useOpenNote.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -5
- package/lib/components/translation/index.d.ts +0 -14
- package/lib/index.d.ts +0 -141
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.39",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
74
|
"@pisell/date-picker": "3.0.4",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/
|
|
75
|
+
"@pisell/icon": "0.0.11",
|
|
76
|
+
"@pisell/utils": "3.0.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
|
|
5
|
-
import './index.less';
|
|
6
|
-
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
9
|
-
endMessage?: React.ReactNode;
|
|
10
|
-
/** 加载下次数据时的加载站位 */
|
|
11
|
-
loader?: React.ReactNode;
|
|
12
|
-
/** 是否有更多数据 */
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
/** 加载更多数据回调 */
|
|
15
|
-
loadMoreData?: () => Promise<void>;
|
|
16
|
-
/** 当前list数据 */
|
|
17
|
-
data: PisellWalletPassCardProps[];
|
|
18
|
-
/** list空数据时展示内容 */
|
|
19
|
-
empty?: React.ReactNode;
|
|
20
|
-
/** 是否展示空状态 */
|
|
21
|
-
showEmpty?: boolean;
|
|
22
|
-
/** 是否展示卡片名称 */
|
|
23
|
-
showName?: boolean;
|
|
24
|
-
/** 是否展示店铺名称 */
|
|
25
|
-
showStoreName?: boolean;
|
|
26
|
-
/** 是否展示核销金额 */
|
|
27
|
-
showRedeem?: boolean;
|
|
28
|
-
/** 是否展示余额 */
|
|
29
|
-
showBalance?: boolean;
|
|
30
|
-
/** 是否展示编码 */
|
|
31
|
-
showCode?: boolean;
|
|
32
|
-
/** 是否展示到期时间 */
|
|
33
|
-
showValidDate?: boolean;
|
|
34
|
-
/** 是否展示详情按钮 */
|
|
35
|
-
showDetail?: boolean;
|
|
36
|
-
/** 是否展示二维码 */
|
|
37
|
-
showQrCode?: boolean;
|
|
38
|
-
/** 是否展示封面图 */
|
|
39
|
-
showCover?: boolean;
|
|
40
|
-
/** 是否余额货币单位 */
|
|
41
|
-
showBalanceSymbol?: boolean;
|
|
42
|
-
/** 卡片大小 */
|
|
43
|
-
type?: 'default' | 'mini';
|
|
44
|
-
/** 展示操作按钮 */
|
|
45
|
-
showActions?: boolean;
|
|
46
|
-
/** 操作按钮配置 */
|
|
47
|
-
actions?: {
|
|
48
|
-
/** 按钮展示方式 */
|
|
49
|
-
layout: 'expanded' | 'collapsed';
|
|
50
|
-
/** detail 按钮配置 */
|
|
51
|
-
detail?: {
|
|
52
|
-
visible: boolean;
|
|
53
|
-
iconColor: string;
|
|
54
|
-
};
|
|
55
|
-
/** edit按钮配置 */
|
|
56
|
-
edit?: {
|
|
57
|
-
visible: boolean;
|
|
58
|
-
iconColor: string;
|
|
59
|
-
dialogTitle: string;
|
|
60
|
-
enableDialog: boolean;
|
|
61
|
-
fields: {
|
|
62
|
-
name: string;
|
|
63
|
-
label: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
68
|
-
beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
|
|
69
|
-
/** 编辑弹窗点击提交 */
|
|
70
|
-
onConfirmEdit?: (value: any, index: number) => void;
|
|
71
|
-
}
|
|
72
|
-
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
73
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ApplicableProductDetails {
|
|
4
|
-
amount: string;
|
|
5
|
-
type: string;
|
|
6
|
-
resource_id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
original_amount: string;
|
|
9
|
-
}
|
|
10
|
-
interface Discount {
|
|
11
|
-
id: number;
|
|
12
|
-
product_name: string;
|
|
13
|
-
encoded: string;
|
|
14
|
-
code: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
expire_time?: string;
|
|
17
|
-
product_id: number;
|
|
18
|
-
relation_type: string;
|
|
19
|
-
par_value: string;
|
|
20
|
-
used_par_value: string;
|
|
21
|
-
limit_status: string;
|
|
22
|
-
limited_relation_product_data: any;
|
|
23
|
-
balance: string;
|
|
24
|
-
format_title: any;
|
|
25
|
-
product: any;
|
|
26
|
-
savedAmount: number;
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
isSelected?: boolean;
|
|
29
|
-
isAvailable?: boolean;
|
|
30
|
-
isUsed?: boolean;
|
|
31
|
-
applicableProductIds?: number[];
|
|
32
|
-
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
-
appliedProductDetails: any[];
|
|
34
|
-
}
|
|
35
|
-
export interface PisellGoodPassCardProps {
|
|
36
|
-
/**数据源 */
|
|
37
|
-
dataSource: Array<Discount>;
|
|
38
|
-
/**事件 */
|
|
39
|
-
onChange?: (current: {
|
|
40
|
-
id: string | number;
|
|
41
|
-
isSelected: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**样式 */
|
|
44
|
-
style: React.CSSProperties;
|
|
45
|
-
/**快捷展示排序 */
|
|
46
|
-
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
}
|
|
48
|
-
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
49
|
-
export default index;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellWalletPassCardProps {
|
|
4
|
-
id: number;
|
|
5
|
-
/** 卡片样式 */
|
|
6
|
-
type: 'default' | 'mini';
|
|
7
|
-
/** 商品名称 */
|
|
8
|
-
name: string;
|
|
9
|
-
/** 二维码 */
|
|
10
|
-
qrCode: string;
|
|
11
|
-
/** 共享店铺名称 */
|
|
12
|
-
storeName: string;
|
|
13
|
-
/** 余额 */
|
|
14
|
-
balance?: number;
|
|
15
|
-
/** 识别码编号 */
|
|
16
|
-
code: string;
|
|
17
|
-
/** 有效期 */
|
|
18
|
-
validDate: string;
|
|
19
|
-
/** 使用金额 */
|
|
20
|
-
redeem?: number;
|
|
21
|
-
/** 是否禁用 */
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/** 禁用原因 */
|
|
24
|
-
disabledReason?: string;
|
|
25
|
-
/** 是否展示禁用原因 */
|
|
26
|
-
showDisabledReason?: boolean;
|
|
27
|
-
/** 封面图 */
|
|
28
|
-
cover?: string;
|
|
29
|
-
/** 余额标题文案 */
|
|
30
|
-
balanceTitle?: string;
|
|
31
|
-
/** 使用金额标题文案 */
|
|
32
|
-
redeemTitle?: string;
|
|
33
|
-
/** 是否选中 */
|
|
34
|
-
active?: boolean;
|
|
35
|
-
/** 是否展示商品名称 */
|
|
36
|
-
showName?: boolean;
|
|
37
|
-
/** 是否展示共享店铺名称 */
|
|
38
|
-
showStoreName?: boolean;
|
|
39
|
-
/** 是否展示使用金额 */
|
|
40
|
-
showRedeem?: boolean;
|
|
41
|
-
/** 是否展示余额 */
|
|
42
|
-
showBalance?: boolean;
|
|
43
|
-
/** 是否展示识别码编号 */
|
|
44
|
-
showCode?: boolean;
|
|
45
|
-
/** 是否展示有效期 */
|
|
46
|
-
showValidDate?: boolean;
|
|
47
|
-
/** 是否展示右上角详情按钮 */
|
|
48
|
-
showDetail?: boolean;
|
|
49
|
-
/** 是否展示qrCode */
|
|
50
|
-
showQrCode?: boolean;
|
|
51
|
-
/** 是否展示封面 */
|
|
52
|
-
showCover?: boolean;
|
|
53
|
-
/** 是否展示余额货币符号 */
|
|
54
|
-
showBalanceSymbol?: boolean;
|
|
55
|
-
/** 展示操作按钮 */
|
|
56
|
-
showActions?: boolean;
|
|
57
|
-
/** 操作按钮配置 */
|
|
58
|
-
actions?: {
|
|
59
|
-
/** 按钮展示方式 */
|
|
60
|
-
layout: 'expanded' | 'collapsed';
|
|
61
|
-
/** detail 按钮配置 */
|
|
62
|
-
detail?: {
|
|
63
|
-
visible: boolean;
|
|
64
|
-
iconColor: string;
|
|
65
|
-
};
|
|
66
|
-
/** edit按钮配置 */
|
|
67
|
-
edit?: {
|
|
68
|
-
visible: boolean;
|
|
69
|
-
iconColor: string;
|
|
70
|
-
dialogTitle: string;
|
|
71
|
-
enableDialog: boolean;
|
|
72
|
-
fields: {
|
|
73
|
-
name: string;
|
|
74
|
-
label: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
79
|
-
beforeEdit?: (value: any) => Promise<any> | boolean | void;
|
|
80
|
-
/** 编辑弹窗点击提交 */
|
|
81
|
-
onConfirmEdit?: (value: any) => void;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
}
|
|
84
|
-
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
85
|
-
export default PisellWalletPassCard;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare type Value = {
|
|
4
|
-
en: string;
|
|
5
|
-
'zh-CN': string;
|
|
6
|
-
'zh-HK': string;
|
|
7
|
-
};
|
|
8
|
-
interface TranslationProps {
|
|
9
|
-
value: Value;
|
|
10
|
-
onChange: (value: Value) => void;
|
|
11
|
-
maxLength?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const Translation: React.FC<TranslationProps>;
|
|
14
|
-
export default Translation;
|
package/es/index.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version, } from 'antd';
|
|
2
|
-
export { default as AutoComplete } from './components/auto-complete';
|
|
3
|
-
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
4
|
-
export { default as Badge } from './components/badge';
|
|
5
|
-
export { default as BatchEditor } from './components/batch-editor';
|
|
6
|
-
export { default as Button } from './components/button';
|
|
7
|
-
export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
|
|
8
|
-
export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
|
|
9
|
-
export { default as Calendar } from './components/calendar';
|
|
10
|
-
export { default as CardMetricItem } from './components/cardMetricItem';
|
|
11
|
-
export { default as CardPro } from './components/cardPro';
|
|
12
|
-
export { default as Cascader } from './components/cascader';
|
|
13
|
-
export { default as Checkbox } from './components/checkbox';
|
|
14
|
-
export { default as ClassicLayout } from './components/classicLayout';
|
|
15
|
-
export { default as Component } from './components/component';
|
|
16
|
-
export { default as ConfigProvider } from './components/config-provider';
|
|
17
|
-
export { default as CropPhoto } from './components/cropPhoto';
|
|
18
|
-
export { default as DataSourceForm } from './components/dataSourceComponents/dataSourceForm';
|
|
19
|
-
export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
|
|
20
|
-
export { default as JsonWrapper } from './components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider';
|
|
21
|
-
export { default as SubmitButton } from './components/dataSourceComponents/dataSourceForm/submitButton';
|
|
22
|
-
export { default as DataSourceMenu } from './components/dataSourceComponents/dataSourceMenu';
|
|
23
|
-
export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
|
|
24
|
-
export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
|
|
25
|
-
export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
|
|
26
|
-
export { default as DataSourceTable } from './components/dataSourceComponents/dataSourceTable';
|
|
27
|
-
export { default as DataSourceWrapper } from './components/dataSourceComponents/dataSourceWrapper';
|
|
28
|
-
export { default as FormItemCheckbox } from './components/dataSourceComponents/fields/Checkbox';
|
|
29
|
-
export { default as FormItemColorPicker } from './components/dataSourceComponents/fields/ColorPicker';
|
|
30
|
-
export { default as FormItemDatePicker } from './components/dataSourceComponents/fields/DatePicker';
|
|
31
|
-
export { default as FormItemInput } from './components/dataSourceComponents/fields/Input';
|
|
32
|
-
export { default as FormItemInputNumber } from './components/dataSourceComponents/fields/InputNumber';
|
|
33
|
-
export { default as FormItemRadio } from './components/dataSourceComponents/fields/Radio';
|
|
34
|
-
export { default as FormItemSelect } from './components/dataSourceComponents/fields/Select';
|
|
35
|
-
export { default as FormItemTimePicker } from './components/dataSourceComponents/fields/TimePicker';
|
|
36
|
-
export { default as FormItemTranslation } from './components/dataSourceComponents/fields/Translation';
|
|
37
|
-
export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
|
|
38
|
-
export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
|
|
39
|
-
export { default as DatePicker } from './components/date-picker';
|
|
40
|
-
export { default as Div } from './components/div';
|
|
41
|
-
export { default as DragSortTree } from './components/drag-sort-tree';
|
|
42
|
-
export { default as Drawer } from './components/drawer';
|
|
43
|
-
export { default as Dropdown } from './components/dropdown';
|
|
44
|
-
export { default as Filter } from './components/filter';
|
|
45
|
-
export { default as Form } from './components/form';
|
|
46
|
-
export { default as Icon } from './components/icon';
|
|
47
|
-
export { default as Iconfont } from './components/iconfont';
|
|
48
|
-
export { default as Input } from './components/input';
|
|
49
|
-
export { default as InputNumberRange } from './components/input-number-range';
|
|
50
|
-
export { default as List } from './components/list';
|
|
51
|
-
export { default as loginAndRegister } from './components/login-and-register';
|
|
52
|
-
export { default as LowCodePage } from './components/lowCodePage';
|
|
53
|
-
export { default as Modal } from './components/modal';
|
|
54
|
-
export { default as OrganizationTenantSwitcher } from './components/organizationTenantSwitcher';
|
|
55
|
-
export { default as Page } from './components/page';
|
|
56
|
-
export { default as PageHeader } from './components/page-header';
|
|
57
|
-
export { default as PisellConfigProvider } from './components/pisell-config-provider';
|
|
58
|
-
export { default as PisellContext, globalConfig, } from './components/pisell-config-provider/context';
|
|
59
|
-
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
60
|
-
export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
|
|
61
|
-
export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
|
|
62
|
-
export { default as PisellAlert } from './components/pisellAlert';
|
|
63
|
-
export { default as PisellAnchor } from './components/pisellAnchor';
|
|
64
|
-
export { default as PisellAvatar } from './components/pisellAvatar';
|
|
65
|
-
export { default as PisellCard } from './components/pisellCard';
|
|
66
|
-
export { default as PisellCardList } from './components/pisellCardList';
|
|
67
|
-
export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup';
|
|
68
|
-
export { default as PisellContainer } from './components/pisellContainer';
|
|
69
|
-
export { default as PisellCountdown } from './components/pisellCountdown';
|
|
70
|
-
export { default as PisellDatePicker } from './components/pisellDatePicker';
|
|
71
|
-
export { default as PisellDraggable } from './components/pisellDraggable';
|
|
72
|
-
export { default as PisellEmpty } from './components/pisellEmpty';
|
|
73
|
-
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
74
|
-
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
75
|
-
export { default as PisellInput } from './components/pisellInput';
|
|
76
|
-
export { getBankCardTypeImg } from './components/pisellInput/components/BankCard/utils';
|
|
77
|
-
export { default as PisellQrcode } from './components/pisellQrcode';
|
|
78
|
-
export { default as PisellLayout } from './components/pisellLayout';
|
|
79
|
-
export { default as PisellContent } from './components/pisellLayout/content';
|
|
80
|
-
export { default as PisellFooter } from './components/pisellLayout/footer';
|
|
81
|
-
export { default as PisellHeader } from './components/pisellLayout/header';
|
|
82
|
-
export { default as PisellSider } from './components/pisellLayout/sider';
|
|
83
|
-
export { default as PisellLoading } from './components/pisellLoading';
|
|
84
|
-
export { default as PisellMenu } from './components/pisellMenu';
|
|
85
|
-
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
86
|
-
export { default as PisellModal } from './components/pisellModal';
|
|
87
|
-
export { default as PisellQRScanner } from './components/pisellQRScanner';
|
|
88
|
-
export type { PisellQRScannerProps } from './components/pisellQRScanner';
|
|
89
|
-
export { default as PisellRow } from './components/pisellRow';
|
|
90
|
-
export { default as PisellScan } from './components/pisellScan';
|
|
91
|
-
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
92
|
-
export { default as PisellTags } from './components/pisellTags';
|
|
93
|
-
export { default as PisellText } from './components/pisellText';
|
|
94
|
-
export { default as PisellToast } from './components/pisellToast';
|
|
95
|
-
export { default as PisellTooltip } from './components/pisellTooltip';
|
|
96
|
-
export { default as PisellUpload } from './components/pisellUpload';
|
|
97
|
-
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
98
|
-
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
99
|
-
export { default as ProfileMenu } from './components/profileMenu';
|
|
100
|
-
export { default as QRCode } from './components/qrcode';
|
|
101
|
-
export { default as Radio } from './components/radio';
|
|
102
|
-
export { default as RecordView } from './components/record-view';
|
|
103
|
-
export { default as Segmented } from './components/segmented';
|
|
104
|
-
export { default as Select } from './components/select';
|
|
105
|
-
export { default as SelectTime } from './components/select-time';
|
|
106
|
-
export { default as Skeleton } from './components/skeleton';
|
|
107
|
-
export { default as Slider } from './components/slider';
|
|
108
|
-
export { default as Sort } from './components/sort';
|
|
109
|
-
export { default as SortableList } from './components/sortableList';
|
|
110
|
-
export { default as Table } from './components/table';
|
|
111
|
-
export { default as Tabs } from './components/tabs';
|
|
112
|
-
export { default as TimePicker } from './components/time-picker';
|
|
113
|
-
export { default as Translation } from './components/translation';
|
|
114
|
-
export { default as TreeSelect } from './components/tree-select';
|
|
115
|
-
export { default as Typography } from './components/typography';
|
|
116
|
-
export { default as Upload } from './components/upload';
|
|
117
|
-
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
118
|
-
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
119
|
-
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
120
|
-
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
121
|
-
export { default as WalletCard } from './components/walletCard';
|
|
122
|
-
export { default as PublishVersionModal } from './components/versionModal';
|
|
123
|
-
export { default as IconSelect } from './components/iconSelect';
|
|
124
|
-
export { default as CustomSelect } from './components/customSelect';
|
|
125
|
-
export { default as AppVersionControl } from './components/appVersionControl';
|
|
126
|
-
export { default as Image } from './components/image';
|
|
127
|
-
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
128
|
-
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
129
|
-
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
130
|
-
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
|
131
|
-
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
|
132
|
-
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
133
|
-
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
134
|
-
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
135
|
-
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
136
|
-
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
137
|
-
export { default as PisellList01 } from './components/pisellList01';
|
|
138
|
-
export { default as SectionFooters } from './components/section-footers';
|
|
139
|
-
export { default as ProductCard } from './components/productCard';
|
|
140
|
-
export { default as Collapse } from './components/collapse';
|
|
141
|
-
export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
|
|
5
|
-
import './index.less';
|
|
6
|
-
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
9
|
-
endMessage?: React.ReactNode;
|
|
10
|
-
/** 加载下次数据时的加载站位 */
|
|
11
|
-
loader?: React.ReactNode;
|
|
12
|
-
/** 是否有更多数据 */
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
/** 加载更多数据回调 */
|
|
15
|
-
loadMoreData?: () => Promise<void>;
|
|
16
|
-
/** 当前list数据 */
|
|
17
|
-
data: PisellWalletPassCardProps[];
|
|
18
|
-
/** list空数据时展示内容 */
|
|
19
|
-
empty?: React.ReactNode;
|
|
20
|
-
/** 是否展示空状态 */
|
|
21
|
-
showEmpty?: boolean;
|
|
22
|
-
/** 是否展示卡片名称 */
|
|
23
|
-
showName?: boolean;
|
|
24
|
-
/** 是否展示店铺名称 */
|
|
25
|
-
showStoreName?: boolean;
|
|
26
|
-
/** 是否展示核销金额 */
|
|
27
|
-
showRedeem?: boolean;
|
|
28
|
-
/** 是否展示余额 */
|
|
29
|
-
showBalance?: boolean;
|
|
30
|
-
/** 是否展示编码 */
|
|
31
|
-
showCode?: boolean;
|
|
32
|
-
/** 是否展示到期时间 */
|
|
33
|
-
showValidDate?: boolean;
|
|
34
|
-
/** 是否展示详情按钮 */
|
|
35
|
-
showDetail?: boolean;
|
|
36
|
-
/** 是否展示二维码 */
|
|
37
|
-
showQrCode?: boolean;
|
|
38
|
-
/** 是否展示封面图 */
|
|
39
|
-
showCover?: boolean;
|
|
40
|
-
/** 是否余额货币单位 */
|
|
41
|
-
showBalanceSymbol?: boolean;
|
|
42
|
-
/** 卡片大小 */
|
|
43
|
-
type?: 'default' | 'mini';
|
|
44
|
-
/** 展示操作按钮 */
|
|
45
|
-
showActions?: boolean;
|
|
46
|
-
/** 操作按钮配置 */
|
|
47
|
-
actions?: {
|
|
48
|
-
/** 按钮展示方式 */
|
|
49
|
-
layout: 'expanded' | 'collapsed';
|
|
50
|
-
/** detail 按钮配置 */
|
|
51
|
-
detail?: {
|
|
52
|
-
visible: boolean;
|
|
53
|
-
iconColor: string;
|
|
54
|
-
};
|
|
55
|
-
/** edit按钮配置 */
|
|
56
|
-
edit?: {
|
|
57
|
-
visible: boolean;
|
|
58
|
-
iconColor: string;
|
|
59
|
-
dialogTitle: string;
|
|
60
|
-
enableDialog: boolean;
|
|
61
|
-
fields: {
|
|
62
|
-
name: string;
|
|
63
|
-
label: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
68
|
-
beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
|
|
69
|
-
/** 编辑弹窗点击提交 */
|
|
70
|
-
onConfirmEdit?: (value: any, index: number) => void;
|
|
71
|
-
}
|
|
72
|
-
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
73
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ApplicableProductDetails {
|
|
4
|
-
amount: string;
|
|
5
|
-
type: string;
|
|
6
|
-
resource_id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
original_amount: string;
|
|
9
|
-
}
|
|
10
|
-
interface Discount {
|
|
11
|
-
id: number;
|
|
12
|
-
product_name: string;
|
|
13
|
-
encoded: string;
|
|
14
|
-
code: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
expire_time?: string;
|
|
17
|
-
product_id: number;
|
|
18
|
-
relation_type: string;
|
|
19
|
-
par_value: string;
|
|
20
|
-
used_par_value: string;
|
|
21
|
-
limit_status: string;
|
|
22
|
-
limited_relation_product_data: any;
|
|
23
|
-
balance: string;
|
|
24
|
-
format_title: any;
|
|
25
|
-
product: any;
|
|
26
|
-
savedAmount: number;
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
isSelected?: boolean;
|
|
29
|
-
isAvailable?: boolean;
|
|
30
|
-
isUsed?: boolean;
|
|
31
|
-
applicableProductIds?: number[];
|
|
32
|
-
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
-
appliedProductDetails: any[];
|
|
34
|
-
}
|
|
35
|
-
export interface PisellGoodPassCardProps {
|
|
36
|
-
/**数据源 */
|
|
37
|
-
dataSource: Array<Discount>;
|
|
38
|
-
/**事件 */
|
|
39
|
-
onChange?: (current: {
|
|
40
|
-
id: string | number;
|
|
41
|
-
isSelected: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**样式 */
|
|
44
|
-
style: React.CSSProperties;
|
|
45
|
-
/**快捷展示排序 */
|
|
46
|
-
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
}
|
|
48
|
-
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
49
|
-
export default index;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellWalletPassCardProps {
|
|
4
|
-
id: number;
|
|
5
|
-
/** 卡片样式 */
|
|
6
|
-
type: 'default' | 'mini';
|
|
7
|
-
/** 商品名称 */
|
|
8
|
-
name: string;
|
|
9
|
-
/** 二维码 */
|
|
10
|
-
qrCode: string;
|
|
11
|
-
/** 共享店铺名称 */
|
|
12
|
-
storeName: string;
|
|
13
|
-
/** 余额 */
|
|
14
|
-
balance?: number;
|
|
15
|
-
/** 识别码编号 */
|
|
16
|
-
code: string;
|
|
17
|
-
/** 有效期 */
|
|
18
|
-
validDate: string;
|
|
19
|
-
/** 使用金额 */
|
|
20
|
-
redeem?: number;
|
|
21
|
-
/** 是否禁用 */
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/** 禁用原因 */
|
|
24
|
-
disabledReason?: string;
|
|
25
|
-
/** 是否展示禁用原因 */
|
|
26
|
-
showDisabledReason?: boolean;
|
|
27
|
-
/** 封面图 */
|
|
28
|
-
cover?: string;
|
|
29
|
-
/** 余额标题文案 */
|
|
30
|
-
balanceTitle?: string;
|
|
31
|
-
/** 使用金额标题文案 */
|
|
32
|
-
redeemTitle?: string;
|
|
33
|
-
/** 是否选中 */
|
|
34
|
-
active?: boolean;
|
|
35
|
-
/** 是否展示商品名称 */
|
|
36
|
-
showName?: boolean;
|
|
37
|
-
/** 是否展示共享店铺名称 */
|
|
38
|
-
showStoreName?: boolean;
|
|
39
|
-
/** 是否展示使用金额 */
|
|
40
|
-
showRedeem?: boolean;
|
|
41
|
-
/** 是否展示余额 */
|
|
42
|
-
showBalance?: boolean;
|
|
43
|
-
/** 是否展示识别码编号 */
|
|
44
|
-
showCode?: boolean;
|
|
45
|
-
/** 是否展示有效期 */
|
|
46
|
-
showValidDate?: boolean;
|
|
47
|
-
/** 是否展示右上角详情按钮 */
|
|
48
|
-
showDetail?: boolean;
|
|
49
|
-
/** 是否展示qrCode */
|
|
50
|
-
showQrCode?: boolean;
|
|
51
|
-
/** 是否展示封面 */
|
|
52
|
-
showCover?: boolean;
|
|
53
|
-
/** 是否展示余额货币符号 */
|
|
54
|
-
showBalanceSymbol?: boolean;
|
|
55
|
-
/** 展示操作按钮 */
|
|
56
|
-
showActions?: boolean;
|
|
57
|
-
/** 操作按钮配置 */
|
|
58
|
-
actions?: {
|
|
59
|
-
/** 按钮展示方式 */
|
|
60
|
-
layout: 'expanded' | 'collapsed';
|
|
61
|
-
/** detail 按钮配置 */
|
|
62
|
-
detail?: {
|
|
63
|
-
visible: boolean;
|
|
64
|
-
iconColor: string;
|
|
65
|
-
};
|
|
66
|
-
/** edit按钮配置 */
|
|
67
|
-
edit?: {
|
|
68
|
-
visible: boolean;
|
|
69
|
-
iconColor: string;
|
|
70
|
-
dialogTitle: string;
|
|
71
|
-
enableDialog: boolean;
|
|
72
|
-
fields: {
|
|
73
|
-
name: string;
|
|
74
|
-
label: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
79
|
-
beforeEdit?: (value: any) => Promise<any> | boolean | void;
|
|
80
|
-
/** 编辑弹窗点击提交 */
|
|
81
|
-
onConfirmEdit?: (value: any) => void;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
}
|
|
84
|
-
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
85
|
-
export default PisellWalletPassCard;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare type Value = {
|
|
4
|
-
en: string;
|
|
5
|
-
'zh-CN': string;
|
|
6
|
-
'zh-HK': string;
|
|
7
|
-
};
|
|
8
|
-
interface TranslationProps {
|
|
9
|
-
value: Value;
|
|
10
|
-
onChange: (value: Value) => void;
|
|
11
|
-
maxLength?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const Translation: React.FC<TranslationProps>;
|
|
14
|
-
export default Translation;
|