@pisell/materials 6.1.1 → 6.1.3

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 (315) 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 +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +42 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +47 -32
  11. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  12. package/es/components/appVersionControl/index.d.ts +4 -0
  13. package/es/components/badge/index.d.ts +7 -0
  14. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  15. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  16. package/es/components/cardPro/index.d.ts +3 -0
  17. package/es/components/collapse/index.d.ts +15 -0
  18. package/es/components/cropPhoto/index.d.ts +3 -0
  19. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  20. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  24. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  25. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  26. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  27. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  28. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  29. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/index.d.ts +5 -4
  31. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  32. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  33. package/es/components/drag-sort-tree/index.d.ts +4 -0
  34. package/es/components/iconfont/index.d.ts +8 -0
  35. package/es/components/iconfont/index.js +1 -1
  36. package/es/components/login-and-register/index.d.ts +82 -0
  37. package/es/components/login-and-register/index.js +22 -18
  38. package/es/components/page/index.d.ts +5 -0
  39. package/es/components/pisell-config-provider/index.d.ts +12 -0
  40. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  41. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  42. package/es/components/pisellAdjustPrice/index.js +64 -8
  43. package/es/components/pisellAdjustPrice/index.less +35 -6
  44. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  45. package/es/components/pisellAdjustPrice/status.js +32 -0
  46. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  47. package/es/components/pisellAdjustPrice/type.js +1 -0
  48. package/es/components/pisellAnchor/index.d.ts +23 -0
  49. package/es/components/pisellAvatar/index.d.ts +19 -0
  50. package/es/components/pisellCard/index.d.ts +19 -0
  51. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  52. package/es/components/pisellDropdown/index.d.ts +20 -0
  53. package/es/components/pisellEmpty/index.d.ts +19 -0
  54. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  55. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  56. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  57. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  58. package/es/components/pisellList01/index.d.ts +17 -0
  59. package/es/components/pisellQrcode/index.d.ts +10 -0
  60. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  61. package/es/components/pisellStatisticList/index.d.ts +21 -0
  62. package/es/components/pisellToast/index.js +3 -0
  63. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  64. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  65. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  66. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +3 -0
  67. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  68. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  69. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  70. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  71. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  72. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  73. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  74. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  75. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  76. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  77. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  78. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  79. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  80. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  81. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  82. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +4 -0
  83. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  84. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  85. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  86. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  87. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  88. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  89. package/es/components/productCard/cartSkuCard/index.js +195 -0
  90. package/es/components/productCard/cartSkuCard/index.less +69 -0
  91. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  92. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  93. package/es/components/productCard/components/Action/index.d.ts +3 -0
  94. package/es/components/productCard/components/AmountFooter/index.js +22 -6
  95. package/es/components/productCard/components/AmountFooter/index.less +28 -1
  96. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  97. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  98. package/es/components/productCard/components/Header/index.js +4 -3
  99. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  100. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  101. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  102. package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -1
  103. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  104. package/es/components/productCard/components/Packages/components/options/index.less +3 -2
  105. package/es/components/productCard/components/Sales/index.js +2 -2
  106. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  107. package/es/components/productCard/components/Time/index.d.ts +3 -0
  108. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  109. package/es/components/productCard/components/Warning/index.js +48 -0
  110. package/es/components/productCard/index.d.ts +3 -1
  111. package/es/components/productCard/index.js +10 -8
  112. package/es/components/productCard/locales.d.ts +84 -0
  113. package/es/components/productCard/locales.js +6 -3
  114. package/es/components/productCard/status.d.ts +32 -0
  115. package/es/components/productCard/status.js +3 -1
  116. package/es/components/productCard/types.d.ts +84 -0
  117. package/es/components/productCard/utils.js +8 -6
  118. package/es/components/section-footers/index.d.ts +9 -0
  119. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  120. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  121. package/es/components/table/BasicTable/index.d.ts +1 -0
  122. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  123. package/es/components/table/Table/fields/index.d.ts +3 -2
  124. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  125. package/es/components/table/Table/index.d.ts +4 -0
  126. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  127. package/es/components/table/Table/utils.d.ts +1 -1
  128. package/es/components/table/View/index.d.ts +1 -0
  129. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  130. package/es/components/table/types.d.ts +251 -0
  131. package/es/components/tabs/index.d.ts +16 -0
  132. package/es/components/translation/index.d.ts +4 -3
  133. package/es/components/translation/index.js +34 -32
  134. package/es/components/versionModal/index.d.ts +23 -0
  135. package/es/components/virtual-keyboard/Amount/index.d.ts +3 -20
  136. package/es/components/virtual-keyboard/Amount/index.js +79 -7
  137. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  138. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  139. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  140. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  141. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  142. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  143. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  144. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  145. package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
  146. package/es/components/virtual-keyboard/Number/index.js +77 -7
  147. package/es/components/virtual-keyboard/Number/index.less +39 -0
  148. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  149. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  150. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  151. package/es/components/virtual-keyboard/Number/types.js +1 -0
  152. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  153. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  154. package/es/components/virtual-keyboard/index.d.ts +11 -0
  155. package/es/components/virtual-keyboard/index.js +88 -3
  156. package/es/components/virtual-keyboard/index.less +33 -1
  157. package/es/components/walletCard/Guest/index.d.ts +3 -0
  158. package/es/components/walletCard/Guide/index.d.ts +3 -0
  159. package/es/components/walletCard/index.d.ts +67 -0
  160. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  161. package/lib/components/appVersionControl/index.d.ts +4 -0
  162. package/lib/components/badge/index.d.ts +7 -0
  163. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  164. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  165. package/lib/components/cardPro/index.d.ts +3 -0
  166. package/lib/components/collapse/index.d.ts +15 -0
  167. package/lib/components/cropPhoto/index.d.ts +3 -0
  168. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  169. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  170. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  171. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  172. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  173. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  174. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  175. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  176. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  177. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  178. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  179. package/lib/components/dataSourceComponents/fields/index.d.ts +5 -4
  180. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  181. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  182. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  183. package/lib/components/iconfont/index.d.ts +8 -0
  184. package/lib/components/iconfont/index.js +1 -1
  185. package/lib/components/login-and-register/index.d.ts +82 -0
  186. package/lib/components/login-and-register/index.js +2 -2
  187. package/lib/components/page/index.d.ts +5 -0
  188. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  189. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  190. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  191. package/lib/components/pisellAdjustPrice/index.js +119 -57
  192. package/lib/components/pisellAdjustPrice/index.less +35 -6
  193. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  194. package/lib/components/pisellAdjustPrice/status.js +60 -0
  195. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  196. package/lib/components/pisellAdjustPrice/type.js +17 -0
  197. package/lib/components/pisellAnchor/index.d.ts +23 -0
  198. package/lib/components/pisellAvatar/index.d.ts +19 -0
  199. package/lib/components/pisellCard/index.d.ts +19 -0
  200. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  201. package/lib/components/pisellDropdown/index.d.ts +20 -0
  202. package/lib/components/pisellEmpty/index.d.ts +19 -0
  203. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  204. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  205. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  206. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  207. package/lib/components/pisellList01/index.d.ts +17 -0
  208. package/lib/components/pisellQrcode/index.d.ts +10 -0
  209. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  210. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  211. package/lib/components/pisellToast/index.js +3 -0
  212. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  213. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  214. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  215. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +3 -0
  216. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  217. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  218. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  219. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  220. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  221. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  222. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  223. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  224. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  225. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  226. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  227. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  228. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  229. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  230. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  231. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +4 -0
  232. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  233. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  234. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  235. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  236. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  237. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  238. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  239. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  240. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  241. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  242. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  243. package/lib/components/productCard/components/AmountFooter/index.js +16 -6
  244. package/lib/components/productCard/components/AmountFooter/index.less +28 -1
  245. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  246. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  247. package/lib/components/productCard/components/Header/index.js +4 -3
  248. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  249. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  250. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  251. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -2
  252. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  253. package/lib/components/productCard/components/Packages/components/options/index.less +3 -2
  254. package/lib/components/productCard/components/Sales/index.js +2 -2
  255. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  256. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  257. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  258. package/lib/components/productCard/components/Warning/index.js +68 -0
  259. package/lib/components/productCard/index.d.ts +3 -1
  260. package/lib/components/productCard/index.js +6 -11
  261. package/lib/components/productCard/locales.d.ts +84 -0
  262. package/lib/components/productCard/locales.js +6 -3
  263. package/lib/components/productCard/status.d.ts +32 -0
  264. package/lib/components/productCard/status.js +3 -1
  265. package/lib/components/productCard/types.d.ts +84 -0
  266. package/lib/components/productCard/utils.js +7 -6
  267. package/lib/components/section-footers/index.d.ts +9 -0
  268. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  269. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  270. package/lib/components/table/BasicTable/index.d.ts +1 -0
  271. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  272. package/lib/components/table/Table/fields/index.d.ts +3 -2
  273. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  274. package/lib/components/table/Table/index.d.ts +4 -0
  275. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  276. package/lib/components/table/Table/utils.d.ts +1 -1
  277. package/lib/components/table/View/index.d.ts +1 -0
  278. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  279. package/lib/components/table/types.d.ts +251 -0
  280. package/lib/components/tabs/index.d.ts +16 -0
  281. package/lib/components/translation/index.d.ts +4 -3
  282. package/lib/components/translation/index.js +1 -0
  283. package/lib/components/versionModal/index.d.ts +23 -0
  284. package/lib/components/virtual-keyboard/Amount/index.d.ts +3 -20
  285. package/lib/components/virtual-keyboard/Amount/index.js +72 -16
  286. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  287. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  288. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  289. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  290. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  291. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  292. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  293. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  294. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
  295. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  296. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  297. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  298. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  299. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  300. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  301. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  302. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -20
  303. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  304. package/lib/components/virtual-keyboard/index.js +60 -2
  305. package/lib/components/virtual-keyboard/index.less +33 -1
  306. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  307. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  308. package/lib/components/walletCard/index.d.ts +67 -0
  309. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  310. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  311. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  312. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  313. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  314. package/lowcode/virtual-keyboard/meta.ts +131 -0
  315. package/package.json +4 -3
