@ruixinkeji/prism-ui 1.0.14 → 1.0.16

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 (396) hide show
  1. package/README.md +6 -2
  2. package/dist/build/h5/assets/PrismCode-D1lrgx1M.css +1 -0
  3. package/dist/build/h5/assets/PrismCode.CNOtat_X.js +1 -0
  4. package/dist/build/h5/assets/PrismGroupSticky-CBFeo0AB.css +1 -0
  5. package/dist/build/h5/assets/PrismGroupSticky.CmJXt6ws.js +1 -0
  6. package/dist/build/h5/assets/PrismMusicPlayer-CHVtYDn7.css +1 -0
  7. package/dist/build/h5/assets/PrismMusicPlayer.DAW3y5Km.js +1 -0
  8. package/dist/build/h5/assets/PrismNavBar-CYetauMR.css +1 -0
  9. package/dist/build/h5/assets/PrismNavBar.CFM58fal.js +1 -0
  10. package/dist/build/h5/assets/PrismSwiper-CDtZrfyq.css +1 -0
  11. package/dist/build/h5/assets/PrismSwiper.DTGFNn5Q.js +1 -0
  12. package/dist/build/h5/assets/PrismTabBar-BW0exu0j.css +1 -0
  13. package/dist/build/h5/assets/PrismTabBar.DPe-iC_F.js +1 -0
  14. package/dist/build/h5/assets/basic-tn0RQdqM.css +0 -0
  15. package/dist/build/h5/assets/card-layout-BZuodKCJ.css +1 -0
  16. package/dist/build/h5/assets/colors-RgTfwcKp.css +1 -0
  17. package/dist/build/h5/assets/data-DSHiB3Xs.css +1 -0
  18. package/dist/build/h5/assets/effects-CNFDtZjf.css +1 -0
  19. package/dist/build/h5/assets/examples-CSzKlb8B.css +1 -0
  20. package/dist/build/h5/assets/fa-brands-400-C99Yv4gD.woff2 +0 -0
  21. package/dist/build/h5/assets/fa-regular-400-OOsPf1xj.woff2 +0 -0
  22. package/dist/build/h5/assets/fa-solid-900-DAI24fNt.woff2 +0 -0
  23. package/dist/build/h5/assets/feedback-BaC8qSUp.css +1 -0
  24. package/dist/build/h5/assets/form-va-eFD7k.css +1 -0
  25. package/dist/build/h5/assets/group-CDa_hQkB.css +1 -0
  26. package/dist/build/h5/assets/iconfont-CW81RyG4.ttf +0 -0
  27. package/dist/build/h5/assets/icons-83wAdmdh.css +1 -0
  28. package/dist/build/h5/assets/index-BQ-qpvZH.css +1 -0
  29. package/dist/build/h5/assets/index-BQnv3xQ8.css +1 -0
  30. package/dist/build/h5/assets/index-C83xA4hX.css +1 -0
  31. package/dist/build/h5/assets/index-Cvc14mto.css +1 -0
  32. package/dist/build/h5/assets/index-D2djL_pA.js +32 -0
  33. package/dist/build/h5/assets/navigation-D0rlyjtK.css +1 -0
  34. package/dist/build/h5/assets/pages-demo-basic.BsC9sqol.js +1 -0
  35. package/dist/build/h5/assets/pages-demo-code-index.BXECig1w.js +1 -0
  36. package/dist/build/h5/assets/pages-demo-colors.Dl__3Mv9.js +1 -0
  37. package/dist/build/h5/assets/pages-demo-container.Cy-M9f41.js +1 -0
  38. package/dist/build/h5/assets/pages-demo-data.CK2JdeBK.js +1 -0
  39. package/dist/build/h5/assets/pages-demo-effects.CV0rqKht.js +1 -0
  40. package/dist/build/h5/assets/pages-demo-feedback.BO-G3E1J.js +1 -0
  41. package/dist/build/h5/assets/pages-demo-form.CsUNLqqe.js +1 -0
  42. package/dist/build/h5/assets/pages-demo-layout-card-layout.CQ6fF8IK.js +1 -0
  43. package/dist/build/h5/assets/pages-demo-layout.261GXW2o.js +1 -0
  44. package/dist/build/h5/assets/pages-demo-navigation.C5hFijVt.js +1 -0
  45. package/dist/build/h5/assets/pages-demo-other.CVdLVU3_.js +1 -0
  46. package/dist/build/h5/assets/pages-demo-sticky-group.MDzv6I5L.js +1 -0
  47. package/dist/build/h5/assets/pages-demo-sticky-index.D2UJUdon.js +1 -0
  48. package/dist/build/h5/assets/pages-examples-examples.hyUWuu8C.js +1 -0
  49. package/dist/build/h5/assets/pages-icons-icons.R2erKYQX.js +1 -0
  50. package/dist/build/h5/assets/pages-index-index.BlfkIjJo.js +1 -0
  51. package/dist/build/h5/assets/pages-tools-tools.tm3Y1cFN.js +1 -0
  52. package/dist/build/h5/assets/tools-C1YBcrWJ.css +1 -0
  53. package/dist/build/h5/assets/uni-app.es.DfNmMcUd.js +1 -0
  54. package/dist/build/h5/assets/uni.e2868147.css +1 -0
  55. package/dist/build/h5/assets/useNavbar.BdajVjjC.js +1 -0
  56. package/dist/build/h5/index.html +23 -0
  57. package/dist/build/h5/static/fonts/all-icons.txt +453 -0
  58. package/dist/build/h5/static/fonts/fa-brands-400.woff2 +0 -0
  59. package/dist/build/h5/static/fonts/fa-regular-400.woff2 +0 -0
  60. package/dist/build/h5/static/fonts/fa-solid-900.woff2 +0 -0
  61. package/dist/build/h5/static/fonts/fa-v4compatibility.woff2 +0 -0
  62. package/dist/build/h5/static/fonts/font-awesome.css +943 -0
  63. package/dist/build/h5/static/fonts/iconfont.css +62 -0
  64. package/dist/build/h5/static/fonts/iconfont.js +1 -0
  65. package/dist/build/h5/static/fonts/iconfont.json +79 -0
  66. package/dist/build/h5/static/fonts/iconfont.ttf +0 -0
  67. package/dist/build/h5/static/fonts/iconfont.woff +0 -0
  68. package/dist/build/h5/static/fonts/iconfont.woff2 +0 -0
  69. package/dist/build/h5/static/fonts/icons-list.txt +453 -0
  70. package/dist/build/h5/static/tabbar/examples-active.png +0 -0
  71. package/dist/build/h5/static/tabbar/examples.png +0 -0
  72. package/dist/build/h5/static/tabbar/home-active.png +0 -0
  73. package/dist/build/h5/static/tabbar/home.png +0 -0
  74. package/dist/build/h5/static/tabbar/icons-active.png +0 -0
  75. package/dist/build/h5/static/tabbar/icons.png +0 -0
  76. package/dist/build/h5/static/tabbar/tools-active.png +0 -0
  77. package/dist/build/h5/static/tabbar/tools.png +0 -0
  78. package/dist/dev/.nvue/app.css.js +11 -0
  79. package/dist/dev/.nvue/app.js +2 -0
  80. package/dist/dev/.sourcemap/mp-weixin/app.js.map +1 -0
  81. package/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map +1 -0
  82. package/dist/dev/.sourcemap/mp-weixin/components/PrismAddressInput/PrismAddressInput.js.map +1 -0
  83. package/dist/dev/.sourcemap/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.js.map +1 -0
  84. package/dist/dev/.sourcemap/mp-weixin/components/PrismCityPicker/PrismCityPicker.js.map +1 -0
  85. package/dist/dev/.sourcemap/mp-weixin/components/PrismCitySelect/PrismCitySelect.js.map +1 -0
  86. package/dist/dev/.sourcemap/mp-weixin/components/PrismCode/PrismCode.js.map +1 -0
  87. package/dist/dev/.sourcemap/mp-weixin/components/PrismCodeInput/PrismCodeInput.js.map +1 -0
  88. package/dist/dev/.sourcemap/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.js.map +1 -0
  89. package/dist/dev/.sourcemap/mp-weixin/components/PrismDropdown/PrismDropdown.js.map +1 -0
  90. package/dist/dev/.sourcemap/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.js.map +1 -0
  91. package/dist/dev/.sourcemap/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.js.map +1 -0
  92. package/dist/dev/.sourcemap/mp-weixin/components/PrismIndexBar/PrismIndexBar.js.map +1 -0
  93. package/dist/dev/.sourcemap/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.js.map +1 -0
  94. package/dist/dev/.sourcemap/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.js.map +1 -0
  95. package/dist/dev/.sourcemap/mp-weixin/components/PrismNavBar/PrismNavBar.js.map +1 -0
  96. package/dist/dev/.sourcemap/mp-weixin/components/PrismSecureInput/PrismSecureInput.js.map +1 -0
  97. package/dist/dev/.sourcemap/mp-weixin/components/PrismSticky/PrismSticky.js.map +1 -0
  98. package/dist/dev/.sourcemap/mp-weixin/components/PrismSwiper/PrismSwiper.js.map +1 -0
  99. package/dist/dev/.sourcemap/mp-weixin/components/PrismSwitch/PrismSwitch.js.map +1 -0
  100. package/dist/dev/.sourcemap/mp-weixin/components/PrismTabBar/PrismTabBar.js.map +1 -0
  101. package/dist/dev/.sourcemap/mp-weixin/components/PrismTabs/PrismTabs.js.map +1 -0
  102. package/dist/dev/.sourcemap/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.js.map +1 -0
  103. package/dist/dev/.sourcemap/mp-weixin/composables/useNavbar.js.map +1 -0
  104. package/dist/dev/.sourcemap/mp-weixin/config/theme-colors.js.map +1 -0
  105. package/dist/dev/.sourcemap/mp-weixin/pages/demo/basic.js.map +1 -0
  106. package/dist/dev/.sourcemap/mp-weixin/pages/demo/card.js.map +1 -0
  107. package/dist/dev/.sourcemap/mp-weixin/pages/demo/code/index.js.map +1 -0
  108. package/dist/dev/.sourcemap/mp-weixin/pages/demo/colors.js.map +1 -0
  109. package/dist/dev/.sourcemap/mp-weixin/pages/demo/container.js.map +1 -0
  110. package/dist/dev/.sourcemap/mp-weixin/pages/demo/data.js.map +1 -0
  111. package/dist/dev/.sourcemap/mp-weixin/pages/demo/effects.js.map +1 -0
  112. package/dist/dev/.sourcemap/mp-weixin/pages/demo/feedback.js.map +1 -0
  113. package/dist/dev/.sourcemap/mp-weixin/pages/demo/form.js.map +1 -0
  114. package/dist/dev/.sourcemap/mp-weixin/pages/demo/layout/card-layout.js.map +1 -0
  115. package/dist/dev/.sourcemap/mp-weixin/pages/demo/layout.js.map +1 -0
  116. package/dist/dev/.sourcemap/mp-weixin/pages/demo/navigation.js.map +1 -0
  117. package/dist/dev/.sourcemap/mp-weixin/pages/demo/other.js.map +1 -0
  118. package/dist/dev/.sourcemap/mp-weixin/pages/demo/sticky/group.js.map +1 -0
  119. package/dist/dev/.sourcemap/mp-weixin/pages/demo/sticky/index.js.map +1 -0
  120. package/dist/dev/.sourcemap/mp-weixin/pages/examples/examples.js.map +1 -0
  121. package/dist/dev/.sourcemap/mp-weixin/pages/icons/icons.js.map +1 -0
  122. package/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map +1 -0
  123. package/dist/dev/.sourcemap/mp-weixin/pages/tools/tools.js.map +1 -0
  124. package/dist/dev/.sourcemap/mp-weixin/store/app.js.map +1 -0
  125. package/dist/dev/.sourcemap/mp-weixin/utils/lunar.js.map +1 -0
  126. package/dist/dev/.sourcemap/mp-weixin/utils/system.js.map +1 -0
  127. package/dist/dev/app-plus/__uniappautomator.js +16 -0
  128. package/dist/dev/app-plus/__uniappchooselocation.js +32 -0
  129. package/dist/dev/app-plus/__uniapperror.png +0 -0
  130. package/dist/dev/app-plus/__uniappopenlocation.js +32 -0
  131. package/dist/dev/app-plus/__uniapppicker.js +33 -0
  132. package/dist/dev/app-plus/__uniappquill.js +8 -0
  133. package/dist/dev/app-plus/__uniappquillimageresize.js +1 -0
  134. package/dist/dev/app-plus/__uniappscan.js +32 -0
  135. package/dist/dev/app-plus/__uniappsuccess.png +0 -0
  136. package/dist/dev/app-plus/__uniappview.html +24 -0
  137. package/dist/dev/app-plus/app-config-service.js +11 -0
  138. package/dist/dev/app-plus/app-config.js +1 -0
  139. package/dist/dev/app-plus/app-service.js +23663 -0
  140. package/dist/dev/app-plus/app.css +8955 -0
  141. package/dist/dev/app-plus/manifest.json +91 -0
  142. package/dist/dev/app-plus/pages/demo/basic.css +524 -0
  143. package/dist/dev/app-plus/pages/demo/code/index.css +541 -0
  144. package/dist/dev/app-plus/pages/demo/colors.css +4008 -0
  145. package/dist/dev/app-plus/pages/demo/container.css +524 -0
  146. package/dist/dev/app-plus/pages/demo/data.css +705 -0
  147. package/dist/dev/app-plus/pages/demo/effects.css +530 -0
  148. package/dist/dev/app-plus/pages/demo/feedback.css +590 -0
  149. package/dist/dev/app-plus/pages/demo/form.css +3422 -0
  150. package/dist/dev/app-plus/pages/demo/layout/card-layout.css +785 -0
  151. package/dist/dev/app-plus/pages/demo/layout.css +524 -0
  152. package/dist/dev/app-plus/pages/demo/navigation.css +769 -0
  153. package/dist/dev/app-plus/pages/demo/other.css +524 -0
  154. package/dist/dev/app-plus/pages/demo/sticky/group.css +788 -0
  155. package/dist/dev/app-plus/pages/demo/sticky/index.css +894 -0
  156. package/dist/dev/app-plus/pages/examples/examples.css +1031 -0
  157. package/dist/dev/app-plus/pages/icons/icons.css +3310 -0
  158. package/dist/dev/app-plus/pages/index/index.css +696 -0
  159. package/dist/dev/app-plus/pages/tools/tools.css +378 -0
  160. package/dist/dev/app-plus/static/fonts/all-icons.txt +453 -0
  161. package/dist/dev/app-plus/static/fonts/fa-brands-400.woff2 +0 -0
  162. package/dist/dev/app-plus/static/fonts/fa-regular-400.woff2 +0 -0
  163. package/dist/dev/app-plus/static/fonts/fa-solid-900.woff2 +0 -0
  164. package/dist/dev/app-plus/static/fonts/fa-v4compatibility.woff2 +0 -0
  165. package/dist/dev/app-plus/static/fonts/font-awesome.css +943 -0
  166. package/dist/dev/app-plus/static/fonts/iconfont.css +62 -0
  167. package/dist/dev/app-plus/static/fonts/iconfont.js +1 -0
  168. package/dist/dev/app-plus/static/fonts/iconfont.json +79 -0
  169. package/dist/dev/app-plus/static/fonts/iconfont.ttf +0 -0
  170. package/dist/dev/app-plus/static/fonts/iconfont.woff +0 -0
  171. package/dist/dev/app-plus/static/fonts/iconfont.woff2 +0 -0
  172. package/dist/dev/app-plus/static/fonts/icons-list.txt +453 -0
  173. package/dist/dev/app-plus/static/tabbar/examples-active.png +0 -0
  174. package/dist/dev/app-plus/static/tabbar/examples.png +0 -0
  175. package/dist/dev/app-plus/static/tabbar/home-active.png +0 -0
  176. package/dist/dev/app-plus/static/tabbar/home.png +0 -0
  177. package/dist/dev/app-plus/static/tabbar/icons-active.png +0 -0
  178. package/dist/dev/app-plus/static/tabbar/icons.png +0 -0
  179. package/dist/dev/app-plus/static/tabbar/tools-active.png +0 -0
  180. package/dist/dev/app-plus/static/tabbar/tools.png +0 -0
  181. package/dist/dev/app-plus/uni-app-view.umd.js +7 -0
  182. package/dist/dev/mp-weixin/app.js +49 -0
  183. package/dist/dev/mp-weixin/app.json +29 -0
  184. package/dist/dev/mp-weixin/app.wxss +9072 -0
  185. package/dist/dev/mp-weixin/common/vendor.js +15968 -0
  186. package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.js +200 -0
  187. package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.json +4 -0
  188. package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.wxml +1 -0
  189. package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.wxss +327 -0
  190. package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.js +449 -0
  191. package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.json +4 -0
  192. package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.wxml +1 -0
  193. package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.wxss +264 -0
  194. package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.js +531 -0
  195. package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.json +4 -0
  196. package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.wxml +1 -0
  197. package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.wxss +309 -0
  198. package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.js +200 -0
  199. package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.json +6 -0
  200. package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.wxml +1 -0
  201. package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.wxss +225 -0
  202. package/dist/dev/mp-weixin/components/PrismCode/PrismCode.js +337 -0
  203. package/dist/dev/mp-weixin/components/PrismCode/PrismCode.json +4 -0
  204. package/dist/dev/mp-weixin/components/PrismCode/PrismCode.wxml +1 -0
  205. package/dist/dev/mp-weixin/components/PrismCode/PrismCode.wxss +345 -0
  206. package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.js +70 -0
  207. package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.json +4 -0
  208. package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.wxml +1 -0
  209. package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.wxss +115 -0
  210. package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.js +468 -0
  211. package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.json +4 -0
  212. package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.wxml +1 -0
  213. package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.wxss +309 -0
  214. package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.js +63 -0
  215. package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.json +4 -0
  216. package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.wxml +1 -0
  217. package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.wxss +0 -0
  218. package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.js +128 -0
  219. package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.json +4 -0
  220. package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.wxml +1 -0
  221. package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.wxss +191 -0
  222. package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.js +123 -0
  223. package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.json +4 -0
  224. package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.wxml +1 -0
  225. package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.wxss +114 -0
  226. package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.js +108 -0
  227. package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.json +4 -0
  228. package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.wxml +1 -0
  229. package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.wxss +135 -0
  230. package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.js +449 -0
  231. package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.json +4 -0
  232. package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.wxml +1 -0
  233. package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.wxss +445 -0
  234. package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.js +200 -0
  235. package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.json +4 -0
  236. package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.wxml +1 -0
  237. package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.wxss +334 -0
  238. package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.js +71 -0
  239. package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.json +4 -0
  240. package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.wxml +1 -0
  241. package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.wxss +150 -0
  242. package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.js +140 -0
  243. package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.json +4 -0
  244. package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.wxml +1 -0
  245. package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.wxss +215 -0
  246. package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.js +120 -0
  247. package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.json +4 -0
  248. package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.wxml +1 -0
  249. package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.wxss +62 -0
  250. package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.js +163 -0
  251. package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.json +4 -0
  252. package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.wxml +1 -0
  253. package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.wxss +203 -0
  254. package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.js +69 -0
  255. package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.json +4 -0
  256. package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.wxml +1 -0
  257. package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.wxss +151 -0
  258. package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.js +58 -0
  259. package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.json +4 -0
  260. package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.wxml +1 -0
  261. package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.wxss +119 -0
  262. package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.js +51 -0
  263. package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.json +4 -0
  264. package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.wxml +1 -0
  265. package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.wxss +51 -0
  266. package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.js +182 -0
  267. package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.json +4 -0
  268. package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.wxml +1 -0
  269. package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.wxss +329 -0
  270. package/dist/dev/mp-weixin/composables/useNavbar.js +19 -0
  271. package/dist/dev/mp-weixin/config/theme-colors.js +73 -0
  272. package/dist/dev/mp-weixin/pages/demo/basic.js +77 -0
  273. package/dist/dev/mp-weixin/pages/demo/basic.json +7 -0
  274. package/dist/dev/mp-weixin/pages/demo/basic.wxml +1 -0
  275. package/dist/dev/mp-weixin/pages/demo/basic.wxss +54 -0
  276. package/dist/dev/mp-weixin/pages/demo/code/index.js +190 -0
  277. package/dist/dev/mp-weixin/pages/demo/code/index.json +7 -0
  278. package/dist/dev/mp-weixin/pages/demo/code/index.wxml +1 -0
  279. package/dist/dev/mp-weixin/pages/demo/code/index.wxss +71 -0
  280. package/dist/dev/mp-weixin/pages/demo/colors.js +130 -0
  281. package/dist/dev/mp-weixin/pages/demo/colors.json +7 -0
  282. package/dist/dev/mp-weixin/pages/demo/colors.wxml +1 -0
  283. package/dist/dev/mp-weixin/pages/demo/colors.wxss +3793 -0
  284. package/dist/dev/mp-weixin/pages/demo/container.js +65 -0
  285. package/dist/dev/mp-weixin/pages/demo/container.json +7 -0
  286. package/dist/dev/mp-weixin/pages/demo/container.wxml +1 -0
  287. package/dist/dev/mp-weixin/pages/demo/container.wxss +54 -0
  288. package/dist/dev/mp-weixin/pages/demo/data.js +398 -0
  289. package/dist/dev/mp-weixin/pages/demo/data.json +7 -0
  290. package/dist/dev/mp-weixin/pages/demo/data.wxml +1 -0
  291. package/dist/dev/mp-weixin/pages/demo/data.wxss +235 -0
  292. package/dist/dev/mp-weixin/pages/demo/effects.js +62 -0
  293. package/dist/dev/mp-weixin/pages/demo/effects.json +7 -0
  294. package/dist/dev/mp-weixin/pages/demo/effects.wxml +1 -0
  295. package/dist/dev/mp-weixin/pages/demo/effects.wxss +60 -0
  296. package/dist/dev/mp-weixin/pages/demo/feedback.js +256 -0
  297. package/dist/dev/mp-weixin/pages/demo/feedback.json +7 -0
  298. package/dist/dev/mp-weixin/pages/demo/feedback.wxml +1 -0
  299. package/dist/dev/mp-weixin/pages/demo/feedback.wxss +120 -0
  300. package/dist/dev/mp-weixin/pages/demo/form.js +689 -0
  301. package/dist/dev/mp-weixin/pages/demo/form.json +18 -0
  302. package/dist/dev/mp-weixin/pages/demo/form.wxml +1 -0
  303. package/dist/dev/mp-weixin/pages/demo/form.wxss +54 -0
  304. package/dist/dev/mp-weixin/pages/demo/layout/card-layout.js +61 -0
  305. package/dist/dev/mp-weixin/pages/demo/layout/card-layout.json +7 -0
  306. package/dist/dev/mp-weixin/pages/demo/layout/card-layout.wxml +1 -0
  307. package/dist/dev/mp-weixin/pages/demo/layout/card-layout.wxss +326 -0
  308. package/dist/dev/mp-weixin/pages/demo/layout.js +96 -0
  309. package/dist/dev/mp-weixin/pages/demo/layout.json +7 -0
  310. package/dist/dev/mp-weixin/pages/demo/layout.wxml +1 -0
  311. package/dist/dev/mp-weixin/pages/demo/layout.wxss +54 -0
  312. package/dist/dev/mp-weixin/pages/demo/navigation.js +142 -0
  313. package/dist/dev/mp-weixin/pages/demo/navigation.json +10 -0
  314. package/dist/dev/mp-weixin/pages/demo/navigation.wxml +1 -0
  315. package/dist/dev/mp-weixin/pages/demo/navigation.wxss +61 -0
  316. package/dist/dev/mp-weixin/pages/demo/other.js +50 -0
  317. package/dist/dev/mp-weixin/pages/demo/other.json +7 -0
  318. package/dist/dev/mp-weixin/pages/demo/other.wxml +1 -0
  319. package/dist/dev/mp-weixin/pages/demo/other.wxss +54 -0
  320. package/dist/dev/mp-weixin/pages/demo/sticky/group.js +212 -0
  321. package/dist/dev/mp-weixin/pages/demo/sticky/group.json +8 -0
  322. package/dist/dev/mp-weixin/pages/demo/sticky/group.wxml +1 -0
  323. package/dist/dev/mp-weixin/pages/demo/sticky/group.wxss +135 -0
  324. package/dist/dev/mp-weixin/pages/demo/sticky/index.js +90 -0
  325. package/dist/dev/mp-weixin/pages/demo/sticky/index.json +9 -0
  326. package/dist/dev/mp-weixin/pages/demo/sticky/index.wxml +1 -0
  327. package/dist/dev/mp-weixin/pages/demo/sticky/index.wxss +175 -0
  328. package/dist/dev/mp-weixin/pages/examples/examples.js +65 -0
  329. package/dist/dev/mp-weixin/pages/examples/examples.json +8 -0
  330. package/dist/dev/mp-weixin/pages/examples/examples.wxml +1 -0
  331. package/dist/dev/mp-weixin/pages/examples/examples.wxss +461 -0
  332. package/dist/dev/mp-weixin/pages/icons/icons.js +350 -0
  333. package/dist/dev/mp-weixin/pages/icons/icons.json +8 -0
  334. package/dist/dev/mp-weixin/pages/icons/icons.wxml +1 -0
  335. package/dist/dev/mp-weixin/pages/icons/icons.wxss +3079 -0
  336. package/dist/dev/mp-weixin/pages/index/index.js +118 -0
  337. package/dist/dev/mp-weixin/pages/index/index.json +8 -0
  338. package/dist/dev/mp-weixin/pages/index/index.wxml +1 -0
  339. package/dist/dev/mp-weixin/pages/index/index.wxss +123 -0
  340. package/dist/dev/mp-weixin/pages/tools/tools.js +37 -0
  341. package/dist/dev/mp-weixin/pages/tools/tools.json +7 -0
  342. package/dist/dev/mp-weixin/pages/tools/tools.wxml +1 -0
  343. package/dist/dev/mp-weixin/pages/tools/tools.wxss +134 -0
  344. package/dist/dev/mp-weixin/project.config.json +36 -0
  345. package/dist/dev/mp-weixin/project.private.config.json +23 -0
  346. package/dist/dev/mp-weixin/static/fonts/all-icons.txt +453 -0
  347. package/dist/dev/mp-weixin/static/fonts/fa-brands-400.woff2 +0 -0
  348. package/dist/dev/mp-weixin/static/fonts/fa-regular-400.woff2 +0 -0
  349. package/dist/dev/mp-weixin/static/fonts/fa-solid-900.woff2 +0 -0
  350. package/dist/dev/mp-weixin/static/fonts/fa-v4compatibility.woff2 +0 -0
  351. package/dist/dev/mp-weixin/static/fonts/font-awesome.css +943 -0
  352. package/dist/dev/mp-weixin/static/fonts/iconfont.css +62 -0
  353. package/dist/dev/mp-weixin/static/fonts/iconfont.js +1 -0
  354. package/dist/dev/mp-weixin/static/fonts/iconfont.json +79 -0
  355. package/dist/dev/mp-weixin/static/fonts/iconfont.ttf +0 -0
  356. package/dist/dev/mp-weixin/static/fonts/iconfont.woff +0 -0
  357. package/dist/dev/mp-weixin/static/fonts/iconfont.woff2 +0 -0
  358. package/dist/dev/mp-weixin/static/fonts/icons-list.txt +453 -0
  359. package/dist/dev/mp-weixin/static/tabbar/examples-active.png +0 -0
  360. package/dist/dev/mp-weixin/static/tabbar/examples.png +0 -0
  361. package/dist/dev/mp-weixin/static/tabbar/home-active.png +0 -0
  362. package/dist/dev/mp-weixin/static/tabbar/home.png +0 -0
  363. package/dist/dev/mp-weixin/static/tabbar/icons-active.png +0 -0
  364. package/dist/dev/mp-weixin/static/tabbar/icons.png +0 -0
  365. package/dist/dev/mp-weixin/static/tabbar/tools-active.png +0 -0
  366. package/dist/dev/mp-weixin/static/tabbar/tools.png +0 -0
  367. package/dist/dev/mp-weixin/store/app.js +64 -0
  368. package/dist/dev/mp-weixin/utils/lunar.js +330 -0
  369. package/dist/dev/mp-weixin/utils/system.js +18 -0
  370. package/dist/index.d.ts +26 -0
  371. package/dist/index.esm.js +33 -0
  372. package/dist/index.js +33 -0
  373. package/dist/prism-ui.css +7776 -0
  374. package/dist/prism-ui.min.css +1 -0
  375. package/dist/styles/base.scss +213 -0
  376. package/dist/styles/button.scss +120 -0
  377. package/dist/styles/card.scss +306 -0
  378. package/dist/styles/data.scss +1229 -0
  379. package/dist/styles/effects.scss +407 -0
  380. package/dist/styles/feedback.scss +698 -0
  381. package/dist/styles/form.scss +1574 -0
  382. package/dist/styles/index.scss +43 -0
  383. package/dist/styles/list.scss +184 -0
  384. package/dist/styles/navigation.scss +501 -0
  385. package/dist/styles/overlay.scss +182 -0
  386. package/dist/styles/utilities.scss +134 -0
  387. package/dist/styles/variables.scss +154 -0
  388. package/package.json +2 -5
  389. package/styles/base.scss +0 -1
  390. package/styles/card.scss +0 -1
  391. package/styles/colors.scss +0 -1
  392. package/styles/effects.scss +0 -1
  393. package/styles/form.scss +0 -1
  394. package/styles/index.scss +13 -13
  395. package/styles/navigation.scss +0 -1
  396. package/styles/variables.scss +1 -1
