@pisell/materials 6.3.4 → 6.4.2

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 (267) 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 +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +28 -24
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +34 -30
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/classicLayout/index.js +4 -5
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  16. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/index.d.ts +10 -10
  19. package/es/components/filter/index.d.ts +1 -0
  20. package/es/components/icon/index.js +5 -5
  21. package/es/components/iconfont/index.js +1 -1
  22. package/es/components/list/index.d.ts +1 -0
  23. package/es/components/list/index.js +6 -6
  24. package/es/components/pisell-config-provider/context.d.ts +2 -0
  25. package/es/components/pisell-config-provider/index.d.ts +1 -0
  26. package/es/components/pisellAdjustPrice/index.js +5 -1
  27. package/es/components/pisellAdjustPrice/type.d.ts +2 -0
  28. package/es/components/pisellCardList/index.d.ts +32 -2
  29. package/es/components/pisellCardList/index.js +42 -3
  30. package/es/components/pisellCardList/index.less +9 -1
  31. package/es/components/pisellCheckboxGroup/index.d.ts +4 -0
  32. package/es/components/pisellCheckboxGroup/index.js +23 -4
  33. package/es/components/pisellCheckboxGroup/index.less +28 -1
  34. package/es/components/pisellGoodPassCard/index.d.ts +1 -0
  35. package/es/components/pisellGoodPassCard/index.js +17 -5
  36. package/es/components/pisellText/components/Amount/index.js +2 -1
  37. package/es/components/pisellToast/index.js +3 -0
  38. package/es/components/pisellWalletPassCard/index.d.ts +53 -1
  39. package/es/components/pisellWalletPassCard/index.js +333 -75
  40. package/es/components/pisellWalletPassCard/index.less +48 -11
  41. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  42. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
  43. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
  44. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  45. package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +82 -0
  46. package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
  47. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  48. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +56 -0
  49. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  50. package/es/components/productCard/cartSkuCard/components/Note/index.js +29 -0
  51. package/es/components/productCard/cartSkuCard/components/Note/index.less +27 -0
  52. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  53. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +93 -0
  54. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
  55. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  56. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  57. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  58. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  59. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  60. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  61. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  62. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  63. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  64. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  65. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  66. package/es/components/productCard/cartSkuCard/components/resources/index.js +39 -0
  67. package/es/components/productCard/cartSkuCard/components/resources/index.less +19 -0
  68. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  69. package/es/components/productCard/cartSkuCard/components/sales/index.js +57 -0
  70. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  71. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  72. package/es/components/productCard/cartSkuCard/components/specs/index.js +44 -0
  73. package/es/components/productCard/cartSkuCard/components/specs/index.less +34 -0
  74. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  75. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +292 -0
  76. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  77. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  78. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +54 -0
  79. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
  80. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  81. package/es/components/productCard/cartSkuCard/index.js +201 -0
  82. package/es/components/productCard/cartSkuCard/index.less +33 -0
  83. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  84. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  85. package/es/components/productCard/components/Action/index.js +14 -1
  86. package/es/components/productCard/components/Action/index.less +3 -0
  87. package/es/components/productCard/components/Header/index.js +23 -8
  88. package/es/components/productCard/components/Header/index.less +16 -1
  89. package/es/components/productCard/components/Sales/index.js +2 -2
  90. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +3 -1
  91. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  92. package/es/components/productCard/index.d.ts +3 -1
  93. package/es/components/productCard/index.js +5 -2
  94. package/es/components/productCard/index.less +6 -0
  95. package/es/components/productCard/locales.js +3 -0
  96. package/es/components/qrcode/index.js +1 -1
  97. package/es/components/sort/components/InlineMenu/index.js +1 -1
  98. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  99. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  100. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  101. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  102. package/es/components/table/Header/Buttons/index.js +5 -5
  103. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  104. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  105. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  106. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  107. package/es/components/table/Table/SelectField/index.js +4 -4
  108. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  109. package/es/components/table/Table/fields/index.d.ts +3 -2
  110. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  111. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  112. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  113. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  114. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  115. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  116. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  117. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  118. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  119. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  120. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  121. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  122. package/es/components/table/Table/utils.d.ts +1 -1
  123. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  124. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  125. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  126. package/es/components/translation/utils.js +5 -5
  127. package/es/components/virtual-keyboard/Number/index.js +4 -1
  128. package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
  129. package/es/components/virtual-keyboard/index.d.ts +11 -0
  130. package/es/components/virtual-keyboard/index.js +88 -3
  131. package/es/components/virtual-keyboard/index.less +33 -1
  132. package/es/components/walletCard/Guide/index.js +12 -1
  133. package/es/hooks/useResponsive.js +2 -2
  134. package/es/index.d.ts +1 -0
  135. package/es/locales/en-US.d.ts +6 -0
  136. package/es/locales/en-US.js +9 -2
  137. package/es/locales/zh-CN.d.ts +6 -0
  138. package/es/locales/zh-CN.js +9 -2
  139. package/es/locales/zh-TW.d.ts +6 -0
  140. package/es/locales/zh-TW.js +9 -2
  141. package/es/utils/hoc.js +1 -1
  142. package/es/utils/index.d.ts +1 -1
  143. package/es/utils/miniRedux.js +8 -9
  144. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  145. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  146. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  147. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  148. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  149. package/lib/components/dataSourceComponents/fields/index.d.ts +10 -10
  150. package/lib/components/filter/index.d.ts +1 -0
  151. package/lib/components/iconfont/index.js +1 -1
  152. package/lib/components/list/index.d.ts +1 -0
  153. package/lib/components/lowCodePage/index.js +1 -2
  154. package/lib/components/pisell-config-provider/context.d.ts +2 -0
  155. package/lib/components/pisell-config-provider/index.d.ts +1 -0
  156. package/lib/components/pisellAdjustPrice/index.js +4 -0
  157. package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
  158. package/lib/components/pisellCardList/index.d.ts +32 -2
  159. package/lib/components/pisellCardList/index.js +42 -3
  160. package/lib/components/pisellCardList/index.less +9 -1
  161. package/lib/components/pisellCheckboxGroup/index.d.ts +4 -0
  162. package/lib/components/pisellCheckboxGroup/index.js +22 -1
  163. package/lib/components/pisellCheckboxGroup/index.less +28 -1
  164. package/lib/components/pisellGoodPassCard/index.d.ts +1 -0
  165. package/lib/components/pisellGoodPassCard/index.js +31 -4
  166. package/lib/components/pisellText/components/Amount/index.js +2 -1
  167. package/lib/components/pisellToast/index.js +3 -0
  168. package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
  169. package/lib/components/pisellWalletPassCard/index.js +253 -59
  170. package/lib/components/pisellWalletPassCard/index.less +48 -11
  171. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  172. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
  173. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
  174. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  175. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +71 -0
  176. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
  177. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  178. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +77 -0
  179. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  180. package/lib/components/productCard/cartSkuCard/components/Note/index.js +56 -0
  181. package/lib/components/productCard/cartSkuCard/components/Note/index.less +27 -0
  182. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  183. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +82 -0
  184. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
  185. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  186. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  187. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  188. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  189. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  190. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  191. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  192. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  193. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  194. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  195. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  196. package/lib/components/productCard/cartSkuCard/components/resources/index.js +71 -0
  197. package/lib/components/productCard/cartSkuCard/components/resources/index.less +19 -0
  198. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  199. package/lib/components/productCard/cartSkuCard/components/sales/index.js +77 -0
  200. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  201. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  202. package/lib/components/productCard/cartSkuCard/components/specs/index.js +66 -0
  203. package/lib/components/productCard/cartSkuCard/components/specs/index.less +34 -0
  204. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  205. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +339 -0
  206. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  207. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  208. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +68 -0
  209. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
  210. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  211. package/lib/components/productCard/cartSkuCard/index.js +239 -0
  212. package/lib/components/productCard/cartSkuCard/index.less +33 -0
  213. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  214. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  215. package/lib/components/productCard/components/Action/index.js +9 -0
  216. package/lib/components/productCard/components/Action/index.less +3 -0
  217. package/lib/components/productCard/components/Header/index.js +21 -11
  218. package/lib/components/productCard/components/Header/index.less +16 -1
  219. package/lib/components/productCard/components/Sales/index.js +2 -2
  220. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  221. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  222. package/lib/components/productCard/index.d.ts +3 -1
  223. package/lib/components/productCard/index.js +6 -2
  224. package/lib/components/productCard/index.less +6 -0
  225. package/lib/components/productCard/locales.js +12 -3
  226. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  227. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  228. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  229. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  230. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  231. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  232. package/lib/components/table/Table/fields/index.d.ts +3 -2
  233. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  234. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  235. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  236. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  237. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  238. package/lib/components/table/Table/fields/utils/index.js +1 -2
  239. package/lib/components/table/Table/utils.d.ts +1 -1
  240. package/lib/components/virtual-keyboard/Number/index.js +3 -0
  241. package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
  242. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  243. package/lib/components/virtual-keyboard/index.js +60 -2
  244. package/lib/components/virtual-keyboard/index.less +33 -1
  245. package/lib/components/walletCard/Guide/index.js +11 -1
  246. package/lib/hooks/useResponsive.js +3 -6
  247. package/lib/index.d.ts +1 -0
  248. package/lib/locales/en-US.d.ts +6 -0
  249. package/lib/locales/en-US.js +9 -2
  250. package/lib/locales/zh-CN.d.ts +6 -0
  251. package/lib/locales/zh-CN.js +9 -2
  252. package/lib/locales/zh-TW.d.ts +6 -0
  253. package/lib/locales/zh-TW.js +9 -2
  254. package/lib/utils/index.d.ts +1 -1
  255. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  256. package/lowcode/pisell-card-list/meta.ts +50 -1
  257. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  258. package/lowcode/virtual-keyboard/meta.ts +131 -0
  259. package/package.json +7 -4
  260. package/dist/umd/materials.min.css +0 -1
  261. package/dist/umd/materials.min.js +0 -1
  262. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  263. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  264. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  265. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  266. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  267. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -25,15 +25,25 @@
