@pisell/materials 2.2.98 → 2.2.100

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.
Files changed (169) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +4 -4
  6. package/build/lowcode/preview.js +6 -6
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +22 -22
  11. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  17. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  23. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  24. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  25. package/es/components/iconfont/index.js +1 -1
  26. package/es/components/list/index.d.ts +1 -0
  27. package/es/components/lowCodePage/index.d.ts +1 -0
  28. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  29. package/es/components/pisellAdjustPrice/index.js +5 -1
  30. package/es/components/pisellAdjustPrice/type.d.ts +2 -0
  31. package/es/components/pisellCardList/index.d.ts +30 -2
  32. package/es/components/pisellCardList/index.js +40 -3
  33. package/es/components/pisellCardList/index.less +9 -1
  34. package/es/components/pisellCheckboxGroup/index.d.ts +3 -0
  35. package/es/components/pisellCheckboxGroup/index.js +19 -3
  36. package/es/components/pisellCheckboxGroup/index.less +22 -1
  37. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  38. package/es/components/pisellLoading/index.d.ts +1 -0
  39. package/es/components/pisellWalletPassCard/index.d.ts +53 -1
  40. package/es/components/pisellWalletPassCard/index.js +333 -75
  41. package/es/components/pisellWalletPassCard/index.less +48 -11
  42. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  43. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +5 -1
  44. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  45. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  46. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +1 -1
  47. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  48. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  49. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  50. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  51. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  52. package/es/components/productCard/cartSkuCard/index.js +0 -2
  53. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  54. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  55. package/es/components/productCard/components/Header/index.d.ts +1 -0
  56. package/es/components/productCard/components/Note/index.d.ts +1 -0
  57. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  58. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  59. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  60. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  61. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  62. package/es/components/qrcode/index.d.ts +1 -0
  63. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  64. package/es/components/table/BasicTable/index.d.ts +1 -0
  65. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  66. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  67. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  68. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  69. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  73. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  74. package/es/components/table/Table/utils.d.ts +1 -1
  75. package/es/components/table/View/index.d.ts +1 -0
  76. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  77. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  78. package/es/components/virtual-keyboard/Number/index.js +4 -1
  79. package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
  80. package/es/components/walletCard/Guide/index.js +12 -1
  81. package/es/index.d.ts +1 -0
  82. package/es/locales/en-US.d.ts +6 -0
  83. package/es/locales/en-US.js +9 -2
  84. package/es/locales/zh-CN.d.ts +6 -0
  85. package/es/locales/zh-CN.js +9 -2
  86. package/es/locales/zh-TW.d.ts +6 -0
  87. package/es/locales/zh-TW.js +9 -2
  88. package/es/utils/platform.d.ts +1 -1
  89. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  90. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  91. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  92. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  93. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  94. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  95. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  96. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  97. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  98. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  99. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  100. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  101. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  102. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  103. package/lib/components/iconfont/index.js +1 -1
  104. package/lib/components/list/index.d.ts +1 -0
  105. package/lib/components/lowCodePage/index.d.ts +1 -0
  106. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  107. package/lib/components/pisellAdjustPrice/index.js +4 -0
  108. package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
  109. package/lib/components/pisellCardList/index.d.ts +30 -2
  110. package/lib/components/pisellCardList/index.js +40 -3
  111. package/lib/components/pisellCardList/index.less +9 -1
  112. package/lib/components/pisellCheckboxGroup/index.d.ts +3 -0
  113. package/lib/components/pisellCheckboxGroup/index.js +20 -1
  114. package/lib/components/pisellCheckboxGroup/index.less +22 -1
  115. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  116. package/lib/components/pisellLoading/index.d.ts +1 -0
  117. package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
  118. package/lib/components/pisellWalletPassCard/index.js +253 -59
  119. package/lib/components/pisellWalletPassCard/index.less +48 -11
  120. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  121. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +1 -1
  122. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  123. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  124. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +1 -1
  125. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  126. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  127. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  128. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  129. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  130. package/lib/components/productCard/cartSkuCard/index.js +1 -1
  131. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  132. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  133. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  134. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  135. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  136. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  137. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  138. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  139. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  140. package/lib/components/qrcode/index.d.ts +1 -0
  141. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  142. package/lib/components/table/BasicTable/index.d.ts +1 -0
  143. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  144. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  145. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  146. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  147. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  148. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  149. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  150. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  151. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  152. package/lib/components/table/Table/utils.d.ts +1 -1
  153. package/lib/components/table/View/index.d.ts +1 -0
  154. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  155. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  156. package/lib/components/virtual-keyboard/Number/index.js +3 -0
  157. package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
  158. package/lib/components/walletCard/Guide/index.js +11 -1
  159. package/lib/index.d.ts +1 -0
  160. package/lib/locales/en-US.d.ts +6 -0
  161. package/lib/locales/en-US.js +9 -2
  162. package/lib/locales/zh-CN.d.ts +6 -0
  163. package/lib/locales/zh-CN.js +9 -2
  164. package/lib/locales/zh-TW.d.ts +6 -0
  165. package/lib/locales/zh-TW.js +9 -2
  166. package/lib/utils/platform.d.ts +1 -1
  167. package/lowcode/pisell-card-list/meta.ts +50 -1
  168. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  169. package/package.json +11 -10
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -363,7 +363,7 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
363
363
  rules: rules
