bulade-ui 1.1.45 → 1.1.47

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 (398) 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 +569 -565
  8. package/miniprogram_dist/assets/font/iconfont.wxss +4 -0
  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-badge/index.js.map +1 -1
  14. package/miniprogram_dist/bld-badge/index.json +3 -3
  15. package/miniprogram_dist/bld-badge/index.wxml +13 -13
  16. package/miniprogram_dist/bld-button/index.js.map +1 -1
  17. package/miniprogram_dist/bld-button/index.json +7 -7
  18. package/miniprogram_dist/bld-button/index.wxml +3 -3
  19. package/miniprogram_dist/bld-button-v2/index.js.map +1 -1
  20. package/miniprogram_dist/bld-button-v2/index.json +3 -3
  21. package/miniprogram_dist/bld-button-v2/index.wxml +41 -41
  22. package/miniprogram_dist/bld-card/index.js.map +1 -1
  23. package/miniprogram_dist/bld-card/index.json +2 -2
  24. package/miniprogram_dist/bld-card/index.wxml +5 -5
  25. package/miniprogram_dist/bld-cell/index.js.map +1 -1
  26. package/miniprogram_dist/bld-cell/index.json +7 -7
  27. package/miniprogram_dist/bld-cell/index.wxml +42 -42
  28. package/miniprogram_dist/bld-cell-field/index.js.map +1 -1
  29. package/miniprogram_dist/bld-cell-field/index.json +6 -6
  30. package/miniprogram_dist/bld-cell-field/index.wxml +8 -8
  31. package/miniprogram_dist/bld-cell-group/index.js.map +1 -1
  32. package/miniprogram_dist/bld-cell-group/index.json +2 -2
  33. package/miniprogram_dist/bld-cell-group/index.wxml +14 -14
  34. package/miniprogram_dist/bld-cell-group-v2/index.js.map +1 -1
  35. package/miniprogram_dist/bld-cell-group-v2/index.json +2 -2
  36. package/miniprogram_dist/bld-cell-group-v2/index.wxml +9 -9
  37. package/miniprogram_dist/bld-cell-v2/index.js.map +1 -1
  38. package/miniprogram_dist/bld-cell-v2/index.json +5 -5
  39. package/miniprogram_dist/bld-cell-v2/index.wxml +24 -24
  40. package/miniprogram_dist/bld-checkbox/index.js.map +1 -1
  41. package/miniprogram_dist/bld-checkbox/index.json +5 -5
  42. package/miniprogram_dist/bld-checkbox/index.wxml +66 -66
  43. package/miniprogram_dist/bld-checkbox-group/index.js.map +1 -1
  44. package/miniprogram_dist/bld-checkbox-group/index.json +3 -3
  45. package/miniprogram_dist/bld-cloud-image/index.js.map +1 -1
  46. package/miniprogram_dist/bld-cloud-image/index.json +2 -2
  47. package/miniprogram_dist/bld-cloud-image/index.wxml +14 -14
  48. package/miniprogram_dist/bld-collapse/index.js.map +1 -1
  49. package/miniprogram_dist/bld-collapse/index.json +3 -3
  50. package/miniprogram_dist/bld-collapse/index.wxml +8 -8
  51. package/miniprogram_dist/bld-dialog-tip/index.js.map +1 -1
  52. package/miniprogram_dist/bld-dialog-tip/index.json +5 -5
  53. package/miniprogram_dist/bld-dialog-tip/index.wxml +23 -23
  54. package/miniprogram_dist/bld-drawer/index.js.map +1 -1
  55. package/miniprogram_dist/bld-drawer/index.json +3 -3
  56. package/miniprogram_dist/bld-drawer/index.wxml +13 -13
  57. package/miniprogram_dist/bld-empty-page/index.js.map +1 -1
  58. package/miniprogram_dist/bld-empty-page/index.json +5 -5
  59. package/miniprogram_dist/bld-empty-page/index.wxml +11 -11
  60. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.js.map +1 -1
  61. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  62. package/miniprogram_dist/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  63. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.js.map +1 -1
  64. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  65. package/miniprogram_dist/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  66. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.js.map +1 -1
  67. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  68. package/miniprogram_dist/bld-form/bld-form-item/bld-form-select-input/index.wxml +53 -53
  69. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.js.map +1 -1
  70. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  71. package/miniprogram_dist/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  72. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.js.map +1 -1
  73. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  74. package/miniprogram_dist/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  75. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.js.map +1 -1
  76. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  77. package/miniprogram_dist/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  78. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.js.map +1 -1
  79. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  80. package/miniprogram_dist/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  81. package/miniprogram_dist/bld-half-screen/index.js.map +1 -1
  82. package/miniprogram_dist/bld-half-screen/index.json +4 -4
  83. package/miniprogram_dist/bld-half-screen/index.wxml +36 -36
  84. package/miniprogram_dist/bld-html/index.js.map +1 -1
  85. package/miniprogram_dist/bld-html/index.json +5 -5
  86. package/miniprogram_dist/bld-html/index.wxml +9 -9
  87. package/miniprogram_dist/bld-icon/index.js.map +1 -1
  88. package/miniprogram_dist/bld-icon/index.json +6 -6
  89. package/miniprogram_dist/bld-icon/index.wxml +36 -36
  90. package/miniprogram_dist/bld-icon/index.wxss +4 -0
  91. package/miniprogram_dist/bld-loading/index.js.map +1 -1
  92. package/miniprogram_dist/bld-loading/index.json +6 -6
  93. package/miniprogram_dist/bld-loading/index.wxml +8 -8
  94. package/miniprogram_dist/bld-message/index.js.map +1 -1
  95. package/miniprogram_dist/bld-message/index.json +3 -3
  96. package/miniprogram_dist/bld-message/index.wxml +8 -8
  97. package/miniprogram_dist/bld-message/message.js.map +1 -1
  98. package/miniprogram_dist/bld-modal/index.js.map +1 -1
  99. package/miniprogram_dist/bld-modal/index.json +6 -6
  100. package/miniprogram_dist/bld-modal/index.wxml +22 -22
  101. package/miniprogram_dist/bld-modal/modal.js.map +1 -1
  102. package/miniprogram_dist/bld-nav-bar/index.js.map +1 -1
  103. package/miniprogram_dist/bld-nav-bar/index.json +6 -6
  104. package/miniprogram_dist/bld-nav-bar/index.wxml +43 -43
  105. package/miniprogram_dist/bld-navbar/index.js.map +1 -1
  106. package/miniprogram_dist/bld-navbar/index.json +5 -5
  107. package/miniprogram_dist/bld-navbar/index.wxml +7 -7
  108. package/miniprogram_dist/bld-navbar-group/index.js.map +1 -1
  109. package/miniprogram_dist/bld-navbar-group/index.json +3 -3
  110. package/miniprogram_dist/bld-navbar-group/index.wxml +36 -36
  111. package/miniprogram_dist/bld-notice-bar/index.js.map +1 -1
  112. package/miniprogram_dist/bld-notice-bar/index.json +3 -3
  113. package/miniprogram_dist/bld-notice-bar/index.wxml +29 -29
  114. package/miniprogram_dist/bld-overlay/index.js.map +1 -1
  115. package/miniprogram_dist/bld-overlay/index.json +3 -3
  116. package/miniprogram_dist/bld-overlay/index.wxml +11 -11
  117. package/miniprogram_dist/bld-page/index.js.map +1 -1
  118. package/miniprogram_dist/bld-page/index.json +7 -7
  119. package/miniprogram_dist/bld-page/index.wxml +31 -31
  120. package/miniprogram_dist/bld-pop-up/index.js.map +1 -1
  121. package/miniprogram_dist/bld-pop-up/index.json +6 -6
  122. package/miniprogram_dist/bld-pop-up/index.wxml +18 -18
  123. package/miniprogram_dist/bld-progress/index.js.map +1 -1
  124. package/miniprogram_dist/bld-progress/index.json +3 -3
  125. package/miniprogram_dist/bld-progress/index.wxml +34 -34
  126. package/miniprogram_dist/bld-radio/index.js.map +1 -1
  127. package/miniprogram_dist/bld-radio/index.json +3 -3
  128. package/miniprogram_dist/bld-radio/index.wxml +23 -23
  129. package/miniprogram_dist/bld-radio-group/index.js.map +1 -1
  130. package/miniprogram_dist/bld-radio-group/index.json +3 -3
  131. package/miniprogram_dist/bld-retry/index.js.map +1 -1
  132. package/miniprogram_dist/bld-retry/index.json +2 -2
  133. package/miniprogram_dist/bld-retry/index.wxml +5 -5
  134. package/miniprogram_dist/bld-scroll-view/index.js.map +1 -1
  135. package/miniprogram_dist/bld-scroll-view/index.json +7 -7
  136. package/miniprogram_dist/bld-scroll-view/index.wxml +42 -42
  137. package/miniprogram_dist/bld-tabs/index.js.map +1 -1
  138. package/miniprogram_dist/bld-tabs/index.json +4 -4
  139. package/miniprogram_dist/bld-tabs/index.wxml +13 -13
  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.map +1 -1
  160. package/miniprogram_dist/grid/index.json +3 -3
  161. package/miniprogram_dist/grid/index.wxml +2 -2
  162. package/miniprogram_dist/grid-item/index.js.map +1 -1
  163. package/miniprogram_dist/grid-item/index.json +5 -5
  164. package/miniprogram_dist/grid-item/index.wxml +45 -45
  165. package/miniprogram_dist/timeline/index.js.map +1 -1
  166. package/miniprogram_dist/timeline/index.json +2 -2
  167. package/miniprogram_dist/timeline/index.wxml +1 -1
  168. package/miniprogram_dist/timeline-item/index.js.map +1 -1
  169. package/miniprogram_dist/timeline-item/index.json +5 -5
  170. package/miniprogram_dist/timeline-item/index.wxml +9 -9
  171. package/miniprogram_dist/utils/systemInfo.js +52 -52
  172. package/package.json +72 -72
  173. package/project.config.json +7 -7
  174. package/src/assets/font/iconfont.scss +569 -565
  175. package/src/assets/font/iconfont.wxss +4 -0
  176. package/src/assets/style/border.wxss +94 -94
  177. package/src/bld-action-sheet/index.js +82 -82
  178. package/src/bld-action-sheet/index.json +8 -8
  179. package/src/bld-action-sheet/index.scss +179 -179
  180. package/src/bld-action-sheet/index.wxml +56 -56
  181. package/src/bld-badge/index.js +53 -53
  182. package/src/bld-badge/index.json +3 -3
  183. package/src/bld-badge/index.scss +45 -45
  184. package/src/bld-badge/index.wxml +13 -13
  185. package/src/bld-button/index.js +13 -13
  186. package/src/bld-button/index.json +7 -7
  187. package/src/bld-button/index.scss +44 -44
  188. package/src/bld-button/index.wxml +3 -3
  189. package/src/bld-button-v2/index.js +91 -91
  190. package/src/bld-button-v2/index.json +3 -3
  191. package/src/bld-button-v2/index.scss +206 -206
  192. package/src/bld-button-v2/index.wxml +41 -41
  193. package/src/bld-card/index.js +3 -3
  194. package/src/bld-card/index.json +2 -2
  195. package/src/bld-card/index.scss +6 -6
  196. package/src/bld-card/index.wxml +5 -5
  197. package/src/bld-cell/index.js +29 -29
  198. package/src/bld-cell/index.json +7 -7
  199. package/src/bld-cell/index.scss +42 -42
  200. package/src/bld-cell/index.wxml +42 -42
  201. package/src/bld-cell-field/index.js +11 -11
  202. package/src/bld-cell-field/index.json +6 -6
  203. package/src/bld-cell-field/index.scss +21 -21
  204. package/src/bld-cell-field/index.wxml +8 -8
  205. package/src/bld-cell-group/index.js +12 -12
  206. package/src/bld-cell-group/index.json +2 -2
  207. package/src/bld-cell-group/index.scss +13 -13
  208. package/src/bld-cell-group/index.wxml +14 -14
  209. package/src/bld-cell-group-v2/index.js +70 -70
  210. package/src/bld-cell-group-v2/index.json +2 -2
  211. package/src/bld-cell-group-v2/index.scss +31 -31
  212. package/src/bld-cell-group-v2/index.wxml +9 -9
  213. package/src/bld-cell-v2/index.js +80 -80
  214. package/src/bld-cell-v2/index.json +5 -5
  215. package/src/bld-cell-v2/index.scss +74 -74
  216. package/src/bld-cell-v2/index.wxml +24 -24
  217. package/src/bld-checkbox/index.js +110 -110
  218. package/src/bld-checkbox/index.json +5 -5
  219. package/src/bld-checkbox/index.scss +71 -71
  220. package/src/bld-checkbox/index.wxml +66 -66
  221. package/src/bld-checkbox-group/index.js +84 -84
  222. package/src/bld-checkbox-group/index.json +3 -3
  223. package/src/bld-cloud-image/index.js +79 -79
  224. package/src/bld-cloud-image/index.json +2 -2
  225. package/src/bld-cloud-image/index.scss +3 -3
  226. package/src/bld-cloud-image/index.wxml +14 -14
  227. package/src/bld-collapse/index.js +62 -62
  228. package/src/bld-collapse/index.json +3 -3
  229. package/src/bld-collapse/index.scss +6 -6
  230. package/src/bld-collapse/index.wxml +8 -8
  231. package/src/bld-content-container/index.js +46 -46
  232. package/src/bld-content-container/index.json +2 -2
  233. package/src/bld-content-container/index.wxml +5 -5
  234. package/src/bld-dialog-tip/index.js +60 -60
  235. package/src/bld-dialog-tip/index.json +5 -5
  236. package/src/bld-dialog-tip/index.scss +66 -66
  237. package/src/bld-dialog-tip/index.wxml +23 -23
  238. package/src/bld-drawer/index.js +40 -40
  239. package/src/bld-drawer/index.json +3 -3
  240. package/src/bld-drawer/index.scss +78 -78
  241. package/src/bld-drawer/index.wxml +13 -13
  242. package/src/bld-empty-page/index.js +23 -23
  243. package/src/bld-empty-page/index.json +5 -5
  244. package/src/bld-empty-page/index.scss +15 -15
  245. package/src/bld-empty-page/index.wxml +11 -11
  246. package/src/bld-form/bld-form-item/bld-form-date/index.js +211 -211
  247. package/src/bld-form/bld-form-item/bld-form-date/index.json +6 -6
  248. package/src/bld-form/bld-form-item/bld-form-date/index.scss +53 -53
  249. package/src/bld-form/bld-form-item/bld-form-date/index.wxml +43 -43
  250. package/src/bld-form/bld-form-item/bld-form-input/index.js +53 -53
  251. package/src/bld-form/bld-form-item/bld-form-input/index.json +4 -4
  252. package/src/bld-form/bld-form-item/bld-form-input/index.scss +25 -25
  253. package/src/bld-form/bld-form-item/bld-form-input/index.wxml +27 -27
  254. package/src/bld-form/bld-form-item/bld-form-select-input/index.js +149 -149
  255. package/src/bld-form/bld-form-item/bld-form-select-input/index.json +6 -6
  256. package/src/bld-form/bld-form-item/bld-form-select-input/index.scss +117 -117
  257. package/src/bld-form/bld-form-item/bld-form-select-input/index.wxml +53 -53
  258. package/src/bld-form/bld-form-item/bld-form-step/index.js +58 -58
  259. package/src/bld-form/bld-form-item/bld-form-step/index.json +4 -4
  260. package/src/bld-form/bld-form-item/bld-form-step/index.scss +42 -42
  261. package/src/bld-form/bld-form-item/bld-form-step/index.wxml +28 -28
  262. package/src/bld-form/bld-form-item/bld-form-switch/index.js +37 -37
  263. package/src/bld-form/bld-form-item/bld-form-switch/index.json +4 -4
  264. package/src/bld-form/bld-form-item/bld-form-switch/index.scss +22 -22
  265. package/src/bld-form/bld-form-item/bld-form-switch/index.wxml +6 -6
  266. package/src/bld-form/bld-form-item/bld-form-textarea/index.js +44 -44
  267. package/src/bld-form/bld-form-item/bld-form-textarea/index.json +4 -4
  268. package/src/bld-form/bld-form-item/bld-form-textarea/index.scss +25 -25
  269. package/src/bld-form/bld-form-item/bld-form-textarea/index.wxml +25 -25
  270. package/src/bld-form/bld-form-item/bld-form-time/index.js +108 -108
  271. package/src/bld-form/bld-form-item/bld-form-time/index.json +6 -6
  272. package/src/bld-form/bld-form-item/bld-form-time/index.scss +53 -53
  273. package/src/bld-form/bld-form-item/bld-form-time/index.wxml +43 -43
  274. package/src/bld-half-screen/index.js +166 -166
  275. package/src/bld-half-screen/index.json +4 -4
  276. package/src/bld-half-screen/index.scss +109 -109
  277. package/src/bld-half-screen/index.wxml +36 -36
  278. package/src/bld-html/index.js +46 -46
  279. package/src/bld-html/index.json +5 -5
  280. package/src/bld-html/index.scss +17 -17
  281. package/src/bld-html/index.wxml +9 -9
  282. package/src/bld-icon/index.js +41 -41
  283. package/src/bld-icon/index.json +6 -6
  284. package/src/bld-icon/index.scss +19 -19
  285. package/src/bld-icon/index.wxml +36 -36
  286. package/src/bld-icon/index.wxss +4 -0
  287. package/src/bld-icon-back/index.js +8 -8
  288. package/src/bld-icon-back/index.json +3 -3
  289. package/src/bld-icon-back/index.scss +1 -1
  290. package/src/bld-icon-back/index.wxml +1 -1
  291. package/src/bld-icon-back/index.wxss +4 -0
  292. package/src/bld-loading/index.js +9 -9
  293. package/src/bld-loading/index.json +6 -6
  294. package/src/bld-loading/index.scss +25 -25
  295. package/src/bld-loading/index.wxml +8 -8
  296. package/src/bld-message/index.js +90 -90
  297. package/src/bld-message/index.json +3 -3
  298. package/src/bld-message/index.scss +66 -66
  299. package/src/bld-message/index.wxml +8 -8
  300. package/src/bld-message/message.js +61 -61
  301. package/src/bld-modal/index.js +122 -122
  302. package/src/bld-modal/index.json +6 -6
  303. package/src/bld-modal/index.scss +107 -107
  304. package/src/bld-modal/index.wxml +22 -22
  305. package/src/bld-modal/modal.js +37 -37
  306. package/src/bld-nav-bar/index.js +140 -140
  307. package/src/bld-nav-bar/index.json +6 -6
  308. package/src/bld-nav-bar/index.scss +55 -55
  309. package/src/bld-nav-bar/index.wxml +43 -43
  310. package/src/bld-nav-bar1/index.js +90 -90
  311. package/src/bld-nav-bar1/index.json +5 -5
  312. package/src/bld-nav-bar1/index.scss +39 -39
  313. package/src/bld-nav-bar1/index.wxml +24 -24
  314. package/src/bld-navbar/index.js +62 -62
  315. package/src/bld-navbar/index.json +5 -5
  316. package/src/bld-navbar/index.scss +34 -34
  317. package/src/bld-navbar/index.wxml +7 -7
  318. package/src/bld-navbar-group/index.js +139 -139
  319. package/src/bld-navbar-group/index.json +3 -3
  320. package/src/bld-navbar-group/index.scss +32 -32
  321. package/src/bld-navbar-group/index.wxml +36 -36
  322. package/src/bld-notice-bar/index.js +69 -69
  323. package/src/bld-notice-bar/index.json +3 -3
  324. package/src/bld-notice-bar/index.scss +58 -58
  325. package/src/bld-notice-bar/index.wxml +29 -29
  326. package/src/bld-overlay/index.js +17 -17
  327. package/src/bld-overlay/index.json +3 -3
  328. package/src/bld-overlay/index.scss +11 -11
  329. package/src/bld-overlay/index.wxml +11 -11
  330. package/src/bld-page/index.js +97 -97
  331. package/src/bld-page/index.json +7 -7
  332. package/src/bld-page/index.scss +16 -16
  333. package/src/bld-page/index.wxml +31 -31
  334. package/src/bld-pop-up/index.js +29 -29
  335. package/src/bld-pop-up/index.json +6 -6
  336. package/src/bld-pop-up/index.scss +27 -27
  337. package/src/bld-pop-up/index.wxml +18 -18
  338. package/src/bld-progress/index.js +49 -49
  339. package/src/bld-progress/index.json +3 -3
  340. package/src/bld-progress/index.scss +73 -73
  341. package/src/bld-progress/index.wxml +34 -34
  342. package/src/bld-radio/index.js +64 -64
  343. package/src/bld-radio/index.json +3 -3
  344. package/src/bld-radio/index.scss +67 -67
  345. package/src/bld-radio/index.wxml +23 -23
  346. package/src/bld-radio-group/index.js +82 -82
  347. package/src/bld-radio-group/index.json +3 -3
  348. package/src/bld-retry/index.js +23 -23
  349. package/src/bld-retry/index.json +2 -2
  350. package/src/bld-retry/index.scss +26 -26
  351. package/src/bld-retry/index.wxml +5 -5
  352. package/src/bld-scroll-view/index.js +28 -28
  353. package/src/bld-scroll-view/index.json +7 -7
  354. package/src/bld-scroll-view/index.scss +7 -7
  355. package/src/bld-scroll-view/index.wxml +42 -42
  356. package/src/bld-tabs/index.js +21 -21
  357. package/src/bld-tabs/index.json +4 -4
  358. package/src/bld-tabs/index.scss +32 -32
  359. package/src/bld-tabs/index.wxml +13 -13
  360. package/src/bld-tag/index.js +33 -33
  361. package/src/bld-tag/index.json +3 -3
  362. package/src/bld-tag/index.scss +126 -126
  363. package/src/bld-tag/index.wxml +2 -2
  364. package/src/bld-text/index.js +46 -46
  365. package/src/bld-text/index.json +2 -2
  366. package/src/bld-text/index.scss +30 -30
  367. package/src/bld-text/index.wxml +3 -3
  368. package/src/bld-toast/index.js +113 -113
  369. package/src/bld-toast/index.json +5 -5
  370. package/src/bld-toast/index.scss +111 -111
  371. package/src/bld-toast/index.wxml +26 -26
  372. package/src/bld-toast/toast.js +34 -34
  373. package/src/bld-wrapper/index.js +75 -75
  374. package/src/bld-wrapper/index.json +4 -4
  375. package/src/bld-wrapper/index.scss +7 -7
  376. package/src/bld-wrapper/index.wxml +6 -6
  377. package/src/button/index.js +91 -91
  378. package/src/button/index.json +3 -3
  379. package/src/button/index.scss +206 -206
  380. package/src/button/index.wxml +41 -41
  381. package/src/components-npm/mp-weixin/index.js +7 -7
  382. package/src/grid/index.js +67 -67
  383. package/src/grid/index.json +3 -3
  384. package/src/grid/index.scss +20 -20
  385. package/src/grid/index.wxml +2 -2
  386. package/src/grid-item/index.js +72 -72
  387. package/src/grid-item/index.json +5 -5
  388. package/src/grid-item/index.scss +58 -58
  389. package/src/grid-item/index.wxml +45 -45
  390. package/src/timeline/index.js +49 -49
  391. package/src/timeline/index.json +2 -2
  392. package/src/timeline/index.wxml +1 -1
  393. package/src/timeline-item/index.js +27 -27
  394. package/src/timeline-item/index.json +5 -5
  395. package/src/timeline-item/index.scss +36 -36
  396. package/src/timeline-item/index.wxml +9 -9
  397. package/src/utils/systemInfo.js +52 -52
  398. package/tsconfig.json +25 -25
