bulade-ui 1.1.39 → 1.1.40

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 (405) hide show
  1. package/.babelrc +11 -11
  2. package/.vscode/extensions.json +7 -7
  3. package/.vscode/settings.json +32 -32
  4. package/LICENSE +21 -21
  5. package/README.md +45 -45
  6. package/gulpfile.js +26 -26
  7. package/miniprogram_dist/assets/font/iconfont.scss +565 -565
  8. package/miniprogram_dist/assets/font/iconfont.wxss +562 -562
  9. package/miniprogram_dist/assets/style/border.wxss +94 -94
  10. package/miniprogram_dist/bld-action-sheet/index.js.map +1 -1
  11. package/miniprogram_dist/bld-action-sheet/index.json +8 -8
  12. package/miniprogram_dist/bld-action-sheet/index.wxml +56 -56
  13. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  14. package/miniprogram_dist/bld-badge/index.json +3 -3
  15. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  16. package/miniprogram_dist/bld-button/index.js.map +1 -1
  17. package/miniprogram_dist/bld-button/index.json +7 -7
  18. package/miniprogram_dist/bld-button/index.wxml +3 -3
  19. package/miniprogram_dist/bld-button-v2/index.js.map +1 -1
  20. package/miniprogram_dist/bld-button-v2/index.json +3 -3
  21. package/miniprogram_dist/bld-button-v2/index.wxml +41 -41
  22. package/miniprogram_dist/bld-card/index.js.map +1 -1
  23. package/miniprogram_dist/bld-card/index.json +2 -2
  24. package/miniprogram_dist/bld-card/index.wxml +5 -5
  25. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  26. package/miniprogram_dist/bld-cell/index.json +7 -7
  27. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  28. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  29. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  30. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  31. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  32. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  33. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  34. package/miniprogram_dist/bld-cell-group-v2/index.js.map +1 -1
  35. package/miniprogram_dist/bld-cell-group-v2/index.json +2 -2
  36. package/miniprogram_dist/bld-cell-group-v2/index.wxml +9 -9
  37. package/miniprogram_dist/bld-cell-v2/index.js.map +1 -1
  38. package/miniprogram_dist/bld-cell-v2/index.json +5 -5
  39. package/miniprogram_dist/bld-cell-v2/index.wxml +24 -24
  40. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  41. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  42. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  43. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  44. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  45. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  46. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  47. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  48. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  49. package/miniprogram_dist/bld-collapse/index.json +3 -3
  50. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  51. package/miniprogram_dist/bld-dialog-tip/index.js.map +1 -1
  52. package/miniprogram_dist/bld-dialog-tip/index.json +5 -5
  53. package/miniprogram_dist/bld-dialog-tip/index.wxml +23 -23
  54. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  55. package/miniprogram_dist/bld-drawer/index.json +3 -3
  56. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  57. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  58. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  59. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  60. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
  61. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  62. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  63. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
  64. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  65. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  66. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  67. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  68. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  69. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
  70. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  71. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  72. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
  73. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  74. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  75. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
  76. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  77. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  78. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
  79. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  80. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  81. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  82. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  83. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  84. package/miniprogram_dist/bld-html/index.js.map +1 -1
  85. package/miniprogram_dist/bld-html/index.json +5 -5
  86. package/miniprogram_dist/bld-html/index.wxml +9 -9
  87. package/miniprogram_dist/bld-html/index.wxss +30 -30
  88. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  89. package/miniprogram_dist/bld-icon/index.json +6 -6
  90. package/miniprogram_dist/bld-icon/index.wxml +36 -36
  91. package/miniprogram_dist/bld-icon/index.wxss +582 -582
  92. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  93. package/miniprogram_dist/bld-loading/index.json +6 -6
  94. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  95. package/miniprogram_dist/bld-message/index.js.map +1 -1
  96. package/miniprogram_dist/bld-message/index.json +3 -3
  97. package/miniprogram_dist/bld-message/index.wxml +8 -8
  98. package/miniprogram_dist/bld-message/message.js.map +1 -1
  99. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  100. package/miniprogram_dist/bld-modal/index.json +6 -6
  101. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  102. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  103. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  104. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  105. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  106. package/miniprogram_dist/bld-nav-bar/index.wxss +51 -51
  107. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  108. package/miniprogram_dist/bld-navbar/index.json +5 -5
  109. package/miniprogram_dist/bld-navbar/index.wxml +7 -7
  110. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  111. package/miniprogram_dist/bld-navbar-group/index.json +3 -3
  112. package/miniprogram_dist/bld-navbar-group/index.wxml +36 -36
  113. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
  114. package/miniprogram_dist/bld-notice-bar/index.json +3 -3
  115. package/miniprogram_dist/bld-notice-bar/index.wxml +29 -29
  116. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  117. package/miniprogram_dist/bld-overlay/index.json +3 -3
  118. package/miniprogram_dist/bld-overlay/index.wxml +11 -11
  119. package/miniprogram_dist/bld-page/index.js.map +1 -1
  120. package/miniprogram_dist/bld-page/index.json +7 -7
  121. package/miniprogram_dist/bld-page/index.wxml +30 -30
  122. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  123. package/miniprogram_dist/bld-pop-up/index.json +6 -6
  124. package/miniprogram_dist/bld-pop-up/index.wxml +18 -18
  125. package/miniprogram_dist/bld-progress/index.js.map +1 -1
  126. package/miniprogram_dist/bld-progress/index.json +3 -3
  127. package/miniprogram_dist/bld-progress/index.wxml +34 -34
  128. package/miniprogram_dist/bld-radio/index.js.map +1 -1
  129. package/miniprogram_dist/bld-radio/index.json +3 -3
  130. package/miniprogram_dist/bld-radio/index.wxml +23 -23
  131. package/miniprogram_dist/bld-radio-group/index.js.map +1 -1
  132. package/miniprogram_dist/bld-radio-group/index.json +3 -3
  133. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  134. package/miniprogram_dist/bld-retry/index.json +2 -2
  135. package/miniprogram_dist/bld-retry/index.wxml +5 -5
  136. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  137. package/miniprogram_dist/bld-scroll-view/index.json +7 -7
  138. package/miniprogram_dist/bld-scroll-view/index.wxml +42 -42
  139. package/miniprogram_dist/bld-tabs/index.js +1 -1
  140. package/miniprogram_dist/bld-tabs/index.js.map +1 -1
  141. package/miniprogram_dist/bld-tabs/index.json +4 -4
  142. package/miniprogram_dist/bld-tabs/index.wxml +13 -13
  143. package/miniprogram_dist/bld-tabs/index.wxss +29 -29
  144. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  145. package/miniprogram_dist/bld-tag/index.json +3 -3
  146. package/miniprogram_dist/bld-tag/index.wxml +2 -2
  147. package/miniprogram_dist/bld-text/index.js.map +1 -1
  148. package/miniprogram_dist/bld-text/index.json +2 -2
  149. package/miniprogram_dist/bld-text/index.wxml +3 -3
  150. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  151. package/miniprogram_dist/bld-toast/index.json +5 -5
  152. package/miniprogram_dist/bld-toast/index.wxml +26 -26
  153. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  154. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  155. package/miniprogram_dist/bld-wrapper/index.json +4 -4
  156. package/miniprogram_dist/bld-wrapper/index.wxml +6 -6
  157. package/miniprogram_dist/button/index.js.map +1 -1
  158. package/miniprogram_dist/button/index.json +3 -3
  159. package/miniprogram_dist/button/index.wxml +41 -41
  160. package/miniprogram_dist/components-npm/mp-weixin/index.js +6 -6
  161. package/miniprogram_dist/components-npm/mp-weixin/index.js.map +1 -1
  162. package/miniprogram_dist/components-npm/mp-weixin/node/node.js.map +1 -1
  163. package/miniprogram_dist/grid/index.js.map +1 -1
  164. package/miniprogram_dist/grid/index.json +3 -3
  165. package/miniprogram_dist/grid/index.wxml +2 -2
  166. package/miniprogram_dist/grid-item/index.js.map +1 -1
  167. package/miniprogram_dist/grid-item/index.json +5 -5
  168. package/miniprogram_dist/grid-item/index.wxml +45 -45
  169. package/miniprogram_dist/timeline/index.js.map +1 -1
  170. package/miniprogram_dist/timeline/index.json +2 -2
  171. package/miniprogram_dist/timeline/index.wxml +1 -1
  172. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  173. package/miniprogram_dist/timeline-item/index.json +5 -5
  174. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  175. package/miniprogram_dist/utils/systemInfo.js +52 -52
  176. package/package.json +72 -72
  177. package/project.config.json +7 -7
  178. package/src/assets/font/iconfont.scss +565 -565
  179. package/src/assets/font/iconfont.wxss +562 -562
  180. package/src/assets/style/border.wxss +94 -94
  181. package/src/bld-action-sheet/index.js +82 -82
  182. package/src/bld-action-sheet/index.json +8 -8
  183. package/src/bld-action-sheet/index.scss +179 -179
  184. package/src/bld-action-sheet/index.wxml +56 -56
  185. package/src/bld-badge/index.js +53 -53
  186. package/src/bld-badge/index.json +3 -3
  187. package/src/bld-badge/index.scss +45 -45
  188. package/src/bld-badge/index.wxml +13 -13
  189. package/src/bld-button/index.js +13 -13
  190. package/src/bld-button/index.json +7 -7
  191. package/src/bld-button/index.scss +44 -44
  192. package/src/bld-button/index.wxml +3 -3
  193. package/src/bld-button-v2/index.js +91 -91
  194. package/src/bld-button-v2/index.json +3 -3
  195. package/src/bld-button-v2/index.scss +206 -206
  196. package/src/bld-button-v2/index.wxml +41 -41
  197. package/src/bld-card/index.js +3 -3
  198. package/src/bld-card/index.json +2 -2
  199. package/src/bld-card/index.scss +6 -6
  200. package/src/bld-card/index.wxml +5 -5
  201. package/src/bld-cell/index.js +28 -28
  202. package/src/bld-cell/index.json +7 -7
  203. package/src/bld-cell/index.scss +42 -42
  204. package/src/bld-cell/index.wxml +42 -42
  205. package/src/bld-cell-field/index.js +11 -11
  206. package/src/bld-cell-field/index.json +6 -6
  207. package/src/bld-cell-field/index.scss +21 -21
  208. package/src/bld-cell-field/index.wxml +8 -8
  209. package/src/bld-cell-group/index.js +11 -11
  210. package/src/bld-cell-group/index.json +2 -2
  211. package/src/bld-cell-group/index.scss +13 -13
  212. package/src/bld-cell-group/index.wxml +14 -14
  213. package/src/bld-cell-group-v2/index.js +70 -70
  214. package/src/bld-cell-group-v2/index.json +2 -2
  215. package/src/bld-cell-group-v2/index.scss +31 -31
  216. package/src/bld-cell-group-v2/index.wxml +9 -9
  217. package/src/bld-cell-v2/index.js +80 -80
  218. package/src/bld-cell-v2/index.json +5 -5
  219. package/src/bld-cell-v2/index.scss +74 -74
  220. package/src/bld-cell-v2/index.wxml +24 -24
  221. package/src/bld-checkbox/index.js +110 -110
  222. package/src/bld-checkbox/index.json +5 -5
  223. package/src/bld-checkbox/index.scss +71 -71
  224. package/src/bld-checkbox/index.wxml +66 -66
  225. package/src/bld-checkbox-group/index.js +84 -84
  226. package/src/bld-checkbox-group/index.json +3 -3
  227. package/src/bld-cloud-image/index.js +79 -79
  228. package/src/bld-cloud-image/index.json +2 -2
  229. package/src/bld-cloud-image/index.scss +3 -3
  230. package/src/bld-cloud-image/index.wxml +14 -14
  231. package/src/bld-collapse/index.js +62 -62
  232. package/src/bld-collapse/index.json +3 -3
  233. package/src/bld-collapse/index.scss +6 -6
  234. package/src/bld-collapse/index.wxml +8 -8
  235. package/src/bld-content-container/index.js +46 -46
  236. package/src/bld-content-container/index.json +2 -2
  237. package/src/bld-content-container/index.wxml +5 -5
  238. package/src/bld-dialog-tip/index.js +60 -60
  239. package/src/bld-dialog-tip/index.json +5 -5
  240. package/src/bld-dialog-tip/index.scss +66 -66
  241. package/src/bld-dialog-tip/index.wxml +23 -23
  242. package/src/bld-drawer/index.js +40 -40
  243. package/src/bld-drawer/index.json +3 -3
  244. package/src/bld-drawer/index.scss +78 -78
  245. package/src/bld-drawer/index.wxml +13 -13
  246. package/src/bld-empty-page/index.js +23 -23
  247. package/src/bld-empty-page/index.json +5 -5
  248. package/src/bld-empty-page/index.scss +15 -15
  249. package/src/bld-empty-page/index.wxml +11 -11
  250. package/src/bld-form/bld-form-item/bld-form-date/index.js +211 -211
  251. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  252. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  253. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  254. package/src/bld-form/bld-form-item/bld-form-input/index.js +53 -53
  255. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  256. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  257. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  258. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +145 -145
  259. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  260. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  261. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  262. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  263. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  264. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  265. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  266. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  267. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  268. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  269. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  270. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  271. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  272. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  273. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  274. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  275. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  276. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  277. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  278. package/src/bld-half-screen/index.js +166 -166
  279. package/src/bld-half-screen/index.json +4 -4
  280. package/src/bld-half-screen/index.scss +109 -109
  281. package/src/bld-half-screen/index.wxml +36 -36
  282. package/src/bld-html/index.js +46 -46
  283. package/src/bld-html/index.json +5 -5
  284. package/src/bld-html/index.scss +17 -17
  285. package/src/bld-html/index.wxml +9 -9
  286. package/src/bld-html/index.wxss +30 -30
  287. package/src/bld-icon/index.js +41 -41
  288. package/src/bld-icon/index.json +6 -6
  289. package/src/bld-icon/index.scss +19 -19
  290. package/src/bld-icon/index.wxml +36 -36
  291. package/src/bld-icon/index.wxss +582 -582
  292. package/src/bld-icon-back/index.js +8 -8
  293. package/src/bld-icon-back/index.json +3 -3
  294. package/src/bld-icon-back/index.scss +1 -1
  295. package/src/bld-icon-back/index.wxml +1 -1
  296. package/src/bld-icon-back/index.wxss +562 -562
  297. package/src/bld-loading/index.js +9 -9
  298. package/src/bld-loading/index.json +6 -6
  299. package/src/bld-loading/index.scss +25 -25
  300. package/src/bld-loading/index.wxml +8 -8
  301. package/src/bld-message/index.js +90 -90
  302. package/src/bld-message/index.json +3 -3
  303. package/src/bld-message/index.scss +66 -66
  304. package/src/bld-message/index.wxml +8 -8
  305. package/src/bld-message/message.js +61 -61
  306. package/src/bld-modal/index.js +122 -122
  307. package/src/bld-modal/index.json +6 -6
  308. package/src/bld-modal/index.scss +107 -107
  309. package/src/bld-modal/index.wxml +22 -22
  310. package/src/bld-modal/modal.js +37 -37
  311. package/src/bld-nav-bar/index.js +131 -131
  312. package/src/bld-nav-bar/index.json +6 -6
  313. package/src/bld-nav-bar/index.scss +55 -55
  314. package/src/bld-nav-bar/index.wxml +43 -43
  315. package/src/bld-nav-bar/index.wxss +51 -51
  316. package/src/bld-nav-bar1/index.js +90 -90
  317. package/src/bld-nav-bar1/index.json +5 -5
  318. package/src/bld-nav-bar1/index.scss +39 -39
  319. package/src/bld-nav-bar1/index.wxml +24 -24
  320. package/src/bld-navbar/index.js +62 -62
  321. package/src/bld-navbar/index.json +5 -5
  322. package/src/bld-navbar/index.scss +34 -34
  323. package/src/bld-navbar/index.wxml +7 -7
  324. package/src/bld-navbar-group/index.js +139 -139
  325. package/src/bld-navbar-group/index.json +3 -3
  326. package/src/bld-navbar-group/index.scss +32 -32
  327. package/src/bld-navbar-group/index.wxml +36 -36
  328. package/src/bld-notice-bar/index.js +69 -69
  329. package/src/bld-notice-bar/index.json +3 -3
  330. package/src/bld-notice-bar/index.scss +58 -58
  331. package/src/bld-notice-bar/index.wxml +29 -29
  332. package/src/bld-overlay/index.js +17 -17
  333. package/src/bld-overlay/index.json +3 -3
  334. package/src/bld-overlay/index.scss +11 -11
  335. package/src/bld-overlay/index.wxml +11 -11
  336. package/src/bld-page/index.js +86 -86
  337. package/src/bld-page/index.json +7 -7
  338. package/src/bld-page/index.scss +16 -16
  339. package/src/bld-page/index.wxml +30 -30
  340. package/src/bld-pop-up/index.js +29 -29
  341. package/src/bld-pop-up/index.json +6 -6
  342. package/src/bld-pop-up/index.scss +27 -27
  343. package/src/bld-pop-up/index.wxml +18 -18
  344. package/src/bld-progress/index.js +49 -49
  345. package/src/bld-progress/index.json +3 -3
  346. package/src/bld-progress/index.scss +73 -73
  347. package/src/bld-progress/index.wxml +34 -34
  348. package/src/bld-radio/index.js +64 -64
  349. package/src/bld-radio/index.json +3 -3
  350. package/src/bld-radio/index.scss +67 -67
  351. package/src/bld-radio/index.wxml +23 -23
  352. package/src/bld-radio-group/index.js +82 -82
  353. package/src/bld-radio-group/index.json +3 -3
  354. package/src/bld-retry/index.js +23 -23
  355. package/src/bld-retry/index.json +2 -2
  356. package/src/bld-retry/index.scss +26 -26
  357. package/src/bld-retry/index.wxml +5 -5
  358. package/src/bld-scroll-view/index.js +28 -28
  359. package/src/bld-scroll-view/index.json +7 -7
  360. package/src/bld-scroll-view/index.scss +7 -7
  361. package/src/bld-scroll-view/index.wxml +42 -42
  362. package/src/bld-tabs/index.js +21 -21
  363. package/src/bld-tabs/index.json +4 -4
  364. package/src/bld-tabs/index.scss +32 -32
  365. package/src/bld-tabs/index.wxml +13 -13
  366. package/src/bld-tabs/index.wxss +29 -29
  367. package/src/bld-tag/index.js +33 -33
  368. package/src/bld-tag/index.json +3 -3
  369. package/src/bld-tag/index.scss +126 -126
  370. package/src/bld-tag/index.wxml +2 -2
  371. package/src/bld-text/index.js +46 -46
  372. package/src/bld-text/index.json +2 -2
  373. package/src/bld-text/index.scss +30 -30
  374. package/src/bld-text/index.wxml +3 -3
  375. package/src/bld-toast/index.js +113 -113
  376. package/src/bld-toast/index.json +5 -5
  377. package/src/bld-toast/index.scss +111 -111
  378. package/src/bld-toast/index.wxml +26 -26
  379. package/src/bld-toast/toast.js +34 -34
  380. package/src/bld-wrapper/index.js +75 -75
  381. package/src/bld-wrapper/index.json +4 -4
  382. package/src/bld-wrapper/index.scss +7 -7
  383. package/src/bld-wrapper/index.wxml +6 -6
  384. package/src/button/index.js +91 -91
  385. package/src/button/index.json +3 -3
  386. package/src/button/index.scss +206 -206
  387. package/src/button/index.wxml +41 -41
  388. package/src/components-npm/mp-weixin/index.js +7 -7
  389. package/src/grid/index.js +67 -67
  390. package/src/grid/index.json +3 -3
  391. package/src/grid/index.scss +20 -20
  392. package/src/grid/index.wxml +2 -2
  393. package/src/grid-item/index.js +72 -72
  394. package/src/grid-item/index.json +5 -5
  395. package/src/grid-item/index.scss +58 -58
  396. package/src/grid-item/index.wxml +45 -45
  397. package/src/timeline/index.js +49 -49
  398. package/src/timeline/index.json +2 -2
  399. package/src/timeline/index.wxml +1 -1
  400. package/src/timeline-item/index.js +27 -27
  401. package/src/timeline-item/index.json +5 -5
  402. package/src/timeline-item/index.scss +36 -36
  403. package/src/timeline-item/index.wxml +9 -9
  404. package/src/utils/systemInfo.js +52 -52
  405. package/tsconfig.json +25 -25
