@fonixtree/magic-design 0.1.77 → 1.0.2-0.1

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 (345) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +23 -3
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +23 -3
  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/layout-icon/imageTextLeft.svg +6 -0
  10. package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
  11. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  12. package/es/assets/less/modal.less +1 -1
  13. package/es/common/ColorPicker/index.js +4 -1
  14. package/es/common/Field/index.js +20 -3
  15. package/es/common/ImageLazy/index.js +172 -0
  16. package/es/common/ImageLazy/index.less +0 -0
  17. package/es/common/ImagePicker/index.js +50 -5
  18. package/es/common/ImagePicker/index.less +1 -0
  19. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  20. package/es/common/LinkModal/CatgTable/index.js +1 -1
  21. package/es/common/LinkModal/CouponTable/index.js +10 -2
  22. package/es/common/LinkModal/FilteredProductModal/index.js +12 -9
  23. package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
  24. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  25. package/es/common/LinkModal/index.js +1 -1
  26. package/es/common/ProductModal/index.js +25 -32
  27. package/es/common/Video/index.js +11 -3
  28. package/es/common/Video/index.less +11 -7
  29. package/es/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  30. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  31. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  32. package/es/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  33. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  34. package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  35. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  36. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  37. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  38. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  39. package/es/composite-comp/bol/components/ImageText/pc/index.js +97 -5
  40. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  41. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  42. package/es/composite-comp/bol/components/Location/index.js +100 -0
  43. package/es/composite-comp/bol/components/Location/index.less +15 -0
  44. package/es/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  45. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  46. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  47. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  48. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  49. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  50. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  51. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  52. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  53. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  54. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  55. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  56. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +121 -8
  57. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  58. package/es/composite-comp/common/components/ProductItem/index.js +4 -2
  59. package/es/composite-comp/common/components/ProductItem/index.less +9 -0
  60. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  61. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  62. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  63. package/es/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  64. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  65. package/es/composite-comp/dito/components/Recommend/pc/index.js +8 -7
  66. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  67. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  68. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  69. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  70. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  71. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +47 -38
  72. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -76
  73. package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  74. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  75. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  76. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  77. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  78. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  79. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  80. package/es/constants/component-types.js +10 -2
  81. package/es/constants/index.js +10 -1
  82. package/es/constants/layout.js +21 -1
  83. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  84. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  85. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  86. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  87. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  88. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  89. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  90. package/es/core/Designer/AiImageGenerator/index.js +364 -63
  91. package/es/core/Designer/AiImageGenerator/index.less +70 -46
  92. package/es/core/Designer/ChatRobot/index.js +51 -14
  93. package/es/core/Designer/ChatRobot/index.less +11 -0
  94. package/es/core/Designer/ConfigPanel/index.js +2 -1
  95. package/es/core/Designer/FonixtreeGpt/index.js +32 -171
  96. package/es/core/Designer/History/index.js +2 -2
  97. package/es/core/Designer/LeftTitle/index.js +1 -1
  98. package/es/core/Designer/PageCompList/index.js +5 -3
  99. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  100. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  101. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  102. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  103. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  104. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  105. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  106. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  107. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  108. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  109. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  110. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  111. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  112. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  113. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  114. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  115. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  116. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  117. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  118. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  119. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  120. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  121. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  122. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  123. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  124. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  129. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  130. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  133. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  134. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  135. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  140. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  141. package/es/core/Designer/ToolBarModal/index.js +366 -0
  142. package/es/core/Designer/ToolBarModal/index.less +32 -0
  143. package/es/core/Designer/index.js +30 -10
  144. package/es/decorator/index.js +38 -1
  145. package/es/decorator/lazyLoadDecorator.js +75 -0
  146. package/es/locale/en/en.json +6 -1
  147. package/es/locale/es/es.json +6 -1
  148. package/es/locale/id/id.json +6 -1
  149. package/es/meta-comp/components/Button/index.js +7 -0
  150. package/es/meta-comp/components/Image/index.js +19 -3
  151. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  152. package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
  153. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  154. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  155. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  156. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  157. package/es/meta-comp/components/Text/index.js +110 -372
  158. package/es/meta-comp/components/Text/index.less +57 -0
  159. package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  160. package/es/meta-comp/config-panels/ImageConfig/index.js +3 -1
  161. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  162. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  163. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  164. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  165. package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
  166. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  167. package/es/mobx/Frame.js +7 -1
  168. package/es/utils/androidUtil.js +6 -0
  169. package/es/utils/businessUtil.js +3 -3
  170. package/es/utils/commonUtil.js +40 -10
  171. package/es/utils/coreUtil.js +15 -0
  172. package/es/utils/currencyUtil.js +29 -10
  173. package/lib/assets/fonts/.DS_Store +0 -0
  174. package/lib/assets/fonts/magic-box-iconfont.css +23 -3
  175. package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
  176. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  177. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  178. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  179. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  180. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  181. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  182. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  183. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  184. package/lib/assets/less/modal.less +1 -1
  185. package/lib/common/ColorPicker/index.js +4 -1
  186. package/lib/common/Field/index.js +20 -3
  187. package/lib/common/ImageLazy/index.js +172 -0
  188. package/lib/common/ImageLazy/index.less +0 -0
  189. package/lib/common/ImagePicker/index.js +50 -5
  190. package/lib/common/ImagePicker/index.less +1 -0
  191. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  192. package/lib/common/LinkModal/CatgTable/index.js +1 -1
  193. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  194. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -9
  195. package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
  196. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  197. package/lib/common/LinkModal/index.js +1 -1
  198. package/lib/common/ProductModal/index.js +25 -32
  199. package/lib/common/Video/index.js +11 -3
  200. package/lib/common/Video/index.less +11 -7
  201. package/lib/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  202. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  203. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  204. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  205. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  206. package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  207. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  208. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  209. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  210. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  211. package/lib/composite-comp/bol/components/ImageText/pc/index.js +97 -5
  212. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  213. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  214. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  215. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  216. package/lib/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  217. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  218. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  219. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  220. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  221. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  222. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  223. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  224. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  225. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  226. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  227. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  228. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +121 -8
  229. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  230. package/lib/composite-comp/common/components/ProductItem/index.js +4 -2
  231. package/lib/composite-comp/common/components/ProductItem/index.less +9 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  233. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  234. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  235. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  236. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  237. package/lib/composite-comp/dito/components/Recommend/pc/index.js +8 -7
  238. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  239. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  240. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  241. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  242. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  243. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +47 -38
  244. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -76
  245. package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  246. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  247. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  248. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  249. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  250. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  251. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  252. package/lib/constants/component-types.js +10 -2
  253. package/lib/constants/index.js +10 -1
  254. package/lib/constants/layout.js +21 -1
  255. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  256. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  257. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  258. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  259. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  260. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  261. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  262. package/lib/core/Designer/AiImageGenerator/index.js +364 -63
  263. package/lib/core/Designer/AiImageGenerator/index.less +70 -46
  264. package/lib/core/Designer/ChatRobot/index.js +51 -14
  265. package/lib/core/Designer/ChatRobot/index.less +11 -0
  266. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  267. package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
  268. package/lib/core/Designer/History/index.js +2 -2
  269. package/lib/core/Designer/LeftTitle/index.js +1 -1
  270. package/lib/core/Designer/PageCompList/index.js +5 -3
  271. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  272. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  273. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  274. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  275. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  276. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  277. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  278. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  279. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  280. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  281. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  282. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  299. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  300. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  301. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  302. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  303. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  304. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  305. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  306. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  307. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  308. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  309. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  310. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  311. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  312. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  313. package/lib/core/Designer/ToolBarModal/index.js +366 -0
  314. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  315. package/lib/core/Designer/index.js +30 -10
  316. package/lib/decorator/index.js +38 -1
  317. package/lib/decorator/lazyLoadDecorator.js +75 -0
  318. package/lib/locale/en/en.json +6 -1
  319. package/lib/locale/es/es.json +6 -1
  320. package/lib/locale/id/id.json +6 -1
  321. package/lib/meta-comp/components/Button/index.js +7 -0
  322. package/lib/meta-comp/components/Image/index.js +19 -3
  323. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  324. package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
  325. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  326. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  327. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  328. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  329. package/lib/meta-comp/components/Text/index.js +110 -372
  330. package/lib/meta-comp/components/Text/index.less +57 -0
  331. package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  332. package/lib/meta-comp/config-panels/ImageConfig/index.js +3 -1
  333. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  334. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  335. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  336. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  337. package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
  338. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  339. package/lib/mobx/Frame.js +7 -1
  340. package/lib/utils/androidUtil.js +6 -0
  341. package/lib/utils/businessUtil.js +3 -3
  342. package/lib/utils/commonUtil.js +40 -10
  343. package/lib/utils/coreUtil.js +15 -0
  344. package/lib/utils/currencyUtil.js +29 -10
  345. package/package.json +5 -2
