bulade-ui 1.1.3 → 1.1.4

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 (467) 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.wxss +185 -185
  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-action-sheet/index.wxss +159 -159
  13. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  14. package/miniprogram_dist/bld-badge/index.json +3 -3
  15. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  16. package/miniprogram_dist/bld-badge/index.wxss +42 -42
  17. package/miniprogram_dist/bld-button/index.js.map +1 -1
  18. package/miniprogram_dist/bld-button/index.json +7 -7
  19. package/miniprogram_dist/bld-button/index.wxml +3 -3
  20. package/miniprogram_dist/bld-button/index.wxss +36 -36
  21. package/miniprogram_dist/bld-button-v2/index.js.map +1 -1
  22. package/miniprogram_dist/bld-button-v2/index.json +3 -3
  23. package/miniprogram_dist/bld-button-v2/index.wxml +41 -41
  24. package/miniprogram_dist/bld-button-v2/index.wxss +177 -175
  25. package/miniprogram_dist/bld-card/index.js.map +1 -1
  26. package/miniprogram_dist/bld-card/index.json +2 -2
  27. package/miniprogram_dist/bld-card/index.wxml +5 -5
  28. package/miniprogram_dist/bld-card/index.wxss +5 -5
  29. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  30. package/miniprogram_dist/bld-cell/index.json +7 -7
  31. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  32. package/miniprogram_dist/bld-cell/index.wxss +38 -38
  33. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  34. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  35. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  36. package/miniprogram_dist/bld-cell-field/index.wxss +18 -18
  37. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  38. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  39. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  40. package/miniprogram_dist/bld-cell-group/index.wxss +10 -10
  41. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  42. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  43. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  44. package/miniprogram_dist/bld-checkbox/index.wxss +61 -61
  45. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  46. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  47. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  48. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  49. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  50. package/miniprogram_dist/bld-cloud-image/index.wxss +2 -2
  51. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  52. package/miniprogram_dist/bld-collapse/index.json +3 -3
  53. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  54. package/miniprogram_dist/bld-collapse/index.wxss +6 -6
  55. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  56. package/miniprogram_dist/bld-drawer/index.json +3 -3
  57. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  58. package/miniprogram_dist/bld-drawer/index.wxss +57 -57
  59. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  60. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  61. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  62. package/miniprogram_dist/bld-empty-page/index.wxss +13 -13
  63. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js +1 -1
  64. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
  65. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  66. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  67. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxss +55 -55
  68. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
  69. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  70. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxml +26 -26
  71. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxss +26 -26
  72. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  73. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  74. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  75. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxss +119 -119
  76. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
  77. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  78. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  79. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxss +43 -43
  80. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
  81. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  82. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  83. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxss +20 -20
  84. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
  85. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  86. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  87. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxss +26 -26
  88. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
  89. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  90. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  91. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxss +55 -55
  92. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  93. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  94. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  95. package/miniprogram_dist/bld-half-screen/index.wxss +106 -106
  96. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  97. package/miniprogram_dist/bld-icon/index.json +3 -3
  98. package/miniprogram_dist/bld-icon/index.wxml +1 -1
  99. package/miniprogram_dist/bld-icon/index.wxss +202 -210
  100. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  101. package/miniprogram_dist/bld-loading/index.json +6 -6
  102. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  103. package/miniprogram_dist/bld-loading/index.wxss +28 -28
  104. package/miniprogram_dist/bld-message/index.js.map +1 -1
  105. package/miniprogram_dist/bld-message/index.json +3 -3
  106. package/miniprogram_dist/bld-message/index.wxml +8 -8
  107. package/miniprogram_dist/bld-message/index.wxss +76 -76
  108. package/miniprogram_dist/bld-message/message.js.map +1 -1
  109. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  110. package/miniprogram_dist/bld-modal/index.json +6 -6
  111. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  112. package/miniprogram_dist/bld-modal/index.wxss +96 -96
  113. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  114. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  115. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  116. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  117. package/miniprogram_dist/bld-nav-bar/index.wxss +45 -45
  118. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  119. package/miniprogram_dist/bld-navbar/index.json +5 -5
  120. package/miniprogram_dist/bld-navbar/index.wxml +7 -7
  121. package/miniprogram_dist/bld-navbar/index.wxss +30 -30
  122. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  123. package/miniprogram_dist/bld-navbar-group/index.json +3 -3
  124. package/miniprogram_dist/bld-navbar-group/index.wxml +36 -36
  125. package/miniprogram_dist/bld-navbar-group/index.wxss +29 -29
  126. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
  127. package/miniprogram_dist/bld-notice-bar/index.json +3 -3
  128. package/miniprogram_dist/bld-notice-bar/index.wxml +29 -29
  129. package/miniprogram_dist/bld-notice-bar/index.wxss +50 -50
  130. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  131. package/miniprogram_dist/bld-overlay/index.json +3 -3
  132. package/miniprogram_dist/bld-overlay/index.wxml +11 -11
  133. package/miniprogram_dist/bld-overlay/index.wxss +10 -10
  134. package/miniprogram_dist/bld-page/index.js.map +1 -1
  135. package/miniprogram_dist/bld-page/index.json +7 -7
  136. package/miniprogram_dist/bld-page/index.wxml +28 -28
  137. package/miniprogram_dist/bld-page/index.wxss +15 -15
  138. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  139. package/miniprogram_dist/bld-pop-up/index.json +6 -6
  140. package/miniprogram_dist/bld-pop-up/index.wxml +18 -18
  141. package/miniprogram_dist/bld-pop-up/index.wxss +26 -26
  142. package/miniprogram_dist/bld-progress/index.js.map +1 -1
  143. package/miniprogram_dist/bld-progress/index.json +3 -3
  144. package/miniprogram_dist/bld-progress/index.wxml +34 -34
  145. package/miniprogram_dist/bld-progress/index.wxss +62 -62
  146. package/miniprogram_dist/bld-radio/index.js.map +1 -1
  147. package/miniprogram_dist/bld-radio/index.json +3 -3
  148. package/miniprogram_dist/bld-radio/index.wxml +23 -23
  149. package/miniprogram_dist/bld-radio/index.wxss +78 -78
  150. package/miniprogram_dist/bld-radio-group/index.js.map +1 -1
  151. package/miniprogram_dist/bld-radio-group/index.json +3 -3
  152. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  153. package/miniprogram_dist/bld-retry/index.json +2 -2
  154. package/miniprogram_dist/bld-retry/index.wxml +5 -5
  155. package/miniprogram_dist/bld-retry/index.wxss +22 -22
  156. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  157. package/miniprogram_dist/bld-scroll-view/index.json +7 -7
  158. package/miniprogram_dist/bld-scroll-view/index.wxml +42 -42
  159. package/miniprogram_dist/bld-scroll-view/index.wxss +6 -6
  160. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  161. package/miniprogram_dist/bld-tag/index.json +3 -3
  162. package/miniprogram_dist/bld-tag/index.wxml +2 -2
  163. package/miniprogram_dist/bld-tag/index.wxss +107 -107
  164. package/miniprogram_dist/bld-text/index.js.map +1 -1
  165. package/miniprogram_dist/bld-text/index.json +2 -2
  166. package/miniprogram_dist/bld-text/index.wxml +3 -3
  167. package/miniprogram_dist/bld-text/index.wxss +25 -25
  168. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  169. package/miniprogram_dist/bld-toast/index.json +5 -5
  170. package/miniprogram_dist/bld-toast/index.wxml +26 -26
  171. package/miniprogram_dist/bld-toast/index.wxss +94 -94
  172. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  173. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  174. package/miniprogram_dist/bld-wrapper/index.json +4 -4
  175. package/miniprogram_dist/bld-wrapper/index.wxml +6 -6
  176. package/miniprogram_dist/bld-wrapper/index.wxss +6 -6
  177. package/miniprogram_dist/button/index.js.map +1 -1
  178. package/miniprogram_dist/button/index.json +3 -3
  179. package/miniprogram_dist/button/index.wxml +41 -41
  180. package/miniprogram_dist/button/index.wxss +175 -175
  181. package/miniprogram_dist/cell/index.js.map +1 -1
  182. package/miniprogram_dist/cell/index.json +5 -5
  183. package/miniprogram_dist/cell/index.wxml +24 -24
  184. package/miniprogram_dist/cell/index.wxss +62 -62
  185. package/miniprogram_dist/cell-group/index.js.map +1 -1
  186. package/miniprogram_dist/cell-group/index.json +2 -2
  187. package/miniprogram_dist/cell-group/index.wxml +9 -9
  188. package/miniprogram_dist/cell-group/index.wxss +28 -28
  189. package/miniprogram_dist/grid/index.js.map +1 -1
  190. package/miniprogram_dist/grid/index.json +3 -3
  191. package/miniprogram_dist/grid/index.wxml +2 -2
  192. package/miniprogram_dist/grid/index.wxss +19 -19
  193. package/miniprogram_dist/grid-item/index.js.map +1 -1
  194. package/miniprogram_dist/grid-item/index.json +5 -5
  195. package/miniprogram_dist/grid-item/index.wxml +45 -45
  196. package/miniprogram_dist/grid-item/index.wxss +50 -50
  197. package/miniprogram_dist/icon/index.js.map +1 -1
  198. package/miniprogram_dist/icon/index.json +3 -3
  199. package/miniprogram_dist/icon/index.wxml +35 -35
  200. package/miniprogram_dist/icon/index.wxss +200 -200
  201. package/miniprogram_dist/timeline/index.js.map +1 -1
  202. package/miniprogram_dist/timeline/index.json +2 -2
  203. package/miniprogram_dist/timeline/index.wxml +1 -1
  204. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  205. package/miniprogram_dist/timeline-item/index.json +5 -5
  206. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  207. package/miniprogram_dist/timeline-item/index.wxss +30 -30
  208. package/miniprogram_dist/utils/systemInfo.js +52 -52
  209. package/package.json +72 -72
  210. package/project.config.json +4 -4
  211. package/src/assets/font/iconfont.wxss +185 -185
  212. package/src/assets/style/border.wxss +94 -94
  213. package/src/bld-action-sheet/index.js +82 -82
  214. package/src/bld-action-sheet/index.json +8 -8
  215. package/src/bld-action-sheet/index.scss +179 -179
  216. package/src/bld-action-sheet/index.wxml +56 -56
  217. package/src/bld-action-sheet/index.wxss +159 -159
  218. package/src/bld-badge/index.js +53 -53
  219. package/src/bld-badge/index.json +3 -3
  220. package/src/bld-badge/index.scss +45 -45
  221. package/src/bld-badge/index.wxml +13 -13
  222. package/src/bld-badge/index.wxss +42 -42
  223. package/src/bld-button/index.js +13 -13
  224. package/src/bld-button/index.json +7 -7
  225. package/src/bld-button/index.scss +44 -44
  226. package/src/bld-button/index.wxml +3 -3
  227. package/src/bld-button/index.wxss +36 -36
  228. package/src/bld-button-v2/index.js +91 -91
  229. package/src/bld-button-v2/index.json +3 -3
  230. package/src/bld-button-v2/index.scss +209 -206
  231. package/src/bld-button-v2/index.wxml +41 -41
  232. package/src/bld-button-v2/index.wxss +177 -175
  233. package/src/bld-card/index.js +3 -3
  234. package/src/bld-card/index.json +2 -2
  235. package/src/bld-card/index.scss +6 -6
  236. package/src/bld-card/index.wxml +5 -5
  237. package/src/bld-card/index.wxss +5 -5
  238. package/src/bld-cell/index.js +28 -28
  239. package/src/bld-cell/index.json +7 -7
  240. package/src/bld-cell/index.scss +42 -42
  241. package/src/bld-cell/index.wxml +42 -42
  242. package/src/bld-cell/index.wxss +38 -38
  243. package/src/bld-cell-field/index.js +11 -11
  244. package/src/bld-cell-field/index.json +6 -6
  245. package/src/bld-cell-field/index.scss +21 -21
  246. package/src/bld-cell-field/index.wxml +8 -8
  247. package/src/bld-cell-field/index.wxss +18 -18
  248. package/src/bld-cell-group/index.js +11 -11
  249. package/src/bld-cell-group/index.json +2 -2
  250. package/src/bld-cell-group/index.scss +13 -13
  251. package/src/bld-cell-group/index.wxml +14 -14
  252. package/src/bld-cell-group/index.wxss +10 -10
  253. package/src/bld-checkbox/index.js +110 -110
  254. package/src/bld-checkbox/index.json +5 -5
  255. package/src/bld-checkbox/index.scss +71 -71
  256. package/src/bld-checkbox/index.wxml +66 -66
  257. package/src/bld-checkbox/index.wxss +61 -61
  258. package/src/bld-checkbox-group/index.js +84 -84
  259. package/src/bld-checkbox-group/index.json +3 -3
  260. package/src/bld-cloud-image/index.js +79 -79
  261. package/src/bld-cloud-image/index.json +2 -2
  262. package/src/bld-cloud-image/index.scss +3 -3
  263. package/src/bld-cloud-image/index.wxml +14 -14
  264. package/src/bld-cloud-image/index.wxss +2 -2
  265. package/src/bld-collapse/index.js +62 -62
  266. package/src/bld-collapse/index.json +3 -3
  267. package/src/bld-collapse/index.scss +6 -6
  268. package/src/bld-collapse/index.wxml +8 -8
  269. package/src/bld-collapse/index.wxss +6 -6
  270. package/src/bld-content-container/index.js +46 -46
  271. package/src/bld-content-container/index.json +2 -2
  272. package/src/bld-content-container/index.wxml +5 -5
  273. package/src/bld-drawer/index.js +40 -40
  274. package/src/bld-drawer/index.json +3 -3
  275. package/src/bld-drawer/index.scss +78 -78
  276. package/src/bld-drawer/index.wxml +13 -13
  277. package/src/bld-drawer/index.wxss +57 -57
  278. package/src/bld-empty-page/index.js +23 -23
  279. package/src/bld-empty-page/index.json +5 -5
  280. package/src/bld-empty-page/index.scss +15 -15
  281. package/src/bld-empty-page/index.wxml +11 -11
  282. package/src/bld-empty-page/index.wxss +13 -13
  283. package/src/bld-form/bld-form-item/bld-form-date/index.js +167 -167
  284. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  285. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  286. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  287. package/src/bld-form/bld-form-item/bld-form-date/index.wxss +55 -55
  288. package/src/bld-form/bld-form-item/bld-form-input/index.js +48 -48
  289. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  290. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  291. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +26 -26
  292. package/src/bld-form/bld-form-item/bld-form-input/index.wxss +26 -26
  293. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +145 -145
  294. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  295. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  296. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  297. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxss +119 -119
  298. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  299. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  300. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  301. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  302. package/src/bld-form/bld-form-item/bld-form-step/index.wxss +43 -43
  303. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  304. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  305. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  306. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  307. package/src/bld-form/bld-form-item/bld-form-switch/index.wxss +20 -20
  308. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  309. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  310. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  311. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  312. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxss +26 -26
  313. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  314. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  315. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  316. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  317. package/src/bld-form/bld-form-item/bld-form-time/index.wxss +55 -55
  318. package/src/bld-half-screen/index.js +166 -166
  319. package/src/bld-half-screen/index.json +4 -4
  320. package/src/bld-half-screen/index.scss +109 -109
  321. package/src/bld-half-screen/index.wxml +36 -36
  322. package/src/bld-half-screen/index.wxss +106 -106
  323. package/src/bld-icon/index.js +8 -8
  324. package/src/bld-icon/index.json +3 -3
  325. package/src/bld-icon/index.scss +205 -213
  326. package/src/bld-icon/index.wxml +1 -1
  327. package/src/bld-icon/index.wxss +202 -210
  328. package/src/bld-loading/index.js +9 -9
  329. package/src/bld-loading/index.json +6 -6
  330. package/src/bld-loading/index.scss +25 -25
  331. package/src/bld-loading/index.wxml +8 -8
  332. package/src/bld-loading/index.wxss +28 -28
  333. package/src/bld-message/index.js +90 -90
  334. package/src/bld-message/index.json +3 -3
  335. package/src/bld-message/index.scss +66 -66
  336. package/src/bld-message/index.wxml +8 -8
  337. package/src/bld-message/index.wxss +76 -76
  338. package/src/bld-message/message.js +61 -61
  339. package/src/bld-modal/index.js +122 -122
  340. package/src/bld-modal/index.json +6 -6
  341. package/src/bld-modal/index.scss +107 -107
  342. package/src/bld-modal/index.wxml +22 -22
  343. package/src/bld-modal/index.wxss +96 -96
  344. package/src/bld-modal/modal.js +37 -37
  345. package/src/bld-nav-bar/index.js +131 -131
  346. package/src/bld-nav-bar/index.json +6 -6
  347. package/src/bld-nav-bar/index.scss +48 -48
  348. package/src/bld-nav-bar/index.wxml +43 -43
  349. package/src/bld-nav-bar/index.wxss +45 -45
  350. package/src/bld-nav-bar1/index.js +90 -90
  351. package/src/bld-nav-bar1/index.json +5 -5
  352. package/src/bld-nav-bar1/index.scss +39 -39
  353. package/src/bld-nav-bar1/index.wxml +24 -24
  354. package/src/bld-nav-bar1/index.wxss +35 -35
  355. package/src/bld-navbar/index.js +62 -62
  356. package/src/bld-navbar/index.json +5 -5
  357. package/src/bld-navbar/index.scss +34 -34
  358. package/src/bld-navbar/index.wxml +7 -7
  359. package/src/bld-navbar/index.wxss +30 -30
  360. package/src/bld-navbar-group/index.js +139 -139
  361. package/src/bld-navbar-group/index.json +3 -3
  362. package/src/bld-navbar-group/index.scss +32 -32
  363. package/src/bld-navbar-group/index.wxml +36 -36
  364. package/src/bld-navbar-group/index.wxss +29 -29
  365. package/src/bld-notice-bar/index.js +69 -69
  366. package/src/bld-notice-bar/index.json +3 -3
  367. package/src/bld-notice-bar/index.scss +58 -58
  368. package/src/bld-notice-bar/index.wxml +29 -29
  369. package/src/bld-notice-bar/index.wxss +50 -50
  370. package/src/bld-overlay/index.js +17 -17
  371. package/src/bld-overlay/index.json +3 -3
  372. package/src/bld-overlay/index.scss +11 -11
  373. package/src/bld-overlay/index.wxml +11 -11
  374. package/src/bld-overlay/index.wxss +10 -10
  375. package/src/bld-page/index.js +78 -78
  376. package/src/bld-page/index.json +7 -7
  377. package/src/bld-page/index.scss +16 -16
  378. package/src/bld-page/index.wxml +28 -28
  379. package/src/bld-page/index.wxss +15 -15
  380. package/src/bld-pop-up/index.js +29 -29
  381. package/src/bld-pop-up/index.json +6 -6
  382. package/src/bld-pop-up/index.scss +27 -27
  383. package/src/bld-pop-up/index.wxml +18 -18
  384. package/src/bld-pop-up/index.wxss +26 -26
  385. package/src/bld-progress/index.js +49 -49
  386. package/src/bld-progress/index.json +3 -3
  387. package/src/bld-progress/index.scss +73 -73
  388. package/src/bld-progress/index.wxml +34 -34
  389. package/src/bld-progress/index.wxss +62 -62
  390. package/src/bld-radio/index.js +64 -64
  391. package/src/bld-radio/index.json +3 -3
  392. package/src/bld-radio/index.scss +67 -67
  393. package/src/bld-radio/index.wxml +23 -23
  394. package/src/bld-radio/index.wxss +78 -78
  395. package/src/bld-radio-group/index.js +82 -82
  396. package/src/bld-radio-group/index.json +3 -3
  397. package/src/bld-retry/index.js +23 -23
  398. package/src/bld-retry/index.json +2 -2
  399. package/src/bld-retry/index.scss +26 -26
  400. package/src/bld-retry/index.wxml +5 -5
  401. package/src/bld-retry/index.wxss +22 -22
  402. package/src/bld-scroll-view/index.js +28 -28
  403. package/src/bld-scroll-view/index.json +7 -7
  404. package/src/bld-scroll-view/index.scss +7 -7
  405. package/src/bld-scroll-view/index.wxml +42 -42
  406. package/src/bld-scroll-view/index.wxss +6 -6
  407. package/src/bld-tag/index.js +33 -33
  408. package/src/bld-tag/index.json +3 -3
  409. package/src/bld-tag/index.scss +126 -126
  410. package/src/bld-tag/index.wxml +2 -2
  411. package/src/bld-tag/index.wxss +107 -107
  412. package/src/bld-text/index.js +46 -46
  413. package/src/bld-text/index.json +2 -2
  414. package/src/bld-text/index.scss +30 -30
  415. package/src/bld-text/index.wxml +3 -3
  416. package/src/bld-text/index.wxss +25 -25
  417. package/src/bld-toast/index.js +113 -113
  418. package/src/bld-toast/index.json +5 -5
  419. package/src/bld-toast/index.scss +111 -111
  420. package/src/bld-toast/index.wxml +26 -26
  421. package/src/bld-toast/index.wxss +94 -94
  422. package/src/bld-toast/toast.js +34 -34
  423. package/src/bld-wrapper/index.js +75 -75
  424. package/src/bld-wrapper/index.json +4 -4
  425. package/src/bld-wrapper/index.scss +7 -7
  426. package/src/bld-wrapper/index.wxml +6 -6
  427. package/src/bld-wrapper/index.wxss +6 -6
  428. package/src/button/index.js +91 -91
  429. package/src/button/index.json +3 -3
  430. package/src/button/index.scss +206 -206
  431. package/src/button/index.wxml +41 -41
  432. package/src/button/index.wxss +175 -175
  433. package/src/cell/index.js +80 -80
  434. package/src/cell/index.json +5 -5
  435. package/src/cell/index.scss +73 -73
  436. package/src/cell/index.wxml +24 -24
  437. package/src/cell/index.wxss +62 -62
  438. package/src/cell-group/index.js +70 -70
  439. package/src/cell-group/index.json +2 -2
  440. package/src/cell-group/index.scss +31 -31
  441. package/src/cell-group/index.wxml +9 -9
  442. package/src/cell-group/index.wxss +28 -28
  443. package/src/grid/index.js +67 -67
  444. package/src/grid/index.json +3 -3
  445. package/src/grid/index.scss +20 -20
  446. package/src/grid/index.wxml +2 -2
  447. package/src/grid/index.wxss +19 -19
  448. package/src/grid-item/index.js +72 -72
  449. package/src/grid-item/index.json +5 -5
  450. package/src/grid-item/index.scss +58 -58
  451. package/src/grid-item/index.wxml +45 -45
  452. package/src/grid-item/index.wxss +50 -50
  453. package/src/icon/index.js +41 -41
  454. package/src/icon/index.json +3 -3
  455. package/src/icon/index.scss +16 -16
  456. package/src/icon/index.wxml +35 -35
  457. package/src/icon/index.wxss +200 -200
  458. package/src/timeline/index.js +49 -49
  459. package/src/timeline/index.json +2 -2
  460. package/src/timeline/index.wxml +1 -1
  461. package/src/timeline-item/index.js +27 -27
  462. package/src/timeline-item/index.json +5 -5
  463. package/src/timeline-item/index.scss +36 -36
  464. package/src/timeline-item/index.wxml +9 -9
  465. package/src/timeline-item/index.wxss +30 -30
  466. package/src/utils/systemInfo.js +52 -52
  467. package/tsconfig.json +25 -25