@@ -1,7 +1,7 @@
1
- <view class="input-box form-item">
2
- <view class="input-label item-label" style="width:{{labelWidth}}" wx:if="{{label}}">
3
- <view class="input-required" wx:if="{{required}}">*</view>
4
- <view>{{label}}</view>
5
- </view>
6
- <switch class="input-value form-value" color="{{color}}" checked="{{value}}" bindchange="switchChange"/>
1
+ <view class="input-box form-item">
2
+ <view class="input-label item-label" style="width:{{labelWidth}}" wx:if="{{label}}">
3
+ <view class="input-required" wx:if="{{required}}">*</view>
4
+ <view>{{label}}</view>
5
+ </view>
6
+ <switch class="input-value form-value" color="{{color}}" checked="{{value}}" bindchange="switchChange"/>
7
7
  </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-textarea/index.js"],"names":["Component","options","styleIsolation","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","autoHeight","data","methods","valueChange","event","detail","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,WAAS;AACPC,oBAAgB;AADT,GADD;AAIRC,mBAAiB,CAAC,WAAD,EAAc,YAAd,EAA4B,YAA5B,CAJT;AAKRC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,cAAU;AACRH,YAAMI,OADE;AAERF,aAAO;AAFC,KALA;AASVG,gBAAY;AACVL,YAAMC,MADI;AAEVC,aAAO;AAFG,KATF;AAaVA,WAAO;AACLF,YAAMC,MADD;AAELC,aAAO;AAFF,KAbG;AAiBVI,cAAU;AACRN,YAAMI,OADE;AAERF,aAAO;AAFC,KAjBA;AAqBVK,gBAAY;AACVP,YAAMI,OADI;AAEVF,aAAO;AAFG;AArBF,GALJ;AA+BRM,QAAM;AACJN,WAAO;AADH,GA/BE;AAkCRO,WAAS;AACPC,eADO,uBACKC,KADL,EACY;AAAA,UACTT,KADS,GACCS,MAAMC,MADP,CACTV,KADS;;;AAGjB,WAAKW,OAAL,CAAa;AACXX,eAAOA;AADI,OAAb;AAGD;AAPM;AAlCD,CAAV,E","file":"bld-form/bld-form-item/bld-form-textarea/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 = 18);\n","Component({\n options: {\n styleIsolation: \"shared\",\n },\n externalClasses: [\"form-item\", \"form-label\", \"form-value\"],\n properties: {\n label: {\n type: String,\n value: \"\",\n },\n required: {\n type: Boolean,\n value: false,\n },\n labelWidth: {\n type: String,\n value: \"auto\",\n },\n value: {\n type: String,\n value: \"\",\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n autoHeight: {\n type: Boolean,\n value: false,\n },\n },\n data: {\n value: \"\",\n },\n methods: {\n valueChange(event) {\n const { value } = event.detail;\n\n this.setData({\n value: value,\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-textarea/index.js"],"names":["Component","options","styleIsolation","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","autoHeight","data","methods","valueChange","event","detail","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,WAAS;AACPC,oBAAgB;AADT,GADD;AAIRC,mBAAiB,CAAC,WAAD,EAAc,YAAd,EAA4B,YAA5B,CAJT;AAKRC,cAAY;AACVC,WAAO;AACLC,YAAMC,MADD;AAELC,aAAO;AAFF,KADG;AAKVC,cAAU;AACRH,YAAMI,OADE;AAERF,aAAO;AAFC,KALA;AASVG,gBAAY;AACVL,YAAMC,MADI;AAEVC,aAAO;AAFG,KATF;AAaVA,WAAO;AACLF,YAAMC,MADD;AAELC,aAAO;AAFF,KAbG;AAiBVI,cAAU;AACRN,YAAMI,OADE;AAERF,aAAO;AAFC,KAjBA;AAqBVK,gBAAY;AACVP,YAAMI,OADI;AAEVF,aAAO;AAFG;AArBF,GALJ;AA+BRM,QAAM;AACJN,WAAO;AADH,GA/BE;AAkCRO,WAAS;AACPC,eADO,uBACKC,KADL,EACY;AAAA,UACTT,KADS,GACCS,MAAMC,MADP,CACTV,KADS;;;AAGjB,WAAKW,OAAL,CAAa;AACXX,eAAOA;AADI,OAAb;AAGD;AAPM;AAlCD,CAAV,E","file":"bld-form\\bld-form-item\\bld-form-textarea\\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 = 18);\n","Component({\r\n options: {\r\n styleIsolation: \"shared\",\r\n },\r\n externalClasses: [\"form-item\", \"form-label\", \"form-value\"],\r\n properties: {\r\n label: {\r\n type: String,\r\n value: \"\",\r\n },\r\n required: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n labelWidth: {\r\n type: String,\r\n value: \"auto\",\r\n },\r\n value: {\r\n type: String,\r\n value: \"\",\r\n },\r\n disabled: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n autoHeight: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n },\r\n data: {\r\n value: \"\",\r\n },\r\n methods: {\r\n valueChange(event) {\r\n const { value } = event.detail;\r\n\r\n this.setData({\r\n value: value,\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,5 +1,5 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
5
  }
@@ -1,25 +1,25 @@
1
- <view class="item-box form-item">
2
- <view class="item-label-box" wx:if="{{label}}">
3
- <view
4
- wx:if="{{ required }}"
5
- class="item-label-required"
6
- >
7
- *
8
- </view>
9
- <view
10
- class="item-label form-label"
11
- style="width: {{ labelWidth }};"
12
- >
13
- {{ label }}
14
- </view>
15
- </view>
16
- <textarea
17
- class="item-value form-value"
18
- disabled="{{disabled}}"
19
- auto-height="{{autoHeight}}"
20
- model:value="{{ value }}"
21
- placeholder="请输入{{ label }}"
22
- placeholder-style="color:#acacac;font-size:30rpx;font-weight:normal;"
23
- bindinput="valueChange"
24
- />
25
- </view>
1
+ <view class="item-box form-item">
2
+ <view class="item-label-box" wx:if="{{label}}">
3
+ <view
4
+ wx:if="{{ required }}"
5
+ class="item-label-required"
6
+ >
7
+ *
8
+ </view>
9
+ <view
10
+ class="item-label form-label"
11
+ style="width: {{ labelWidth }};"
12
+ >
13
+ {{ label }}
14
+ </view>
15
+ </view>
16
+ <textarea
17
+ class="item-value form-value"
18
+ disabled="{{disabled}}"
19
+ auto-height="{{autoHeight}}"
20
+ model:value="{{ value }}"
21
+ placeholder="请输入{{ label }}"
22
+ placeholder-style="color:#acacac;font-size:30rpx;font-weight:normal;"
23
+ bindinput="valueChange"
24
+ />
25
+ </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-time/index.js"],"names":["nowDate","date","Date","h","getHours","m","getMinutes","s","getSeconds","hours","minutes","seconds","i","push","toString","padStart","Component","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","data","hour","minute","second","showActionsheet","selectValue","text","observers","initDate","methods","valueDates","slice","setData","Number","showSellect","handelChoose","bindChange","e","val","detail"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA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AAM,KAAKD,IAAL,CAAUlB,KAAV,CAAgBoC,IAAI,CAAJ,CAAhB,CADK;AAEXhB,gBAAQ,KAAKF,IAAL,CAAUjB,OAAV,CAAkBmC,IAAI,CAAJ,CAAlB,CAFG;AAGXf,gBAAQ,KAAKH,IAAL,CAAUhB,OAAV,CAAkBkC,IAAI,CAAJ,CAAlB;AAHG,OAAb;AAKD;AA7CM;AA1CD,CAAV,E","file":"bld-form/bld-form-item/bld-form-time/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 = 19);\n","function nowDate() {\n const date = new Date();\n const h = date.getHours();\n const m = date.getMinutes();\n const s = date.getSeconds();\n return [h, m, s];\n}\n\nconst hours = [];\nconst minutes = [];\nconst seconds = [];\nfor (let i = 0; i < 24; i++) {\n hours.push(i.toString().padStart(2, \"0\"));\n}\nfor (let i = 0; i < 60; i++) {\n minutes.push(i.toString().padStart(2, \"0\"));\n seconds.push(i.toString().padStart(2, \"0\"));\n}\nComponent({\n externalClasses: [\"form-item\", \"form-label\", \"form-value\", \"select-icon\"],\n properties: {\n label: {\n type: String,\n value: \"\",\n },\n required: {\n type: Boolean,\n value: false,\n },\n labelWidth: {\n type: String,\n value: \"auto\",\n },\n value: {\n type: String,\n value: \"\",\n },\n disabled: {\n type: Boolean,\n value: false,\n },\n },\n data: {\n date: new Date(),\n hours: hours,\n hour: \"\",\n minutes: minutes,\n minute: \"\",\n seconds: seconds,\n second: \"\",\n showActionsheet: false,\n selectValue: nowDate(),\n text: \"\",\n },\n\n observers: {\n value: function () {\n this.initDate(this.data.value);\n },\n },\n methods: {\n initDate(value = \"\") {\n if (value) {\n const valueDates = new Date(value);\n const h = value.slice(0, 2);\n const m = value.slice(3, 5);\n const s = value.slice(6, 8);\n\n this.setData({\n selectValue: [h, m, s],\n text: this.data.hours[Number(h)] + \":\" + this.data.minutes[Number(m)] + \":\" + this.data.seconds[Number(s)],\n });\n } else {\n this.setData({\n selectValue: nowDate(),\n text: \"\",\n });\n }\n },\n showSellect() {\n if (this.data.disabled) return;\n\n this.setData({\n showActionsheet: true,\n });\n },\n handelChoose() {\n const hour = this.data.hour || this.data.hours[Number(this.data.selectValue[0])];\n const minute = this.data.minute || this.data.minutes[Number(this.data.selectValue[1])];\n const second = this.data.second || this.data.seconds[Number(this.data.selectValue[2])];\n\n this.setData({\n showActionsheet: false,\n text: hour + \":\" + minute + \":\" + second,\n value: hour + \":\" + minute + \":\" + second,\n });\n },\n bindChange(e) {\n const val = e.detail.value;\n\n this.setData({\n hour: this.data.hours[val[0]],\n minute: this.data.minutes[val[1]],\n second: this.data.seconds[val[2]],\n });\n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-form/bld-form-item/bld-form-time/index.js"],"names":["nowDate","date","Date","h","getHours","m","getMinutes","s","getSeconds","hours","minutes","seconds","i","push","toString","padStart","Component","externalClasses","properties","label","type","String","value","required","Boolean","labelWidth","disabled","data","hour","minute","second","showActionsheet","selectValue","text","observers","initDate","methods","valueDates","slice","setData","Number","showSellect","handelChoose","bindChange","e","val","detail"],"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,wDAA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KAAKH,IAAL,CAAUhB,OAAV,CAAkBkC,IAAI,CAAJ,CAAlB;AAHG,OAAb;AAKD;AA7CM;AA1CD,CAAV,E","file":"bld-form\\bld-form-item\\bld-form-time\\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 = 19);\n","function nowDate() {\r\n const date = new Date();\r\n const h = date.getHours();\r\n const m = date.getMinutes();\r\n const s = date.getSeconds();\r\n return [h, m, s];\r\n}\r\n\r\nconst hours = [];\r\nconst minutes = [];\r\nconst seconds = [];\r\nfor (let i = 0; i < 24; i++) {\r\n hours.push(i.toString().padStart(2, \"0\"));\r\n}\r\nfor (let i = 0; i < 60; i++) {\r\n minutes.push(i.toString().padStart(2, \"0\"));\r\n seconds.push(i.toString().padStart(2, \"0\"));\r\n}\r\nComponent({\r\n externalClasses: [\"form-item\", \"form-label\", \"form-value\", \"select-icon\"],\r\n properties: {\r\n label: {\r\n type: String,\r\n value: \"\",\r\n },\r\n required: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n labelWidth: {\r\n type: String,\r\n value: \"auto\",\r\n },\r\n value: {\r\n type: String,\r\n value: \"\",\r\n },\r\n disabled: {\r\n type: Boolean,\r\n value: false,\r\n },\r\n },\r\n data: {\r\n date: new Date(),\r\n hours: hours,\r\n hour: \"\",\r\n minutes: minutes,\r\n minute: \"\",\r\n seconds: seconds,\r\n second: \"\",\r\n showActionsheet: false,\r\n selectValue: nowDate(),\r\n text: \"\",\r\n },\r\n\r\n observers: {\r\n value: function () {\r\n this.initDate(this.data.value);\r\n },\r\n },\r\n methods: {\r\n initDate(value = \"\") {\r\n if (value) {\r\n const valueDates = new Date(value);\r\n const h = value.slice(0, 2);\r\n const m = value.slice(3, 5);\r\n const s = value.slice(6, 8);\r\n\r\n this.setData({\r\n selectValue: [h, m, s],\r\n text: this.data.hours[Number(h)] + \":\" + this.data.minutes[Number(m)] + \":\" + this.data.seconds[Number(s)],\r\n });\r\n } else {\r\n this.setData({\r\n selectValue: nowDate(),\r\n text: \"\",\r\n });\r\n }\r\n },\r\n showSellect() {\r\n if (this.data.disabled) return;\r\n\r\n this.setData({\r\n showActionsheet: true,\r\n });\r\n },\r\n handelChoose() {\r\n const hour = this.data.hour || this.data.hours[Number(this.data.selectValue[0])];\r\n const minute = this.data.minute || this.data.minutes[Number(this.data.selectValue[1])];\r\n const second = this.data.second || this.data.seconds[Number(this.data.selectValue[2])];\r\n\r\n this.setData({\r\n showActionsheet: false,\r\n text: hour + \":\" + minute + \":\" + second,\r\n value: hour + \":\" + minute + \":\" + second,\r\n });\r\n },\r\n bindChange(e) {\r\n const val = e.detail.value;\r\n\r\n this.setData({\r\n hour: this.data.hours[val[0]],\r\n minute: this.data.minutes[val[1]],\r\n second: this.data.seconds[val[2]],\r\n });\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,7 +1,7 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "bld-half-screen":"../../../bld-half-screen/index",
5
- "bld-cloud-image": "../../../bld-cloud-image/index"
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-half-screen":"../../../bld-half-screen/index",
5
+ "bld-cloud-image": "../../../bld-cloud-image/index"
6
+ }
7
7
  }