@@ -203,6 +203,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
203
203
  };
204
204
  }
205
205
  };
206
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
207
+
206
208
 
207
209
  /** 检查youtube依赖包 */
208
210
  var checkYoutuVIdeo = function checkYoutuVIdeo() {
@@ -587,6 +589,7 @@ function (_super) {
587
589
  /** YouTube播放器 */
588
590
 
589
591
  _this.ytPlayer = null;
592
+ _this.timer = null;
590
593
  /** 创建视频弹框显示 */
591
594
 
592
595
  _this.createVideoModal = function (videoId) {
@@ -714,7 +717,11 @@ function (_super) {
714
717
  }
715
718
 
716
719
  Video.prototype.componentDidMount = function () {
717
- this.getInit();
720
+ this.timer = setTimeout(this.getInit, 1000);
721
+ };
722
+
723
+ Video.prototype.componentWillUnmount = function () {
724
+ this.timer && clearTimeout(this.timer);
718
725
  };
719
726
 
720
727
  Video.prototype.render = function () {
@@ -727,8 +734,9 @@ function (_super) {
727
734
  }, opts.source ? /*#__PURE__*/_react["default"].createElement("div", {
728
735
  className: "video-wrap",
729
736
  id: 'video' + videoId
730
- }) : null, !play && /*#__PURE__*/_react["default"].createElement("div", {
731
- className: "cover-video"
737
+ }) : null, !play && opts.cover && /*#__PURE__*/_react["default"].createElement("img", {
738
+ className: "video-cover-img",
739
+ src: opts.cover
732
740
  }));
733
741
  };
734
742
 
@@ -3,17 +3,21 @@
3
3
  height: 100%;
4
4
  background-image: linear-gradient(0, rgba(0, 0, 0, .2), rgba(0, 0, 0, .1), rgba(0, 0, 0, .2));
5
5
 
6
- .prism-player .prism-cover {
7
- z-index: 0;
8
- }
9
6
 
10
- .cover-video {
7
+ .video-cover-img {
11
8
  position: absolute;
12
- left: 0;
9
+ top: 0;
13
10
  right: 0;
11
+ left: 0;
14
12
  bottom: 0;
15
- top: 0;
16
- background-color: rgba(0, 0, 0, 0);
13
+ object-fit: cover;
14
+ width: 100%;
15
+ height: 100%;
16
+ z-index: 0;
17
+ }
18
+
19
+ .prism-player .prism-cover {
20
+ z-index: 0;
17
21
  }
18
22
 
19
23
  .video-wrap {
@@ -208,6 +208,12 @@ function (_super) {
208
208
  style: _this.getBackgroundStyle(item)
209
209
  }, /*#__PURE__*/_react["default"].createElement("div", {
210
210
  className: "carouselItem",
211
+ onClick: function onClick() {
212
+ /** PTO 定制GA */
213
+ if (window.magicDesign.pushGA) {
214
+ window.magicDesign.pushGA({}, 'select_promotion');
215
+ }
216
+ },
211
217
  onMouseEnter: _this.mouseEnterWrap,
212
218
  onMouseLeave: _this.mouseLeaveWrap,
213
219
  style: _this.getItemStyle(item)
@@ -1,54 +1,80 @@
1
1
  .m-banner-mobile {
2
2
  position: relative;
3
- }
4
- .m-banner-mobile .cylon-carousel .slick-track {
5
- display: flex;
6
- align-items: center;
7
- }
8
- .m-banner-mobile .carouselItem {
9
- position: relative;
10
- display: flex;
11
- }
12
- .m-banner-mobile .carouselItem .carouseContent {
13
- padding: 0 0.56rem;
14
- position: absolute;
15
- z-index: 2;
16
- display: flex;
17
- flex-direction: column;
18
- margin-bottom: auto;
19
- }
20
- .m-banner-mobile .carouselItem .title {
21
- margin-bottom: 0.16rem;
22
- }
23
- .m-banner-mobile .carouselItem .sub-title {
24
- margin-bottom: 0.4rem;
25
- }
26
- .m-banner-mobile .carouselItem .btn-wrap {
27
- display: flex;
28
- align-items: center;
29
- justify-content: flex-start;
30
- }
31
- .m-banner-mobile .carouselItem .btn-wrap .btn {
32
- margin-right: 0.24rem;
33
- }
34
- .m-banner-mobile .swiper-ban {
35
- position: absolute;
36
- width: 100%;
37
- bottom: 0.2rem;
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
- }
42
- .m-banner-mobile .swiper-ban .ban {
43
- font-size: 0.32rem;
44
- width: 1.5em;
45
- height: 0.3em;
46
- background: #FFF;
47
- cursor: inherit;
48
- margin-right: 0.3em;
49
- transition: all 0.5s;
50
- }
51
- .m-banner-mobile .swiper-ban .ban.active {
52
- width: 1.5em;
53
- opacity: 1;
54
- }
3
+ // .turnPage {
4
+ // position: absolute;
5
+ // top: 50%;
6
+ // transform: translateY(-50%);
7
+ // z-index: 3;
8
+ // cursor: pointer;
9
+ // }
10
+ // .leftBtn {
11
+ // left: 20px;
12
+ // }
13
+ // .rightBtn {
14
+ // right: 20px;
15
+ // }
16
+
17
+ .cylon-carousel {
18
+ .slick-track {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+ }
23
+
24
+ .carouselItem {
25
+ // height: 386px;
26
+ position: relative;
27
+ display: flex;
28
+
29
+ .carouseContent {
30
+ padding: 0 28px;
31
+ position: absolute;
32
+ z-index: 2;
33
+ display: flex;
34
+ flex-direction: column;
35
+ margin-bottom: auto;
36
+ }
37
+
38
+ .title {
39
+ margin-bottom: 8px;
40
+ }
41
+
42
+ .sub-title {
43
+ margin-bottom: 20px;
44
+ }
45
+
46
+ .btn-wrap {
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: flex-start;
50
+
51
+ .btn {
52
+ margin-right: 12px;
53
+ }
54
+ }
55
+ }
56
+
57
+ .swiper-ban {
58
+ position: absolute;
59
+ width: 100%;
60
+ bottom: 10px;
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+
65
+ .ban {
66
+ font-size: 16px;
67
+ width: 1.5em;
68
+ height: 0.3em;
69
+ background: #FFF;
70
+ cursor: inherit;
71
+ margin-right: 0.3em;
72
+ transition: all .5s;
73
+
74
+ &.active {
75
+ width: 1.5em;
76
+ opacity: 1;
77
+ }
78
+ }
79
+ }
80
+ }
@@ -15,6 +15,8 @@ var _defaultJSON = require("./defaultJSON");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
+ var _decorator = require("../../../../decorator");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
21
 
20
22
  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); }
@@ -65,21 +67,43 @@ function (_super) {
65
67
  __extends(Carousel, _super);
66
68
 
67
69
  function Carousel() {
68
- return _super !== null && _super.apply(this, arguments) || this;
70
+ var _this = _super !== null && _super.apply(this, arguments) || this;
71
+
72
+ _this.state = {
73
+ lazyShow: false
74
+ };
75
+ _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
76
+ _this.intersectionObserver = null;
77
+ return _this;
69
78
  }
70
79
 
80
+ Carousel.prototype.componentDidMount = function () {};
81
+
82
+ Carousel.prototype.componentWillUnmount = function () {};
83
+
71
84
  Carousel.prototype.render = function () {
72
85
  var nodeData = this.props.nodeData;
73
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
86
+ var lazyShow = this.state.lazyShow;
87
+ return /*#__PURE__*/_react["default"].createElement("div", {
88
+ ref: this.carouselRef,
89
+ style: {
90
+ height: lazyShow ? 'auto' : 300
91
+ }
92
+ }, lazyShow && (window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
74
93
  data: nodeData
75
94
  }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
76
95
  data: nodeData
77
- }));
96
+ })));
78
97
  };
