@pisell/materials 2.2.80 → 2.2.82

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 (253) 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 +2 -2
  6. package/build/lowcode/preview.js +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +41 -31
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +37 -27
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +7 -6
  21. package/es/components/date-picker/index.d.ts +1 -0
  22. package/es/components/iconfont/index.js +1 -1
  23. package/es/components/page/index.d.ts +1 -0
  24. package/es/components/pisellInput/index.d.ts +1 -0
  25. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  26. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  27. package/es/components/pisellModal/components/index.d.ts +1 -0
  28. package/es/components/pisellToast/index.js +3 -0
  29. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  30. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  31. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  32. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  33. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  34. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  35. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  36. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  37. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  38. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  39. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  40. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  41. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  42. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  43. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  44. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  45. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  46. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  47. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  48. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  49. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  50. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  51. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  52. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  53. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  54. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  55. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  56. package/es/components/productCard/cartSkuCard/index.js +195 -0
  57. package/es/components/productCard/cartSkuCard/index.less +69 -0
  58. package/es/components/productCard/cartSkuCard/locales.d.ts +93 -0
  59. package/es/components/productCard/cartSkuCard/locales.js +27 -0
  60. package/es/components/productCard/components/AmountFooter/index.js +22 -6
  61. package/es/components/productCard/components/AmountFooter/index.less +28 -1
  62. package/es/components/productCard/components/Packages/utils.d.ts +2 -2
  63. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  64. package/es/components/productCard/components/Warning/index.js +48 -0
  65. package/es/components/productCard/index.d.ts +3 -1
  66. package/es/components/productCard/index.js +10 -8
  67. package/es/components/productCard/locales.d.ts +3 -0
  68. package/es/components/productCard/locales.js +6 -3
  69. package/es/components/productCard/status.js +3 -1
  70. package/es/components/productCard/types.d.ts +1 -0
  71. package/es/components/productCard/utils.js +8 -6
  72. package/es/components/select-time/index.d.ts +1 -0
  73. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  74. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  75. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  76. package/es/components/table/Actions/index.d.ts +1 -0
  77. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  78. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  79. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  80. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/index.d.ts +3 -2
  85. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  92. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  93. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  94. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  95. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  97. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  98. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  99. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  100. package/es/components/table/Table/utils.d.ts +1 -1
  101. package/es/components/versionSelect/index.d.ts +1 -0
  102. package/es/utils/index.d.ts +1 -1
  103. package/es/utils/platform.d.ts +1 -1
  104. package/lib/components/batch-editor/index.d.ts +1 -0
  105. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  106. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  107. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  108. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  109. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  110. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  111. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  112. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  113. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -6
  114. package/lib/components/date-picker/index.d.ts +1 -0
  115. package/lib/components/iconfont/index.js +1 -1
  116. package/lib/components/page/index.d.ts +1 -0
  117. package/lib/components/pisellInput/index.d.ts +1 -0
  118. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  119. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  120. package/lib/components/pisellModal/components/index.d.ts +1 -0
  121. package/lib/components/pisellToast/index.js +3 -0
  122. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  123. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  124. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  125. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  126. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  127. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  128. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  129. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  130. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  131. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  132. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  133. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  134. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  135. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  136. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  137. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  138. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  139. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  140. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  141. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  142. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  143. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  144. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  145. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  146. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  147. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  148. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  149. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  150. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  151. package/lib/components/productCard/cartSkuCard/locales.d.ts +93 -0
  152. package/lib/components/productCard/cartSkuCard/locales.js +58 -0
  153. package/lib/components/productCard/components/AmountFooter/index.js +16 -6
  154. package/lib/components/productCard/components/AmountFooter/index.less +28 -1
  155. package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
  156. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  157. package/lib/components/productCard/components/Warning/index.js +68 -0
  158. package/lib/components/productCard/index.d.ts +3 -1
  159. package/lib/components/productCard/index.js +6 -11
  160. package/lib/components/productCard/locales.d.ts +3 -0
  161. package/lib/components/productCard/locales.js +6 -3
  162. package/lib/components/productCard/status.js +3 -1
  163. package/lib/components/productCard/types.d.ts +1 -0
  164. package/lib/components/productCard/utils.js +7 -6
  165. package/lib/components/select-time/index.d.ts +1 -0
  166. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  167. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  168. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  169. package/lib/components/table/Actions/index.d.ts +1 -0
  170. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  171. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  172. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  173. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  176. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  177. package/lib/components/table/Table/fields/index.d.ts +3 -2
  178. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  179. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  180. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  181. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  182. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  183. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  184. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  185. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  186. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  187. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  188. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  189. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  190. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  191. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  192. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  193. package/lib/components/table/Table/utils.d.ts +1 -1
  194. package/lib/components/versionSelect/index.d.ts +1 -0
  195. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +8 -1
  196. package/lib/utils/index.d.ts +1 -1
  197. package/lib/utils/platform.d.ts +1 -1
  198. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  199. package/package.json +1 -1
  200. package/es/components/appVersionControl/index.d.ts +0 -4
  201. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  202. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  203. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  204. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  205. package/es/components/drag-sort-tree/index.d.ts +0 -4
  206. package/es/components/iconfont/index.d.ts +0 -8
  207. package/es/components/login-and-register/index.d.ts +0 -82
  208. package/es/components/media/index.d.ts +0 -4
  209. package/es/components/media/index.js +0 -340
  210. package/es/components/media/index.less +0 -100
  211. package/es/components/pisell-config-provider/index.d.ts +0 -12
  212. package/es/components/pisellAdjustPrice/index.d.ts +0 -9
  213. package/es/components/pisellEmpty/index.d.ts +0 -19
  214. package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
  215. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  216. package/es/components/productCard/components/Time/index.d.ts +0 -3
  217. package/es/components/table/Table/index.d.ts +0 -4
  218. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  219. package/es/components/table/types.d.ts +0 -251
  220. package/es/components/versionModal/index.d.ts +0 -23
  221. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
  222. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  223. package/es/components/walletCard/index.d.ts +0 -67
  224. package/es/locales/en-US.d.ts +0 -278
  225. package/es/locales/zh-CN.d.ts +0 -273
  226. package/es/locales/zh-TW.d.ts +0 -273
  227. package/lib/components/appVersionControl/index.d.ts +0 -4
  228. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  229. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  230. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  231. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  232. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  233. package/lib/components/iconfont/index.d.ts +0 -8
  234. package/lib/components/login-and-register/index.d.ts +0 -82
  235. package/lib/components/media/index.d.ts +0 -4
  236. package/lib/components/media/index.js +0 -265
  237. package/lib/components/media/index.less +0 -100
  238. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  239. package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
  240. package/lib/components/pisellEmpty/index.d.ts +0 -19
  241. package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
  242. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  243. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  244. package/lib/components/table/Table/index.d.ts +0 -4
  245. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  246. package/lib/components/table/types.d.ts +0 -251
  247. package/lib/components/versionModal/index.d.ts +0 -23
  248. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
  249. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  250. package/lib/components/walletCard/index.d.ts +0 -67
  251. package/lib/locales/en-US.d.ts +0 -278
  252. package/lib/locales/zh-CN.d.ts +0 -273
  253. package/lib/locales/zh-TW.d.ts +0 -273
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
2
+ dataSourceKey: string | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "button" | "link";
55
+ type: "link" | "button";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "middle" | "large";
73
+ openContentSize: "small" | "large" | "middle";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -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) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -59,13 +60,11 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | 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 & {
67
- onChange: (value: string) => void;
68
- } & 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("./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("./Input/type").InputProps> & {
69
68
  JSON: import("react").FC<any>;
70
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
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>;
@@ -85,7 +84,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
85
84
  name?: string | undefined;
86
85
  fieldKey?: string | undefined;
87
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
+ }) | (import("react").FC<{}> & {
89
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
89
  } & {
91
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
96
  extraParams?: Record<string, any> | undefined;
98
97
  } & {
99
98
  dataSource?: any;
100
- }) => 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>;
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
102
  export { getFieldComponent, formFieldMap };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -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.4.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.6.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 { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -10,6 +10,9 @@ var PisellToast = function PisellToast(props) {
10
10
  actionText = props.actionText,
11
11
  onClose = props.onClose;
12
12
  var key = getUniqueId();
13
+ if (!message) {
14
+ return alert(content);
15
+ }
13
16
  message.open({
14
17
  key: key,
15
18
  content: /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IProps {
4
+ isShowImage?: boolean;
5
+ dataSource: {
6
+ image?: string;
7
+ bundle?: any[];
8
+ options?: any[];
9
+ product_option_string?: string;
10
+ name?: string;
11
+ symbol?: string;
12
+ price?: string | number;
13
+ total?: number;
14
+ origin_total?: number;
15
+ num?: number;
16
+ };
17
+ style?: React.CSSProperties;
18
+ isMainProduct?: boolean;
19
+ }
20
+ declare const BasicInfo: (props: IProps) => JSX.Element;
21
+ export default BasicInfo;
@@ -0,0 +1,61 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import { image as imageAli, formatAmount } from '@pisell/utils';
4
+ import Specs from "../specs";
5
+ import { PREFIX } from "../../index";
6
+ import "./index.less";
7
+ var BasicInfo = function BasicInfo(props) {
8
+ var isShowImage = props.isShowImage,
9
+ _props$dataSource = props.dataSource,
10
+ dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
11
+ style = props.style,
12
+ isMainProduct = props.isMainProduct;
13
+ var image = dataSource.image,
14
+ bundle = dataSource.bundle,
15
+ options = dataSource.options,
16
+ product_option_string = dataSource.product_option_string,
17
+ name = dataSource.name,
18
+ price = dataSource.price,
19
+ symbol = dataSource.symbol,
20
+ _dataSource$total = dataSource.total,
21
+ total = _dataSource$total === void 0 ? 0 : _dataSource$total,
22
+ _dataSource$origin_to = dataSource.origin_total,
23
+ origin_total = _dataSource$origin_to === void 0 ? 0 : _dataSource$origin_to,
24
+ _dataSource$num = dataSource.num,
25
+ num = _dataSource$num === void 0 ? 1 : _dataSource$num;
26
+ var renderNumTag = function renderNumTag() {
27
+ if (num > 1) return /*#__PURE__*/React.createElement("div", {
28
+ className: classNames("num-tag", {
29
+ 'is-main': isMainProduct
30
+ })
31
+ }, num < 99 ? num : '99+');
32
+ return null;
33
+ };
34
+ var hasSpecs = (bundle === null || bundle === void 0 ? void 0 : bundle.length) || (options === null || options === void 0 ? void 0 : options.length) || product_option_string;
35
+ return /*#__PURE__*/React.createElement("div", {
36
+ className: "".concat(PREFIX, "__basic-info"),
37
+ style: style || {}
38
+ }, renderNumTag(), isShowImage && image && /*#__PURE__*/React.createElement("img", {
39
+ src: imageAli.ali(image, 64),
40
+ className: "product-cover"
41
+ }), (!isShowImage || !image) && num > 1 ? /*#__PURE__*/React.createElement("div", {
42
+ style: {
43
+ width: 26
44
+ }
45
+ }) : null, /*#__PURE__*/React.createElement("div", {
46
+ className: "product-info"
47
+ }, /*#__PURE__*/React.createElement("div", {
48
+ className: "product-name"
49
+ }, name), hasSpecs ? /*#__PURE__*/React.createElement(Specs, {
50
+ dataSource: dataSource
51
+ }) : /*#__PURE__*/React.createElement("div", {
52
+ className: "product-price"
53
+ }, formatAmount(price, 2, symbol))), /*#__PURE__*/React.createElement("div", {
54
+ className: "product-amount"
55
+ }, /*#__PURE__*/React.createElement("div", {
56
+ className: "total-amont"
57
+ }, formatAmount(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /*#__PURE__*/React.createElement("div", {
58
+ className: "origin-amount"
59
+ }, formatAmount(origin_total * num, 2, symbol)) : null));
60
+ };
61
+ export default BasicInfo;
@@ -0,0 +1,98 @@
1
+ .pisell-cart-sku-card {
2
+ &__basic-info {
3
+ display: flex;
4
+ gap: 4px;
5
+ position: relative;
6
+
7
+ .num-tag {
8
+ background-color: #7f56da;
9
+ position: absolute;
10
+ left: 0;
11
+ top: 0;
12
+ border-radius: 12px;
13
+ min-width: 24px;
14
+ height: 24px;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ z-index: 1;
19
+
20
+ color: var(--Base-White, #fff);
21
+ font-size: 16px;
22
+ font-style: normal;
23
+ font-weight: 600;
24
+ line-height: 16px;
25
+
26
+ &.is-main {
27
+ left: -4px;
28
+ top: -4px;
29
+ }
30
+ }
31
+
32
+ img {
33
+ width: 48px;
34
+ height: 48px;
35
+ flex-shrink: 0;
36
+ border-radius: 6px;
37
+ }
38
+
39
+ .product-info {
40
+ flex: 1;
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 4px;
44
+ flex: 1 0 0;
45
+ flex-wrap: wrap;
46
+ overflow: hidden;
47
+
48
+ .product-name {
49
+ color: var(--Gray-900, #101828);
50
+ font-size: 14px;
51
+ font-style: normal;
52
+ font-weight: 600;
53
+ line-height: 20px;
54
+ width: 100%;
55
+ overflow: hidden;
56
+ text-overflow: ellipsis;
57
+ white-space: nowrap;
58
+ }
59
+
60
+ .product-price {
61
+ color: var(--Gray-900, #101828);
62
+ font-size: 14px;
63
+ font-style: normal;
64
+ font-weight: 500;
65
+ line-height: 20px;
66
+ width: 100%;
67
+ }
68
+ }
69
+
70
+ .product-amount {
71
+ display: flex;
72
+ align-items: center;
73
+ gap: 4px;
74
+ flex-wrap: wrap;
75
+ flex-shrink: 0;
76
+ .total-amont {
77
+ color: var(--Base-Black, #000);
78
+ text-align: center;
79
+ font-size: 14px;
80
+ font-style: normal;
81
+ font-weight: 600;
82
+ line-height: 20px;
83
+ width: 100%;
84
+ }
85
+
86
+ .origin-amount {
87
+ color: var(--Gray-500, #667085);
88
+ text-align: center;
89
+ font-size: 12px;
90
+ font-style: normal;
91
+ font-weight: 400;
92
+ line-height: 18px;
93
+ text-decoration-line: line-through;
94
+ width: 100%;
95
+ }
96
+ }
97
+ }
98
+ }
@@ -0,0 +1,2 @@
1
+ declare const DiscountReason: (props: any) => JSX.Element;
2
+ export default DiscountReason;
@@ -0,0 +1,51 @@
1
+ import React, { useMemo } from 'react';
2
+ import { Divider, Tag } from 'antd';
3
+ import { locales } from '@pisell/utils';
4
+ import { PREFIX } from "../../index";
5
+ var DiscountReason = function DiscountReason(props) {
6
+ var _props$dataSource = props.dataSource,
7
+ dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
8
+ hideDivider = props.hideDivider;
9
+ var total = dataSource.total,
10
+ origin_total = dataSource.origin_total,
11
+ symbol = dataSource.symbol,
12
+ tip = dataSource.tip,
13
+ num = dataSource.num,
14
+ discount_reason = dataSource.discount_reason;
15
+ var isDiscount = useMemo(function () {
16
+ // item中没有该属性则不展示
17
+ if (!origin_total) return false;
18
+ return Number(total) != Number(origin_total);
19
+ }, [total, origin_total]);
20
+ var renderDivider = function renderDivider() {
21
+ return isDiscount && discount_reason && !hideDivider ? /*#__PURE__*/React.createElement(Divider, {
22
+ style: {
23
+ margin: '4px 0'
24
+ }
25
+ }) : null;
26
+ };
27
+ var renderDiscountReason = function renderDiscountReason() {
28
+ if (isDiscount && discount_reason) {
29
+ if (Array.isArray(discount_reason)) {
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ className: "".concat(PREFIX, "_discount-reason"),
32
+ style: {
33
+ display: 'flex',
34
+ flexWrap: 'wrap',
35
+ gap: '4px'
36
+ }
37
+ }, discount_reason.map(function (reason, index) {
38
+ return /*#__PURE__*/React.createElement(Tag, {
39
+ key: index,
40
+ color: "red"
41
+ }, reason);
42
+ }));
43
+ }
44
+ return /*#__PURE__*/React.createElement("div", {
45
+ className: "".concat(PREFIX, "_discount-reason")
46
+ }, /*#__PURE__*/React.createElement("span", null, "".concat(locales.getText('pisell2.product.card.discount.reason'), ": ").concat(discount_reason)));
47
+ }
48
+ };
49
+ return /*#__PURE__*/React.createElement(React.Fragment, null, renderDivider(), renderDiscountReason());
50
+ };
51
+ export default DiscountReason;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Holders: (props: any) => JSX.Element | null;
4
+ export default Holders;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import Iconfont from "../../../../iconfont";
3
+ import { PREFIX } from "../../index";
4
+ import "./index.less";
5
+ var Holders = function Holders(props) {
6
+ var _props$dataSource = props.dataSource,
7
+ dataSource = _props$dataSource === void 0 ? {} : _props$dataSource;
8
+ var holders = dataSource.holders,
9
+ holder_id = dataSource.holder_id;
10
+ if (!holder_id) return null;
11
+ var renderHolder = function renderHolder(id) {
12
+ if (!id) return null;
13
+ var holder = holders.find(function (item) {
14
+ return item.id === id;
15
+ });
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: "holder-item",
18
+ key: id
19
+ }, /*#__PURE__*/React.createElement(Iconfont, {
20
+ className: "holder-icon",
21
+ type: "pisell2-user-check-01"
22
+ }), /*#__PURE__*/React.createElement("span", {
23
+ className: "holder-label"
24
+ }, (holder === null || holder === void 0 ? void 0 : holder.label) || id));
25
+ };
26
+ return /*#__PURE__*/React.createElement("div", {
27
+ className: "".concat(PREFIX, "__holders")
28
+ }, Array.isArray(holder_id) ? holder_id === null || holder_id === void 0 ? void 0 : holder_id.map(function (id) {
29
+ return renderHolder(id);
30
+ }) : renderHolder(holder_id));
31
+ };
32
+ export default Holders;
@@ -0,0 +1,32 @@
1
+ .pisell-cart-sku-card__holders {
2
+ user-select: none;
3
+
4
+ display: flex;
5
+ gap: 16px;
6
+ overflow: hidden;
7
+
8
+ .holder-item {
9
+ overflow: hidden;
10
+ white-space: nowrap;
11
+ display: flex;
12
+ align-items: center;
13
+ min-width: 30px;
14
+
15
+ .holder-icon {
16
+ font-size: 16px;
17
+ color: #7f56da;
18
+ margin-right: 2;
19
+ }
20
+
21
+ .holder-label {
22
+ color: #667085;
23
+ font-size: 14px;
24
+ font-weight: 500;
25
+ line-height: 20px;
26
+ display: inline-block;
27
+ overflow: hidden;
28
+ text-overflow: ellipsis;
29
+ white-space: nowrap;
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,10 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ isShowImage?: boolean;
4
+ dataSource: {
5
+ bundle?: any[];
6
+ symbol?: string;
7
+ };
8
+ }
9
+ declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
+ export default Packages;
@@ -0,0 +1,52 @@
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
+ 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; }
3
+ 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; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React from 'react';
8
+ import { Divider } from 'antd';
9
+ import { locales } from '@pisell/utils';
10
+ import CollapsibleList from "../../../components/Packages/components/collapsibleList";
11
+ import BasicInfo from "../basicInfo";
12
+ import { PREFIX } from "../../index";
13
+ import "./index.less";
14
+ var Packages = function Packages(_ref) {
15
+ var isShowImage = _ref.isShowImage,
16
+ _ref$dataSource = _ref.dataSource,
17
+ dataSource = _ref$dataSource === void 0 ? {} : _ref$dataSource;
18
+ var _dataSource$bundle = dataSource.bundle,
19
+ bundle = _dataSource$bundle === void 0 ? [] : _dataSource$bundle,
20
+ _dataSource$symbol = dataSource.symbol,
21
+ symbol = _dataSource$symbol === void 0 ? '$' : _dataSource$symbol;
22
+ return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
23
+ style: {
24
+ margin: '4px 0'
25
+ }
26
+ }), /*#__PURE__*/React.createElement("div", {
27
+ className: "".concat(PREFIX, "__packages-wrap")
28
+ }, /*#__PURE__*/React.createElement("div", {
29
+ className: "packages-title"
30
+ }, locales.getText('pisell2.cart.sku-card.packages.title')), /*#__PURE__*/React.createElement(CollapsibleList, {
31
+ style: {
32
+ marginTop: 4
33
+ },
34
+ list: bundle || [],
35
+ renderItem: function renderItem(item) {
36
+ return /*#__PURE__*/React.createElement(BasicInfo, {
37
+ isShowImage: isShowImage,
38
+ dataSource: _objectSpread(_objectSpread({}, item), {}, {
39
+ name: item.title,
40
+ image: item.cover,
41
+ symbol: symbol
42
+ }),
43
+ style: {
44
+ border: '1px solid #D0D5DD',
45
+ borderRadius: 4,
46
+ padding: 4
47
+ }
48
+ });
49
+ }
50
+ }))) : null;
51
+ };
52
+ export default Packages;
@@ -0,0 +1,22 @@
1
+ .pisell-cart-sku-card__packages-wrap {
2
+ padding: 0 4px;
3
+
4
+ .packages-title {
5
+ color: #101828;
6
+ font-size: 12px;
7
+ font-weight: 600;
8
+ line-height: 18px;
9
+ word-wrap: break-word;
10
+ }
11
+
12
+ .pisell2-collapsible-list {
13
+ gap: 4px;
14
+ }
15
+
16
+ .product-info {
17
+ .product-name,
18
+ .product-price {
19
+ color: #667085;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @title: 金额是否是负
3
+ * @description:
4
+ * @param {string} type
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-11-22 10:01
8
+ */
9
+ export declare const minusSign: (item: any, type?: string) => "-" | "";
10
+ /**
11
+ * @title: 金额格式化
12
+ * @description:
13
+ * @param {number} price
14
+ * @param {string} amountSymbol
15
+ * @param {number} digit
16
+ * @return {*}
17
+ * @Author: WangHan
18
+ * @Date: 2024-11-22 10:58
19
+ */
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;