364
364
  });
365
365
  }
366
- return (overlayProps === null || overlayProps === void 0 ? void 0 : overlayProps.otherFormItemProps) || {};
366
+ return _objectSpread(_objectSpread({}, otherProps || {}), (overlayProps === null || overlayProps === void 0 ? void 0 : overlayProps.otherFormItemProps) || {}) || {};
367
367
  }, [overlayProps === null || overlayProps === void 0 ? void 0 : overlayProps.otherFormItemProps, otherProps]);
368
368
  return /*#__PURE__*/React.createElement(Form.Item, _extends({
369
369
  required: required,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -53,7 +53,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
53
53
  width: number;
54
54
  align: "center" | "left" | "right";
55
55
  fixed: false | "left" | "right";
56
- type: "link" | "button";
56
+ type: "button" | "link";
57
57
  items: OperationItem[];
58
58
  } | undefined;
59
59
  operationContent?: {
@@ -71,7 +71,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
71
71
  useCustomAction: boolean;
72
72
  actionType: string;
73
73
  openMode: "modal" | "drawer";
74
- openContentSize: "small" | "large" | "middle";
74
+ openContentSize: "small" | "middle" | "large";
75
75
  openTitle: string;
76
76
  key: string;
77
77
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="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" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -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" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,11 +60,13 @@ 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<{}> & {
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("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
65
  } & {
66
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> & {
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("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & 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").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
68
70
  JSON: import("react").FC<any>;
69
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
72
  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>;
@@ -84,19 +86,17 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
84
86
  name?: string | undefined;
85
87
  fieldKey?: string | undefined;
86
88
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
87
- }) | (import("react").FC<{}> & {
89
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
91
  } & {
90
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
93
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
94
  options?: any;
93
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ optionSourceType?: "custom" | "default" | "api" | undefined;
94
96
  labelField: string;
95
97
  valueField: string;
96
98
  extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | 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 & {
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("./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>;
101
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | 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>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -54,7 +54,8 @@ var TreeItem = function TreeItem(props) {
54
54
  transform: CSS.Transform.toString(transform && _objectSpread(_objectSpread({}, transform), {}, {
55
55
  scaleY: 1
56
56
  })),
57
- transition: transition
57
+ transition: transition,
58
+ display: item.domHidden ? 'none' : 'block'
58
59
  };
59
60
  var rowKey = useMemo(function () {
60
61
  return (childrenProps === null || childrenProps === void 0 ? void 0 : childrenProps.rowKey) || 'id';
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import { createFromIconfontCN } from '@ant-design/icons';
3
3
  import React from 'react';
4
4
  var MyIcon = createFromIconfontCN({
5
- scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.8.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.11.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
  var IconFont = function IconFont(props) {
8
8
  return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { PisellAdjustPriceProps } from './type';
3
4
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType"];
2
+ var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType", "resetText", "doneText"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -31,6 +31,8 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
31
31
  originValue = props.originValue,
32
32
  _props$selectType = props.selectType,
33
33
  selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
34
+ resetText = props.resetText,
35
+ doneText = props.doneText,
34
36
  others = _objectWithoutProperties(props, _excluded);
35
37
  var config = usePisellConfig();
36
38
  var _useState = useState(value || 0),
@@ -177,6 +179,8 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
177
179
  onChange: handleChange,
178
180
  onEnter: handleEnter,
179
181
  placeholder: discountMode === 'amount' ? '0' : '%',
182
+ resetText: resetText,
183
+ doneText: doneText,
180
184
  rightItemsStyle: {
181
185
  buttonBackgroundColor: configColor.buttonBackgroundColor,
182
186
  textColor: configColor.textColor,
@@ -17,4 +17,6 @@ export interface PisellAdjustPriceProps {
17
17
  mainTextColor?: string;
18
18
  isShowSubText?: boolean;
19
19
  subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
20
22
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
3
  import { PisellContextType } from '../pisell-config-provider/context';
4
- import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
4
+ import { PisellWalletPassCardProps, FormatOption } from '../pisellWalletPassCard';
5
5
  import './index.less';
6
6
  export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
7
  platform?: PisellContextType['platform'];
@@ -67,7 +67,35 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
67
67
  /** 编辑编辑按钮后,弹窗展示之前 */
68
68
  beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
69
69
  /** 编辑弹窗点击提交 */
70
- onConfirmEdit?: (value: any, index: number) => void;
70
+ onConfirmEdit?: (value: any, index: number, data: any) => void;
71
+ /** 是否展示状态标识 */
72
+ showStatus?: boolean;
73
+ /** 名称标题字号字重颜色配置 */
74
+ nameTitleStyle?: {
75
+ fontSize: number;
76
+ fontWeight: number;
77
+ color: string;
78
+ };
79
+ /** 开启编辑金额 */
80
+ enableEditAmount?: boolean;
81
+ /** 编辑金额事件 */
82
+ onConfirmEditAmount?: (value: number, index: number, data: any) => void;
83
+ /** 是否使用外部详情处理 */
84
+ useExternalDetail?: boolean;
85
+ /** 详情事件 */
86
+ onDetail?: (value: any, index: number) => void;
87
+ /** 自定义余额格式化函数,如果提供则优先使用 */
88
+ formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
89
+ /** 自定义余额标题格式化函数,如果提供则优先使用 */
90
+ formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
91
+ /** 自定义使用金额格式化函数,如果提供则优先使用 */
92
+ formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
93
+ /** 自定义使用金额标题格式化函数,如果提供则优先使用 */
94
+ formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
95
+ /** 编辑金额前事件 */
96
+ onBeforeEditAmount?: (value: any, index: number, data: any) => Promise<any> | boolean | void;
97
+ /** 选项点击事件 */
98
+ onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: any) => void;
71
99
  }
72
100
  declare const _default: React.NamedExoticComponent<PisellCardListProps>;
73
101
  export default _default;
@@ -37,7 +37,19 @@ var PisellCardList = function PisellCardList(props) {
37
37
  showValidDate = props.showValidDate,
38
38
  empty = props.empty,
39
39
  showEmpty = props.showEmpty,
40
- showBalanceSymbol = props.showBalanceSymbol;
40
+ showBalanceSymbol = props.showBalanceSymbol,
41
+ onChangeDebounce = props.onChangeDebounce,
42
+ showStatus = props.showStatus,
43
+ nameTitleStyle = props.nameTitleStyle,
44
+ enableEditAmount = props.enableEditAmount,
45
+ useExternalDetail = props.useExternalDetail,
46
+ onDetail = props.onDetail,
47
+ formatBalance = props.formatBalance,
48
+ formatBalanceTitle = props.formatBalanceTitle,
49
+ formatRedeem = props.formatRedeem,
50
+ formatRedeemTitle = props.formatRedeemTitle,
51
+ onBeforeEditAmount = props.onBeforeEditAmount,
52
+ onItemClick = props.onItemClick;
41
53
  return data.length ? /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
42
54
  options: data,
43
55
  value: value,
@@ -48,9 +60,16 @@ var PisellCardList = function PisellCardList(props) {
48
60
  onChange: onChange,
49
61
  iconPosition: "hide",
50
62
  fullWidth: fullWidth,
63
+ onChangeDebounce: onChangeDebounce,
64
+ onItemClick: onItemClick,
51
65
  renderOption: function renderOption(item, active, index) {
52
66
  return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, item, {
53
67
  active: active,
68
+ mode: mode,
69
+ showActiveIcon: true,
70
+ showStatus: showStatus || (item === null || item === void 0 ? void 0 : item.showStatus),
71
+ cardStatus: item === null || item === void 0 ? void 0 : item.cardStatus,
72
+ nameTitleStyle: nameTitleStyle || (item === null || item === void 0 ? void 0 : item.nameTitleStyle),
54
73
  showName: showName || (item === null || item === void 0 ? void 0 : item.showName),
55
74
  showBalance: showBalance || (item === null || item === void 0 ? void 0 : item.showBalance),
56
75
  showCode: showCode || (item === null || item === void 0 ? void 0 : item.showCode),
@@ -63,18 +82,36 @@ var PisellCardList = function PisellCardList(props) {
63
82
  showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol),
64
83
  showActions: props.showActions || (item === null || item === void 0 ? void 0 : item.showActions),
65
84
  actions: props.actions || (item === null || item === void 0 ? void 0 : item.actions),
85
+ enableEditAmount: enableEditAmount || (item === null || item === void 0 ? void 0 : item.enableEditAmount),
86
+ useExternalDetail: useExternalDetail || (item === null || item === void 0 ? void 0 : item.useExternalDetail),
87
+ onDetail: function onDetail(record) {
88
+ var _props$onDetail;
89
+ return props === null || props === void 0 || (_props$onDetail = props.onDetail) === null || _props$onDetail === void 0 ? void 0 : _props$onDetail.call(props, record, index);
90
+ },
66
91
  beforeEdit: function beforeEdit(record) {
67
92
  var _props$beforeEdit;
68
93
  return props === null || props === void 0 || (_props$beforeEdit = props.beforeEdit) === null || _props$beforeEdit === void 0 ? void 0 : _props$beforeEdit.call(props, record, index);
69
94
  },
95
+ onConfirmEditAmount: function onConfirmEditAmount(value) {
96
+ var _props$onConfirmEditA;
97
+ (_props$onConfirmEditA = props.onConfirmEditAmount) === null || _props$onConfirmEditA === void 0 || _props$onConfirmEditA.call(props, value, index, item);
98
+ },
70
99
  onConfirmEdit: function onConfirmEdit(newVal) {
71
100
  var _props$onConfirmEdit;
72
- (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index);
101
+ (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index, item);
73
102
  },
103
+ formatBalance: formatBalance || (item === null || item === void 0 ? void 0 : item.formatBalance),
104
+ formatBalanceTitle: formatBalanceTitle || (item === null || item === void 0 ? void 0 : item.formatBalanceTitle),
74
105
  type: type,
75
106
  style: direction === 'vertical' || direction === 'horizontal' && fullWidth ? {
76
107
  width: '100%'
77
- } : {}
108
+ } : {},
109
+ formatRedeem: formatRedeem || (item === null || item === void 0 ? void 0 : item.formatRedeem),
110
+ formatRedeemTitle: formatRedeemTitle || (item === null || item === void 0 ? void 0 : item.formatRedeemTitle),
111
+ onBeforeEditAmount: function onBeforeEditAmount(record) {
112
+ var _props$onBeforeEditAm;
113
+ return props === null || props === void 0 || (_props$onBeforeEditAm = props.onBeforeEditAmount) === null || _props$onBeforeEditAm === void 0 ? void 0 : _props$onBeforeEditAm.call(props, record, index, item);
114
+ }
78
115
  }));
79
116
  }
80
117
  }) : showEmpty && (empty || /*#__PURE__*/React.createElement(PisellEmpty, null));
@@ -72,4 +72,12 @@
72
72
  // .pisell-card-disabled {
73
73
  // color: var(--Gray-500, #667085);
74
74
  // padding-bottom: 36px;
75
- // }
75
+ // }
76
+
77
+ .keyboard-modal-wrapper {
78
+ .pisell-amount-keyboard-wrap {
79
+ padding: 10px;
80
+ background: rgba(29, 41, 57, .8) !important;
81
+ border-radius: 10px;
82
+ }
83
+ }
@@ -5,6 +5,7 @@ export interface PisellCheckboxGroupOption {
5
5
  label: string;
6
6
  value: string;
7
7
  disabled?: boolean;
8
+ error?: boolean;
8
9
  [key: string]: any;
9
10
  }
10
11
  declare type PisellCheckboxGroupValue = string | string[] | any;
@@ -23,6 +24,8 @@ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivEl
23
24
  iconPosition?: 'left' | 'right' | 'hide';
24
25
  optionClassName?: string;
25
26
  optionActiveClassName?: string;
27
+ onChangeDebounce?: boolean;
28
+ onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: PisellCheckboxGroupOption) => void;
26
29
  }
27
30
  /**
28
31
  * @title: PisellCheckboxGroup
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["platform", "gap", "style", "options", "onChange", "value", "renderOption", "padding", "rowKey", "mode", "direction", "fullWidth", "iconPosition", "optionClassName", "optionActiveClassName"];
2
+ var _excluded = ["platform", "gap", "style", "options", "onChange", "value", "renderOption", "padding", "rowKey", "mode", "direction", "fullWidth", "iconPosition", "optionClassName", "optionActiveClassName", "onChangeDebounce", "onItemClick"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18,6 +18,7 @@ import React, { useEffect, useMemo } from 'react';
18
18
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
19
19
  import classNames from 'classnames';
20
20
  import { Checkbox, Radio } from 'antd';
21
+ import { useDebounceFn } from "ahooks";
21
22
  import { isNumber } from '@pisell/utils';
22
23
  import { changeArray } from '@pisell/utils';
23
24
  import "./index.less";
@@ -63,6 +64,8 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
63
64
  iconPosition = _props$iconPosition === void 0 ? 'left' : _props$iconPosition,
64
65
  optionClassName = props.optionClassName,
65
66
  optionActiveClassName = props.optionActiveClassName,
67
+ onChangeDebounce = props.onChangeDebounce,
68
+ onItemClick = props.onItemClick,
66
69
  rest = _objectWithoutProperties(props, _excluded);
67
70
  var _useState = useState([]),
68
71
  _useState2 = _slicedToArray(_useState, 2),
@@ -141,6 +144,14 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
141
144
  // 单选模式, 只返回第一个值
142
145
  onChange === null || onChange === void 0 || onChange(mode === 'single' ? val[0] : val, item);
143
146
  };
147
+ var _useDebounceFn = useDebounceFn(function (key, item) {
148
+ handleSelectItem(key, item);
149
+ }, {
150
+ wait: 400,
151
+ leading: true,
152
+ trailing: false
153
+ }),
154
+ run = _useDebounceFn.run;
144
155
 
145
156
  /**
146
157
  * @title: 选择
@@ -173,14 +184,19 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
173
184
  }), options.map(function (option, index) {
174
185
  var active = _value.includes(option[rowKey]);
175
186
  return /*#__PURE__*/React.createElement(PisellRow, {
176
- className: classNames('pisell-checkbox-group-item', optionClassName, _defineProperty({
187
+ className: classNames('pisell-checkbox-group-item', optionClassName, _defineProperty(_defineProperty({
177
188
  'pisell-checkbox-group-item-active': active
178
- }, optionActiveClassName, active)),
189
+ }, optionActiveClassName, active), 'pisell-checkbox-group-item-error', option.error)),
179
190
  key: option[rowKey],
180
191
  gap: 10,
181
192
  style: rowStyle,
182
193
  onClick: function onClick(e) {
194
+ onItemClick === null || onItemClick === void 0 || onItemClick(e, option);
183
195
  if (option.disabled) return;
196
+ if (onChangeDebounce) {
197
+ run(option[rowKey], option);
198
+ return;
199
+ }
184
200
  handleSelectItem(option[rowKey], option);
185
201
  },
186
202
  leftContent: iconPosition === 'left' && /*#__PURE__*/React.createElement(CheckBoxItem, {
@@ -24,10 +24,31 @@
24
24
 
25
25
  &.pisell-checkbox-group-item-active {
26
26
  &::before {
27
- border-width: 2px;
27
+ border-width: 4px;
28
28
  border-color: var(--theme-color);
29
+ background: var(--Primary-50, #F9F5FF);
30
+ z-index: 1;
31
+ box-sizing: border-box;
32
+ }
33
+ .pisell-row-center {
34
+ .pisell-row {
35
+ position: relative;
36
+ z-index: 1;
37
+ }
29
38
  }
39
+ .pisell-row-right {
40
+ position: relative;
41
+ z-index: 1;
42
+ }
43
+ }
30
44
 
45
+ &.pisell-checkbox-group-item-error {
46
+ &::before {
47
+ border-color: var(--Error-500, #F04438);
48
+ border-width: 2px;
49
+ background: var(--Error-50, #FEF3F2);
50
+ z-index: 1;
51
+ }
31
52
  }
32
53
  }
33
54
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,4 +1,13 @@
1
+ import React from 'react';
1
2
  import './index.less';
3
+ export interface FormatOption {
4
+ /** 原始 DOM 元素 */
5
+ originDom: React.ReactNode;
6
+ /** 是否选中状态 */
7
+ active: boolean;
8
+ /** 完整的组件数据 */
9
+ data: PisellWalletPassCardProps;
10
+ }
2
11
  export interface PisellWalletPassCardProps {
3
12
  id: number;
4
13
  /** 卡片样式 */
@@ -34,7 +43,7 @@ export interface PisellWalletPassCardProps {
34
43
  /** 是否展示商品名称 */
35
44
  showName?: boolean;
36
45
  /** 是否展示共享店铺名称 */
37
- showStoreName?: boolean;
46
+ showStoreName?: boolean | ((data: any) => boolean);
38
47
  /** 是否展示使用金额 */
39
48
  showRedeem?: boolean;
40
49
  /** 是否展示余额 */
@@ -78,6 +87,49 @@ export interface PisellWalletPassCardProps {
78
87
  beforeEdit?: (value: any) => Promise<any> | boolean | void;
79
88
  /** 编辑弹窗点击提交 */
80
89
  onConfirmEdit?: (value: any) => void;
90
+ /** 编辑金额事件 */
91
+ onConfirmEditAmount?: (value: number) => void;
92
+ /** 详情按钮点击事件 */
93
+ onDetail?: (data: {
94
+ id: number;
95
+ name: string;
96
+ storeName: string;
97
+ balance?: number;
98
+ redeem?: number;
99
+ code: string;
100
+ validDate: string;
101
+ originData?: any;
102
+ }) => void;
103
+ /** 是否使用外部详情处理(当为 true 且提供了 onDetail 时,不显示内部模态框) */
104
+ useExternalDetail?: boolean;
105
+ /** 单选或者多选 */
106
+ mode?: 'multiple' | 'single';
107
+ /** 是否展示选中图标 */
108
+ showActiveIcon?: boolean;
109
+ /** 开启编辑金额 */
110
+ enableEditAmount?: boolean;
111
+ /** 显示状态标识 */
112
+ showStatus?: boolean;
113
+ /** 名称标题字号字重颜色配置 */
114
+ nameTitleStyle?: {
115
+ fontSize: number;
116
+ fontWeight: number;
117
+ color: string;
118
+ };
119
+ /** 卡片状态 */
120
+ cardStatus?: 'used' | 'expired' | 'disabled' | 'conflict';
121
+ /** 自定义余额格式化函数,如果提供则优先使用 */
122
+ formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
123
+ /** 自定义余额标题格式化函数,如果提供则优先使用 */
124
+ formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
125
+ /** 自定义使用金额格式化函数,如果提供则优先使用 */
126
+ formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
127
+ /** 自定义使用金额标题格式化函数,如果提供则优先使用 */
128
+ formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
129
+ /** 最大使用金额 */
130
+ maxRedeem?: number;
131
+ /** 编辑金额前事件 */
132
+ onBeforeEditAmount?: (value: any) => Promise<any> | boolean | void;
81
133
  [key: string]: any;
82
134
  }
83
135
  declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;