bulade-ui 1.1.53 → 1.1.55

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 (399) 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 +573 -573
  8. package/miniprogram_dist/assets/style/border.wxss +94 -94
  9. package/miniprogram_dist/bld-action-sheet/index.js.map +1 -1
  10. package/miniprogram_dist/bld-action-sheet/index.json +8 -8
  11. package/miniprogram_dist/bld-action-sheet/index.wxml +56 -56
  12. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  13. package/miniprogram_dist/bld-badge/index.json +3 -3
  14. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  15. package/miniprogram_dist/bld-button/index.js.map +1 -1
  16. package/miniprogram_dist/bld-button/index.json +7 -7
  17. package/miniprogram_dist/bld-button/index.wxml +3 -3
  18. package/miniprogram_dist/bld-button-v2/index.js.map +1 -1
  19. package/miniprogram_dist/bld-button-v2/index.json +3 -3
  20. package/miniprogram_dist/bld-button-v2/index.wxml +41 -41
  21. package/miniprogram_dist/bld-card/index.js.map +1 -1
  22. package/miniprogram_dist/bld-card/index.json +2 -2
  23. package/miniprogram_dist/bld-card/index.wxml +5 -5
  24. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  25. package/miniprogram_dist/bld-cell/index.json +7 -7
  26. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  27. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  28. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  29. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  30. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  31. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  32. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  33. package/miniprogram_dist/bld-cell-group-v2/index.js.map +1 -1
  34. package/miniprogram_dist/bld-cell-group-v2/index.json +2 -2
  35. package/miniprogram_dist/bld-cell-group-v2/index.wxml +9 -9
  36. package/miniprogram_dist/bld-cell-v2/index.js.map +1 -1
  37. package/miniprogram_dist/bld-cell-v2/index.json +5 -5
  38. package/miniprogram_dist/bld-cell-v2/index.wxml +24 -24
  39. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  40. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  41. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  42. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  43. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  44. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  45. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  46. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  47. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  48. package/miniprogram_dist/bld-collapse/index.json +3 -3
  49. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  50. package/miniprogram_dist/bld-dialog-tip/index.js.map +1 -1
  51. package/miniprogram_dist/bld-dialog-tip/index.json +5 -5
  52. package/miniprogram_dist/bld-dialog-tip/index.wxml +23 -23
  53. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  54. package/miniprogram_dist/bld-drawer/index.json +3 -3
  55. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  56. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  57. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  58. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  59. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js +21 -9
  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 +53 -53
  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 +1 -0
  82. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  83. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  84. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  85. package/miniprogram_dist/bld-html/index.js +1 -1
  86. package/miniprogram_dist/bld-html/index.js.map +1 -1
  87. package/miniprogram_dist/bld-html/index.json +5 -5
  88. package/miniprogram_dist/bld-html/index.wxml +21 -21
  89. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  90. package/miniprogram_dist/bld-icon/index.json +6 -6
  91. package/miniprogram_dist/bld-icon/index.wxml +36 -36
  92. package/miniprogram_dist/bld-icon/index.wxss +591 -591
  93. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  94. package/miniprogram_dist/bld-loading/index.json +6 -6
  95. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  96. package/miniprogram_dist/bld-message/index.js.map +1 -1
  97. package/miniprogram_dist/bld-message/index.json +3 -3
  98. package/miniprogram_dist/bld-message/index.wxml +8 -8
  99. package/miniprogram_dist/bld-message/message.js.map +1 -1
  100. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  101. package/miniprogram_dist/bld-modal/index.json +6 -6
  102. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  103. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  104. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  105. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  106. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  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 +31 -31
  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.map +1 -1
  140. package/miniprogram_dist/bld-tabs/index.json +4 -4
  141. package/miniprogram_dist/bld-tabs/index.wxml +13 -13
  142. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  143. package/miniprogram_dist/bld-tag/index.json +3 -3
  144. package/miniprogram_dist/bld-tag/index.wxml +2 -2
  145. package/miniprogram_dist/bld-text/index.js.map +1 -1
  146. package/miniprogram_dist/bld-text/index.json +2 -2
  147. package/miniprogram_dist/bld-text/index.wxml +3 -3
  148. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  149. package/miniprogram_dist/bld-toast/index.json +5 -5
  150. package/miniprogram_dist/bld-toast/index.wxml +26 -26
  151. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  152. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  153. package/miniprogram_dist/bld-wrapper/index.json +4 -4
  154. package/miniprogram_dist/bld-wrapper/index.wxml +6 -6
  155. package/miniprogram_dist/button/index.js.map +1 -1
  156. package/miniprogram_dist/button/index.json +3 -3
  157. package/miniprogram_dist/button/index.wxml +41 -41
  158. package/miniprogram_dist/components-npm/mp-weixin/index.js +6 -6
  159. package/miniprogram_dist/components-npm/mp-weixin/index.js.map +1 -1
  160. package/miniprogram_dist/components-npm/mp-weixin/node/node.js.map +1 -1
  161. package/miniprogram_dist/grid/index.js.map +1 -1
  162. package/miniprogram_dist/grid/index.json +3 -3
  163. package/miniprogram_dist/grid/index.wxml +2 -2
  164. package/miniprogram_dist/grid-item/index.js.map +1 -1
  165. package/miniprogram_dist/grid-item/index.json +5 -5
  166. package/miniprogram_dist/grid-item/index.wxml +45 -45
  167. package/miniprogram_dist/timeline/index.js.map +1 -1
  168. package/miniprogram_dist/timeline/index.json +2 -2
  169. package/miniprogram_dist/timeline/index.wxml +1 -1
  170. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  171. package/miniprogram_dist/timeline-item/index.json +5 -5
  172. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  173. package/miniprogram_dist/utils/systemInfo.js +52 -52
  174. package/package.json +72 -72
  175. package/project.config.json +7 -7
  176. package/src/assets/font/iconfont.scss +573 -573
  177. package/src/assets/style/border.wxss +94 -94
  178. package/src/bld-action-sheet/index.js +82 -82
  179. package/src/bld-action-sheet/index.json +8 -8
  180. package/src/bld-action-sheet/index.scss +179 -179
  181. package/src/bld-action-sheet/index.wxml +56 -56
  182. package/src/bld-badge/index.js +53 -53
  183. package/src/bld-badge/index.json +3 -3
  184. package/src/bld-badge/index.scss +45 -45
  185. package/src/bld-badge/index.wxml +13 -13
  186. package/src/bld-button/index.js +13 -13
  187. package/src/bld-button/index.json +7 -7
  188. package/src/bld-button/index.scss +44 -44
  189. package/src/bld-button/index.wxml +3 -3
  190. package/src/bld-button-v2/index.js +91 -91
  191. package/src/bld-button-v2/index.json +3 -3
  192. package/src/bld-button-v2/index.scss +206 -206
  193. package/src/bld-button-v2/index.wxml +41 -41
  194. package/src/bld-card/index.js +3 -3
  195. package/src/bld-card/index.json +2 -2
  196. package/src/bld-card/index.scss +6 -6
  197. package/src/bld-card/index.wxml +5 -5
  198. package/src/bld-cell/index.js +29 -29
  199. package/src/bld-cell/index.json +7 -7
  200. package/src/bld-cell/index.scss +42 -42
  201. package/src/bld-cell/index.wxml +42 -42
  202. package/src/bld-cell-field/index.js +11 -11
  203. package/src/bld-cell-field/index.json +6 -6
  204. package/src/bld-cell-field/index.scss +21 -21
  205. package/src/bld-cell-field/index.wxml +8 -8
  206. package/src/bld-cell-group/index.js +12 -12
  207. package/src/bld-cell-group/index.json +2 -2
  208. package/src/bld-cell-group/index.scss +13 -13
  209. package/src/bld-cell-group/index.wxml +14 -14
  210. package/src/bld-cell-group-v2/index.js +70 -70
  211. package/src/bld-cell-group-v2/index.json +2 -2
  212. package/src/bld-cell-group-v2/index.scss +31 -31
  213. package/src/bld-cell-group-v2/index.wxml +9 -9
  214. package/src/bld-cell-v2/index.js +80 -80
  215. package/src/bld-cell-v2/index.json +5 -5
  216. package/src/bld-cell-v2/index.scss +74 -74
  217. package/src/bld-cell-v2/index.wxml +24 -24
  218. package/src/bld-checkbox/index.js +110 -110
  219. package/src/bld-checkbox/index.json +5 -5
  220. package/src/bld-checkbox/index.scss +71 -71
  221. package/src/bld-checkbox/index.wxml +66 -66
  222. package/src/bld-checkbox-group/index.js +84 -84
  223. package/src/bld-checkbox-group/index.json +3 -3
  224. package/src/bld-cloud-image/index.js +79 -79
  225. package/src/bld-cloud-image/index.json +2 -2
  226. package/src/bld-cloud-image/index.scss +3 -3
  227. package/src/bld-cloud-image/index.wxml +14 -14
  228. package/src/bld-collapse/index.js +62 -62
  229. package/src/bld-collapse/index.json +3 -3
  230. package/src/bld-collapse/index.scss +6 -6
  231. package/src/bld-collapse/index.wxml +8 -8
  232. package/src/bld-content-container/index.js +46 -46
  233. package/src/bld-content-container/index.json +2 -2
  234. package/src/bld-content-container/index.wxml +5 -5
  235. package/src/bld-dialog-tip/index.js +60 -60
  236. package/src/bld-dialog-tip/index.json +5 -5
  237. package/src/bld-dialog-tip/index.scss +66 -66
  238. package/src/bld-dialog-tip/index.wxml +23 -23
  239. package/src/bld-drawer/index.js +40 -40
  240. package/src/bld-drawer/index.json +3 -3
  241. package/src/bld-drawer/index.scss +78 -78
  242. package/src/bld-drawer/index.wxml +13 -13
  243. package/src/bld-empty-page/index.js +23 -23
  244. package/src/bld-empty-page/index.json +5 -5
  245. package/src/bld-empty-page/index.scss +15 -15
  246. package/src/bld-empty-page/index.wxml +11 -11
  247. package/src/bld-form/bld-form-item/bld-form-date/index.js +223 -211
  248. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  249. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  250. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  251. package/src/bld-form/bld-form-item/bld-form-input/index.js +53 -53
  252. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  253. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  254. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  255. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +149 -149
  256. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  257. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  258. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +53 -53
  259. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  260. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  261. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  262. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  263. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  264. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  265. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  266. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  267. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  268. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  269. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  270. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  271. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  272. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  273. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  274. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  275. package/src/bld-half-screen/index.js +167 -166
  276. package/src/bld-half-screen/index.json +4 -4
  277. package/src/bld-half-screen/index.scss +109 -109
  278. package/src/bld-half-screen/index.wxml +36 -36
  279. package/src/bld-html/index.js +46 -46
  280. package/src/bld-html/index.json +5 -5
  281. package/src/bld-html/index.scss +17 -17
  282. package/src/bld-html/index.wxml +21 -21
  283. package/src/bld-icon/index.js +41 -41
  284. package/src/bld-icon/index.json +6 -6
  285. package/src/bld-icon/index.scss +19 -19
  286. package/src/bld-icon/index.wxml +36 -36
  287. package/src/bld-icon/index.wxss +591 -591
  288. package/src/bld-icon-back/index.js +8 -8
  289. package/src/bld-icon-back/index.json +3 -3
  290. package/src/bld-icon-back/index.scss +1 -1
  291. package/src/bld-icon-back/index.wxml +1 -1
  292. package/src/bld-icon-back/index.wxss +571 -571
  293. package/src/bld-loading/index.js +9 -9
  294. package/src/bld-loading/index.json +6 -6
  295. package/src/bld-loading/index.scss +25 -25
  296. package/src/bld-loading/index.wxml +8 -8
  297. package/src/bld-message/index.js +90 -90
  298. package/src/bld-message/index.json +3 -3
  299. package/src/bld-message/index.scss +66 -66
  300. package/src/bld-message/index.wxml +8 -8
  301. package/src/bld-message/message.js +61 -61
  302. package/src/bld-modal/index.js +122 -122
  303. package/src/bld-modal/index.json +6 -6
  304. package/src/bld-modal/index.scss +107 -107
  305. package/src/bld-modal/index.wxml +22 -22
  306. package/src/bld-modal/modal.js +37 -37
  307. package/src/bld-nav-bar/index.js +140 -140
  308. package/src/bld-nav-bar/index.json +6 -6
  309. package/src/bld-nav-bar/index.scss +55 -55
  310. package/src/bld-nav-bar/index.wxml +43 -43
  311. package/src/bld-nav-bar1/index.js +90 -90
  312. package/src/bld-nav-bar1/index.json +5 -5
  313. package/src/bld-nav-bar1/index.scss +39 -39
  314. package/src/bld-nav-bar1/index.wxml +24 -24
  315. package/src/bld-navbar/index.js +62 -62
  316. package/src/bld-navbar/index.json +5 -5
  317. package/src/bld-navbar/index.scss +34 -34
  318. package/src/bld-navbar/index.wxml +7 -7
  319. package/src/bld-navbar-group/index.js +139 -139
  320. package/src/bld-navbar-group/index.json +3 -3
  321. package/src/bld-navbar-group/index.scss +32 -32
  322. package/src/bld-navbar-group/index.wxml +36 -36
  323. package/src/bld-notice-bar/index.js +69 -69
  324. package/src/bld-notice-bar/index.json +3 -3
  325. package/src/bld-notice-bar/index.scss +58 -58
  326. package/src/bld-notice-bar/index.wxml +29 -29
  327. package/src/bld-overlay/index.js +17 -17
  328. package/src/bld-overlay/index.json +3 -3
  329. package/src/bld-overlay/index.scss +11 -11
  330. package/src/bld-overlay/index.wxml +11 -11
  331. package/src/bld-page/index.js +97 -97
  332. package/src/bld-page/index.json +7 -7
  333. package/src/bld-page/index.scss +16 -16
  334. package/src/bld-page/index.wxml +31 -31
  335. package/src/bld-pop-up/index.js +29 -29
  336. package/src/bld-pop-up/index.json +6 -6
  337. package/src/bld-pop-up/index.scss +27 -27
  338. package/src/bld-pop-up/index.wxml +18 -18
  339. package/src/bld-progress/index.js +49 -49
  340. package/src/bld-progress/index.json +3 -3
  341. package/src/bld-progress/index.scss +73 -73
  342. package/src/bld-progress/index.wxml +34 -34
  343. package/src/bld-radio/index.js +64 -64
  344. package/src/bld-radio/index.json +3 -3
  345. package/src/bld-radio/index.scss +67 -67
  346. package/src/bld-radio/index.wxml +23 -23
  347. package/src/bld-radio-group/index.js +82 -82
  348. package/src/bld-radio-group/index.json +3 -3
  349. package/src/bld-retry/index.js +23 -23
  350. package/src/bld-retry/index.json +2 -2
  351. package/src/bld-retry/index.scss +26 -26
  352. package/src/bld-retry/index.wxml +5 -5
  353. package/src/bld-scroll-view/index.js +28 -28
  354. package/src/bld-scroll-view/index.json +7 -7
  355. package/src/bld-scroll-view/index.scss +7 -7
  356. package/src/bld-scroll-view/index.wxml +42 -42
  357. package/src/bld-tabs/index.js +21 -21
  358. package/src/bld-tabs/index.json +4 -4
  359. package/src/bld-tabs/index.scss +32 -32
  360. package/src/bld-tabs/index.wxml +13 -13
  361. package/src/bld-tag/index.js +33 -33
  362. package/src/bld-tag/index.json +3 -3
  363. package/src/bld-tag/index.scss +126 -126
  364. package/src/bld-tag/index.wxml +2 -2
  365. package/src/bld-text/index.js +46 -46
  366. package/src/bld-text/index.json +2 -2
  367. package/src/bld-text/index.scss +30 -30
  368. package/src/bld-text/index.wxml +3 -3
  369. package/src/bld-toast/index.js +113 -113
  370. package/src/bld-toast/index.json +5 -5
  371. package/src/bld-toast/index.scss +111 -111
  372. package/src/bld-toast/index.wxml +26 -26
  373. package/src/bld-toast/toast.js +34 -34
  374. package/src/bld-wrapper/index.js +75 -75
  375. package/src/bld-wrapper/index.json +4 -4
  376. package/src/bld-wrapper/index.scss +7 -7
  377. package/src/bld-wrapper/index.wxml +6 -6
  378. package/src/button/index.js +91 -91
  379. package/src/button/index.json +3 -3
  380. package/src/button/index.scss +206 -206
  381. package/src/button/index.wxml +41 -41
  382. package/src/components-npm/mp-weixin/index.js +7 -7
  383. package/src/grid/index.js +67 -67
  384. package/src/grid/index.json +3 -3
  385. package/src/grid/index.scss +20 -20
  386. package/src/grid/index.wxml +2 -2
  387. package/src/grid-item/index.js +72 -72
  388. package/src/grid-item/index.json +5 -5
  389. package/src/grid-item/index.scss +58 -58
  390. package/src/grid-item/index.wxml +45 -45
  391. package/src/timeline/index.js +49 -49
  392. package/src/timeline/index.json +2 -2
  393. package/src/timeline/index.wxml +1 -1
  394. package/src/timeline-item/index.js +27 -27
  395. package/src/timeline-item/index.json +5 -5
  396. package/src/timeline-item/index.scss +36 -36
  397. package/src/timeline-item/index.wxml +9 -9
  398. package/src/utils/systemInfo.js +52 -52
  399. package/tsconfig.json +25 -25
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-checkbox-group/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","max","Number","round","Boolean","value","Array","observer","disabled","checkedColor","String","labelLeft","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","forEach","child","index","_updateChild","data","setData","indexOf","name","prevent"],"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,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,aAAW;AACT,yBAAqB;AACnBC,YAAM,YADa;AAEnBC,YAFmB,oBAEV;AACP,aAAKC,eAAL;AACD,OAJkB;AAKnBC,cALmB,sBAKR;AACT,aAAKD,eAAL;AACD;AAPkB;AADZ,GALH;;AAiBRE,cAAY;AACVC,SAAKC,MADK;AAEVC,WAAO;AACLP,YAAMQ,OADD;AAEL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,KAAKqB,IAAL,CAAUrB,KAAV,IAAmBkB,MAAMG,IAAN,CAAWrB,KALzB;AAMZyB,iBAAS,KAAKJ,IAAL,CAAUvB,GAAV,IAAiBI,MAAMc,MAAN,IAAgB,KAAKK,IAAL,CAAUvB;AANxC,OAAd;AAQD;AAxCM;AAzCD,CAAV,E","file":"bld-checkbox-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 = 52);\n","Component({\n options: {\n addGlobalClass: true,\n },\n\n relations: {\n '../checkbox/index': {\n type: 'descendant',\n linked() {\n this._updateChildren()\n },\n unlinked() {\n this._updateChildren()\n }\n }\n },\n\n properties: {\n max: Number,\n round: {\n type: Boolean,\n value: false\n },\n value: {\n type: Array,\n observer: '_updateChildren'\n },\n disabled: {\n type: Boolean,\n observer: '_updateChildren'\n },\n checkedColor: {\n type: String,\n value: ''\n },\n labelLeft: {\n type: Boolean,\n value: false\n },\n },\n\n methods: {\n _updateChildren() {\n\n // 防抖减少重复触发\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = null\n }\n\n this.timer = setTimeout(() => {\n\n let children = this.getRelationNodes('../checkbox/index')\n const len = children.length\n\n if (len > 0) {\n // let lastIndex = len - 1\n\n children.forEach((child, index) => {\n this._updateChild(child)\n })\n }\n }, 60)\n },\n\n _updateChild(child) {\n const {\n checkedColor,\n value,\n labelLeft,\n disabled\n } = this.data\n\n child.setData({\n value: value.indexOf(child.data.name) > -1,\n checkedColor: child.data.checkedColor || checkedColor,\n labelLeft: child.data.labelLeft || labelLeft,\n disabled: disabled || child.data.disabled,\n round: this.data.round || child.data.round,\n prevent: this.data.max && value.length >= this.data.max\n })\n }\n }\n})\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-checkbox-group/index.js"],"names":["Component","options","addGlobalClass","relations","type","linked","_updateChildren","unlinked","properties","max","Number","round","Boolean","value","Array","observer","disabled","checkedColor","String","labelLeft","methods","timer","clearTimeout","setTimeout","children","getRelationNodes","len","length","forEach","child","index","_updateChild","data","setData","indexOf","name","prevent"],"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,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,aAAW;AACT,yBAAqB;AACnBC,YAAM,YADa;AAEnBC,YAFmB,oBAEV;AACP,aAAKC,eAAL;AACD,OAJkB;AAKnBC,cALmB,sBAKR;AACT,aAAKD,eAAL;AACD;AAPkB;AADZ,GALH;;AAiBRE,cAAY;AACVC,SAAKC,MADK;AAEVC,WAAO;AACLP,YAAMQ,OADD;AAELC,aAAO;AAFF,KAFG;AAMVA,WAAO;AACLT,YA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AMG,IAAN,CAAWrB,KALzB;AAMZyB,iBAAS,KAAKJ,IAAL,CAAUvB,GAAV,IAAiBI,MAAMc,MAAN,IAAgB,KAAKK,IAAL,CAAUvB;AANxC,OAAd;AAQD;AAxCM;AAzCD,CAAV,E","file":"bld-checkbox-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 = 52);\n","Component({\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n relations: {\r\n '../checkbox/index': {\r\n type: 'descendant',\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 max: Number,\r\n round: {\r\n type: Boolean,\r\n value: false\r\n },\r\n value: {\r\n type: Array,\r\n observer: '_updateChildren'\r\n },\r\n disabled: {\r\n type: Boolean,\r\n observer: '_updateChildren'\r\n },\r\n checkedColor: {\r\n type: String,\r\n value: ''\r\n },\r\n labelLeft: {\r\n type: Boolean,\r\n value: false\r\n },\r\n },\r\n\r\n methods: {\r\n _updateChildren() {\r\n\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\r\n let children = this.getRelationNodes('../checkbox/index')\r\n const len = children.length\r\n\r\n if (len > 0) {\r\n // let lastIndex = len - 1\r\n\r\n children.forEach((child, index) => {\r\n this._updateChild(child)\r\n })\r\n }\r\n }, 60)\r\n },\r\n\r\n _updateChild(child) {\r\n const {\r\n checkedColor,\r\n value,\r\n labelLeft,\r\n disabled\r\n } = this.data\r\n\r\n child.setData({\r\n value: value.indexOf(child.data.name) > -1,\r\n checkedColor: child.data.checkedColor || checkedColor,\r\n labelLeft: child.data.labelLeft || labelLeft,\r\n disabled: disabled || child.data.disabled,\r\n round: this.data.round || child.data.round,\r\n prevent: this.data.max && value.length >= this.data.max\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 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-cloud-image/index.js"],"names":["CLOUD_PROVIDERS","myqcloud","aliyun","Component","externalClasses","properties","src","type","String","value","mode","provider","showMenuByLongpress","Boolean","thumbnail","fadeIn","data","fullSrc","loading","observers","startsWith","includes","setData","methods","loaded","e"],"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;;;;;;;;;;;AClFA,IAAMA,kBAAkB;AACtBC,YAAU,kEADY;AAEtBC,UAAQ;AAFc,CAAxB;;AAKAC,UAAU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cesContent":[" \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 = 1);\n","const CLOUD_PROVIDERS = {\n myqcloud: \"https://bloodcare-1251596343.cos.ap-shanghai.myqcloud.com/assets\",\n aliyun: \"https://bulade-donate.oss-cn-beijing.aliyuncs.com/img\",\n};\n\nComponent({\n externalClasses: [\"iclass\"],\n properties: {\n src: {\n type: String,\n value: \"\",\n },\n mode: {\n type: String,\n value: \"\",\n },\n provider: {\n type: String,\n value: \"myqcloud\",\n },\n showMenuByLongpress: {\n type: Boolean,\n value: false,\n },\n thumbnail: {\n type: String,\n value: \"800x800\",\n },\n fadeIn: {\n type: Boolean,\n value: false,\n },\n },\n\n data: {\n fullSrc: \"\",\n loading: true,\n },\n\n observers: {\n src: function (src) {\n if (!src) {\n return;\n }\n\n let fullSrc = \"\";\n if (src.startsWith(\"http\")) {\n fullSrc = src;\n } else {\n fullSrc = `${CLOUD_PROVIDERS[this.data.provider]}/${src}`;\n }\n\n if (fullSrc.includes(\".cos.ap-shanghai.myqcloud.com\")) {\n fullSrc = `${fullSrc}?imageMogr2/format/webp`;\n\n if (this.data.thumbnail) {\n fullSrc = `${fullSrc}/thumbnail/${this.data.thumbnail}`;\n }\n }\n\n if (this.data.fullSrc === fullSrc) {\n return;\n }\n\n this.setData({\n loading: true,\n fullSrc,\n });\n },\n },\n\n methods: {\n loaded: function (e) {\n this.setData({\n loading: false,\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-cloud-image/index.js"],"names":["CLOUD_PROVIDERS","myqcloud","aliyun","Component","externalClasses","properties","src","type","String","value","mode","provider","showMenuByLongpress","Boolean","thumbnail","fadeIn","data","fullSrc","loading","observers","startsWith","includes","setData","methods","loaded","e"],"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;;;;;;;;;;;AClFA,IAAMA,kBAAkB;AACtBC,YAAU,kEADY;AAEtBC,UAAQ;AAFc,CAAxB;;AAKAC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,SAAK;AACHC,YAAMC,MADH;AAEHC,aAAO;AAFJ,KADK;AAKVC,UAAM;AACJH,YAAMC,MADF;AAEJC,aAAO;AAFH,KALI;AASVE,cAAU;AACRJ,YAAMC,MADE;AAERC,aAAO;AAFC,KATA;AAaVG,yBAAqB;AACnBL,YAAMM,OADa;AAEnBJ,aAAO;AAFY,KAbX;AAiBVK,eAAW;AACTP,YAAMC,MADG;AAETC,aAAO;AAFE,KAjBD;AAqBVM,YAAQ;AACNR,YAAMM,OADA;AAENJ,aAAO;AAFD;AArBE,GAFJ;;AA6BRO,QAAM;AACJC,aAAS,EADL;AAEJC,aAAS;AAFL,GA7BE;;AAkCRC,aAAW;AACTb,SAAK,aAAUA,IAAV,EAAe;AAClB,UAAI,CAACA,IAAL,EAAU;AACR;AACD;;AAED,UAAIW,UAAU,EAAd;AACA,UAAIX,KAAIc,UAAJ,CAAe,MAAf,CAAJ,EAA4B;AAC1BH,kBAAUX,IAAV;AACD,OAFD,MAEO;AACLW,kBAAajB,gBAAgB,KAAKgB,IAAL,CAAUL,QAA1B,CAAb,SAAoDL,IAApD;AACD;;AAED,UAAIW,QAAQI,QAAR,CAAiB,+BAAjB,CAAJ,EAAuD;AACrDJ,kBAAaA,OAAb;;AAEA,YAAI,KAAKD,IAAL,CAAUF,SAAd,EAAyB;AACvBG,oBAAaA,OAAb,mBAAkC,KAAKD,IAAL,CAAUF,SAA5C;AACD;AACF;;AAED,UAAI,KAAKE,IAAL,CAAUC,OAAV,KAAsBA,OAA1B,EAAmC;AACjC;AACD;;AAED,WAAKK,OAAL,CAAa;AACXJ,iBAAS,IADE;AAEXD;AAFW,OAAb;AAID;AA7BQ,GAlCH;;AAkERM,WAAS;AACPC,YAAQ,gBAAUC,CAAV,EAAa;AACnB,WAAKH,OAAL,CAAa;AACXJ,iBAAS;AADE,OAAb;AAGD;AALM;AAlED,CAAV,E","file":"bld-cloud-image\\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 = 1);\n","const CLOUD_PROVIDERS = {\r\n myqcloud: \"https://bloodcare-1251596343.cos.ap-shanghai.myqcloud.com/assets\",\r\n aliyun: \"https://bulade-donate.oss-cn-beijing.aliyuncs.com/img\",\r\n};\r\n\r\nComponent({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n src: {\r\n type: String,\r\n value: \"\",\r\n },\r\n mode: {\r\n type: String,\r\n value: \"\",\r\n },\r\n provider: {\r\n type: String,\r\n value: \"myqcloud\",\r\n },\r\n showMenuByLongpress: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n thumbnail: {\r\n type: String,\r\n value: \"800x800\",\r\n },\r\n fadeIn: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n },\r\n\r\n data: {\r\n fullSrc: \"\",\r\n loading: true,\r\n },\r\n\r\n observers: {\r\n src: function (src) {\r\n if (!src) {\r\n return;\r\n }\r\n\r\n let fullSrc = \"\";\r\n if (src.startsWith(\"http\")) {\r\n fullSrc = src;\r\n } else {\r\n fullSrc = `${CLOUD_PROVIDERS[this.data.provider]}/${src}`;\r\n }\r\n\r\n if (fullSrc.includes(\".cos.ap-shanghai.myqcloud.com\")) {\r\n fullSrc = `${fullSrc}?imageMogr2/format/webp`;\r\n\r\n if (this.data.thumbnail) {\r\n fullSrc = `${fullSrc}/thumbnail/${this.data.thumbnail}`;\r\n }\r\n }\r\n\r\n if (this.data.fullSrc === fullSrc) {\r\n return;\r\n }\r\n\r\n this.setData({\r\n loading: true,\r\n fullSrc,\r\n });\r\n },\r\n },\r\n\r\n methods: {\r\n loaded: function (e) {\r\n this.setData({\r\n loading: false,\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
1
+ {
2
+ "component": true
3
3
  }
@@ -1,14 +1,14 @@
1
- <image
2
- wx:if="{{ fullSrc }}"
3
- class="iclass"
4
- src="{{ fullSrc }}"
5
- webp
6
- mode="{{ mode }}"
7
- show-menu-by-longpress="{{ showMenuByLongpress }}"
8
- bind:load="loaded"
9
- fade-in="{{ fadeIn }}"
10
- />
11
- <view
12
- wx:else
13
- class="img iclass"
14
- />
1
+ <image
2
+ wx:if="{{ fullSrc }}"
3
+ class="iclass"
4
+ src="{{ fullSrc }}"
5
+ webp
6
+ mode="{{ mode }}"
7
+ show-menu-by-longpress="{{ showMenuByLongpress }}"
8
+ bind:load="loaded"
9
+ fade-in="{{ fadeIn }}"
10
+ />
11
+ <view
12
+ wx:else
13
+ class="img iclass"
14
+ />
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-collapse/index.js"],"names":["Component","options","addGlobalClass","properties","duration","type","Number","value","visible","Boolean","data","contentHeight","isReady","observers","val","getContainerHeight","setData","lifetimes","ready","methods","query","createSelectorQuery","select","boundingClientRect","exec","res","height","onTransitionEnd","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,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,cAAY;AACVC,cAAU;AACRC,YAAMC,MADE;AAERC,aAAO;AAFC,KADA;AAKVC,aAAS;AACPH,YAAMI,OADC;AAEPF,aAAO;AAFA;AALC,GALJ;;AAgBRG,QAAM;AACJC,mBAAe,CADX,EACgB;AACpBC,aAAS;AAFL,GAhBE;;AAqBRC,aAAW;AACTL,WADS,mBACDM,GADC,EACI;AACX,UAAIA,OAAO,KAAKJ,IAAL,CAAUE,OAArB,EAA8B;AAC5B,aAAKG,kBAAL;AACD,OAFD,MAEO;AACL,aAAKC,OAAL,CAAa;AACXL,yBAAe;AADJ,SAAb;AAGD;AACF;AATQ,GArBH;;AAiCRM,aAAW;AACTC,SADS,mBACD;AACN,WAAKR,IAAL,CAAUE,OAAV,GAAoB,IAApB;;AAEA,UAAI,KAAKF,IAAL,CAAUF,OAAd,EAAuB;AACrB,aAAKO,kBAAL;AACD;AACF;AAPQ,GAjCH;;AA2CRI,WAAS;AACPJ,sBADO,gCACc;AAAA;;AACnB,UAAMK,QAAQ,KAAKC,mBAAL,EAAd;AACAD,YAAME,MAAN,CAAa,sBAAb,EAAqCC,kBAArC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMb,gBAAgBc,IAAI,CAAJ,EAAOC,MAA7B;;AAEA,cAAKV,OAAL,CAAa;AACXL;AADW,SAAb;AAGD,OAND;AAOD,KAZM;AAcPgB,mBAdO,6BAcW;AAChB,WAAKC,YAAL,CAAkB,WAAlB,EAA+B,KAAKlB,IAAL,CAAUF,OAAzC;AACD;AAhBM;AA3CD,CAAV,E","file":"bld-collapse/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 = 48);\n","Component({\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n duration: {\n type: Number,\n value: 300\n },\n visible: {\n type: Boolean,\n value: false\n }\n },\n\n data: {\n contentHeight: 0, // 内容区域高度\n isReady: false\n },\n\n observers: {\n visible(val) {\n if (val && this.data.isReady) {\n this.getContainerHeight()\n } else {\n this.setData({\n contentHeight: 0\n })\n }\n }\n },\n\n lifetimes: {\n ready() {\n this.data.isReady = true\n\n if (this.data.visible) {\n this.getContainerHeight()\n }\n }\n },\n\n methods: {\n getContainerHeight() {\n const query = this.createSelectorQuery()\n query.select('.m-collapse__content').boundingClientRect()\n\n query.exec(res => {\n const contentHeight = res[0].height\n\n this.setData({\n contentHeight\n })\n })\n },\n\n onTransitionEnd() {\n this.triggerEvent('on-change', this.data.visible)\n }\n }\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-collapse/index.js"],"names":["Component","options","addGlobalClass","properties","duration","type","Number","value","visible","Boolean","data","contentHeight","isReady","observers","val","getContainerHeight","setData","lifetimes","ready","methods","query","createSelectorQuery","select","boundingClientRect","exec","res","height","onTransitionEnd","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,WAAS;AACPC,oBAAgB;AADT,GADD;;AAKRC,cAAY;AACVC,cAAU;AACRC,YAAMC,MADE;AAERC,aAAO;AAFC,KADA;AAKVC,aAAS;AACPH,YAAMI,OADC;AAEPF,aAAO;AAFA;AALC,GALJ;;AAgBRG,QAAM;AACJC,mBAAe,CADX,EACgB;AACpBC,aAAS;AAFL,GAhBE;;AAqBRC,aAAW;AACTL,WADS,mBACDM,GADC,EACI;AACX,UAAIA,OAAO,KAAKJ,IAAL,CAAUE,OAArB,EAA8B;AAC5B,aAAKG,kBAAL;AACD,OAFD,MAEO;AACL,aAAKC,OAAL,CAAa;AACXL,yBAAe;AADJ,SAAb;AAGD;AACF;AATQ,GArBH;;AAiCRM,aAAW;AACTC,SADS,mBACD;AACN,WAAKR,IAAL,CAAUE,OAAV,GAAoB,IAApB;;AAEA,UAAI,KAAKF,IAAL,CAAUF,OAAd,EAAuB;AACrB,aAAKO,kBAAL;AACD;AACF;AAPQ,GAjCH;;AA2CRI,WAAS;AACPJ,sBADO,gCACc;AAAA;;AACnB,UAAMK,QAAQ,KAAKC,mBAAL,EAAd;AACAD,YAAME,MAAN,CAAa,sBAAb,EAAqCC,kBAArC;;AAEAH,YAAMI,IAAN,CAAW,eAAO;AAChB,YAAMb,gBAAgBc,IAAI,CAAJ,EAAOC,MAA7B;;AAEA,cAAKV,OAAL,CAAa;AACXL;AADW,SAAb;AAGD,OAND;AAOD,KAZM;AAcPgB,mBAdO,6BAcW;AAChB,WAAKC,YAAL,CAAkB,WAAlB,EAA+B,KAAKlB,IAAL,CAAUF,OAAzC;AACD;AAhBM;AA3CD,CAAV,E","file":"bld-collapse\\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 = 48);\n","Component({\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n duration: {\r\n type: Number,\r\n value: 300\r\n },\r\n visible: {\r\n type: Boolean,\r\n value: false\r\n }\r\n },\r\n\r\n data: {\r\n contentHeight: 0, // 内容区域高度\r\n isReady: false\r\n },\r\n\r\n observers: {\r\n visible(val) {\r\n if (val && this.data.isReady) {\r\n this.getContainerHeight()\r\n } else {\r\n this.setData({\r\n contentHeight: 0\r\n })\r\n }\r\n }\r\n },\r\n\r\n lifetimes: {\r\n ready() {\r\n this.data.isReady = true\r\n\r\n if (this.data.visible) {\r\n this.getContainerHeight()\r\n }\r\n }\r\n },\r\n\r\n methods: {\r\n getContainerHeight() {\r\n const query = this.createSelectorQuery()\r\n query.select('.m-collapse__content').boundingClientRect()\r\n\r\n query.exec(res => {\r\n const contentHeight = res[0].height\r\n\r\n this.setData({\r\n contentHeight\r\n })\r\n })\r\n },\r\n\r\n onTransitionEnd() {\r\n this.triggerEvent('on-change', this.data.visible)\r\n }\r\n }\r\n});\r\n"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,9 +1,9 @@
1
- <view
2
- class="m-collapse"
3
- style="height: {{ contentHeight }}px; transition-duration: {{ duration }}ms;"
4
- bind:transitionend="onTransitionEnd"
5
- >
6
- <view class="m-collapse__content">
7
- <slot />
8
- </view>
1
+ <view
2
+ class="m-collapse"
3
+ style="height: {{ contentHeight }}px; transition-duration: {{ duration }}ms;"
4
+ bind:transitionend="onTransitionEnd"
5
+ >
6
+ <view class="m-collapse__content">
7
+ <slot />
8
+ </view>
9
9
  </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-dialog-tip/index.js"],"names":["Component","properties","show","type","Boolean","value","cfgInfo","Object","hideBtn","bgIsClose","content","String","contentStyle","title","text","showBg","style","cancel","confirm","data","observers","methods","handleClose","setData","triggerEvent","handleConfirm"],"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;;;;;;;;;;;AClFA;AACAA,UAAU;AACRC,cAAY;AACVC,UAAM;AACJC,YAAMC,OADF;AAEJC,aAAO;AAFH,KADI;AAKV;AACAC,aAAS;AACPH,YAAMI,MADC;AAEPF,aAAO;AACLG,iBAAS,KADJ,EACW;AAChBC,mBAAW,KAFN,CAEa;AAFb;AAFA,KANC;AAaVC,aAAS;AACPP,YAAMQ;AADC,KAbC;AAgBVC,kBAAc;AACZT,YAAMQ;AADM,KAhBJ;AAmBVE,WAAO;AACLV,YAAMI,MADD;AAELF,aAAO;AACLS,cAAM,MADD;AAELC,gBAAQ,IAFH;AAGLC,eAAO;AAHF;AAFF,KAnBG;AA2BVC,YAAQ;AACNd,YAAMI,MADA;AAENF,aAAO;AACLH,cAAM,IADD;AAELY,cAAM,IAFD;AAGLE,eAAO;AAHF;AAFD,KA3BE;AAmCVE,aAAS;AACPf,YAAMI,MADC;AAEPF,aAAO;AACLH,cAAM,IADD;AAELY,cAAM,IAFD;AAGLE,eAAO;AAHF;AAFA;AAnCC,GADJ;AA6CRG,QAAM,EA7CE;AA8CRC,aAAW,EA9CH;AA+CRC,WAAS;AACPC,eADO,yBACO;AACZ,WAAKC,OAAL,CAAa;AACXrB,cAAM;AADK,OAAb;AAGA,WAAKsB,YAAL,CAAkB,OAAlB;AACD,KANM;AAOPC,iBAPO,2BAOS;AACd,WAAKD,YAAL,CAAkB,SAAlB;AACD;AATM;AA/CD,CAAV,E","file":"bld-dialog-tip/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 = 30);\n","// 温馨提示弹层\nComponent({\n properties: {\n show: {\n type: Boolean,\n value: false,\n },\n // 同bld-pop-up一致\n cfgInfo: {\n type: Object,\n value: {\n hideBtn: false, // 隐藏关闭按钮\n bgIsClose: false, // 背景是否可关闭\n },\n },\n content: {\n type: String,\n },\n contentStyle: {\n type: String,\n },\n title: {\n type: Object,\n value: {\n text: \"温馨提示\",\n showBg: true,\n style: \"\",\n }\n },\n cancel: {\n type: Object,\n value: {\n show: true,\n text: \"取消\",\n style: \"\",\n }\n },\n confirm: {\n type: Object,\n value: {\n show: true,\n text: \"确认\",\n style: \"\",\n }\n }\n },\n data: {},\n observers: {},\n methods: {\n handleClose() {\n this.setData({\n show: false,\n });\n this.triggerEvent(\"close\");\n },\n handleConfirm() {\n this.triggerEvent(\"confirm\");\n }\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-dialog-tip/index.js"],"names":["Component","properties","show","type","Boolean","value","cfgInfo","Object","hideBtn","bgIsClose","content","String","contentStyle","title","text","showBg","style","cancel","confirm","data","observers","methods","handleClose","setData","triggerEvent","handleConfirm"],"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;;;;;;;;;;;AClFA;AACAA,UAAU;AACRC,cAAY;AACVC,UAAM;AACJC,YAAMC,OADF;AAEJC,aAAO;AAFH,KADI;AAKV;AACAC,aAAS;AACPH,YAAMI,MADC;AAEPF,aAAO;AACLG,iBAAS,KADJ,EACW;AAChBC,mBAAW,KAFN,CAEa;AAFb;AAFA,KANC;AAaVC,aAAS;AACPP,YAAMQ;AADC,KAbC;AAgBVC,kBAAc;AACZT,YAAMQ;AADM,KAhBJ;AAmBVE,WAAO;AACLV,YAAMI,MADD;AAELF,aAAO;AACLS,cAAM,MADD;AAELC,gBAAQ,IAFH;AAGLC,eAAO;AAHF;AAFF,KAnBG;AA2BVC,YAAQ;AACNd,YAAMI,MADA;AAENF,aAAO;AACLH,cAAM,IADD;AAELY,cAAM,IAFD;AAGLE,eAAO;AAHF;AAFD,KA3BE;AAmCVE,aAAS;AACPf,YAAMI,MADC;AAEPF,aAAO;AACLH,cAAM,IADD;AAELY,cAAM,IAFD;AAGLE,eAAO;AAHF;AAFA;AAnCC,GADJ;AA6CRG,QAAM,EA7CE;AA8CRC,aAAW,EA9CH;AA+CRC,WAAS;AACPC,eADO,yBACO;AACZ,WAAKC,OAAL,CAAa;AACXrB,cAAM;AADK,OAAb;AAGA,WAAKsB,YAAL,CAAkB,OAAlB;AACD,KANM;AAOPC,iBAPO,2BAOS;AACd,WAAKD,YAAL,CAAkB,SAAlB;AACD;AATM;AA/CD,CAAV,E","file":"bld-dialog-tip\\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 = 30);\n","// 温馨提示弹层\r\nComponent({\r\n properties: {\r\n show: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n // 同bld-pop-up一致\r\n cfgInfo: {\r\n type: Object,\r\n value: {\r\n hideBtn: false, // 隐藏关闭按钮\r\n bgIsClose: false, // 背景是否可关闭\r\n },\r\n },\r\n content: {\r\n type: String,\r\n },\r\n contentStyle: {\r\n type: String,\r\n },\r\n title: {\r\n type: Object,\r\n value: {\r\n text: \"温馨提示\",\r\n showBg: true,\r\n style: \"\",\r\n }\r\n },\r\n cancel: {\r\n type: Object,\r\n value: {\r\n show: true,\r\n text: \"取消\",\r\n style: \"\",\r\n }\r\n },\r\n confirm: {\r\n type: Object,\r\n value: {\r\n show: true,\r\n text: \"确认\",\r\n style: \"\",\r\n }\r\n }\r\n },\r\n data: {},\r\n observers: {},\r\n methods: {\r\n handleClose() {\r\n this.setData({\r\n show: false,\r\n });\r\n this.triggerEvent(\"close\");\r\n },\r\n handleConfirm() {\r\n this.triggerEvent(\"confirm\");\r\n }\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "bld-pop-up": "../bld-pop-up/index"
5
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-pop-up": "../bld-pop-up/index"
5
+ }
6
6
  }
@@ -1,24 +1,24 @@
1
- <bld-pop-up show="{{ show }}" cfgInfo="{{cfgInfo}}" bindclosePopUp="handleClose">
2
- <view class="tip-box">
3
- <view class="tip-title-bg" wx:if="{{ title.showBg }}"></view>
4
- <view class="tip-title" wx:if="{{title.text}}" style="{{ title.style }}">{{ title.text }}</view>
5
- <slot />
6
- <view class="tip-content" wx:if="{{content}}" style="{{ contentStyle }}">
7
- <slot name="content"></slot>
8
- {{ content }}
9
- </view>
10
- <view class="tip-btn-box">
11
- <slot name="btn"></slot>
12
- <view
13
- wx:if="{{ cancel.show }}"
14
- class="tip-btn-cancel"
15
- bind:tap="handleClose"
16
- >{{ cancel.text }}</view>
17
- <view
18
- wx:if="{{ confirm.show }}"
19
- class="tip-btn-confirm"
20
- bind:tap="handleConfirm"
21
- >{{ confirm.text }}</view>
22
- </view>
23
- </view>
1
+ <bld-pop-up show="{{ show }}" cfgInfo="{{cfgInfo}}" bindclosePopUp="handleClose">
2
+ <view class="tip-box">
3
+ <view class="tip-title-bg" wx:if="{{ title.showBg }}"></view>
4
+ <view class="tip-title" wx:if="{{title.text}}" style="{{ title.style }}">{{ title.text }}</view>
5
+ <slot />
6
+ <view class="tip-content" wx:if="{{content}}" style="{{ contentStyle }}">
7
+ <slot name="content"></slot>
8
+ {{ content }}
9
+ </view>
10
+ <view class="tip-btn-box">
11
+ <slot name="btn"></slot>
12
+ <view
13
+ wx:if="{{ cancel.show }}"
14
+ class="tip-btn-cancel"
15
+ bind:tap="handleClose"
16
+ >{{ cancel.text }}</view>
17
+ <view
18
+ wx:if="{{ confirm.show }}"
19
+ class="tip-btn-confirm"
20
+ bind:tap="handleConfirm"
21
+ >{{ confirm.text }}</view>
22
+ </view>
23
+ </view>
24
24
  </bld-pop-up>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-drawer/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","visible","type","Boolean","value","zIndex","Number","mask","maskClosable","position","String","methods","handleMaskClick","data","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,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,aAAS;AACPC,YAAMC,OADC;AAEPC,aAAO;AAFA,KADC;;AAMVC,YAAQ;AACNH,YAAMI,MADA;AAENF,aAAO;AAFD,KANE;;AAWVG,UAAM;AACJL,YAAMC,OADF;AAEJC,aAAO;AAFH,KAXI;;AAgBVI,kBAAc;AACZN,YAAMC,OADM;AAEZC,aAAO;AAFK,KAhBJ;;AAqBVK,cAAU;AACRP,YAAMQ,MADE;AAERN,aAAO,QAFC,CAEQ;AAFR;AArBA,GAPJ;;AAkCRO,WAAS;AACPC,mBADO,6BACW;AAChB,UAAI,CAAC,KAAKC,IAAL,CAAUL,YAAf,EAA6B;AAC7B,WAAKM,YAAL,CAAkB,OAAlB;AACD;AAJM;AAlCD,CAAV,E","file":"bld-drawer/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 = 39);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n visible: {\n type: Boolean,\n value: false\n },\n\n zIndex: {\n type: Number,\n value: 9\n },\n\n mask: {\n type: Boolean,\n value: true\n },\n\n maskClosable: {\n type: Boolean,\n value: true\n },\n\n position: {\n type: String,\n value: 'bottom' // left right top bottom\n }\n },\n\n methods: {\n handleMaskClick() {\n if (!this.data.maskClosable) return\n this.triggerEvent('close')\n }\n }\n});"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-drawer/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","visible","type","Boolean","value","zIndex","Number","mask","maskClosable","position","String","methods","handleMaskClick","data","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,mBAAiB,CAAC,cAAD,CADT;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,aAAS;AACPC,YAAMC,OADC;AAEPC,aAAO;AAFA,KADC;;AAMVC,YAAQ;AACNH,YAAMI,MADA;AAENF,aAAO;AAFD,KANE;;AAWVG,UAAM;AACJL,YAAMC,OADF;AAEJC,aAAO;AAFH,KAXI;;AAgBVI,kBAAc;AACZN,YAAMC,OADM;AAEZC,aAAO;AAFK,KAhBJ;;AAqBVK,cAAU;AACRP,YAAMQ,MADE;AAERN,aAAO,QAFC,CAEQ;AAFR;AArBA,GAPJ;;AAkCRO,WAAS;AACPC,mBADO,6BACW;AAChB,UAAI,CAAC,KAAKC,IAAL,CAAUL,YAAf,EAA6B;AAC7B,WAAKM,YAAL,CAAkB,OAAlB;AACD;AAJM;AAlCD,CAAV,E","file":"bld-drawer\\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 = 39);\n","Component({\r\n externalClasses: ['custom-class'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n visible: {\r\n type: Boolean,\r\n value: false\r\n },\r\n\r\n zIndex: {\r\n type: Number,\r\n value: 9\r\n },\r\n\r\n mask: {\r\n type: Boolean,\r\n value: true\r\n },\r\n\r\n maskClosable: {\r\n type: Boolean,\r\n value: true\r\n },\r\n\r\n position: {\r\n type: String,\r\n value: 'bottom' // left right top bottom\r\n }\r\n },\r\n\r\n methods: {\r\n handleMaskClick() {\r\n if (!this.data.maskClosable) return\r\n this.triggerEvent('close')\r\n }\r\n }\r\n});"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,14 +1,14 @@
1
- <view class="custom-class m-drawer {{ visible ? 'm-drawer--show' : '' }} {{ 'm-drawer--' + position }}">
2
- <view
3
- wx:if="{{ mask }}"
4
- class="m-drawer__mask"
5
- style="z-index: {{zIndex}}"
6
- bindtap="handleMaskClick"
7
- ></view>
8
- <view
9
- class="m-drawer__content"
10
- style="z-index: {{zIndex}}"
11
- >
12
- <slot />
13
- </view>
1
+ <view class="custom-class m-drawer {{ visible ? 'm-drawer--show' : '' }} {{ 'm-drawer--' + position }}">
2
+ <view
3
+ wx:if="{{ mask }}"
4
+ class="m-drawer__mask"
5
+ style="z-index: {{zIndex}}"
6
+ bindtap="handleMaskClick"
7
+ ></view>
8
+ <view
9
+ class="m-drawer__content"
10
+ style="z-index: {{zIndex}}"
11
+ >
12
+ <slot />
13
+ </view>
14
14
  </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-empty-page/index.js"],"names":["app","getApp","Component","externalClasses","properties","content","type","String","value","imageSrc","padding","showImage","Boolean"],"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;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEAC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,aAAS;AACPC,YAAMC,MADC;AAEPC,aAAO;AAFA,KADC;AAKVC,cAAU;AACRH,YAAMC,MADE;AAERC,aAAO;AAFC,KALA;AASVE,aAAS;AACPJ,YAAMC,MADC;AAEPC,aAAO;AAFA,KATC;AAaVG,eAAW;AACTL,YAAMM,OADG;AAETJ,aAAO;AAFE;AAbD;AAFJ,CAAV,E","file":"bld-empty-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 = 29);\n","const app = getApp();\n\nComponent({\n externalClasses: [\"iclass\"],\n properties: {\n content: {\n type: String,\n value: \"这里什么都没有\",\n },\n imageSrc: {\n type: String,\n value: \"empty/empty-default.png\",\n },\n padding: {\n type: String,\n value: \"40% 0\",\n },\n showImage: {\n type: Boolean,\n value: true,\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-empty-page/index.js"],"names":["app","getApp","Component","externalClasses","properties","content","type","String","value","imageSrc","padding","showImage","Boolean"],"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;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEAC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,aAAS;AACPC,YAAMC,MADC;AAEPC,aAAO;AAFA,KADC;AAKVC,cAAU;AACRH,YAAMC,MADE;AAERC,aAAO;AAFC,KALA;AASVE,aAAS;AACPJ,YAAMC,MADC;AAEPC,aAAO;AAFA,KATC;AAaVG,eAAW;AACTL,YAAMM,OADG;AAETJ,aAAO;AAFE;AAbD;AAFJ,CAAV,E","file":"bld-empty-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 = 29);\n","const app = getApp();\r\n\r\nComponent({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n content: {\r\n type: String,\r\n value: \"这里什么都没有\",\r\n },\r\n imageSrc: {\r\n type: String,\r\n value: \"empty/empty-default.png\",\r\n },\r\n padding: {\r\n type: String,\r\n value: \"40% 0\",\r\n },\r\n showImage: {\r\n type: Boolean,\r\n value: true,\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
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-cloud-image": "../bld-cloud-image/index"
5
+ }
6
6
  }
@@ -1,11 +1,11 @@
1
- <view
2
- class="empty iclass"
3
- style="padding: {{ padding }}"
4
- >
5
- <bld-cloud-image
6
- wx:if="{{ showImage }}"
7
- iclass="img iclass"
8
- src="{{ imageSrc }}"
9
- />
10
- <text>{{ content }}</text>
11
- </view>
1
+ <view
2
+ class="empty iclass"
3
+ style="padding: {{ padding }}"
4
+ >
5
+ <bld-cloud-image
6
+ wx:if="{{ showImage }}"
7
+ iclass="img iclass"
8
+ src="{{ imageSrc }}"
9
+ />
10
+ <text>{{ content }}</text>
11
+ </view>
@@ -170,8 +170,20 @@ Component({
170
170
  for (var _i = 1; _i <= 12; _i++) {
171
171
  months.push(_i);
172
172
  }
173
-
174
- for (var _i2 = 1; _i2 <= 31; _i2++) {
173
+ var daysLength = 31;
174
+ if (value) {
175
+ var valueDates = new Date(value.replace(/-/g, "/"));
176
+ var valueYear = valueDates.getFullYear();
177
+ var valueMonth = valueDates.getMonth();
178
+ if ([3, 5, 8, 10].includes(valueMonth)) {
179
+ daysLength = 30;
180
+ } else if (valueYear % 4 == 0 && valueYear % 100 !== 0 || valueYear % 400 === 0) {
181
+ daysLength = 29;
182
+ } else {
183
+ daysLength = 28;
184
+ }
185
+ }
186
+ for (var _i2 = 1; _i2 <= daysLength; _i2++) {
175
187
  days.push(_i2);
176
188
  }
177
189
  this.setData({
@@ -180,14 +192,14 @@ Component({
180
192
  days: days
181
193
  });
182
194
  if (value) {
183
- var valueDates = new Date(value.replace(/-/g, "/"));
184
- var valueYear = valueDates.getFullYear() - 1925;
185
- var valueMonth = valueDates.getMonth();
186
- var valueDate = valueDates.getDate() - 1;
195
+ var _valueDates = new Date(value.replace(/-/g, "/"));
196
+ var _valueYear = _valueDates.getFullYear() - 1925;
197
+ var _valueMonth = _valueDates.getMonth();
198
+ var valueDate = _valueDates.getDate() - 1;
187
199
 
188
200
  this.setData({
189
- selectValue: [valueYear, valueMonth, valueDate],
190
- text: this.data.years[valueYear] + "年" + this.data.months[valueMonth] + "月" + this.data.days[valueDate] + "日"
201
+ selectValue: [_valueYear, _valueMonth, valueDate],
202
+ text: this.data.years[_valueYear] + "年" + this.data.months[_valueMonth] + "月" + this.data.days[valueDate] + "日"
191
203
  });
192
204
  } else {
193
205
  this.setData({
@@ -241,7 +253,7 @@ Component({
241
253
  if (val[2] > 29) {
242
254
  this.setDay(29);
243
255
  }
244
- } else if (this.data.years[val[0]] % 4 == 0) {
256
+ } else if (this.data.years[val[0]] % 4 == 0 && this.data.years[val[0]] % 100 !== 0 || this.data.years[val[0]] % 400 === 0) {
245
257
  this.setDays(29);
246
258
  if (val[2] > 28) {
247
259
  this.setDay(28);
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-date/index.js"],"names":["nowDate","date","Date","years","getFullYear","months","getMonth","days","getDate","Component","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","min","max","data","year","month","day","showActionsheet","selectValue","text","observers","initDate","lifetimes","ready","methods","i","push","setData","valueDates","replace","valueYear","valueMonth","valueDate","showSellect","handelChoose","compareSize","toString","padStart","bindChange","e","val","detail","includes","setDays","setDay","Number","wx","showToast","title","icon","setMonth","maxDay"],"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;;;;;;;;;;;AClFA,SAASA,OAAT,GAAmB;AACjB,MAAMC,OAAO,IAAIC,IAAJ,EAAb;AACA,MAAMC,QAAQF,KAAKG,WAAL,KAAqB,IAAnC;AACA,MAAMC,SAASJ,KAAKK,QAAL,EAAf;AACA,MAAMC,OAAON,KAAKO,OAAL,KAAiB,CAA9B;AACA,SAAO,CAACL,KAAD,EAAQE,MAAR,EAAgBE,IAAhB,CAAP;AACD;AACDE,UAAU;AACRC,mBAAiB,CAAC,WAAD,EAAc,YAAd,EAA4B,YAA5B,EAA0C,aAA1C,CADT;AAERC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,a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IAO,MA3IA,EA2IQ;AACb,UAAMjC,cAAc,KAAKL,IAAL,CAAUK,WAA9B;;AAEAA,kBAAY,CAAZ,IAAiBiC,MAAjB;AACA,WAAKxB,OAAL,CAAa;AACXT,qBAAaA;AADF,OAAb;AAGD;AAlJM;AAvDD,CAAV,E","file":"bld-form/bld-form-item/bld-form-date/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 = 13);\n","function nowDate() {\n const date = new Date();\n const years = date.getFullYear() - 1925;\n const months = date.getMonth();\n const days = date.getDate() - 1;\n return [years, months, days];\n}\nComponent({\n externalClasses: [\"form-item\", \"form-label\", \"form-value\", \"select-icon\"],\n properties: {\n label: {\n type: String,\n value: \"\",\n },\n required: {\n type: Boolean,\n value: false,\n },\n labelWidth: {\n type: String,\n value: \"auto\",\n },\n value: {\n type: String,\n value: \"\",\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n min: {\n type: String,\n value: \"\",\n },\n max: {\n type: String,\n value: \"\",\n },\n },\n data: {\n date: new Date(),\n years: [],\n year: \"\",\n months: [],\n month: \"\",\n days: [],\n day: \"\",\n showActionsheet: false,\n selectValue: nowDate(),\n text: \"\",\n },\n\n observers: {\n value: function () {\n this.initDate(this.data.value);\n },\n },\n lifetimes: {\n ready() {\n // this.initDate(this.data.value);\n },\n },\n methods: {\n initDate(value = \"\") {\n const date = new Date();\n const years = [];\n const months = [];\n const days = [];\n for (let i = 1925; i <= date.getFullYear() + 10; i++) {\n years.push(i);\n }\n\n for (let i = 1; i <= 12; i++) {\n months.push(i);\n }\n\n for (let i = 1; i <= 31; i++) {\n days.push(i);\n }\n this.setData({\n years: years,\n months: months,\n days: days,\n });\n if (value) {\n const valueDates = new Date(value.replace(/-/g, \"/\"));\n const valueYear = valueDates.getFullYear() - 1925;\n const valueMonth = valueDates.getMonth();\n const valueDate = valueDates.getDate() - 1;\n\n this.setData({\n selectValue: [valueYear, valueMonth, valueDate],\n text:\n this.data.years[valueYear] + \"年\" + this.data.months[valueMonth] + \"月\" + this.data.days[valueDate] + \"日\",\n });\n } else {\n this.setData({\n selectValue: nowDate(),\n text: \"\",\n });\n }\n },\n showSellect() {\n if (this.data.disabled) return;\n\n this.setData({\n showActionsheet: true,\n });\n },\n handelChoose() {\n const year = this.data.year || this.data.years[this.data.selectValue[0]];\n const month = this.data.month || this.data.months[this.data.selectValue[1]];\n const day = this.data.day || this.data.days[this.data.selectValue[2]];\n if(this.data.min){\n if(!this.compareSize(\"min\",''+year+month.toString().padStart(2, \"0\")+day.toString().padStart(2, \"0\"))){\n return\n }\n }\n if(this.data.max){\n if(!this.compareSize(\"max\",''+year+month.toString().padStart(2, \"0\")+day.toString().padStart(2, \"0\"))){\n return\n }\n }\n\n this.setData({\n showActionsheet: false,\n text: year + \"年\" + month + \"月\" + day + \"日\",\n value: year.toString().padStart(2, \"0\") + \"-\" + month.toString().padStart(2, \"0\") + \"-\" + day.toString().padStart(2, \"0\"),\n });\n },\n bindChange(e) {\n const val = e.detail.value;\n const year=this.data.years[val[0]];\n const month=this.data.months[val[1]].toString().padStart(2, \"0\");\n const day=this.data.days[val[2]].toString().padStart(2, \"0\");\n this.setData({\n year,\n month,\n day\n });\n if ([0, 2, 4, 6, 7, 9, 11].includes(val[1])) {\n this.setDays(31);\n } else if ([3, 5, 8, 10].includes(val[1])) {\n this.setDays(30);\n if (val[2] > 29) {\n this.setDay(29);\n }\n } else if (this.data.years[val[0]] % 4 == 0) {\n this.setDays(29);\n if (val[2] > 28) {\n this.setDay(28);\n }\n } else {\n this.setDays(28);\n if (val[2] > 27) {\n this.setDay(27);\n }\n }\n },\n compareSize(type,value){\n if(type === \"min\"){\n if(Number(this.data.min.replace(/-/g, \"\"))>value){\n wx.showToast({\n title: '不在可选时间范围',\n icon: 'none'\n })\n return false\n }else {\n return true;\n }\n }\n if(type === \"max\"){\n if(Number(this.data.max.replace(/-/g, \"\"))<value){\n wx.showToast({\n title: '不在可选时间范围',\n icon: 'none'\n })\n return false\n }else {\n return true;\n }\n }\n },\n setMonth(month) {\n const months = [];\n for (let i = 1; i <= month; i++) {\n months.push(i);\n }\n this.setData({\n months: months,\n });\n },\n setDays(day) {\n const days = [];\n for (let i = 1; i <= day; i++) {\n days.push(i);\n }\n this.setData({\n days: days,\n });\n },\n setDay(maxDay) {\n const selectValue = this.data.selectValue;\n\n selectValue[2] = maxDay;\n this.setData({\n selectValue: selectValue,\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-date/index.js"],"names":["nowDate","date","Date","years","getFullYear","months","getMonth","days","getDate","Component","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","min","max","data","year","month","day","showActionsheet","selectValue","text","observers","initDate","lifetimes","ready","methods","i","push","daysLength","valueDates","replace","valueYear","valueMonth","includes","setData","valueDate","showSellect","handelChoose","compareSize","toString","padStart","bindChange","e","val","detail","setDays","setDay","Number","wx","showToast","title","icon","setMonth","maxDay"],"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;Q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AA0BS,GAA1B,EAA+B;AAC7B3B,aAAK4B,IAAL,CAAUD,CAAV;AACD;AACD,WAAKQ,OAAL,CAAa;AACXnC,cAAMA;AADK,OAAb;AAGD,KAtJM;AAuJP+C,UAvJO,kBAuJAO,MAvJA,EAuJQ;AACb,UAAMlC,cAAc,KAAKL,IAAL,CAAUK,WAA9B;;AAEAA,kBAAY,CAAZ,IAAiBkC,MAAjB;AACA,WAAKnB,OAAL,CAAa;AACXf,qBAAaA;AADF,OAAb;AAGD;AA9JM;AAvDD,CAAV,E","file":"bld-form\\bld-form-item\\bld-form-date\\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 = 13);\n","function nowDate() {\r\n const date = new Date();\r\n const years = date.getFullYear() - 1925;\r\n const months = date.getMonth();\r\n const days = date.getDate() - 1;\r\n return [years, months, days];\r\n}\r\nComponent({\r\n externalClasses: [\"form-item\", \"form-label\", \"form-value\", \"select-icon\"],\r\n properties: {\r\n label: {\r\n type: String,\r\n value: \"\",\r\n },\r\n required: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n labelWidth: {\r\n type: String,\r\n value: \"auto\",\r\n },\r\n value: {\r\n type: String,\r\n value: \"\",\r\n },\r\n disabled: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n min: {\r\n type: String,\r\n value: \"\",\r\n },\r\n max: {\r\n type: String,\r\n value: \"\",\r\n },\r\n },\r\n data: {\r\n date: new Date(),\r\n years: [],\r\n year: \"\",\r\n months: [],\r\n month: \"\",\r\n days: [],\r\n day: \"\",\r\n showActionsheet: false,\r\n selectValue: nowDate(),\r\n text: \"\",\r\n },\r\n\r\n observers: {\r\n value: function () {\r\n this.initDate(this.data.value);\r\n },\r\n },\r\n lifetimes: {\r\n ready() {\r\n // this.initDate(this.data.value);\r\n },\r\n },\r\n methods: {\r\n initDate(value = \"\") {\r\n const date = new Date();\r\n const years = [];\r\n const months = [];\r\n const days = [];\r\n for (let i = 1925; i <= date.getFullYear() + 10; i++) {\r\n years.push(i);\r\n }\r\n\r\n for (let i = 1; i <= 12; i++) {\r\n months.push(i);\r\n }\r\n let daysLength = 31;\r\n if(value){\r\n const valueDates = new Date(value.replace(/-/g, \"/\"));\r\n const valueYear = valueDates.getFullYear()\r\n const valueMonth = valueDates.getMonth();\r\n if ([3, 5, 8, 10].includes(valueMonth)) {\r\n daysLength = 30;\r\n } else if ((valueYear % 4 == 0&& valueYear % 100 !== 0)||(valueYear % 400 === 0)) {\r\n daysLength = 29;\r\n } else {\r\n daysLength = 28;\r\n }\r\n }\r\n for (let i = 1; i <= daysLength; i++) {\r\n days.push(i);\r\n }\r\n this.setData({\r\n years: years,\r\n months: months,\r\n days: days,\r\n });\r\n if (value) {\r\n const valueDates = new Date(value.replace(/-/g, \"/\"));\r\n const valueYear = valueDates.getFullYear() - 1925;\r\n const valueMonth = valueDates.getMonth();\r\n const valueDate = valueDates.getDate() - 1;\r\n\r\n this.setData({\r\n selectValue: [valueYear, valueMonth, valueDate],\r\n text:\r\n this.data.years[valueYear] + \"年\" + this.data.months[valueMonth] + \"月\" + this.data.days[valueDate] + \"日\",\r\n });\r\n } else {\r\n this.setData({\r\n selectValue: nowDate(),\r\n text: \"\",\r\n });\r\n }\r\n },\r\n showSellect() {\r\n if (this.data.disabled) return;\r\n\r\n this.setData({\r\n showActionsheet: true,\r\n });\r\n },\r\n handelChoose() {\r\n const year = this.data.year || this.data.years[this.data.selectValue[0]];\r\n const month = this.data.month || this.data.months[this.data.selectValue[1]];\r\n const day = this.data.day || this.data.days[this.data.selectValue[2]];\r\n if(this.data.min){\r\n if(!this.compareSize(\"min\",''+year+month.toString().padStart(2, \"0\")+day.toString().padStart(2, \"0\"))){\r\n return\r\n }\r\n }\r\n if(this.data.max){\r\n if(!this.compareSize(\"max\",''+year+month.toString().padStart(2, \"0\")+day.toString().padStart(2, \"0\"))){\r\n return\r\n }\r\n }\r\n\r\n this.setData({\r\n showActionsheet: false,\r\n text: year + \"年\" + month + \"月\" + day + \"日\",\r\n value: year.toString().padStart(2, \"0\") + \"-\" + month.toString().padStart(2, \"0\") + \"-\" + day.toString().padStart(2, \"0\"),\r\n });\r\n },\r\n bindChange(e) {\r\n const val = e.detail.value;\r\n const year=this.data.years[val[0]];\r\n const month=this.data.months[val[1]].toString().padStart(2, \"0\");\r\n const day=this.data.days[val[2]].toString().padStart(2, \"0\");\r\n this.setData({\r\n year,\r\n month,\r\n day\r\n });\r\n if ([0, 2, 4, 6, 7, 9, 11].includes(val[1])) {\r\n this.setDays(31);\r\n } else if ([3, 5, 8, 10].includes(val[1])) {\r\n this.setDays(30);\r\n if (val[2] > 29) {\r\n this.setDay(29);\r\n }\r\n } else if ((this.data.years[val[0]] % 4 == 0&& this.data.years[val[0]] % 100 !== 0)||(this.data.years[val[0]] % 400 === 0)) {\r\n this.setDays(29);\r\n if (val[2] > 28) {\r\n this.setDay(28);\r\n }\r\n } else {\r\n this.setDays(28);\r\n if (val[2] > 27) {\r\n this.setDay(27);\r\n }\r\n }\r\n },\r\n compareSize(type,value){\r\n if(type === \"min\"){\r\n if(Number(this.data.min.replace(/-/g, \"\"))>value){\r\n wx.showToast({\r\n title: '不在可选时间范围',\r\n icon: 'none'\r\n })\r\n return false\r\n }else {\r\n return true;\r\n }\r\n }\r\n if(type === \"max\"){\r\n if(Number(this.data.max.replace(/-/g, \"\"))<value){\r\n wx.showToast({\r\n title: '不在可选时间范围',\r\n icon: 'none'\r\n })\r\n return false\r\n }else {\r\n return true;\r\n }\r\n }\r\n },\r\n setMonth(month) {\r\n const months = [];\r\n for (let i = 1; i <= month; i++) {\r\n months.push(i);\r\n }\r\n this.setData({\r\n months: months,\r\n });\r\n },\r\n setDays(day) {\r\n const days = [];\r\n for (let i = 1; i <= day; i++) {\r\n days.push(i);\r\n }\r\n this.setData({\r\n days: days,\r\n });\r\n },\r\n setDay(maxDay) {\r\n const selectValue = this.data.selectValue;\r\n\r\n selectValue[2] = maxDay;\r\n this.setData({\r\n selectValue: selectValue,\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,7 +1,7 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "bld-half-screen":"../../../bld-half-screen/index",
5
- "bld-cloud-image": "../../../bld-cloud-image/index"
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-half-screen":"../../../bld-half-screen/index",
5
+ "bld-cloud-image": "../../../bld-cloud-image/index"
6
+ }
7
7
  }