@@ -1,8 +1,8 @@
1
- <view class="m-tab-item {{activeName === name ? 'is-active': ''}}" bind:tap="onClick">
2
- <view class="m-tab-item__content">
3
- <view class="m-tab-item__text" style="{{ activeColor ? 'color:' + activeColor: '' }}">
4
- {{ title }}
5
- <bld-badge wx:if="{{ value }}" custom-class="m-badge-custom" value="{{ value }}" static />
6
- </view>
7
- </view>
1
+ <view class="m-tab-item {{activeName === name ? 'is-active': ''}}" bind:tap="onClick">
2
+ <view class="m-tab-item__content">
3
+ <view class="m-tab-item__text" style="{{ activeColor ? 'color:' + activeColor: '' }}">
4
+ {{ title }}
5
+ <bld-badge wx:if="{{ value }}" custom-class="m-badge-custom" value="{{ value }}" static />
6
+ </view>
7
+ </view>
8
8
  </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-navbar-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","activeName","String","optionalTypes","Number","value","activeColor","lineWidth","lineColor","lineHeight","data","baseLeft","scrollLeft","lineLeft","activeLineWidth","tabWidth","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","_updateWrapInfo","wx","nextTick","query","createSelectorQuery","select","boundingClientRect","scrollOffset","exec","res","left","width","forEach","child","index","name","onClick","updateScrollPositon","domWidth","color","setData","custonLineWidth","Math","floor","parseInt","triggerEvent"],"mappings":";;QAAA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,SAlBD;AAmBD,OAvBD;AAwBD,KA/CM;AAkDPC,uBAlDO,+BAkDaP,IAlDb,EAkDmBQ,QAlDnB,EAkD6BnC,SAlD7B,EAkDwCgC,IAlDxC,EAkD8C;AAAA;;AAEnD;AAFmD,UAG3CjC,WAH2C,GAG3B,KAAKI,IAHsB,CAG3CJ,WAH2C;;;AAKnD,UAAIA,WAAJ,EAAiB;AACf,aAAKc,QAAL,CAAcgB,OAAd,CAAsB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACtC,cAAIK,QAAQN,MAAM3B,IAAN,CAAW6B,IAAX,KAAoBA,IAApB,GAA2BjC,WAA3B,GAAyC,EAArD;AACA+B,gBAAMO,OAAN,CAAc;AACZ3C,wBAAYsC,IADA;AAEZjC,yBAAaqC;AAFD,WAAd;AAID,SAND;AAOD;;AAED,UAAM/B,aAAasB,OAAO,KAAKxB,IAAL,CAAUK,QAAV,GAAqB,CAA5B,GAAgC2B,WAAW,CAA9D;;AAEA,UAAMG,kBAAkBC,KAAKC,KAAL,CAAWC,SAAS,KAAKtC,IAAL,CAAUH,SAAnB,KAAiC,KAAKG,IAAL,CAAUK,QAAV,GAAqB,GAAtD,CAAX,CAAxB;;AAEA,UAAMD,kBAAkB+B,kBAAkBA,mBAAmBH,QAAnB,GAA8BG,eAA9B,GAAgDH,QAAlE,GAA6EnC,SAArG;;AAEA,UAAMM,WAAWqB,OAAOQ,WAAW,CAAlB,GAAsB5B,kBAAkB,CAAzD;;AAEA,WAAK8B,OAAL,CAAa;AACXhC,8BADW;AAEXC,0BAFW;AAGXC;AAHW,OAAb,EAIG,YAAM;AACP,eAAKmC,YAAL,CAAkB,QAAlB,EAA4BV,IAA5B;AACD,OAND;AAOD;AAhFM;AAxDD,CAAV,E","file":"bld-navbar-group/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 46);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../bld-navbar/index': {\n type: 'child',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n activeName: {\n type: String,\n optionalTypes: [Number, String],\n value: ''\n },\n\n activeColor: {\n type: String,\n value: ''\n },\n\n lineWidth: {\n type: Number,\n optionalTypes: [Number, String],\n value: 0\n },\n\n lineColor: {\n type: String,\n value: ''\n },\n\n lineHeight: {\n type: Number,\n value: 6\n }\n },\n\n data: {\n baseLeft: 0,\n scrollLeft: 0,\n lineLeft: 0,\n activeLineWidth: 0,\n tabWidth: 0,\n },\n\n methods: {\n _updateChildren() {\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n let children = this.getRelationNodes('../navbar/index')\n this.children = children\n const len = children.length\n\n // 渲染完成后更新内容区域宽度\n if (len) {\n this._updateWrapInfo(children)\n }\n }, 60)\n },\n\n\n // 渲染完成后更新内容区域宽度\n _updateWrapInfo(children) {\n wx.nextTick(() => {\n const query = this.createSelectorQuery()\n query.select('.m-tabs').boundingClientRect()\n query.select('.m-tabs__scroll').scrollOffset()\n query.exec(res => {\n this.data.baseLeft = res[0].left\n\n const tabWidth = res[0].width // 选项卡总宽度 \n this.data.tabWidth = tabWidth\n\n const { activeName } = this.data\n\n if (activeName) {\n children.forEach((child, index) => {\n if (child.data.name === activeName) {\n child.onClick()\n }\n })\n } else {\n children[0].onClick()\n }\n\n })\n })\n },\n\n\n updateScrollPositon(left, domWidth, lineWidth, name) {\n\n // 设置选中标签的字体颜色\n const { activeColor } = this.data\n\n if (activeColor) {\n this.children.forEach((child, index) => {\n let color = child.data.name === name ? activeColor : ''\n child.setData({\n activeName: name,\n activeColor: color\n })\n })\n }\n\n const scrollLeft = left - this.data.tabWidth / 2 + domWidth / 2\n\n const custonLineWidth = Math.floor(parseInt(this.data.lineWidth) * (this.data.tabWidth / 750))\n\n const activeLineWidth = custonLineWidth ? custonLineWidth <= domWidth ? custonLineWidth : domWidth : lineWidth\n\n const lineLeft = left + domWidth / 2 - activeLineWidth / 2\n\n this.setData({\n scrollLeft,\n lineLeft,\n activeLineWidth\n }, () => {\n this.triggerEvent('change', name)\n })\n }\n }\n})\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-navbar-group/index.js"],"names":["Component","externalClasses","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","activeName","String","optionalTypes","Number","value","activeColor","lineWidth","lineColor","lineHeight","data","baseLeft","scrollLeft","lineLeft","activeLineWidth","tabWidth","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","_updateWrapInfo","wx","nextTick","query","createSelectorQuery","select","boundingClientRect","scrollOffset","exec","res","left","width","forEach","child","index","name","onClick","updateScrollPositon","domWidth","color","setData","custonLineWidth","Math","floor","parseInt","triggerEvent"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;Q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BA,IAApB,GAA2BjC,WAA3B,GAAyC,EAArD;AACA+B,gBAAMO,OAAN,CAAc;AACZ3C,wBAAYsC,IADA;AAEZjC,yBAAaqC;AAFD,WAAd;AAID,SAND;AAOD;;AAED,UAAM/B,aAAasB,OAAO,KAAKxB,IAAL,CAAUK,QAAV,GAAqB,CAA5B,GAAgC2B,WAAW,CAA9D;;AAEA,UAAMG,kBAAkBC,KAAKC,KAAL,CAAWC,SAAS,KAAKtC,IAAL,CAAUH,SAAnB,KAAiC,KAAKG,IAAL,CAAUK,QAAV,GAAqB,GAAtD,CAAX,CAAxB;;AAEA,UAAMD,kBAAkB+B,kBAAkBA,mBAAmBH,QAAnB,GAA8BG,eAA9B,GAAgDH,QAAlE,GAA6EnC,SAArG;;AAEA,UAAMM,WAAWqB,OAAOQ,WAAW,CAAlB,GAAsB5B,kBAAkB,CAAzD;;AAEA,WAAK8B,OAAL,CAAa;AACXhC,8BADW;AAEXC,0BAFW;AAGXC;AAHW,OAAb,EAIG,YAAM;AACP,eAAKmC,YAAL,CAAkB,QAAlB,EAA4BV,IAA5B;AACD,OAND;AAOD;AAhFM;AAxDD,CAAV,E","file":"bld-navbar-group\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 46);\n","Component({\r\n externalClasses: ['custom-class'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n relations: {\r\n '../bld-navbar/index': {\r\n type: 'child',\r\n linked() {\r\n this._updateChildren()\r\n },\r\n unlinked() {\r\n this._updateChildren()\r\n }\r\n }\r\n },\r\n\r\n properties: {\r\n activeName: {\r\n type: String,\r\n optionalTypes: [Number, String],\r\n value: ''\r\n },\r\n\r\n activeColor: {\r\n type: String,\r\n value: ''\r\n },\r\n\r\n lineWidth: {\r\n type: Number,\r\n optionalTypes: [Number, String],\r\n value: 0\r\n },\r\n\r\n lineColor: {\r\n type: String,\r\n value: ''\r\n },\r\n\r\n lineHeight: {\r\n type: Number,\r\n value: 6\r\n }\r\n },\r\n\r\n data: {\r\n baseLeft: 0,\r\n scrollLeft: 0,\r\n lineLeft: 0,\r\n activeLineWidth: 0,\r\n tabWidth: 0,\r\n },\r\n\r\n methods: {\r\n _updateChildren() {\r\n // 防抖减少重复触发\r\n if (this.timer) {\r\n clearTimeout(this.timer)\r\n this.timer = null\r\n }\r\n\r\n this.timer = setTimeout(() => {\r\n let children = this.getRelationNodes('../navbar/index')\r\n this.children = children\r\n const len = children.length\r\n\r\n // 渲染完成后更新内容区域宽度\r\n if (len) {\r\n this._updateWrapInfo(children)\r\n }\r\n }, 60)\r\n },\r\n\r\n\r\n // 渲染完成后更新内容区域宽度\r\n _updateWrapInfo(children) {\r\n wx.nextTick(() => {\r\n const query = this.createSelectorQuery()\r\n query.select('.m-tabs').boundingClientRect()\r\n query.select('.m-tabs__scroll').scrollOffset()\r\n query.exec(res => {\r\n this.data.baseLeft = res[0].left\r\n\r\n const tabWidth = res[0].width // 选项卡总宽度 \r\n this.data.tabWidth = tabWidth\r\n\r\n const { activeName } = this.data\r\n\r\n if (activeName) {\r\n children.forEach((child, index) => {\r\n if (child.data.name === activeName) {\r\n child.onClick()\r\n }\r\n })\r\n } else {\r\n children[0].onClick()\r\n }\r\n\r\n })\r\n })\r\n },\r\n\r\n\r\n updateScrollPositon(left, domWidth, lineWidth, name) {\r\n\r\n // 设置选中标签的字体颜色\r\n const { activeColor } = this.data\r\n\r\n if (activeColor) {\r\n this.children.forEach((child, index) => {\r\n let color = child.data.name === name ? activeColor : ''\r\n child.setData({\r\n activeName: name,\r\n activeColor: color\r\n })\r\n })\r\n }\r\n\r\n const scrollLeft = left - this.data.tabWidth / 2 + domWidth / 2\r\n\r\n const custonLineWidth = Math.floor(parseInt(this.data.lineWidth) * (this.data.tabWidth / 750))\r\n\r\n const activeLineWidth = custonLineWidth ? custonLineWidth <= domWidth ? custonLineWidth : domWidth : lineWidth\r\n\r\n const lineLeft = left + domWidth / 2 - activeLineWidth / 2\r\n\r\n this.setData({\r\n scrollLeft,\r\n lineLeft,\r\n activeLineWidth\r\n }, () => {\r\n this.triggerEvent('change', name)\r\n })\r\n }\r\n }\r\n})\r\n"],"sourceRoot":""}
