bulade-ui 1.1.21 → 1.1.23

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 (489) 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 -541
  8. package/miniprogram_dist/assets/font/iconfont.wxss +546 -538
  9. package/miniprogram_dist/assets/style/border.wxss +94 -94
  10. package/miniprogram_dist/bld-action-sheet/index.js.map +1 -1
  11. package/miniprogram_dist/bld-action-sheet/index.json +8 -8
  12. package/miniprogram_dist/bld-action-sheet/index.wxml +56 -56
  13. package/miniprogram_dist/bld-action-sheet/index.wxss +159 -159
  14. package/miniprogram_dist/bld-badge/index.js.map +1 -1
  15. package/miniprogram_dist/bld-badge/index.json +3 -3
  16. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  17. package/miniprogram_dist/bld-badge/index.wxss +42 -42
  18. package/miniprogram_dist/bld-button/index.js.map +1 -1
  19. package/miniprogram_dist/bld-button/index.json +7 -7
  20. package/miniprogram_dist/bld-button/index.wxml +3 -3
  21. package/miniprogram_dist/bld-button/index.wxss +36 -36
  22. package/miniprogram_dist/bld-button-v2/index.js.map +1 -1
  23. package/miniprogram_dist/bld-button-v2/index.json +3 -3
  24. package/miniprogram_dist/bld-button-v2/index.wxml +41 -41
  25. package/miniprogram_dist/bld-button-v2/index.wxss +175 -175
  26. package/miniprogram_dist/bld-card/index.js.map +1 -1
  27. package/miniprogram_dist/bld-card/index.json +2 -2
  28. package/miniprogram_dist/bld-card/index.wxml +5 -5
  29. package/miniprogram_dist/bld-card/index.wxss +5 -5
  30. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  31. package/miniprogram_dist/bld-cell/index.json +7 -7
  32. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  33. package/miniprogram_dist/bld-cell/index.wxss +38 -38
  34. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  35. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  36. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  37. package/miniprogram_dist/bld-cell-field/index.wxss +18 -18
  38. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  39. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  40. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  41. package/miniprogram_dist/bld-cell-group/index.wxss +10 -10
  42. package/miniprogram_dist/bld-cell-group-v2/index.js.map +1 -1
  43. package/miniprogram_dist/bld-cell-group-v2/index.json +2 -2
  44. package/miniprogram_dist/bld-cell-group-v2/index.wxml +9 -9
  45. package/miniprogram_dist/bld-cell-group-v2/index.wxss +28 -28
  46. package/miniprogram_dist/bld-cell-v2/index.js.map +1 -1
  47. package/miniprogram_dist/bld-cell-v2/index.json +5 -5
  48. package/miniprogram_dist/bld-cell-v2/index.wxml +24 -24
  49. package/miniprogram_dist/bld-cell-v2/index.wxss +63 -63
  50. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  51. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  52. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  53. package/miniprogram_dist/bld-checkbox/index.wxss +61 -61
  54. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  55. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  56. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  57. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  58. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  59. package/miniprogram_dist/bld-cloud-image/index.wxss +2 -2
  60. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  61. package/miniprogram_dist/bld-collapse/index.json +3 -3
  62. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  63. package/miniprogram_dist/bld-collapse/index.wxss +6 -6
  64. package/miniprogram_dist/bld-dialog-tip/index.js.map +1 -1
  65. package/miniprogram_dist/bld-dialog-tip/index.json +5 -5
  66. package/miniprogram_dist/bld-dialog-tip/index.wxml +23 -23
  67. package/miniprogram_dist/bld-dialog-tip/index.wxss +65 -65
  68. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  69. package/miniprogram_dist/bld-drawer/index.json +3 -3
  70. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  71. package/miniprogram_dist/bld-drawer/index.wxss +57 -57
  72. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  73. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  74. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  75. package/miniprogram_dist/bld-empty-page/index.wxss +13 -13
  76. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
  77. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  78. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  79. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxss +55 -55
  80. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
  81. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  82. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  83. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxss +26 -26
  84. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  85. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  86. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  87. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxss +119 -119
  88. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
  89. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  90. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  91. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxss +43 -43
  92. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
  93. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  94. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  95. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxss +20 -20
  96. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
  97. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  98. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  99. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxss +26 -26
  100. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
  101. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  102. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  103. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxss +55 -55
  104. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  105. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  106. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  107. package/miniprogram_dist/bld-half-screen/index.wxss +106 -106
  108. package/miniprogram_dist/bld-html/index.js +2 -2
  109. package/miniprogram_dist/bld-html/index.js.map +1 -1
  110. package/miniprogram_dist/bld-html/index.json +5 -5
  111. package/miniprogram_dist/bld-html/index.wxml +8 -8
  112. package/miniprogram_dist/bld-html/index.wxss +5 -5
  113. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  114. package/miniprogram_dist/bld-icon/index.json +6 -6
  115. package/miniprogram_dist/bld-icon/index.wxml +36 -36
  116. package/miniprogram_dist/bld-icon/index.wxss +566 -558
  117. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  118. package/miniprogram_dist/bld-loading/index.json +6 -6
  119. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  120. package/miniprogram_dist/bld-loading/index.wxss +28 -28
  121. package/miniprogram_dist/bld-message/index.js.map +1 -1
  122. package/miniprogram_dist/bld-message/index.json +3 -3
  123. package/miniprogram_dist/bld-message/index.wxml +8 -8
  124. package/miniprogram_dist/bld-message/index.wxss +76 -76
  125. package/miniprogram_dist/bld-message/message.js.map +1 -1
  126. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  127. package/miniprogram_dist/bld-modal/index.json +6 -6
  128. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  129. package/miniprogram_dist/bld-modal/index.wxss +96 -96
  130. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  131. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  132. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  133. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  134. package/miniprogram_dist/bld-nav-bar/index.wxss +45 -45
  135. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  136. package/miniprogram_dist/bld-navbar/index.json +5 -5
  137. package/miniprogram_dist/bld-navbar/index.wxml +7 -7
  138. package/miniprogram_dist/bld-navbar/index.wxss +30 -30
  139. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  140. package/miniprogram_dist/bld-navbar-group/index.json +3 -3
  141. package/miniprogram_dist/bld-navbar-group/index.wxml +36 -36
  142. package/miniprogram_dist/bld-navbar-group/index.wxss +29 -29
  143. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
  144. package/miniprogram_dist/bld-notice-bar/index.json +3 -3
  145. package/miniprogram_dist/bld-notice-bar/index.wxml +29 -29
  146. package/miniprogram_dist/bld-notice-bar/index.wxss +50 -50
  147. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  148. package/miniprogram_dist/bld-overlay/index.json +3 -3
  149. package/miniprogram_dist/bld-overlay/index.wxml +11 -11
  150. package/miniprogram_dist/bld-overlay/index.wxss +10 -10
  151. package/miniprogram_dist/bld-page/index.js.map +1 -1
  152. package/miniprogram_dist/bld-page/index.json +7 -7
  153. package/miniprogram_dist/bld-page/index.wxml +28 -28
  154. package/miniprogram_dist/bld-page/index.wxss +15 -15
  155. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  156. package/miniprogram_dist/bld-pop-up/index.json +6 -6
  157. package/miniprogram_dist/bld-pop-up/index.wxml +18 -18
  158. package/miniprogram_dist/bld-pop-up/index.wxss +26 -26
  159. package/miniprogram_dist/bld-progress/index.js.map +1 -1
  160. package/miniprogram_dist/bld-progress/index.json +3 -3
  161. package/miniprogram_dist/bld-progress/index.wxml +34 -34
  162. package/miniprogram_dist/bld-progress/index.wxss +62 -62
  163. package/miniprogram_dist/bld-radio/index.js.map +1 -1
  164. package/miniprogram_dist/bld-radio/index.json +3 -3
  165. package/miniprogram_dist/bld-radio/index.wxml +23 -23
  166. package/miniprogram_dist/bld-radio/index.wxss +78 -78
  167. package/miniprogram_dist/bld-radio-group/index.js.map +1 -1
  168. package/miniprogram_dist/bld-radio-group/index.json +3 -3
  169. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  170. package/miniprogram_dist/bld-retry/index.json +2 -2
  171. package/miniprogram_dist/bld-retry/index.wxml +5 -5
  172. package/miniprogram_dist/bld-retry/index.wxss +22 -22
  173. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  174. package/miniprogram_dist/bld-scroll-view/index.json +7 -7
  175. package/miniprogram_dist/bld-scroll-view/index.wxml +42 -42
  176. package/miniprogram_dist/bld-scroll-view/index.wxss +6 -6
  177. package/miniprogram_dist/bld-tag/index.js.map +1 -1
  178. package/miniprogram_dist/bld-tag/index.json +3 -3
  179. package/miniprogram_dist/bld-tag/index.wxml +2 -2
  180. package/miniprogram_dist/bld-tag/index.wxss +107 -107
  181. package/miniprogram_dist/bld-text/index.js.map +1 -1
  182. package/miniprogram_dist/bld-text/index.json +2 -2
  183. package/miniprogram_dist/bld-text/index.wxml +3 -3
  184. package/miniprogram_dist/bld-text/index.wxss +25 -25
  185. package/miniprogram_dist/bld-toast/index.js.map +1 -1
  186. package/miniprogram_dist/bld-toast/index.json +5 -5
  187. package/miniprogram_dist/bld-toast/index.wxml +26 -26
  188. package/miniprogram_dist/bld-toast/index.wxss +94 -94
  189. package/miniprogram_dist/bld-toast/toast.js.map +1 -1
  190. package/miniprogram_dist/bld-wrapper/index.js.map +1 -1
  191. package/miniprogram_dist/bld-wrapper/index.json +4 -4
  192. package/miniprogram_dist/bld-wrapper/index.wxml +6 -6
  193. package/miniprogram_dist/bld-wrapper/index.wxss +6 -6
  194. package/miniprogram_dist/button/index.js.map +1 -1
  195. package/miniprogram_dist/button/index.json +3 -3
  196. package/miniprogram_dist/button/index.wxml +41 -41
  197. package/miniprogram_dist/button/index.wxss +175 -175
  198. package/miniprogram_dist/components-npm/mp-weixin/index.js +6 -6
  199. package/miniprogram_dist/components-npm/mp-weixin/index.js.map +1 -1
  200. package/miniprogram_dist/components-npm/mp-weixin/node/node.js.map +1 -1
  201. package/miniprogram_dist/components-npm/mp-weixin/node/node.wxss +3 -3
  202. package/miniprogram_dist/grid/index.js.map +1 -1
  203. package/miniprogram_dist/grid/index.json +3 -3
  204. package/miniprogram_dist/grid/index.wxml +2 -2
  205. package/miniprogram_dist/grid/index.wxss +19 -19
  206. package/miniprogram_dist/grid-item/index.js.map +1 -1
  207. package/miniprogram_dist/grid-item/index.json +5 -5
  208. package/miniprogram_dist/grid-item/index.wxml +45 -45
  209. package/miniprogram_dist/grid-item/index.wxss +50 -50
  210. package/miniprogram_dist/timeline/index.js.map +1 -1
  211. package/miniprogram_dist/timeline/index.json +2 -2
  212. package/miniprogram_dist/timeline/index.wxml +1 -1
  213. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  214. package/miniprogram_dist/timeline-item/index.json +5 -5
  215. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  216. package/miniprogram_dist/timeline-item/index.wxss +30 -30
  217. package/miniprogram_dist/utils/systemInfo.js +52 -52
  218. package/package.json +72 -72
  219. package/project.config.json +7 -7
  220. package/src/assets/font/iconfont.scss +549 -541
  221. package/src/assets/font/iconfont.wxss +546 -538
  222. package/src/assets/style/border.wxss +94 -94
  223. package/src/bld-action-sheet/index.js +82 -82
  224. package/src/bld-action-sheet/index.json +8 -8
  225. package/src/bld-action-sheet/index.scss +179 -179
  226. package/src/bld-action-sheet/index.wxml +56 -56
  227. package/src/bld-action-sheet/index.wxss +159 -159
  228. package/src/bld-badge/index.js +53 -53
  229. package/src/bld-badge/index.json +3 -3
  230. package/src/bld-badge/index.scss +45 -45
  231. package/src/bld-badge/index.wxml +13 -13
  232. package/src/bld-badge/index.wxss +42 -42
  233. package/src/bld-button/index.js +13 -13
  234. package/src/bld-button/index.json +7 -7
  235. package/src/bld-button/index.scss +44 -44
  236. package/src/bld-button/index.wxml +3 -3
  237. package/src/bld-button/index.wxss +36 -36
  238. package/src/bld-button-v2/index.js +91 -91
  239. package/src/bld-button-v2/index.json +3 -3
  240. package/src/bld-button-v2/index.scss +206 -206
  241. package/src/bld-button-v2/index.wxml +41 -41
  242. package/src/bld-button-v2/index.wxss +175 -175
  243. package/src/bld-card/index.js +3 -3
  244. package/src/bld-card/index.json +2 -2
  245. package/src/bld-card/index.scss +6 -6
  246. package/src/bld-card/index.wxml +5 -5
  247. package/src/bld-card/index.wxss +5 -5
  248. package/src/bld-cell/index.js +28 -28
  249. package/src/bld-cell/index.json +7 -7
  250. package/src/bld-cell/index.scss +42 -42
  251. package/src/bld-cell/index.wxml +42 -42
  252. package/src/bld-cell/index.wxss +38 -38
  253. package/src/bld-cell-field/index.js +11 -11
  254. package/src/bld-cell-field/index.json +6 -6
  255. package/src/bld-cell-field/index.scss +21 -21
  256. package/src/bld-cell-field/index.wxml +8 -8
  257. package/src/bld-cell-field/index.wxss +18 -18
  258. package/src/bld-cell-group/index.js +11 -11
  259. package/src/bld-cell-group/index.json +2 -2
  260. package/src/bld-cell-group/index.scss +13 -13
  261. package/src/bld-cell-group/index.wxml +14 -14
  262. package/src/bld-cell-group/index.wxss +10 -10
  263. package/src/bld-cell-group-v2/index.js +70 -70
  264. package/src/bld-cell-group-v2/index.json +2 -2
  265. package/src/bld-cell-group-v2/index.scss +31 -31
  266. package/src/bld-cell-group-v2/index.wxml +9 -9
  267. package/src/bld-cell-group-v2/index.wxss +28 -28
  268. package/src/bld-cell-v2/index.js +80 -80
  269. package/src/bld-cell-v2/index.json +5 -5
  270. package/src/bld-cell-v2/index.scss +74 -74
  271. package/src/bld-cell-v2/index.wxml +24 -24
  272. package/src/bld-cell-v2/index.wxss +63 -63
  273. package/src/bld-checkbox/index.js +110 -110
  274. package/src/bld-checkbox/index.json +5 -5
  275. package/src/bld-checkbox/index.scss +71 -71
  276. package/src/bld-checkbox/index.wxml +66 -66
  277. package/src/bld-checkbox/index.wxss +61 -61
  278. package/src/bld-checkbox-group/index.js +84 -84
  279. package/src/bld-checkbox-group/index.json +3 -3
  280. package/src/bld-cloud-image/index.js +79 -79
  281. package/src/bld-cloud-image/index.json +2 -2
  282. package/src/bld-cloud-image/index.scss +3 -3
  283. package/src/bld-cloud-image/index.wxml +14 -14
  284. package/src/bld-cloud-image/index.wxss +2 -2
  285. package/src/bld-collapse/index.js +62 -62
  286. package/src/bld-collapse/index.json +3 -3
  287. package/src/bld-collapse/index.scss +6 -6
  288. package/src/bld-collapse/index.wxml +8 -8
  289. package/src/bld-collapse/index.wxss +6 -6
  290. package/src/bld-content-container/index.js +46 -46
  291. package/src/bld-content-container/index.json +2 -2
  292. package/src/bld-content-container/index.wxml +5 -5
  293. package/src/bld-dialog-tip/index.js +60 -60
  294. package/src/bld-dialog-tip/index.json +5 -5
  295. package/src/bld-dialog-tip/index.scss +66 -66
  296. package/src/bld-dialog-tip/index.wxml +23 -23
  297. package/src/bld-dialog-tip/index.wxss +65 -65
  298. package/src/bld-drawer/index.js +40 -40
  299. package/src/bld-drawer/index.json +3 -3
  300. package/src/bld-drawer/index.scss +78 -78
  301. package/src/bld-drawer/index.wxml +13 -13
  302. package/src/bld-drawer/index.wxss +57 -57
  303. package/src/bld-empty-page/index.js +23 -23
  304. package/src/bld-empty-page/index.json +5 -5
  305. package/src/bld-empty-page/index.scss +15 -15
  306. package/src/bld-empty-page/index.wxml +11 -11
  307. package/src/bld-empty-page/index.wxss +13 -13
  308. package/src/bld-form/bld-form-item/bld-form-date/index.js +211 -211
  309. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  310. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  311. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  312. package/src/bld-form/bld-form-item/bld-form-date/index.wxss +55 -55
  313. package/src/bld-form/bld-form-item/bld-form-input/index.js +53 -53
  314. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  315. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  316. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  317. package/src/bld-form/bld-form-item/bld-form-input/index.wxss +26 -26
  318. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +145 -145
  319. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  320. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  321. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +52 -52
  322. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxss +119 -119
  323. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  324. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  325. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  326. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  327. package/src/bld-form/bld-form-item/bld-form-step/index.wxss +43 -43
  328. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  329. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  330. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  331. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  332. package/src/bld-form/bld-form-item/bld-form-switch/index.wxss +20 -20
  333. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  334. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  335. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  336. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  337. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxss +26 -26
  338. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  339. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  340. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  341. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  342. package/src/bld-form/bld-form-item/bld-form-time/index.wxss +55 -55
  343. package/src/bld-half-screen/index.js +166 -166
  344. package/src/bld-half-screen/index.json +4 -4
  345. package/src/bld-half-screen/index.scss +109 -109
  346. package/src/bld-half-screen/index.wxml +36 -36
  347. package/src/bld-half-screen/index.wxss +106 -106
  348. package/src/bld-html/index.js +41 -41
  349. package/src/bld-html/index.json +5 -5
  350. package/src/bld-html/index.scss +6 -6
  351. package/src/bld-html/index.wxml +8 -8
  352. package/src/bld-html/index.wxss +5 -5
  353. package/src/bld-icon/index.js +41 -41
  354. package/src/bld-icon/index.json +6 -6
  355. package/src/bld-icon/index.scss +19 -19
  356. package/src/bld-icon/index.wxml +36 -36
  357. package/src/bld-icon/index.wxss +566 -558
  358. package/src/bld-icon-back/index.js +8 -8
  359. package/src/bld-icon-back/index.json +3 -3
  360. package/src/bld-icon-back/index.scss +1 -1
  361. package/src/bld-icon-back/index.wxml +1 -1
  362. package/src/bld-icon-back/index.wxss +546 -538
  363. package/src/bld-loading/index.js +9 -9
  364. package/src/bld-loading/index.json +6 -6
  365. package/src/bld-loading/index.scss +25 -25
  366. package/src/bld-loading/index.wxml +8 -8
  367. package/src/bld-loading/index.wxss +28 -28
  368. package/src/bld-message/index.js +90 -90
  369. package/src/bld-message/index.json +3 -3
  370. package/src/bld-message/index.scss +66 -66
  371. package/src/bld-message/index.wxml +8 -8
  372. package/src/bld-message/index.wxss +76 -76
  373. package/src/bld-message/message.js +61 -61
  374. package/src/bld-modal/index.js +122 -122
  375. package/src/bld-modal/index.json +6 -6
  376. package/src/bld-modal/index.scss +107 -107
  377. package/src/bld-modal/index.wxml +22 -22
  378. package/src/bld-modal/index.wxss +96 -96
  379. package/src/bld-modal/modal.js +37 -37
  380. package/src/bld-nav-bar/index.js +131 -131
  381. package/src/bld-nav-bar/index.json +6 -6
  382. package/src/bld-nav-bar/index.scss +48 -48
  383. package/src/bld-nav-bar/index.wxml +43 -43
  384. package/src/bld-nav-bar/index.wxss +45 -45
  385. package/src/bld-nav-bar1/index.js +90 -90
  386. package/src/bld-nav-bar1/index.json +5 -5
  387. package/src/bld-nav-bar1/index.scss +39 -39
  388. package/src/bld-nav-bar1/index.wxml +24 -24
  389. package/src/bld-nav-bar1/index.wxss +35 -35
  390. package/src/bld-navbar/index.js +62 -62
  391. package/src/bld-navbar/index.json +5 -5
  392. package/src/bld-navbar/index.scss +34 -34
  393. package/src/bld-navbar/index.wxml +7 -7
  394. package/src/bld-navbar/index.wxss +30 -30
  395. package/src/bld-navbar-group/index.js +139 -139
  396. package/src/bld-navbar-group/index.json +3 -3
  397. package/src/bld-navbar-group/index.scss +32 -32
  398. package/src/bld-navbar-group/index.wxml +36 -36
  399. package/src/bld-navbar-group/index.wxss +29 -29
  400. package/src/bld-notice-bar/index.js +69 -69
  401. package/src/bld-notice-bar/index.json +3 -3
  402. package/src/bld-notice-bar/index.scss +58 -58
  403. package/src/bld-notice-bar/index.wxml +29 -29
  404. package/src/bld-notice-bar/index.wxss +50 -50
  405. package/src/bld-overlay/index.js +17 -17
  406. package/src/bld-overlay/index.json +3 -3
  407. package/src/bld-overlay/index.scss +11 -11
  408. package/src/bld-overlay/index.wxml +11 -11
  409. package/src/bld-overlay/index.wxss +10 -10
  410. package/src/bld-page/index.js +78 -78
  411. package/src/bld-page/index.json +7 -7
  412. package/src/bld-page/index.scss +16 -16
  413. package/src/bld-page/index.wxml +28 -28
  414. package/src/bld-page/index.wxss +15 -15
  415. package/src/bld-pop-up/index.js +29 -29
  416. package/src/bld-pop-up/index.json +6 -6
  417. package/src/bld-pop-up/index.scss +27 -27
  418. package/src/bld-pop-up/index.wxml +18 -18
  419. package/src/bld-pop-up/index.wxss +26 -26
  420. package/src/bld-progress/index.js +49 -49
  421. package/src/bld-progress/index.json +3 -3
  422. package/src/bld-progress/index.scss +73 -73
  423. package/src/bld-progress/index.wxml +34 -34
  424. package/src/bld-progress/index.wxss +62 -62
  425. package/src/bld-radio/index.js +64 -64
  426. package/src/bld-radio/index.json +3 -3
  427. package/src/bld-radio/index.scss +67 -67
  428. package/src/bld-radio/index.wxml +23 -23
  429. package/src/bld-radio/index.wxss +78 -78
  430. package/src/bld-radio-group/index.js +82 -82
  431. package/src/bld-radio-group/index.json +3 -3
  432. package/src/bld-retry/index.js +23 -23
  433. package/src/bld-retry/index.json +2 -2
  434. package/src/bld-retry/index.scss +26 -26
  435. package/src/bld-retry/index.wxml +5 -5
  436. package/src/bld-retry/index.wxss +22 -22
  437. package/src/bld-scroll-view/index.js +28 -28
  438. package/src/bld-scroll-view/index.json +7 -7
  439. package/src/bld-scroll-view/index.scss +7 -7
  440. package/src/bld-scroll-view/index.wxml +42 -42
  441. package/src/bld-scroll-view/index.wxss +6 -6
  442. package/src/bld-tag/index.js +33 -33
  443. package/src/bld-tag/index.json +3 -3
  444. package/src/bld-tag/index.scss +126 -126
  445. package/src/bld-tag/index.wxml +2 -2
  446. package/src/bld-tag/index.wxss +107 -107
  447. package/src/bld-text/index.js +46 -46
  448. package/src/bld-text/index.json +2 -2
  449. package/src/bld-text/index.scss +30 -30
  450. package/src/bld-text/index.wxml +3 -3
  451. package/src/bld-text/index.wxss +25 -25
  452. package/src/bld-toast/index.js +113 -113
  453. package/src/bld-toast/index.json +5 -5
  454. package/src/bld-toast/index.scss +111 -111
  455. package/src/bld-toast/index.wxml +26 -26
  456. package/src/bld-toast/index.wxss +94 -94
  457. package/src/bld-toast/toast.js +34 -34
  458. package/src/bld-wrapper/index.js +75 -75
  459. package/src/bld-wrapper/index.json +4 -4
  460. package/src/bld-wrapper/index.scss +7 -7
  461. package/src/bld-wrapper/index.wxml +6 -6
  462. package/src/bld-wrapper/index.wxss +6 -6
  463. package/src/button/index.js +91 -91
  464. package/src/button/index.json +3 -3
  465. package/src/button/index.scss +206 -206
  466. package/src/button/index.wxml +41 -41
  467. package/src/button/index.wxss +175 -175
  468. package/src/components-npm/mp-weixin/index.js +7 -7
  469. package/src/components-npm/mp-weixin/node/node.wxss +3 -3
  470. package/src/grid/index.js +67 -67
  471. package/src/grid/index.json +3 -3
  472. package/src/grid/index.scss +20 -20
  473. package/src/grid/index.wxml +2 -2
  474. package/src/grid/index.wxss +19 -19
  475. package/src/grid-item/index.js +72 -72
  476. package/src/grid-item/index.json +5 -5
  477. package/src/grid-item/index.scss +58 -58
  478. package/src/grid-item/index.wxml +45 -45
  479. package/src/grid-item/index.wxss +50 -50
  480. package/src/timeline/index.js +49 -49
  481. package/src/timeline/index.json +2 -2
  482. package/src/timeline/index.wxml +1 -1
  483. package/src/timeline-item/index.js +27 -27
  484. package/src/timeline-item/index.json +5 -5
  485. package/src/timeline-item/index.scss +36 -36
  486. package/src/timeline-item/index.wxml +9 -9
  487. package/src/timeline-item/index.wxss +30 -30
  488. package/src/utils/systemInfo.js +52 -52
  489. package/tsconfig.json +25 -25
