@pisell/materials 1.0.831 → 1.0.833
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/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/date-picker/datePickerCpt.d.ts +0 -1
- package/es/components/div/index.js +45 -8
- package/es/components/list/index.d.ts +0 -1
- package/es/components/lowCodePage/index.d.ts +0 -1
- package/es/components/pisellDropSort/PisellDropSort.js +3 -0
- package/es/components/pisellDropSort/components/SortableItem/index.js +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +18 -2
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/es/components/productCard/components/Header/index.d.ts +0 -1
- package/es/components/productCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/index.d.ts +0 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/qrcode/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/components/walletCard/index.d.ts +67 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
- package/lib/components/div/index.js +33 -3
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/lowCodePage/index.d.ts +0 -1
- package/lib/components/pisellDropSort/PisellDropSort.js +2 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.js +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +20 -2
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/index.d.ts +0 -1
- package/lib/components/productCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/index.d.ts +0 -1
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/qrcode/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/components/walletCard/index.d.ts +67 -0
- package/lowcode/div/meta.ts +39 -4
- package/package.json +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/utils.d.ts +0 -3
- package/es/components/div/index.d.ts +0 -8
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -25
- package/es/components/pisellGoodPassCard/index.d.ts +0 -49
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
- package/es/components/productCard/locales.d.ts +0 -81
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/utils.d.ts +0 -3
- package/lib/components/div/index.d.ts +0 -8
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -25
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -49
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
- package/lib/components/productCard/locales.d.ts +0 -81
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: string;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
[elemName: string]: any;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface WalletCardItem {
|
|
11
|
+
key: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
value?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface WalletCardProps {
|
|
17
|
+
/** 二维码弹窗适配平台 */
|
|
18
|
+
platform?: 'pc' | 'h5' | 'ipad';
|
|
19
|
+
/** 卡片主题 */
|
|
20
|
+
mode?: 'dark' | 'light';
|
|
21
|
+
/** 默认还是完整显示code */
|
|
22
|
+
cardStyle?: 'normal' | 'full';
|
|
23
|
+
/** 条形码还是二维码 */
|
|
24
|
+
codeType?: 'barCode' | 'orCode';
|
|
25
|
+
/** 二维码方向 */
|
|
26
|
+
codeDirection?: 'bottom' | 'top';
|
|
27
|
+
/** 自定义背景图 */
|
|
28
|
+
customBackgroundImage?: string;
|
|
29
|
+
/** 图标:可以是React组件或图片URL */
|
|
30
|
+
showIcon?: boolean;
|
|
31
|
+
showWalletName?: boolean;
|
|
32
|
+
iconImg?: string;
|
|
33
|
+
/** 钱包名称 */
|
|
34
|
+
walletName?: string;
|
|
35
|
+
/** 店铺名称 */
|
|
36
|
+
shopName?: string;
|
|
37
|
+
/** 是否显示店铺名称 */
|
|
38
|
+
showShopName?: boolean;
|
|
39
|
+
/** 卡号 */
|
|
40
|
+
cardNo?: string;
|
|
41
|
+
/** 是否显示卡号 */
|
|
42
|
+
showCardNo?: boolean;
|
|
43
|
+
/** 是否显示二维码 */
|
|
44
|
+
showCode?: boolean;
|
|
45
|
+
/** 点击二维码/条形码的回调 */
|
|
46
|
+
onCodeClick?: () => void;
|
|
47
|
+
/** 货币符号 */
|
|
48
|
+
symbol: string;
|
|
49
|
+
/** 点击卡片的回调 */
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
/** 自定义类名 */
|
|
52
|
+
className?: string;
|
|
53
|
+
items: WalletCardItem[];
|
|
54
|
+
/** 自定义样式 */
|
|
55
|
+
style?: React.CSSProperties;
|
|
56
|
+
title?: string;
|
|
57
|
+
subTitle?: string;
|
|
58
|
+
align?: 'left' | 'center';
|
|
59
|
+
buttonText?: string;
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
/** 是否已登录 */
|
|
62
|
+
isLogin?: boolean;
|
|
63
|
+
/** 是否是引导页 */
|
|
64
|
+
isGuide?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare const WalletCard: React.FC<WalletCardProps>;
|
|
67
|
+
export default WalletCard;
|
package/lowcode/div/meta.ts
CHANGED
|
@@ -8,7 +8,7 @@ const DivMeta: ComponentMetadata = {
|
|
|
8
8
|
devMode: "proCode",
|
|
9
9
|
npm: {
|
|
10
10
|
package: "@pisell/materials",
|
|
11
|
-
version: "1.0.
|
|
11
|
+
version: "1.0.4",
|
|
12
12
|
exportName: "Div",
|
|
13
13
|
main: "src/index.tsx",
|
|
14
14
|
destructuring: true,
|
|
@@ -16,27 +16,62 @@ const DivMeta: ComponentMetadata = {
|
|
|
16
16
|
},
|
|
17
17
|
props: [
|
|
18
18
|
{
|
|
19
|
-
title: "
|
|
20
|
-
name: "
|
|
21
|
-
|
|
19
|
+
title: "基础类名",
|
|
20
|
+
name: "baseClassName",
|
|
21
|
+
propType: "string",
|
|
22
|
+
setter: ["StringSetter", "VariableSetter"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: "自定义类名",
|
|
26
|
+
name: "className",
|
|
27
|
+
propType: "string",
|
|
28
|
+
setter: ["StringSetter", "VariableSetter"]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: "渲染内容",
|
|
32
|
+
name: "render",
|
|
33
|
+
propType: "func",
|
|
34
|
+
setter: [
|
|
35
|
+
{
|
|
36
|
+
componentName: "FunctionSetter",
|
|
37
|
+
},
|
|
38
|
+
"VariableSetter",
|
|
39
|
+
],
|
|
22
40
|
},
|
|
41
|
+
{
|
|
42
|
+
title: "其他属性",
|
|
43
|
+
name: "others",
|
|
44
|
+
propType: "object",
|
|
45
|
+
setter: ["JsonSetter", "VariableSetter"]
|
|
46
|
+
}
|
|
23
47
|
],
|
|
24
48
|
configure: {
|
|
25
49
|
supports: {
|
|
26
50
|
style: true,
|
|
51
|
+
className: true,
|
|
27
52
|
events: [
|
|
28
53
|
{
|
|
29
54
|
name: "onClick",
|
|
30
55
|
template:
|
|
31
56
|
"onClick(event,${extParams}){\n// 点击时的回调\nconsole.log('onClick', event);}",
|
|
32
57
|
},
|
|
58
|
+
{
|
|
59
|
+
name: "onMouseEnter",
|
|
60
|
+
template: "onMouseEnter(event){\n// 鼠标进入时的回调\n}",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "onMouseLeave",
|
|
64
|
+
template: "onMouseLeave(event){\n// 鼠标离开时的回调\n}",
|
|
65
|
+
},
|
|
33
66
|
],
|
|
67
|
+
loop: true,
|
|
34
68
|
},
|
|
35
69
|
component: {
|
|
36
70
|
isContainer: true,
|
|
37
71
|
},
|
|
38
72
|
},
|
|
39
73
|
};
|
|
74
|
+
|
|
40
75
|
const snippets: Snippet[] = [
|
|
41
76
|
{
|
|
42
77
|
title: "Div",
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DataSourceTableProps } from '../type';
|
|
2
|
-
declare type Params = {
|
|
3
|
-
pagination?: {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
order_by?: string;
|
|
8
|
-
tabs?: {
|
|
9
|
-
name: string;
|
|
10
|
-
filterBy: Record<string, any>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const useTableQuery: (props: DataSourceTableProps) => {
|
|
15
|
-
queryPageConfig: {
|
|
16
|
-
page: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
filter: Record<string, any>;
|
|
19
|
-
sort: string;
|
|
20
|
-
};
|
|
21
|
-
setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
page: number;
|
|
23
|
-
pageSize: number;
|
|
24
|
-
filter: Record<string, any>;
|
|
25
|
-
sort: string;
|
|
26
|
-
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
};
|
|
32
|
-
export default useTableQuery;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Props as TreeItem } from '../../../pisellDraggable/components/TreeItem/TreeItem';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface SortableItemProps {
|
|
5
|
-
itemProps: TreeItem;
|
|
6
|
-
render?: (itemProps: TreeItem) => React.ReactNode;
|
|
7
|
-
domRef: React.RefObject<HTMLDivElement>;
|
|
8
|
-
allowAddChild?: boolean;
|
|
9
|
-
allowDelete?: boolean;
|
|
10
|
-
allowDrag?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onAdd?: (itemProps: TreeItem) => void;
|
|
13
|
-
onDelete?: (itemProps: TreeItem) => void;
|
|
14
|
-
showBorder?: boolean;
|
|
15
|
-
spacing?: number;
|
|
16
|
-
maxLevel?: number;
|
|
17
|
-
/** 设计模式 */
|
|
18
|
-
__designMode?: string;
|
|
19
|
-
/** 是否自定义操作 */
|
|
20
|
-
isCustomAction?: boolean;
|
|
21
|
-
/** 获取item样式 */
|
|
22
|
-
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
declare const SortableItem: (props: SortableItemProps) => JSX.Element;
|
|
25
|
-
export default SortableItem;
|
|
@@ -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,13 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface SelectHolderModalProps {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onConfirm: (value: any) => void;
|
|
6
|
-
lists: any[];
|
|
7
|
-
value: any[];
|
|
8
|
-
holderMaxCount: number;
|
|
9
|
-
addHolderButtonText: string;
|
|
10
|
-
onAdd: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
|
|
13
|
-
export default SelectHolderModal;
|
|
@@ -1,81 +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.minute': (val: number) => string;
|
|
6
|
-
'pisell2.product.card.discount.reason': string;
|
|
7
|
-
'pisell2.product.card.discount.note': string;
|
|
8
|
-
'pisell2.product.card.edit': string;
|
|
9
|
-
'pisell2.product.card.discount.add.note': string;
|
|
10
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
-
'pisell2.product.card.confirm': string;
|
|
12
|
-
'pisell2.product.card.cancel': string;
|
|
13
|
-
'pisell2.product.card.note.pla': string;
|
|
14
|
-
'pisell2.product.card.items.package': string;
|
|
15
|
-
'pisell2.product.card.view-all': string;
|
|
16
|
-
'pisell2.product.card.view-less': string;
|
|
17
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
20
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
21
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
22
|
-
'pisell2.product.card.sales': string;
|
|
23
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
24
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
25
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
26
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
27
|
-
};
|
|
28
|
-
'zh-CN': {
|
|
29
|
-
'pisell2.product.card.edit': string;
|
|
30
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
31
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
32
|
-
'pisell2.product.card.minute': (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
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
44
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
45
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
46
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
47
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
48
|
-
'pisell2.product.card.sales': string;
|
|
49
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
50
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
51
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
52
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
53
|
-
};
|
|
54
|
-
'zh-HK': {
|
|
55
|
-
'pisell2.product.card.edit': string;
|
|
56
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
57
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
58
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
59
|
-
'pisell2.product.card.discount.reason': string;
|
|
60
|
-
'pisell2.product.card.discount.note': string;
|
|
61
|
-
'pisell2.product.card.discount.add.note': string;
|
|
62
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
63
|
-
'pisell2.product.card.confirm': string;
|
|
64
|
-
'pisell2.product.card.cancel': string;
|
|
65
|
-
'pisell2.product.card.note.pla': string;
|
|
66
|
-
'pisell2.product.card.items.package': string;
|
|
67
|
-
'pisell2.product.card.view-all': string;
|
|
68
|
-
'pisell2.product.card.view-less': string;
|
|
69
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
70
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
71
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
72
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
73
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
74
|
-
'pisell2.product.card.sales': string;
|
|
75
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
76
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
77
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
78
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DataSourceTableProps } from '../type';
|
|
2
|
-
declare type Params = {
|
|
3
|
-
pagination?: {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
order_by?: string;
|
|
8
|
-
tabs?: {
|
|
9
|
-
name: string;
|
|
10
|
-
filterBy: Record<string, any>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const useTableQuery: (props: DataSourceTableProps) => {
|
|
15
|
-
queryPageConfig: {
|
|
16
|
-
page: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
filter: Record<string, any>;
|
|
19
|
-
sort: string;
|
|
20
|
-
};
|
|
21
|
-
setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
page: number;
|
|
23
|
-
pageSize: number;
|
|
24
|
-
filter: Record<string, any>;
|
|
25
|
-
sort: string;
|
|
26
|
-
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
};
|
|
32
|
-
export default useTableQuery;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Props as TreeItem } from '../../../pisellDraggable/components/TreeItem/TreeItem';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface SortableItemProps {
|
|
5
|
-
itemProps: TreeItem;
|
|
6
|
-
render?: (itemProps: TreeItem) => React.ReactNode;
|
|
7
|
-
domRef: React.RefObject<HTMLDivElement>;
|
|
8
|
-
allowAddChild?: boolean;
|
|
9
|
-
allowDelete?: boolean;
|
|
10
|
-
allowDrag?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onAdd?: (itemProps: TreeItem) => void;
|
|
13
|
-
onDelete?: (itemProps: TreeItem) => void;
|
|
14
|
-
showBorder?: boolean;
|
|
15
|
-
spacing?: number;
|
|
16
|
-
maxLevel?: number;
|
|
17
|
-
/** 设计模式 */
|
|
18
|
-
__designMode?: string;
|
|
19
|
-
/** 是否自定义操作 */
|
|
20
|
-
isCustomAction?: boolean;
|
|
21
|
-
/** 获取item样式 */
|
|
22
|
-
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
declare const SortableItem: (props: SortableItemProps) => JSX.Element;
|
|
25
|
-
export default SortableItem;
|
|
@@ -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,13 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface SelectHolderModalProps {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onConfirm: (value: any) => void;
|
|
6
|
-
lists: any[];
|
|
7
|
-
value: any[];
|
|
8
|
-
holderMaxCount: number;
|
|
9
|
-
addHolderButtonText: string;
|
|
10
|
-
onAdd: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
|
|
13
|
-
export default SelectHolderModal;
|
|
@@ -1,81 +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.minute': (val: number) => string;
|
|
6
|
-
'pisell2.product.card.discount.reason': string;
|
|
7
|
-
'pisell2.product.card.discount.note': string;
|
|
8
|
-
'pisell2.product.card.edit': string;
|
|
9
|
-
'pisell2.product.card.discount.add.note': string;
|
|
10
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
-
'pisell2.product.card.confirm': string;
|
|
12
|
-
'pisell2.product.card.cancel': string;
|
|
13
|
-
'pisell2.product.card.note.pla': string;
|
|
14
|
-
'pisell2.product.card.items.package': string;
|
|
15
|
-
'pisell2.product.card.view-all': string;
|
|
16
|
-
'pisell2.product.card.view-less': string;
|
|
17
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
20
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
21
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
22
|
-
'pisell2.product.card.sales': string;
|
|
23
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
24
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
25
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
26
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
27
|
-
};
|
|
28
|
-
'zh-CN': {
|
|
29
|
-
'pisell2.product.card.edit': string;
|
|
30
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
31
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
32
|
-
'pisell2.product.card.minute': (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
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
44
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
45
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
46
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
47
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
48
|
-
'pisell2.product.card.sales': string;
|
|
49
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
50
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
51
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
52
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
53
|
-
};
|
|
54
|
-
'zh-HK': {
|
|
55
|
-
'pisell2.product.card.edit': string;
|
|
56
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
57
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
58
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
59
|
-
'pisell2.product.card.discount.reason': string;
|
|
60
|
-
'pisell2.product.card.discount.note': string;
|
|
61
|
-
'pisell2.product.card.discount.add.note': string;
|
|
62
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
63
|
-
'pisell2.product.card.confirm': string;
|
|
64
|
-
'pisell2.product.card.cancel': string;
|
|
65
|
-
'pisell2.product.card.note.pla': string;
|
|
66
|
-
'pisell2.product.card.items.package': string;
|
|
67
|
-
'pisell2.product.card.view-all': string;
|
|
68
|
-
'pisell2.product.card.view-less': string;
|
|
69
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
70
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
71
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
72
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
73
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
74
|
-
'pisell2.product.card.sales': string;
|
|
75
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
76
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
77
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
78
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export default _default;
|