@@ -1,44 +1,44 @@
1
- <view class="item-box form-item" bind:tap="showSellect">
2
- <view class="item-label-box" wx:if="{{label}}">
3
- <block wx:if="{{ required }}">
4
- <view class="item-label-required">
5
- *
6
- </view>
7
- </block>
8
- <view
9
- class="item-label form-label"
10
- style="width: {{ labelWidth }};"
11
- >
12
- {{ label }}
13
- </view>
14
- </view>
15
- <view class="item-value-box">
16
- <view class="item-value-text form-value {{text?text:'value-placeholder'}}">{{text?text:"请选择"+label}}</view>
17
- <bld-cloud-image
18
- iclass="arrow-icon select-icon"
19
- src="my/arrow.png"
20
- />
21
- </view>
22
- </view>
23
- <bld-half-screen showHalfScreen="{{showActionsheet}}" markClass="mark-box" containerClass="container-box"
24
- containerHeight="800rpx" mark="{{true}}" showClose="{{false}}" canClose="{{true}}">
25
- <view slot="header">
26
- </view>
27
- <view slot="content">
28
- <picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{selectValue}}" bindchange="bindChange">
29
- <picker-view-column>
30
- <view wx:for="{{hours}}" wx:key="{{hours}}" style="line-height: 50px; text-align: center;">{{item}}</view>
31
- </picker-view-column>
32
- <picker-view-column>
33
- <view wx:for="{{minutes}}" wx:key="{{minutes}}" style="line-height: 50px; text-align: center;">{{item}}</view>
34
- </picker-view-column>
35
- <picker-view-column>
36
- <view wx:for="{{seconds}}" wx:key="{{seconds}}" style="line-height: 50px; text-align: center;">{{item}}</view>
37
- </picker-view-column>
38
- </picker-view>
39
- </view>
40
-
41
- <view slot="footer">
42
- <view class="sure-button" bind:tap="handelChoose">确定</view>
43
- </view>
1
+ <view class="item-box form-item" bind:tap="showSellect">
2
+ <view class="item-label-box" wx:if="{{label}}">
3
+ <block wx:if="{{ required }}">
4
+ <view class="item-label-required">
5
+ *
6
+ </view>
7
+ </block>
8
+ <view
9
+ class="item-label form-label"
10
+ style="width: {{ labelWidth }};"
11
+ >
12
+ {{ label }}
13
+ </view>
14
+ </view>
15
+ <view class="item-value-box">
16
+ <view class="item-value-text form-value {{text?text:'value-placeholder'}}">{{text?text:"请选择"+label}}</view>
17
+ <bld-cloud-image
18
+ iclass="arrow-icon select-icon"
19
+ src="my/arrow.png"
20
+ />
21
+ </view>
22
+ </view>
23
+ <bld-half-screen showHalfScreen="{{showActionsheet}}" markClass="mark-box" containerClass="container-box"
24
+ containerHeight="800rpx" mark="{{true}}" showClose="{{false}}" canClose="{{true}}">
25
+ <view slot="header">
26
+ </view>
27
+ <view slot="content">
28
+ <picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{selectValue}}" bindchange="bindChange">
29
+ <picker-view-column>
30
+ <view wx:for="{{hours}}" wx:key="{{hours}}" style="line-height: 50px; text-align: center;">{{item}}</view>
31
+ </picker-view-column>
32
+ <picker-view-column>
33
+ <view wx:for="{{minutes}}" wx:key="{{minutes}}" style="line-height: 50px; text-align: center;">{{item}}</view>
34
+ </picker-view-column>
35
+ <picker-view-column>
36
+ <view wx:for="{{seconds}}" wx:key="{{seconds}}" style="line-height: 50px; text-align: center;">{{item}}</view>
37
+ </picker-view-column>
38
+ </picker-view>
39
+ </view>
40
+
41
+ <view slot="footer">
42
+ <view class="sure-button" bind:tap="handelChoose">确定</view>
43
+ </view>
44
44
  </bld-half-screen>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-half-screen/index.js"],"names":["wx","worklet","shared","timing","GestureState","POSSIBLE","BEGIN","ACTIVE","END","CANCELLED","Component","externalClasses","properties","showHalfScreen","type","Boolean","value","mark","maskClosable","containerHeight","String","showClose","canClose","options","multipleSlots","data","showMark","observers","newShow","openComment","closeComment","canCloseSelect","lifetimes","created","transY","scrollTop","startPan","commentHeight","setData","ready","query","createSelectorQuery","select","boundingClientRect","exec","res","height","applyAnimatedStyle","transform","methods","scrollToLower","triggerEvent","scrollTouUpPer","onTapOpenComment","changeMask","duration","runOnJS","bind","onTapCloseComment","closeByMark","shouldPanResponse","shouldScrollViewResponse","pointerEvent","deltaY","result","handlePan","gestureEvent","state","curPosition","destination","Math","max","velocityY","adjustDecelerationVelocity","velocity","handleScroll","evt","detail"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;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AACA,WAAKzC,SAAL,CAAenB,KAAf,GAAuB4D,IAAIC,MAAJ,CAAW1C,SAAlC;AACD;AAnFM;AAvED,CAAV,E","file":"bld-half-screen/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 = 12);\n","const { shared, timing } = wx.worklet\n\nconst GestureState = {\n POSSIBLE: 0, // 0 此时手势未识别,如 panDown等\n BEGIN: 1, // 1 手势已识别\n ACTIVE: 2, // 2 连续手势活跃状态\n END: 3, // 3 手势终止\n CANCELLED: 4 // 4 手势取消,\n}\n\nComponent({\n externalClasses: [\"referenceClass\", \"containerClass\", \"headerClass\", \"headerTittleClass\", \"contentClass\", \"markClass\",\"footerClass\"],\n properties: {\n showHalfScreen: {\n type: Boolean,\n value: false\n },\n mark: {\n type: Boolean,\n value: false\n },\n maskClosable: {\n type: Boolean,\n value: true\n },\n containerHeight: {\n type: String,\n value: \"50vh\"\n },\n showClose: {\n type: Boolean,\n value: true\n },\n canClose: {\n type: Boolean,\n value: true\n }\n },\n options: {\n multipleSlots: true // 在组件定义时的选项中启用多slot支持\n },\n data: {\n showMark: false\n },\n observers: {\n showHalfScreen: function(newShow) {\n if (newShow) {\n this.openComment(300)\n } else {\n this.closeComment()\n }\n },\n canClose: function() {\n this.canCloseSelect = this.properties.canClose\n }\n },\n lifetimes: {\n created() {\n this.transY = shared(1000)\n this.scrollTop = shared(0)\n this.startPan = shared(true)\n this.commentHeight = shared(1000)\n this.canCloseSelect = this.properties.canClose\n this.setData({\n showMark: this.properties.mark\n })\n },\n ready() {\n const query = this.createSelectorQuery()\n // ready 生命周期里才能获取到首屏的布局信息\n query.select(\".comment-container\").boundingClientRect()\n query.exec((res) => {\n this.transY.value = this.commentHeight.value = res[0].height\n })\n // 通过 transY 一个 SharedValue 控制半屏的位置\n this.applyAnimatedStyle(\".comment-container\", () => {\n \"worklet\"\n return { transform: `translateY(${this.transY.value}px)` }\n })\n }\n },\n methods: {\n scrollToLower() {\n this.triggerEvent(\"scrollToLower\")\n\n },\n scrollTouUpPer() {\n this.triggerEvent(\"scrollTouUpPer\")\n\n },\n onTapOpenComment() {\n this.openComment(300)\n },\n changeMask(mark) {\n if (this.properties.mark) {\n this.setData({\n showMark: mark\n })\n } else {\n this.triggerEvent(\"closeHalfScreen\")\n }\n },\n openComment(duration) {\n \"worklet\"\n wx.worklet.runOnJS(this.changeMask.bind(this))(true)\n this.transY.value = timing(0, { duration })\n },\n onTapCloseComment() {\n this.closeComment()\n },\n closeByMark() {\n if (this.properties.maskClosable) {\n this.closeComment()\n }\n },\n closeComment() {\n \"worklet\"\n if (!this.canCloseSelect) return\n wx.worklet.runOnJS(this.changeMask.bind(this))(false)\n this.transY.value = timing(this.commentHeight.value, { duration: 500 })\n },\n shouldPanResponse() {\n \"worklet\"\n return this.startPan.value\n },\n shouldScrollViewResponse(pointerEvent) {\n \"worklet\"\n // transY > 0 说明 pan 手势在移动半屏,此时滚动不应生效\n if (this.transY.value > 0) return false\n const scrollTop = this.scrollTop.value\n const { deltaY } = pointerEvent\n // deltaY > 0 是往上滚动,scrollTop <= 0 是滚动到顶部边界,此时 pan 开始生效,滚动不生效\n const result = scrollTop <= 0 && deltaY > 0\n this.startPan.value = result\n return !result\n },\n handlePan(gestureEvent) {\n \"worklet\"\n if (!this.canCloseSelect) return\n if (gestureEvent.state === GestureState.ACTIVE) {\n const curPosition = this.transY.value\n const destination = Math.max(0, curPosition + gestureEvent.deltaY)\n if (curPosition === destination) return\n this.transY.value = destination\n }\n\n if (gestureEvent.state === GestureState.END || gestureEvent.state === GestureState.CANCELLED) {\n if (gestureEvent.velocityY > 500 && this.transY.value > 50) {\n this.closeComment()\n } else if (this.transY.value > this.commentHeight.value / 2) {\n this.closeComment()\n } else {\n this.openComment(100)\n }\n }\n },\n adjustDecelerationVelocity(velocity) {\n \"worklet\"\n const scrollTop = this.scrollTop.value\n return scrollTop <= 0 ? 0 : velocity\n },\n handleScroll(evt) {\n \"worklet\"\n this.scrollTop.value = evt.detail.scrollTop\n }\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-half-screen/index.js"],"names":["wx","worklet","shared","timing","GestureState","POSSIBLE","BEGIN","ACTIVE","END","CANCELLED","Component","externalClasses","properties","showHalfScreen","type","Boolean","value","mark","maskClosable","containerHeight","String","showClose","canClose","options","multipleSlots","data","showMark","observers","newShow","openComment","closeComment","canCloseSelect","lifetimes","created","transY","scrollTop","startPan","commentHeight","setData","ready","query","createSelectorQuery","select","boundingClientRect","exec","res","height","applyAnimatedStyle","transform","methods","scrollToLower","triggerEvent","scrollTouUpPer","onTapOpenComment","changeMask","duration","runOnJS","bind","onTapCloseComment","closeByMark","shouldPanResponse","shouldScrollViewResponse","pointerEvent","deltaY","result","handlePan","gestureEvent","state","curPosition","destination","Math","max","velocityY","adjustDecelerationVelocity","velocity","handleScroll","evt","detail"],"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,m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AAI,CAAC,KAAKnC,cAAV,EAA0B;AAC1B,UAAImC,aAAaC,KAAb,KAAuB/D,aAAaG,MAAxC,EAAgD;AAC9C,YAAM6D,cAAc,KAAKlC,MAAL,CAAYlB,KAAhC;AACA,YAAMqD,cAAcC,KAAKC,GAAL,CAAS,CAAT,EAAYH,cAAcF,aAAaH,MAAvC,CAApB;AACA,YAAIK,gBAAgBC,WAApB,EAAiC;AACjC,aAAKnC,MAAL,CAAYlB,KAAZ,GAAoBqD,WAApB;AACD;;AAED,UAAIH,aAAaC,KAAb,KAAuB/D,aAAaI,GAApC,IAA2C0D,aAAaC,KAAb,KAAuB/D,aAAaK,SAAnF,EAA8F;AAC5F,YAAIyD,aAAaM,SAAb,GAAyB,GAAzB,IAAgC,KAAKtC,MAAL,CAAYlB,KAAZ,GAAoB,EAAxD,EAA4D;AAC1D,eAAKc,YAAL;AACD,SAFD,MAEO,IAAI,KAAKI,MAAL,CAAYlB,KAAZ,GAAoB,KAAKqB,aAAL,CAAmBrB,KAAnB,GAA2B,CAAnD,EAAsD;AAC3D,eAAKc,YAAL;AACD,SAFM,MAEA;AACL,eAAKD,WAAL,CAAiB,GAAjB;AACD;AACF;AACF,KA1EM;AA2EP4C,8BA3EO,sCA2EoBC,QA3EpB,EA2E8B;AACnC;;AACA,UAAMvC,YAAY,KAAKA,SAAL,CAAenB,KAAjC;AACA,aAAOmB,aAAa,CAAb,GAAiB,CAAjB,GAAqBuC,QAA5B;AACD,KA/EM;AAgFPC,gBAhFO,wBAgFMC,GAhFN,EAgFW;AAChB;;AACA,WAAKzC,SAAL,CAAenB,KAAf,GAAuB4D,IAAIC,MAAJ,CAAW1C,SAAlC;AACD;AAnFM;AAvED,CAAV,E","file":"bld-half-screen\\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 = 12);\n","const { shared, timing } = wx.worklet\r\n\r\nconst GestureState = {\r\n POSSIBLE: 0, // 0 此时手势未识别,如 panDown等\r\n BEGIN: 1, // 1 手势已识别\r\n ACTIVE: 2, // 2 连续手势活跃状态\r\n END: 3, // 3 手势终止\r\n CANCELLED: 4 // 4 手势取消,\r\n}\r\n\r\nComponent({\r\n externalClasses: [\"referenceClass\", \"containerClass\", \"headerClass\", \"headerTittleClass\", \"contentClass\", \"markClass\",\"footerClass\"],\r\n properties: {\r\n showHalfScreen: {\r\n type: Boolean,\r\n value: false\r\n },\r\n mark: {\r\n type: Boolean,\r\n value: false\r\n },\r\n maskClosable: {\r\n type: Boolean,\r\n value: true\r\n },\r\n containerHeight: {\r\n type: String,\r\n value: \"50vh\"\r\n },\r\n showClose: {\r\n type: Boolean,\r\n value: true\r\n },\r\n canClose: {\r\n type: Boolean,\r\n value: true\r\n }\r\n },\r\n options: {\r\n multipleSlots: true // 在组件定义时的选项中启用多slot支持\r\n },\r\n data: {\r\n showMark: false\r\n },\r\n observers: {\r\n showHalfScreen: function(newShow) {\r\n if (newShow) {\r\n this.openComment(300)\r\n } else {\r\n this.closeComment()\r\n }\r\n },\r\n canClose: function() {\r\n this.canCloseSelect = this.properties.canClose\r\n }\r\n },\r\n lifetimes: {\r\n created() {\r\n this.transY = shared(1000)\r\n this.scrollTop = shared(0)\r\n this.startPan = shared(true)\r\n this.commentHeight = shared(1000)\r\n this.canCloseSelect = this.properties.canClose\r\n this.setData({\r\n showMark: this.properties.mark\r\n })\r\n },\r\n ready() {\r\n const query = this.createSelectorQuery()\r\n // ready 生命周期里才能获取到首屏的布局信息\r\n query.select(\".comment-container\").boundingClientRect()\r\n query.exec((res) => {\r\n this.transY.value = this.commentHeight.value = res[0].height\r\n })\r\n // 通过 transY 一个 SharedValue 控制半屏的位置\r\n this.applyAnimatedStyle(\".comment-container\", () => {\r\n \"worklet\"\r\n return { transform: `translateY(${this.transY.value}px)` }\r\n })\r\n }\r\n },\r\n methods: {\r\n scrollToLower() {\r\n this.triggerEvent(\"scrollToLower\")\r\n\r\n },\r\n scrollTouUpPer() {\r\n this.triggerEvent(\"scrollTouUpPer\")\r\n\r\n },\r\n onTapOpenComment() {\r\n this.openComment(300)\r\n },\r\n changeMask(mark) {\r\n if (this.properties.mark) {\r\n this.setData({\r\n showMark: mark\r\n })\r\n } else {\r\n this.triggerEvent(\"closeHalfScreen\")\r\n }\r\n },\r\n openComment(duration) {\r\n \"worklet\"\r\n wx.worklet.runOnJS(this.changeMask.bind(this))(true)\r\n this.transY.value = timing(0, { duration })\r\n },\r\n onTapCloseComment() {\r\n this.closeComment()\r\n },\r\n closeByMark() {\r\n if (this.properties.maskClosable) {\r\n this.closeComment()\r\n }\r\n },\r\n closeComment() {\r\n \"worklet\"\r\n if (!this.canCloseSelect) return\r\n wx.worklet.runOnJS(this.changeMask.bind(this))(false)\r\n this.transY.value = timing(this.commentHeight.value, { duration: 500 })\r\n },\r\n shouldPanResponse() {\r\n \"worklet\"\r\n return this.startPan.value\r\n },\r\n shouldScrollViewResponse(pointerEvent) {\r\n \"worklet\"\r\n // transY > 0 说明 pan 手势在移动半屏,此时滚动不应生效\r\n if (this.transY.value > 0) return false\r\n const scrollTop = this.scrollTop.value\r\n const { deltaY } = pointerEvent\r\n // deltaY > 0 是往上滚动,scrollTop <= 0 是滚动到顶部边界,此时 pan 开始生效,滚动不生效\r\n const result = scrollTop <= 0 && deltaY > 0\r\n this.startPan.value = result\r\n return !result\r\n },\r\n handlePan(gestureEvent) {\r\n \"worklet\"\r\n if (!this.canCloseSelect) return\r\n if (gestureEvent.state === GestureState.ACTIVE) {\r\n const curPosition = this.transY.value\r\n const destination = Math.max(0, curPosition + gestureEvent.deltaY)\r\n if (curPosition === destination) return\r\n this.transY.value = destination\r\n }\r\n\r\n if (gestureEvent.state === GestureState.END || gestureEvent.state === GestureState.CANCELLED) {\r\n if (gestureEvent.velocityY > 500 && this.transY.value > 50) {\r\n this.closeComment()\r\n } else if (this.transY.value > this.commentHeight.value / 2) {\r\n this.closeComment()\r\n } else {\r\n this.openComment(100)\r\n }\r\n }\r\n },\r\n adjustDecelerationVelocity(velocity) {\r\n \"worklet\"\r\n const scrollTop = this.scrollTop.value\r\n return scrollTop <= 0 ? 0 : velocity\r\n },\r\n handleScroll(evt) {\r\n \"worklet\"\r\n this.scrollTop.value = evt.detail.scrollTop\r\n }\r\n }\r\n})"],"sourceRoot":""}
