bulade-ui 1.1.26 → 1.1.27

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 (400) hide show
  1. package/.babelrc +11 -11
  2. package/.vscode/extensions.json +7 -7
  3. package/.vscode/settings.json +32 -32
  4. package/LICENSE +21 -21
  5. package/README.md +45 -45
  6. package/gulpfile.js +26 -26
  7. package/miniprogram_dist/assets/font/iconfont.scss +549 -549
  8. package/miniprogram_dist/assets/style/border.wxss +94 -94
  9. package/miniprogram_dist/bld-action-sheet/index.js.map +1 -1
  10. package/miniprogram_dist/bld-action-sheet/index.json +8 -8
  11. package/miniprogram_dist/bld-action-sheet/index.wxml +56 -56
  12. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  13. package/miniprogram_dist/bld-badge/index.json +3 -3
  14. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  15. package/miniprogram_dist/bld-button/index.js.map +1 -1
  16. package/miniprogram_dist/bld-button/index.json +7 -7
  17. package/miniprogram_dist/bld-button/index.wxml +3 -3
  18. package/miniprogram_dist/bld-button-v2/index.js.map +1 -1
  19. package/miniprogram_dist/bld-button-v2/index.json +3 -3
  20. package/miniprogram_dist/bld-button-v2/index.wxml +41 -41
  21. package/miniprogram_dist/bld-card/index.js.map +1 -1
  22. package/miniprogram_dist/bld-card/index.json +2 -2
  23. package/miniprogram_dist/bld-card/index.wxml +5 -5
  24. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  25. package/miniprogram_dist/bld-cell/index.json +7 -7
  26. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  27. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  28. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  29. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  30. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  31. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  32. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  33. package/miniprogram_dist/bld-cell-group-v2/index.js.map +1 -1
  34. package/miniprogram_dist/bld-cell-group-v2/index.json +2 -2
  35. package/miniprogram_dist/bld-cell-group-v2/index.wxml +9 -9
  36. package/miniprogram_dist/bld-cell-v2/index.js.map +1 -1
  37. package/miniprogram_dist/bld-cell-v2/index.json +5 -5
  38. package/miniprogram_dist/bld-cell-v2/index.wxml +24 -24
  39. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  40. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  41. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  42. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  43. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  44. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  45. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  46. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  47. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  48. package/miniprogram_dist/bld-collapse/index.json +3 -3
  49. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  50. package/miniprogram_dist/bld-dialog-tip/index.js.map +1 -1
  51. package/miniprogram_dist/bld-dialog-tip/index.json +5 -5
  52. package/miniprogram_dist/bld-dialog-tip/index.wxml +23 -23
  53. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  54. package/miniprogram_dist/bld-drawer/index.json +3 -3
  55. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  56. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  57. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  58. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  59. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
  60. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  61. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  62. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
  63. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  64. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  65. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  66. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  67. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  68. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
  69. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  70. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  71. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
  72. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  73. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  74. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
  75. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  76. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  77. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
  78. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  79. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  80. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  81. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  82. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  83. package/miniprogram_dist/bld-html/index.js.map +1 -1
  84. package/miniprogram_dist/bld-html/index.json +5 -5
  85. package/miniprogram_dist/bld-html/index.wxml +9 -9
  86. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  87. package/miniprogram_dist/bld-icon/index.json +6 -6
  88. package/miniprogram_dist/bld-icon/index.wxml +36 -36
  89. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  90. package/miniprogram_dist/bld-loading/index.json +6 -6
  91. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  92. package/miniprogram_dist/bld-message/index.js.map +1 -1
  93. package/miniprogram_dist/bld-message/index.json +3 -3
  94. package/miniprogram_dist/bld-message/index.wxml +8 -8
  95. package/miniprogram_dist/bld-message/message.js.map +1 -1
  96. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  97. package/miniprogram_dist/bld-modal/index.json +6 -6
  98. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  99. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  100. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  101. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  102. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  103. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  104. package/miniprogram_dist/bld-navbar/index.json +5 -5
  105. package/miniprogram_dist/bld-navbar/index.wxml +7 -7
  106. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  107. package/miniprogram_dist/bld-navbar-group/index.json +3 -3
  108. package/miniprogram_dist/bld-navbar-group/index.wxml +36 -36
  109. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
  110. package/miniprogram_dist/bld-notice-bar/index.json +3 -3
  111. package/miniprogram_dist/bld-notice-bar/index.wxml +29 -29
  112. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  113. package/miniprogram_dist/bld-overlay/index.json +3 -3
  114. package/miniprogram_dist/bld-overlay/index.wxml +11 -11
  115. package/miniprogram_dist/bld-page/index.js.map +1 -1
  116. package/miniprogram_dist/bld-page/index.json +7 -7
  117. package/miniprogram_dist/bld-page/index.wxml +28 -28
  118. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  119. package/miniprogram_dist/bld-pop-up/index.json +6 -6
  120. package/miniprogram_dist/bld-pop-up/index.wxml +18 -18
  121. package/miniprogram_dist/bld-progress/index.js.map +1 -1
  122. package/miniprogram_dist/bld-progress/index.json +3 -3
  123. package/miniprogram_dist/bld-progress/index.wxml +34 -34
  124. package/miniprogram_dist/bld-radio/index.js.map +1 -1
  125. package/miniprogram_dist/bld-radio/index.json +3 -3
  126. package/miniprogram_dist/bld-radio/index.wxml +23 -23
  127. package/miniprogram_dist/bld-radio-group/index.js.map +1 -1
  128. package/miniprogram_dist/bld-radio-group/index.json +3 -3
  129. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  130. package/miniprogram_dist/bld-retry/index.json +2 -2
  131. package/miniprogram_dist/bld-retry/index.wxml +5 -5
  132. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  133. package/miniprogram_dist/bld-scroll-view/index.json +7 -7
  134. package/miniprogram_dist/bld-scroll-view/index.wxml +42 -42
  135. package/miniprogram_dist/bld-tabs/index.js +121 -0
  136. package/miniprogram_dist/bld-tabs/index.js.map +1 -0
  137. package/miniprogram_dist/bld-tabs/index.json +5 -0
  138. package/miniprogram_dist/bld-tabs/index.wxml +14 -0
  139. package/miniprogram_dist/bld-tabs/index.wxss +30 -0
  140. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  141. package/miniprogram_dist/bld-tag/index.json +3 -3
  142. package/miniprogram_dist/bld-tag/index.wxml +2 -2
  143. package/miniprogram_dist/bld-text/index.js.map +1 -1
  144. package/miniprogram_dist/bld-text/index.json +2 -2
  145. package/miniprogram_dist/bld-text/index.wxml +3 -3
  146. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  147. package/miniprogram_dist/bld-toast/index.json +5 -5
  148. package/miniprogram_dist/bld-toast/index.wxml +26 -26
  149. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  150. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  151. package/miniprogram_dist/bld-wrapper/index.json +4 -4
  152. package/miniprogram_dist/bld-wrapper/index.wxml +6 -6
  153. package/miniprogram_dist/button/index.js.map +1 -1
  154. package/miniprogram_dist/button/index.json +3 -3
  155. package/miniprogram_dist/button/index.wxml +41 -41
  156. package/miniprogram_dist/components-npm/mp-weixin/index.js +6 -6
  157. package/miniprogram_dist/components-npm/mp-weixin/index.js.map +1 -1
  158. package/miniprogram_dist/components-npm/mp-weixin/node/node.js.map +1 -1
  159. package/miniprogram_dist/grid/index.js +2 -2
  160. package/miniprogram_dist/grid/index.js.map +1 -1
  161. package/miniprogram_dist/grid/index.json +3 -3
  162. package/miniprogram_dist/grid/index.wxml +2 -2
  163. package/miniprogram_dist/grid-item/index.js +2 -2
  164. package/miniprogram_dist/grid-item/index.js.map +1 -1
  165. package/miniprogram_dist/grid-item/index.json +5 -5
  166. package/miniprogram_dist/grid-item/index.wxml +45 -45
  167. package/miniprogram_dist/timeline/index.js +2 -2
  168. package/miniprogram_dist/timeline/index.js.map +1 -1
  169. package/miniprogram_dist/timeline/index.json +2 -2
  170. package/miniprogram_dist/timeline/index.wxml +1 -1
  171. package/miniprogram_dist/timeline-item/index.js +2 -2
  172. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  173. package/miniprogram_dist/timeline-item/index.json +5 -5
  174. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  175. package/miniprogram_dist/utils/systemInfo.js +52 -52
  176. package/package.json +72 -72
  177. package/project.config.json +7 -7
  178. package/src/assets/font/iconfont.scss +549 -549
  179. package/src/assets/style/border.wxss +94 -94
  180. package/src/bld-action-sheet/index.js +82 -82
  181. package/src/bld-action-sheet/index.json +8 -8
  182. package/src/bld-action-sheet/index.scss +179 -179
  183. package/src/bld-action-sheet/index.wxml +56 -56
  184. package/src/bld-badge/index.js +53 -53
  185. package/src/bld-badge/index.json +3 -3
  186. package/src/bld-badge/index.scss +45 -45
  187. package/src/bld-badge/index.wxml +13 -13
  188. package/src/bld-button/index.js +13 -13
  189. package/src/bld-button/index.json +7 -7
  190. package/src/bld-button/index.scss +44 -44
  191. package/src/bld-button/index.wxml +3 -3
  192. package/src/bld-button-v2/index.js +91 -91
  193. package/src/bld-button-v2/index.json +3 -3
  194. package/src/bld-button-v2/index.scss +206 -206
  195. package/src/bld-button-v2/index.wxml +41 -41
  196. package/src/bld-card/index.js +3 -3
  197. package/src/bld-card/index.json +2 -2
  198. package/src/bld-card/index.scss +6 -6
  199. package/src/bld-card/index.wxml +5 -5
  200. package/src/bld-cell/index.js +28 -28
  201. package/src/bld-cell/index.json +7 -7
  202. package/src/bld-cell/index.scss +42 -42
  203. package/src/bld-cell/index.wxml +42 -42
  204. package/src/bld-cell-field/index.js +11 -11
  205. package/src/bld-cell-field/index.json +6 -6
  206. package/src/bld-cell-field/index.scss +21 -21
  207. package/src/bld-cell-field/index.wxml +8 -8
  208. package/src/bld-cell-group/index.js +11 -11
  209. package/src/bld-cell-group/index.json +2 -2
  210. package/src/bld-cell-group/index.scss +13 -13
  211. package/src/bld-cell-group/index.wxml +14 -14
  212. package/src/bld-cell-group-v2/index.js +70 -70
  213. package/src/bld-cell-group-v2/index.json +2 -2
  214. package/src/bld-cell-group-v2/index.scss +31 -31
  215. package/src/bld-cell-group-v2/index.wxml +9 -9
  216. package/src/bld-cell-v2/index.js +80 -80
  217. package/src/bld-cell-v2/index.json +5 -5
  218. package/src/bld-cell-v2/index.scss +74 -74
  219. package/src/bld-cell-v2/index.wxml +24 -24
  220. package/src/bld-checkbox/index.js +110 -110
  221. package/src/bld-checkbox/index.json +5 -5
  222. package/src/bld-checkbox/index.scss +71 -71
  223. package/src/bld-checkbox/index.wxml +66 -66
  224. package/src/bld-checkbox-group/index.js +84 -84
  225. package/src/bld-checkbox-group/index.json +3 -3
  226. package/src/bld-cloud-image/index.js +79 -79
  227. package/src/bld-cloud-image/index.json +2 -2
  228. package/src/bld-cloud-image/index.scss +3 -3
  229. package/src/bld-cloud-image/index.wxml +14 -14
  230. package/src/bld-collapse/index.js +62 -62
  231. package/src/bld-collapse/index.json +3 -3
  232. package/src/bld-collapse/index.scss +6 -6
  233. package/src/bld-collapse/index.wxml +8 -8
  234. package/src/bld-content-container/index.js +46 -46
  235. package/src/bld-content-container/index.json +2 -2
  236. package/src/bld-content-container/index.wxml +5 -5
  237. package/src/bld-dialog-tip/index.js +60 -60
  238. package/src/bld-dialog-tip/index.json +5 -5
  239. package/src/bld-dialog-tip/index.scss +66 -66
  240. package/src/bld-dialog-tip/index.wxml +23 -23
  241. package/src/bld-drawer/index.js +40 -40
  242. package/src/bld-drawer/index.json +3 -3
  243. package/src/bld-drawer/index.scss +78 -78
  244. package/src/bld-drawer/index.wxml +13 -13
  245. package/src/bld-empty-page/index.js +23 -23
  246. package/src/bld-empty-page/index.json +5 -5
  247. package/src/bld-empty-page/index.scss +15 -15
  248. package/src/bld-empty-page/index.wxml +11 -11
  249. package/src/bld-form/bld-form-item/bld-form-date/index.js +211 -211
  250. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  251. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  252. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  253. package/src/bld-form/bld-form-item/bld-form-input/index.js +53 -53
  254. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  255. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  256. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  257. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +145 -145
  258. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  259. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  260. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  261. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  262. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  263. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  264. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  265. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  266. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  267. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  268. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  269. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  270. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  271. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  272. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  273. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  274. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  275. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  276. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  277. package/src/bld-half-screen/index.js +166 -166
  278. package/src/bld-half-screen/index.json +4 -4
  279. package/src/bld-half-screen/index.scss +109 -109
  280. package/src/bld-half-screen/index.wxml +36 -36
  281. package/src/bld-html/index.js +41 -41
  282. package/src/bld-html/index.json +5 -5
  283. package/src/bld-html/index.scss +13 -13
  284. package/src/bld-html/index.wxml +9 -9
  285. package/src/bld-icon/index.js +41 -41
  286. package/src/bld-icon/index.json +6 -6
  287. package/src/bld-icon/index.scss +19 -19
  288. package/src/bld-icon/index.wxml +36 -36
  289. package/src/bld-icon-back/index.js +8 -8
  290. package/src/bld-icon-back/index.json +3 -3
  291. package/src/bld-icon-back/index.scss +1 -1
  292. package/src/bld-icon-back/index.wxml +1 -1
  293. package/src/bld-loading/index.js +9 -9
  294. package/src/bld-loading/index.json +6 -6
  295. package/src/bld-loading/index.scss +25 -25
  296. package/src/bld-loading/index.wxml +8 -8
  297. package/src/bld-message/index.js +90 -90
  298. package/src/bld-message/index.json +3 -3
  299. package/src/bld-message/index.scss +66 -66
  300. package/src/bld-message/index.wxml +8 -8
  301. package/src/bld-message/message.js +61 -61
  302. package/src/bld-modal/index.js +122 -122
  303. package/src/bld-modal/index.json +6 -6
  304. package/src/bld-modal/index.scss +107 -107
  305. package/src/bld-modal/index.wxml +22 -22
  306. package/src/bld-modal/modal.js +37 -37
  307. package/src/bld-nav-bar/index.js +131 -131
  308. package/src/bld-nav-bar/index.json +6 -6
  309. package/src/bld-nav-bar/index.scss +48 -48
  310. package/src/bld-nav-bar/index.wxml +43 -43
  311. package/src/bld-nav-bar1/index.js +90 -90
  312. package/src/bld-nav-bar1/index.json +5 -5
  313. package/src/bld-nav-bar1/index.scss +39 -39
  314. package/src/bld-nav-bar1/index.wxml +24 -24
  315. package/src/bld-navbar/index.js +62 -62
  316. package/src/bld-navbar/index.json +5 -5
  317. package/src/bld-navbar/index.scss +34 -34
  318. package/src/bld-navbar/index.wxml +7 -7
  319. package/src/bld-navbar-group/index.js +139 -139
  320. package/src/bld-navbar-group/index.json +3 -3
  321. package/src/bld-navbar-group/index.scss +32 -32
  322. package/src/bld-navbar-group/index.wxml +36 -36
  323. package/src/bld-notice-bar/index.js +69 -69
  324. package/src/bld-notice-bar/index.json +3 -3
  325. package/src/bld-notice-bar/index.scss +58 -58
  326. package/src/bld-notice-bar/index.wxml +29 -29
  327. package/src/bld-overlay/index.js +17 -17
  328. package/src/bld-overlay/index.json +3 -3
  329. package/src/bld-overlay/index.scss +11 -11
  330. package/src/bld-overlay/index.wxml +11 -11
  331. package/src/bld-page/index.js +78 -78
  332. package/src/bld-page/index.json +7 -7
  333. package/src/bld-page/index.scss +16 -16
  334. package/src/bld-page/index.wxml +28 -28
  335. package/src/bld-pop-up/index.js +29 -29
  336. package/src/bld-pop-up/index.json +6 -6
  337. package/src/bld-pop-up/index.scss +27 -27
  338. package/src/bld-pop-up/index.wxml +18 -18
  339. package/src/bld-progress/index.js +49 -49
  340. package/src/bld-progress/index.json +3 -3
  341. package/src/bld-progress/index.scss +73 -73
  342. package/src/bld-progress/index.wxml +34 -34
  343. package/src/bld-radio/index.js +64 -64
  344. package/src/bld-radio/index.json +3 -3
  345. package/src/bld-radio/index.scss +67 -67
  346. package/src/bld-radio/index.wxml +23 -23
  347. package/src/bld-radio-group/index.js +82 -82
  348. package/src/bld-radio-group/index.json +3 -3
  349. package/src/bld-retry/index.js +23 -23
  350. package/src/bld-retry/index.json +2 -2
  351. package/src/bld-retry/index.scss +26 -26
  352. package/src/bld-retry/index.wxml +5 -5
  353. package/src/bld-scroll-view/index.js +28 -28
  354. package/src/bld-scroll-view/index.json +7 -7
  355. package/src/bld-scroll-view/index.scss +7 -7
  356. package/src/bld-scroll-view/index.wxml +42 -42
  357. package/src/bld-tabs/index.js +21 -0
  358. package/src/bld-tabs/index.json +5 -0
  359. package/src/bld-tabs/index.scss +33 -0
  360. package/src/bld-tabs/index.wxml +14 -0
  361. package/src/bld-tabs/index.wxss +30 -0
  362. package/src/bld-tag/index.js +33 -33
  363. package/src/bld-tag/index.json +3 -3
  364. package/src/bld-tag/index.scss +126 -126
  365. package/src/bld-tag/index.wxml +2 -2
  366. package/src/bld-text/index.js +46 -46
  367. package/src/bld-text/index.json +2 -2
  368. package/src/bld-text/index.scss +30 -30
  369. package/src/bld-text/index.wxml +3 -3
  370. package/src/bld-toast/index.js +113 -113
  371. package/src/bld-toast/index.json +5 -5
  372. package/src/bld-toast/index.scss +111 -111
  373. package/src/bld-toast/index.wxml +26 -26
  374. package/src/bld-toast/toast.js +34 -34
  375. package/src/bld-wrapper/index.js +75 -75
  376. package/src/bld-wrapper/index.json +4 -4
  377. package/src/bld-wrapper/index.scss +7 -7
  378. package/src/bld-wrapper/index.wxml +6 -6
  379. package/src/button/index.js +91 -91
  380. package/src/button/index.json +3 -3
  381. package/src/button/index.scss +206 -206
  382. package/src/button/index.wxml +41 -41
  383. package/src/components-npm/mp-weixin/index.js +7 -7
  384. package/src/grid/index.js +67 -67
  385. package/src/grid/index.json +3 -3
  386. package/src/grid/index.scss +20 -20
  387. package/src/grid/index.wxml +2 -2
  388. package/src/grid-item/index.js +72 -72
  389. package/src/grid-item/index.json +5 -5
  390. package/src/grid-item/index.scss +58 -58
  391. package/src/grid-item/index.wxml +45 -45
  392. package/src/timeline/index.js +49 -49
  393. package/src/timeline/index.json +2 -2
  394. package/src/timeline/index.wxml +1 -1
  395. package/src/timeline-item/index.js +27 -27
  396. package/src/timeline-item/index.json +5 -5
  397. package/src/timeline-item/index.scss +36 -36
  398. package/src/timeline-item/index.wxml +9 -9
  399. package/src/utils/systemInfo.js +52 -52
  400. package/tsconfig.json +25 -25
