bulade-ui 1.1.2 → 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 (516) 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 +2 -2
  10. package/miniprogram_dist/bld-action-sheet/index.js.map +1 -1
  11. package/miniprogram_dist/bld-action-sheet/index.json +8 -8
  12. package/miniprogram_dist/bld-action-sheet/index.wxml +56 -56
  13. package/miniprogram_dist/bld-action-sheet/index.wxss +159 -159
  14. package/miniprogram_dist/bld-badge/index.js +2 -2
  15. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  16. package/miniprogram_dist/bld-badge/index.json +3 -3
  17. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  18. package/miniprogram_dist/bld-badge/index.wxss +42 -42
  19. package/miniprogram_dist/bld-button/index.js.map +1 -1
  20. package/miniprogram_dist/bld-button/index.json +7 -7
  21. package/miniprogram_dist/bld-button/index.wxml +3 -3
  22. package/miniprogram_dist/bld-button/index.wxss +36 -36
  23. package/miniprogram_dist/bld-button-v2/index.js +200 -0
  24. package/miniprogram_dist/bld-button-v2/index.js.map +1 -0
  25. package/miniprogram_dist/bld-button-v2/index.json +3 -0
  26. package/miniprogram_dist/bld-button-v2/index.wxml +42 -0
  27. package/miniprogram_dist/bld-button-v2/index.wxss +178 -0
  28. package/miniprogram_dist/bld-card/index.js +2 -2
  29. package/miniprogram_dist/bld-card/index.js.map +1 -1
  30. package/miniprogram_dist/bld-card/index.json +2 -2
  31. package/miniprogram_dist/bld-card/index.wxml +5 -5
  32. package/miniprogram_dist/bld-card/index.wxss +5 -5
  33. package/miniprogram_dist/bld-cell/index.js +2 -2
  34. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  35. package/miniprogram_dist/bld-cell/index.json +7 -7
  36. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  37. package/miniprogram_dist/bld-cell/index.wxss +38 -38
  38. package/miniprogram_dist/bld-cell-field/index.js +2 -2
  39. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  40. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  41. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  42. package/miniprogram_dist/bld-cell-field/index.wxss +18 -18
  43. package/miniprogram_dist/bld-cell-group/index.js +2 -2
  44. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  45. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  46. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  47. package/miniprogram_dist/bld-cell-group/index.wxss +10 -10
  48. package/miniprogram_dist/bld-checkbox/index.js +2 -2
  49. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  50. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  51. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  52. package/miniprogram_dist/bld-checkbox/index.wxss +61 -61
  53. package/miniprogram_dist/bld-checkbox-group/index.js +2 -2
  54. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  55. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  56. package/miniprogram_dist/bld-cloud-image/index.js +2 -2
  57. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  58. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  59. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  60. package/miniprogram_dist/bld-cloud-image/index.wxss +2 -2
  61. package/miniprogram_dist/bld-collapse/index.js +2 -2
  62. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  63. package/miniprogram_dist/bld-collapse/index.json +3 -3
  64. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  65. package/miniprogram_dist/bld-collapse/index.wxss +6 -6
  66. package/miniprogram_dist/bld-drawer/index.js +2 -2
  67. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  68. package/miniprogram_dist/bld-drawer/index.json +3 -3
  69. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  70. package/miniprogram_dist/bld-drawer/index.wxss +57 -57
  71. package/miniprogram_dist/bld-empty-page/index.js +2 -2
  72. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  73. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  74. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  75. package/miniprogram_dist/bld-empty-page/index.wxss +13 -13
  76. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js +3 -3
  77. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
  78. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  79. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  80. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxss +55 -55
  81. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js +2 -2
  82. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
  83. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  84. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxml +26 -26
  85. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxss +26 -26
  86. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js +2 -2
  87. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  88. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  89. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  90. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxss +119 -119
  91. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js +2 -2
  92. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
  93. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  94. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  95. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxss +43 -43
  96. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js +2 -2
  97. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
  98. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  99. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  100. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxss +20 -20
  101. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js +2 -2
  102. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
  103. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  104. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  105. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxss +26 -26
  106. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js +2 -2
  107. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
  108. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  109. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  110. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxss +55 -55
  111. package/miniprogram_dist/bld-half-screen/index.js +2 -2
  112. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  113. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  114. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  115. package/miniprogram_dist/bld-half-screen/index.wxss +106 -106
  116. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  117. package/miniprogram_dist/bld-icon/index.json +3 -3
  118. package/miniprogram_dist/bld-icon/index.wxml +1 -1
  119. package/miniprogram_dist/bld-icon/index.wxss +202 -202
  120. package/miniprogram_dist/bld-loading/index.js +2 -2
  121. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  122. package/miniprogram_dist/bld-loading/index.json +6 -6
  123. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  124. package/miniprogram_dist/bld-loading/index.wxss +28 -28
  125. package/miniprogram_dist/bld-message/index.js +2 -2
  126. package/miniprogram_dist/bld-message/index.js.map +1 -1
  127. package/miniprogram_dist/bld-message/index.json +3 -3
  128. package/miniprogram_dist/bld-message/index.wxml +8 -8
  129. package/miniprogram_dist/bld-message/index.wxss +76 -76
  130. package/miniprogram_dist/bld-message/message.js +2 -2
  131. package/miniprogram_dist/bld-message/message.js.map +1 -1
  132. package/miniprogram_dist/bld-modal/index.js +2 -2
  133. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  134. package/miniprogram_dist/bld-modal/index.json +6 -6
  135. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  136. package/miniprogram_dist/bld-modal/index.wxss +96 -96
  137. package/miniprogram_dist/bld-modal/modal.js +2 -2
  138. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  139. package/miniprogram_dist/bld-nav-bar/index.js +2 -2
  140. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  141. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  142. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  143. package/miniprogram_dist/bld-nav-bar/index.wxss +45 -45
  144. package/miniprogram_dist/bld-navbar/index.js +2 -2
  145. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  146. package/miniprogram_dist/bld-navbar/index.json +5 -5
  147. package/miniprogram_dist/bld-navbar/index.wxml +7 -7
  148. package/miniprogram_dist/bld-navbar/index.wxss +30 -30
  149. package/miniprogram_dist/bld-navbar-group/index.js +2 -2
  150. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  151. package/miniprogram_dist/bld-navbar-group/index.json +3 -3
  152. package/miniprogram_dist/bld-navbar-group/index.wxml +36 -36
  153. package/miniprogram_dist/bld-navbar-group/index.wxss +29 -29
  154. package/miniprogram_dist/bld-notice-bar/index.js +2 -2
  155. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
  156. package/miniprogram_dist/bld-notice-bar/index.json +3 -3
  157. package/miniprogram_dist/bld-notice-bar/index.wxml +29 -29
  158. package/miniprogram_dist/bld-notice-bar/index.wxss +50 -50
  159. package/miniprogram_dist/bld-overlay/index.js +2 -2
  160. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  161. package/miniprogram_dist/bld-overlay/index.json +3 -3
  162. package/miniprogram_dist/bld-overlay/index.wxml +11 -11
  163. package/miniprogram_dist/bld-overlay/index.wxss +10 -10
  164. package/miniprogram_dist/bld-page/index.js +2 -2
  165. package/miniprogram_dist/bld-page/index.js.map +1 -1
  166. package/miniprogram_dist/bld-page/index.json +7 -7
  167. package/miniprogram_dist/bld-page/index.wxml +28 -28
  168. package/miniprogram_dist/bld-page/index.wxss +15 -15
  169. package/miniprogram_dist/bld-pop-up/index.js +2 -2
  170. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  171. package/miniprogram_dist/bld-pop-up/index.json +6 -6
  172. package/miniprogram_dist/bld-pop-up/index.wxml +18 -18
  173. package/miniprogram_dist/bld-pop-up/index.wxss +26 -26
  174. package/miniprogram_dist/bld-progress/index.js +2 -2
  175. package/miniprogram_dist/bld-progress/index.js.map +1 -1
  176. package/miniprogram_dist/bld-progress/index.json +3 -3
  177. package/miniprogram_dist/bld-progress/index.wxml +34 -34
  178. package/miniprogram_dist/bld-progress/index.wxss +62 -62
  179. package/miniprogram_dist/bld-radio/index.js +2 -2
  180. package/miniprogram_dist/bld-radio/index.js.map +1 -1
  181. package/miniprogram_dist/bld-radio/index.json +3 -3
  182. package/miniprogram_dist/bld-radio/index.wxml +23 -23
  183. package/miniprogram_dist/bld-radio/index.wxss +78 -78
  184. package/miniprogram_dist/bld-radio-group/index.js +2 -2
  185. package/miniprogram_dist/bld-radio-group/index.js.map +1 -1
  186. package/miniprogram_dist/bld-radio-group/index.json +3 -3
  187. package/miniprogram_dist/bld-retry/index.js +2 -2
  188. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  189. package/miniprogram_dist/bld-retry/index.json +2 -2
  190. package/miniprogram_dist/bld-retry/index.wxml +5 -5
  191. package/miniprogram_dist/bld-retry/index.wxss +22 -22
  192. package/miniprogram_dist/bld-scroll-view/index.js +2 -2
  193. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  194. package/miniprogram_dist/bld-scroll-view/index.json +7 -7
  195. package/miniprogram_dist/bld-scroll-view/index.wxml +42 -42
  196. package/miniprogram_dist/bld-scroll-view/index.wxss +6 -6
  197. package/miniprogram_dist/bld-tag/index.js +2 -2
  198. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  199. package/miniprogram_dist/bld-tag/index.json +3 -3
  200. package/miniprogram_dist/bld-tag/index.wxml +2 -2
  201. package/miniprogram_dist/bld-tag/index.wxss +107 -107
  202. package/miniprogram_dist/bld-text/index.js +2 -2
  203. package/miniprogram_dist/bld-text/index.js.map +1 -1
  204. package/miniprogram_dist/bld-text/index.json +2 -2
  205. package/miniprogram_dist/bld-text/index.wxml +3 -3
  206. package/miniprogram_dist/bld-text/index.wxss +25 -25
  207. package/miniprogram_dist/bld-toast/index.js +2 -2
  208. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  209. package/miniprogram_dist/bld-toast/index.json +5 -5
  210. package/miniprogram_dist/bld-toast/index.wxml +26 -26
  211. package/miniprogram_dist/bld-toast/index.wxss +94 -94
  212. package/miniprogram_dist/bld-toast/toast.js +2 -2
  213. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  214. package/miniprogram_dist/bld-wrapper/index.js +2 -2
  215. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  216. package/miniprogram_dist/bld-wrapper/index.json +4 -4
  217. package/miniprogram_dist/bld-wrapper/index.wxml +6 -6
  218. package/miniprogram_dist/bld-wrapper/index.wxss +6 -6
  219. package/miniprogram_dist/button/index.js.map +1 -1
  220. package/miniprogram_dist/button/index.json +3 -3
  221. package/miniprogram_dist/button/index.wxml +41 -41
  222. package/miniprogram_dist/button/index.wxss +175 -175
  223. package/miniprogram_dist/cell/index.js +2 -2
  224. package/miniprogram_dist/cell/index.js.map +1 -1
  225. package/miniprogram_dist/cell/index.json +5 -5
  226. package/miniprogram_dist/cell/index.wxml +24 -24
  227. package/miniprogram_dist/cell/index.wxss +62 -62
  228. package/miniprogram_dist/cell-group/index.js +2 -2
  229. package/miniprogram_dist/cell-group/index.js.map +1 -1
  230. package/miniprogram_dist/cell-group/index.json +2 -2
  231. package/miniprogram_dist/cell-group/index.wxml +9 -9
  232. package/miniprogram_dist/cell-group/index.wxss +28 -28
  233. package/miniprogram_dist/grid/index.js +2 -2
  234. package/miniprogram_dist/grid/index.js.map +1 -1
  235. package/miniprogram_dist/grid/index.json +3 -3
  236. package/miniprogram_dist/grid/index.wxml +2 -2
  237. package/miniprogram_dist/grid/index.wxss +19 -19
  238. package/miniprogram_dist/grid-item/index.js +2 -2
  239. package/miniprogram_dist/grid-item/index.js.map +1 -1
  240. package/miniprogram_dist/grid-item/index.json +5 -5
  241. package/miniprogram_dist/grid-item/index.wxml +45 -45
  242. package/miniprogram_dist/grid-item/index.wxss +50 -50
  243. package/miniprogram_dist/icon/index.js +2 -2
  244. package/miniprogram_dist/icon/index.js.map +1 -1
  245. package/miniprogram_dist/icon/index.json +3 -3
  246. package/miniprogram_dist/icon/index.wxml +35 -35
  247. package/miniprogram_dist/icon/index.wxss +200 -200
  248. package/miniprogram_dist/timeline/index.js +2 -2
  249. package/miniprogram_dist/timeline/index.js.map +1 -1
  250. package/miniprogram_dist/timeline/index.json +2 -2
  251. package/miniprogram_dist/timeline/index.wxml +1 -1
  252. package/miniprogram_dist/timeline-item/index.js +2 -2
  253. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  254. package/miniprogram_dist/timeline-item/index.json +5 -5
  255. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  256. package/miniprogram_dist/timeline-item/index.wxss +30 -30
  257. package/miniprogram_dist/utils/systemInfo.js +52 -52
  258. package/package.json +72 -72
  259. package/project.config.json +4 -4
  260. package/src/assets/font/iconfont.wxss +185 -185
  261. package/src/assets/style/border.wxss +94 -94
  262. package/src/bld-action-sheet/index.js +82 -82
  263. package/src/bld-action-sheet/index.json +8 -8
  264. package/src/bld-action-sheet/index.scss +179 -179
  265. package/src/bld-action-sheet/index.wxml +56 -56
  266. package/src/bld-action-sheet/index.wxss +159 -159
  267. package/src/bld-badge/index.js +53 -53
  268. package/src/bld-badge/index.json +3 -3
  269. package/src/bld-badge/index.scss +45 -45
  270. package/src/bld-badge/index.wxml +13 -13
  271. package/src/bld-badge/index.wxss +42 -42
  272. package/src/bld-button/index.js +13 -13
  273. package/src/bld-button/index.json +7 -7
  274. package/src/bld-button/index.scss +44 -44
  275. package/src/bld-button/index.wxml +3 -3
  276. package/src/bld-button/index.wxss +36 -36
  277. package/src/bld-button-v2/index.js +92 -0
  278. package/src/bld-button-v2/index.json +3 -0
  279. package/src/bld-button-v2/index.scss +209 -0
  280. package/src/bld-button-v2/index.wxml +42 -0
  281. package/src/bld-button-v2/index.wxss +178 -0
  282. package/src/bld-card/index.js +3 -3
  283. package/src/bld-card/index.json +2 -2
  284. package/src/bld-card/index.scss +6 -6
  285. package/src/bld-card/index.wxml +5 -5
  286. package/src/bld-card/index.wxss +5 -5
  287. package/src/bld-cell/index.js +28 -28
  288. package/src/bld-cell/index.json +7 -7
  289. package/src/bld-cell/index.scss +42 -42
  290. package/src/bld-cell/index.wxml +42 -42
  291. package/src/bld-cell/index.wxss +38 -38
  292. package/src/bld-cell-field/index.js +11 -11
  293. package/src/bld-cell-field/index.json +6 -6
  294. package/src/bld-cell-field/index.scss +21 -21
  295. package/src/bld-cell-field/index.wxml +8 -8
  296. package/src/bld-cell-field/index.wxss +18 -18
  297. package/src/bld-cell-group/index.js +11 -11
  298. package/src/bld-cell-group/index.json +2 -2
  299. package/src/bld-cell-group/index.scss +13 -13
  300. package/src/bld-cell-group/index.wxml +14 -14
  301. package/src/bld-cell-group/index.wxss +10 -10
  302. package/src/bld-checkbox/index.js +110 -110
  303. package/src/bld-checkbox/index.json +5 -5
  304. package/src/bld-checkbox/index.scss +71 -71
  305. package/src/bld-checkbox/index.wxml +66 -66
  306. package/src/bld-checkbox/index.wxss +61 -61
  307. package/src/bld-checkbox-group/index.js +84 -84
  308. package/src/bld-checkbox-group/index.json +3 -3
  309. package/src/bld-cloud-image/index.js +79 -79
  310. package/src/bld-cloud-image/index.json +2 -2
  311. package/src/bld-cloud-image/index.scss +3 -3
  312. package/src/bld-cloud-image/index.wxml +14 -14
  313. package/src/bld-cloud-image/index.wxss +2 -2
  314. package/src/bld-collapse/index.js +62 -62
  315. package/src/bld-collapse/index.json +3 -3
  316. package/src/bld-collapse/index.scss +6 -6
  317. package/src/bld-collapse/index.wxml +8 -8
  318. package/src/bld-collapse/index.wxss +6 -6
  319. package/src/bld-content-container/index.js +46 -46
  320. package/src/bld-content-container/index.json +2 -2
  321. package/src/bld-content-container/index.wxml +5 -5
  322. package/src/bld-drawer/index.js +40 -40
  323. package/src/bld-drawer/index.json +3 -3
  324. package/src/bld-drawer/index.scss +78 -78
  325. package/src/bld-drawer/index.wxml +13 -13
  326. package/src/bld-drawer/index.wxss +57 -57
  327. package/src/bld-empty-page/index.js +23 -23
  328. package/src/bld-empty-page/index.json +5 -5
  329. package/src/bld-empty-page/index.scss +15 -15
  330. package/src/bld-empty-page/index.wxml +11 -11
  331. package/src/bld-empty-page/index.wxss +13 -13
  332. package/src/bld-form/bld-form-item/bld-form-date/index.js +167 -167
  333. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  334. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  335. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  336. package/src/bld-form/bld-form-item/bld-form-date/index.wxss +55 -55
  337. package/src/bld-form/bld-form-item/bld-form-input/index.js +48 -48
  338. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  339. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  340. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +26 -26
  341. package/src/bld-form/bld-form-item/bld-form-input/index.wxss +26 -26
  342. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +145 -145
  343. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  344. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  345. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  346. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxss +119 -119
  347. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  348. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  349. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  350. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  351. package/src/bld-form/bld-form-item/bld-form-step/index.wxss +43 -43
  352. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  353. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  354. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  355. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  356. package/src/bld-form/bld-form-item/bld-form-switch/index.wxss +20 -20
  357. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  358. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  359. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  360. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  361. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxss +26 -26
  362. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  363. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  364. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  365. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  366. package/src/bld-form/bld-form-item/bld-form-time/index.wxss +55 -55
  367. package/src/bld-half-screen/index.js +166 -166
  368. package/src/bld-half-screen/index.json +4 -4
  369. package/src/bld-half-screen/index.scss +109 -109
  370. package/src/bld-half-screen/index.wxml +36 -36
  371. package/src/bld-half-screen/index.wxss +106 -106
  372. package/src/bld-icon/index.js +8 -8
  373. package/src/bld-icon/index.json +3 -3
  374. package/src/bld-icon/index.scss +204 -204
  375. package/src/bld-icon/index.wxml +1 -1
  376. package/src/bld-icon/index.wxss +202 -202
  377. package/src/bld-loading/index.js +9 -9
  378. package/src/bld-loading/index.json +6 -6
  379. package/src/bld-loading/index.scss +25 -25
  380. package/src/bld-loading/index.wxml +8 -8
  381. package/src/bld-loading/index.wxss +28 -28
  382. package/src/bld-message/index.js +90 -90
  383. package/src/bld-message/index.json +3 -3
  384. package/src/bld-message/index.scss +66 -66
  385. package/src/bld-message/index.wxml +8 -8
  386. package/src/bld-message/index.wxss +76 -76
  387. package/src/bld-message/message.js +61 -61
  388. package/src/bld-modal/index.js +122 -122
  389. package/src/bld-modal/index.json +6 -6
  390. package/src/bld-modal/index.scss +107 -107
  391. package/src/bld-modal/index.wxml +22 -22
  392. package/src/bld-modal/index.wxss +96 -96
  393. package/src/bld-modal/modal.js +37 -37
  394. package/src/bld-nav-bar/index.js +131 -131
  395. package/src/bld-nav-bar/index.json +6 -6
  396. package/src/bld-nav-bar/index.scss +48 -48
  397. package/src/bld-nav-bar/index.wxml +43 -43
  398. package/src/bld-nav-bar/index.wxss +45 -45
  399. package/src/bld-nav-bar1/index.js +90 -90
  400. package/src/bld-nav-bar1/index.json +5 -5
  401. package/src/bld-nav-bar1/index.scss +39 -39
  402. package/src/bld-nav-bar1/index.wxml +24 -24
  403. package/src/bld-nav-bar1/index.wxss +35 -35
  404. package/src/bld-navbar/index.js +62 -62
  405. package/src/bld-navbar/index.json +5 -5
  406. package/src/bld-navbar/index.scss +34 -34
  407. package/src/bld-navbar/index.wxml +7 -7
  408. package/src/bld-navbar/index.wxss +30 -30
  409. package/src/bld-navbar-group/index.js +139 -139
  410. package/src/bld-navbar-group/index.json +3 -3
  411. package/src/bld-navbar-group/index.scss +32 -32
  412. package/src/bld-navbar-group/index.wxml +36 -36
  413. package/src/bld-navbar-group/index.wxss +29 -29
  414. package/src/bld-notice-bar/index.js +69 -69
  415. package/src/bld-notice-bar/index.json +3 -3
  416. package/src/bld-notice-bar/index.scss +58 -58
  417. package/src/bld-notice-bar/index.wxml +29 -29
  418. package/src/bld-notice-bar/index.wxss +50 -50
  419. package/src/bld-overlay/index.js +17 -17
  420. package/src/bld-overlay/index.json +3 -3
  421. package/src/bld-overlay/index.scss +11 -11
  422. package/src/bld-overlay/index.wxml +11 -11
  423. package/src/bld-overlay/index.wxss +10 -10
  424. package/src/bld-page/index.js +78 -78
  425. package/src/bld-page/index.json +7 -7
  426. package/src/bld-page/index.scss +16 -16
  427. package/src/bld-page/index.wxml +28 -28
  428. package/src/bld-page/index.wxss +15 -15
  429. package/src/bld-pop-up/index.js +29 -29
  430. package/src/bld-pop-up/index.json +6 -6
  431. package/src/bld-pop-up/index.scss +27 -27
  432. package/src/bld-pop-up/index.wxml +18 -18
  433. package/src/bld-pop-up/index.wxss +26 -26
  434. package/src/bld-progress/index.js +49 -49
  435. package/src/bld-progress/index.json +3 -3
  436. package/src/bld-progress/index.scss +73 -73
  437. package/src/bld-progress/index.wxml +34 -34
  438. package/src/bld-progress/index.wxss +62 -62
  439. package/src/bld-radio/index.js +64 -64
  440. package/src/bld-radio/index.json +3 -3
  441. package/src/bld-radio/index.scss +67 -67
  442. package/src/bld-radio/index.wxml +23 -23
  443. package/src/bld-radio/index.wxss +78 -78
  444. package/src/bld-radio-group/index.js +82 -82
  445. package/src/bld-radio-group/index.json +3 -3
  446. package/src/bld-retry/index.js +23 -23
  447. package/src/bld-retry/index.json +2 -2
  448. package/src/bld-retry/index.scss +26 -26
  449. package/src/bld-retry/index.wxml +5 -5
  450. package/src/bld-retry/index.wxss +22 -22
  451. package/src/bld-scroll-view/index.js +28 -28
  452. package/src/bld-scroll-view/index.json +7 -7
  453. package/src/bld-scroll-view/index.scss +7 -7
  454. package/src/bld-scroll-view/index.wxml +42 -42
  455. package/src/bld-scroll-view/index.wxss +6 -6
  456. package/src/bld-tag/index.js +33 -33
  457. package/src/bld-tag/index.json +3 -3
  458. package/src/bld-tag/index.scss +126 -126
  459. package/src/bld-tag/index.wxml +2 -2
  460. package/src/bld-tag/index.wxss +107 -107
  461. package/src/bld-text/index.js +46 -46
  462. package/src/bld-text/index.json +2 -2
  463. package/src/bld-text/index.scss +30 -30
  464. package/src/bld-text/index.wxml +3 -3
  465. package/src/bld-text/index.wxss +25 -25
  466. package/src/bld-toast/index.js +113 -113
  467. package/src/bld-toast/index.json +5 -5
  468. package/src/bld-toast/index.scss +111 -111
  469. package/src/bld-toast/index.wxml +26 -26
  470. package/src/bld-toast/index.wxss +94 -94
  471. package/src/bld-toast/toast.js +34 -34
  472. package/src/bld-wrapper/index.js +75 -75
  473. package/src/bld-wrapper/index.json +4 -4
  474. package/src/bld-wrapper/index.scss +7 -7
  475. package/src/bld-wrapper/index.wxml +6 -6
  476. package/src/bld-wrapper/index.wxss +6 -6
  477. package/src/button/index.js +91 -91
  478. package/src/button/index.json +3 -3
  479. package/src/button/index.scss +206 -206
  480. package/src/button/index.wxml +41 -41
  481. package/src/button/index.wxss +175 -175
  482. package/src/cell/index.js +80 -80
  483. package/src/cell/index.json +5 -5
  484. package/src/cell/index.scss +73 -73
  485. package/src/cell/index.wxml +24 -24
  486. package/src/cell/index.wxss +62 -62
  487. package/src/cell-group/index.js +70 -70
  488. package/src/cell-group/index.json +2 -2
  489. package/src/cell-group/index.scss +31 -31
  490. package/src/cell-group/index.wxml +9 -9
  491. package/src/cell-group/index.wxss +28 -28
  492. package/src/grid/index.js +67 -67
  493. package/src/grid/index.json +3 -3
  494. package/src/grid/index.scss +20 -20
  495. package/src/grid/index.wxml +2 -2
  496. package/src/grid/index.wxss +19 -19
  497. package/src/grid-item/index.js +72 -72
  498. package/src/grid-item/index.json +5 -5
  499. package/src/grid-item/index.scss +58 -58
  500. package/src/grid-item/index.wxml +45 -45
  501. package/src/grid-item/index.wxss +50 -50
  502. package/src/icon/index.js +41 -41
  503. package/src/icon/index.json +3 -3
  504. package/src/icon/index.scss +16 -16
  505. package/src/icon/index.wxml +35 -35
  506. package/src/icon/index.wxss +200 -200
  507. package/src/timeline/index.js +49 -49
  508. package/src/timeline/index.json +2 -2
  509. package/src/timeline/index.wxml +1 -1
  510. package/src/timeline-item/index.js +27 -27
  511. package/src/timeline-item/index.json +5 -5
  512. package/src/timeline-item/index.scss +36 -36
  513. package/src/timeline-item/index.wxml +9 -9
  514. package/src/timeline-item/index.wxss +30 -30
  515. package/src/utils/systemInfo.js +52 -52
  516. package/tsconfig.json +25 -25
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/index.js"],"names":["defaults_data","visible","show","mask","ghost","message","position","duration","image","icon","iconColor","iconSize","type","zIndex","Component","externalClasses","options","addGlobalClass","data","transformStyle","ready","wx","canIUse","windowInfo","getWindowInfo","computedBarH","getSystemInfo","success","methods","screenHeight","windowHeight","statusBarHeight","customBarH","capsule","getMenuButtonBoundingClientRect","bottom","top","setData","open","timer","clearTimeout","setTimeout","close","handleHide"],"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,kBAA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,QAAJ,EAAc;AACZ,aAAKgC,KAAL,GAAaE,WAAW,YAAM;AAC5B,iBAAKC,KAAL;AACA,iBAAKH,KAAL,GAAa,IAAb;AACD,SAHY,EAGVhC,QAHU,CAAb;AAID;AACF,KA3DM;AA6DPoC,cA7DO,wBA6DM,CAEZ,CA/DM;AAiEPD,SAjEO,mBAiEC;AACN,WAAKL,OAAL,cACKrC,aADL;AAGD;AArEM;AA1BD,CAAV,E","file":"bld-toast/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 30);\n","const defaults_data = {\n visible: false,\n show: false,\n mask: false,\n ghost: true,\n message: '',\n position: 'middle', //top middle bottom\n duration: 20000,\n image: '',\n icon: '',\n iconColor: '#fff',\n iconSize: 80,\n type: '',\n zIndex: -1\n}\n\nComponent({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n data: {\n ...defaults_data,\n transformStyle: '',\n },\n\n ready() {\n if (wx.canIUse('getWindowInfo')) {\n const windowInfo = wx.getWindowInfo()\n this.computedBarH(windowInfo)\n } else {\n // 该方法为同步\n wx.getSystemInfo({\n success: (windowInfo) => {\n this.computedBarH(windowInfo)\n }\n })\n }\n },\n\n methods: {\n computedBarH(windowInfo) {\n const {\n screenHeight,\n windowHeight,\n statusBarHeight\n } = windowInfo;\n\n // 自定义导航栏\n if (screenHeight === windowHeight) {\n let customBarH = 44;\n let capsule = wx.getMenuButtonBoundingClientRect();\n if (capsule) {\n customBarH = capsule.bottom - statusBarHeight + 4;\n }\n\n defaults_data.top = customBarH + statusBarHeight + 'px'\n this.setData({\n top: customBarH + statusBarHeight + 'px'\n })\n }\n },\n\n open(options) {\n const {\n type = '',\n icon = '',\n image = '',\n duration = 20000,\n position = 'middle',\n mask = false,\n ghost = true,\n zIndex = 2001\n } = options\n\n this.setData({\n ...options,\n type,\n icon,\n image,\n mask,\n ghost,\n position,\n visible: true,\n zIndex\n }, () => {\n this.setData({\n show: true\n })\n })\n\n if (this.timer) clearTimeout(this.timer)\n\n if (duration) {\n this.timer = setTimeout(() => {\n this.close()\n this.timer = null\n }, duration)\n }\n },\n\n handleHide() {\n\n },\n\n close() {\n this.setData({\n ...defaults_data\n })\n }\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/index.js"],"names":["defaults_data","visible","show","mask","ghost","message","position","duration","image","icon","iconColor","iconSize","type","zIndex","Component","externalClasses","options","addGlobalClass","data","transformStyle","ready","wx","canIUse","windowInfo","getWindowInfo","computedBarH","getSystemInfo","success","methods","screenHeight","windowHeight","statusBarHeight","customBarH","capsule","getMenuButtonBoundingClientRect","bottom","top","setData","open","timer","clearTimeout","setTimeout","close","handleHide"],"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;Q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KL,OAAL,cACKrC,aADL;AAGD;AArEM;AA1BD,CAAV,E","file":"bld-toast\\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 = 31);\n","const defaults_data = {\r\n visible: false,\r\n show: false,\r\n mask: false,\r\n ghost: true,\r\n message: '',\r\n position: 'middle', //top middle bottom\r\n duration: 20000,\r\n image: '',\r\n icon: '',\r\n iconColor: '#fff',\r\n iconSize: 80,\r\n type: '',\r\n zIndex: -1\r\n}\r\n\r\nComponent({\r\n externalClasses: ['custom-class'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n data: {\r\n ...defaults_data,\r\n transformStyle: '',\r\n },\r\n\r\n ready() {\r\n if (wx.canIUse('getWindowInfo')) {\r\n const windowInfo = wx.getWindowInfo()\r\n this.computedBarH(windowInfo)\r\n } else {\r\n // 该方法为同步\r\n wx.getSystemInfo({\r\n success: (windowInfo) => {\r\n this.computedBarH(windowInfo)\r\n }\r\n })\r\n }\r\n },\r\n\r\n methods: {\r\n computedBarH(windowInfo) {\r\n const {\r\n screenHeight,\r\n windowHeight,\r\n statusBarHeight\r\n } = windowInfo;\r\n\r\n // 自定义导航栏\r\n if (screenHeight === windowHeight) {\r\n let customBarH = 44;\r\n let capsule = wx.getMenuButtonBoundingClientRect();\r\n if (capsule) {\r\n customBarH = capsule.bottom - statusBarHeight + 4;\r\n }\r\n\r\n defaults_data.top = customBarH + statusBarHeight + 'px'\r\n this.setData({\r\n top: customBarH + statusBarHeight + 'px'\r\n })\r\n }\r\n },\r\n\r\n open(options) {\r\n const {\r\n type = '',\r\n icon = '',\r\n image = '',\r\n duration = 20000,\r\n position = 'middle',\r\n mask = false,\r\n ghost = true,\r\n zIndex = 2001\r\n } = options\r\n\r\n this.setData({\r\n ...options,\r\n type,\r\n icon,\r\n image,\r\n mask,\r\n ghost,\r\n position,\r\n visible: true,\r\n zIndex\r\n }, () => {\r\n this.setData({\r\n show: true\r\n })\r\n })\r\n\r\n if (this.timer) clearTimeout(this.timer)\r\n\r\n if (duration) {\r\n this.timer = setTimeout(() => {\r\n this.close()\r\n this.timer = null\r\n }, duration)\r\n }\r\n },\r\n\r\n handleHide() {\r\n\r\n },\r\n\r\n close() {\r\n this.setData({\r\n ...defaults_data\r\n })\r\n }\r\n }\r\n})"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "m-icon": "../icon/index"
5
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "m-icon": "../icon/index"
5
+ }
6
6
  }