@@ -1,62 +1,62 @@
1
- .m-checkbox {
2
- display: flex;
3
- overflow: hidden;
4
- -webkit-user-select: none;
5
- -moz-user-select: none;
6
- user-select: none;
7
- }
8
- .m-checkbox .m-checkbox__icon-wrap,
9
- .m-checkbox .m-checkbox__label {
10
- color: var(--color-text-regular, #606266);
11
- }
12
- .m-checkbox .m-checkbox__icon-wrap {
13
- flex: none;
14
- }
15
- .m-checkbox .m-checkbox__icon {
16
- display: flex;
17
- align-items: center;
18
- justify-content: center;
19
- box-sizing: content-box;
20
- width: 42rpx;
21
- height: 42rpx;
22
- line-height: 42rpx;
23
- color: transparent;
24
- text-align: center;
25
- transition-property: color, border-color, background-color;
26
- font-size: 28rpx;
27
- font-weight: bold;
28
- border: 1px solid #e5e5e5;
29
- border-radius: 4rpx;
30
- transition-duration: 0.2s;
31
- }
32
- .m-checkbox .m-checkbox__icon--round {
33
- border-radius: 50%;
34
- }
35
- .m-checkbox .m-checkbox__icon--checked {
36
- background-color: var(--color-primary, #409EFF);
37
- border-color: var(--color-primary, #409EFF);
38
- }
39
- .m-checkbox .m-checkbox__icon--disabled {
40
- background-color: #ebedf0;
41
- border-color: #d3d4d5;
42
- }
43
- .m-checkbox .m-checkbox__icon--disabled.m-checkbox__icon--checked {
44
- color: #d3d4d5;
45
- }
46
- .m-checkbox .m-checkbox__label {
47
- flex: 1;
48
- word-wrap: break-word;
49
- color: var(--color-text-primary, #303133);
50
- }
51
- .m-checkbox .m-checkbox__label--left {
52
- margin-right: 20rpx;
53
- }
54
- .m-checkbox .m-checkbox__label--right {
55
- margin-left: 20rpx;
56
- }
57
- .m-checkbox .m-checkbox__label--disabled {
58
- color: #d3d4d5;
59
- }
60
- .m-checkbox .m-checkbox__icon--prevent {
61
- background-color: #ebedf0;
1
+ .m-checkbox {
2
+ display: flex;
3
+ overflow: hidden;
4
+ -webkit-user-select: none;
5
+ -moz-user-select: none;
6
+ user-select: none;
7
+ }
8
+ .m-checkbox .m-checkbox__icon-wrap,
9
+ .m-checkbox .m-checkbox__label {
10
+ color: var(--color-text-regular, #606266);
11
+ }
12
+ .m-checkbox .m-checkbox__icon-wrap {
13
+ flex: none;
14
+ }
15
+ .m-checkbox .m-checkbox__icon {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ box-sizing: content-box;
20
+ width: 42rpx;
21
+ height: 42rpx;
22
+ line-height: 42rpx;
23
+ color: transparent;
24
+ text-align: center;
25
+ transition-property: color, border-color, background-color;
26
+ font-size: 28rpx;
27
+ font-weight: bold;
28
+ border: 1px solid #e5e5e5;
29
+ border-radius: 4rpx;
30
+ transition-duration: 0.2s;
31
+ }
32
+ .m-checkbox .m-checkbox__icon--round {
33
+ border-radius: 50%;
34
+ }
35
+ .m-checkbox .m-checkbox__icon--checked {
36
+ background-color: var(--color-primary, #409EFF);
37
+ border-color: var(--color-primary, #409EFF);
38
+ }
39
+ .m-checkbox .m-checkbox__icon--disabled {
40
+ background-color: #ebedf0;
41
+ border-color: #d3d4d5;
42
+ }
43
+ .m-checkbox .m-checkbox__icon--disabled.m-checkbox__icon--checked {
44
+ color: #d3d4d5;
45
+ }
46
+ .m-checkbox .m-checkbox__label {
47
+ flex: 1;
48
+ word-wrap: break-word;
49
+ color: var(--color-text-primary, #303133);
50
+ }
51
+ .m-checkbox .m-checkbox__label--left {
52
+ margin-right: 20rpx;
53
+ }
54
+ .m-checkbox .m-checkbox__label--right {
55
+ margin-left: 20rpx;
56
+ }
57
+ .m-checkbox .m-checkbox__label--disabled {
58
+ color: #d3d4d5;
59
+ }
60
+ .m-checkbox .m-checkbox__icon--prevent {
61
+ background-color: #ebedf0;
62
62
  }
@@ -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;AAELC,aAAO;AAFF,KAFG;AAMVA,WAAO;AACLT,YAAMU,KADD;AAELC,gBAAU;AAFL,KANG;AAUVC,cAAU;AACRZ,YAAMQ,OADE;AAERG,gBAAU;AAFF,KAVA;AAcVE,kBAAc;AACZb,YAAMc,MADM;AAEZL,aAAO;AAFK,KAdJ;AAkBVM,eAAW;AACTf,YAAMQ,OADG;AAETC,aAAO;AAFE;AAlBD,GAjBJ;;AAyCRO,WAAS;AACPd,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKe,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,mBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX;;AAEAF,mBAASI,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjC,kBAAKC,YAAL,CAAkBF,KAAlB;AACD,WAFD;AAGD;AACF,OAZY,EAYV,EAZU,CAAb;AAaD,KAtBM;AAwBPE,gBAxBO,wBAwBMF,KAxBN,EAwBa;AAAA,kBAMd,KAAKG,IANS;AAAA,UAEhBf,YAFgB,SAEhBA,YAFgB;AAAA,UAGhBJ,KAHgB,SAGhBA,KAHgB;AAAA,UAIhBM,SAJgB,SAIhBA,SAJgB;AAAA,UAKhBH,QALgB,SAKhBA,QALgB;;;AAQlBa,YAAMI,OAAN,CAAc;AACZpB,eAAOA,MAAMqB,OAAN,CAAcL,MAAMG,IAAN,CAAWG,IAAzB,IAAiC,CAAC,CAD7B;AAEZlB,sBAAcY,MAAMG,IAAN,CAAWf,YAAX,IAA2BA,YAF7B;AAGZE,mBAAWU,MAAMG,IAAN,CAAWb,SAAX,IAAwBA,SAHvB;AAIZH,kBAAUA,YAAYa,MAAMG,IAAN,CAAWhB,QAJrB;AAKZL,eAAO,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 = 46);\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,YAAMU,KADD;AAELC,gBAAU;AAFL,KANG;AAUVC,cAAU;AACRZ,YAAMQ,OADE;AAERG,gBAAU;AAFF,KAVA;AAcVE,kBAAc;AACZb,YAAMc,MADM;AAEZL,aAAO;AAFK,KAdJ;AAkBVM,eAAW;AACTf,YAAMQ,OADG;AAETC,aAAO;AAFE;AAlBD,GAjBJ;;AAyCRO,WAAS;AACPd,mBADO,6BACW;AAAA;;AAEhB;AACA,UAAI,KAAKe,KAAT,EAAgB;AACdC,qBAAa,KAAKD,KAAlB;AACA,aAAKA,KAAL,GAAa,IAAb;AACD;;AAED,WAAKA,KAAL,GAAaE,WAAW,YAAM;;AAE5B,YAAIC,WAAW,MAAKC,gBAAL,CAAsB,mBAAtB,CAAf;AACA,YAAMC,MAAMF,SAASG,MAArB;;AAEA,YAAID,MAAM,CAAV,EAAa;AACX;;AAEAF,mBAASI,OAAT,CAAiB,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACjC,kBAAKC,YAAL,CAAkBF,KAAlB;AACD,WAFD;AAGD;AACF,OAZY,EAYV,EAZU,CAAb;AAaD,KAtBM;AAwBPE,gBAxBO,wBAwBMF,KAxBN,EAwBa;AAAA,kBAMd,KAAKG,IANS;AAAA,UAEhBf,YAFgB,SAEhBA,YAFgB;AAAA,UAGhBJ,KAHgB,SAGhBA,KAHgB;AAAA,UAIhBM,SAJgB,SAIhBA,SAJgB;AAAA,UAKhBH,QALgB,SAKhBA,QALgB;;;AAQlBa,YAAMI,OAAN,CAAc;AACZpB,eAAOA,MAAMqB,OAAN,CAAcL,MAAMG,IAAN,CAAWG,IAAzB,IAAiC,CAAC,CAD7B;AAEZlB,sBAAcY,MAAMG,IAAN,CAAWf,YAAX,IAA2BA,YAF7B;AAGZE,mBAAWU,MAAMG,IAAN,CAAWb,SAAX,IAAwBA,SAHvB;AAIZH,kBAAUA,YAAYa,MAAMG,IAAN,CAAWhB,QAJrB;AAKZL,eAAO,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 = 46);\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;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 = 10);\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 = 10);\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,3 +1,3 @@
1
- .img {
2
- background: #eee;
1
+ .img {
2
+ background: #eee;
3
3
  }
@@ -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 = 42);\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 = 42);\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,7 +1,7 @@
1
- .m-collapse {
2
- transition-property: height;
3
- transition-duration: 0.3s;
4
- transition-timing-function: ease-in-out;
5
- overflow: hidden;
6
- height: 0;
1
+ .m-collapse {
2
+ transition-property: height;
3
+ transition-duration: 0.3s;
4
+ transition-timing-function: ease-in-out;
5
+ overflow: hidden;
6
+ height: 0;
7
7
  }
@@ -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 = 33);\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 = 33);\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,58 +1,58 @@
1
- .m-drawer {
2
- visibility: hidden;
3
- }
4
- .m-drawer.m-drawer--show {
5
- visibility: visible;
6
- }
7
- .m-drawer.m-drawer--show .m-drawer__mask {
8
- display: block;
9
- opacity: 1;
10
- }
11
- .m-drawer.m-drawer--show .m-drawer__content {
12
- opacity: 1;
13
- transform: translate3d(0, 0, 0) !important;
14
- }
15
- .m-drawer .m-drawer__mask {
16
- opacity: 0;
17
- z-index: 9;
18
- position: fixed;
19
- top: 0;
20
- left: 0;
21
- right: 0;
22
- bottom: 0;
23
- background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
24
- transition: all 200ms ease;
25
- }
26
- .m-drawer .m-drawer__content {
27
- opacity: 0;
28
- z-index: 10;
29
- position: fixed;
30
- transform-origin: center;
31
- background-color: #fff;
32
- transition: all 300ms ease;
33
- border-radius: 20rpx;
34
- }
35
- .m-drawer.m-drawer--left .m-drawer__content {
36
- top: 0;
37
- left: 0;
38
- transform: translate3d(-100%, 0, 0);
39
- }
40
- .m-drawer.m-drawer--right .m-drawer__content {
41
- right: 0;
42
- top: 0;
43
- transform: translate3d(100%, 0, 0);
44
- }
45
- .m-drawer.m-drawer--top .m-drawer__content {
46
- left: 0;
47
- top: 0;
48
- width: 100%;
49
- transform: translate3d(0, -100%, 0);
50
- }
51
- .m-drawer.m-drawer--bottom .m-drawer__content {
52
- left: 0;
53
- bottom: 0;
54
- width: 100%;
55
- transform: scale(1) translate3d(0, 100%, 0);
56
- padding-bottom: constant(safe-area-inset-bottom);
57
- padding-bottom: env(safe-area-inset-bottom);
1
+ .m-drawer {
2
+ visibility: hidden;
3
+ }
4
+ .m-drawer.m-drawer--show {
5
+ visibility: visible;
6
+ }
7
+ .m-drawer.m-drawer--show .m-drawer__mask {
8
+ display: block;
9
+ opacity: 1;
10
+ }
11
+ .m-drawer.m-drawer--show .m-drawer__content {
12
+ opacity: 1;
13
+ transform: translate3d(0, 0, 0) !important;
14
+ }
15
+ .m-drawer .m-drawer__mask {
16
+ opacity: 0;
17
+ z-index: 9;
18
+ position: fixed;
19
+ top: 0;
20
+ left: 0;
21
+ right: 0;
22
+ bottom: 0;
23
+ background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
24
+ transition: all 200ms ease;
25
+ }
26
+ .m-drawer .m-drawer__content {
27
+ opacity: 0;
28
+ z-index: 10;
29
+ position: fixed;
30
+ transform-origin: center;
31
+ background-color: #fff;
32
+ transition: all 300ms ease;
33
+ border-radius: 20rpx;
34
+ }
35
+ .m-drawer.m-drawer--left .m-drawer__content {
36
+ top: 0;
37
+ left: 0;
38
+ transform: translate3d(-100%, 0, 0);
39
+ }
40
+ .m-drawer.m-drawer--right .m-drawer__content {
41
+ right: 0;
42
+ top: 0;
43
+ transform: translate3d(100%, 0, 0);
44
+ }
45
+ .m-drawer.m-drawer--top .m-drawer__content {
46
+ left: 0;
47
+ top: 0;
48
+ width: 100%;
49
+ transform: translate3d(0, -100%, 0);
50
+ }
51
+ .m-drawer.m-drawer--bottom .m-drawer__content {
52
+ left: 0;
53
+ bottom: 0;
54
+ width: 100%;
55
+ transform: scale(1) translate3d(0, 100%, 0);
56
+ padding-bottom: constant(safe-area-inset-bottom);
57
+ padding-bottom: env(safe-area-inset-bottom);
58
58
  }
@@ -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 = 27);\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 = 27);\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>
@@ -1,14 +1,14 @@
1
- .empty {
2
- display: flex;
3
- align-items: center;
4
- flex-direction: column;
5
- justify-content: center;
6
- font-weight: 400;
7
- color: #a3a3a3;
8
- }
9
- .empty .img {
10
- height: 300rpx;
11
- width: 300rpx;
12
- margin-bottom: 32rpx;
13
- background: none;
1
+ .empty {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ font-weight: 400;
7
+ color: #a3a3a3;
8
+ }
9
+ .empty .img {
10
+ height: 300rpx;
11
+ width: 300rpx;
12
+ margin-bottom: 32rpx;
13
+ background: none;
14
14
  }
@@ -203,7 +203,7 @@ Component({
203
203
  this.setData({
204
204
  showActionsheet: false,
205
205
  text: year + "年" + month + "月" + day + "日",
206
- value: year + "-" + month + "-" + day
206
+ value: year.toString().padStart(2, "0") + "-" + month.toString().padStart(2, "0") + "-" + day.toString().padStart(2, "0")
207
207
  });
208
208
  },
209
209
  bindChange: function bindChange(e) {