@fonixtree/magic-design 1.0.65 → 1.0.67

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 (421) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +6 -62
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/images/base64/index.js +2 -36
  10. package/es/assets/less/button.less +0 -5
  11. package/es/assets/less/cylon-antd.less +1686 -7246
  12. package/es/assets/less/font.less +0 -22
  13. package/es/common/Button/index.less +1 -0
  14. package/es/common/CountDown/index.js +11 -20
  15. package/es/common/GroupList/index.js +2 -7
  16. package/es/common/ImagePicker/index.js +3 -1
  17. package/es/common/LinkModal/CouponTable/index.js +3 -3
  18. package/es/common/LinkModal/CustomTable/index.js +0 -1
  19. package/es/common/LinkModal/FunctionTable/index.js +1 -2
  20. package/es/common/LinkModal/index.js +2 -14
  21. package/es/common/MagicLink/index.js +2 -2
  22. package/es/common/ProductModal/index.js +3 -38
  23. package/es/common/ProductSource/index.js +18 -59
  24. package/es/common/UrlPicker/index.js +10 -62
  25. package/es/common/index.js +0 -24
  26. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  27. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  28. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  29. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  30. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  31. package/es/composite-comp/bol/components/Video/index.js +2 -1
  32. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  33. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  34. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  35. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  36. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  37. package/es/composite-comp/bol/components/Wallet/index.js +15 -11
  38. package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  39. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  40. package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  41. package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  42. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  43. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  44. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  45. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  46. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  47. package/es/composite-comp/common/components/ProductItem/index.js +20 -22
  48. package/es/composite-comp/common/components/ProductItem/index.less +12 -2
  49. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  50. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  51. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  52. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  53. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  54. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  55. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  56. package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  57. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  58. package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  59. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  61. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  62. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  63. package/es/constants/component-types.js +3 -45
  64. package/es/constants/index.js +5 -74
  65. package/es/constants/layout.js +1 -48
  66. package/es/core/Designer/ChatRobot/index.js +17 -84
  67. package/es/core/Designer/ChatRobot/index.less +28 -69
  68. package/es/core/Designer/ConfigPanel/index.js +3 -14
  69. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  70. package/es/core/Designer/PageCompList/index.js +5 -6
  71. package/es/core/Designer/QuickMenuBar/index.js +5 -11
  72. package/es/core/Designer/QuickMenuBar/index.less +0 -4
  73. package/es/core/Designer/RenderHtml/index.js +15 -18
  74. package/es/core/Designer/RenderHtml/index.less +1 -1
  75. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  76. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  77. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  78. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  79. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  80. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  81. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  82. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  84. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  85. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  86. package/es/core/Designer/ToolBarModal/index.js +27 -69
  87. package/es/core/Designer/ToolBarModal/index.less +2 -3
  88. package/es/core/Designer/index.js +2 -26
  89. package/es/core/Renderer/index.js +29 -74
  90. package/es/decorator/compositeDecorator.js +6 -33
  91. package/es/decorator/metaDecorator.js +1 -1
  92. package/es/locale/en/en.json +3 -17
  93. package/es/locale/es/es.json +3 -17
  94. package/es/locale/id/id.json +3 -17
  95. package/es/meta-comp/components/Image/index.js +25 -31
  96. package/es/meta-comp/components/Text/index.js +1 -4
  97. package/es/meta-comp/components/Text/index.less +0 -8
  98. package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
  99. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  100. package/es/mobx/Frame.js +2 -17
  101. package/es/mobx/index.js +3 -9
  102. package/es/utils/androidUtil.js +2 -13
  103. package/es/utils/businessUtil.js +3 -25
  104. package/es/utils/commonUtil.js +22 -177
  105. package/es/utils/coreUtil.js +2 -45
  106. package/es/utils/currencyUtil.js +2 -9
  107. package/lib/assets/fonts/.DS_Store +0 -0
  108. package/lib/assets/fonts/magic-box-iconfont.css +6 -62
  109. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
  110. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  111. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  112. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  113. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  114. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  115. package/lib/assets/images/base64/index.js +2 -36
  116. package/lib/assets/less/button.less +0 -5
  117. package/lib/assets/less/cylon-antd.less +1686 -7246
  118. package/lib/assets/less/font.less +0 -22
  119. package/lib/common/Button/index.less +1 -0
  120. package/lib/common/CountDown/index.js +11 -20
  121. package/lib/common/GroupList/index.js +2 -7
  122. package/lib/common/ImagePicker/index.js +3 -1
  123. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  124. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  125. package/lib/common/LinkModal/FunctionTable/index.js +1 -2
  126. package/lib/common/LinkModal/index.js +2 -14
  127. package/lib/common/MagicLink/index.js +2 -2
  128. package/lib/common/ProductModal/index.js +3 -38
  129. package/lib/common/ProductSource/index.js +18 -59
  130. package/lib/common/UrlPicker/index.js +10 -62
  131. package/lib/common/index.js +0 -24
  132. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  133. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  134. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  135. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  136. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  137. package/lib/composite-comp/bol/components/Video/index.js +2 -1
  138. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  139. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  140. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  141. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  142. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  143. package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
  144. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  145. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  146. package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  147. package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  148. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  149. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  150. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  151. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  152. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  153. package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
  154. package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
  155. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  156. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  157. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  158. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  159. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  160. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  161. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  162. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  163. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  164. package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  165. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  166. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  167. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  168. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  169. package/lib/constants/component-types.js +3 -45
  170. package/lib/constants/index.js +5 -74
  171. package/lib/constants/layout.js +1 -48
  172. package/lib/core/Designer/ChatRobot/index.js +17 -84
  173. package/lib/core/Designer/ChatRobot/index.less +28 -69
  174. package/lib/core/Designer/ConfigPanel/index.js +3 -14
  175. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  176. package/lib/core/Designer/PageCompList/index.js +5 -6
  177. package/lib/core/Designer/QuickMenuBar/index.js +5 -11
  178. package/lib/core/Designer/QuickMenuBar/index.less +0 -4
  179. package/lib/core/Designer/RenderHtml/index.js +15 -18
  180. package/lib/core/Designer/RenderHtml/index.less +1 -1
  181. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  182. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  183. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  184. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  185. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  186. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  187. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  188. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  189. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  190. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  191. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  192. package/lib/core/Designer/ToolBarModal/index.js +27 -69
  193. package/lib/core/Designer/ToolBarModal/index.less +2 -3
  194. package/lib/core/Designer/index.js +2 -26
  195. package/lib/core/Renderer/index.js +29 -74
  196. package/lib/decorator/compositeDecorator.js +6 -33
  197. package/lib/decorator/metaDecorator.js +1 -1
  198. package/lib/locale/en/en.json +3 -17
  199. package/lib/locale/es/es.json +3 -17
  200. package/lib/locale/id/id.json +3 -17
  201. package/lib/meta-comp/components/Image/index.js +25 -31
  202. package/lib/meta-comp/components/Text/index.js +1 -4
  203. package/lib/meta-comp/components/Text/index.less +0 -8
  204. package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
  205. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  206. package/lib/mobx/Frame.js +2 -17
  207. package/lib/mobx/index.js +3 -9
  208. package/lib/utils/androidUtil.js +2 -13
  209. package/lib/utils/businessUtil.js +3 -25
  210. package/lib/utils/commonUtil.js +22 -177
  211. package/lib/utils/coreUtil.js +2 -45
  212. package/lib/utils/currencyUtil.js +2 -9
  213. package/package.json +1 -2
  214. package/es/assets/fonts/Trueno-Light.otf +0 -0
  215. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  216. package/es/assets/fonts/TruenoBd.otf +0 -0
  217. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  218. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  219. package/es/common/AffiliateProductModal/index.js +0 -582
  220. package/es/common/AffiliateProductModal/index.less +0 -146
  221. package/es/common/CardCarousel/index.js +0 -171
  222. package/es/common/CardCarousel/index.less +0 -28
  223. package/es/common/CropperModal/index.js +0 -126
  224. package/es/common/CropperModal/index.less +0 -29
  225. package/es/common/MyModal/index.js +0 -417
  226. package/es/common/MyModal/index.less +0 -74
  227. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  228. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  229. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  230. package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
  231. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  232. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  233. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  234. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  235. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  236. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  237. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  238. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  239. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  240. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  241. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  242. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  243. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  244. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  245. package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  246. package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  247. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  248. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  249. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  250. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  251. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  252. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  253. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  254. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  255. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  256. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  257. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  258. package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  259. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  260. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  261. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  262. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  263. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  264. package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  265. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  266. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  267. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  268. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  269. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  270. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  271. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  272. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  273. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  274. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  275. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  276. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  277. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  278. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  279. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  280. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  281. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  282. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  283. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  284. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  285. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  286. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  287. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  288. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  289. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  290. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  291. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  292. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  293. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  294. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  295. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  296. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  297. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  298. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  299. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  300. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  301. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  302. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  303. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  304. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  305. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  306. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  307. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  308. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  309. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  310. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  311. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  312. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  313. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  314. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  315. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  316. package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
  317. package/es/mobx/UserState.js +0 -144
  318. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  319. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  320. package/lib/assets/fonts/TruenoBd.otf +0 -0
  321. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  322. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  323. package/lib/common/AffiliateProductModal/index.js +0 -582
  324. package/lib/common/AffiliateProductModal/index.less +0 -146
  325. package/lib/common/CardCarousel/index.js +0 -171
  326. package/lib/common/CardCarousel/index.less +0 -28
  327. package/lib/common/CropperModal/index.js +0 -126
  328. package/lib/common/CropperModal/index.less +0 -29
  329. package/lib/common/MyModal/index.js +0 -417
  330. package/lib/common/MyModal/index.less +0 -74
  331. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  332. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  333. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  334. package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
  335. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  336. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  337. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  338. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  339. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  340. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  341. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  342. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  343. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  344. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  345. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  346. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  347. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  348. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  349. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  350. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  351. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  352. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  353. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  354. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  355. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  356. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  357. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  358. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  359. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  360. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  361. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  362. package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  363. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  364. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  365. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  366. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  367. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  368. package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  369. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  370. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  371. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  372. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  373. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  374. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  375. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  376. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  377. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  378. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  379. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  380. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  381. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  382. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  383. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  384. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  385. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  386. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  387. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  388. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  389. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  390. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  391. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  392. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  393. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  394. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  395. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  396. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  397. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  398. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  399. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  400. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  401. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  402. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  403. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  404. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  405. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  406. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  407. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  408. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  409. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  410. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  411. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  412. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  413. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  414. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  415. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  416. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  417. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  418. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  419. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  420. package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
  421. package/lib/mobx/UserState.js +0 -144