@@ -1,5 +1,5 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
5
  }
@@ -1,36 +1,36 @@
1
- <root-portal>
2
- <view class="mask-box markClass" wx:if="{{showHalfScreen&&mark && showMark}}" bind:tap="closeByMark"></view>
3
- <view class="comment-container containerClass" style="height:{{containerHeight}};">
4
-
5
- <!-- 顶部不参与手势协商,单独控制 -->
6
- <pan-gesture-handler worklet:ongesture="handlePan" style="flex-shrink: 0;">
7
- <view class="comment-header headerClass">
8
- <view class="close-comment" wx:if="{{showClose}}"
9
- bind:tap="onTapCloseComment">×
10
- </view>
11
- <view class="comment-header-title headerTittleClass">
12
- <slot name="header" />
13
- </view>
14
- </view>
15
- </pan-gesture-handler>
16
- <!-- 滚动区要与 pan 手势协商 -->
17
- <pan-gesture-handler id="pan" worklet:should-response-on-move="shouldPanResponse"
18
- simultaneous-handlers="{{['scroll']}}" worklet:ongesture="handlePan">
19
- <vertical-drag-gesture-handler id="scroll" native-view="scroll-view"
20
- worklet:should-response-on-move="shouldScrollViewResponse"
21
- simultaneous-handlers="{{['pan']}}">
22
- <scroll-view class="comment-list contentClass" scroll-y
23
- worklet:adjust-deceleration-velocity="adjustDecelerationVelocity"
24
- worklet:onscrollupdate="handleScroll" type="list" show-scrollbar="{{false}}"
25
- bind:scrolltolower="scrollToLower" bind:scrolltoupper="scrollTouUpPer"
26
- >
27
- <slot name="content" />
28
- </scroll-view>
29
- </vertical-drag-gesture-handler>
30
- </pan-gesture-handler>
31
- <view class="safe-area-inset-bottom footerClass">
32
- <slot name="footer"></slot>
33
- </view>
34
-
35
- </view>
36
- </root-portal>
1
+ <root-portal>
2
+ <view class="mask-box markClass" wx:if="{{showHalfScreen&&mark && showMark}}" bind:tap="closeByMark"></view>
3
+ <view class="comment-container containerClass" style="height:{{containerHeight}};">
4
+
5
+ <!-- 顶部不参与手势协商,单独控制 -->
6
+ <pan-gesture-handler worklet:ongesture="handlePan" style="flex-shrink: 0;">
7
+ <view class="comment-header headerClass">
8
+ <view class="close-comment" wx:if="{{showClose}}"
9
+ bind:tap="onTapCloseComment">×
10
+ </view>
11
+ <view class="comment-header-title headerTittleClass">
12
+ <slot name="header" />
13
+ </view>
14
+ </view>
15
+ </pan-gesture-handler>
16
+ <!-- 滚动区要与 pan 手势协商 -->
17
+ <pan-gesture-handler id="pan" worklet:should-response-on-move="shouldPanResponse"
18
+ simultaneous-handlers="{{['scroll']}}" worklet:ongesture="handlePan">
19
+ <vertical-drag-gesture-handler id="scroll" native-view="scroll-view"
20
+ worklet:should-response-on-move="shouldScrollViewResponse"
21
+ simultaneous-handlers="{{['pan']}}">
22
+ <scroll-view class="comment-list contentClass" scroll-y
23
+ worklet:adjust-deceleration-velocity="adjustDecelerationVelocity"
24
+ worklet:onscrollupdate="handleScroll" type="list" show-scrollbar="{{false}}"
25
+ bind:scrolltolower="scrollToLower" bind:scrolltoupper="scrollTouUpPer"
26
+ >
27
+ <slot name="content" />
28
+ </scroll-view>
29
+ </vertical-drag-gesture-handler>
30
+ </pan-gesture-handler>
31
+ <view class="safe-area-inset-bottom footerClass">
32
+ <slot name="footer"></slot>
33
+ </view>
34
+
35
+ </view>
36
+ </root-portal>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-html/index.js"],"names":["Component","externalClasses","properties","html","type","String","value","loseStyle","Boolean","mode","data","content","tagStyle","p","img","containerStyle","observers","replaceAll","setData","newValue"],"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,EAAU,eAAV,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,eAAU;AACRH,YAAMI,OADE;AAERF,aAAM;AAFE,KALA;AASVG,UAAK;AACHL,YAAKC,MADF;AAEHC,aAAM;AAFH;AATK,GAFJ;AAgBRI,QAAM;AACJC,aAAS,QADL;AAEJC,cAAU;AACRC,SAAG,qBADK;AAERC,WAAK;AAFG,KAFN;AAMJC,oBAAgB;AANZ,GAhBE;AAwBRC,aAAW;AACTb,QADS,kBACF;AACL,UAAIQ,UAAU,KAAKD,IAAL,CAAUP,IAAxB;;AAEA;AACA;AACA;AACAQ,gBAAUA,QAAQM,UAAR,CAAmB,QAAnB,EAA6B,2BAA7B,CAAV;;AAEA,WAAKC,OAAL,CAAa;AACXP;AADW,OAAb;AAGD,KAZQ;;AAaTJ,eAAW,mBAASY,QAAT,EAAmB;AAC5B,UAAIA,QAAJ,EAAc;AACZ,aAAKD,OAAL,CAAa;AACXN,oBAAS;AADE,SAAb;AAGD;AACF;AAnBQ;AAxBH,CAAV,E","file":"bld-html/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 = 34);\n","Component({\n externalClasses: [\"iclass\",\"richTextClass\"],\n properties: {\n html: {\n type: String,\n value: \"加载中...\",\n },\n loseStyle:{\n type: Boolean,\n value:false\n },\n mode:{\n type:String,\n value:'web-static'\n }\n },\n data: {\n content: \"加载中...\",\n tagStyle: {\n p: \"margin-bottom: 14px\",\n img: \"margin-bottom: 14px\"\n },\n containerStyle: \"padding: 0;\",\n },\n observers: {\n html() {\n let content = this.data.html;\n\n // content = content.replace(/style=\"(.*?)\"/gm, \"\");\n // content = content.replace(/class=\"(.*?)\"/gm, \"\");\n // content = content.replaceAll(\"<p><br></p>\", \"\");\n content = content.replaceAll(/\\<img/g, \"<img style='width: 100%;'\");\n\n this.setData({\n content,\n });\n },\n loseStyle: function(newValue) {\n if (newValue) {\n this.setData({\n tagStyle:{}\n })\n } \n },\n },\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-html/index.js"],"names":["Component","externalClasses","properties","html","type","String","value","loseStyle","Boolean","mode","data","content","tagStyle","p","img","containerStyle","observers","replaceAll","setData","newValue"],"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,EAAU,eAAV,CADT;AAERC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,aAAO;AAFH,KADI;AAKVC,eAAU;AACRH,YAAMI,OADE;AAERF,aAAM;AAFE,KALA;AASVG,UAAK;AACHL,YAAKC,MADF;AAEHC,aAAM;AAFH;AATK,GAFJ;AAgBRI,QAAM;AACJC,aAAS,QADL;AAEJC,cAAU;AACRC,SAAG,qBADK;AAERC,WAAK;AAFG,KAFN;AAMJC,oBAAgB;AANZ,GAhBE;AAwBRC,aAAW;AACTb,QADS,kBACF;AACL,UAAIQ,UAAU,KAAKD,IAAL,CAAUP,IAAxB;;AAEA;AACA;AACA;AACAQ,gBAAUA,QAAQM,UAAR,CAAmB,QAAnB,EAA6B,2BAA7B,CAAV;;AAEA,WAAKC,OAAL,CAAa;AACXP;AADW,OAAb;AAGD,KAZQ;;AAaTJ,eAAW,mBAASY,QAAT,EAAmB;AAC5B,UAAIA,QAAJ,EAAc;AACZ,aAAKD,OAAL,CAAa;AACXN,oBAAS;AADE,SAAb;AAGD;AACF;AAnBQ;AAxBH,CAAV,E","file":"bld-html\\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 = 34);\n","Component({\r\n externalClasses: [\"iclass\",\"richTextClass\"],\r\n properties: {\r\n html: {\r\n type: String,\r\n value: \"加载中...\",\r\n },\r\n loseStyle:{\r\n type: Boolean,\r\n value:false\r\n },\r\n mode:{\r\n type:String,\r\n value:'web-static'\r\n }\r\n },\r\n data: {\r\n content: \"加载中...\",\r\n tagStyle: {\r\n p: \"margin-bottom: 14px\",\r\n img: \"margin-bottom: 14px\"\r\n },\r\n containerStyle: \"padding: 0;\",\r\n },\r\n observers: {\r\n html() {\r\n let content = this.data.html;\r\n\r\n // content = content.replace(/style=\"(.*?)\"/gm, \"\");\r\n // content = content.replace(/class=\"(.*?)\"/gm, \"\");\r\n // content = content.replaceAll(\"<p><br></p>\", \"\");\r\n content = content.replaceAll(/\\<img/g, \"<img style='width: 100%;'\");\r\n\r\n this.setData({\r\n content,\r\n });\r\n },\r\n loseStyle: function(newValue) {\r\n if (newValue) {\r\n this.setData({\r\n tagStyle:{}\r\n })\r\n } \r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "mp-html": "../components-npm/mp-weixin/index"
5
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "mp-html": "../components-npm/mp-weixin/index"
5
+ }
6
6
  }
