@pisell/materials 1.0.699 → 1.0.700
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/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/walletCard/Guest/index.d.ts +0 -1
- package/es/components/walletCard/Guest/index.js +9 -8
- package/lib/components/walletCard/Guest/index.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.js +18 -14
- package/lowcode/wallet-card/meta.ts +5 -18
- package/package.json +1 -1
- package/es/components/TimeResourceSelector/index.d.ts +0 -21
- package/es/components/collapse/index.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/es/components/drag-sort-tree/index.d.ts +0 -3
- package/es/components/picker-view/index.d.ts +0 -2
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellAvatar/index.d.ts +0 -19
- package/es/components/pisellCard/index.d.ts +0 -19
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/es/components/pisellDropdown/index.d.ts +0 -20
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/es/components/pisellImageCarousels/index.d.ts +0 -18
- package/es/components/pisellInformationEntry/index.d.ts +0 -33
- package/es/components/pisellList01/index.d.ts +0 -17
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellSectionHeaders/index.d.ts +0 -21
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/components/Divider/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -3
- package/es/components/productCard/components/Packages/index.d.ts +0 -3
- package/es/components/productCard/components/Packages/utils.d.ts +0 -20
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -8
- package/es/components/productCard/components/Time/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/productCard/locales.d.ts +0 -45
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -78
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/section-footers/index.d.ts +0 -9
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -173
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/es/components/table/types.d.ts +0 -253
- package/es/index.d.ts +0 -141
- package/es/locales/en-US.d.ts +0 -241
- package/es/locales/index.d.ts +0 -1
- package/es/locales/zh-CN.d.ts +0 -236
- package/es/locales/zh-TW.d.ts +0 -236
- package/lib/components/TimeResourceSelector/index.d.ts +0 -21
- package/lib/components/collapse/index.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/lib/components/drag-sort-tree/index.d.ts +0 -3
- package/lib/components/picker-view/index.d.ts +0 -2
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellAvatar/index.d.ts +0 -19
- package/lib/components/pisellCard/index.d.ts +0 -19
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/lib/components/pisellDropdown/index.d.ts +0 -20
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/lib/components/pisellImageCarousels/index.d.ts +0 -18
- package/lib/components/pisellInformationEntry/index.d.ts +0 -33
- package/lib/components/pisellList01/index.d.ts +0 -17
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellSectionHeaders/index.d.ts +0 -21
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/components/Divider/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -3
- package/lib/components/productCard/components/Packages/index.d.ts +0 -3
- package/lib/components/productCard/components/Packages/utils.d.ts +0 -20
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -8
- package/lib/components/productCard/components/Time/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/productCard/locales.d.ts +0 -45
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -78
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/section-footers/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -173
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/lib/components/table/types.d.ts +0 -253
- package/lib/index.d.ts +0 -141
- package/lib/locales/en-US.d.ts +0 -241
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/zh-CN.d.ts +0 -236
- package/lib/locales/zh-TW.d.ts +0 -236
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
onDeleteFinish?: (record: Record<string, any>) => void;
|
|
72
|
-
extraParams?: {
|
|
73
|
-
list?: Record<string, any>;
|
|
74
|
-
get?: Record<string, any>;
|
|
75
|
-
update?: Record<string, any>;
|
|
76
|
-
create?: Record<string, any>;
|
|
77
|
-
destroy?: Record<string, any>;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from './context';
|
|
3
|
-
interface PisellConfigProviderType {
|
|
4
|
-
platform?: PisellContextType['platform'];
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** 货币符号 */
|
|
7
|
-
symbol?: string;
|
|
8
|
-
/** 当前语言环境 */
|
|
9
|
-
locale?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
|
|
12
|
-
export default PisellConfigProvider;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AvatarProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
5
|
-
export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
|
|
6
|
-
shape?: 'circle' | 'square';
|
|
7
|
-
size?: AvatarSize;
|
|
8
|
-
src?: string;
|
|
9
|
-
alt?: string;
|
|
10
|
-
icon?: React.ReactNode;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
useTextAvatar?: boolean;
|
|
15
|
-
borderRadius?: number;
|
|
16
|
-
onError?: () => boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const PisellAvatar: React.FC<PisellAvatarProps>;
|
|
19
|
-
export default PisellAvatar;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CardProps } from 'antd';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellCardProps extends CardProps {
|
|
4
|
-
bordered?: boolean;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
padding?: number;
|
|
8
|
-
borderRadius?: number;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
isClickable?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Pisell 卡片容器组件
|
|
15
|
-
* @param props
|
|
16
|
-
* @constructor
|
|
17
|
-
*/
|
|
18
|
-
declare const PisellCard: (props: PisellCardProps) => JSX.Element;
|
|
19
|
-
export default PisellCard;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellCustomCheckboxGroupProps {
|
|
4
|
-
dataSource?: any[];
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
allowAdd?: boolean;
|
|
7
|
-
isMultiple?: boolean;
|
|
8
|
-
id?: string | string[];
|
|
9
|
-
onClick?: (value: any) => void;
|
|
10
|
-
onAdd?: () => void;
|
|
11
|
-
renderAddItem?: (item: any) => React.ReactNode;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
|
|
16
|
-
export default PisellCustomCheckboxGroup;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface MenuItemType {
|
|
4
|
-
key: string;
|
|
5
|
-
label: string;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
shortcut?: string;
|
|
8
|
-
divider?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface PisellDropdownProps {
|
|
11
|
-
trigger?: React.ReactNode;
|
|
12
|
-
items?: MenuItemType[];
|
|
13
|
-
showShortcut?: boolean;
|
|
14
|
-
triggerType?: ('click' | 'hover')[];
|
|
15
|
-
className?: string;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
onSelect?: (key: string) => void;
|
|
18
|
-
}
|
|
19
|
-
declare const PisellDropdown: React.FC<PisellDropdownProps>;
|
|
20
|
-
export default PisellDropdown;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmptyProps } from 'antd';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface PisellEmptyProps extends EmptyProps {
|
|
6
|
-
/** 平台 */
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 额外内容描述 */
|
|
9
|
-
extraDescription?: React.ReactNode;
|
|
10
|
-
/** 额外内容描述 */
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
/** 自定义底部额外操作区域 */
|
|
13
|
-
footer?: React.ReactNode;
|
|
14
|
-
/** 最大宽度 */
|
|
15
|
-
maxWidth?: number;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
|
|
19
|
-
export default PisellEmpty;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellHeaderProgressBarProps {
|
|
4
|
-
title?: React.ReactNode;
|
|
5
|
-
stepText?: React.ReactNode;
|
|
6
|
-
showClose?: boolean;
|
|
7
|
-
/** 是否启用投影 */
|
|
8
|
-
enableShadow?: boolean;
|
|
9
|
-
/** 是否启用描边 */
|
|
10
|
-
enableBorder?: boolean;
|
|
11
|
-
/** 描边粗细 */
|
|
12
|
-
borderWidth?: number;
|
|
13
|
-
/** 描边颜色 */
|
|
14
|
-
borderColor?: string;
|
|
15
|
-
/** 头部背景颜色 */
|
|
16
|
-
backgroundColor?: string;
|
|
17
|
-
/** 自定义类名 */
|
|
18
|
-
className?: string;
|
|
19
|
-
/** 自定义样式 */
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
/** 是否显示返回键 */
|
|
22
|
-
showBack?: boolean;
|
|
23
|
-
/** 返回按钮点击事件 */
|
|
24
|
-
onBack?: () => void;
|
|
25
|
-
/** 关闭按钮点击事件 */
|
|
26
|
-
onClose?: () => void;
|
|
27
|
-
}
|
|
28
|
-
declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
|
|
29
|
-
export default PisellHeaderProgressBar;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'swiper/swiper-bundle.css';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface PisellImageCarouselsProps {
|
|
5
|
-
dataSource?: string[];
|
|
6
|
-
width?: number | string;
|
|
7
|
-
height?: number;
|
|
8
|
-
showArrows?: boolean;
|
|
9
|
-
showDots?: boolean;
|
|
10
|
-
autoplay?: boolean;
|
|
11
|
-
interval?: number;
|
|
12
|
-
borderRadius?: number;
|
|
13
|
-
loop?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
}
|
|
17
|
-
declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
|
|
18
|
-
export default PisellImageCarousels;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export declare type EntryModeType = {
|
|
5
|
-
/**
|
|
6
|
-
* 录入模式名称
|
|
7
|
-
* scanCode: 扫码录入
|
|
8
|
-
* input: 手动录入
|
|
9
|
-
* scanner: 扫码枪录入
|
|
10
|
-
* nfc: NFC录入
|
|
11
|
-
*/
|
|
12
|
-
type: 'scanCode' | 'input' | 'scanner' | 'nfc';
|
|
13
|
-
/**
|
|
14
|
-
* 录入模式文案 没有使用默认文案
|
|
15
|
-
*/
|
|
16
|
-
name?: string;
|
|
17
|
-
};
|
|
18
|
-
export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
19
|
-
/** 平台 */
|
|
20
|
-
platform?: PisellContextType['platform'];
|
|
21
|
-
/** 录入模式 */
|
|
22
|
-
entryModes: EntryModeType[];
|
|
23
|
-
/** 标题文案 */
|
|
24
|
-
title?: React.ReactNode;
|
|
25
|
-
/** 搜索框描述文案 */
|
|
26
|
-
searchDescribe?: React.ReactNode;
|
|
27
|
-
/** 录入信息值改变 */
|
|
28
|
-
onChange?: (val: string) => void;
|
|
29
|
-
/** 录入类型切换时候触发的 */
|
|
30
|
-
onChangeType?: (val: null | EntryModeType['type']) => void;
|
|
31
|
-
}
|
|
32
|
-
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
|
|
33
|
-
export default PisellInformationEntry;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellList01Props {
|
|
4
|
-
dataSource?: any[];
|
|
5
|
-
showSearch: boolean;
|
|
6
|
-
showCategory: boolean;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
onChange?: (anchor: string) => void;
|
|
12
|
-
onSearch?: (value: any) => void;
|
|
13
|
-
isShowEmpty?: boolean;
|
|
14
|
-
description?: any;
|
|
15
|
-
}
|
|
16
|
-
declare const PisellList01: React.FC<PisellList01Props>;
|
|
17
|
-
export default PisellList01;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellSectionHeadersProps {
|
|
4
|
-
/** 是否占据空间(true: 占据空间, false: 不占据空间) */
|
|
5
|
-
/** 左侧返回区域 */
|
|
6
|
-
backNode?: React.ReactNode;
|
|
7
|
-
/** 中间内容区域 */
|
|
8
|
-
centerNode?: React.ReactNode;
|
|
9
|
-
/** 右侧操作区域 */
|
|
10
|
-
actionNode?: React.ReactNode;
|
|
11
|
-
/** 自定义类名 */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** 自定义样式 */
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
/** 返回按钮点击事件 */
|
|
16
|
-
onBack?: () => void;
|
|
17
|
-
/** 操作区域点击事件 */
|
|
18
|
-
onAction?: () => void;
|
|
19
|
-
}
|
|
20
|
-
declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
|
|
21
|
-
export default PisellSectionHeaders;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface InputItem {
|
|
2
|
-
start_date: string;
|
|
3
|
-
end_date: string;
|
|
4
|
-
total: number;
|
|
5
|
-
num: number;
|
|
6
|
-
}
|
|
7
|
-
interface OutputItem {
|
|
8
|
-
start_date: string;
|
|
9
|
-
end_date: string;
|
|
10
|
-
total: number;
|
|
11
|
-
num: number;
|
|
12
|
-
}
|
|
13
|
-
export declare function formatDateRanges(list: InputItem[]): OutputItem[];
|
|
14
|
-
export {};
|
package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface CollapsibleListProps<T> {
|
|
4
|
-
list: T[];
|
|
5
|
-
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
}
|
|
9
|
-
declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
|
|
10
|
-
export default CollapsibleList;
|
package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 金额是否是负
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {string} type
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2024-11-22 10:01
|
|
8
|
-
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
|
-
/**
|
|
11
|
-
* @title: 金额格式化
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {number} price
|
|
14
|
-
* @param {string} amountSymbol
|
|
15
|
-
* @param {number} digit
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2024-11-22 10:58
|
|
19
|
-
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
5
|
-
'pisell2.product.card.discount.reason': string;
|
|
6
|
-
'pisell2.product.card.discount.note': string;
|
|
7
|
-
'pisell2.product.card.discount.add.note': string;
|
|
8
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
9
|
-
'pisell2.product.card.confirm': string;
|
|
10
|
-
'pisell2.product.card.cancel': string;
|
|
11
|
-
'pisell2.product.card.note.pla': string;
|
|
12
|
-
'pisell2.product.card.items.package': string;
|
|
13
|
-
'pisell2.product.card.view-all': string;
|
|
14
|
-
'pisell2.product.card.view-less': string;
|
|
15
|
-
};
|
|
16
|
-
'zh-CN': {
|
|
17
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
18
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
19
|
-
'pisell2.product.card.discount.reason': string;
|
|
20
|
-
'pisell2.product.card.discount.note': string;
|
|
21
|
-
'pisell2.product.card.discount.add.note': string;
|
|
22
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
23
|
-
'pisell2.product.card.confirm': string;
|
|
24
|
-
'pisell2.product.card.cancel': string;
|
|
25
|
-
'pisell2.product.card.note.pla': string;
|
|
26
|
-
'pisell2.product.card.items.package': string;
|
|
27
|
-
'pisell2.product.card.view-all': string;
|
|
28
|
-
'pisell2.product.card.view-less': string;
|
|
29
|
-
};
|
|
30
|
-
'zh-HK': {
|
|
31
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
32
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
33
|
-
'pisell2.product.card.discount.reason': string;
|
|
34
|
-
'pisell2.product.card.discount.note': string;
|
|
35
|
-
'pisell2.product.card.discount.add.note': string;
|
|
36
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
37
|
-
'pisell2.product.card.confirm': string;
|
|
38
|
-
'pisell2.product.card.cancel': string;
|
|
39
|
-
'pisell2.product.card.note.pla': string;
|
|
40
|
-
'pisell2.product.card.items.package': string;
|
|
41
|
-
'pisell2.product.card.view-all': string;
|
|
42
|
-
'pisell2.product.card.view-less': string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ProductCardTypes, bundleType, optionType, productType } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* @title: 套餐数据
|
|
4
|
-
* @description:
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-01-02 23:21
|
|
8
|
-
*/
|
|
9
|
-
export declare const defaultBundle: bundleType;
|
|
10
|
-
/**
|
|
11
|
-
* @description: 单规格
|
|
12
|
-
* @return {*}
|
|
13
|
-
* @Author: WangHan
|
|
14
|
-
* @Date: 2025-01-02 23:00
|
|
15
|
-
*/
|
|
16
|
-
export declare const defaultOption: optionType;
|
|
17
|
-
/**
|
|
18
|
-
* @title: 商品商品类型
|
|
19
|
-
* @description:
|
|
20
|
-
* @return {*}
|
|
21
|
-
* @Author: WangHan
|
|
22
|
-
* @Date: 2025-01-02 22:48
|
|
23
|
-
*/
|
|
24
|
-
export declare const defaultProduct: productType;
|
|
25
|
-
/**
|
|
26
|
-
* @title: 默认数据
|
|
27
|
-
* @description:
|
|
28
|
-
* @return {*}
|
|
29
|
-
* @Author: WangHan
|
|
30
|
-
* @Date: 2024-12-12 16:49
|
|
31
|
-
*/
|
|
32
|
-
export declare const defaultValue: ProductCardTypes;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export declare type bundleType = {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
num: number;
|
|
5
|
-
price: number;
|
|
6
|
-
total: number;
|
|
7
|
-
origin_total?: number;
|
|
8
|
-
price_type?: string;
|
|
9
|
-
options?: optionType[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @description:
|
|
13
|
-
* @return {*}
|
|
14
|
-
* @Author: WangHan
|
|
15
|
-
* @Date: 2025-01-02 23:00
|
|
16
|
-
*/
|
|
17
|
-
export declare type optionType = {
|
|
18
|
-
id: number;
|
|
19
|
-
name: string;
|
|
20
|
-
num: number;
|
|
21
|
-
price: number;
|
|
22
|
-
total: number;
|
|
23
|
-
origin_total?: number;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @title: 商品商品类型
|
|
27
|
-
* @description:
|
|
28
|
-
* @return {*}
|
|
29
|
-
* @Author: WangHan
|
|
30
|
-
* @Date: 2025-01-02 22:48
|
|
31
|
-
*/
|
|
32
|
-
export declare type productType = {
|
|
33
|
-
_id: string | number;
|
|
34
|
-
id: number;
|
|
35
|
-
name: string;
|
|
36
|
-
price: number;
|
|
37
|
-
total: number;
|
|
38
|
-
num: number;
|
|
39
|
-
origin_total?: number;
|
|
40
|
-
image?: string;
|
|
41
|
-
isShowNote?: boolean;
|
|
42
|
-
note?: string;
|
|
43
|
-
like_status?: string;
|
|
44
|
-
bundle?: bundleType[];
|
|
45
|
-
options?: optionType[];
|
|
46
|
-
isShowAction?: boolean;
|
|
47
|
-
actionText?: string;
|
|
48
|
-
errorMessage?: string;
|
|
49
|
-
product_option_string?: string;
|
|
50
|
-
discount_reason?: string;
|
|
51
|
-
relation_products?: any[];
|
|
52
|
-
resource_id?: string | number;
|
|
53
|
-
relation_form_name?: string;
|
|
54
|
-
holder_title?: string;
|
|
55
|
-
start_date?: string;
|
|
56
|
-
end_date?: string;
|
|
57
|
-
is_show_duration?: boolean;
|
|
58
|
-
is_show_week?: boolean;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* 排序总配置
|
|
62
|
-
*/
|
|
63
|
-
export declare type ProductCardTypes = {
|
|
64
|
-
dataSource: productType;
|
|
65
|
-
isShowImage?: boolean;
|
|
66
|
-
isShowHolder?: boolean;
|
|
67
|
-
isShowNote?: boolean;
|
|
68
|
-
isShowPackageNote?: boolean;
|
|
69
|
-
isShowDelete?: boolean;
|
|
70
|
-
disabledEdit?: boolean;
|
|
71
|
-
locale?: string;
|
|
72
|
-
symbol?: string;
|
|
73
|
-
onAction?: (val: any) => void;
|
|
74
|
-
onDelete?: (val: any) => void;
|
|
75
|
-
onNote?: (val: any) => void;
|
|
76
|
-
onLike?: (val: any) => void;
|
|
77
|
-
onCard?: (val: any) => void;
|
|
78
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/zh-cn';
|
|
2
|
-
import 'dayjs/locale/en';
|
|
3
|
-
import 'dayjs/locale/zh-tw';
|
|
4
|
-
/**
|
|
5
|
-
* @title: 是否英文
|
|
6
|
-
* @description:
|
|
7
|
-
* @param {any} item
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @Author: WangHan
|
|
10
|
-
* @Date: 2024-12-28 22:49
|
|
11
|
-
*/
|
|
12
|
-
export declare const isEn: (item: any) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 跨日预约时间
|
|
15
|
-
* @description:
|
|
16
|
-
* @param {any} item
|
|
17
|
-
* @return {*}
|
|
18
|
-
* @Author: WangHan
|
|
19
|
-
* @Date: 2024-12-28 22:50
|
|
20
|
-
*/
|
|
21
|
-
export declare const formatMultiDayDate: (item: any) => string;
|
|
22
|
-
/**
|
|
23
|
-
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
24
|
-
* @description:
|
|
25
|
-
* @param {any} item
|
|
26
|
-
* @param {any} currentDate
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: zhiwei.Wang
|
|
29
|
-
* @Date: 2024-04-26 14:04
|
|
30
|
-
*/
|
|
31
|
-
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface SectionFooterProps {
|
|
3
|
-
left?: React.ReactNode;
|
|
4
|
-
middle?: React.ReactNode;
|
|
5
|
-
right?: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
|
|
9
|
-
export default SectionFooters;
|