@@ -1,9 +1,4 @@
1
1
  import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
2
+ import { PisellAdjustPriceProps } from './type';
8
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
4
  export default PisellAdjustPrice;
@@ -1,9 +1,11 @@
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"];
2
+ var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType"];
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
+ 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
+ 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; }
3
6
  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; }
4
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
8
  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); }
6
- 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); }
7
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -15,16 +17,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
17
  import React, { useEffect, useMemo, useState } from 'react';
16
18
  import { Segmented } from 'antd';
17
19
  import classNames from 'classnames';
20
+ import { setTheme } from '@pisell/utils';
18
21
  import PisellText from "../pisellText";
19
22
  import Amount from "../virtual-keyboard/Amount";
20
23
  import { getText } from "../../locales";
21
24
  import "./index.less";
22
25
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
26
+ import { defaultConfig } from "./status";
23
27
  var PisellAdjustPrice = function PisellAdjustPrice(props) {
24
28
  var value = props.value,
25
29
  onChange = props.onChange,
26
30
  defaultValue = props.defaultValue,
27
31
  originValue = props.originValue,
32
+ _props$selectType = props.selectType,
33
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
28
34
  others = _objectWithoutProperties(props, _excluded);
29
35
  var config = usePisellConfig();
30
36
  var _useState = useState(value || 0),
@@ -47,6 +53,30 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
47
53
  useEffect(function () {
48
54
  document.body.id = 'body';
49
55
  }, []);
56
+
57
+ /**
58
+ * @title: 配置颜色
59
+ * @description: 根据 props 和 selectType 生成最终的配置颜色
60
+ * @param {*} useMemo
61
+ * @return {*}
62
+ * @Author: WangHan
63
+ * @Date: 2025-08-04 18:36
64
+ */
65
+ var configColor = useMemo(function () {
66
+ var currentConfig = defaultConfig[selectType];
67
+
68
+ // 过滤出有效的 props 并合并到默认配置中
69
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
70
+ var _ref2 = _slicedToArray(_ref, 2),
71
+ key = _ref2[0],
72
+ value = _ref2[1];
73
+ if (value !== undefined && key in currentConfig) {
74
+ acc[key] = value;
75
+ }
76
+ return acc;
77
+ }, {});
78
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
79
+ }, [selectType, props]);
50
80
  var handleEnter = function handleEnter() {
51
81
  if (isDiscountError) {
52
82
  return;
@@ -93,8 +123,21 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
93
123
  return "".concat(v, "%");
94
124
  }
95
125
  };