25
25
 
26
26
  .actions-btn-wrapper {
27
27
  position: absolute;
28
- top: 16px;
29
- right: 16px;
28
+ top: 0px;
29
+ right: 0px;
30
30
  z-index: 2;
31
31
  display: flex;
32
- gap: 16px;
32
+ gap: 0px;
33
+ z-index: 3;
33
34
 
34
35
  & > div {
35
36
  cursor: pointer;
36
37
  }
38
+ .pisell-card-status-icon {
39
+ padding: 12px 8px;
40
+ }
41
+ .pisell-card-actions-edit-btn {
42
+ padding: 12px 8px 20px;
43
+ }
44
+ .pisell-card-actions-detail-btn {
45
+ padding: 12px 8px 20px;
46
+ }
37
47
  }
38
48
 
39
49
  .pisell-wallet-pass-card-body {
@@ -47,12 +57,13 @@
47
57
  display: flex;
48
58
  flex-direction: column;
49
59
  justify-content: space-between;
60
+ position: relative;
61
+ z-index: 2;
50
62
  }
51
63
 
52
64
  .pisell-card-name-wrap {
53
65
  font-weight: 500;
54
66
  line-height: 20px;
55
-
56
67
  white-space: nowrap;
57
68
  overflow: hidden;
58
69
  text-overflow: ellipsis;
@@ -95,7 +106,7 @@
95
106
  .pisell-card-amount-item-value {
96
107
  font-size: 20px;
97
108
  font-weight: 600;
98
- line-height: 30px;
109
+ line-height: 20px;
99
110
  overflow: hidden;
100
111
  text-overflow: ellipsis;
101
112
  }
@@ -188,10 +199,10 @@
188
199
  .pisell-card-name-wrap {
189
200
  font-weight: 600;
190
201
  font-size: 16px;
191
- max-width: calc(100% - 96px);
192
202
  white-space: nowrap;
193
203
  overflow: hidden;
194
204
  text-overflow: ellipsis;
205
+ min-width: 12px;
195
206
  }
196
207
 
197
208
  .pisell-card-store-name {
@@ -208,19 +219,36 @@
208
219
  visibility: hidden;
209
220
  flex-direction: row;
210
221
  align-items: center;
222
+ margin-bottom: 4px;
223
+
224
+ .pisell-card-amount-item-label-icon {
225
+ font-size: 20px;
226
+ margin-right: 8px;
227
+ }
211
228
 
212
229
  .pisell-card-amount-item-label,
213
230
  .pisell-card-amount-item-value {
214
- color: var(--Primary-600, #7f56d9);
215
- font-size: 20px;
231
+ color: var(--Gray-500, #667085);
216
232
  font-style: normal;
217
233
  font-weight: 600;
218
234
  }
235
+ .pisell-card-amount-item-label {
236
+ font-size: 14px;
237
+ }
238
+ .pisell-card-amount-item-value {
239
+ font-size: 20px;
240
+ }
219
241
  }
220
242
 
221
243
  &.active {
222
244
  .pisell-wallet-pass-card-redeem {
223
- visibility: visible;
245
+ .pisell-card-amount-item-label,
246
+ .pisell-card-amount-item-value {
247
+ color: var(--Primary-600, #7f56d9);
248
+ }
249
+ .pisell-card-amount-item-value {
250
+ text-decoration: underline;
251
+ }
224
252
  }
225
253
  }
226
254
 
@@ -239,8 +267,17 @@
239
267
 
240
268
  .pisell-card-checked-icon {
241
269
  position: absolute;
242
- bottom: 16px;
243
- right: 16px;
270
+ bottom: 0;
271
+ right: 0;
272
+ padding: 16px 16px 16px 32px;
273
+ z-index: 10;
274
+ .pisell-lowcode-radio-wrapper {
275
+ margin: 0;
276
+ }
277
+ .pisell-lowcode-radio-inner {
278
+ width: 20px;
279
+ height: 20px;
280
+ }
244
281
  }
245
282
  }
246
283
 
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
+ export default Footer;
@@ -0,0 +1,80 @@
1
+ import React, { useMemo } from 'react';
2
+ import classNames from 'classnames';
3
+ import { Divider } from 'antd';
4
+ import { Tag, Tooltip } from 'antd';
5
+ import { QuestionCircleOutlined } from '@ant-design/icons';
6
+ import { _formatAmount } from "../packages/utils";
7
+ import "./index.less";
8
+ import { locales } from '@pisell/utils';
9
+ import { PREFIX } from "../../index";
10
+ var Footer = function Footer(_ref) {
11
+ var item = _ref.item,
12
+ hideDivider = _ref.hideDivider,
13
+ type = _ref.type,
14
+ isOnlyTotal = _ref.isOnlyTotal;
15
+ var total = item.total,
16
+ origin_total = item.origin_total,
17
+ symbol = item.symbol,
18
+ tip = item.tip,
19
+ num = item.num,
20
+ discount_reason = item.discount_reason;
21
+ /**
22
+ * @title: 折扣
23
+ * @description:
24
+ * @param {*} useMemo
25
+ * @return {*}
26
+ * @Author: WangHan
27
+ * @Date: 2024-11-22 13:50
28
+ */
29
+ var isDiscount = useMemo(function () {
30
+ // item中没有该属性则不展示
31
+ if (!origin_total) return false;
32
+ return Number(total) != Number(origin_total);
33
+ }, [total, origin_total]);
34
+ var renderDiscountReason = function renderDiscountReason() {
35
+ if (isDiscount && discount_reason && type === 'total') {
36
+ if (Array.isArray(discount_reason)) {
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ className: "".concat(PREFIX, "_discount-reason")
39
+ }, discount_reason.map(function (reason, index) {
40
+ return /*#__PURE__*/React.createElement(Tag, {
41
+ key: index,
42
+ color: "red"
43
+ }, reason);
44
+ }));
45
+ }
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
47
+ style: {
48
+ margin: 0
49
+ }
50
+ }), /*#__PURE__*/React.createElement("div", {
51
+ className: "".concat(PREFIX, "_discount-reason")
52
+ }, /*#__PURE__*/React.createElement("span", null, "".concat(locales.getText('pisell2.product.card.discount.reason'), ": ").concat(discount_reason))));
53
+ }
54
+ return null;
55
+ };
56
+ return /*#__PURE__*/React.createElement(React.Fragment, null, !hideDivider ? /*#__PURE__*/React.createElement(Divider, {
57
+ style: {
58
+ margin: 0
59
+ }
60
+ }) : null, /*#__PURE__*/React.createElement("div", {
61
+ className: classNames("".concat(PREFIX, "__product-footer"), hideDivider && "".concat(PREFIX, "__hide-divider-footer"), isOnlyTotal && "".concat(PREFIX, "__only-total-footer"))
62
+ }, /*#__PURE__*/React.createElement("div", {
63
+ className: classNames("".concat(PREFIX, "__footer-price-wrap"))
64
+ }, !isOnlyTotal ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
65
+ className: classNames("".concat(PREFIX, "__footer-price"))
66
+ }, /*#__PURE__*/React.createElement("span", null, _formatAmount(total, symbol)), tip ? /*#__PURE__*/React.createElement(Tooltip, {
67
+ title: locales.getText(tip),
68
+ destroyTooltipOnHide: true
69
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
70
+ style: {
71
+ fontSize: '16px',
72
+ color: '#1570ef'
73
+ }
74
+ })) : null), /*#__PURE__*/React.createElement("span", null, "\xD7".concat(num))) : null, /*#__PURE__*/React.createElement("span", {
75
+ className: "".concat(PREFIX, "__footer-total")
76
+ }, isDiscount ? /*#__PURE__*/React.createElement("span", {
77
+ className: "".concat(PREFIX, "__footer-origin-total")
78
+ }, _formatAmount(origin_total * num, symbol, 2)) : null, /*#__PURE__*/React.createElement("span", null, _formatAmount(total * num, symbol))))), renderDiscountReason());
79
+ };
80
+ export default Footer;
@@ -0,0 +1,75 @@
1
+ .pisell-cart-sku-card {
2
+ &__product-footer {
3
+ color: var(--Gray-500, #667085);
4
+ font-size: 14px;
5
+ font-style: normal;
6
+ font-weight: 600;
7
+ line-height: 20px;
8
+ > div {
9
+ display: flex;
10
+ justify-content: space-between;
11
+ }
12
+ }
13
+ &__only-total-footer {
14
+ > div {
15
+ justify-content: end !important;
16
+ }
17
+ }
18
+
19
+ &__footer-price {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: 4px;
23
+ }
24
+
25
+ &__footer-discount {
26
+ font-size: 12px;
27
+ font-weight: 400;
28
+ line-height: 18px;
29
+ text-decoration-line: line-through;
30
+ }
31
+
32
+ &__footer-total {
33
+ color: var(--Gray-900, #101828);
34
+ }
35
+
36
+ &__footer-origin-total {
37
+ color: var(--Gray-500, #667085);
38
+ text-align: center;
39
+ font-size: 12px;
40
+ font-style: normal;
41
+ font-weight: 400;
42
+ line-height: 18px; /* 150% */
43
+ text-decoration-line: line-through;
44
+ margin-right: 8px;
45
+ display: inline-block;
46
+ transform: translateY(-1px);
47
+ }
48
+
49
+ &__hide-divider-footer {
50
+ margin-top: 8px;
51
+ }
52
+
53
+ &-product-item-discount-reason {
54
+ color: var(--gray-500, #667085);
55
+ font-size: 14px;
56
+ font-style: normal;
57
+ font-weight: 400;
58
+ line-height: 20px;
59
+ margin-top: 4px;
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ gap: 4px;
63
+ overflow: hidden;
64
+
65
+ > span {
66
+ display: inline-block;
67
+ max-width: 100%;
68
+ text-overflow: ellipsis;
69
+ white-space: nowrap;
70
+ overflow: hidden;
71
+ border-radius: 4px;
72
+ margin: 0;
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1,82 @@
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, { useMemo } from 'react';
8
+ import classNames from 'classnames';
9
+ import { Divider } from 'antd';
10
+ import AmountFooter from "../AmountFooter";
11
+ import { formatMultiDayDate } from "../../../utils";
12
+ import useEngineContext from "../../../../../hooks/useEngineContext";
13
+ import "./index.less";
14
+ import { formatDateRanges } from "./utils";
15
+ import { PREFIX } from "../../index";
16
+ var MultiDay = function MultiDay(_ref) {
17
+ var _context$appHelper;
18
+ var dataSource = _ref.dataSource,
19
+ hideDivider = _ref.hideDivider;
20
+ var items = dataSource.items,
21
+ symbol = dataSource.symbol,
22
+ locale = dataSource.locale;
23
+ var translationOriginal = function translationOriginal(text) {
24
+ return '';
25
+ };
26
+ var context = useEngineContext();
27
+ var utils = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
28
+ translationOriginal = (utils === null || utils === void 0 ? void 0 : utils.translationOriginal) || (utils === null || utils === void 0 ? void 0 : utils.translation);
29
+
30
+ /**
31
+ * @title: 商品单价 + 套餐价格
32
+ * @description:
33
+ * @param {*} useMemo
34
+ * @return {*}
35
+ * @Author: WangHan
36
+ * @Date: 2024-12-28 23:00
37
+ */
38
+ var lists = useMemo(function () {
39
+ // if (!items?.length) return [];
40
+
41
+ // // 套餐明细
42
+ // const bundleDetails = bundle
43
+ // ?.map(
44
+ // (b: any) =>
45
+ // `${translationOriginal(b?.title)} (${symbol}${
46
+ // Number(b.price) * Number(b.num)
47
+ // })`
48
+ // )
49
+ // ?.join('+');
50
+
51
+ return formatDateRanges([dataSource]);
52
+ }, [items, dataSource]);
53
+ return /*#__PURE__*/React.createElement("div", {
54
+ className: classNames("".concat(PREFIX, "__multi-day-wrap"))
55
+ }, lists === null || lists === void 0 ? void 0 : lists.map(function (m, index) {
56
+ return /*#__PURE__*/React.createElement("div", {
57
+ key: index
58
+ }, /*#__PURE__*/React.createElement(Divider, {
59
+ style: {
60
+ margin: '4px 0'
61
+ }
62
+ }), /*#__PURE__*/React.createElement("div", {
63
+ className: classNames("".concat(PREFIX, "__multi-day"))
64
+ }, /*#__PURE__*/React.createElement("div", null, formatMultiDayDate(_objectSpread(_objectSpread({}, m), {}, {
65
+ locale: locale
66
+ }))), /*#__PURE__*/React.createElement(AmountFooter, {
67
+ item: _objectSpread(_objectSpread({}, m), {}, {
68
+ symbol: symbol
69
+ }),
70
+ hideDivider: true
71
+ })));
72
+ }), /*#__PURE__*/React.createElement("div", {
73
+ className: classNames("".concat(PREFIX, "__multi-day-total-wrap"))
74
+ }, /*#__PURE__*/React.createElement(AmountFooter, {
75
+ item: _objectSpread(_objectSpread({}, dataSource), {}, {
76
+ num: 1
77
+ }),
78
+ type: "total",
79
+ isOnlyTotal: true
80
+ })));
81
+ };
82
+ export default MultiDay;
@@ -0,0 +1,31 @@
1
+ .pisell-cart-sku-card {
2
+ &__multi-day-wrap {
3
+ }
4
+
5
+ &__multi-day {
6
+ color: var(--Gray-500, #667085);
7
+ font-size: 14px;
8
+ font-weight: 400;
9
+ line-height: 20px;
10
+ display: flex;
11
+ flex-direction: column;
12
+ }
13
+
14
+ &__multi-day-total {
15
+ color: var(--Gray-900, #101828);
16
+ text-align: right;
17
+ font-size: 14px;
18
+ font-weight: 600;
19
+ line-height: 20px;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+
24
+ &__multi-day-total-discount {
25
+ font-size: 12px;
26
+ font-weight: 400;
27
+ line-height: 18px;
28
+ text-decoration-line: line-through;
29
+ color: var(--Gray-500, #667085);
30
+ }
31
+ }
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,56 @@
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 dayjs from 'dayjs';
8
+
9
+ // 定义输入数据的接口
10
+
11
+ // 定义输出数据的接口
12
+
13
+ export function formatDateRanges(list) {
14
+ var result = [];
15
+ var currentGroup = null;
16
+ list.forEach(function (item, index) {
17
+ // Convert string dates using dayjs
18
+ var currentStartDate = dayjs(item.start_date);
19
+ var currentEndDate = dayjs(item.end_date);
20
+ var currentTotal = item.total;
21
+ var currentNum = item.num;
22
+ if (!currentGroup) {
23
+ // Start a new group
24
+ currentGroup = _objectSpread(_objectSpread({}, item), {}, {
25
+ start_date: currentStartDate.format('YYYY-MM-DD'),
26
+ end_date: currentEndDate.format('YYYY-MM-DD'),
27
+ total: currentTotal,
28
+ num: currentNum
29
+ });
30
+ } else {
31
+ var prevEndDate = dayjs(currentGroup.end_date);
32
+
33
+ // Check if current item can be merged with current group
34
+ if (currentTotal === currentGroup.total && prevEndDate.isSame(currentStartDate, 'day')) {
35
+ // Update end date and add up num
36
+ currentGroup.end_date = currentEndDate.format('YYYY-MM-DD');
37
+ currentGroup.num += currentNum;
38
+ } else {
39
+ // Push current group and start a new one
40
+ result.push(currentGroup);
41
+ currentGroup = _objectSpread(_objectSpread({}, item), {}, {
42
+ start_date: currentStartDate.format('YYYY-MM-DD'),
43
+ end_date: currentEndDate.format('YYYY-MM-DD'),
44
+ total: currentTotal,
45
+ num: currentNum
46
+ });
47
+ }
48
+ }
49
+
50
+ // Push the last group
51
+ if (index === list.length - 1 && currentGroup) {
52
+ result.push(currentGroup);
53
+ }
54
+ });
55
+ return result;
56
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Note: (props: any) => JSX.Element | null;
3
+ export default Note;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import { locales } from '@pisell/utils';
4
+ import { Divider } from 'antd';
5
+ import { PREFIX } from "../../index";
6
+ import "./index.less";
7
+ var Note = function Note(props) {
8
+ var item = props.item,
9
+ type = props.type,
10
+ openNote = props.openNote,
11
+ disabledEdit = props.disabledEdit;
12
+ return item !== null && item !== void 0 && item.note || !disabledEdit ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
13
+ style: {
14
+ margin: 0
15
+ }
16
+ }), /*#__PURE__*/React.createElement("div", {
17
+ className: classNames("".concat(PREFIX, "__note-wrap"))
18
+ }, item !== null && item !== void 0 && item.note ? /*#__PURE__*/React.createElement("div", {
19
+ className: classNames("".concat(PREFIX, "__note-text"))
20
+ }, locales.getText('pisell2.product.card.discount.note'), ": ", item.note) : null, !disabledEdit ? /*#__PURE__*/React.createElement("span", {
21
+ className: "".concat(PREFIX, "__note-btn"),
22
+ onClick: function onClick(e) {
23
+ e.preventDefault();
24
+ e.stopPropagation();
25
+ openNote();
26
+ }
27
+ }, item !== null && item !== void 0 && item.note ? locales.getText('pisell2.product.card.discount.edit.note') : locales.getText('pisell2.product.card.discount.add.note')) : null)) : null;
28
+ };
29
+ export default Note;
@@ -0,0 +1,27 @@
1
+ .pisell-cart-sku-card {
2
+ &__note-wrap {
3
+ display: flex;
4
+ gap: 8px;
5
+ color: var(--Gray-900, #101828);
6
+ font-size: 14px;
7
+ font-style: normal;
8
+ font-weight: 400;
9
+ line-height: 20px;
10
+ }
11
+
12
+ &__note-text {
13
+ color: #101828;
14
+ font-size: 14px;
15
+ font-weight: 400;
16
+ line-height: 20px;
17
+ word-break: keep-all;
18
+ word-wrap: normal;
19
+ }
20
+
21
+ &__note-btn {
22
+ color: var(--Blue-600, #1570ef);
23
+ font-weight: 600;
24
+ cursor: pointer;
25
+ white-space: nowrap;
26
+ }
27
+ }
@@ -0,0 +1,27 @@
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
+ holder_id?: any;
17
+ };
18
+ style?: React.CSSProperties;
19
+ /** 作为主商品卡片展示
20
+ * 1. 影响商品数量 tag 的位置
21
+ * 2. isMain 且 type 为 a5,展示holder
22
+ */
23
+ isMainProduct?: boolean;
24
+ type?: 'a2' | 'a5';
25
+ }
26
+ declare const BasicInfo: (props: IProps) => JSX.Element;
27
+ export default BasicInfo;
@@ -0,0 +1,93 @@
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 Holders from "../holders";
6
+ import { PREFIX } from "../../index";
7
+ import "./index.less";
8
+ var BasicInfo = function BasicInfo(props) {
9
+ var isShowImage = props.isShowImage,
10
+ _props$dataSource = props.dataSource,
11
+ dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
12
+ style = props.style,
13
+ isMainProduct = props.isMainProduct,
14
+ type = props.type;
15
+ var image = dataSource.image,
16
+ bundle = dataSource.bundle,
17
+ options = dataSource.options,
18
+ product_option_string = dataSource.product_option_string,
19
+ name = dataSource.name,
20
+ price = dataSource.price,
21
+ symbol = dataSource.symbol,
22
+ _dataSource$total = dataSource.total,
23
+ total = _dataSource$total === void 0 ? 0 : _dataSource$total,
24
+ _dataSource$origin_to = dataSource.origin_total,
25
+ origin_total = _dataSource$origin_to === void 0 ? 0 : _dataSource$origin_to,
26
+ _dataSource$num = dataSource.num,
27
+ num = _dataSource$num === void 0 ? 1 : _dataSource$num,
28
+ holder_id = dataSource.holder_id;
29
+ var renderNumTag = function renderNumTag() {
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ className: classNames("num-tag", {
32
+ 'is-main': isMainProduct
33
+ })
34
+ }, num < 100 ? num : '99+');
35
+ };
36
+ var hasSpecs = (bundle === null || bundle === void 0 ? void 0 : bundle.length) || (options === null || options === void 0 ? void 0 : options.length) || product_option_string;
37
+ var renderImage = function renderImage() {
38
+ if (!isShowImage) return null;
39
+ if (image) {
40
+ return /*#__PURE__*/React.createElement("img", {
41
+ src: imageAli.ali(image, 64),
42
+ className: "product-cover"
43
+ });
44
+ }
45
+
46
+ // 如果没有图片,显示文字图片
47
+ var displayText = name ? name.slice(0, 2) : '';
48
+ return /*#__PURE__*/React.createElement("div", {
49
+ className: "product-cover-text"
50
+ }, displayText);
51
+ };
52
+ if (type === 'a5') {
53
+ return /*#__PURE__*/React.createElement("div", {
54
+ className: "".concat(PREFIX, "__basic-info"),
55
+ style: style || {}
56
+ }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
57
+ style: {
58
+ width: 20
59
+ }
60
+ }) : null, /*#__PURE__*/React.createElement("div", {
61
+ className: "product-info"
62
+ }, /*#__PURE__*/React.createElement("div", {
63
+ className: "product-name"
64
+ }, name), !holder_id || !(holder_id !== null && holder_id !== void 0 && holder_id.length) ? /*#__PURE__*/React.createElement("div", {
65
+ className: "product-price"
66
+ }, formatAmount(price, 2, symbol)) : /*#__PURE__*/React.createElement(Holders, {
67
+ dataSource: dataSource
68
+ })));
69
+ }
70
+ return /*#__PURE__*/React.createElement("div", {
71
+ className: "".concat(PREFIX, "__basic-info"),
72
+ style: style || {}
73
+ }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
74
+ style: {
75
+ width: 20
76
+ }
77
+ }) : null, /*#__PURE__*/React.createElement("div", {
78
+ className: "product-info"
79
+ }, /*#__PURE__*/React.createElement("div", {
80
+ className: "product-name"
81
+ }, name), hasSpecs ? /*#__PURE__*/React.createElement(Specs, {
82
+ dataSource: dataSource
83
+ }) : /*#__PURE__*/React.createElement("div", {
84
+ className: "product-price"
85
+ }, formatAmount(price, 2, symbol))), /*#__PURE__*/React.createElement("div", {
86
+ className: "product-amount"
87
+ }, /*#__PURE__*/React.createElement("div", {
88
+ className: "total-amont"
89
+ }, formatAmount(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /*#__PURE__*/React.createElement("div", {
90
+ className: "origin-amount"
91
+ }, formatAmount(origin_total * num, 2, symbol)) : null));
92
+ };
93
+ export default BasicInfo;