@@ -1,4 +1,4 @@
1
- {
2
- "component": true,
3
- "usingComponents": {}
1
+ {
2
+ "component": true,
3
+ "usingComponents": {}
4
4
  }
@@ -1,37 +1,37 @@
1
- <view class="m-tabs custom-class">
2
- <scroll-view
3
- scroll-x="{{ true }}"
4
- scroll-with-animation
5
- scroll-left="{{ -130 }}"
6
- class="m-tabs__scroll"
7
- >
8
- <view class="m-tabs__nav">
9
- <view class="m-tabs__line" wx:if="{{ true }}" style="{{ tabs.getLineStyle(lineLeft, activeLineWidth, lineHeight, lineColor) }}"></view>
10
- <slot />
11
- </view>
12
- </scroll-view>
13
- </view>
14
-
15
-
16
- <wxs module="tabs">
17
- function getLineStyle(lineLeft, lineWidth, lineHeight, lineColor) {
18
- var styles = [
19
- 'transform: translateX(' + lineLeft + 'px)',
20
- 'width:' + lineWidth + 'px'
21
- ];
22
-
23
- if(lineHeight) {
24
- styles.push('height:' + lineHeight + 'rpx')
25
- }
26
-
27
- if(lineColor) {
28
- styles.push('background-color:' + lineColor)
29
- }
30
-
31
- return styles.join(';');
32
- }
33
-
34
- module.exports = {
35
- getLineStyle: getLineStyle
36
- }
1
+ <view class="m-tabs custom-class">
2
+ <scroll-view
3
+ scroll-x="{{ true }}"
4
+ scroll-with-animation
5
+ scroll-left="{{ -130 }}"
6
+ class="m-tabs__scroll"
7
+ >
8
+ <view class="m-tabs__nav">
9
+ <view class="m-tabs__line" wx:if="{{ true }}" style="{{ tabs.getLineStyle(lineLeft, activeLineWidth, lineHeight, lineColor) }}"></view>
10
+ <slot />
11
+ </view>
12
+ </scroll-view>
13
+ </view>
14
+
15
+
16
+ <wxs module="tabs">
17
+ function getLineStyle(lineLeft, lineWidth, lineHeight, lineColor) {
18
+ var styles = [
19
+ 'transform: translateX(' + lineLeft + 'px)',
20
+ 'width:' + lineWidth + 'px'
21
+ ];
22
+
23
+ if(lineHeight) {
24
+ styles.push('height:' + lineHeight + 'rpx')
25
+ }
26
+
27
+ if(lineColor) {
28
+ styles.push('background-color:' + lineColor)
29
+ }
30
+
31
+ return styles.join(';');
32
+ }
33
+
34
+ module.exports = {
35
+ getLineStyle: getLineStyle
36
+ }
37
37
  </wxs>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-notice-bar/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","properties","delay","type","Number","value","speed","scrollable","Boolean","multiline","data","delaySec","lifetimes","ready","getContainerWidth","methods","query","createSelectorQuery","select","boundingClientRect","exec","wrapW","wx","getSystemInfoSync","windowWidth","noticeW","res","width","containW","setData","parseInt"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iC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QAAT;AADC,SAAb;AAGD,OAnBD;AAoBD;AA1BM;AAxCD,CAAV,E","file":"bld-notice-bar/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","Component({\n externalClasses: ['iclass'],\n \n options: {\n addGlobalClass: true,\n multipleSlots: true // 在组件定义时的选项中启用多slot支持\n },\n \n properties: {\n // 延迟播放时长\n delay: {\n type: Number,\n value: 1\n },\n // 滚动速度 rpx/s\n speed: {\n type: Number,\n value: 150\n },\n // 长度溢出时自动滚动播放\n scrollable: {\n type: Boolean,\n value: true\n },\n multiline: {\n type: Boolean,\n value: false\n }\n },\n\n data: {\n delaySec: 0,\n },\n\n lifetimes: {\n ready() {\n this.getContainerWidth()\n }\n },\n\n methods: {\n getContainerWidth() {\n const query = this.createSelectorQuery()\n query.select('.m-notice-bar').boundingClientRect()\n query.select('.m-notice-bar__content').boundingClientRect()\n\n query.exec(res => {\n const wrapW = wx.getSystemInfoSync().windowWidth // 容器宽度\n const noticeW = (res[0].width) * (750 / wrapW)\n const containW = (res[1].width) * (750 / wrapW) // 内容宽度(折合为rpx)\n \n // 内容宽度小于内容区域宽度,则不滚动\n if (containW <= noticeW) {\n this.setData({\n scrollable: false\n })\n\n return;\n }\n\n const delaySec = containW / this.data.speed\n\n this.setData({\n delaySec: parseInt(delaySec)\n })\n })\n }\n }\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-notice-bar/index.js"],"names":["Component","externalClasses","options","addGlobalClass","multipleSlots","properties","delay","type","Number","value","speed","scrollable","Boolean","multiline","data","delaySec","lifetimes","ready","getContainerWidth","methods","query","createSelectorQuery","select","boundingClientRect","exec","wrapW","wx","getSystemInfoSync","windowWidth","noticeW","res","width","containW","setData","parseInt"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB,IADT;AAEPC,mBAAe,IAFR,CAEa;AAFb,GAHD;;AAQRC,cAAY;AACV;AACAC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KAFG;AAMV;AACAC,WAAO;AACLH,YAAMC,MADD;AAELC,aAAO;AAFF,KAPG;AAWV;AACAE,gBAAY;AACVJ,YAAMK,OADI;AAEVH,aAAO;AAFG,KAZF;AAgBVI,eAAW;AACTN,YAAMK,OADG;AAETH,aAAO;AAFE;AAhBD,GARJ;;AA8BRK,QAAM;AACJC,cAAU;AADN,GA9BE;;AAkCRC,aAAW;AACTC,SADS,mBACD;AACN,WAAKC,iBAAL;AACD;AAHQ,GAlCH;;AAwCRC,WAAS;AACPD,qBADO,+BACa;AAAA;;AAClB,UAAME,QAAQ,KAAKC,mBAAL,EAAd;AACAD,YAAME,MAAN,CAAa,eAAb,EAA8BC,kBAA9B;AACAH,YAAME,MAAN,CAAa,wBAAb,EAAuCC,kBAAvC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMC,QAAQC,GAAGC,iBAAH,GAAuBC,WAArC,CADgB,CACkC;AAClD,YAAMC,UAAWC,IAAI,CAAJ,EAAOC,KAAR,IAAkB,MAAMN,KAAxB,CAAhB;AACA,YAAMO,WAAYF,IAAI,CAAJ,EAAOC,KAAR,IAAkB,MAAMN,KAAxB,CAAjB,CAHgB,CAGkC;;AAElD;AACA,YAAIO,YAAYH,OAAhB,EAAyB;AACvB,gBAAKI,OAAL,CAAa;AACXtB,wBAAY;AADD,WAAb;;AAIA;AACD;;AAED,YAAMI,WAAWiB,WAAW,MAAKlB,IAAL,CAAUJ,KAAtC;;AAEA,cAAKuB,OAAL,CAAa;AACXlB,oBAAUmB,SAASnB,QAAT;AADC,SAAb;AAGD,OAnBD;AAoBD;AA1BM;AAxCD,CAAV,E","file":"bld-notice-bar\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","Component({\r\n externalClasses: ['iclass'],\r\n \r\n options: {\r\n addGlobalClass: true,\r\n multipleSlots: true // 在组件定义时的选项中启用多slot支持\r\n },\r\n \r\n properties: {\r\n // 延迟播放时长\r\n delay: {\r\n type: Number,\r\n value: 1\r\n },\r\n // 滚动速度 rpx/s\r\n speed: {\r\n type: Number,\r\n value: 150\r\n },\r\n // 长度溢出时自动滚动播放\r\n scrollable: {\r\n type: Boolean,\r\n value: true\r\n },\r\n multiline: {\r\n type: Boolean,\r\n value: false\r\n }\r\n },\r\n\r\n data: {\r\n delaySec: 0,\r\n },\r\n\r\n lifetimes: {\r\n ready() {\r\n this.getContainerWidth()\r\n }\r\n },\r\n\r\n methods: {\r\n getContainerWidth() {\r\n const query = this.createSelectorQuery()\r\n query.select('.m-notice-bar').boundingClientRect()\r\n query.select('.m-notice-bar__content').boundingClientRect()\r\n\r\n query.exec(res => {\r\n const wrapW = wx.getSystemInfoSync().windowWidth // 容器宽度\r\n const noticeW = (res[0].width) * (750 / wrapW)\r\n const containW = (res[1].width) * (750 / wrapW) // 内容宽度(折合为rpx)\r\n \r\n // 内容宽度小于内容区域宽度,则不滚动\r\n if (containW <= noticeW) {\r\n this.setData({\r\n scrollable: false\r\n })\r\n\r\n return;\r\n }\r\n\r\n const delaySec = containW / this.data.speed\r\n\r\n this.setData({\r\n delaySec: parseInt(delaySec)\r\n })\r\n })\r\n }\r\n }\r\n});\r\n"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,30 +1,30 @@
1
- <view class="m-notice-bar__wrap iclass">
2
-
3
- <slot name="preifx" />
4
-
5
- <view class="m-notice-bar">
6
- <view
7
- class="m-notice-bar__content {{ !scrollable ? 'is-ellipsis' : '' }} {{ multiline ? 'is-multiline':'' }}"
8
- style="{{ notice.setAnimation(scrollable, delaySec, speed, delay) }}"
9
- >
10
- <slot />
11
- </view>
12
- </view>
13
-
14
- <slot name="suffix" />
15
- </view>
16
-
17
-
18
- <wxs module="notice">
19
- function setAnimation(scrollable, sec, speed, delay) {
20
- if(!scrollable || sec === 0) return ''
21
-
22
- return [
23
- 'animation: once '+ sec +'s linear ' + delay + 's, round '+ (sec + 750 / speed) +'s linear '+ (sec + delay) +'s infinite',
24
- ].join(';');
25
- }
26
-
27
- module.exports = {
28
- setAnimation: setAnimation
29
- }
1
+ <view class="m-notice-bar__wrap iclass">
2
+
3
+ <slot name="preifx" />
4
+
5
+ <view class="m-notice-bar">
6
+ <view
7
+ class="m-notice-bar__content {{ !scrollable ? 'is-ellipsis' : '' }} {{ multiline ? 'is-multiline':'' }}"
8
+ style="{{ notice.setAnimation(scrollable, delaySec, speed, delay) }}"
9
+ >
10
+ <slot />
11
+ </view>
12
+ </view>
13
+
14
+ <slot name="suffix" />
15
+ </view>
16
+
17
+
18
+ <wxs module="notice">
19
+ function setAnimation(scrollable, sec, speed, delay) {
20
+ if(!scrollable || sec === 0) return ''
21
+
22
+ return [
23
+ 'animation: once '+ sec +'s linear ' + delay + 's, round '+ (sec + 750 / speed) +'s linear '+ (sec + delay) +'s infinite',
24
+ ].join(';');
25
+ }
26
+
27
+ module.exports = {
28
+ setAnimation: setAnimation
29
+ }
30
30
  </wxs>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-overlay/index.js"],"names":["Component","externalClasses","properties","show","type","Boolean","contentPosition","String","value","methods","hide","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC;AADF,KADI;AAIVC,qBAAiB;AACfF,YAAMG,MADS;AAEfC,aAAO;AAFQ;AAJP,GAFJ;AAWRC,WAAS;AACPC,QADO,kBACA;AACL,WAAKC,OAAL,CAAa,EAAER,MAAM,KAAR,EAAb;AACD;AAHM;AAXD,CAAV,E","file":"bld-overlay/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 23);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n show: {\n type: Boolean,\n },\n contentPosition: {\n type: String,\n value: \"bottom\",\n },\n },\n methods: {\n hide() {\n this.setData({ show: false });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-overlay/index.js"],"names":["Component","externalClasses","properties","show","type","Boolean","contentPosition","String","value","methods","hide","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC;AADF,KADI;AAIVC,qBAAiB;AACfF,YAAMG,MADS;AAEfC,aAAO;AAFQ;AAJP,GAFJ;AAWRC,WAAS;AACPC,QADO,kBACA;AACL,WAAKC,OAAL,CAAa,EAAER,MAAM,KAAR,EAAb;AACD;AAHM;AAXD,CAAV,E","file":"bld-overlay\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 23);\n","Component({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n show: {\r\n type: Boolean,\r\n },\r\n contentPosition: {\r\n type: String,\r\n value: \"bottom\",\r\n },\r\n },\r\n methods: {\r\n hide() {\r\n this.setData({ show: false });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,11 +1,11 @@
1
- <view
2
- wx:if="{{ show }}"
3
- class="overlay iclass"
4
- >
5
- <view
6
- wx:if="{{ contentPosition == 'bottom' }}"
7
- style="flex: 1"
8
- bind:tap="hide"
9
- />
10
- <slot />
11
- </view>
1
+ <view
2
+ wx:if="{{ show }}"
3
+ class="overlay iclass"
4
+ >
5
+ <view
6
+ wx:if="{{ contentPosition == 'bottom' }}"
7
+ style="flex: 1"
8
+ bind:tap="hide"
9
+ />
10
+ <slot />
11
+ </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-page/index.js"],"names":["Component","externalClasses","options","multipleSlots","properties","navBarMode","type","String","value","navBarShowDistance","Number","navBarShowShare","Boolean","navBarBgColor","navBarGoBack","mode","scrollTop","textAlign","data","_navBarShowTitle","_navBarBgColor","showNavBar","lifetimes","attached","setData","methods","scroll","e","triggerEvent","detail","showNavBarAfterScroll","scrollToLower","ok"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,YAAD,EAAe,eAAf,EAAgC,eAAhC,EAAiD,cAAjD,CADT;AAERC,WAAS;AACPC,mBAAe;AADR,GAFD;AAKRC,cAAY;AACVC,gBAAY;AACVC,Y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AAKT,IAAL,CAAUb,UAAV,IAAwB,mBAA5B,EAAiD;AAC/C;AACD;;AAED,UAAM2B,KAAKL,EAAEE,MAAF,CAASb,SAAT,GAAqB,KAAKE,IAAL,CAAUT,kBAA1C;;AAEA,WAAKe,OAAL,CAAa;AACXL,0BAAkBa,EADP;AAEXZ,wBAAgBY,KAAK,KAAKd,IAAL,CAAUL,aAAf,GAA+B;AAFpC,OAAb;AAID;AArBM;AA9DD,CAAV,E","file":"bld-page/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 25);\n","Component({\n externalClasses: [\"page-class\", \"nav-bar-class\", \"content-class\", \"footer-class\"],\n options: {\n multipleSlots: true,\n },\n properties: {\n navBarMode: {\n type: String,\n value: \"always\",\n },\n navBarShowDistance: {\n type: Number,\n value: 50,\n },\n navBarShowShare: {\n type: Boolean,\n value: false,\n },\n navBarBgColor: {\n type: String,\n value: \"#fff\",\n },\n navBarGoBack: {\n type: Boolean,\n value: true,\n },\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n scrollTop: {\n type: Number,\n value: 0,\n },\n textAlign: {\n type: String,\n value: \"left\",\n },\n },\n data: {\n _navBarShowTitle: true,\n _navBarBgColor: \"\",\n showNavBar: false\n },\n lifetimes: {\n attached() {\n if (this.data.navBarMode == \"always\") {\n this.setData({\n _navBarShowTitle: true,\n _navBarBgColor: this.data.navBarBgColor\n });\n } else if (this.data.navBarMode == \"show-after-scroll\") {\n this.setData({\n _navBarShowTitle: false,\n _navBarBgColor: null\n });\n }\n this.setData({\n showNavBar: true\n });\n },\n },\n methods: {\n scroll(e) {\n this.triggerEvent(\"scroll\", { ...e.detail });\n this.showNavBarAfterScroll(e);\n },\n\n scrollToLower(e) {\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\n },\n\n showNavBarAfterScroll(e) {\n if (this.data.navBarMode != \"show-after-scroll\") {\n return;\n }\n\n const ok = e.detail.scrollTop > this.data.navBarShowDistance;\n\n this.setData({\n _navBarShowTitle: ok,\n _navBarBgColor: ok ? this.data.navBarBgColor : null,\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-page/index.js"],"names":["Component","externalClasses","options","multipleSlots","properties","navBarMode","type","String","value","navBarShowDistance","Number","navBarShowShare","Boolean","navBarBgColor","navBarGoBack","mode","scrollTop","textAlign","data","_navBarShowTitle","_navBarBgColor","showNavBar","lifetimes","attached","setData","methods","scroll","e","triggerEvent","detail","showNavBarAfterScroll","scrollToLower","ok"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,Y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EAMU;AACf,WAAKC,YAAL,CAAkB,eAAlB,eAAwCD,EAAEE,MAA1C;AACD,KARM;AAUPC,yBAVO,iCAUeH,CAVf,EAUkB;AACvB,UAAI,KAAKT,IAAL,CAAUb,UAAV,IAAwB,mBAA5B,EAAiD;AAC/C;AACD;;AAED,UAAM2B,KAAKL,EAAEE,MAAF,CAASb,SAAT,GAAqB,KAAKE,IAAL,CAAUT,kBAA1C;;AAEA,WAAKe,OAAL,CAAa;AACXL,0BAAkBa,EADP;AAEXZ,wBAAgBY,KAAK,KAAKd,IAAL,CAAUL,aAAf,GAA+B;AAFpC,OAAb;AAID;AArBM;AA9DD,CAAV,E","file":"bld-page\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 25);\n","Component({\r\n externalClasses: [\"page-class\", \"nav-bar-class\", \"content-class\", \"footer-class\"],\r\n options: {\r\n multipleSlots: true,\r\n },\r\n properties: {\r\n navBarMode: {\r\n type: String,\r\n value: \"always\",\r\n },\r\n navBarShowDistance: {\r\n type: Number,\r\n value: 50,\r\n },\r\n navBarShowShare: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n navBarBgColor: {\r\n type: String,\r\n value: \"#fff\",\r\n },\r\n navBarGoBack: {\r\n type: Boolean,\r\n value: true,\r\n },\r\n mode: {\r\n type: String,\r\n value: \"nav-to-bottom\",\r\n },\r\n scrollTop: {\r\n type: Number,\r\n value: 0,\r\n },\r\n textAlign: {\r\n type: String,\r\n value: \"left\",\r\n },\r\n },\r\n data: {\r\n _navBarShowTitle: true,\r\n _navBarBgColor: \"\",\r\n showNavBar: false\r\n },\r\n lifetimes: {\r\n attached() {\r\n if (this.data.navBarMode == \"always\") {\r\n this.setData({\r\n _navBarShowTitle: true,\r\n _navBarBgColor: this.data.navBarBgColor\r\n });\r\n } else if (this.data.navBarMode == \"show-after-scroll\") {\r\n this.setData({\r\n _navBarShowTitle: false,\r\n _navBarBgColor: null\r\n });\r\n }\r\n this.setData({\r\n showNavBar: true\r\n });\r\n },\r\n },\r\n methods: {\r\n scroll(e) {\r\n this.triggerEvent(\"scroll\", { ...e.detail });\r\n this.showNavBarAfterScroll(e);\r\n },\r\n\r\n scrollToLower(e) {\r\n this.triggerEvent(\"scrollToLower\", { ...e.detail });\r\n },\r\n\r\n showNavBarAfterScroll(e) {\r\n if (this.data.navBarMode != \"show-after-scroll\") {\r\n return;\r\n }\r\n\r\n const ok = e.detail.scrollTop > this.data.navBarShowDistance;\r\n\r\n this.setData({\r\n _navBarShowTitle: ok,\r\n _navBarBgColor: ok ? this.data.navBarBgColor : null,\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,7 +1,7 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "bld-nav-bar": "../bld-nav-bar/index",
5
- "bld-wrapper": "../bld-wrapper/index"
6
- }
7
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-nav-bar": "../bld-nav-bar/index",
5
+ "bld-wrapper": "../bld-wrapper/index"
6
+ }
7
+ }
@@ -1,30 +1,30 @@
1
- <view class="page page-class">
2
- <bld-nav-bar
3
- wx:if="{{ showNavBar }}"
4
- go-back="{{ navBarGoBack }}"
5
- show-title="{{ _navBarShowTitle }}"
6
- show-share="{{ navBarShowShare }}"
7
- bg-color="{{ _navBarBgColor }}"
8
- text-align="{{ textAlign }}"
9
- iclass="nav-bar-class"
10
- >
11
- <slot name="nav-bar" />
12
- </bld-nav-bar>
13
- <bld-wrapper mode="{{ mode }}">
14
- <scroll-view
15
- enable-passive="{{ true }}"
16
- show-scrollbar="{{ false }}"
17
- type="list"
18
- class="content-class container"
19
- scroll-y
20
- scroll-top="{{ scrollTop }}"
21
- bind:scroll="scroll"
22
- bind:scrolltolower="scrollToLower"
23
- >
24
- <slot name="content" />
25
- </scroll-view>
26
- <view class="footer-class footer">
27
- <slot name="footer" />
28
- </view>
29
- </bld-wrapper>
30
- </view>
1
+ <view class="page page-class">
2
+ <bld-nav-bar
3
+ wx:if="{{ showNavBar }}"
4
+ go-back="{{ navBarGoBack }}"
5
+ show-title="{{ _navBarShowTitle }}"
6
+ show-share="{{ navBarShowShare }}"
7
+ bg-color="{{ _navBarBgColor }}"
8
+ text-align="{{ textAlign }}"
9
+ iclass="nav-bar-class"
10
+ >
11
+ <slot name="nav-bar" />
12
+ </bld-nav-bar>
13
+ <bld-wrapper mode="{{ mode }}">
14
+ <scroll-view
15
+ enable-passive="{{ true }}"
16
+ show-scrollbar="{{ false }}"
17
+ type="list"
18
+ class="content-class container"
19
+ scroll-y
20
+ scroll-top="{{ scrollTop }}"
21
+ bind:scroll="scroll"
22
+ bind:scrolltolower="scrollToLower"
23
+ >
24
+ <slot name="content" />
25
+ </scroll-view>
26
+ <view class="footer-class footer">
27
+ <slot name="footer" />
28
+ </view>
29
+ </bld-wrapper>
30
+ </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-pop-up/index.js"],"names":["Component","properties","cfgInfo","type","Object","value","hideBtn","bgIsClose","show","Boolean","methods","closeBj","data","closePopUp","setData","triggerEvent"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,cAAY;AACVC,aAAS;AACPC,YAAMC,MADC;AAEPC,aAAO;AACLC,iBAAS,KADJ;AAELC,mBAAW;AAFN;AAFA,KADC;AAQVC,UAAK;AACHL,YAAKM,OADF;AAEHJ,aAAM;AAFH;AARK,GADJ;;AAeRK,WAAS;AACPC,WADO,qBACG;AACR,UAAI,KAAKC,IAAL,CAAUV,OAAV,CAAkBK,SAAtB,EAAiC;AAC/B,aAAKM,UAAL;AACD;AACF,KALM;AAMPA,cANO,wBAMM;AACX,WAAKC,OAAL,CAAa;AACXN,cAAM;AADK,OAAb;AAGA,WAAKO,YAAL,CAAkB,YAAlB,EAAgC,EAAhC;AACD;AAXM;AAfD,CAAV,E","file":"bld-pop-up/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 28);\n","Component({\n properties: {\n cfgInfo: {\n type: Object,\n value: {\n hideBtn: false,\n bgIsClose: false,\n },\n },\n show:{\n type:Boolean,\n value:false\n }\n },\n \n methods: {\n closeBj() {\n if (this.data.cfgInfo.bgIsClose) {\n this.closePopUp();\n }\n },\n closePopUp() {\n this.setData({\n show: false,\n });\n this.triggerEvent(\"closePopUp\", {});\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-pop-up/index.js"],"names":["Component","properties","cfgInfo","type","Object","value","hideBtn","bgIsClose","show","Boolean","methods","closeBj","data","closePopUp","setData","triggerEvent"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,cAAY;AACVC,aAAS;AACPC,YAAMC,MADC;AAEPC,aAAO;AACLC,iBAAS,KADJ;AAELC,mBAAW;AAFN;AAFA,KADC;AAQVC,UAAK;AACHL,YAAKM,OADF;AAEHJ,aAAM;AAFH;AARK,GADJ;;AAeRK,WAAS;AACPC,WADO,qBACG;AACR,UAAI,KAAKC,IAAL,CAAUV,OAAV,CAAkBK,SAAtB,EAAiC;AAC/B,aAAKM,UAAL;AACD;AACF,KALM;AAMPA,cANO,wBAMM;AACX,WAAKC,OAAL,CAAa;AACXN,cAAM;AADK,OAAb;AAGA,WAAKO,YAAL,CAAkB,YAAlB,EAAgC,EAAhC;AACD;AAXM;AAfD,CAAV,E","file":"bld-pop-up\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 28);\n","Component({\r\n properties: {\r\n cfgInfo: {\r\n type: Object,\r\n value: {\r\n hideBtn: false,\r\n bgIsClose: false,\r\n },\r\n },\r\n show:{\r\n type:Boolean,\r\n value:false\r\n }\r\n },\r\n \r\n methods: {\r\n closeBj() {\r\n if (this.data.cfgInfo.bgIsClose) {\r\n this.closePopUp();\r\n }\r\n },\r\n closePopUp() {\r\n this.setData({\r\n show: false,\r\n });\r\n this.triggerEvent(\"closePopUp\", {});\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "bld-cloud-image": "../bld-cloud-image/index"
5
- }
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-cloud-image": "../bld-cloud-image/index"
5
+ }
6
+ }
@@ -1,18 +1,18 @@
1
- <view
2
- class="pop-up-box"
3
- wx:if="{{ show ? true : false }}"
4
- >
5
- <view
6
- class="pop-up-bj"
7
- bindtap="closeBj"
8
- ></view>
9
- <view class="pop-up-cont">
10
- <slot />
11
- <bld-cloud-image
12
- wx:if="{{ !cfgInfo.hideBtn }}"
13
- iclass="pop-close"
14
- src="activity/sleeves/pop-close.png"
15
- bindtap="closePopUp"
16
- />
17
- </view>
18
- </view>
1
+ <view
2
+ class="pop-up-box"
3
+ wx:if="{{ show ? true : false }}"
4
+ >
5
+ <view
6
+ class="pop-up-bj"
7
+ bindtap="closeBj"
8
+ ></view>
9
+ <view class="pop-up-cont">
10
+ <slot />
11
+ <bld-cloud-image
12
+ wx:if="{{ !cfgInfo.hideBtn }}"
13
+ iclass="pop-close"
14
+ src="activity/sleeves/pop-close.png"
15
+ bindtap="closePopUp"
16
+ />
17
+ </view>
18
+ </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-progress/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","percent","Number","pointText","pointColor","activeColor","pointVisible","Boolean","textColor","barHeight","optionalTypes"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;;AAMVC,aAAS;AACPH,YAAMI,MADC;AAEPF,aAAO;AAFA,KANC;;AAWVG,eAAW;AACTL,YAAMC,MADG;AAETC,aAAO;AAFE,KAXD;AAeVI,gBAAY;AACVN,YAAMC,MADI;AAEVC,aAAO;AAFG,KAfF;;AAoBVK,iBAAa;AACXP,YAAMC,MADK;AAEXC,aAAO;AAFI,KApBH;;AAyBVM,kBAAc;AACZR,YAAMS,OADM;AAEZP,aAAO;AAFK,KAzBJ;;AA8BVQ,eAAW;AACTV,YAAMC,MADG;AAETC,aAAO;AAFE,KA9BD;;AAmCVS,eAAW;AACTX,YAAMI,MADG;AAETQ,qBAAe,CAACR,MAAD,EAASH,MAAT,CAFN;AAGTC,aAAO;AAHE;AAnCD;AAPJ,CAAV,E","file":"bld-progress/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 47);\n","Component({\n externalClasses: ['iclass'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n type: {\n type: String,\n value: 'primary'\n },\n\n percent: {\n type: Number,\n value: 0\n },\n\n pointText: {\n type: String,\n value: ''\n },\n pointColor: {\n type: String,\n value: ''\n },\n\n activeColor: {\n type: String,\n value: ''\n },\n\n pointVisible: {\n type: Boolean,\n value: true\n },\n\n textColor: {\n type: String,\n value: '#fff'\n },\n\n barHeight: {\n type: Number,\n optionalTypes: [Number, String],\n value: 6\n }\n }\n})\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-progress/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","percent","Number","pointText","pointColor","activeColor","pointVisible","Boolean","textColor","barHeight","optionalTypes"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;;AAMVC,aAAS;AACPH,YAAMI,MADC;AAEPF,aAAO;AAFA,KANC;;AAWVG,eAAW;AACTL,YAAMC,MADG;AAETC,aAAO;AAFE,KAXD;AAeVI,gBAAY;AACVN,YAAMC,MADI;AAEVC,aAAO;AAFG,KAfF;;AAoBVK,iBAAa;AACXP,YAAMC,MADK;AAEXC,aAAO;AAFI,KApBH;;AAyBVM,kBAAc;AACZR,YAAMS,OADM;AAEZP,aAAO;AAFK,KAzBJ;;AA8BVQ,eAAW;AACTV,YAAMC,MADG;AAETC,aAAO;AAFE,KA9BD;;AAmCVS,eAAW;AACTX,YAAMI,MADG;AAETQ,qBAAe,CAACR,MAAD,EAASH,MAAT,CAFN;AAGTC,aAAO;AAHE;AAnCD;AAPJ,CAAV,E","file":"bld-progress\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 47);\n","Component({\r\n externalClasses: ['iclass'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n type: {\r\n type: String,\r\n value: 'primary'\r\n },\r\n\r\n percent: {\r\n type: Number,\r\n value: 0\r\n },\r\n\r\n pointText: {\r\n type: String,\r\n value: ''\r\n },\r\n pointColor: {\r\n type: String,\r\n value: ''\r\n },\r\n\r\n activeColor: {\r\n type: String,\r\n value: ''\r\n },\r\n\r\n pointVisible: {\r\n type: Boolean,\r\n value: true\r\n },\r\n\r\n textColor: {\r\n type: String,\r\n value: '#fff'\r\n },\r\n\r\n barHeight: {\r\n type: Number,\r\n optionalTypes: [Number, String],\r\n value: 6\r\n }\r\n }\r\n})\r\n"],"sourceRoot":""}
@@ -1,4 +1,4 @@
1
- {
2
- "component": true,
3
- "usingComponents": {}
1
+ {
2
+ "component": true,
3
+ "usingComponents": {}
4
4
  }