@@ -1,27 +1,27 @@
1
- <view
2
- class="m-toast__mask"
3
- style="{{ 'z-index:' + zIndex + ';' + ghost ? 'opacity: 0' : '' }}"
4
- wx:if="{{ visible && mask }}"
5
- bindtap="handleHide"
6
- ></view>
7
-
8
- <view
9
- class="custom-class m-toast__wrap m-toast--{{ position }} {{ show ? 'm-toast--show' : '' }}"
10
- style="z-index: {{ zIndex }};{{ position === 'top' ? transformStyle : '' }}"
11
- hidden="{{ !visible }}"
12
- >
13
- <view class="m-toast">
14
-
15
- <view wx:if="{{ icon }}" class="m-toast__icon">
16
- <m-icon size="{{ iconSize }}" name="{{ icon }}" color="{{ iconColor }}" />
17
- </view>
18
-
19
- <view wx:elif="{{ image }}" class="m-toast__image">
20
- <image class="m-toast__image__inner" src="{{ image }}" />
21
- </view>
22
-
23
- <view wx:if="{{ type === 'loading' }}" class="m-toast__loading"></view>
24
- <view wx:if="{{ message }}">{{ message }}</view>
25
-
26
- </view>
1
+ <view
2
+ class="m-toast__mask"
3
+ style="{{ 'z-index:' + zIndex + ';' + ghost ? 'opacity: 0' : '' }}"
4
+ wx:if="{{ visible && mask }}"
5
+ bindtap="handleHide"
6
+ ></view>
7
+
8
+ <view
9
+ class="custom-class m-toast__wrap m-toast--{{ position }} {{ show ? 'm-toast--show' : '' }}"
10
+ style="z-index: {{ zIndex }};{{ position === 'top' ? transformStyle : '' }}"
11
+ hidden="{{ !visible }}"
12
+ >
13
+ <view class="m-toast">
14
+
15
+ <view wx:if="{{ icon }}" class="m-toast__icon">
16
+ <m-icon size="{{ iconSize }}" name="{{ icon }}" color="{{ iconColor }}" />
17
+ </view>
18
+
19
+ <view wx:elif="{{ image }}" class="m-toast__image">
20
+ <image class="m-toast__image__inner" src="{{ image }}" />
21
+ </view>
22
+
23
+ <view wx:if="{{ type === 'loading' }}" class="m-toast__loading"></view>
24
+ <view wx:if="{{ message }}">{{ message }}</view>
25
+
26
+ </view>
27
27
  </view>