126
+ useEffect(function () {
127
+ setTheme({
128
+ '--pisell-adjust-price-text-color': configColor.textColor,
129
+ '--pisell-adjust-price-background-color': configColor.backgroundColor,
130
+ '--pisell-adjust-price-container-background-color': configColor.containerBackgroundColor,
131
+ '--pisell-adjust-price-button-background-color': configColor.buttonBackgroundColor,
132
+ '--pisell-adjust-price-main-text-color': configColor.mainTextColor,
133
+ '--pisell-adjust-price-sub-text-color': configColor.subTextColor
134
+ });
135
+ }, [configColor]);
96
136
  return /*#__PURE__*/React.createElement("div", {
97
- className: "pisell-lowcode-adjust-price-wrap"
137
+ className: classNames('pisell-lowcode-adjust-price-wrap', {
138
+ 'pisell-lowcode-adjust-price-dark': selectType === 'dark',
139
+ 'pisell-lowcode-adjust-price-light': selectType === 'light'
140
+ })
98
141
  }, /*#__PURE__*/React.createElement(Segmented, {
99
142
  size: "large",
100
143
  options: [{
@@ -125,6 +168,7 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
125
168
  }), /*#__PURE__*/React.createElement("div", {
126
169
  className: "pisell-lowcode-adjust-price-amount-wrap"
127
170
  }, /*#__PURE__*/React.createElement(Amount, _extends({}, others, {
171
+ selectType: selectType || 'light',
128
172
  inputFormat: inputFormat,
129
173
  defaultValue: updateMode === 'priceOverride' ? defaultValue : '',
130
174
  key: updateMode,
@@ -132,17 +176,29 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
132
176
  defaultSelect: updateMode === 'priceOverride',
133
177
  onChange: handleChange,
134
178
  onEnter: handleEnter,
135
- placeholder: discountMode === 'amount' ? '0' : '%'
136
- }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
179
+ placeholder: discountMode === 'amount' ? '0' : '%',
180
+ rightItemsStyle: {
181
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
182
+ textColor: configColor.textColor,
183
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
184
+ resetButtonTextColor: configColor.resetButtonTextColor,
185
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
186
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
187
+ doneButtonTextColor: configColor.doneButtonTextColor
188
+ }
189
+ }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, configColor.isShowMainText ? /*#__PURE__*/React.createElement("div", {
137
190
  className: "pisell-low-code-adjust-price-total"
138
191
  }, isDiscountError ? /*#__PURE__*/React.createElement(PisellText.Amount, {
139
192
  value: originValue
140
193
  }) : /*#__PURE__*/React.createElement(React.Fragment, null, newValue && getText('pisell-adjust-price-total-after-discount'), /*#__PURE__*/React.createElement(PisellText.Amount, {
141
194
  value: totalAfterDiscount
142
- }))), /*#__PURE__*/React.createElement("div", {
195
+ }))) : null, configColor.isShowSubText ? /*#__PURE__*/React.createElement("div", {
143
196
  className: classNames('pisell-low-code-adjust-price-amount-desc', _defineProperty({}, 'pisell-low-code-adjust-price-amount-desc-error', isDiscountError))
144
197
  }, getText('pisell-adjust-price-discount-can-be-maximum'), ' ', discountMode === 'amount' ? /*#__PURE__*/React.createElement(PisellText.Amount, {
145
- value: originValue
146
- }) : '100%')));
198
+ value: originValue,
199
+ style: {
200
+ color: configColor.subTextColor
201
+ }
202
+ }) : '100%') : null));
147
203
  };