79
98
 
80
99
  Carousel.defaultProps = {};
81
100
  Carousel.type = 'CAROUSEL';
82
101
  Carousel.getDefaultJSON = _defaultJSON.getDefaultJSON;
102
+
103
+ __decorate([(0, _decorator.lazy)('carouselRef')], Carousel.prototype, "componentDidMount", null);
104
+
105
+ __decorate([_decorator.lazyDestroy], Carousel.prototype, "componentWillUnmount", null);
106
+
83
107
  Carousel = __decorate([_compositeDecorator["default"]], Carousel);
84
108
  return Carousel;
85
109
  }(_react.Component);
@@ -73,24 +73,13 @@ var __assign = void 0 && (void 0).__assign || function () {
73
73
  return __assign.apply(this, arguments);
74
74
  };
75
75
 
76
- var MOBILE_IMG_SIZE = {
77
- 1: {
78
- maxH: 282
79
- },
80
- 2: {
81
- maxH: 137
82
- },
83
- 3: {
84
- maxH: 87
85
- },
86
- 4: {
87
- maxH: 66
88
- },
89
- 5: {
90
- maxH: 50
91
- }
92
- };
93
-
76
+ // const MOBILE_IMG_SIZE = {
77
+ // 1: { maxH: 282 },
78
+ // 2: { maxH: 137 },
79
+ // 3: { maxH: 87 },
80
+ // 4: { maxH: 66 },
81
+ // 5: { maxH: 50 },
82
+ // };
94
83
  var CarouselMobile =