@@ -1,9 +1,9 @@
1
- <view class="{{ loseStyle ? '' : 'content-wrapper' }} iclass">
2
- <!-- <mp-html
3
- content="{{ content }}"
4
- preview-img="{{ false }}"
5
- tag-style="{{ tagStyle }}"
6
- container-style="{{ containerStyle }}"
7
- /> -->
8
- <rich-text nodes="{{content}}" bindtap="tap" mode="{{mode}}" class="richTextClass"></rich-text>
9
- </view>
1
+ <view class="{{ loseStyle ? '' : 'content-wrapper' }} iclass">
2
+ <!-- <mp-html
3
+ content="{{ content }}"
4
+ preview-img="{{ false }}"
5
+ tag-style="{{ tagStyle }}"
6
+ container-style="{{ containerStyle }}"
7
+ /> -->
8
+ <rich-text nodes="{{content}}" bindtap="tap" mode="{{mode}}" class="richTextClass"></rich-text>
9
+ </view>
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-icon/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","name","type","String","observer","val","setData","isImage","indexOf","size","Number","optionalTypes","value","fsize","parseInt","color","customStyle","data"],"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;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,cAFI,oBAEKC,GAFL,EAEU;AACZ,aAAKC,OAAL,CAAa;AACXC,mBAASF,IAAIG,OAAJ,CAAY,GAAZ,IAAmB,CAAC;AADlB,SAAb;AAGD;AANG,KADI;;AAUVC,UAAM;AACJP,YAAMQ,MADF;AAEJC,qBAAe,CAACD,MAAD,EAASP,MAAT,CAFX;AAGJS,aAAO,EAHH;AAIJR,cAJI,oBAIKC,GAJL,EAIU;AACZ,aAAKC,OAAL,CAAa;AACXO,iBAAOC,SAAST,GAAT;AADI,SAAb;AAGD;AARG,KAVI;AAoBVU,WAAO;AACLb,YAAMC,MADD;AAELS,aAAO;AAFF,KApBG;AAwBVI,iBAAa;AACXd,YAAMC,MADK;AAEXS,aAAO;AAFI;AAxBH,GAPJ;;AAqCRK,QAAM;AACJV,aAAS,KADL;AAEJM,WAAO;AAFH;AArCE,CAAV,E","file":"bld-icon/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 = 2);\n","Component({\n externalClasses: ['iclass'],\n\n options: {\n addGlobalClass: true,\n },\n\n properties: {\n name: {\n type: String,\n observer(val) {\n this.setData({\n isImage: val.indexOf('/') > -1\n })\n }\n },\n \n size: {\n type: Number,\n optionalTypes: [Number, String],\n value: '',\n observer(val) {\n this.setData({\n fsize: parseInt(val)\n }) \n }\n },\n color: {\n type: String,\n value: ''\n },\n customStyle: {\n type: String,\n value: ''\n }\n },\n \n data: {\n isImage: false,\n fsize: ''\n }\n})"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/bld-icon/index.js"],"names":["Component","externalClasses","options","addGlobalClass","properties","name","type","String","observer","val","setData","isImage","indexOf","size","Number","optionalTypes","value","fsize","parseInt","color","customStyle","data"],"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;;AAGRC,WAAS;AACPC,oBAAgB;AADT,GAHD;;AAORC,cAAY;AACVC,UAAM;AACJC,YAAMC,MADF;AAEJC,cAFI,oBAEKC,GAFL,EAEU;AACZ,aAAKC,OAAL,CAAa;AACXC,mBAASF,IAAIG,OAAJ,CAAY,GAAZ,IAAmB,CAAC;AADlB,SAAb;AAGD;AANG,KADI;;AAUVC,UAAM;AACJP,YAAMQ,MADF;AAEJC,qBAAe,CAACD,MAAD,EAASP,MAAT,CAFX;AAGJS,aAAO,EAHH;AAIJR,cAJI,oBAIKC,GAJL,EAIU;AACZ,aAAKC,OAAL,CAAa;AACXO,iBAAOC,SAAST,GAAT;AADI,SAAb;AAGD;AARG,KAVI;AAoBVU,WAAO;AACLb,YAAMC,MADD;AAELS,aAAO;AAFF,KApBG;AAwBVI,iBAAa;AACXd,YAAMC,MADK;AAEXS,aAAO;AAFI;AAxBH,GAPJ;;AAqCRK,QAAM;AACJV,aAAS,KADL;AAEJM,WAAO;AAFH;AArCE,CAAV,E","file":"bld-icon\\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 = 2);\n","Component({\r\n externalClasses: ['iclass'],\r\n\r\n options: {\r\n addGlobalClass: true,\r\n },\r\n\r\n properties: {\r\n name: {\r\n type: String,\r\n observer(val) {\r\n this.setData({\r\n isImage: val.indexOf('/') > -1\r\n })\r\n }\r\n },\r\n \r\n size: {\r\n type: Number,\r\n optionalTypes: [Number, String],\r\n value: '',\r\n observer(val) {\r\n this.setData({\r\n fsize: parseInt(val)\r\n }) \r\n }\r\n },\r\n color: {\r\n type: String,\r\n value: ''\r\n },\r\n customStyle: {\r\n type: String,\r\n value: ''\r\n }\r\n },\r\n \r\n data: {\r\n isImage: false,\r\n fsize: ''\r\n }\r\n})"],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "bld-cloud-image": "../bld-cloud-image/index"
5
- }
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "bld-cloud-image": "../bld-cloud-image/index"
5
+ }
6
+ }
@@ -1,36 +1,36 @@
1
- <view
2
- class="iclass bld-iconfont icon-{{ name }} m-icon"
3
- style="{{ icon.setIconStyle(isImage, fsize, color) }} {{ customStyle }}"
4
- >
5
- <bld-cloud-image
6
- class="c-image__wrap"
7
- wx:if="{{ isImage }}"
8
- iclass="m-icon__image"
9
- src="{{ name }}"
10
- />
11
- </view>
12
-
13
- <wxs module="icon">
14
- function setIconStyle(isImage, size, color) {
15
- var styles = []
16
- var imgSize = size || 32
17
-
18
- if(size) {
19
- styles.push('font-size:' + size +'rpx')
20
- }
21
- if(isImage) {
22
- styles.push('width:' + imgSize +'rpx')
23
- styles.push('height:' + imgSize +'rpx')
24
- }
25
-
26
- if(color) {
27
- styles.push('color:' + color)
28
- }
29
- return styles.join(";")
30
- }
31
-
32
- module.exports = {
33
- setIconStyle: setIconStyle
34
- }
35
- </wxs>
36
-
1
+ <view
2
+ class="iclass bld-iconfont icon-{{ name }} m-icon"
3
+ style="{{ icon.setIconStyle(isImage, fsize, color) }} {{ customStyle }}"
4
+ >
5
+ <bld-cloud-image
6
+ class="c-image__wrap"
7
+ wx:if="{{ isImage }}"
8
+ iclass="m-icon__image"
9
+ src="{{ name }}"
10
+ />
11
+ </view>
12
+
13
+ <wxs module="icon">
14
+ function setIconStyle(isImage, size, color) {
15
+ var styles = []
16
+ var imgSize = size || 32
17
+
18
+ if(size) {
19
+ styles.push('font-size:' + size +'rpx')
20
+ }
21
+ if(isImage) {
22
+ styles.push('width:' + imgSize +'rpx')
23
+ styles.push('height:' + imgSize +'rpx')
24
+ }
25
+
26
+ if(color) {
27
+ styles.push('color:' + color)
28
+ }
29
+ return styles.join(";")
30
+ }
31
+
32
+ module.exports = {
33
+ setIconStyle: setIconStyle
34
+ }
35
+ </wxs>
36
+