@pisell/materials 6.11.12 → 6.11.14
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.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
- package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
- package/es/components/productCard/cartSkuCard/index.js +5 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +7 -1
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
- package/lib/components/productCard/cartSkuCard/index.js +5 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
- package/es/components/PisellCards/components/TextCard/index.d.ts +0 -5
- package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/es/components/config-provider/index.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/drag-sort-tree/index.d.ts +0 -5
- package/es/components/filter/components/Dropdown/types.d.ts +0 -13
- package/es/components/filter/components/FilterButton/types.d.ts +0 -24
- package/es/components/filter/types.d.ts +0 -48
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
- package/es/components/pisellFilter/type.d.ts +0 -5
- package/es/components/pisellGridPro/index.d.ts +0 -4
- package/es/components/pisellQuickFilter/type.d.ts +0 -12
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -11
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/es/components/table/types.d.ts +0 -268
- package/es/components/translation/utils.d.ts +0 -9
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
- package/lib/components/PisellCards/components/TextCard/index.d.ts +0 -5
- package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/lib/components/config-provider/index.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/drag-sort-tree/index.d.ts +0 -5
- package/lib/components/filter/components/Dropdown/types.d.ts +0 -13
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -24
- package/lib/components/filter/types.d.ts +0 -48
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
- package/lib/components/pisellFilter/type.d.ts +0 -5
- package/lib/components/pisellGridPro/index.d.ts +0 -4
- package/lib/components/pisellQuickFilter/type.d.ts +0 -12
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -11
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/translation/utils.d.ts +0 -9
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
|
@@ -44,7 +44,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
|
|
|
44
44
|
}) => React.JSX.Element;
|
|
45
45
|
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
46
46
|
options?: any;
|
|
47
|
-
optionSourceType?: "default" | "
|
|
47
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
48
48
|
labelField: string;
|
|
49
49
|
valueField: string;
|
|
50
50
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title: number | boolean |
|
|
22
|
+
title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: number | boolean |
|
|
31
|
+
subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
52
52
|
show: boolean;
|
|
53
53
|
title: string;
|
|
54
54
|
width: number;
|
|
55
|
-
align: "
|
|
55
|
+
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
57
|
type: "link" | "button";
|
|
58
58
|
items: OperationItem[];
|
|
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
72
72
|
useCustomAction: boolean;
|
|
73
73
|
actionType: string;
|
|
74
74
|
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "small" | "
|
|
75
|
+
openContentSize: "small" | "large" | "middle";
|
|
76
76
|
openTitle: string;
|
|
77
77
|
key: string;
|
|
78
78
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "
|
|
5
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
3
|
options?: any;
|
|
4
|
-
optionSourceType?: "default" | "
|
|
4
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
5
5
|
labelField: string;
|
|
6
6
|
valueField: string;
|
|
7
7
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -20,7 +20,7 @@ declare const formFieldMap: {
|
|
|
20
20
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
21
|
onChange: (value: string) => void;
|
|
22
22
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "
|
|
23
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
24
24
|
customDomain?: string | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
tenantId: string;
|
|
@@ -35,7 +35,7 @@ declare const formFieldMap: {
|
|
|
35
35
|
};
|
|
36
36
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
37
|
options?: any;
|
|
38
|
-
optionSourceType?: "default" | "
|
|
38
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
39
39
|
labelField: string;
|
|
40
40
|
valueField: string;
|
|
41
41
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -61,16 +61,7 @@ declare const formFieldMap: {
|
|
|
61
61
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
63
63
|
};
|
|
64
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
65
|
-
options?: any;
|
|
66
|
-
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
67
|
-
labelField: string;
|
|
68
|
-
valueField: string;
|
|
69
|
-
extraParams?: Record<string, any> | undefined;
|
|
70
|
-
} & {
|
|
71
|
-
dataSource?: any;
|
|
72
|
-
extraParams?: Record<string, any> | undefined;
|
|
73
|
-
}) => import("react").JSX.Element) | (import("react").FC<{}> & {
|
|
64
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
74
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
75
66
|
} & {
|
|
76
67
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -87,7 +78,7 @@ declare const getFieldComponent: (fieldComponent: string) => ((props: import("an
|
|
|
87
78
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
88
79
|
onChange: (value: string) => void;
|
|
89
80
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
90
|
-
rootDomain: "
|
|
81
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
91
82
|
customDomain?: string | undefined;
|
|
92
83
|
value?: string | undefined;
|
|
93
84
|
tenantId: string;
|
|
@@ -98,7 +89,16 @@ declare const getFieldComponent: (fieldComponent: string) => ((props: import("an
|
|
|
98
89
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
99
90
|
} & {
|
|
100
91
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
101
|
-
}) |
|
|
92
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
93
|
+
options?: any;
|
|
94
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
95
|
+
labelField: string;
|
|
96
|
+
valueField: string;
|
|
97
|
+
extraParams?: Record<string, any> | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
dataSource?: any;
|
|
100
|
+
extraParams?: Record<string, any> | undefined;
|
|
101
|
+
}) => import("react").JSX.Element) | 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("antd").InputProps & {
|
|
102
102
|
onChange: (value: string) => void;
|
|
103
103
|
} & 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("./Upload/type").UploadProps & 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>;
|
|
104
104
|
export { getFieldComponent, formFieldMap };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo, useCallback } from 'react';
|
|
2
2
|
import Icon from "../../../../icon";
|
|
3
|
-
import { locales, imageAli } from '@pisell/utils';
|
|
3
|
+
import { locales, image as imageAli } from '@pisell/utils';
|
|
4
4
|
import "./index.less";
|
|
5
5
|
var prefixCls = 'pisell-cart-sku-card__gift';
|
|
6
6
|
var Gift = function Gift(props) {
|
|
@@ -96,14 +96,16 @@ var BasicInfo = function BasicInfo(props) {
|
|
|
96
96
|
width: 20
|
|
97
97
|
}
|
|
98
98
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className: "product-info"
|
|
99
|
+
className: "product-info product-info-a5"
|
|
100
100
|
}, /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: "product-
|
|
101
|
+
className: "product-basic-info-wrap"
|
|
102
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "product-name ".concat(renderEdit ? 'product-name-edit' : '')
|
|
102
104
|
}, name), (!holder_id || !(holder_id !== null && holder_id !== void 0 && holder_id.length)) && !isFormSubject ? /*#__PURE__*/React.createElement("div", {
|
|
103
105
|
className: "product-price"
|
|
104
106
|
}, formatAmount(price, 2, symbol)) : /*#__PURE__*/React.createElement(Holders, {
|
|
105
107
|
dataSource: dataSource
|
|
106
|
-
})));
|
|
108
|
+
})), renderEdit));
|
|
107
109
|
}
|
|
108
110
|
if (type === 'a9') {
|
|
109
111
|
var showAmount = isBundle && !showFooter;
|
|
@@ -27,7 +27,7 @@ var Holders = function Holders(props) {
|
|
|
27
27
|
;
|
|
28
28
|
var renderHolder = function renderHolder(id) {
|
|
29
29
|
if (!id) return null;
|
|
30
|
-
var holder = holders.find(function (item) {
|
|
30
|
+
var holder = (holders || []).find(function (item) {
|
|
31
31
|
return item.id === id;
|
|
32
32
|
});
|
|
33
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -24,6 +24,7 @@ var TimeRange = function TimeRange(props) {
|
|
|
24
24
|
end_date = dataSource.end_date,
|
|
25
25
|
_dataSource$locale = dataSource.locale,
|
|
26
26
|
locale = _dataSource$locale === void 0 ? 'en-US' : _dataSource$locale;
|
|
27
|
+
if (!start_date || !end_date) return null;
|
|
27
28
|
if (!dayjs(start_date).isValid() || !dayjs(end_date).isValid()) return null;
|
|
28
29
|
useEffect(function () {
|
|
29
30
|
dayjs.locale(localeTypes[locale]);
|
|
@@ -166,7 +166,11 @@ var CartSkuCard = function CartSkuCard(props) {
|
|
|
166
166
|
isShowImage: isShowImage,
|
|
167
167
|
dataSource: dataSource,
|
|
168
168
|
isMainProduct: true,
|
|
169
|
-
type: type
|
|
169
|
+
type: type,
|
|
170
|
+
isShowOriginalPrice: isShowOriginalPrice,
|
|
171
|
+
isShowEditProduct: isShowEditProduct,
|
|
172
|
+
disabledEditClick: disabledEditClick,
|
|
173
|
+
onEditProduct: onEditProduct
|
|
170
174
|
}), /*#__PURE__*/React.createElement(TimeRange, {
|
|
171
175
|
dataSource: dataSource
|
|
172
176
|
}), /*#__PURE__*/React.createElement(Resources, {
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("view_mode" | "
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filters" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -44,7 +44,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
|
|
|
44
44
|
}) => React.JSX.Element;
|
|
45
45
|
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
46
46
|
options?: any;
|
|
47
|
-
optionSourceType?: "default" | "
|
|
47
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
48
48
|
labelField: string;
|
|
49
49
|
valueField: string;
|
|
50
50
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title: number | boolean |
|
|
22
|
+
title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: number | boolean |
|
|
31
|
+
subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
52
52
|
show: boolean;
|
|
53
53
|
title: string;
|
|
54
54
|
width: number;
|
|
55
|
-
align: "
|
|
55
|
+
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
57
|
type: "link" | "button";
|
|
58
58
|
items: OperationItem[];
|
|
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
72
72
|
useCustomAction: boolean;
|
|
73
73
|
actionType: string;
|
|
74
74
|
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "small" | "
|
|
75
|
+
openContentSize: "small" | "large" | "middle";
|
|
76
76
|
openTitle: string;
|
|
77
77
|
key: string;
|
|
78
78
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "
|
|
5
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
3
|
options?: any;
|
|
4
|
-
optionSourceType?: "default" | "
|
|
4
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
5
5
|
labelField: string;
|
|
6
6
|
valueField: string;
|
|
7
7
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -20,7 +20,7 @@ declare const formFieldMap: {
|
|
|
20
20
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
21
|
onChange: (value: string) => void;
|
|
22
22
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "
|
|
23
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
24
24
|
customDomain?: string | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
tenantId: string;
|
|
@@ -35,7 +35,7 @@ declare const formFieldMap: {
|
|
|
35
35
|
};
|
|
36
36
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
37
|
options?: any;
|
|
38
|
-
optionSourceType?: "default" | "
|
|
38
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
39
39
|
labelField: string;
|
|
40
40
|
valueField: string;
|
|
41
41
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -61,16 +61,7 @@ declare const formFieldMap: {
|
|
|
61
61
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
63
63
|
};
|
|
64
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
65
|
-
options?: any;
|
|
66
|
-
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
67
|
-
labelField: string;
|
|
68
|
-
valueField: string;
|
|
69
|
-
extraParams?: Record<string, any> | undefined;
|
|
70
|
-
} & {
|
|
71
|
-
dataSource?: any;
|
|
72
|
-
extraParams?: Record<string, any> | undefined;
|
|
73
|
-
}) => import("react").JSX.Element) | (import("react").FC<{}> & {
|
|
64
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
74
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
75
66
|
} & {
|
|
76
67
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -87,7 +78,7 @@ declare const getFieldComponent: (fieldComponent: string) => ((props: import("an
|
|
|
87
78
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
88
79
|
onChange: (value: string) => void;
|
|
89
80
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
90
|
-
rootDomain: "
|
|
81
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
91
82
|
customDomain?: string | undefined;
|
|
92
83
|
value?: string | undefined;
|
|
93
84
|
tenantId: string;
|
|
@@ -98,7 +89,16 @@ declare const getFieldComponent: (fieldComponent: string) => ((props: import("an
|
|
|
98
89
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
99
90
|
} & {
|
|
100
91
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
101
|
-
}) |
|
|
92
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
93
|
+
options?: any;
|
|
94
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
95
|
+
labelField: string;
|
|
96
|
+
valueField: string;
|
|
97
|
+
extraParams?: Record<string, any> | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
dataSource?: any;
|
|
100
|
+
extraParams?: Record<string, any> | undefined;
|
|
101
|
+
}) => import("react").JSX.Element) | 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("antd").InputProps & {
|
|
102
102
|
onChange: (value: string) => void;
|
|
103
103
|
} & 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("./Upload/type").UploadProps & 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>;
|
|
104
104
|
export { getFieldComponent, formFieldMap };
|
|
@@ -50,7 +50,7 @@ var Gift = (props) => {
|
|
|
50
50
|
const displayGifts = (0, import_react.useMemo)(() => (selectedGifts == null ? void 0 : selectedGifts.slice(0, 5)) || [], [selectedGifts]);
|
|
51
51
|
const renderImage = (0, import_react.useCallback)((item) => {
|
|
52
52
|
if (item == null ? void 0 : item.image) {
|
|
53
|
-
return /* @__PURE__ */ import_react.default.createElement("img", { src: import_utils.
|
|
53
|
+
return /* @__PURE__ */ import_react.default.createElement("img", { src: import_utils.image.ali(item == null ? void 0 : item.image, 48), className: `product-cover` });
|
|
54
54
|
}
|
|
55
55
|
const displayText = (item == null ? void 0 : item.title) ? item == null ? void 0 : item.title.slice(0, 2) : "";
|
|
56
56
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `product-cover-text` }, displayText);
|
|
@@ -103,7 +103,13 @@ var BasicInfo = (props) => {
|
|
|
103
103
|
return _originalTotal !== 0 && _originalTotal != _total;
|
|
104
104
|
}, [isShowOriginalPrice, origin_total, total, hasSpecs]);
|
|
105
105
|
if (type === "a5") {
|
|
106
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info
|
|
106
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info product-info-a5` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-basic-info-wrap` }, /* @__PURE__ */ import_react.default.createElement(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
className: `product-name ${renderEdit ? "product-name-edit" : ""}`
|
|
110
|
+
},
|
|
111
|
+
name
|
|
112
|
+
), (!holder_id || !(holder_id == null ? void 0 : holder_id.length)) && !isFormSubject ? /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol)) : /* @__PURE__ */ import_react.default.createElement(import_holders.default, { dataSource })), renderEdit));
|
|
107
113
|
}
|
|
108
114
|
if (type === "a9") {
|
|
109
115
|
const showAmount = isBundle && !showFooter;
|
|
@@ -54,7 +54,7 @@ var Holders = (props) => {
|
|
|
54
54
|
;
|
|
55
55
|
const renderHolder = (id) => {
|
|
56
56
|
if (!id) return null;
|
|
57
|
-
const holder = holders.find((item) => item.id === id);
|
|
57
|
+
const holder = (holders || []).find((item) => item.id === id);
|
|
58
58
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: id }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "holder-icon", type: holderIconMap[(dataSource == null ? void 0 : dataSource.holderType) || "minors"] }), /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, (holder == null ? void 0 : holder.label) || id));
|
|
59
59
|
};
|
|
60
60
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__holders` }, Array.isArray(holder_id) ? holder_id == null ? void 0 : holder_id.map((id) => {
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -54,6 +54,7 @@ var localeTypes = {
|
|
|
54
54
|
var TimeRange = (props) => {
|
|
55
55
|
const { dataSource = {} } = props;
|
|
56
56
|
const { start_date, end_date, locale = "en-US" } = dataSource;
|
|
57
|
+
if (!start_date || !end_date) return null;
|
|
57
58
|
if (!(0, import_dayjs.default)(start_date).isValid() || !(0, import_dayjs.default)(end_date).isValid()) return null;
|
|
58
59
|
(0, import_react.useEffect)(() => {
|
|
59
60
|
import_dayjs.default.locale(localeTypes[locale]);
|
|
@@ -184,7 +184,11 @@ var CartSkuCard = (props) => {
|
|
|
184
184
|
isShowImage,
|
|
185
185
|
dataSource,
|
|
186
186
|
isMainProduct: true,
|
|
187
|
-
type
|
|
187
|
+
type,
|
|
188
|
+
isShowOriginalPrice,
|
|
189
|
+
isShowEditProduct,
|
|
190
|
+
disabledEditClick,
|
|
191
|
+
onEditProduct
|
|
188
192
|
}
|
|
189
193
|
), /* @__PURE__ */ import_react.default.createElement(import_timeRange.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_resources.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_packages.default, { dataSource, isShowImage }), /* @__PURE__ */ import_react.default.createElement(
|
|
190
194
|
import_sales.default,
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("view_mode" | "
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filters" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.14",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"swiper": "^8.4.7",
|
|
93
93
|
"antd-mobile": "^5.38.1",
|
|
94
94
|
"vod-js-sdk-v6": "^1.4.11",
|
|
95
|
+
"@pisell/date-picker": "3.0.8",
|
|
95
96
|
"@pisell/icon": "0.0.11",
|
|
96
|
-
"@pisell/utils": "3.0.2"
|
|
97
|
-
"@pisell/date-picker": "3.0.8"
|
|
97
|
+
"@pisell/utils": "3.0.2"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"react": "^18.0.0",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextContentProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* TextContent 文本内容组件
|
|
5
|
-
* 负责渲染主文本内容,支持省略和多行显示
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* // 单行文本
|
|
11
|
-
* <TextContent text="Tab title" />
|
|
12
|
-
*
|
|
13
|
-
* // 自定义样式
|
|
14
|
-
* <TextContent
|
|
15
|
-
* text="Tab title"
|
|
16
|
-
* textConfig={{
|
|
17
|
-
* fontSize: 16,
|
|
18
|
-
* fontWeight: 600,
|
|
19
|
-
* color: '#101828',
|
|
20
|
-
* maxLines: 2,
|
|
21
|
-
* textAlign: 'center'
|
|
22
|
-
* }}
|
|
23
|
-
* />
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare const TextContent: React.FC<TextContentProps>;
|
|
27
|
-
export default TextContent;
|
package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GraphicTextCardProps } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* useGraphicTextCardClick Hook
|
|
4
|
-
* 处理组件点击事件的逻辑
|
|
5
|
-
*
|
|
6
|
-
* @param props - GraphicTextCard 组件的 Props
|
|
7
|
-
* @returns 点击事件处理函数
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* const handleClick = useGraphicTextCardClick(props);
|
|
12
|
-
* <div onClick={handleClick}>...</div>
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare const useGraphicTextCardClick: (props: GraphicTextCardProps) => (event: React.MouseEvent<HTMLDivElement>) => void;
|
package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { GraphicTextCardProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* useGraphicTextCardStyle Hook
|
|
5
|
-
* 处理组件样式和类名的合并逻辑
|
|
6
|
-
*
|
|
7
|
-
* @param props - GraphicTextCard 组件的 Props
|
|
8
|
-
* @returns 合并后的样式和类名
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* const { mergedStyle, mergedClassName } = useGraphicTextCardStyle(props);
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare const useGraphicTextCardStyle: (props: GraphicTextCardProps) => {
|
|
16
|
-
mergedStyle: CSSProperties;
|
|
17
|
-
mergedClassName: string;
|
|
18
|
-
};
|