@pisell/materials 6.12.17 → 6.12.18
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/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellTabbar/index.d.ts +0 -10
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -16
- package/es/components/PisellTabbar/template/Template1/index.d.ts +0 -7
- package/es/components/PisellTabbar/types.d.ts +0 -123
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +0 -48
- package/es/components/pisellFind/index.d.ts +0 -69
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellLookup/types.d.ts +0 -797
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/index.d.ts +0 -55
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -16
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/es/components/productCard/lineItem/index.d.ts +0 -72
- package/es/components/productCard/types.d.ts +0 -98
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/hooks/useInitLocalesOnce.d.ts +0 -4
- package/es/hooks/useTranslationOriginal.d.ts +0 -4
- package/es/index.d.ts +0 -271
- package/es/locales/ja.d.ts +0 -534
- package/es/locales/pt.d.ts +0 -534
- package/es/locales/zh-CN.d.ts +0 -561
- package/es/locales/zh-TW.d.ts +0 -561
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellTabbar/index.d.ts +0 -10
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -16
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +0 -7
- package/lib/components/PisellTabbar/types.d.ts +0 -123
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +0 -48
- package/lib/components/pisellFind/index.d.ts +0 -69
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellLookup/types.d.ts +0 -797
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/index.d.ts +0 -55
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -16
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/lib/components/productCard/lineItem/index.d.ts +0 -72
- package/lib/components/productCard/types.d.ts +0 -98
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/hooks/useInitLocalesOnce.d.ts +0 -4
- package/lib/hooks/useTranslationOriginal.d.ts +0 -4
- package/lib/index.d.ts +0 -271
- package/lib/locales/ja.d.ts +0 -534
- package/lib/locales/pt.d.ts +0 -534
- package/lib/locales/zh-CN.d.ts +0 -561
- package/lib/locales/zh-TW.d.ts +0 -561
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RecordBoardProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* RecordBoard 容器:提供统一的 data / pagination / search 上下文。
|
|
5
|
-
* 打散 props:列表/分页/搜索/多选、grid/toolBar/…;可选根级 **floorMap**(兼容透传)。
|
|
6
|
-
* 平面图推荐在 ShellFrame 内使用 **PisellRecordBoard.FloorMap** 声明,与根级 `floorMap` 合并(子优先)。
|
|
7
|
-
*/
|
|
8
|
-
declare const PisellRecordBoard: React.FC<RecordBoardProps>;
|
|
9
|
-
export default PisellRecordBoard;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import GridLayout from './layouts/GridLayout';
|
|
3
|
-
import CardLayout from './layouts/CardLayout';
|
|
4
|
-
import RecordBoardShellFrame, { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, RecordBoardFloorMap, RecordBoardCalendar, RecordBoardResourceWall } from './shellFrame';
|
|
5
|
-
import RecordBoardGridView from './layouts/GridLayout/Grid';
|
|
6
|
-
import RecordBoardCardList from './layouts/CardLayout/CardList';
|
|
7
|
-
import { useRecordBoardContext } from './hooks/useRecordBoardContext';
|
|
8
|
-
import type { RecordBoardProps } from './types';
|
|
9
|
-
/** RecordBoard 复合组件类型 */
|
|
10
|
-
interface PisellRecordBoardType extends React.FC<RecordBoardProps> {
|
|
11
|
-
/** Shell Frame:对 Layout 的扩展,提供 ToolBar + BatchActionBar + children(Layout) */
|
|
12
|
-
ShellFrame: typeof RecordBoardShellFrame;
|
|
13
|
-
/** Grid 布局:仅内容区(表格 + 分页),需配合 ShellFrame 使用 */
|
|
14
|
-
GridLayout: typeof GridLayout;
|
|
15
|
-
/** 卡片布局:仅内容区(卡片列表 + 分页),需配合 ShellFrame 使用 */
|
|
16
|
-
CardLayout: typeof CardLayout;
|
|
17
|
-
/**
|
|
18
|
-
* 平面图槽位:仅在 ShellFrame 内声明,无 DOM; props 与 PisellFloorMapLayout 对齐。
|
|
19
|
-
* 与 GridLayout 同时存在时出现「表格 / 平面图」切换。
|
|
20
|
-
*/
|
|
21
|
-
FloorMap: typeof RecordBoardFloorMap;
|
|
22
|
-
/**
|
|
23
|
-
* 日历槽位:仅在 ShellFrame 内声明,无 DOM;与 GridLayout / FloorMap 并存时出现「表格 / 平面图 / 日历」切换。
|
|
24
|
-
*/
|
|
25
|
-
Calendar: typeof RecordBoardCalendar;
|
|
26
|
-
/**
|
|
27
|
-
* 大屏资源墙槽位:仅在 ShellFrame 内声明,无 DOM;与其它主区并存时出现视图切换。
|
|
28
|
-
*/
|
|
29
|
-
ResourceWall: typeof RecordBoardResourceWall;
|
|
30
|
-
/** 单独使用:搜索槽(PisellFind,绑定 searchParams.keyword / onSearch) */
|
|
31
|
-
Search: typeof RecordBoardSearch;
|
|
32
|
-
/** 单独使用:工具栏(PisellToolBar,含搜索/导出,可透传 topLeft/topRight 等) */
|
|
33
|
-
ToolBar: typeof RecordBoardToolBar;
|
|
34
|
-
/** 单独使用:分页槽 */
|
|
35
|
-
Pagination: typeof RecordBoardPagination;
|
|
36
|
-
/** 单独使用:Grid 视图(表格) */
|
|
37
|
-
Grid: typeof RecordBoardGridView;
|
|
38
|
-
/** 单独使用:卡片列表视图 */
|
|
39
|
-
CardList: typeof RecordBoardCardList;
|
|
40
|
-
/** 多选操作栏(基于 PisellBatchActionBar,有选中项时展示) */
|
|
41
|
-
BatchActionBar: typeof RecordBoardBatchActionBar;
|
|
42
|
-
/** 消费 RecordBoard 上下文 */
|
|
43
|
-
useRecordBoardContext: typeof useRecordBoardContext;
|
|
44
|
-
}
|
|
45
|
-
declare const PisellRecordBoard: PisellRecordBoardType;
|
|
46
|
-
export default PisellRecordBoard;
|
|
47
|
-
export type { RecordBoardProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps, RecordBoardColumnType, RecordBoardFieldType, RecordBoardColumnFilterConfig, RecordBoardOptionItem, RecordBoardGetOptions, RecordBoardBodyView, RecordBoardFloorMapProps, RecordBoardCalendarProps, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarResource, RecordBoardCalendarBookingLike, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarBookingRenderArgs, RecordBoardBookingMoveDraft, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardCalendarSelectedFreeSlot, RecordBoardToolBarProps, RecordBoardResourceWallProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, } from './types';
|
|
48
|
-
export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from './types';
|
|
49
|
-
export type { CalendarPersistContextValue } from './shellFrame/Calendar/calendarPersistGuard';
|
|
50
|
-
export type { VenueWallAppearanceTheme, VenueWallStatusToneOverrides, } from './shellFrame/ResourceWall/venueWallUtils';
|
|
51
|
-
export { useRecordBoardContext } from './hooks/useRecordBoardContext';
|
|
52
|
-
export { useRecordBoardShellBodyMeta } from './shellFrame';
|
|
53
|
-
export { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from './shellFrame/ResourceWall/PisellRecordBoardResourceWallView';
|
|
54
|
-
export { adaptColumnsForPhoneLayout, RECORD_BOARD_PHONE_GRID_CLASS, } from './utils/recordBoardPhoneGrid';
|
|
55
|
-
export type { AdaptColumnsForPhoneLayoutOptions } from './utils/recordBoardPhoneGrid';
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BookingCalendar 专用类型(不放入全局 RecordBoard types,避免对外膨胀)。
|
|
3
|
-
*/
|
|
4
|
-
import type { RecordBoardCalendarBookingLike } from '../../types';
|
|
5
|
-
import type { CalendarBookingSegmentInput, SelectedSlotLike } from './utils/bookingCalendarDateUtils';
|
|
6
|
-
import type { Dayjs } from 'dayjs';
|
|
7
|
-
/** 资源视图格子选中:仅记 court + 日 */
|
|
8
|
-
export declare type ResourceCellPick = {
|
|
9
|
-
courtId: string;
|
|
10
|
-
dateKey: string;
|
|
11
|
-
};
|
|
12
|
-
/** 顶栏粒度切换 */
|
|
13
|
-
export declare type CalendarViewMode = 'resource' | 'day' | 'week' | 'month';
|
|
14
|
-
export declare type FreeSlotSelection = SelectedSlotLike & {
|
|
15
|
-
court?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type OverflowListModalState = {
|
|
18
|
-
scope: string;
|
|
19
|
-
date: string;
|
|
20
|
-
title: string;
|
|
21
|
-
items: CalendarBookingSegmentInput[];
|
|
22
|
-
};
|
|
23
|
-
export declare type OverflowPopoverState = {
|
|
24
|
-
courtId: string;
|
|
25
|
-
date: string;
|
|
26
|
-
items: CalendarBookingSegmentInput[];
|
|
27
|
-
pinned?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export declare type MoveConfirmState = {
|
|
30
|
-
item: RecordBoardCalendarBookingLike;
|
|
31
|
-
targetCourtId: string;
|
|
32
|
-
targetDate: string;
|
|
33
|
-
targetHour: number;
|
|
34
|
-
};
|
|
35
|
-
export declare type MoveDraftState = {
|
|
36
|
-
targetCourtId: string;
|
|
37
|
-
targetDate: string;
|
|
38
|
-
targetHour: number;
|
|
39
|
-
};
|
|
40
|
-
export declare type TransitioningToDayState = {
|
|
41
|
-
source: string;
|
|
42
|
-
};
|
|
43
|
-
export declare type BlockTimeRange = [Dayjs, Dayjs] | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type CalendarBookingSegmentInput } from '../utils/bookingCalendarDateUtils';
|
|
3
|
-
export declare type MonthGridOverflowVirtualListProps = {
|
|
4
|
-
items: CalendarBookingSegmentInput[];
|
|
5
|
-
listWidth: number;
|
|
6
|
-
onPickItem: (item: CalendarBookingSegmentInput) => void;
|
|
7
|
-
};
|
|
8
|
-
/** 月/周格「+N」悬停层内的虚拟列表(overflowPopover) */
|
|
9
|
-
export declare function MonthGridOverflowVirtualList({ items, listWidth, onPickItem, }: MonthGridOverflowVirtualListProps): React.JSX.Element | null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface InlineActionItem {
|
|
5
|
-
key: string | number;
|
|
6
|
-
text: ReactNode;
|
|
7
|
-
color?: string;
|
|
8
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
-
style?: CSSProperties;
|
|
10
|
-
}
|
|
11
|
-
interface InlineActionsProps {
|
|
12
|
-
actions: InlineActionItem[];
|
|
13
|
-
}
|
|
14
|
-
declare const InlineActions: ({ actions }: InlineActionsProps) => React.JSX.Element | null;
|
|
15
|
-
export default InlineActions;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare type NativeProps<S extends string = never> = {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
-
};
|
|
7
|
-
declare type PropagationEvent = 'click';
|
|
8
|
-
import './index.less';
|
|
9
|
-
declare type SideType = 'left' | 'right';
|
|
10
|
-
export declare type SwipeActionRef = {
|
|
11
|
-
close: () => void;
|
|
12
|
-
show: (side?: SideType) => void;
|
|
13
|
-
};
|
|
14
|
-
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
-
export declare type Action = {
|
|
16
|
-
key: string | number;
|
|
17
|
-
text: ReactNode;
|
|
18
|
-
color?: ActionColor | string;
|
|
19
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
};
|
|
22
|
-
export declare type SwipeActionProps = {
|
|
23
|
-
rightActions?: Action[];
|
|
24
|
-
leftActions?: Action[];
|
|
25
|
-
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
26
|
-
closeOnTouchOutside?: boolean;
|
|
27
|
-
closeOnAction?: boolean;
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
stopPropagation?: PropagationEvent[];
|
|
30
|
-
onActionsReveal?: (side: SideType) => void;
|
|
31
|
-
onClose?: () => void;
|
|
32
|
-
escapeDom?: string;
|
|
33
|
-
} & NativeProps<'--background'>;
|
|
34
|
-
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
35
|
-
rightActions?: Action[] | undefined;
|
|
36
|
-
leftActions?: Action[] | undefined;
|
|
37
|
-
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
38
|
-
closeOnTouchOutside?: boolean | undefined;
|
|
39
|
-
closeOnAction?: boolean | undefined;
|
|
40
|
-
children: ReactNode;
|
|
41
|
-
stopPropagation?: "click"[] | undefined;
|
|
42
|
-
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
43
|
-
onClose?: (() => void) | undefined;
|
|
44
|
-
escapeDom?: string | undefined;
|
|
45
|
-
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
46
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { ProductCardTypes } from '../types';
|
|
4
|
-
interface ISKUCardProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
5
|
-
dataSource: any;
|
|
6
|
-
itemType?: 'booking' | 'product';
|
|
7
|
-
type: 'a2' | 'a5' | 'a9';
|
|
8
|
-
rightActions: any[];
|
|
9
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
10
|
-
escapeDom?: string;
|
|
11
|
-
isShowRelatedProduct?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const PREFIX = "pisell-cart-sku-card";
|
|
14
|
-
export declare const ENABLE_LARGE_WEIGHING_FONT = true;
|
|
15
|
-
declare const CartSkuCard: (props: ISKUCardProps) => React.JSX.Element | null;
|
|
16
|
-
export default CartSkuCard;
|
package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => React.JSX.Element;
|
|
3
|
-
export default SelectHolderMultiple;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ProductCardTypes } from '../types';
|
|
3
|
-
import type { LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
4
|
-
interface BookingLineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
5
|
-
dataSource: any;
|
|
6
|
-
type: LineItemType;
|
|
7
|
-
cartSkuType: 'a2' | 'a5' | 'a9';
|
|
8
|
-
isShowBookingHeader: boolean;
|
|
9
|
-
relatedProductDataSource?: any;
|
|
10
|
-
addTimeProductDataSources?: any[];
|
|
11
|
-
rightActions?: any[];
|
|
12
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
13
|
-
escapeDom?: string;
|
|
14
|
-
statusOptions?: LineItemStatusOption[];
|
|
15
|
-
statusLoading?: boolean;
|
|
16
|
-
statusDisabled?: boolean;
|
|
17
|
-
isShowRelatedProduct?: boolean;
|
|
18
|
-
holderOptions?: LineItemHolderOption[];
|
|
19
|
-
onBookingStatusChange?: (status: string, item: any) => void;
|
|
20
|
-
onAddTimeProductCard?: (item: any) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const BookingLineItem: (props: BookingLineItemProps) => React.JSX.Element | null;
|
|
23
|
-
export default BookingLineItem;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ProductCardTypes } from '../types';
|
|
3
|
-
import type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export declare const PREFIX = "pisell-line-item";
|
|
6
|
-
export type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType, } from './types';
|
|
7
|
-
declare type LocalizedText = string | Record<string, unknown> | null | undefined;
|
|
8
|
-
export interface LineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
9
|
-
dataSource: any;
|
|
10
|
-
itemType?: itemType;
|
|
11
|
-
type?: LineItemType;
|
|
12
|
-
isShowBookingHeader: boolean;
|
|
13
|
-
rightActions?: any[];
|
|
14
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
15
|
-
escapeDom?: string;
|
|
16
|
-
statusOptions?: LineItemStatusOption[];
|
|
17
|
-
statusLoading?: boolean;
|
|
18
|
-
statusDisabled?: boolean;
|
|
19
|
-
isShowRelatedProduct?: boolean;
|
|
20
|
-
holderOptions?: LineItemHolderOption[];
|
|
21
|
-
onBookingStatusChange?: (status: string, item: any) => void;
|
|
22
|
-
onAddTimeProductCard?: (item: any) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const convertProductToLineItemProduct: (product: any, translationOriginal: (text: LocalizedText) => string, symbol: string) => {
|
|
25
|
-
_id: any;
|
|
26
|
-
id: any;
|
|
27
|
-
product_id: any;
|
|
28
|
-
product_variant_id: any;
|
|
29
|
-
title: string;
|
|
30
|
-
product_title: string;
|
|
31
|
-
name: string;
|
|
32
|
-
cover: any;
|
|
33
|
-
image: any;
|
|
34
|
-
num: any;
|
|
35
|
-
quantity: any;
|
|
36
|
-
price: any;
|
|
37
|
-
total: any;
|
|
38
|
-
origin_total: string | number | undefined;
|
|
39
|
-
original_total: string | number | undefined;
|
|
40
|
-
source_product_price: any;
|
|
41
|
-
selling_price: any;
|
|
42
|
-
payment_price: any;
|
|
43
|
-
tax_fee: any;
|
|
44
|
-
symbol: string;
|
|
45
|
-
note: any;
|
|
46
|
-
product_sku: any;
|
|
47
|
-
product_bundle: any;
|
|
48
|
-
bundle: any;
|
|
49
|
-
product_option_string: any;
|
|
50
|
-
options: any[];
|
|
51
|
-
discount_list: any;
|
|
52
|
-
promotions: any;
|
|
53
|
-
discount_reason: any;
|
|
54
|
-
isGift: boolean;
|
|
55
|
-
giftData: any;
|
|
56
|
-
_origin: any;
|
|
57
|
-
_extend: {
|
|
58
|
-
other: {
|
|
59
|
-
product_id: any;
|
|
60
|
-
option: any[];
|
|
61
|
-
bundle: any;
|
|
62
|
-
product_variant_id: any;
|
|
63
|
-
quantity: any;
|
|
64
|
-
};
|
|
65
|
-
note: any;
|
|
66
|
-
total: any;
|
|
67
|
-
origin_total: string | number | undefined;
|
|
68
|
-
payment_price: any;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
declare const LineItem: (props: LineItemProps) => React.JSX.Element;
|
|
72
|
-
export default LineItem;
|
|
@@ -1,98 +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
|
-
promotions?: any[];
|
|
60
|
-
isGift?: boolean;
|
|
61
|
-
giftData?: any;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* 排序总配置
|
|
65
|
-
*/
|
|
66
|
-
export declare type ProductCardTypes = {
|
|
67
|
-
dataSource: productType;
|
|
68
|
-
isFormSubject?: boolean;
|
|
69
|
-
isShowImage?: boolean;
|
|
70
|
-
isShowOriginalPrice?: boolean;
|
|
71
|
-
isShowHolder?: boolean;
|
|
72
|
-
isShowNote?: boolean;
|
|
73
|
-
isShowPackageNote?: boolean;
|
|
74
|
-
isShowDelete?: boolean;
|
|
75
|
-
isShowInlineDelete?: boolean;
|
|
76
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
77
|
-
isShowEditProduct?: boolean;
|
|
78
|
-
isShowAmountFooter?: boolean;
|
|
79
|
-
disabledEdit?: boolean;
|
|
80
|
-
locale?: string;
|
|
81
|
-
symbol?: string;
|
|
82
|
-
isShowChangeHolder?: boolean;
|
|
83
|
-
isShowChangeResource?: boolean;
|
|
84
|
-
isShowChangeDate?: boolean;
|
|
85
|
-
disabledClick?: boolean;
|
|
86
|
-
disabledEditClick?: boolean;
|
|
87
|
-
onAction?: (val: any) => void;
|
|
88
|
-
onDelete?: (val: any) => void;
|
|
89
|
-
onNote?: (val: any) => void;
|
|
90
|
-
onLike?: (val: any) => void;
|
|
91
|
-
onCard?: (val: any) => void;
|
|
92
|
-
onChangeResource?: (val: any) => void;
|
|
93
|
-
onPromotion?: (val: any) => void;
|
|
94
|
-
onEditProduct?: (val: any) => void;
|
|
95
|
-
onGift?: (val: any) => void;
|
|
96
|
-
osWarnTips?: Array<string>;
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FilterType } from "../../filter/types";
|
|
2
|
-
import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType, LocalSettingsType } from "../types";
|
|
3
|
-
declare type UseTableSettingProps = {
|
|
4
|
-
tableId?: string;
|
|
5
|
-
filter: FilterType;
|
|
6
|
-
columns: Record<string, any>[];
|
|
7
|
-
columnSetting?: ColumnSettingType;
|
|
8
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
9
|
-
sort?: SortType;
|
|
10
|
-
view: GridViewType;
|
|
11
|
-
currentViewMode: ModeType;
|
|
12
|
-
gallery?: GallerySettingType;
|
|
13
|
-
currentSettingHash: string;
|
|
14
|
-
exportImport?: ExportImportModeType;
|
|
15
|
-
localSettings?: LocalSettingsType;
|
|
16
|
-
};
|
|
17
|
-
declare const useTableSetting: (params: UseTableSettingProps) => {
|
|
18
|
-
setTableSetting: (this: unknown, values: Record<string, any>) => void;
|
|
19
|
-
tableSetting: any;
|
|
20
|
-
};
|
|
21
|
-
export default useTableSetting;
|