@pisell/materials 2.2.67 → 2.2.68
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/es/components/dataSourceComponents/fields/index.d.ts +18 -18
- package/es/components/page/index.d.ts +0 -1
- package/es/components/productCard/components/Time/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/es/components/pisellAvatar/index.d.ts +0 -19
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
- package/es/components/pisellMenu/types.d.ts +0 -26
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -9
- package/es/components/productCard/types.d.ts +0 -83
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/lib/components/pisellAvatar/index.d.ts +0 -19
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
- package/lib/components/pisellMenu/types.d.ts +0 -26
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -9
- package/lib/components/productCard/types.d.ts +0 -83
|
@@ -60,21 +60,11 @@ declare const formFieldMap: {
|
|
|
60
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
64
|
-
|
|
65
|
-
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
66
|
-
labelField: string;
|
|
67
|
-
valueField: string;
|
|
68
|
-
extraParams?: Record<string, any> | undefined;
|
|
69
|
-
} & {
|
|
70
|
-
dataSource?: any;
|
|
71
|
-
}) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
72
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
64
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
73
65
|
} & {
|
|
74
|
-
Group: import("react").FC<import("./
|
|
75
|
-
}) | import("react").FC<import("
|
|
76
|
-
onChange: (value: string) => void;
|
|
77
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
66
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
67
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
78
68
|
JSON: import("react").FC<any>;
|
|
79
69
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
80
70
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -94,9 +84,19 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
94
84
|
name?: string | undefined;
|
|
95
85
|
fieldKey?: string | undefined;
|
|
96
86
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
97
|
-
}) |
|
|
98
|
-
Group: import("react").FC<import("./
|
|
87
|
+
}) | (import("react").FC<{}> & {
|
|
88
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
99
89
|
} & {
|
|
100
|
-
Group: import("react").FC<import("./
|
|
101
|
-
})
|
|
90
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
91
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
92
|
+
options?: any;
|
|
93
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
94
|
+
labelField: string;
|
|
95
|
+
valueField: string;
|
|
96
|
+
extraParams?: Record<string, any> | undefined;
|
|
97
|
+
} & {
|
|
98
|
+
dataSource?: any;
|
|
99
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
100
|
+
onChange: (value: string) => void;
|
|
101
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
102
|
export { getFieldComponent, formFieldMap };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './index.less';
|
|
3
2
|
declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
|
|
4
3
|
export default Time;
|
|
@@ -60,21 +60,11 @@ declare const formFieldMap: {
|
|
|
60
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
64
|
-
|
|
65
|
-
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
66
|
-
labelField: string;
|
|
67
|
-
valueField: string;
|
|
68
|
-
extraParams?: Record<string, any> | undefined;
|
|
69
|
-
} & {
|
|
70
|
-
dataSource?: any;
|
|
71
|
-
}) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
72
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
64
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
73
65
|
} & {
|
|
74
|
-
Group: import("react").FC<import("./
|
|
75
|
-
}) | import("react").FC<import("
|
|
76
|
-
onChange: (value: string) => void;
|
|
77
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
66
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
67
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
78
68
|
JSON: import("react").FC<any>;
|
|
79
69
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
80
70
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -94,9 +84,19 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
94
84
|
name?: string | undefined;
|
|
95
85
|
fieldKey?: string | undefined;
|
|
96
86
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
97
|
-
}) |
|
|
98
|
-
Group: import("react").FC<import("./
|
|
87
|
+
}) | (import("react").FC<{}> & {
|
|
88
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
99
89
|
} & {
|
|
100
|
-
Group: import("react").FC<import("./
|
|
101
|
-
})
|
|
90
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
91
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
92
|
+
options?: any;
|
|
93
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
94
|
+
labelField: string;
|
|
95
|
+
valueField: string;
|
|
96
|
+
extraParams?: Record<string, any> | undefined;
|
|
97
|
+
} & {
|
|
98
|
+
dataSource?: any;
|
|
99
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
100
|
+
onChange: (value: string) => void;
|
|
101
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
102
|
export { getFieldComponent, formFieldMap };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './index.less';
|
|
3
2
|
declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
|
|
4
3
|
export default Time;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.68",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"swiper": "^8.4.7",
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
|
+
"@pisell/date-picker": "1.0.101",
|
|
74
75
|
"@pisell/utils": "2.0.1",
|
|
75
|
-
"@pisell/icon": "0.0.11"
|
|
76
|
-
"@pisell/date-picker": "1.0.101"
|
|
76
|
+
"@pisell/icon": "0.0.11"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 数据源表单组件
|
|
5
|
-
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
-
*/
|
|
7
|
-
declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
|
|
8
|
-
export default DataSourceMenu;
|
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MenuProps } from 'antd';
|
|
3
|
-
export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
mode?: 'vertical' | 'horizontal' | 'inline';
|
|
7
|
-
theme?: 'light' | 'dark';
|
|
8
|
-
defaultOpenKeys?: string[];
|
|
9
|
-
defaultSelectedKeys?: string[];
|
|
10
|
-
inlineCollapsed?: boolean;
|
|
11
|
-
openKeys?: string[];
|
|
12
|
-
selectedKeys?: string[];
|
|
13
|
-
onOpenChange?: (openKeys: string[]) => void;
|
|
14
|
-
dataSource?: any;
|
|
15
|
-
__designMode?: string;
|
|
16
|
-
other?: PisellMenuProps;
|
|
17
|
-
}
|
|
18
|
-
export interface MenuItemType {
|
|
19
|
-
key: string;
|
|
20
|
-
label: string;
|
|
21
|
-
path: string;
|
|
22
|
-
children?: MenuItemType[];
|
|
23
|
-
icon?: string | React.ReactNode;
|
|
24
|
-
hide?: boolean;
|
|
25
|
-
type?: 'group' | 'divider';
|
|
26
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
|
|
3
|
-
style?: any;
|
|
4
|
-
status: string;
|
|
5
|
-
onLike?: any;
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
isShowChangeResource?: boolean | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
export default Like;
|
|
@@ -1,83 +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
|
-
isShowChangeHolder?: boolean;
|
|
74
|
-
isShowChangeResource?: boolean;
|
|
75
|
-
isShowChangeDate?: boolean;
|
|
76
|
-
onAction?: (val: any) => void;
|
|
77
|
-
onDelete?: (val: any) => void;
|
|
78
|
-
onNote?: (val: any) => void;
|
|
79
|
-
onLike?: (val: any) => void;
|
|
80
|
-
onCard?: (val: any) => void;
|
|
81
|
-
onChangeResource?: (val: any) => void;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 数据源表单组件
|
|
5
|
-
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
-
*/
|
|
7
|
-
declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
|
|
8
|
-
export default DataSourceMenu;
|
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MenuProps } from 'antd';
|
|
3
|
-
export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
mode?: 'vertical' | 'horizontal' | 'inline';
|
|
7
|
-
theme?: 'light' | 'dark';
|
|
8
|
-
defaultOpenKeys?: string[];
|
|
9
|
-
defaultSelectedKeys?: string[];
|
|
10
|
-
inlineCollapsed?: boolean;
|
|
11
|
-
openKeys?: string[];
|
|
12
|
-
selectedKeys?: string[];
|
|
13
|
-
onOpenChange?: (openKeys: string[]) => void;
|
|
14
|
-
dataSource?: any;
|
|
15
|
-
__designMode?: string;
|
|
16
|
-
other?: PisellMenuProps;
|
|
17
|
-
}
|
|
18
|
-
export interface MenuItemType {
|
|
19
|
-
key: string;
|
|
20
|
-
label: string;
|
|
21
|
-
path: string;
|
|
22
|
-
children?: MenuItemType[];
|
|
23
|
-
icon?: string | React.ReactNode;
|
|
24
|
-
hide?: boolean;
|
|
25
|
-
type?: 'group' | 'divider';
|
|
26
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
|
|
3
|
-
style?: any;
|
|
4
|
-
status: string;
|
|
5
|
-
onLike?: any;
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
isShowChangeResource?: boolean | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
export default Like;
|
|
@@ -1,83 +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
|
-
isShowChangeHolder?: boolean;
|
|
74
|
-
isShowChangeResource?: boolean;
|
|
75
|
-
isShowChangeDate?: boolean;
|
|
76
|
-
onAction?: (val: any) => void;
|
|
77
|
-
onDelete?: (val: any) => void;
|
|
78
|
-
onNote?: (val: any) => void;
|
|
79
|
-
onLike?: (val: any) => void;
|
|
80
|
-
onCard?: (val: any) => void;
|
|
81
|
-
onChangeResource?: (val: any) => void;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
};
|