95
84
  /** @class */
96
85
  function (_super) {
@@ -247,7 +236,8 @@ function (_super) {
247
236
  GAData: __assign(__assign({}, GAData), {
248
237
  groupId: item.id,
249
238
  groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
250
- })
239
+ }),
240
+ notNeedLazy: true
251
241
  })), layout === 'layout2' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && /*#__PURE__*/_react["default"].createElement("div", {
252
242
  className: "title"
253
243
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
@@ -272,7 +262,8 @@ function (_super) {
272
262
  groupId: item.id,
273
263
  groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
274
264
  }),
275
- maxHeight: 20
265
+ maxHeight: 20,
266
+ notNeedLazy: true
276
267
  }), item.buttonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
277
268
  data: item.buttonTag,
278
269
  GAData: __assign(__assign({}, GAData), {
@@ -1,84 +1,103 @@
1
1
  .m-carousel-mobile {
2
2
  position: relative;
3
3
  width: 100%;
4
- }
5
- .m-carousel-mobile .content {
6
- display: flex;
7
- margin: 0 auto;
8
- }
9
- .m-carousel-mobile .slider-wrap {
10
- width: 100%;
11
- margin: 0 auto;
12
- line-height: 1;
13
- }
14
- .m-carousel-mobile .slider-wrap .slick-list {
15
- padding: 0;
16
- }
17
- .m-carousel-mobile .slider-wrap .slick-list:hover {
18
- padding-top: 2rem;
19
- margin-top: -2rem;
20
- padding-bottom: 2rem;
21
- margin-bottom: -2rem;
22
- }
23
- .m-carousel-mobile .slider-wrap .slick-list .slick-track {
24
- display: flex;
25
- align-items: center;
26
- gap: 0.24rem;
27
- }
28
- .m-carousel-mobile .slider-wrap .img-wrap .img {
29
- width: fit-content;
30
- height: fit-content;
31
- display: block;
32
- margin: 0 auto;
33
- }
34
- .m-carousel-mobile .slider-wrap .img-wrap .title {
35
- display: flex;
36
- justify-content: center;
37
- margin-top: 0.24rem;
38
- }
39
- .m-carousel-mobile .slider-wrap .img-wrap .text {
40
- display: flex;
41
- justify-content: center;
42
- margin-top: 0.12rem;
43
- }
44
- .m-carousel-mobile .slider-wrap .img-wrap .tags {
45
- margin-top: 0.16rem;
46
- margin-bottom: 0.24rem;
47
- display: flex;
48
- flex-direction: row;
49
- align-items: center;
50
- justify-content: center;
51
- }
52
- .m-carousel-mobile .slider-wrap .img-wrap .tags > div {
53
- margin-right: 0.16rem;
54
- }
55
- .m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
56
- margin-right: 0;
57
- }
58
- .m-carousel-mobile .swiper-ban {
59
- position: absolute;
60
- width: 100%;
61
- bottom: 0.12rem;
62
- display: flex;
63
- align-items: center;
64
- justify-content: center;
65
- }
66
- .m-carousel-mobile .swiper-ban .ban {
67
- font-size: 0.16rem;
68
- width: 1em;
69
- height: 1em;
70
- border-radius: 50%;
71
- background: #FFF;
72
- cursor: inherit;
73
- margin-right: 0.2rem;
74
- transition: all 0.5s;
75
- }
76
- .m-carousel-mobile .swiper-ban .ban:last-child {
77
- margin-right: 0;
78
- }
79
- .m-carousel-mobile .swiper-ban .ban.active {
80
- width: 2em;
81
- height: 1em;
82
- border-radius: 2rem;
83
- opacity: 1;
84
- }
4
+
5
+ .content {
6
+ display: flex;
7
+ margin: 0 auto;
8
+ }
9
+
10
+ .slider-wrap {
11
+ width: 100%;
12
+ margin: 0 auto;
13
+ line-height: 1;
14
+
15
+ .slick-list {
16
+ // margin-left: -11px;
17
+ // margin-right: -11px;
18
+ padding: 0;
19
+
20
+ &:hover {
21
+ padding-top: 100px;
22
+ margin-top: -100px;
23
+ padding-bottom: 100px;
24
+ margin-bottom: -100px;
25
+ }
26
+
27
+ .slick-track {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: 12px;
31
+ }
32
+ }
33
+
34
+ .img-wrap {
35
+ .img {
36
+ width: fit-content;
37
+ height: fit-content;
38
+ display: block;
39
+ margin: 0 auto;
40
+ }
41
+
42
+ .title {
43
+ display: flex;
44
+ justify-content: center;
45
+ margin-top: 12px;
46
+ }
47
+
48
+ .text {
49
+ display: flex;
50
+ justify-content: center;
51
+ margin-top: 6px;
52
+ }
53
+
54
+ .tags {
55
+ margin-top: 8px;
56
+ margin-bottom: 12px;
57
+ display: flex;
58
+ flex-direction: row;
59
+ align-items: center;
60
+ justify-content: center;
61
+
62
+ >div {
63
+ margin-right: 8px;
64
+
65
+ &:last-child {
66
+ margin-right: 0;
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ .swiper-ban {
74
+ position: absolute;
75
+ width: 100%;
76
+ bottom: 6px;
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+
81
+ .ban {
82
+ font-size: 8px;
83
+ width: 1em;
84
+ height: 1em;
85
+ border-radius: 50%;
86
+ background: #FFF;
87
+ cursor: inherit;
88
+ margin-right: 10px;
89
+ transition: all .5s;
90
+
91
+ &:last-child {
92
+ margin-right: 0;
93
+ }
94
+
95
+ &.active {
96
+ width: 2em;
97
+ height: 1em;
98
+ border-radius: 100px;
99
+ opacity: 1;
100
+ }
101
+ }
102
+ }
103
+ }
@@ -280,7 +280,8 @@ function (_super) {
280
280
  }),
281
281
  maxHeight: item.image.content.pcImgSrc ? 'unset' : PC_IMG_SIZE[floorColNum].defH,
282
282
  minHeight: PC_IMG_SIZE[floorColNum].minH,
283
- minWidth: PC_IMG_SIZE[floorColNum].minW
283
+ minWidth: PC_IMG_SIZE[floorColNum].minW,
284
+ notNeedLazy: true
284
285
  })), layout === 'layout2' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && !((0, _coreUtil.isPc)() && item.title.pcText === '') && /*#__PURE__*/_react["default"].createElement("div", {
285
286
  className: "title"
286
287
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
@@ -305,7 +306,8 @@ function (_super) {
305
306
  groupId: item.id,
306
307
  groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
307
308
  }),
308
- maxHeight: 30
309
+ maxHeight: 30,
310
+ notNeedLazy: true
309
311
  }), item.buttonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
310
312
  data: item.buttonTag,
311
313
  GAData: __assign(__assign({}, GAData), {
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var getDefaultJSON = function getDefaultJSON() {
11
+ return {
12
+ id: (0, _uuid.v4)(),
13
+ type: 'CUSTOM_CODE',
14
+ content: {
15
+ pcHtml: '',
16
+ h5Html: ''
17
+ },
18
+ spacing: {
19
+ pc: {
20
+ paddingTop: 10,
21
+ paddingBottom: 10,
22
+ marginBottom: 0
23
+ },
24
+ mobile: {
25
+ paddingTop: 10,
26
+ paddingBottom: 10,
27
+ marginBottom: 0
28
+ }
29
+ },
30
+ background: {
31
+ opacity: 100,
32
+ color: '#fff',
33
+ image: '',
34
+ bgType: 'color'
35
+ }
36
+ };
37
+ };
38
+
39
+ exports.getDefaultJSON = getDefaultJSON;