@@ -1,42 +1,42 @@
1
- <template
2
- is="{{ type }}"
3
- data="{{ mode, scrollTop }}"
4
- />
5
-
6
- <template name="list">
7
- <bld-wrapper mode="{{ mode }}">
8
- <scroll-view
9
- enable-passive="{{ true }}"
10
- show-scrollbar="{{ false }}"
11
- type="list"
12
- class="iclass container"
13
- scroll-y
14
- scroll-top="{{ scrollTop }}"
15
- bind:scroll="scroll"
16
- bind:scrollend="scrollEnd"
17
- bind:scrolltolower="scrollToLower"
18
- >
19
- <slot />
20
- <view style="height: 100rpx;" />
21
- </scroll-view>
22
- </bld-wrapper>
23
- </template>
24
-
25
- <template name="custom">
26
- <bld-wrapper mode="{{ mode }}">
27
- <scroll-view
28
- enable-passive="{{ true }}"
29
- show-scrollbar="{{ false }}"
30
- type="custom"
31
- class="iclass container"
32
- scroll-y
33
- scroll-top="{{ scrollTop }}"
34
- bind:scroll="scroll"
35
- bind:scrollend="scrollEnd"
36
- bind:scrolltolower="scrollToLower"
37
- >
38
- <slot />
39
- <view style="height: 100rpx;" />
40
- </scroll-view>
41
- </bld-wrapper>
42
- </template>
1
+ <template
2
+ is="{{ type }}"
3
+ data="{{ mode, scrollTop }}"
4
+ />
5
+
6
+ <template name="list">
7
+ <bld-wrapper mode="{{ mode }}">
8
+ <scroll-view
9
+ enable-passive="{{ true }}"
10
+ show-scrollbar="{{ false }}"
11
+ type="list"
12
+ class="iclass container"
13
+ scroll-y
14
+ scroll-top="{{ scrollTop }}"
15
+ bind:scroll="scroll"
16
+ bind:scrollend="scrollEnd"
17
+ bind:scrolltolower="scrollToLower"
18
+ >
19
+ <slot />
20
+ <view style="height: 100rpx;" />
21
+ </scroll-view>
22
+ </bld-wrapper>
23
+ </template>
24
+
25
+ <template name="custom">
26
+ <bld-wrapper mode="{{ mode }}">
27
+ <scroll-view
28
+ enable-passive="{{ true }}"
29
+ show-scrollbar="{{ false }}"
30
+ type="custom"
31
+ class="iclass container"
32
+ scroll-y
33
+ scroll-top="{{ scrollTop }}"
34
+ bind:scroll="scroll"
35
+ bind:scrollend="scrollEnd"
36
+ bind:scrolltolower="scrollToLower"
37
+ >
38
+ <slot />
39
+ <view style="height: 100rpx;" />
40
+ </scroll-view>
41
+ </bld-wrapper>
42
+ </template>
@@ -0,0 +1,121 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 53);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 53:
91
+ /***/ (function(module, exports, __webpack_require__) {
92
+
93
+ "use strict";
94
+
95
+
96
+ Component({
97
+ externalClasses: ["iclass"],
98
+ properties: {
99
+ tabs: {
100
+ type: Array,
101
+ value: []
102
+ },
103
+ activeIndex: {
104
+ type: Number,
105
+ value: 0
106
+ }
107
+ },
108
+ data: {},
109
+ observers: {},
110
+ methods: {
111
+ handlehangeTab: function handlehangeTab(e) {
112
+ var current = e.currentTarget.dataset.tab;
113
+ this.triggerEvent("changeTab", current);
114
+ }
115
+ }
116
+ });
117
+
118
+ /***/ })
119
+
120
+ /******/ });
121
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-tabs/index.js"],"names":["Component","externalClasses","properties","tabs","type","Array","value","activeIndex","Number","data","observers","methods","handlehangeTab","e","current","currentTarget","dataset","tab","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,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,KADF;AAEJC,aAAO;AAFH,KADI;AAKVC,iBAAa;AACXH,YAAMI,MADK;AAEXF,aAAO;AAFI;AALH,GAFJ;AAYRG,QAAM,EAZE;AAaRC,aAAW,EAbH;AAcRC,WAAS;AACPC,kBADO,0BACQC,CADR,EACW;AAChB,UAAMC,UAAUD,EAAEE,aAAF,CAAgBC,OAAhB,CAAwBC,GAAxC;AACA,WAAKC,YAAL,CAAkB,WAAlB,EAA+BJ,OAA/B;AACD;AAJM;AAdD,CAAV,E","file":"bld-tabs\\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 = 53);\n","Component({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n tabs: {\r\n type: Array,\r\n value: [],\r\n },\r\n activeIndex: {\r\n type: Number,\r\n value: 0,\r\n },\r\n },\r\n data: {},\r\n observers: {},\r\n methods: {\r\n handlehangeTab(e) {\r\n const current = e.currentTarget.dataset.tab;\r\n this.triggerEvent(\"changeTab\", current);\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -0,0 +1,5 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
+ }
@@ -0,0 +1,14 @@
1
+ <view class="tabs iclass" wx:if="{{ tabs.length }}">
2
+ <view
3
+ wx:for="{{ tabs }}"
4
+ class="tab {{ activeIndex === index ? 'active' : '' }}"
5
+ data-tab="{{ index }}"
6
+ bind:tap="handlehangeTab"
7
+ >
8
+ {{ item }}
9
+ <view
10
+ class="active"
11
+ wx:if="{{ activeIndex === index }}"
12
+ />
13
+ </view>
14
+ </view>
@@ -0,0 +1,30 @@
1
+ .tabs {
2
+ display: flex;
3
+ justify-content: flex-start;
4
+ background: #fff;
5
+ padding: 0 24rpx;
6
+ }
7
+ .tabs .tab {
8
+ position: relative;
9
+ padding: 24rpx 24rpx 20rpx;
10
+ border-bottom: 4rpx solid #fff;
11
+ font-size: 30rpx;
12
+ font-family: PingFangSC, PingFang SC;
13
+ font-weight: 400;
14
+ color: #999;
15
+ }
16
+ .tabs .tab.active {
17
+ font-weight: 500;
18
+ font-size: 30rpx;
19
+ color: #333;
20
+ }
21
+ .tabs .tab .active {
22
+ width: 52rpx;
23
+ height: 8rpx;
24
+ border-radius: 4rpx;
25
+ background: #ff0007;
26
+ position: absolute;
27
+ bottom: 0;
28
+ left: 50%;
29
+ transform: translate(-50%);
30
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-tag/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","capsule","type","Boolean","value","size","String","plain","color","round"],"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;AACV;AACAC,aAAS;AACPC,YAAMC,OADC;AAEPC,aAAO;AAFA,KAFC;AAMVC,UAAM;AACJH,YAAMI,MADF;AAEJF,aAAO;AAFH,KANI;AAUVF,UAAM;AACJA,YAAMI,MADF;AAEJF,aAAO;AAFH,KAVI;AAcVG,WAAO;AACLL,YAAMC,OADD;AAELC,aAAO;AAFF,KAdG;AAkBVI,WAAO;AACLN,YAAMI;AADD,KAlBG;AAqBVG,WAAO;AACLP,YAAMC,OADD;AAELC,aAAO;AAFF;AArBG;AAPJ,CAAV,E","file":"bld-tag/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 = 43);\n","Component({\n externalClasses: ['custom-class'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n // 胶囊样式\n capsule: {\n type: Boolean,\n value: false\n },\n size: {\n type: String,\n value: 'small'\n },\n type: {\n type: String,\n value: ''\n },\n plain: {\n type: Boolean,\n value: false\n },\n color: {\n type: String\n },\n round: {\n type: Boolean,\n value: false\n }\n }\n});"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-tag/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","capsule","type","Boolean","value","size","String","plain","color","round"],"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;AACV;AACAC,aAAS;AACPC,YAAMC,OADC;AAEPC,aAAO;AAFA,KAFC;AAMVC,UAAM;AACJH,YAAMI,MADF;AAEJF,aAAO;AAFH,KANI;AAUVF,UAAM;AACJA,YAAMI,MADF;AAEJF,aAAO;AAFH,KAVI;AAcVG,WAAO;AACLL,YAAMC,OADD;AAELC,aAAO;AAFF,KAdG;AAkBVI,WAAO;AACLN,YAAMI;AADD,KAlBG;AAqBVG,WAAO;AACLP,YAAMC,OADD;AAELC,aAAO;AAFF;AArBG;AAPJ,CAAV,E","file":"bld-tag\\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 = 43);\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 // 胶囊样式\r\n capsule: {\r\n type: Boolean,\r\n value: false\r\n },\r\n size: {\r\n type: String,\r\n value: 'small'\r\n },\r\n type: {\r\n type: String,\r\n value: ''\r\n },\r\n plain: {\r\n type: Boolean,\r\n value: false\r\n },\r\n color: {\r\n type: String\r\n },\r\n round: {\r\n type: Boolean,\r\n value: false\r\n }\r\n }\r\n});"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,3 +1,3 @@
1
- <view class="m-tag custom-class {{ 'm-tag--' + size }} {{ round ? 'is-round' : '' }} {{ type ? 'm-tag--' + type : '' }} {{ plain ? 'is-plain' : '' }}" style="{{ plain ? 'color: ' + color : 'background-color: ' + color }}">
2
- <slot />
1
+ <view class="m-tag custom-class {{ 'm-tag--' + size }} {{ round ? 'is-round' : '' }} {{ type ? 'm-tag--' + type : '' }} {{ plain ? 'is-plain' : '' }}" style="{{ plain ? 'color: ' + color : 'background-color: ' + color }}">
2
+ <slot />
3
3
  </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-text/index.js"],"names":["Component","externalClasses","properties","text","type","String","value","maxLines","Number","stripHtml","Boolean","stripInVisible","size","data","formattedText","observers","replace","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,cAAU;AACRH,YAAMI,MADE;AAERF,aAAO;AAFC,KALA;AASVG,eAAW;AACTL,YAAMM,OADG;AAETJ,aAAO;AAFE,KATD;AAaVK,oBAAgB;AACdP,YAAMM,OADQ;AAEdJ,aAAO;AAFO,KAbN;AAiBVM,UAAM;AACJR,YAAMC,MADF;AAEJC,aAAO;AAFH;AAjBI,GAFJ;AAwBRO,QAAM;AACJC,mBAAe;AADX,GAxBE;AA2BRC,aAAW;AACTZ,QADS,kBACF;AACL,UAAIW,gBAAgB,KAAKD,IAAL,CAAUV,IAA9B;AACA,UAAI,KAAKU,IAAL,CAAUJ,SAAd,EAAyB;AACvB;AACAK,wBAAgBA,cAAcE,OAAd,CAAsB,kBAAtB,EAA0C,EAA1C,CAAhB;AACD;;AAED,UAAI,KAAKH,IAAL,CAAUF,cAAd,EAA8B;AAC5B;AACAG,wBAAgBA,cAAcE,OAAd,CAAsB,+BAAtB,EAAuD,EAAvD,CAAhB;AACD;;AAED,WAAKC,OAAL,CAAa;AACXH;AADW,OAAb;AAGD;AAhBQ;AA3BH,CAAV,E","file":"bld-text/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 = 6);\n","Component({\n externalClasses: [\"iclass\"],\n properties: {\n text: {\n type: String,\n value: \"加载中...\",\n },\n maxLines: {\n type: Number,\n value: 3,\n },\n stripHtml: {\n type: Boolean,\n value: true,\n },\n stripInVisible: {\n type: Boolean,\n value: true,\n },\n size: {\n type: String,\n value: \"lg-r\",\n },\n },\n data: {\n formattedText: \"加载中...\",\n },\n observers: {\n text() {\n let formattedText = this.data.text;\n if (this.data.stripHtml) {\n // 替换 html 标签\n formattedText = formattedText.replace(/<[^>]*>|&nbsp;/gm, \"\");\n }\n\n if (this.data.stripInVisible) {\n // 替换不可见字符\n formattedText = formattedText.replace(/[\\u0000-\\u001F\\u007F-\\u009F]/g, \"\");\n }\n\n this.setData({\n formattedText,\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-text/index.js"],"names":["Component","externalClasses","properties","text","type","String","value","maxLines","Number","stripHtml","Boolean","stripInVisible","size","data","formattedText","observers","replace","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFAA,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,cAAU;AACRH,YAAMI,MADE;AAERF,aAAO;AAFC,KALA;AASVG,eAAW;AACTL,YAAMM,OADG;AAETJ,aAAO;AAFE,KATD;AAaVK,oBAAgB;AACdP,YAAMM,OADQ;AAEdJ,aAAO;AAFO,KAbN;AAiBVM,UAAM;AACJR,YAAMC,MADF;AAEJC,aAAO;AAFH;AAjBI,GAFJ;AAwBRO,QAAM;AACJC,mBAAe;AADX,GAxBE;AA2BRC,aAAW;AACTZ,QADS,kBACF;AACL,UAAIW,gBAAgB,KAAKD,IAAL,CAAUV,IAA9B;AACA,UAAI,KAAKU,IAAL,CAAUJ,SAAd,EAAyB;AACvB;AACAK,wBAAgBA,cAAcE,OAAd,CAAsB,kBAAtB,EAA0C,EAA1C,CAAhB;AACD;;AAED,UAAI,KAAKH,IAAL,CAAUF,cAAd,EAA8B;AAC5B;AACAG,wBAAgBA,cAAcE,OAAd,CAAsB,+BAAtB,EAAuD,EAAvD,CAAhB;AACD;;AAED,WAAKC,OAAL,CAAa;AACXH;AADW,OAAb;AAGD;AAhBQ;AA3BH,CAAV,E","file":"bld-text\\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 = 6);\n","Component({\r\n externalClasses: [\"iclass\"],\r\n properties: {\r\n text: {\r\n type: String,\r\n value: \"加载中...\",\r\n },\r\n maxLines: {\r\n type: Number,\r\n value: 3,\r\n },\r\n stripHtml: {\r\n type: Boolean,\r\n value: true,\r\n },\r\n stripInVisible: {\r\n type: Boolean,\r\n value: true,\r\n },\r\n size: {\r\n type: String,\r\n value: \"lg-r\",\r\n },\r\n },\r\n data: {\r\n formattedText: \"加载中...\",\r\n },\r\n observers: {\r\n text() {\r\n let formattedText = this.data.text;\r\n if (this.data.stripHtml) {\r\n // 替换 html 标签\r\n formattedText = formattedText.replace(/<[^>]*>|&nbsp;/gm, \"\");\r\n }\r\n\r\n if (this.data.stripInVisible) {\r\n // 替换不可见字符\r\n formattedText = formattedText.replace(/[\\u0000-\\u001F\\u007F-\\u009F]/g, \"\");\r\n }\r\n\r\n this.setData({\r\n formattedText,\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,3 +1,3 @@
1
- <view class="content {{size}} iclass" style="-webkit-line-clamp: {{maxLines}}; line-clamp: {{maxLines}};">
2
- <text max-lines="{{ maxLines }}" overflow="ellipsis">{{ formattedText }}</text>
3
- </view>
1
+ <view class="content {{size}} iclass" style="-webkit-line-clamp: {{maxLines}}; line-clamp: {{maxLines}};">
2
+ <text max-lines="{{ maxLines }}" overflow="ellipsis">{{ formattedText }}</text>
3
+ </view>
@@ -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;QAC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AMEC,oBANF;AAOEE,0BAPF;AAQEL,iBAAS,IARX;AASEY;AATF,UAUG,YAAM;AACP,eAAKwB,OAAL,CAAa;AACXnC,gBAAM;AADK,SAAb;AAGD,OAdD;;AAgBA,UAAI,KAAKqC,KAAT,EAAgBC,aAAa,KAAKD,KAAlB;;AAEhB,UAAIhC,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 = 37);\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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AKgC,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 = 37);\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
- "bld-icon": "../bld-icon/index"
5
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-icon": "../bld-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
- <bld-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
+ <bld-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 +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 = 38);\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 = 38);\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":""}
@@ -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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O;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 = 24);\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,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,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 = 24);\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 +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;;Q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;AACbjB,YAAMgB,MADO;AAEbd,aAAO;AAFM,KAhDL;AAoDVgB,sBAAkBjB,MApDR;AAqDVkB,qBAAiBlB,MArDP;AAsDVmB,oBAAgBnB,MAtDN;AAuDVoB,qBAAiBjB;AAvDP,GAPJ;;AAiERkB,WAAS;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;;;QAG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;AAEbd,aAAO;AAFM,KAhDL;AAoDVgB,sBAAkBjB,MApDR;AAqDVkB,qBAAiBlB,MArDP;AAsDVmB,oBAAgBnB,MAtDN;AAuDVoB,qBAAiBjB;AAvDP,GAPJ;;AAiERkB,WAAS;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({\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":""}