@@ -0,0 +1,468 @@
1
+ "use strict";
2
+ const common_vendor = require("../../common/vendor.js");
3
+ const store_app = require("../../store/app.js");
4
+ const utils_system = require("../../utils/system.js");
5
+ const utils_lunar = require("../../utils/lunar.js");
6
+ const visibleItemCount = 5;
7
+ const _sfc_main = {
8
+ __name: "PrismDateTimePicker",
9
+ props: {
10
+ modelValue: {
11
+ type: [String, Number, Date],
12
+ default: ""
13
+ },
14
+ // 选择模式:picker(滚轮)或 calendar(日历)
15
+ mode: {
16
+ type: String,
17
+ default: "picker",
18
+ validator: (val) => ["picker", "calendar"].includes(val)
19
+ },
20
+ // 是否显示时间选择
21
+ showTime: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ // 是否显示秒
26
+ showSeconds: {
27
+ type: Boolean,
28
+ default: false
29
+ },
30
+ // 日期格式
31
+ format: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ placeholder: {
36
+ type: String,
37
+ default: "请选择日期"
38
+ },
39
+ title: {
40
+ type: String,
41
+ default: "选择日期"
42
+ },
43
+ // 最小年份
44
+ minYear: {
45
+ type: Number,
46
+ default: () => (/* @__PURE__ */ new Date()).getFullYear() - 50
47
+ },
48
+ // 最大年份
49
+ maxYear: {
50
+ type: Number,
51
+ default: () => (/* @__PURE__ */ new Date()).getFullYear() + 50
52
+ },
53
+ disabled: {
54
+ type: Boolean,
55
+ default: false
56
+ },
57
+ // 是否为范围选择模式
58
+ range: {
59
+ type: Boolean,
60
+ default: false
61
+ },
62
+ // 是否显示农历
63
+ showLunar: {
64
+ type: Boolean,
65
+ default: false
66
+ }
67
+ },
68
+ emits: ["update:modelValue", "change", "confirm", "cancel"],
69
+ setup(__props, { emit: __emit }) {
70
+ const props = __props;
71
+ const emit = __emit;
72
+ const appStore = store_app.useAppStore();
73
+ const showPicker = common_vendor.ref(false);
74
+ const pickerIndex = common_vendor.ref([0, 0, 0, 0, 0, 0]);
75
+ const itemHeight = utils_system.rpx2px(96);
76
+ const pickerHeight = `${itemHeight * visibleItemCount}px`;
77
+ const indicatorStyle = `height: ${itemHeight}px`;
78
+ const calendarYear = common_vendor.ref((/* @__PURE__ */ new Date()).getFullYear());
79
+ const calendarMonth = common_vendor.ref((/* @__PURE__ */ new Date()).getMonth() + 1);
80
+ const selectedDate = common_vendor.ref("");
81
+ const weekdays = ["日", "一", "二", "三", "四", "五", "六"];
82
+ const rangeStart = common_vendor.ref("");
83
+ const rangeEnd = common_vendor.ref("");
84
+ function isInRange(dateStr) {
85
+ if (!props.range || !rangeStart.value || !rangeEnd.value) return false;
86
+ return dateStr > rangeStart.value && dateStr < rangeEnd.value;
87
+ }
88
+ const calendarDays = common_vendor.computed(() => {
89
+ const days = [];
90
+ const firstDay = new Date(calendarYear.value, calendarMonth.value - 1, 1);
91
+ const lastDay = new Date(calendarYear.value, calendarMonth.value, 0);
92
+ const startWeekday = firstDay.getDay();
93
+ const totalDays = lastDay.getDate();
94
+ const today = /* @__PURE__ */ new Date();
95
+ const todayStr = `${today.getFullYear()}-${padZero(today.getMonth() + 1)}-${padZero(today.getDate())}`;
96
+ const prevMonthDate = new Date(calendarYear.value, calendarMonth.value - 1, 0);
97
+ const prevMonthYear = calendarMonth.value === 1 ? calendarYear.value - 1 : calendarYear.value;
98
+ const prevMonthNum = calendarMonth.value === 1 ? 12 : calendarMonth.value - 1;
99
+ for (let i = startWeekday - 1; i >= 0; i--) {
100
+ const d = prevMonthDate.getDate() - i;
101
+ const dateStr = `${prevMonthYear}-${padZero(prevMonthNum)}-${padZero(d)}`;
102
+ days.push({
103
+ day: d,
104
+ dateStr,
105
+ otherMonth: true,
106
+ lunar: props.showLunar ? utils_lunar.getLunarDayStr(prevMonthYear, prevMonthNum, d) : ""
107
+ });
108
+ }
109
+ for (let i = 1; i <= totalDays; i++) {
110
+ const dateStr = `${calendarYear.value}-${padZero(calendarMonth.value)}-${padZero(i)}`;
111
+ const isRangeStart = props.range && dateStr === rangeStart.value;
112
+ const isRangeEnd = props.range && dateStr === rangeEnd.value;
113
+ days.push({
114
+ day: i,
115
+ dateStr,
116
+ isToday: dateStr === todayStr,
117
+ isSelected: props.range ? isRangeStart || isRangeEnd : dateStr === selectedDate.value,
118
+ isRangeStart,
119
+ isRangeEnd,
120
+ isInRange: isInRange(dateStr),
121
+ lunar: props.showLunar ? utils_lunar.getLunarDayStr(calendarYear.value, calendarMonth.value, i) : ""
122
+ });
123
+ }
124
+ const nextMonthYear = calendarMonth.value === 12 ? calendarYear.value + 1 : calendarYear.value;
125
+ const nextMonthNum = calendarMonth.value === 12 ? 1 : calendarMonth.value + 1;
126
+ const remaining = 42 - days.length;
127
+ for (let i = 1; i <= remaining; i++) {
128
+ const dateStr = `${nextMonthYear}-${padZero(nextMonthNum)}-${padZero(i)}`;
129
+ days.push({
130
+ day: i,
131
+ dateStr,
132
+ otherMonth: true,
133
+ lunar: props.showLunar ? utils_lunar.getLunarDayStr(nextMonthYear, nextMonthNum, i) : ""
134
+ });
135
+ }
136
+ return days;
137
+ });
138
+ const yearList = common_vendor.computed(() => {
139
+ const list = [];
140
+ for (let i = props.minYear; i <= props.maxYear; i++) {
141
+ list.push(i);
142
+ }
143
+ return list;
144
+ });
145
+ const monthList = common_vendor.computed(() => {
146
+ const list = [];
147
+ for (let i = 1; i <= 12; i++) {
148
+ list.push(i);
149
+ }
150
+ return list;
151
+ });
152
+ const dayList = common_vendor.computed(() => {
153
+ const year = yearList.value[pickerIndex.value[0]];
154
+ const month = monthList.value[pickerIndex.value[1]];
155
+ const days = getDaysInMonth(year, month);
156
+ const list = [];
157
+ for (let i = 1; i <= days; i++) {
158
+ list.push(i);
159
+ }
160
+ return list;
161
+ });
162
+ const hourList = common_vendor.computed(() => {
163
+ const list = [];
164
+ for (let i = 0; i <= 23; i++) {
165
+ list.push(i);
166
+ }
167
+ return list;
168
+ });
169
+ const minuteList = common_vendor.computed(() => {
170
+ const list = [];
171
+ for (let i = 0; i <= 59; i++) {
172
+ list.push(i);
173
+ }
174
+ return list;
175
+ });
176
+ const secondList = common_vendor.computed(() => {
177
+ const list = [];
178
+ for (let i = 0; i <= 59; i++) {
179
+ list.push(i);
180
+ }
181
+ return list;
182
+ });
183
+ function getDaysInMonth(year, month) {
184
+ return new Date(year, month, 0).getDate();
185
+ }
186
+ function padZero(num) {
187
+ return num < 10 ? "0" + num : String(num);
188
+ }
189
+ const defaultFormat = common_vendor.computed(() => {
190
+ if (props.format) return props.format;
191
+ if (props.showTime) {
192
+ return props.showSeconds ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD HH:mm";
193
+ }
194
+ return "YYYY-MM-DD";
195
+ });
196
+ const displayValue = common_vendor.computed(() => {
197
+ if (!props.modelValue) return "";
198
+ return formatDate(parseDate(props.modelValue), defaultFormat.value);
199
+ });
200
+ function parseDate(value) {
201
+ if (!value) return /* @__PURE__ */ new Date();
202
+ if (value instanceof Date) return value;
203
+ if (typeof value === "number") return new Date(value);
204
+ if (typeof value === "string") {
205
+ const d = new Date(value.replace(/-/g, "/"));
206
+ return isNaN(d.getTime()) ? /* @__PURE__ */ new Date() : d;
207
+ }
208
+ return /* @__PURE__ */ new Date();
209
+ }
210
+ function formatDate(date, format) {
211
+ const year = date.getFullYear();
212
+ const month = date.getMonth() + 1;
213
+ const day = date.getDate();
214
+ const hour = date.getHours();
215
+ const minute = date.getMinutes();
216
+ const second = date.getSeconds();
217
+ return format.replace("YYYY", year).replace("MM", padZero(month)).replace("DD", padZero(day)).replace("HH", padZero(hour)).replace("mm", padZero(minute)).replace("ss", padZero(second));
218
+ }
219
+ function openPicker() {
220
+ if (props.disabled) return;
221
+ if (props.mode === "calendar") {
222
+ initCalendar();
223
+ } else {
224
+ initPickerIndex();
225
+ }
226
+ showPicker.value = true;
227
+ }
228
+ function initCalendar() {
229
+ const date = props.modelValue ? parseDate(props.modelValue) : /* @__PURE__ */ new Date();
230
+ calendarYear.value = date.getFullYear();
231
+ calendarMonth.value = date.getMonth() + 1;
232
+ selectedDate.value = props.modelValue ? `${date.getFullYear()}-${padZero(date.getMonth() + 1)}-${padZero(date.getDate())}` : "";
233
+ }
234
+ function initPickerIndex() {
235
+ const date = props.modelValue ? parseDate(props.modelValue) : /* @__PURE__ */ new Date();
236
+ const year = date.getFullYear();
237
+ const month = date.getMonth() + 1;
238
+ const day = date.getDate();
239
+ const hour = date.getHours();
240
+ const minute = date.getMinutes();
241
+ const second = date.getSeconds();
242
+ const yearIdx = yearList.value.indexOf(year);
243
+ pickerIndex.value = [
244
+ yearIdx >= 0 ? yearIdx : 0,
245
+ month - 1,
246
+ day - 1,
247
+ hour,
248
+ minute,
249
+ second
250
+ ];
251
+ }
252
+ function closePicker() {
253
+ showPicker.value = false;
254
+ emit("cancel");
255
+ }
256
+ function prevYear() {
257
+ calendarYear.value--;
258
+ }
259
+ function nextYear() {
260
+ calendarYear.value++;
261
+ }
262
+ function prevMonth() {
263
+ if (calendarMonth.value === 1) {
264
+ calendarMonth.value = 12;
265
+ calendarYear.value--;
266
+ } else {
267
+ calendarMonth.value--;
268
+ }
269
+ }
270
+ function nextMonth() {
271
+ if (calendarMonth.value === 12) {
272
+ calendarMonth.value = 1;
273
+ calendarYear.value++;
274
+ } else {
275
+ calendarMonth.value++;
276
+ }
277
+ }
278
+ function selectCalendarDay(day) {
279
+ if (day.otherMonth) return;
280
+ if (props.range) {
281
+ if (!rangeStart.value || rangeStart.value && rangeEnd.value) {
282
+ rangeStart.value = day.dateStr;
283
+ rangeEnd.value = "";
284
+ } else {
285
+ if (day.dateStr < rangeStart.value) {
286
+ rangeEnd.value = rangeStart.value;
287
+ rangeStart.value = day.dateStr;
288
+ } else {
289
+ rangeEnd.value = day.dateStr;
290
+ }
291
+ }
292
+ } else {
293
+ selectedDate.value = day.dateStr;
294
+ }
295
+ }
296
+ function onPickerChange(e) {
297
+ const values = e.detail.value;
298
+ const year = yearList.value[values[0]];
299
+ const month = monthList.value[values[1]];
300
+ const maxDay = getDaysInMonth(year, month);
301
+ if (values[2] >= maxDay) {
302
+ values[2] = maxDay - 1;
303
+ }
304
+ pickerIndex.value = values;
305
+ }
306
+ function confirmSelect() {
307
+ let result;
308
+ if (props.mode === "calendar") {
309
+ if (props.range) {
310
+ if (!rangeStart.value || !rangeEnd.value) {
311
+ common_vendor.index.showToast({ title: "请选择完整的日期范围", icon: "none" });
312
+ return;
313
+ }
314
+ result = [rangeStart.value, rangeEnd.value];
315
+ } else {
316
+ if (!selectedDate.value) {
317
+ common_vendor.index.showToast({ title: "请选择日期", icon: "none" });
318
+ return;
319
+ }
320
+ result = selectedDate.value;
321
+ }
322
+ } else {
323
+ const year = yearList.value[pickerIndex.value[0]];
324
+ const month = monthList.value[pickerIndex.value[1]];
325
+ const day = dayList.value[pickerIndex.value[2]];
326
+ const hour = props.showTime ? hourList.value[pickerIndex.value[3]] : 0;
327
+ const minute = props.showTime ? minuteList.value[pickerIndex.value[4]] : 0;
328
+ const second = props.showTime && props.showSeconds ? secondList.value[pickerIndex.value[5]] : 0;
329
+ const date = new Date(year, month - 1, day, hour, minute, second);
330
+ result = formatDate(date, defaultFormat.value);
331
+ }
332
+ emit("update:modelValue", result);
333
+ emit("change", result);
334
+ emit("confirm", result);
335
+ showPicker.value = false;
336
+ }
337
+ return (_ctx, _cache) => {
338
+ return common_vendor.e({
339
+ a: common_vendor.t(displayValue.value || __props.placeholder),
340
+ b: !displayValue.value ? 1 : "",
341
+ c: displayValue.value ? 1 : "",
342
+ d: common_vendor.o(openPicker),
343
+ e: showPicker.value
344
+ }, showPicker.value ? common_vendor.e({
345
+ f: common_vendor.o(closePicker),
346
+ g: common_vendor.t(__props.title),
347
+ h: common_vendor.o(confirmSelect),
348
+ i: __props.mode === "picker"
349
+ }, __props.mode === "picker" ? common_vendor.e({
350
+ j: common_vendor.f(yearList.value, (item, idx, i0) => {
351
+ return {
352
+ a: common_vendor.t(item),
353
+ b: item,
354
+ c: idx === pickerIndex.value[0] ? "var(--prism-primary-color, #3478F6)" : "var(--prism-text-secondary, #86909C)",
355
+ d: idx === pickerIndex.value[0] ? "600" : "400"
356
+ };
357
+ }),
358
+ k: common_vendor.unref(itemHeight) + "px",
359
+ l: common_vendor.unref(itemHeight) + "px",
360
+ m: common_vendor.f(monthList.value, (item, idx, i0) => {
361
+ return {
362
+ a: common_vendor.t(padZero(item)),
363
+ b: item,
364
+ c: idx === pickerIndex.value[1] ? "var(--prism-primary-color, #3478F6)" : "var(--prism-text-secondary, #86909C)",
365
+ d: idx === pickerIndex.value[1] ? "600" : "400"
366
+ };
367
+ }),
368
+ n: common_vendor.unref(itemHeight) + "px",
369
+ o: common_vendor.unref(itemHeight) + "px",
370
+ p: common_vendor.f(dayList.value, (item, idx, i0) => {
371
+ return {
372
+ a: common_vendor.t(padZero(item)),
373
+ b: item,
374
+ c: idx === pickerIndex.value[2] ? "var(--prism-primary-color, #3478F6)" : "var(--prism-text-secondary, #86909C)",
375
+ d: idx === pickerIndex.value[2] ? "600" : "400"
376
+ };
377
+ }),
378
+ q: common_vendor.unref(itemHeight) + "px",
379
+ r: common_vendor.unref(itemHeight) + "px",
380
+ s: __props.showTime
381
+ }, __props.showTime ? {
382
+ t: common_vendor.f(hourList.value, (item, idx, i0) => {
383
+ return {
384
+ a: common_vendor.t(padZero(item)),
385
+ b: item,
386
+ c: idx === pickerIndex.value[3] ? "var(--prism-primary-color, #3478F6)" : "var(--prism-text-secondary, #86909C)",
387
+ d: idx === pickerIndex.value[3] ? "600" : "400"
388
+ };
389
+ }),
390
+ v: common_vendor.unref(itemHeight) + "px",
391
+ w: common_vendor.unref(itemHeight) + "px"
392
+ } : {}, {
393
+ x: __props.showTime
394
+ }, __props.showTime ? {
395
+ y: common_vendor.f(minuteList.value, (item, idx, i0) => {
396
+ return {
397
+ a: common_vendor.t(padZero(item)),
398
+ b: item,
399
+ c: idx === pickerIndex.value[4] ? "var(--prism-primary-color, #3478F6)" : "var(--prism-text-secondary, #86909C)",
400
+ d: idx === pickerIndex.value[4] ? "600" : "400"
401
+ };
402
+ }),
403
+ z: common_vendor.unref(itemHeight) + "px",
404
+ A: common_vendor.unref(itemHeight) + "px"
405
+ } : {}, {
406
+ B: __props.showTime && __props.showSeconds
407
+ }, __props.showTime && __props.showSeconds ? {
408
+ C: common_vendor.f(secondList.value, (item, idx, i0) => {
409
+ return {
410
+ a: common_vendor.t(padZero(item)),
411
+ b: item,
412
+ c: idx === pickerIndex.value[5] ? "var(--prism-primary-color, #3478F6)" : "var(--prism-text-secondary, #86909C)",
413
+ d: idx === pickerIndex.value[5] ? "600" : "400"
414
+ };
415
+ }),
416
+ D: common_vendor.unref(itemHeight) + "px",
417
+ E: common_vendor.unref(itemHeight) + "px"
418
+ } : {}, {
419
+ F: pickerIndex.value,
420
+ G: common_vendor.o(onPickerChange),
421
+ H: indicatorStyle,
422
+ I: pickerHeight
423
+ }) : __props.mode === "calendar" ? {
424
+ K: common_vendor.t(calendarMonth.value),
425
+ L: common_vendor.o(prevYear),
426
+ M: common_vendor.o(prevMonth),
427
+ N: common_vendor.t(calendarYear.value),
428
+ O: common_vendor.t(calendarMonth.value),
429
+ P: common_vendor.o(nextMonth),
430
+ Q: common_vendor.o(nextYear),
431
+ R: common_vendor.f(weekdays, (day, k0, i0) => {
432
+ return {
433
+ a: common_vendor.t(day),
434
+ b: day
435
+ };
436
+ }),
437
+ S: common_vendor.f(calendarDays.value, (day, index, i0) => {
438
+ return common_vendor.e({
439
+ a: common_vendor.t(day.day),
440
+ b: props.showLunar && day.lunar
441
+ }, props.showLunar && day.lunar ? {
442
+ c: common_vendor.t(day.lunar)
443
+ } : {}, {
444
+ d: day.isToday && !props.showLunar
445
+ }, day.isToday && !props.showLunar ? {} : {}, {
446
+ e: index,
447
+ f: day.otherMonth ? 1 : "",
448
+ g: day.isToday ? 1 : "",
449
+ h: day.isSelected ? 1 : "",
450
+ i: day.isRangeStart ? 1 : "",
451
+ j: day.isRangeEnd ? 1 : "",
452
+ k: day.isInRange ? 1 : "",
453
+ l: common_vendor.o(($event) => selectCalendarDay(day), index)
454
+ });
455
+ })
456
+ } : {}, {
457
+ J: __props.mode === "calendar",
458
+ T: common_vendor.o(() => {
459
+ }),
460
+ U: common_vendor.o(closePicker)
461
+ }) : {}, {
462
+ V: common_vendor.unref(appStore).isDarkMode ? 1 : ""
463
+ });
464
+ };
465
+ }
466
+ };
467
+ wx.createComponent(_sfc_main);
468
+ //# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.js.map
@@ -0,0 +1,4 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {}
4
+ }
@@ -0,0 +1 @@
1
+ <view class="{{['prism-datetime-picker', V && 'dark-mode']}}"><view class="picker-trigger" bindtap="{{d}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><view class="prism-select-box"><text class="{{[b && 'placeholder', c && 'select-text']}}">{{a}}</text><text class="select-arrow fa fa-calendar-alt"></text></view></block></view><view wx:if="{{e}}" class="picker-popup" bindtap="{{U}}"><view class="picker-content" catchtap="{{T}}"><view class="picker-header"><view class="picker-cancel" bindtap="{{f}}">取消</view><view class="picker-title">{{g}}</view><view class="picker-confirm" bindtap="{{h}}">确定</view></view><view wx:if="{{i}}" class="picker-body"><block wx:if="{{r0}}"><picker-view class="picker-view" value="{{F}}" bindchange="{{G}}" indicator-class="picker-indicator" indicator-style="{{H}}" style="{{'height:' + I}}"><picker-view-column><view wx:for="{{j}}" wx:for-item="item" wx:key="b" class="picker-item" style="{{'height:' + k + ';' + ('line-height:' + l) + ';' + ('color:' + item.c) + ';' + ('font-weight:' + item.d)}}">{{item.a}}年 </view></picker-view-column><picker-view-column><view wx:for="{{m}}" wx:for-item="item" wx:key="b" class="picker-item" style="{{'height:' + n + ';' + ('line-height:' + o) + ';' + ('color:' + item.c) + ';' + ('font-weight:' + item.d)}}">{{item.a}}月 </view></picker-view-column><picker-view-column><view wx:for="{{p}}" wx:for-item="item" wx:key="b" class="picker-item" style="{{'height:' + q + ';' + ('line-height:' + r) + ';' + ('color:' + item.c) + ';' + ('font-weight:' + item.d)}}">{{item.a}}日 </view></picker-view-column><picker-view-column wx:if="{{s}}"><view wx:for="{{t}}" wx:for-item="item" wx:key="b" class="picker-item" style="{{'height:' + v + ';' + ('line-height:' + w) + ';' + ('color:' + item.c) + ';' + ('font-weight:' + item.d)}}">{{item.a}}时 </view></picker-view-column><picker-view-column wx:if="{{x}}"><view wx:for="{{y}}" wx:for-item="item" wx:key="b" class="picker-item" style="{{'height:' + z + ';' + ('line-height:' + A) + ';' + ('color:' + item.c) + ';' + ('font-weight:' + item.d)}}">{{item.a}}分 </view></picker-view-column><picker-view-column wx:if="{{B}}"><view wx:for="{{C}}" wx:for-item="item" wx:key="b" class="picker-item" style="{{'height:' + D + ';' + ('line-height:' + E) + ';' + ('color:' + item.c) + ';' + ('font-weight:' + item.d)}}">{{item.a}}秒 </view></picker-view-column></picker-view></block></view><view wx:elif="{{J}}" class="calendar-body"><view class="calendar-watermark">{{K}}</view><view class="calendar-nav"><view class="nav-btn" bindtap="{{L}}"><text class="fa fa-angles-left"></text></view><view class="nav-btn" bindtap="{{M}}"><text class="fa fa-chevron-left"></text></view><view class="nav-title">{{N}}年{{O}}月</view><view class="nav-btn" bindtap="{{P}}"><text class="fa fa-chevron-right"></text></view><view class="nav-btn" bindtap="{{Q}}"><text class="fa fa-angles-right"></text></view></view><view class="calendar-weekdays"><view wx:for="{{R}}" wx:for-item="day" wx:key="b" class="weekday">{{day.a}}</view></view><view class="calendar-days"><view wx:for="{{S}}" wx:for-item="day" wx:key="e" class="{{['calendar-day', day.f && 'other-month', day.g && 'today', day.h && 'selected', day.i && 'range-start', day.j && 'range-end', day.k && 'in-range']}}" bindtap="{{day.l}}"><text class="day-text">{{day.a}}</text><text wx:if="{{day.b}}" class="lunar-text">{{day.c}}</text><text wx:if="{{day.d}}" class="today-label">今</text></view></view></view></view></view></view>