@@ -1,26 +1,26 @@
1
- .content {
2
- display: -webkit-box;
3
- -webkit-box-orient: vertical;
4
- overflow: hidden;
5
- text-overflow: ellipsis;
6
- }
7
- .content.sm {
8
- line-height: calc(var(--font-size-sm) * 1.8);
9
- letter-spacing: 1rpx;
10
- font-size: var(--font-size-sm);
11
- }
12
- .content.md {
13
- line-height: calc(var(--font-size-md) * 1.8);
14
- letter-spacing: 1rpx;
15
- font-size: var(--font-size-md);
16
- }
17
- .content.lg-r {
18
- line-height: calc(var(--font-size-lg-r) * 1.8);
19
- letter-spacing: 1rpx;
20
- font-size: var(--font-size-lg-r);
21
- }
22
- .content.lg {
23
- line-height: calc(var(--font-size-lg) * 1.8);
24
- letter-spacing: 1rpx;
25
- font-size: var(--font-size-lg);
1
+ .content {
2
+ display: -webkit-box;
3
+ -webkit-box-orient: vertical;
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ }
7
+ .content.sm {
8
+ line-height: calc(var(--font-size-sm) * 1.8);
9
+ letter-spacing: 1rpx;
10
+ font-size: var(--font-size-sm);
11
+ }
12
+ .content.md {
13
+ line-height: calc(var(--font-size-md) * 1.8);
14
+ letter-spacing: 1rpx;
15
+ font-size: var(--font-size-md);
16
+ }
17
+ .content.lg-r {
18
+ line-height: calc(var(--font-size-lg-r) * 1.8);
19
+ letter-spacing: 1rpx;
20
+ font-size: var(--font-size-lg-r);
21
+ }
22
+ .content.lg {
23
+ line-height: calc(var(--font-size-lg) * 1.8);
24
+ letter-spacing: 1rpx;
25
+ font-size: var(--font-size-lg);
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-toast/index.js"],"names":["defaults_data","visible","show","mask","ghost","message","position","duration","image","icon","iconColor","iconSize","type","zIndex","Component","externalClasses","options","addGlobalClass","data","transformStyle","ready","wx","canIUse","windowInfo","getWindowInfo","computedBarH","getSystemInfo","success","methods","screenHeight","windowHeight","statusBarHeight","customBarH","capsule","getMenuButtonBoundingClientRect","bottom","top","setData","open","timer","clearTimeout","setTimeout","close","handleHide"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C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AKqC,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 = {\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
+ {"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;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BAAM;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,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,95 +1,95 @@
1
- .m-toast__mask {
2
- z-index: 2000;
3
- position: fixed;
4
- top: 0;
5
- bottom: 0;
6
- left: 0;
7
- right: 0;
8
- background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
9
- }
10
-
11
- .m-toast__wrap {
12
- opacity: 0;
13
- z-index: 2001;
14
- position: fixed;
15
- left: 50%;
16
- transform: translate(-50%, -50%);
17
- transition: opacity 0.15s ease-in;
18
- }
19
- .m-toast__wrap.m-toast--top {
20
- top: 110rpx;
21
- animation: toast-top 0.25s ease-in-out;
22
- }
23
- .m-toast__wrap.m-toast--middle {
24
- top: 45%;
25
- }
26
- .m-toast__wrap.m-toast--bottom {
27
- bottom: 110rpx;
28
- animation: toast-bottom 0.25s ease-in-out;
29
- }
30
- .m-toast__wrap.m-toast--show {
31
- opacity: 1;
32
- }
33
- .m-toast__wrap .m-toast {
34
- margin: 0 auto;
35
- padding: 24rpx 40rpx;
36
- color: #fff;
37
- font-size: 28rpx;
38
- line-height: 28rpx;
39
- text-align: center;
40
- border-radius: 4rpx;
41
- box-sizing: border-box;
42
- background: rgba(0, 0, 0, 0.75);
43
- }
44
- .m-toast__wrap .m-toast .m-toast__icon {
45
- padding: 30rpx 0 60rpx;
46
- }
47
- .m-toast__wrap .m-toast .m-toast__image {
48
- padding-bottom: 20rpx;
49
- }
50
- .m-toast__wrap .m-toast .m-toast__image .m-toast__image__inner {
51
- max-width: 160rpx;
52
- max-height: 160rpx;
53
- }
54
- .m-toast__wrap .m-toast .m-toast__loading {
55
- display: inline-block;
56
- margin: 26rpx 36rpx 36rpx;
57
- width: 54rpx;
58
- height: 54rpx;
59
- border-radius: 50%;
60
- border: 6rpx solid #fff;
61
- border-left-color: transparent;
62
- vertical-align: middle;
63
- background: 0 0;
64
- animation: btn-spinner 0.8s linear infinite;
65
- }
66
- @keyframes toast-top {
67
- 0% {
68
- top: 40rpx;
69
- }
70
- 60% {
71
- top: 130rpx;
72
- }
73
- 100% {
74
- top: 110rpx;
75
- }
76
- }
77
- @keyframes toast-bottom {
78
- 0% {
79
- bottom: 40rpx;
80
- }
81
- 60% {
82
- bottom: 130rpx;
83
- }
84
- 100% {
85
- bottom: 110rpx;
86
- }
87
- }
88
- @keyframes btn-spinner {
89
- 0% {
90
- transform: rotate(0);
91
- }
92
- 100% {
93
- transform: rotate(360deg);
94
- }
1
+ .m-toast__mask {
2
+ z-index: 2000;
3
+ position: fixed;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ background-color: var(--color-mask, rgba(0, 0, 0, 0.55));
9
+ }
10
+
11
+ .m-toast__wrap {
12
+ opacity: 0;
13
+ z-index: 2001;
14
+ position: fixed;
15
+ left: 50%;
16
+ transform: translate(-50%, -50%);
17
+ transition: opacity 0.15s ease-in;
18
+ }
19
+ .m-toast__wrap.m-toast--top {
20
+ top: 110rpx;
21
+ animation: toast-top 0.25s ease-in-out;
22
+ }
23
+ .m-toast__wrap.m-toast--middle {
24
+ top: 45%;
25
+ }
26
+ .m-toast__wrap.m-toast--bottom {
27
+ bottom: 110rpx;
28
+ animation: toast-bottom 0.25s ease-in-out;
29
+ }
30
+ .m-toast__wrap.m-toast--show {
31
+ opacity: 1;
32
+ }
33
+ .m-toast__wrap .m-toast {
34
+ margin: 0 auto;
35
+ padding: 24rpx 40rpx;
36
+ color: #fff;
37
+ font-size: 28rpx;
38
+ line-height: 28rpx;
39
+ text-align: center;
40
+ border-radius: 4rpx;
41
+ box-sizing: border-box;
42
+ background: rgba(0, 0, 0, 0.75);
43
+ }
44
+ .m-toast__wrap .m-toast .m-toast__icon {
45
+ padding: 30rpx 0 60rpx;
46
+ }
47
+ .m-toast__wrap .m-toast .m-toast__image {
48
+ padding-bottom: 20rpx;
49
+ }
50
+ .m-toast__wrap .m-toast .m-toast__image .m-toast__image__inner {
51
+ max-width: 160rpx;
52
+ max-height: 160rpx;
53
+ }
54
+ .m-toast__wrap .m-toast .m-toast__loading {
55
+ display: inline-block;
56
+ margin: 26rpx 36rpx 36rpx;
57
+ width: 54rpx;
58
+ height: 54rpx;
59
+ border-radius: 50%;
60
+ border: 6rpx solid #fff;
61
+ border-left-color: transparent;
62
+ vertical-align: middle;
63
+ background: 0 0;
64
+ animation: btn-spinner 0.8s linear infinite;
65
+ }
66
+ @keyframes toast-top {
67
+ 0% {
68
+ top: 40rpx;
69
+ }
70
+ 60% {
71
+ top: 130rpx;
72
+ }
73
+ 100% {
74
+ top: 110rpx;
75
+ }
76
+ }
77
+ @keyframes toast-bottom {
78
+ 0% {
79
+ bottom: 40rpx;
80
+ }
81
+ 60% {
82
+ bottom: 130rpx;
83
+ }
84
+ 100% {
85
+ bottom: 110rpx;
86
+ }
87
+ }
88
+ @keyframes btn-spinner {
89
+ 0% {
90
+ transform: rotate(0);
91
+ }
92
+ 100% {
93
+ transform: rotate(360deg);
94
+ }
95
95
  }
@@ -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) {\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
+ {"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;QAC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OC,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 +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;QAC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AAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 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
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-wrapper/index.js"],"names":["app","getApp","menuButtonInfo","globalData","menuButtonDistance","systemInfo","safeArea","saleAreaHeight","screenHeight","bottom","tabBarHeight","statusBarHeight","gap","top","navBarHeight","height","navToTab","navToBottom","topToTab","topToBottom","modeStyleMap","modeToStyle","mode","styles","Object","keys","map","key","join","Component","externalClasses","properties","type","String","value","data","style","observers","setData"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;AClFA,IAAMA,MAAMC,QAAZ;;AAEA,IAAMC,iBAAiBF,IAAIG,UAAJ,CAAeC,kBAAtC;AACA,IAAMC,aAAaL,IAAIG,UAAJ,CAAeE,UAAlC;AACA;AACA,IAAMC,WAAWD,WAAWC,QAA5B;AACA,IAAMC,iBAAiBF,WAAWG,YAAX,GAA0BF,SAASG,MAA1D;AACA,IAAMC,eAAe,KAAKH,cAA1B;;AAEA;AACA,IAAMI,kBAAkBN,WAAWM,eAAnC;AACA,IAAMC,MAAMV,eAAeW,GAAf,GAAqBF,eAAjC;;AAEA,IAAMG,eAAeH,kBAAkBT,eAAea,MAAjC,GAA0CH,MAAM,CAArE;;AAEA;AACA,IAAMI,WAAW;AACfH,OAAQC,YAAR,OADe;AAEfC,2BAAuBD,YAAvB,aAA2CJ,YAA3C;AAFe,CAAjB;;AAKA;AACA,IAAMO,cAAc;AAClBJ,OAAQC,YAAR,OADkB;AAElBC,2BAAuBD,YAAvB;AAFkB,CAApB;;AAKA;AACA,IAAMI,WAAW;AACfL,OAAK,KADU;AAEfE,2BAAuBL,YAAvB;AAFe,CAAjB;;AAKA;AACA,IAAMS,cAAc;AAClBN,OAAK,KADa;AAElBE,UAAQ;AAFU,CAApB;;AAKA,IAAMK,eAAe;AACnB,gBAAcJ,QADK;AAEnB,mBAAiBC,WAFE;AAGnB,gBAAcC,QAHK;AAInB,mBAAiBC;AAJE,CAArB;;AAOA,SAASE,WAAT,CAAqBC,IAArB,EAA2B;AACzB,MAAMC,SAASH,aAAaE,IAAb,CAAf;AACA,SAAOE,OAAOC,IAAP,CAAYF,MAAZ,EACJG,GADI,CACA,UAACC,GAAD,EAAS;AACZ,WAAUA,GAAV,UAAkBJ,OAAOI,GAAP,CAAlB;AACD,GAHI,EAIJC,IAJI,CAIC,GAJD,CAAP;AAKD;;AAEDC,UAAU;AACRC,mBAAiB,CAAC,QAAD,CADT;AAERC,cAAY;AACVT,UAAM;AACJU,YAAMC,MADF;AAEJC,aAAO;AAFH;AADI,GAFJ;AAQRC,QAAM;AACJC,WAAO;AADH,GARE;;AAYRC,aAAW;AACTf,UAAM,gBAAY;AAChB,WAAKgB,OAAL,CAAa;AACXF,eAAOf,YAAY,KAAKc,IAAL,CAAUb,IAAtB;AADI,OAAb;AAGD;AALQ;AAZH,CAAV,E","file":"bld-wrapper/index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 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,5 +1,5 @@
1
- {
2
- "component": true,
3
- "styleIsolation": "apply-shared",
4
- "usingComponents": {}
1
+ {
2
+ "component": true,
3
+ "styleIsolation": "apply-shared",
4
+ "usingComponents": {}
5
5
  }
@@ -1,6 +1,6 @@
1
- <view
2
- class="iclass container"
3
- style="{{ style }}"
4
- >
5
- <slot />
6
- </view>
1
+ <view
2
+ class="iclass container"
3
+ style="{{ style }}"
4
+ >
5
+ <slot />
6
+ </view>
@@ -1,7 +1,7 @@
1
- .container {
2
- display: flex;
3
- flex-direction: column;
4
- overflow: auto;
5
- position: absolute;
6
- width: 100%;
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ overflow: auto;
5
+ position: absolute;
6
+ width: 100%;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/button/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","plain","Boolean","inline","size","round","disabled","loading","full","color","bgcolor","openType","hoverStopPropagation","hoverStartTime","Number","hoverStayTime","sendMessageTitle","sendMessagePath","sendMessageImg","showMessageCard","methods","onTap","data","triggerEvent","getuserinfo","detail","contact","getphonenumber","error"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;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,UAAM;AACJA,YAAMC,MADF;AAEJC,aAAO;AAFH,KAFI;AAMVC,WAAO;AACLH,YAAMI,OADD;AAELF,aAAO;AAFF,KANG;AAUVG,YAAQ;AACNL,YAAMI,O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gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,gBAAlB,EAAoCE,MAApC;AACD,KAnBM;AAoBPG,SApBO,mBAsBC;AAAA,sFAAJ,EAAI;AAAA,+BADNH,MACM;AAAA,UADNA,MACM,gCADG,EACH;;AACN,WAAKF,YAAL,CAAkB,OAAlB,EAA2BE,MAA3B;AACD;AAxBM;AAjED,CAAV,E","file":"button\\index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","Component({\r\n externalClasses: ['custom-class'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n // ghost, primary, info, success, warning, error\r\n type: {\r\n type: String,\r\n value: 'default',\r\n },\r\n plain: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n inline: {\r\n type: Boolean,\r\n value: false\r\n },\r\n size: {\r\n type: String,\r\n value: '',\r\n },\r\n round: {\r\n type: Boolean,\r\n value: false\r\n },\r\n disabled: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n loading: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n full: {\r\n type: Boolean,\r\n value: false\r\n },\r\n color: {\r\n type: String,\r\n value: ''\r\n },\r\n bgcolor: {\r\n type: String,\r\n value: ''\r\n },\r\n openType: String,\r\n hoverStopPropagation: Boolean,\r\n hoverStartTime: {\r\n type: Number,\r\n value: 20\r\n },\r\n hoverStayTime: {\r\n type: Number,\r\n value: 70\r\n },\r\n sendMessageTitle: String,\r\n sendMessagePath: String,\r\n sendMessageImg: String,\r\n showMessageCard: Boolean\r\n },\r\n\r\n methods: {\r\n onTap() {\r\n if (this.data.disabled) return false\r\n this.triggerEvent('click')\r\n },\r\n getuserinfo({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('getuserinfo', detail)\r\n },\r\n contact({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('contact', detail)\r\n },\r\n getphonenumber({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('getphonenumber', detail)\r\n },\r\n error({\r\n detail = {}\r\n } = {}) {\r\n this.triggerEvent('error', detail)\r\n }\r\n }\r\n});"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/button/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","type","String","value","plain","Boolean","inline","size","round","disabled","loading","full","color","bgcolor","openType","hoverStopPropagation","hoverStartTime","Number","hoverStayTime","sendMessageTitle","sendMessagePath","sendMessageImg","showMessageCard","methods","onTap","data","triggerEvent","getuserinfo","detail","contact","getphonenumber","error"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;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,C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AA,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,3 +1,3 @@
1
- {
2
- "component": true
3
- }
1
+ {
2
+ "component": true
3
+ }
@@ -1,42 +1,42 @@
1
- <button
2
- class="m-button {{ full ? 'm-button--full' : '' }} {{ size ? 'm-button--' + size : '' }} {{ 'm-button--' + type }} {{ round ? 'is-round' : '' }} {{ plain ? 'is-plain' : '' }} {{ loading ? 'is-loading' : '' }} {{ disabled ? 'is-disabled' : ''}} {{ inline ? 'is-inline' : '' }} custom-class"
3
- style="{{ button.getButtonStyle(color, bgcolor) }}"
4
- hover-class="{{ loading || disabled ? '' : plain ? 'is-plain--hover' : 'is-hover' }}"
5
- bind:tap="onTap"
6
- open-type="{{ openType }}"
7
- hover-stop-propagation="{{ hoverStopPropagation }}"
8
- hover-start-time="{{ hoverStartTime }}"
9
- hover-stay-time="{{ hoverStayTime }}"
10
- send-message-title="{{ sendMessageTitle }}"
11
- send-message-path="{{ sendMessagePath }}"
12
- send-message-img="{{ sendMessageImg }}"
13
- show-message-card="{{ showMessageCard }}"
14
- bindcontact="contact"
15
- bindgetuserinfo="getuserinfo"
16
- bindgetphonenumber="getphonenumber"
17
- binderror="error"
18
- plain="true"
19
- >
20
- <view wx:if="{{ loading }}" class="m-button__loading"></view>
21
- <slot wx:else />
22
- </button>
23
-
24
- <wxs module="button">
25
- function getButtonStyle(color, bgcolor) {
26
-
27
- var styles = []
28
- if(color) {
29
- styles.push('color:' + color)
30
- }
31
-
32
- if(bgcolor) {
33
- styles.push('background-color:' + bgcolor)
34
- }
35
-
36
- return styles.join(";")
37
- }
38
-
39
- module.exports = {
40
- getButtonStyle: getButtonStyle
41
- }
1
+ <button
2
+ class="m-button {{ full ? 'm-button--full' : '' }} {{ size ? 'm-button--' + size : '' }} {{ 'm-button--' + type }} {{ round ? 'is-round' : '' }} {{ plain ? 'is-plain' : '' }} {{ loading ? 'is-loading' : '' }} {{ disabled ? 'is-disabled' : ''}} {{ inline ? 'is-inline' : '' }} custom-class"
3
+ style="{{ button.getButtonStyle(color, bgcolor) }}"
4
+ hover-class="{{ loading || disabled ? '' : plain ? 'is-plain--hover' : 'is-hover' }}"
5
+ bind:tap="onTap"
6
+ open-type="{{ openType }}"
7
+ hover-stop-propagation="{{ hoverStopPropagation }}"
8
+ hover-start-time="{{ hoverStartTime }}"
9
+ hover-stay-time="{{ hoverStayTime }}"
10
+ send-message-title="{{ sendMessageTitle }}"
11
+ send-message-path="{{ sendMessagePath }}"
12
+ send-message-img="{{ sendMessageImg }}"
13
+ show-message-card="{{ showMessageCard }}"
14
+ bindcontact="contact"
15
+ bindgetuserinfo="getuserinfo"
16
+ bindgetphonenumber="getphonenumber"
17
+ binderror="error"
18
+ plain="true"
19
+ >
20
+ <view wx:if="{{ loading }}" class="m-button__loading"></view>
21
+ <slot wx:else />
22
+ </button>
23
+
24
+ <wxs module="button">
25
+ function getButtonStyle(color, bgcolor) {
26
+
27
+ var styles = []
28
+ if(color) {
29
+ styles.push('color:' + color)
30
+ }
31
+
32
+ if(bgcolor) {
33
+ styles.push('background-color:' + bgcolor)
34
+ }
35
+
36
+ return styles.join(";")
37
+ }
38
+
39
+ module.exports = {
40
+ getButtonStyle: getButtonStyle
41
+ }
42
42
  </wxs>