148
204
  export default PisellAdjustPrice;
@@ -1,30 +1,59 @@
1
1
  .pisell-lowcode-adjust-price-wrap {
2
2
  width: 380px;
3
3
  border-radius: 10px;
4
- background-color: #fff;
4
+ background-color: var(--pisell-adjust-price-background-color);
5
5
  padding: 10px;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 10px;
9
+ transition: all 0.3s ease;
10
+
11
+ // 浅色模式样式
12
+ &.pisell-lowcode-adjust-price-light {
13
+ .pisell-lowcode-segmented-item-label {
14
+ color: #667085;
15
+ }
16
+ }
17
+
18
+ // 深色模式样式
19
+ &.pisell-lowcode-adjust-price-dark {
20
+ .pisell-lowcode-segmented-item-label {
21
+ color: #d0d5dd;
22
+ }
23
+ }
24
+
25
+ .pisell-lowcode-segmented {
26
+ background: var(--pisell-adjust-price-container-background-color);
27
+ :hover {
28
+ color: var(--pisell-adjust-price-text-color);
29
+ }
30
+ .pisell-lowcode-segmented-item-selected {
31
+ background: var(--pisell-adjust-price-button-background-color);
32
+ .pisell-lowcode-segmented-item-label {
33
+ color: var(--pisell-adjust-price-text-color) !important;
34
+ }
35
+ }
36
+ }
37
+
9
38
  .pisell-lowcode-adjust-price-amount-wrap {
10
39
  padding: 10px;
11
40
  border-radius: 10px;
12
- background: var(--Gray-300, #D0D5DD);
41
+ background: var(--pisell-adjust-price-container-background-color);
13
42
  }
14
43
  .pisell-low-code-adjust-price-total {
15
- color: var(--Gray-900, #101828);
44
+ color: var(--pisell-adjust-price-main-text-color);
16
45
  font-size: 20px;
17
46
  font-weight: 600;
18
47
  line-height: 30px; /* 150% */
19
48
  }
20
49
  .pisell-low-code-adjust-price-amount-desc {
21
- color: var(--Gray-500, #667085);
50
+ color: var(--pisell-adjust-price-sub-text-color);
22
51
  font-size: 16px;
23
52
  font-style: normal;
24
53
  font-weight: 400;
25
54
  line-height: 24px; /* 150% */
26
55
  }
27
56
  .pisell-low-code-adjust-price-amount-desc-error {
28
- color: var(--Error-600, #D92D20);
57
+ color: var(--Error-600, #d92d20);
29
58
  }
30
- }
59
+ }
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,32 @@
1
+ export var defaultConfig = {
2
+ dark: {
3
+ backgroundColor: 'rgba(0, 0, 0, 0.70)',
4
+ containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
5
+ buttonBackgroundColor: '#ffffff',
6
+ textColor: '#000000',
7
+ resetButtonBackgroundColor: '#ffffff',
8
+ resetButtonTextColor: '#d92d20',
9
+ isDoneButtonFollowTheme: true,
10
+ doneButtonBackgroundColor: '#4ca30d',
11
+ doneButtonTextColor: '#ffffff',
12
+ isShowMainText: true,
13
+ mainTextColor: '#ffffff',
14
+ isShowSubText: true,
15
+ subTextColor: '#d0d5dd'
16
+ },
17
+ light: {
18
+ backgroundColor: '#ffffff',
19
+ containerBackgroundColor: '#d0d5dd',
20
+ buttonBackgroundColor: '#ffffff',
21
+ textColor: '#000000',
22
+ resetButtonBackgroundColor: '#ffffff',
23
+ resetButtonTextColor: '#d92d20',
24
+ isDoneButtonFollowTheme: true,
25
+ doneButtonBackgroundColor: '#4ca30d',
26
+ doneButtonTextColor: '#ffffff',
27
+ isShowMainText: true,
28
+ mainTextColor: '#101828',
29
+ isShowSubText: true,
30
+ subTextColor: '#667085'
31
+ }
32
+ };
@@ -0,0 +1,20 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface Option {
4
+ id: string | number;
5
+ name: React.ReactNode;
6
+ }
7
+ export interface PisellAnchorProps {
8
+ options?: Option[];
9
+ tab?: string | number;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ onChange?: (key: string | number) => void;
13
+ onTabClick?: () => void;
14
+ containerRef?: React.RefObject<HTMLElement>;
15
+ /**
16
+ * 平台类型,仅用于样式调整,不再影响锚点滚动功能
17
+ * 无论pc还是h5模式,点击锚点都会自动滚动到对应内容
18
+ * @default 'pc'
19
+ */
20
+ platform?: 'pc' | 'h5';
21
+ }
22
+ declare const PisellAnchor: React.FC<PisellAnchorProps>;
23
+ export default PisellAnchor;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { AvatarProps } from 'antd';
3
+ import './index.less';
4
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
+ export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
6
+ shape?: 'circle' | 'square';
7
+ size?: AvatarSize;
8
+ src?: string;
9
+ alt?: string;
10
+ icon?: React.ReactNode;
11
+ children?: React.ReactNode;
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ useTextAvatar?: boolean;
15
+ borderRadius?: number;
16
+ onError?: () => boolean;
17
+ }
18
+ declare const PisellAvatar: React.FC<PisellAvatarProps>;
19
+ export default PisellAvatar;
@@ -0,0 +1,19 @@
1
+ import { CardProps } from 'antd';
2
+ import './index.less';
3
+ export interface PisellCardProps extends CardProps {
4
+ bordered?: boolean;
5
+ selected?: boolean;
6
+ loading?: boolean;
7
+ padding?: number;
8
+ borderRadius?: number;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ isClickable?: boolean;
12
+ }
13
+ /**
14
+ * Pisell 卡片容器组件
15
+ * @param props
16
+ * @constructor
17
+ */
18
+ declare const PisellCard: (props: PisellCardProps) => JSX.Element;
19
+ export default PisellCard;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellCustomCheckboxGroupProps {
4
+ dataSource?: any[];
5
+ disabled?: boolean;
6
+ allowAdd?: boolean;
7
+ isMultiple?: boolean;
8
+ id?: string | string[];
9
+ onClick?: (value: any) => void;
10
+ onAdd?: () => void;
11
+ renderAddItem?: (item: any) => React.ReactNode;
12
+ [key: string]: any;
13
+ className?: string;
14
+ }
15
+ declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
16
+ export default PisellCustomCheckboxGroup;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface MenuItemType {
4
+ key: string;
5
+ label: string;
6
+ icon?: React.ReactNode;
7
+ shortcut?: string;
8
+ divider?: boolean;
9
+ }
10
+ export interface PisellDropdownProps {
11
+ trigger?: React.ReactNode;
12
+ items?: MenuItemType[];
13
+ showShortcut?: boolean;
14
+ triggerType?: ('click' | 'hover')[];
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onSelect?: (key: string) => void;
18
+ }
19
+ declare const PisellDropdown: React.FC<PisellDropdownProps>;
20
+ export default PisellDropdown;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { EmptyProps } from 'antd';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import './index.less';
5
+ export interface PisellEmptyProps extends EmptyProps {
6
+ /** 平台 */
7
+ platform?: PisellContextType['platform'];
8
+ /** 额外内容描述 */
9
+ extraDescription?: React.ReactNode;
10
+ /** 额外内容描述 */
11
+ icon?: React.ReactNode;
12
+ /** 自定义底部额外操作区域 */
13
+ footer?: React.ReactNode;
14
+ [key: string]: any;
15
+ /** 最大宽度 */
16
+ maxWidth?: number;
17
+ }
18
+ declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
19
+ export default PisellEmpty;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellHeaderProgressBarProps {
4
+ title?: React.ReactNode;
5
+ stepText?: React.ReactNode;
6
+ showClose?: boolean;
7
+ /** 是否启用投影 */
8
+ enableShadow?: boolean;
9
+ /** 是否启用描边 */
10
+ enableBorder?: boolean;
11
+ /** 描边粗细 */
12
+ borderWidth?: number;
13
+ /** 描边颜色 */
14
+ borderColor?: string;
15
+ /** 头部背景颜色 */
16
+ backgroundColor?: string;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
23
+ /** 返回按钮点击事件 */
24
+ onBack?: () => void;
25
+ /** 关闭按钮点击事件 */
26
+ onClose?: () => void;
27
+ }
28
+ declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
29
+ export default PisellHeaderProgressBar;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import 'swiper/swiper-bundle.css';
3
+ import './index.less';
4
+ export interface PisellImageCarouselsProps {
5
+ dataSource?: string[];
6
+ width?: number | string;
7
+ height?: number;
8
+ showArrows?: boolean;
9
+ showDots?: boolean;
10
+ autoplay?: boolean;
11
+ interval?: number;
12
+ borderRadius?: number;
13
+ loop?: boolean;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
18
+ export default PisellImageCarousels;
@@ -0,0 +1,4 @@
1
+ export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
+ activeNativeScanner: () => void;
3
+ isTerminal: any;
4
+ };
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export declare type EntryModeType = {
5
+ /**
6
+ * 录入模式名称
7
+ * scanCode: 扫码录入
8
+ * input: 手动录入
9
+ * scanner: 扫码枪录入
10
+ * nfc: NFC录入
11
+ */
12
+ type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
+ /**
14
+ * 录入模式文案 没有使用默认文案
15
+ */
16
+ name?: string;
17
+ };
18
+ export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
+ /** 平台 */
20
+ platform?: PisellContextType['platform'];
21
+ /** 录入模式 */
22
+ entryModes: EntryModeType[];
23
+ /** 标题文案 */
24
+ title?: React.ReactNode;
25
+ /** 搜索框描述文案 */
26
+ searchDescribe?: React.ReactNode;
27
+ /** 录入信息值改变 */
28
+ onChange?: (val: string) => void;
29
+ /** 录入类型切换时候触发的 */
30
+ onChangeType?: (val: null | EntryModeType['type']) => void;
31
+ }
32
+ declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
+ export default PisellInformationEntry;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellList01Props {
4
+ dataSource?: any[];
5
+ showSearch: boolean;
6
+ showCategory: boolean;
7
+ placeholder?: string;
8
+ renderItem?: (item: any, index: number) => React.ReactNode;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ onChange?: (anchor: string) => void;
12
+ onSearch?: (value: any) => void;
13
+ isShowEmpty?: boolean;
14
+ description?: any;
15
+ }
16
+ declare const PisellList01: React.FC<PisellList01Props>;
17
+ export default PisellList01;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface PisellQrcodeProps {
4
+ size?: number;
5
+ platform: 'pc' | 'h5' | 'ipad';
6
+ value: string;
7
+ className: string;
8
+ }
9
+ declare const PisellQrcode: React.FC<PisellQrcodeProps>;
10
+ export default PisellQrcode;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellSectionHeadersProps {
4
+ /** 是否占据空间(true: 占据空间, false: 不占据空间) */
5
+ /** 左侧返回区域 */
6
+ backNode?: React.ReactNode;
7
+ /** 中间内容区域 */
8
+ centerNode?: React.ReactNode;
9
+ /** 右侧操作区域 */
10
+ actionNode?: React.ReactNode;
11
+ /** 自定义类名 */
12
+ className?: string;
13
+ /** 自定义样式 */
14
+ style?: React.CSSProperties;
15
+ /** 返回按钮点击事件 */
16
+ onBack?: () => void;
17
+ /** 操作区域点击事件 */
18
+ onAction?: () => void;
19
+ }
20
+ declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
21
+ export default PisellSectionHeaders;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ isHasBorder?: boolean;
5
+ backgroundColors?: string[];
6
+ labelColor?: string;
7
+ valueColor?: string;
8
+ data: {
9
+ label: string;
10
+ value: string;
11
+ isLink?: boolean;
12
+ link?: string;
13
+ tip?: string;
14
+ children?: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ }[];
19
+ }
20
+ declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
21
+ export default PisellStatisticList;
@@ -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", {
@@ -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;