@@ -1,112 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _components = require("../../../../../meta-comp/components");
11
-
12
- var _commonUtil = require("../../../../../utils/commonUtil");
13
-
14
- require("./index.less");
15
-
16
- var _common = require("../../../../../common");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- var __extends = void 0 && (void 0).__extends || function () {
21
- var _extendStatics = function extendStatics(d, b) {
22
- _extendStatics = Object.setPrototypeOf || {
23
- __proto__: []
24
- } instanceof Array && function (d, b) {
25
- d.__proto__ = b;
26
- } || function (d, b) {
27
- for (var p in b) {
28
- if (b.hasOwnProperty(p)) d[p] = b[p];
29
- }
30
- };
31
-
32
- return _extendStatics(d, b);
33
- };
34
-
35
- return function (d, b) {
36
- _extendStatics(d, b);
37
-
38
- function __() {
39
- this.constructor = d;
40
- }
41
-
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- };
44
- }();
45
-
46
- var HeadNavigationMobile =
47
- /** @class */
48
- function (_super) {
49
- __extends(HeadNavigationMobile, _super);
50
-
51
- function HeadNavigationMobile() {
52
- var _this = _super !== null && _super.apply(this, arguments) || this;
53
-
54
- _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
55
- _this.state = {
56
- showNav: false
57
- };
58
- return _this;
59
- }
60
-
61
- HeadNavigationMobile.prototype.render = function () {
62
- var _this = this;
63
-
64
- var data = this.props.data;
65
- var showNav = this.state.showNav; // console.log('---head data', data);
66
-
67
- var GAData = (0, _commonUtil.getGAData)(data);
68
- return /*#__PURE__*/_react["default"].createElement("div", {
69
- className: "m-head-navigation"
70
- }, /*#__PURE__*/_react["default"].createElement("div", {
71
- className: "head-wrap"
72
- }, /*#__PURE__*/_react["default"].createElement("div", {
73
- className: "head-title"
74
- }, "Direct Function"), /*#__PURE__*/_react["default"].createElement("div", {
75
- className: "" + (showNav ? 'icon-wrap rotate' : 'icon-wrap'),
76
- onClick: function onClick() {
77
- _this.setState({
78
- showNav: !showNav
79
- });
80
- }
81
- }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
82
- color: "#232F46",
83
- size: 20,
84
- type: "icon-more"
85
- }))), /*#__PURE__*/_react["default"].createElement("div", {
86
- className: showNav ? 'content-wrap item-padding-top' : 'content-wrap'
87
- }, showNav && data.groupSource.map(function (group) {
88
- return /*#__PURE__*/_react["default"].createElement("div", {
89
- key: group.id,
90
- className: "head-item",
91
- onClick: function onClick() {
92
- return _this.clickJump(group.title.text);
93
- }
94
- }, group.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
95
- data: group.image,
96
- GAData: GAData,
97
- maxWidth: 64,
98
- minWidth: 64
99
- }));
100
- })));
101
- };
102
-
103
- HeadNavigationMobile.defaultProps = {
104
- data: {
105
- groupSource: []
106
- }
107
- };
108
- return HeadNavigationMobile;
109
- }(_react["default"].Component);
110
-
111
- var _default = HeadNavigationMobile;
112
- exports["default"] = _default;
@@ -1,34 +0,0 @@
1
- .m-head-navigation {
2
- width: 100%;
3
- }
4
- .m-head-navigation .head-wrap {
5
- padding: 0.3rem;
6
- display: flex;
7
- align-items: center;
8
- justify-content: space-between;
9
- border-bottom: 0.02rem solid #E6EAF0;
10
- }
11
- .m-head-navigation .head-wrap .head-title {
12
- font-family: Open Sans;
13
- font-size: 0.28rem;
14
- font-weight: 400;
15
- line-height: 0.44rem;
16
- color: #000;
17
- }
18
- .m-head-navigation .head-wrap .icon-wrap {
19
- transition: all 0.1s;
20
- }
21
- .m-head-navigation .head-wrap .rotate {
22
- transform: rotate(90deg);
23
- }
24
- .m-head-navigation .content-wrap {
25
- display: flex;
26
- flex-wrap: wrap;
27
- }
28
- .m-head-navigation .content-wrap .head-item {
29
- margin-bottom: 0.16rem;
30
- margin-left: 0.14rem;
31
- }
32
- .m-head-navigation .item-padding-top {
33
- padding-top: 0.16rem;
34
- }
@@ -1,206 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- require("./index.less");
13
-
14
- var _h5DefImg = _interopRequireDefault(require("../../../../../meta-comp/components/Image/image/h5DefImg.png"));
15
-
16
- var _pcDefImg = _interopRequireDefault(require("../../../../../meta-comp/components/Image/image/pcDefImg.png"));
17
-
18
- var _coreUtil = require("../../../../../utils/coreUtil");
19
-
20
- var _decorator = require("../../../../../decorator");
21
-
22
- var _commonUtil = require("../../../../../utils/commonUtil");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
27
-
28
- var __extends = void 0 && (void 0).__extends || function () {
29
- var _extendStatics = function extendStatics(d, b) {
30
- _extendStatics = Object.setPrototypeOf || {
31
- __proto__: []
32
- } instanceof Array && function (d, b) {
33
- d.__proto__ = b;
34
- } || function (d, b) {
35
- for (var p in b) {
36
- if (b.hasOwnProperty(p)) d[p] = b[p];
37
- }
38
- };
39
-
40
- return _extendStatics(d, b);
41
- };
42
-
43
- return function (d, b) {
44
- _extendStatics(d, b);
45
-
46
- function __() {
47
- this.constructor = d;
48
- }
49
-
50
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
- };
52
- }();
53
-
54
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
55
- var c = arguments.length,
56
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
57
- d;
58
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
59
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
- }
61
- return c > 3 && r && Object.defineProperty(target, key, r), r;
62
- };
63
-
64
- var MetaImage =
65
- /** @class */
66
- function (_super) {
67
- __extends(MetaImage, _super);
68
-
69
- function MetaImage() {
70
- var _this = _super !== null && _super.apply(this, arguments) || this;
71
-
72
- _this.imgRef = /*#__PURE__*/_react["default"].createRef();
73
- _this.state = {
74
- // 当仅作为一个图片时,鼠标移上去,hover状态
75
- hoverImgSrc: false
76
- };
77
-
78
- _this.getStyle = function () {
79
- var _a, _b;
80
-
81
- var _c = _this.props,
82
- data = _c.data,
83
- hoverState = _c.hoverState,
84
- maxHeight = _c.maxHeight,
85
- maxWidth = _c.maxWidth,
86
- minHeight = _c.minHeight,
87
- minWidth = _c.minWidth,
88
- limitWidthHeight = _c.limitWidthHeight,
89
- scale = _c.scale;
90
- var hoverImgSrc = _this.state.hoverImgSrc;
91
- var obj = {};
92
-
93
- if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && ((_b = data === null || data === void 0 ? void 0 : data.hover) === null || _b === void 0 ? void 0 : _b.backgroundType) === 'enlarge' && (hoverState || hoverImgSrc)) {
94
- // return { transform: `scale(${data.hover.magnification})` };
95
- obj.transform = "scale(" + data.hover.magnification + ")";
96
- obj.zIndex = '1';
97
- }
98
-
99
- if (maxHeight) {
100
- obj.maxHeight = maxHeight;
101
- }
102
-
103
- if (maxWidth || maxWidth === 0) {
104
- obj.maxWidth = maxWidth;
105
- }
106
-
107
- if (minHeight) {
108
- obj.minHeight = minHeight;
109
- }
110
-
111
- if (minWidth) {
112
- obj.minWidth = minWidth;
113
- }
114
-
115
- if (limitWidthHeight) {
116
- if ((0, _coreUtil.isPc)()) {
117
- if (data.content.pcImgWidth) obj.width = data.content.pcImgWidth * scale;
118
-
119
- if (data.content.pcImgWidth > data.content.pcImgHeight) {
120
- obj.height = 'auto';
121
- } else if (data.content.pcImgHeight) obj.height = data.content.pcImgHeight * scale;
122
- } else {
123
- if (data.content.h5ImgWidth) obj.width = data.content.h5ImgWidth * scale; // if (data.content.h5ImgHeight) obj.height = data.content.h5ImgHeight * scale;
124
-
125
- if (data.content.h5ImgWidth > data.content.h5ImgHeight || data.content.h5ImgHeight > maxHeight) {
126
- obj.height = 'auto';
127
- } else if (data.content.h5ImgHeight) obj.height = data.content.h5ImgHeight * scale;
128
- }
129
- }
130
-
131
- return obj;
132
- };
133
-
134
- _this.mouseEnterImg = function () {
135
- var _a;
136
-
137
- var data = _this.props.data;
138
-
139
- if ((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) {
140
- _this.setState({
141
- hoverImgSrc: true
142
- });
143
- }
144
- };
145
-
146
- _this.mouseLeaveImg = function () {
147
- var _a;
148
-
149
- var data = _this.props.data;
150
-
151
- if ((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) {
152
- _this.setState({
153
- hoverImgSrc: false
154
- });
155
- }
156
- };
157
-
158
- return _this;
159
- }
160
-
161
- MetaImage.prototype.render = function () {
162
- var _a, _b, _c, _d;
163
-
164
- var _e = this.props,
165
- data = _e.data,
166
- hoverState = _e.hoverState;
167
- var hoverImgSrc = this.state.hoverImgSrc;
168
- var srcImg = (0, _coreUtil.isPc)() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
169
-
170
- if (((_c = data === null || data === void 0 ? void 0 : data.hover) === null || _c === void 0 ? void 0 : _c.open) && ((_d = data === null || data === void 0 ? void 0 : data.hover) === null || _d === void 0 ? void 0 : _d.backgroundType) === 'new' && (hoverState || hoverImgSrc)) {
171
- srcImg = (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
172
- }
173
-
174
- if (!srcImg) {
175
- srcImg = (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
176
- }
177
-
178
- return /*#__PURE__*/_react["default"].createElement("div", {
179
- className: (0, _classnames["default"])('menu-meta-image'),
180
- onClick: function onClick() {
181
- (0, _coreUtil.clickUrl)(data.content.clickUrl);
182
- }
183
- }, srcImg && /*#__PURE__*/_react["default"].createElement("img", {
184
- ref: this.imgRef,
185
- onMouseEnter: this.mouseEnterImg,
186
- onMouseLeave: this.mouseLeaveImg,
187
- src: srcImg,
188
- style: (0, _commonUtil.pxToRem)(this.getStyle())
189
- }));
190
- };
191
-
192
- MetaImage.defaultProps = {
193
- data: {
194
- content: {},
195
- hover: {}
196
- },
197
- hoverState: false,
198
- limitWidthHeight: false,
199
- scale: 1
200
- };
201
- MetaImage = __decorate([_decorator.metaDecorator], MetaImage);
202
- return MetaImage;
203
- }(_react["default"].Component);
204
-
205
- var _default = MetaImage;
206
- exports["default"] = _default;
@@ -1,25 +0,0 @@
1
- .menu-meta-image {
2
- position: relative;
3
- width: 100%;
4
- height: 100%;
5
- display: flex;
6
- justify-content: center;
7
- // overflow: hidden;
8
- &>img {
9
- width: 100%;
10
- height: 100%;
11
- // object-fit: contain;
12
- transition: all .2s linear;
13
- vertical-align: initial;
14
- max-width: 100%;
15
- object-fit: contain;
16
- }
17
-
18
- &.backgroundImg {
19
- &>img {
20
- // object-fit: cover;
21
- // width: auto;
22
- max-width: none;
23
- }
24
- }
25
- }
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.groupSourceMenuJSON = exports.getDefaultJSON = void 0;
7
-
8
- var _uuid = require("uuid");
9
-
10
- var _base = require("../../../../assets/images/base64");
11
-
12
- var defaultMenuName = [{
13
- name: 'Home',
14
- icon: _base.menuHomeIcon,
15
- selectedIcon: _base.menuHomeSelectedIcon,
16
- clickUrl: {
17
- value: '/',
18
- name: 'Home',
19
- type: 'FunctionPage'
20
- }
21
- }, {
22
- name: 'Category',
23
- icon: _base.menuCategoryIcon,
24
- selectedIcon: _base.menuCategorySelectedIcon,
25
- clickUrl: {
26
- value: '/main/category',
27
- name: 'Category',
28
- type: 'FunctionPage'
29
- }
30
- }, {
31
- name: 'Community',
32
- icon: _base.menuCommunityIcon,
33
- selectedIcon: _base.menuCommunitySelectedIcon,
34
- clickUrl: {
35
- value: '/main/community',
36
- name: 'Community',
37
- type: 'FunctionPage'
38
- }
39
- }, {
40
- name: 'Cart',
41
- icon: _base.menuCartIcon,
42
- selectedIcon: _base.menuCartSelectedIcon,
43
- clickUrl: {
44
- value: '/main/cart',
45
- name: 'Cart',
46
- remark: '/h5/carts/num'
47
- }
48
- }, {
49
- name: 'Account',
50
- icon: _base.menuAccountIcon,
51
- selectedIcon: _base.menuAccountSelectedIcon,
52
- clickUrl: {
53
- value: '/main/account',
54
- name: 'Account',
55
- type: 'FunctionPage'
56
- }
57
- }];
58
-
59
- var groupSourceMenuJSON = function groupSourceMenuJSON(group) {
60
- if (!group) group = defaultMenuName[0];
61
- var itemId = (0, _uuid.v4)();
62
- return {
63
- id: itemId,
64
- type: group.name,
65
- image: {
66
- parentId: itemId,
67
- id: (0, _uuid.v4)(),
68
- open: true,
69
- type: 'IMAGE',
70
- content: {
71
- h5Name: 'name2',
72
- pcName: 'name2',
73
- h5ImgSrc: group.icon,
74
- pcImgSrc: '',
75
- clickUrl: group.clickUrl
76
- },
77
- hover: {
78
- open: true,
79
- backgroundType: 'new',
80
- magnification: 1.5,
81
- pcImgHoverUrl: '',
82
- h5ImgHoverUrl: group.selectedIcon
83
- }
84
- }
85
- };
86
- };
87
-
88
- exports.groupSourceMenuJSON = groupSourceMenuJSON;
89
-
90
- var getDefaultJSON = function getDefaultJSON() {
91
- var groupId = (0, _uuid.v4)();
92
- return {
93
- id: groupId,
94
- type: 'MENU_NAVIGATION',
95
- groupSource: defaultMenuName.map(function (group) {
96
- return groupSourceMenuJSON(group);
97
- }),
98
- background: {
99
- opacity: 100,
100
- color: '#fff',
101
- image: '',
102
- bgType: 'color'
103
- }
104
- };
105
- };
106
-
107
- exports.getDefaultJSON = getDefaultJSON;
@@ -1,84 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _mobile = _interopRequireDefault(require("./mobile"));
11
-
12
- var _defaultJSON = require("./defaultJSON");
13
-
14
- var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
-
24
- var __extends = void 0 && (void 0).__extends || function () {
25
- var _extendStatics = function extendStatics(d, b) {
26
- _extendStatics = Object.setPrototypeOf || {
27
- __proto__: []
28
- } instanceof Array && function (d, b) {
29
- d.__proto__ = b;
30
- } || function (d, b) {
31
- for (var p in b) {
32
- if (b.hasOwnProperty(p)) d[p] = b[p];
33
- }
34
- };
35
-
36
- return _extendStatics(d, b);
37
- };
38
-
39
- return function (d, b) {
40
- _extendStatics(d, b);
41
-
42
- function __() {
43
- this.constructor = d;
44
- }
45
-
46
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
- };
48
- }();
49
-
50
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
- var c = arguments.length,
52
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
- d;
54
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
- }
57
- return c > 3 && r && Object.defineProperty(target, key, r), r;
58
- };
59
-
60
- var MenuNavigation =
61
- /** @class */
62
- function (_super) {
63
- __extends(MenuNavigation, _super);
64
-
65
- function MenuNavigation() {
66
- return _super !== null && _super.apply(this, arguments) || this;
67
- }
68
-
69
- MenuNavigation.prototype.render = function () {
70
- var nodeData = this.props.nodeData;
71
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
- data: nodeData
73
- }));
74
- };
75
-
76
- MenuNavigation.defaultProps = {};
77
- MenuNavigation.type = 'MENU_NAVIGATION';
78
- MenuNavigation.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
- MenuNavigation = __decorate([_compositeDecorator["default"]], MenuNavigation);
80
- return MenuNavigation;
81
- }(_react.Component);
82
-
83
- var _default = MenuNavigation;
84
- exports["default"] = _default;
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _MenuNavMetaImage = _interopRequireDefault(require("../MenuNavMetaImage"));
11
-
12
- var _commonUtil = require("../../../../../utils/commonUtil");
13
-
14
- require("./index.less");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- var __extends = void 0 && (void 0).__extends || function () {
19
- var _extendStatics = function extendStatics(d, b) {
20
- _extendStatics = Object.setPrototypeOf || {
21
- __proto__: []
22
- } instanceof Array && function (d, b) {
23
- d.__proto__ = b;
24
- } || function (d, b) {
25
- for (var p in b) {
26
- if (b.hasOwnProperty(p)) d[p] = b[p];
27
- }
28
- };
29
-
30
- return _extendStatics(d, b);
31
- };
32
-
33
- return function (d, b) {
34
- _extendStatics(d, b);
35
-
36
- function __() {
37
- this.constructor = d;
38
- }
39
-
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- };
42
- }();
43
-
44
- var MenuNavigationMobile =
45
- /** @class */
46
- function (_super) {
47
- __extends(MenuNavigationMobile, _super);
48
-
49
- function MenuNavigationMobile() {
50
- var _this = _super !== null && _super.apply(this, arguments) || this;
51
-
52
- _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
53
- _this.state = {};
54
- return _this;
55
- }
56
-
57
- MenuNavigationMobile.prototype.render = function () {
58
- var _this = this;
59
-
60
- var data = this.props.data;
61
- var GAData = (0, _commonUtil.getGAData)(data);
62
- return /*#__PURE__*/_react["default"].createElement("div", {
63
- className: "m-menu-navigation"
64
- }, data.groupSource.map(function (group) {
65
- return /*#__PURE__*/_react["default"].createElement("div", {
66
- key: group.id,
67
- className: "menu-item",
68
- onClick: function onClick() {
69
- return _this.clickJump(group.title.text);
70
- }
71
- }, group.image.open && /*#__PURE__*/_react["default"].createElement(_MenuNavMetaImage["default"], {
72
- data: group.image,
73
- GAData: GAData
74
- }));
75
- }));
76
- };
77
-
78
- MenuNavigationMobile.defaultProps = {
79
- data: {
80
- groupSource: []
81
- }
82
- };
83
- return MenuNavigationMobile;
84
- }(_react["default"].Component);
85
-
86
- var _default = MenuNavigationMobile;
87
- exports["default"] = _default;
@@ -1,8 +0,0 @@
1
- .m-menu-navigation {
2
- width: 100%;
3
- display: flex;
4
- align-items: center;
5
- }
6
- .m-menu-navigation .menu-item {
7
- flex: 1;
8
- }