@@ -1,95 +1,95 @@
1
- .m-toast__mask {
2
- z-index: 2000;
3
- position: fixed;
4
- top: 0;
5
- bottom: 0;
6
- left: 0;
7
- right: 0;
8
- background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
9
- }
10
-
11
- .m-toast__wrap {
12
- opacity: 0;
13
- z-index: 2001;
14
- position: fixed;
15
- left: 50%;
16
- transform: translate(-50%, -50%);
17
- transition: opacity 0.15s ease-in;
18
- }
19
- .m-toast__wrap.m-toast--top {
20
- top: 110rpx;
21
- animation: toast-top 0.25s ease-in-out;
22
- }
23
- .m-toast__wrap.m-toast--middle {
24
- top: 45%;
25
- }
26
- .m-toast__wrap.m-toast--bottom {
27
- bottom: 110rpx;
28
- animation: toast-bottom 0.25s ease-in-out;
29
- }
30
- .m-toast__wrap.m-toast--show {
31
- opacity: 1;
32
- }
33
- .m-toast__wrap .m-toast {
34
- margin: 0 auto;
35
- padding: 24rpx 40rpx;
36
- color: #fff;
37
- font-size: 28rpx;
38
- line-height: 28rpx;
39
- text-align: center;
40
- border-radius: 4rpx;
41
- box-sizing: border-box;
42
- background: rgba(0, 0, 0, 0.75);
43
- }
44
- .m-toast__wrap .m-toast .m-toast__icon {
45
- padding: 30rpx 0 60rpx;
46
- }
47
- .m-toast__wrap .m-toast .m-toast__image {
48
- padding-bottom: 20rpx;
49
- }
50
- .m-toast__wrap .m-toast .m-toast__image .m-toast__image__inner {
51
- max-width: 160rpx;
52
- max-height: 160rpx;
53
- }
54
- .m-toast__wrap .m-toast .m-toast__loading {
55
- display: inline-block;
56
- margin: 26rpx 36rpx 36rpx;
57
- width: 54rpx;
58
- height: 54rpx;
59
- border-radius: 50%;
60
- border: 6rpx solid #fff;
61
- border-left-color: transparent;
62
- vertical-align: middle;
63
- background: 0 0;
64
- animation: btn-spinner 0.8s linear infinite;
65
- }
66
- @keyframes toast-top {
67
- 0% {
68
- top: 40rpx;
69
- }
70
- 60% {
71
- top: 130rpx;
72
- }
73
- 100% {
74
- top: 110rpx;
75
- }
76
- }
77
- @keyframes toast-bottom {
78
- 0% {
79
- bottom: 40rpx;
80
- }
81
- 60% {
82
- bottom: 130rpx;
83
- }
84
- 100% {
85
- bottom: 110rpx;
86
- }
87
- }
88
- @keyframes btn-spinner {
89
- 0% {
90
- transform: rotate(0);
91
- }
92
- 100% {
93
- transform: rotate(360deg);
94
- }
1
+ .m-toast__mask {
2
+ z-index: 2000;
3
+ position: fixed;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
9
+ }
10
+
11
+ .m-toast__wrap {
12
+ opacity: 0;
13
+ z-index: 2001;
14
+ position: fixed;
15
+ left: 50%;
16
+ transform: translate(-50%, -50%);
17
+ transition: opacity 0.15s ease-in;
18
+ }
19
+ .m-toast__wrap.m-toast--top {
20
+ top: 110rpx;
21
+ animation: toast-top 0.25s ease-in-out;
22
+ }
23
+ .m-toast__wrap.m-toast--middle {
24
+ top: 45%;
25
+ }
26
+ .m-toast__wrap.m-toast--bottom {
27
+ bottom: 110rpx;
28
+ animation: toast-bottom 0.25s ease-in-out;
29
+ }
30
+ .m-toast__wrap.m-toast--show {
31
+ opacity: 1;
32
+ }
33
+ .m-toast__wrap .m-toast {
34
+ margin: 0 auto;
35
+ padding: 24rpx 40rpx;
36
+ color: #fff;
37
+ font-size: 28rpx;
38
+ line-height: 28rpx;
39
+ text-align: center;
40
+ border-radius: 4rpx;
41
+ box-sizing: border-box;
42
+ background: rgba(0, 0, 0, 0.75);
43
+ }
44
+ .m-toast__wrap .m-toast .m-toast__icon {
45
+ padding: 30rpx 0 60rpx;
46
+ }
47
+ .m-toast__wrap .m-toast .m-toast__image {
48
+ padding-bottom: 20rpx;
49
+ }
50
+ .m-toast__wrap .m-toast .m-toast__image .m-toast__image__inner {
51
+ max-width: 160rpx;
52
+ max-height: 160rpx;
53
+ }
54
+ .m-toast__wrap .m-toast .m-toast__loading {
55
+ display: inline-block;
56
+ margin: 26rpx 36rpx 36rpx;
57
+ width: 54rpx;
58
+ height: 54rpx;
59
+ border-radius: 50%;
60
+ border: 6rpx solid #fff;
61
+ border-left-color: transparent;
62
+ vertical-align: middle;
63
+ background: 0 0;
64
+ animation: btn-spinner 0.8s linear infinite;
65
+ }
66
+ @keyframes toast-top {
67
+ 0% {
68
+ top: 40rpx;
69
+ }
70
+ 60% {
71
+ top: 130rpx;
72
+ }
73
+ 100% {
74
+ top: 110rpx;
75
+ }
76
+ }
77
+ @keyframes toast-bottom {
78
+ 0% {
79
+ bottom: 40rpx;
80
+ }
81
+ 60% {
82
+ bottom: 130rpx;
83
+ }
84
+ 100% {
85
+ bottom: 110rpx;
86
+ }
87
+ }
88
+ @keyframes btn-spinner {
89
+ 0% {
90
+ transform: rotate(0);
91
+ }
92
+ 100% {
93
+ transform: rotate(360deg);
94
+ }
95
95
  }
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 31);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 32);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 31:
90
+ /***/ 32:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/toast.js"],"names":["getCtx","selector","pages","getCurrentPages","ctx","length","componentCtx","selectComponent","console","error","Toast","options","message","position","open","close"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,SAASA,MAAT,CAAgBC,QAAhB,EAA0B;AACxB,MAAMC,QAAQC,iBAAd;AACA,MAAMC,MAAMF,MAAMA,MAAMG,MAAN,GAAe,CAArB,CAAZ;AACA,MAAMC,eAAeF,IAAIG,eAAJ,CAAoBN,QAApB,CAArB;AACA,MAAI,CAACK,YAAL,EAAmB;AACjBE,YAAQC,KAAR,CAAc,sBAAd;AACA,WAAO,IAAP;AACD;AACD,SAAOH,YAAP;AACD;;AAGD,IAAMI,QAAQ,SAARA,KAAQ,UAAW;AAAA,iBAGnBC,OAHmB;AAAA,mCAErBV,QAFqB;AAAA,MAErBA,QAFqB,qCAEV,QAFU;;AAIvB,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;;AAEA,MAAI,OAAOU,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD,OADD;AAERE,gBAAU;AAFF,KAAV;AAID;AACDT,MAAIU,IAAJ,CAASH,OAAT;;AAEA,SAAOP,GAAP;AACD,CAfD;;AAiBAM,MAAMK,KAAN,GAAc,YAAyB;AAAA,MAAxBd,QAAwB,uEAAb,QAAa;;AACrC,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;AACAG,MAAIW,KAAJ;AACD,CAHD;;kBAKeL,K","file":"bld-toast/toast.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 = 31);\n","function getCtx(selector) {\n const pages = getCurrentPages()\n const ctx = pages[pages.length - 1]\n const componentCtx = ctx.selectComponent(selector)\n if (!componentCtx) {\n console.error('无法找到对应的组件,请按文档说明使用组件')\n return null\n }\n return componentCtx\n}\n\n\nconst Toast = options => {\n const {\n selector = '#toast'\n } = options\n const ctx = getCtx(selector)\n\n if (typeof options === \"string\") {\n options = {\n message: options,\n position: 'bottom'\n }\n }\n ctx.open(options)\n\n return ctx\n}\n\nToast.close = (selector = '#toast') => {\n const ctx = getCtx(selector)\n ctx.close()\n}\n\nexport default Toast"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/toast.js"],"names":["getCtx","selector","pages","getCurrentPages","ctx","length","componentCtx","selectComponent","console","error","Toast","options","message","position","open","close"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,SAASA,MAAT,CAAgBC,QAAhB,EAA0B;AACxB,MAAMC,QAAQC,iBAAd;AACA,MAAMC,MAAMF,MAAMA,MAAMG,MAAN,GAAe,CAArB,CAAZ;AACA,MAAMC,eAAeF,IAAIG,eAAJ,CAAoBN,QAApB,CAArB;AACA,MAAI,CAACK,YAAL,EAAmB;AACjBE,YAAQC,KAAR,CAAc,sBAAd;AACA,WAAO,IAAP;AACD;AACD,SAAOH,YAAP;AACD;;AAGD,IAAMI,QAAQ,SAARA,KAAQ,UAAW;AAAA,iBAGnBC,OAHmB;AAAA,mCAErBV,QAFqB;AAAA,MAErBA,QAFqB,qCAEV,QAFU;;AAIvB,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;;AAEA,MAAI,OAAOU,OAAP,KAAmB,QAAvB,EAAiC;AAC/BA,cAAU;AACRC,eAASD,OADD;AAERE,gBAAU;AAFF,KAAV;AAID;AACDT,MAAIU,IAAJ,CAASH,OAAT;;AAEA,SAAOP,GAAP;AACD,CAfD;;AAiBAM,MAAMK,KAAN,GAAc,YAAyB;AAAA,MAAxBd,QAAwB,uEAAb,QAAa;;AACrC,MAAMG,MAAMJ,OAAOC,QAAP,CAAZ;AACAG,MAAIW,KAAJ;AACD,CAHD;;kBAKeL,K","file":"bld-toast\\toast.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 = 32);\n","function getCtx(selector) {\r\n const pages = getCurrentPages()\r\n const ctx = pages[pages.length - 1]\r\n const componentCtx = ctx.selectComponent(selector)\r\n if (!componentCtx) {\r\n console.error('无法找到对应的组件,请按文档说明使用组件')\r\n return null\r\n }\r\n return componentCtx\r\n}\r\n\r\n\r\nconst Toast = options => {\r\n const {\r\n selector = '#toast'\r\n } = options\r\n const ctx = getCtx(selector)\r\n\r\n if (typeof options === \"string\") {\r\n options = {\r\n message: options,\r\n position: 'bottom'\r\n }\r\n }\r\n ctx.open(options)\r\n\r\n return ctx\r\n}\r\n\r\nToast.close = (selector = '#toast') => {\r\n const ctx = getCtx(selector)\r\n ctx.close()\r\n}\r\n\r\nexport default Toast"],"sourceRoot":""}
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 21);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 22);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 21:
90
+ /***/ 22:
91
91
  /***/ (function(module, exports, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-wrapper/index.js"],"names":["app","getApp","menuButtonInfo","globalData","menuButtonDistance","systemInfo","safeArea","saleAreaHeight","screenHeight","bottom","tabBarHeight","statusBarHeight","gap","top","navBarHeight","height","navToTab","navToBottom","topToTab","topToBottom","modeStyleMap","modeToStyle","mode","styles","Object","keys","map","key","join","Component","externalClasses","properties","type","String","value","data","style","observers","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEA,IAAMC,iBAAiBF,IAAIG,UAAJ,CAAeC,kBAAtC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA;AACA,IAAMC,WAAWD,WAAWC,QAA5B;AACA,IAAMC,iBAAiBF,WAAWG,YAAX,GAA0BF,SAASG,MAA1D;AACA,IAAMC,eAAe,KAAKH,cAA1B;;AAEA;AACA,IAAMI,kBAAkBN,WAAWM,eAAnC;AACA,IAAMC,MAAMV,eAAeW,GAAf,GAAqBF,eAAjC;;AAEA,IAAMG,eAAeH,kBAAkBT,eAAea,MAAjC,GAA0CH,MAAM,CAArE;;AAEA;AACA,IAAMI,WAAW;AACfH,OAAQC,YAAR,OADe;AAEfC,2BAAuBD,YAAvB,aAA2CJ,YAA3C;AAFe,CAAjB;;AAKA;AACA,IAAMO,cAAc;AAClBJ,OAAQC,YAAR,OADkB;AAElBC,2BAAuBD,YAAvB;AAFkB,CAApB;;AAKA;AACA,IAAMI,WAAW;AACfL,OAAK,KADU;AAEfE,2BAAuBL,YAAvB;AAFe,CAAjB;;AAKA;AACA,IAAMS,cAAc;AAClBN,OAAK,KADa;AAElBE,UAAQ;AAFU,CAApB;;AAKA,IAAMK,eAAe;AACnB,gBAAcJ,QADK;AAEnB,mBAAiBC,WAFE;AAGnB,gBAAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","const app = getApp();\n\nconst menuButtonInfo = app.globalData.menuButtonDistance;\nconst systemInfo = app.globalData.systemInfo\n// 计算 tab bar 的高度\nconst safeArea = systemInfo.safeArea;\nconst saleAreaHeight = systemInfo.screenHeight - safeArea.bottom;\nconst tabBarHeight = 60 + saleAreaHeight;\n\n// 计算 nav bar 的高度\nconst statusBarHeight = systemInfo.statusBarHeight;\nconst gap = menuButtonInfo.top - statusBarHeight;\n\nconst navBarHeight = statusBarHeight + menuButtonInfo.height + gap * 2;\n\n// 占据 nav bar 和 tab bar 之间的空间\nconst navToTab = {\n top: `${navBarHeight}px`,\n height: `calc(100% - ${navBarHeight}px - ${tabBarHeight}px)`,\n};\n\n// 占据 nav bar 页面底部的空间\nconst navToBottom = {\n top: `${navBarHeight}px`,\n height: `calc(100% - ${navBarHeight}px)`,\n};\n\n// 从页面顶部到 tab bar 之间的空间\nconst topToTab = {\n top: \"0px\",\n height: `calc(100% - ${tabBarHeight}px)`,\n};\n\n// 占据所有空间\nconst topToBottom = {\n top: \"0px\",\n height: \"100%\",\n};\n\nconst modeStyleMap = {\n \"nav-to-tab\": navToTab,\n \"nav-to-bottom\": navToBottom,\n \"top-to-tab\": topToTab,\n \"top-to-bottom\": topToBottom,\n};\n\nfunction modeToStyle(mode) {\n const styles = modeStyleMap[mode];\n return Object.keys(styles)\n .map((key) => {\n return `${key}: ${styles[key]}`;\n })\n .join(\";\");\n}\n\nComponent({\n externalClasses: [\"iclass\"],\n properties: {\n mode: {\n type: String,\n value: \"nav-to-bottom\",\n },\n },\n data: {\n style: \"height:100%\",\n },\n\n observers: {\n mode: function () {\n this.setData({\n style: modeToStyle(this.data.mode),\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-wrapper/index.js"],"names":["app","getApp","menuButtonInfo","globalData","menuButtonDistance","systemInfo","safeArea","saleAreaHeight","screenHeight","bottom","tabBarHeight","statusBarHeight","gap","top","navBarHeight","height","navToTab","navToBottom","topToTab","topToBottom","modeStyleMap","modeToStyle","mode","styles","Object","keys","map","key","join","Component","externalClasses","properties","type","String","value","data","style","observers","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEA,IAAMC,iBAAiBF,IAAIG,UAAJ,CAAeC,kBAAtC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA;AACA,IAAMC,WAAWD,WAAWC,QAA5B;AACA,IAAMC,iBAAiBF,WAAWG,YAAX,GAA0BF,SAASG,MAA1D;AACA,IAAMC,eAAe,KAAKH,cAA1B;;AAEA;AACA,IAAMI,kBAAkBN,WAAWM,eAAnC;AACA,IAAMC,MAAMV,eAAeW,GAAf,GAAqBF,eAAjC;;AAEA,IAAMG,eAAeH,kBAAkBT,eAAea,MAAjC,GAA0CH,MAAM,CAArE;;AAEA;AACA,IAAMI,WAAW;AACfH,OAAQC,YAAR,OADe;AAEfC,2BAAuBD,YAAvB,aAA2CJ,YAA3C;AAFe,CAAjB;;AAKA;AACA,IAAMO,cAAc;AAClBJ,OAAQC,YAAR,OADkB;AAElBC,2BAAuBD,YAAvB;AAFkB,CAApB;;AAKA;AACA,IAAMI,WAAW;AACfL,OAAK,KADU;AAEfE,2BAAuBL,YAAvB;AAFe,CAAjB;;AAKA;AACA,IAAMS,cAAc;AAClBN,OAAK,KADa;AAElBE,UAAQ;AAFU,CAApB;;AAKA,IAAMK,eAAe;AACnB,gBAAcJ,QADK;AAEnB,mBAAiBC,WAFE;AAGnB,gBAAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper\\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 = 22);\n","const app = getApp();\r\n\r\nconst menuButtonInfo = app.globalData.menuButtonDistance;\r\nconst systemInfo = app.globalData.systemInfo\r\n// 计算 tab bar 的高度\r\nconst safeArea = systemInfo.safeArea;\r\nconst saleAreaHeight = systemInfo.screenHeight - safeArea.bottom;\r\nconst tabBarHeight = 60 + saleAreaHeight;\r\n\r\n// 计算 nav bar 的高度\r\nconst statusBarHeight = systemInfo.statusBarHeight;\r\nconst gap = menuButtonInfo.top - statusBarHeight;\r\n\r\nconst navBarHeight = statusBarHeight + menuButtonInfo.height + gap * 2;\r\n\r\n// 占据 nav bar 和 tab bar 之间的空间\r\nconst navToTab = {\r\n top: `${navBarHeight}px`,\r\n height: `calc(100% - ${navBarHeight}px - ${tabBarHeight}px)`,\r\n};\r\n\r\n// 占据 nav bar 页面底部的空间\r\nconst navToBottom = {\r\n top: `${navBarHeight}px`,\r\n height: `calc(100% - ${navBarHeight}px)`,\r\n};\r\n\r\n// 从页面顶部到 tab bar 之间的空间\r\nconst topToTab = {\r\n top: \"0px\",\r\n height: `calc(100% - ${tabBarHeight}px)`,\r\n};\r\n\r\n// 占据所有空间\r\nconst topToBottom = {\r\n top: \"0px\",\r\n height: \"100%\",\r\n};\r\n\r\nconst modeStyleMap = {\r\n \"nav-to-tab\": navToTab,\r\n \"nav-to-bottom\": navToBottom,\r\n \"top-to-tab\": topToTab,\r\n \"top-to-bottom\": topToBottom,\r\n};\r\n\r\nfunction modeToStyle(mode) {\r\n const styles = modeStyleMap[mode];\r\n return Object.keys(styles)\r\n .map((key) => {\r\n return `${key}: ${styles[key]}`;\r\n })\r\n .join(\";\");\r\n}\r\n\r\nComponent({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n mode: {\r\n type: String,\r\n value: \"nav-to-bottom\",\r\n },\r\n },\r\n data: {\r\n style: \"height:100%\",\r\n },\r\n\r\n observers: {\r\n mode: function () {\r\n this.setData({\r\n style: modeToStyle(this.data.mode),\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,5 +1,5 @@
1
- {
2
- "component": true,
3
- "styleIsolation": "apply-shared",
4
- "usingComponents": {}
1
+ {
2
+ "component": true,
3
+ "styleIsolation": "apply-shared",
4
+ "usingComponents": {}
5
5
  }
@@ -1,6 +1,6 @@
1
- <view
2
- class="iclass container"
3
- style="{{ style }}"
4
- >
5
- <slot />
6
- </view>
1
+ <view
2
+ class="iclass container"
3
+ style="{{ style }}"
4
+ >
5
+ <slot />
6
+ </view>
@@ -1,7 +1,7 @@
1
- .container {
2
- display: flex;
3
- flex-direction: column;
4
- overflow: auto;
5
- position: absolute;
6
- width: 100%;
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ overflow: auto;
5
+ position: absolute;
6
+ width: 100%;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/button/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","plain","Boolean","inline","size","round","disabled","loading","full","color","bgcolor","openType","hoverStopPropagation","hoverStartTime","Number","hoverStayTime","sendMessageTitle","sendMessagePath","sendMessageImg","showMessageCard","methods","onTap","data","triggerEvent","getuserinfo","detail","contact","getphonenumber","error"],"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;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AACPC,SADO,mBACC;AACN,UAAI,KAAKC,IAAL,CAAUhB,QAAd,EAAwB,OAAO,KAAP;AACxB,WAAKiB,YAAL,CAAkB,OAAlB;AACD,KAJM;AAKPC,eALO,yBAOC;AAAA,qFAAJ,EAAI;AAAA,6BADNC,MACM;AAAA,UADNA,MACM,+BADG,EACH;;AACN,WAAKF,YAAL,CAAkB,aAAlB,EAAiCE,MAAjC;AACD,KATM;AAUPC,WAVO,qBAYC;AAAA,sFAAJ,EAAI;AAAA,+BADND,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,SAAlB,EAA6BE,MAA7B;AACD,KAdM;AAePE,kBAfO,4BAiBC;AAAA,sFAAJ,EAAI;AAAA,+BADNF,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,gBAAlB,EAAoCE,MAApC;AACD,KAnBM;AAoBPG,SApBO,mBAsBC;AAAA,sFAAJ,EAAI;AAAA,+BADNH,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,OAAlB,EAA2BE,MAA3B;AACD;AAxBM;AAjED,CAAV,E","file":"button/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 = 0);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n // ghost, primary, info, success, warning, error\n type: {\n type: String,\n value: 'default',\n },\n plain: {\n type: Boolean,\n value: false,\n },\n inline: {\n type: Boolean,\n value: false\n },\n size: {\n type: String,\n value: '',\n },\n round: {\n type: Boolean,\n value: false\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n loading: {\n type: Boolean,\n value: false,\n },\n full: {\n type: Boolean,\n value: false\n },\n color: {\n type: String,\n value: ''\n },\n bgcolor: {\n type: String,\n value: ''\n },\n openType: String,\n hoverStopPropagation: Boolean,\n hoverStartTime: {\n type: Number,\n value: 20\n },\n hoverStayTime: {\n type: Number,\n value: 70\n },\n sendMessageTitle: String,\n sendMessagePath: String,\n sendMessageImg: String,\n showMessageCard: Boolean\n },\n\n methods: {\n onTap() {\n if (this.data.disabled) return false\n this.triggerEvent('click')\n },\n getuserinfo({\n detail = {}\n } = {}) {\n this.triggerEvent('getuserinfo', detail)\n },\n contact({\n detail = {}\n } = {}) {\n this.triggerEvent('contact', detail)\n },\n getphonenumber({\n detail = {}\n } = {}) {\n this.triggerEvent('getphonenumber', detail)\n },\n error({\n detail = {}\n } = {}) {\n this.triggerEvent('error', detail)\n }\n }\n});"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/button/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","plain","Boolean","inline","size","round","disabled","loading","full","color","bgcolor","openType","hoverStopPropagation","hoverStartTime","Number","hoverStayTime","sendMessageTitle","sendMessagePath","sendMessageImg","showMessageCard","methods","onTap","data","triggerEvent","getuserinfo","detail","contact","getphonenumber","error"],"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;Q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,UAAI,KAAKC,IAAL,CAAUhB,QAAd,EAAwB,OAAO,KAAP;AACxB,WAAKiB,YAAL,CAAkB,OAAlB;AACD,KAJM;AAKPC,eALO,yBAOC;AAAA,qFAAJ,EAAI;AAAA,6BADNC,MACM;AAAA,UADNA,MACM,+BADG,EACH;;AACN,WAAKF,YAAL,CAAkB,aAAlB,EAAiCE,MAAjC;AACD,KATM;AAUPC,WAVO,qBAYC;AAAA,sFAAJ,EAAI;AAAA,+BADND,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,SAAlB,EAA6BE,MAA7B;AACD,KAdM;AAePE,kBAfO,4BAiBC;AAAA,sFAAJ,EAAI;AAAA,+BADNF,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,gBAAlB,EAAoCE,MAApC;AACD,KAnBM;AAoBPG,SApBO,mBAsBC;AAAA,sFAAJ,EAAI;AAAA,+BADNH,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,OAAlB,EAA2BE,MAA3B;AACD;AAxBM;AAjED,CAAV,E","file":"button\\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 = 0);\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 // ghost, primary, info, success, warning, error\r\n type: {\r\n type: String,\r\n value: 'default',\r\n },\r\n plain: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n inline: {\r\n type: Boolean,\r\n value: false\r\n },\r\n size: {\r\n type: String,\r\n value: '',\r\n },\r\n round: {\r\n type: Boolean,\r\n value: false\r\n },\r\n disabled: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n loading: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n full: {\r\n type: Boolean,\r\n value: false\r\n },\r\n color: {\r\n type: String,\r\n value: ''\r\n },\r\n bgcolor: {\r\n type: String,\r\n value: ''\r\n },\r\n openType: String,\r\n hoverStopPropagation: Boolean,\r\n hoverStartTime: {\r\n type: Number,\r\n value: 20\r\n },\r\n hoverStayTime: {\r\n type: Number,\r\n value: 70\r\n },\r\n sendMessageTitle: String,\r\n sendMessagePath: String,\r\n sendMessageImg: String,\r\n showMessageCard: Boolean\r\n },\r\n\r\n methods: {\r\n onTap() {\r\n if (this.data.disabled) return false\r\n this.triggerEvent('click')\r\n },\r\n getuserinfo({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('getuserinfo', detail)\r\n },\r\n contact({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('contact', detail)\r\n },\r\n getphonenumber({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('getphonenumber', detail)\r\n },\r\n error({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('error', detail)\r\n }\r\n }\r\n});"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,42 +1,42 @@
1
- <button
2
- class="m-button {{ full ? 'm-button--full' : '' }} {{ size ? 'm-button--' + size : '' }} {{ 'm-button--' + type }} {{ round ? 'is-round' : '' }} {{ plain ? 'is-plain' : '' }} {{ loading ? 'is-loading' : '' }} {{ disabled ? 'is-disabled' : ''}} {{ inline ? 'is-inline' : '' }} custom-class"
3
- style="{{ button.getButtonStyle(color, bgcolor) }}"
4
- hover-class="{{ loading || disabled ? '' : plain ? 'is-plain--hover' : 'is-hover' }}"
5
- bind:tap="onTap"
6
- open-type="{{ openType }}"
7
- hover-stop-propagation="{{ hoverStopPropagation }}"
8
- hover-start-time="{{ hoverStartTime }}"
9
- hover-stay-time="{{ hoverStayTime }}"
10
- send-message-title="{{ sendMessageTitle }}"
11
- send-message-path="{{ sendMessagePath }}"
12
- send-message-img="{{ sendMessageImg }}"
13
- show-message-card="{{ showMessageCard }}"
14
- bindcontact="contact"
15
- bindgetuserinfo="getuserinfo"
16
- bindgetphonenumber="getphonenumber"
17
- binderror="error"
18
- plain="true"
19
- >
20
- <view wx:if="{{ loading }}" class="m-button__loading"></view>
21
- <slot wx:else />
22
- </button>
23
-
24
- <wxs module="button">
25
- function getButtonStyle(color, bgcolor) {
26
-
27
- var styles = []
28
- if(color) {
29
- styles.push('color:' + color)
30
- }
31
-
32
- if(bgcolor) {
33
- styles.push('background-color:' + bgcolor)
34
- }
35
-
36
- return styles.join(";")
37
- }
38
-
39
- module.exports = {
40
- getButtonStyle: getButtonStyle
41
- }
1
+ <button
2
+ class="m-button {{ full ? 'm-button--full' : '' }} {{ size ? 'm-button--' + size : '' }} {{ 'm-button--' + type }} {{ round ? 'is-round' : '' }} {{ plain ? 'is-plain' : '' }} {{ loading ? 'is-loading' : '' }} {{ disabled ? 'is-disabled' : ''}} {{ inline ? 'is-inline' : '' }} custom-class"
3
+ style="{{ button.getButtonStyle(color, bgcolor) }}"
4
+ hover-class="{{ loading || disabled ? '' : plain ? 'is-plain--hover' : 'is-hover' }}"
5
+ bind:tap="onTap"
6
+ open-type="{{ openType }}"
7
+ hover-stop-propagation="{{ hoverStopPropagation }}"
8
+ hover-start-time="{{ hoverStartTime }}"
9
+ hover-stay-time="{{ hoverStayTime }}"
10
+ send-message-title="{{ sendMessageTitle }}"
11
+ send-message-path="{{ sendMessagePath }}"
12
+ send-message-img="{{ sendMessageImg }}"
13
+ show-message-card="{{ showMessageCard }}"
14
+ bindcontact="contact"
15
+ bindgetuserinfo="getuserinfo"
16
+ bindgetphonenumber="getphonenumber"
17
+ binderror="error"
18
+ plain="true"
19
+ >
20
+ <view wx:if="{{ loading }}" class="m-button__loading"></view>
21
+ <slot wx:else />
22
+ </button>
23
+
24
+ <wxs module="button">
25
+ function getButtonStyle(color, bgcolor) {
26
+
27
+ var styles = []
28
+ if(color) {
29
+ styles.push('color:' + color)
30
+ }
31
+
32
+ if(bgcolor) {
33
+ styles.push('background-color:' + bgcolor)
34
+ }
35
+
36
+ return styles.join(";")
37
+ }
38
+
39
+ module.exports = {
40
+ getButtonStyle: getButtonStyle
41
+ }
42
42
  </wxs>