@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.
- package/README.md +6 -2
- package/dist/build/h5/assets/PrismCode-D1lrgx1M.css +1 -0
- package/dist/build/h5/assets/PrismCode.CNOtat_X.js +1 -0
- package/dist/build/h5/assets/PrismGroupSticky-CBFeo0AB.css +1 -0
- package/dist/build/h5/assets/PrismGroupSticky.CmJXt6ws.js +1 -0
- package/dist/build/h5/assets/PrismMusicPlayer-CHVtYDn7.css +1 -0
- package/dist/build/h5/assets/PrismMusicPlayer.DAW3y5Km.js +1 -0
- package/dist/build/h5/assets/PrismNavBar-CYetauMR.css +1 -0
- package/dist/build/h5/assets/PrismNavBar.CFM58fal.js +1 -0
- package/dist/build/h5/assets/PrismSwiper-CDtZrfyq.css +1 -0
- package/dist/build/h5/assets/PrismSwiper.DTGFNn5Q.js +1 -0
- package/dist/build/h5/assets/PrismTabBar-BW0exu0j.css +1 -0
- package/dist/build/h5/assets/PrismTabBar.DPe-iC_F.js +1 -0
- package/dist/build/h5/assets/basic-tn0RQdqM.css +0 -0
- package/dist/build/h5/assets/card-layout-BZuodKCJ.css +1 -0
- package/dist/build/h5/assets/colors-RgTfwcKp.css +1 -0
- package/dist/build/h5/assets/data-DSHiB3Xs.css +1 -0
- package/dist/build/h5/assets/effects-CNFDtZjf.css +1 -0
- package/dist/build/h5/assets/examples-CSzKlb8B.css +1 -0
- package/dist/build/h5/assets/fa-brands-400-C99Yv4gD.woff2 +0 -0
- package/dist/build/h5/assets/fa-regular-400-OOsPf1xj.woff2 +0 -0
- package/dist/build/h5/assets/fa-solid-900-DAI24fNt.woff2 +0 -0
- package/dist/build/h5/assets/feedback-BaC8qSUp.css +1 -0
- package/dist/build/h5/assets/form-va-eFD7k.css +1 -0
- package/dist/build/h5/assets/group-CDa_hQkB.css +1 -0
- package/dist/build/h5/assets/iconfont-CW81RyG4.ttf +0 -0
- package/dist/build/h5/assets/icons-83wAdmdh.css +1 -0
- package/dist/build/h5/assets/index-BQ-qpvZH.css +1 -0
- package/dist/build/h5/assets/index-BQnv3xQ8.css +1 -0
- package/dist/build/h5/assets/index-C83xA4hX.css +1 -0
- package/dist/build/h5/assets/index-Cvc14mto.css +1 -0
- package/dist/build/h5/assets/index-D2djL_pA.js +32 -0
- package/dist/build/h5/assets/navigation-D0rlyjtK.css +1 -0
- package/dist/build/h5/assets/pages-demo-basic.BsC9sqol.js +1 -0
- package/dist/build/h5/assets/pages-demo-code-index.BXECig1w.js +1 -0
- package/dist/build/h5/assets/pages-demo-colors.Dl__3Mv9.js +1 -0
- package/dist/build/h5/assets/pages-demo-container.Cy-M9f41.js +1 -0
- package/dist/build/h5/assets/pages-demo-data.CK2JdeBK.js +1 -0
- package/dist/build/h5/assets/pages-demo-effects.CV0rqKht.js +1 -0
- package/dist/build/h5/assets/pages-demo-feedback.BO-G3E1J.js +1 -0
- package/dist/build/h5/assets/pages-demo-form.CsUNLqqe.js +1 -0
- package/dist/build/h5/assets/pages-demo-layout-card-layout.CQ6fF8IK.js +1 -0
- package/dist/build/h5/assets/pages-demo-layout.261GXW2o.js +1 -0
- package/dist/build/h5/assets/pages-demo-navigation.C5hFijVt.js +1 -0
- package/dist/build/h5/assets/pages-demo-other.CVdLVU3_.js +1 -0
- package/dist/build/h5/assets/pages-demo-sticky-group.MDzv6I5L.js +1 -0
- package/dist/build/h5/assets/pages-demo-sticky-index.D2UJUdon.js +1 -0
- package/dist/build/h5/assets/pages-examples-examples.hyUWuu8C.js +1 -0
- package/dist/build/h5/assets/pages-icons-icons.R2erKYQX.js +1 -0
- package/dist/build/h5/assets/pages-index-index.BlfkIjJo.js +1 -0
- package/dist/build/h5/assets/pages-tools-tools.tm3Y1cFN.js +1 -0
- package/dist/build/h5/assets/tools-C1YBcrWJ.css +1 -0
- package/dist/build/h5/assets/uni-app.es.DfNmMcUd.js +1 -0
- package/dist/build/h5/assets/uni.e2868147.css +1 -0
- package/dist/build/h5/assets/useNavbar.BdajVjjC.js +1 -0
- package/dist/build/h5/index.html +23 -0
- package/dist/build/h5/static/fonts/all-icons.txt +453 -0
- package/dist/build/h5/static/fonts/fa-brands-400.woff2 +0 -0
- package/dist/build/h5/static/fonts/fa-regular-400.woff2 +0 -0
- package/dist/build/h5/static/fonts/fa-solid-900.woff2 +0 -0
- package/dist/build/h5/static/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/build/h5/static/fonts/font-awesome.css +943 -0
- package/dist/build/h5/static/fonts/iconfont.css +62 -0
- package/dist/build/h5/static/fonts/iconfont.js +1 -0
- package/dist/build/h5/static/fonts/iconfont.json +79 -0
- package/dist/build/h5/static/fonts/iconfont.ttf +0 -0
- package/dist/build/h5/static/fonts/iconfont.woff +0 -0
- package/dist/build/h5/static/fonts/iconfont.woff2 +0 -0
- package/dist/build/h5/static/fonts/icons-list.txt +453 -0
- package/dist/build/h5/static/tabbar/examples-active.png +0 -0
- package/dist/build/h5/static/tabbar/examples.png +0 -0
- package/dist/build/h5/static/tabbar/home-active.png +0 -0
- package/dist/build/h5/static/tabbar/home.png +0 -0
- package/dist/build/h5/static/tabbar/icons-active.png +0 -0
- package/dist/build/h5/static/tabbar/icons.png +0 -0
- package/dist/build/h5/static/tabbar/tools-active.png +0 -0
- package/dist/build/h5/static/tabbar/tools.png +0 -0
- package/dist/dev/.nvue/app.css.js +11 -0
- package/dist/dev/.nvue/app.js +2 -0
- package/dist/dev/.sourcemap/mp-weixin/app.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismAddressInput/PrismAddressInput.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismCityPicker/PrismCityPicker.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismCitySelect/PrismCitySelect.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismCode/PrismCode.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismCodeInput/PrismCodeInput.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismDropdown/PrismDropdown.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismIndexBar/PrismIndexBar.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismNavBar/PrismNavBar.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismSecureInput/PrismSecureInput.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismSticky/PrismSticky.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismSwiper/PrismSwiper.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismSwitch/PrismSwitch.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismTabBar/PrismTabBar.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismTabs/PrismTabs.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/composables/useNavbar.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/config/theme-colors.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/basic.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/card.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/code/index.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/colors.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/container.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/data.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/effects.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/feedback.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/form.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/layout/card-layout.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/layout.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/navigation.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/other.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/sticky/group.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/demo/sticky/index.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/examples/examples.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/icons/icons.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/pages/tools/tools.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/store/app.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/utils/lunar.js.map +1 -0
- package/dist/dev/.sourcemap/mp-weixin/utils/system.js.map +1 -0
- package/dist/dev/app-plus/__uniappautomator.js +16 -0
- package/dist/dev/app-plus/__uniappchooselocation.js +32 -0
- package/dist/dev/app-plus/__uniapperror.png +0 -0
- package/dist/dev/app-plus/__uniappopenlocation.js +32 -0
- package/dist/dev/app-plus/__uniapppicker.js +33 -0
- package/dist/dev/app-plus/__uniappquill.js +8 -0
- package/dist/dev/app-plus/__uniappquillimageresize.js +1 -0
- package/dist/dev/app-plus/__uniappscan.js +32 -0
- package/dist/dev/app-plus/__uniappsuccess.png +0 -0
- package/dist/dev/app-plus/__uniappview.html +24 -0
- package/dist/dev/app-plus/app-config-service.js +11 -0
- package/dist/dev/app-plus/app-config.js +1 -0
- package/dist/dev/app-plus/app-service.js +23663 -0
- package/dist/dev/app-plus/app.css +8955 -0
- package/dist/dev/app-plus/manifest.json +91 -0
- package/dist/dev/app-plus/pages/demo/basic.css +524 -0
- package/dist/dev/app-plus/pages/demo/code/index.css +541 -0
- package/dist/dev/app-plus/pages/demo/colors.css +4008 -0
- package/dist/dev/app-plus/pages/demo/container.css +524 -0
- package/dist/dev/app-plus/pages/demo/data.css +705 -0
- package/dist/dev/app-plus/pages/demo/effects.css +530 -0
- package/dist/dev/app-plus/pages/demo/feedback.css +590 -0
- package/dist/dev/app-plus/pages/demo/form.css +3422 -0
- package/dist/dev/app-plus/pages/demo/layout/card-layout.css +785 -0
- package/dist/dev/app-plus/pages/demo/layout.css +524 -0
- package/dist/dev/app-plus/pages/demo/navigation.css +769 -0
- package/dist/dev/app-plus/pages/demo/other.css +524 -0
- package/dist/dev/app-plus/pages/demo/sticky/group.css +788 -0
- package/dist/dev/app-plus/pages/demo/sticky/index.css +894 -0
- package/dist/dev/app-plus/pages/examples/examples.css +1031 -0
- package/dist/dev/app-plus/pages/icons/icons.css +3310 -0
- package/dist/dev/app-plus/pages/index/index.css +696 -0
- package/dist/dev/app-plus/pages/tools/tools.css +378 -0
- package/dist/dev/app-plus/static/fonts/all-icons.txt +453 -0
- package/dist/dev/app-plus/static/fonts/fa-brands-400.woff2 +0 -0
- package/dist/dev/app-plus/static/fonts/fa-regular-400.woff2 +0 -0
- package/dist/dev/app-plus/static/fonts/fa-solid-900.woff2 +0 -0
- package/dist/dev/app-plus/static/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/dev/app-plus/static/fonts/font-awesome.css +943 -0
- package/dist/dev/app-plus/static/fonts/iconfont.css +62 -0
- package/dist/dev/app-plus/static/fonts/iconfont.js +1 -0
- package/dist/dev/app-plus/static/fonts/iconfont.json +79 -0
- package/dist/dev/app-plus/static/fonts/iconfont.ttf +0 -0
- package/dist/dev/app-plus/static/fonts/iconfont.woff +0 -0
- package/dist/dev/app-plus/static/fonts/iconfont.woff2 +0 -0
- package/dist/dev/app-plus/static/fonts/icons-list.txt +453 -0
- package/dist/dev/app-plus/static/tabbar/examples-active.png +0 -0
- package/dist/dev/app-plus/static/tabbar/examples.png +0 -0
- package/dist/dev/app-plus/static/tabbar/home-active.png +0 -0
- package/dist/dev/app-plus/static/tabbar/home.png +0 -0
- package/dist/dev/app-plus/static/tabbar/icons-active.png +0 -0
- package/dist/dev/app-plus/static/tabbar/icons.png +0 -0
- package/dist/dev/app-plus/static/tabbar/tools-active.png +0 -0
- package/dist/dev/app-plus/static/tabbar/tools.png +0 -0
- package/dist/dev/app-plus/uni-app-view.umd.js +7 -0
- package/dist/dev/mp-weixin/app.js +49 -0
- package/dist/dev/mp-weixin/app.json +29 -0
- package/dist/dev/mp-weixin/app.wxss +9072 -0
- package/dist/dev/mp-weixin/common/vendor.js +15968 -0
- package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.js +200 -0
- package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.json +4 -0
- package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismAddressInput/PrismAddressInput.wxss +327 -0
- package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.js +449 -0
- package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.json +4 -0
- package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismCityCascadeSelect/PrismCityCascadeSelect.wxss +264 -0
- package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.js +531 -0
- package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.json +4 -0
- package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismCityPicker/PrismCityPicker.wxss +309 -0
- package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.js +200 -0
- package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.json +6 -0
- package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismCitySelect/PrismCitySelect.wxss +225 -0
- package/dist/dev/mp-weixin/components/PrismCode/PrismCode.js +337 -0
- package/dist/dev/mp-weixin/components/PrismCode/PrismCode.json +4 -0
- package/dist/dev/mp-weixin/components/PrismCode/PrismCode.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismCode/PrismCode.wxss +345 -0
- package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.js +70 -0
- package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.json +4 -0
- package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismCodeInput/PrismCodeInput.wxss +115 -0
- package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.js +468 -0
- package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.json +4 -0
- package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismDateTimePicker/PrismDateTimePicker.wxss +309 -0
- package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.js +63 -0
- package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.json +4 -0
- package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismDropdown/PrismDropdown.wxss +0 -0
- package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.js +128 -0
- package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.json +4 -0
- package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.wxss +191 -0
- package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.js +123 -0
- package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.json +4 -0
- package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.wxss +114 -0
- package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.js +108 -0
- package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.json +4 -0
- package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismIndexBar/PrismIndexBar.wxss +135 -0
- package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.js +449 -0
- package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.json +4 -0
- package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.wxss +445 -0
- package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.js +200 -0
- package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.json +4 -0
- package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismMusicPlayer/PrismMusicPlayer.wxss +334 -0
- package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.js +71 -0
- package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.json +4 -0
- package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismNavBar/PrismNavBar.wxss +150 -0
- package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.js +140 -0
- package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.json +4 -0
- package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismSecureInput/PrismSecureInput.wxss +215 -0
- package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.js +120 -0
- package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.json +4 -0
- package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismSticky/PrismSticky.wxss +62 -0
- package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.js +163 -0
- package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.json +4 -0
- package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismSwiper/PrismSwiper.wxss +203 -0
- package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.js +69 -0
- package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.json +4 -0
- package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismSwitch/PrismSwitch.wxss +151 -0
- package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.js +58 -0
- package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.json +4 -0
- package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismTabBar/PrismTabBar.wxss +119 -0
- package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.js +51 -0
- package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.json +4 -0
- package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismTabs/PrismTabs.wxss +51 -0
- package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.js +182 -0
- package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.json +4 -0
- package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.wxml +1 -0
- package/dist/dev/mp-weixin/components/PrismVoiceInput/PrismVoiceInput.wxss +329 -0
- package/dist/dev/mp-weixin/composables/useNavbar.js +19 -0
- package/dist/dev/mp-weixin/config/theme-colors.js +73 -0
- package/dist/dev/mp-weixin/pages/demo/basic.js +77 -0
- package/dist/dev/mp-weixin/pages/demo/basic.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/basic.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/basic.wxss +54 -0
- package/dist/dev/mp-weixin/pages/demo/code/index.js +190 -0
- package/dist/dev/mp-weixin/pages/demo/code/index.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/code/index.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/code/index.wxss +71 -0
- package/dist/dev/mp-weixin/pages/demo/colors.js +130 -0
- package/dist/dev/mp-weixin/pages/demo/colors.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/colors.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/colors.wxss +3793 -0
- package/dist/dev/mp-weixin/pages/demo/container.js +65 -0
- package/dist/dev/mp-weixin/pages/demo/container.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/container.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/container.wxss +54 -0
- package/dist/dev/mp-weixin/pages/demo/data.js +398 -0
- package/dist/dev/mp-weixin/pages/demo/data.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/data.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/data.wxss +235 -0
- package/dist/dev/mp-weixin/pages/demo/effects.js +62 -0
- package/dist/dev/mp-weixin/pages/demo/effects.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/effects.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/effects.wxss +60 -0
- package/dist/dev/mp-weixin/pages/demo/feedback.js +256 -0
- package/dist/dev/mp-weixin/pages/demo/feedback.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/feedback.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/feedback.wxss +120 -0
- package/dist/dev/mp-weixin/pages/demo/form.js +689 -0
- package/dist/dev/mp-weixin/pages/demo/form.json +18 -0
- package/dist/dev/mp-weixin/pages/demo/form.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/form.wxss +54 -0
- package/dist/dev/mp-weixin/pages/demo/layout/card-layout.js +61 -0
- package/dist/dev/mp-weixin/pages/demo/layout/card-layout.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/layout/card-layout.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/layout/card-layout.wxss +326 -0
- package/dist/dev/mp-weixin/pages/demo/layout.js +96 -0
- package/dist/dev/mp-weixin/pages/demo/layout.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/layout.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/layout.wxss +54 -0
- package/dist/dev/mp-weixin/pages/demo/navigation.js +142 -0
- package/dist/dev/mp-weixin/pages/demo/navigation.json +10 -0
- package/dist/dev/mp-weixin/pages/demo/navigation.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/navigation.wxss +61 -0
- package/dist/dev/mp-weixin/pages/demo/other.js +50 -0
- package/dist/dev/mp-weixin/pages/demo/other.json +7 -0
- package/dist/dev/mp-weixin/pages/demo/other.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/other.wxss +54 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/group.js +212 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/group.json +8 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/group.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/group.wxss +135 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/index.js +90 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/index.json +9 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/index.wxml +1 -0
- package/dist/dev/mp-weixin/pages/demo/sticky/index.wxss +175 -0
- package/dist/dev/mp-weixin/pages/examples/examples.js +65 -0
- package/dist/dev/mp-weixin/pages/examples/examples.json +8 -0
- package/dist/dev/mp-weixin/pages/examples/examples.wxml +1 -0
- package/dist/dev/mp-weixin/pages/examples/examples.wxss +461 -0
- package/dist/dev/mp-weixin/pages/icons/icons.js +350 -0
- package/dist/dev/mp-weixin/pages/icons/icons.json +8 -0
- package/dist/dev/mp-weixin/pages/icons/icons.wxml +1 -0
- package/dist/dev/mp-weixin/pages/icons/icons.wxss +3079 -0
- package/dist/dev/mp-weixin/pages/index/index.js +118 -0
- package/dist/dev/mp-weixin/pages/index/index.json +8 -0
- package/dist/dev/mp-weixin/pages/index/index.wxml +1 -0
- package/dist/dev/mp-weixin/pages/index/index.wxss +123 -0
- package/dist/dev/mp-weixin/pages/tools/tools.js +37 -0
- package/dist/dev/mp-weixin/pages/tools/tools.json +7 -0
- package/dist/dev/mp-weixin/pages/tools/tools.wxml +1 -0
- package/dist/dev/mp-weixin/pages/tools/tools.wxss +134 -0
- package/dist/dev/mp-weixin/project.config.json +36 -0
- package/dist/dev/mp-weixin/project.private.config.json +23 -0
- package/dist/dev/mp-weixin/static/fonts/all-icons.txt +453 -0
- package/dist/dev/mp-weixin/static/fonts/fa-brands-400.woff2 +0 -0
- package/dist/dev/mp-weixin/static/fonts/fa-regular-400.woff2 +0 -0
- package/dist/dev/mp-weixin/static/fonts/fa-solid-900.woff2 +0 -0
- package/dist/dev/mp-weixin/static/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/dev/mp-weixin/static/fonts/font-awesome.css +943 -0
- package/dist/dev/mp-weixin/static/fonts/iconfont.css +62 -0
- package/dist/dev/mp-weixin/static/fonts/iconfont.js +1 -0
- package/dist/dev/mp-weixin/static/fonts/iconfont.json +79 -0
- package/dist/dev/mp-weixin/static/fonts/iconfont.ttf +0 -0
- package/dist/dev/mp-weixin/static/fonts/iconfont.woff +0 -0
- package/dist/dev/mp-weixin/static/fonts/iconfont.woff2 +0 -0
- package/dist/dev/mp-weixin/static/fonts/icons-list.txt +453 -0
- package/dist/dev/mp-weixin/static/tabbar/examples-active.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/examples.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/home-active.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/home.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/icons-active.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/icons.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/tools-active.png +0 -0
- package/dist/dev/mp-weixin/static/tabbar/tools.png +0 -0
- package/dist/dev/mp-weixin/store/app.js +64 -0
- package/dist/dev/mp-weixin/utils/lunar.js +330 -0
- package/dist/dev/mp-weixin/utils/system.js +18 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.esm.js +33 -0
- package/dist/index.js +33 -0
- package/dist/prism-ui.css +7776 -0
- package/dist/prism-ui.min.css +1 -0
- package/dist/styles/base.scss +213 -0
- package/dist/styles/button.scss +120 -0
- package/dist/styles/card.scss +306 -0
- package/dist/styles/data.scss +1229 -0
- package/dist/styles/effects.scss +407 -0
- package/dist/styles/feedback.scss +698 -0
- package/dist/styles/form.scss +1574 -0
- package/dist/styles/index.scss +43 -0
- package/dist/styles/list.scss +184 -0
- package/dist/styles/navigation.scss +501 -0
- package/dist/styles/overlay.scss +182 -0
- package/dist/styles/utilities.scss +134 -0
- package/dist/styles/variables.scss +154 -0
- package/package.json +2 -5
- package/styles/base.scss +0 -1
- package/styles/card.scss +0 -1
- package/styles/colors.scss +0 -1
- package/styles/effects.scss +0 -1
- package/styles/form.scss +0 -1
- package/styles/index.scss +13 -13
- package/styles/navigation.scss +0 -1
- package/styles/variables.scss +1 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prism UI - SCSS 变量定义
|
|
3
|
+
* 此文件包含所有设计令牌和变量
|
|
4
|
+
* 所有变量使用 $prism- 前缀,避免与用户项目冲突
|
|
5
|
+
*
|
|
6
|
+
* 主题切换:修改下面的引入文件即可切换主题
|
|
7
|
+
* 可选主题:blue(默认) / green / purple / orange / red / cyan
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Prism UI - 蓝色主题(默认)
|
|
11
|
+
*
|
|
12
|
+
* 使用方式:在 variables.scss 中修改引入
|
|
13
|
+
* @import '../theme/blue.scss';
|
|
14
|
+
*
|
|
15
|
+
* 颜色值来自 colors.scss 中的 $prism-blue-* 变量
|
|
16
|
+
*/
|
|
17
|
+
/* ============================================================
|
|
18
|
+
一、浅色模式变量(使用 !default,允许主题文件覆盖)
|
|
19
|
+
============================================================ */
|
|
20
|
+
/* -------------------- 主题色 -------------------- */
|
|
21
|
+
/* -------------------- 状态色 -------------------- */
|
|
22
|
+
/* -------------------- 文字颜色 -------------------- */
|
|
23
|
+
/* -------------------- 边框颜色 -------------------- */
|
|
24
|
+
/* -------------------- 背景颜色 -------------------- */
|
|
25
|
+
/* ============================================================
|
|
26
|
+
二、深色模式变量
|
|
27
|
+
============================================================ */
|
|
28
|
+
/* -------------------- 主题色(深色) -------------------- */
|
|
29
|
+
/* -------------------- 状态色(深色) -------------------- */
|
|
30
|
+
/* -------------------- 文字颜色(深色) -------------------- */
|
|
31
|
+
/* -------------------- 边框颜色(深色) -------------------- */
|
|
32
|
+
/* -------------------- 背景颜色(深色) -------------------- */
|
|
33
|
+
/* ============================================================
|
|
34
|
+
三、主题色透明度(使用 !default,允许主题文件覆盖)
|
|
35
|
+
============================================================ */
|
|
36
|
+
/* ============================================================
|
|
37
|
+
主题色渐变(使用 !default,允许主题文件覆盖)
|
|
38
|
+
============================================================ */
|
|
39
|
+
/* ============================================================
|
|
40
|
+
四、白色透明度
|
|
41
|
+
============================================================ */
|
|
42
|
+
/* ============================================================
|
|
43
|
+
六、第三方品牌色
|
|
44
|
+
============================================================ */
|
|
45
|
+
/* ============================================================
|
|
46
|
+
八、常用阴影(使用 !default,允许主题文件覆盖)
|
|
47
|
+
============================================================ */
|
|
48
|
+
/* ============================================================
|
|
49
|
+
九、统一间距
|
|
50
|
+
============================================================ */
|
|
51
|
+
.prism-datetime-picker .picker-trigger {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
.prism-datetime-picker .picker-popup {
|
|
55
|
+
position: fixed;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
background: var(--prism-mask-bg, rgba(0, 0, 0, 0.5));
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: flex-end;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
z-index: 9999;
|
|
65
|
+
}
|
|
66
|
+
.prism-datetime-picker .picker-content {
|
|
67
|
+
width: 100%;
|
|
68
|
+
background: var(--prism-bg-color-card, #FFFFFF);
|
|
69
|
+
border-radius: 24rpx 24rpx 0 0;
|
|
70
|
+
}
|
|
71
|
+
.prism-datetime-picker .picker-header {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
padding: 24rpx 32rpx;
|
|
76
|
+
border-bottom: 1rpx solid var(--prism-border-color-light, #E5E6EB);
|
|
77
|
+
}
|
|
78
|
+
.prism-datetime-picker .picker-cancel {
|
|
79
|
+
font-size: 30rpx;
|
|
80
|
+
color: var(--prism-text-secondary, #86909C);
|
|
81
|
+
padding: 8rpx 16rpx;
|
|
82
|
+
}
|
|
83
|
+
.prism-datetime-picker .picker-title {
|
|
84
|
+
font-size: 32rpx;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
color: var(--prism-text-primary, #1D2129);
|
|
87
|
+
}
|
|
88
|
+
.prism-datetime-picker .picker-confirm {
|
|
89
|
+
font-size: 30rpx;
|
|
90
|
+
color: var(--prism-primary-color, #3478F6);
|
|
91
|
+
padding: 8rpx 16rpx;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
}
|
|
94
|
+
.prism-datetime-picker .picker-body {
|
|
95
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
96
|
+
box-sizing: content-box;
|
|
97
|
+
position: relative;
|
|
98
|
+
}
|
|
99
|
+
.prism-datetime-picker .picker-item {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
font-size: 32rpx;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
}
|
|
106
|
+
.prism-datetime-picker .picker-indicator {
|
|
107
|
+
background: transparent !important;
|
|
108
|
+
background-color: transparent !important;
|
|
109
|
+
border: none !important;
|
|
110
|
+
border-width: 0 !important;
|
|
111
|
+
border-style: none !important;
|
|
112
|
+
border-color: transparent !important;
|
|
113
|
+
box-shadow: none !important;
|
|
114
|
+
z-index: 0 !important;
|
|
115
|
+
}
|
|
116
|
+
.prism-datetime-picker .picker-item {
|
|
117
|
+
position: relative;
|
|
118
|
+
z-index: 2;
|
|
119
|
+
}
|
|
120
|
+
.prism-datetime-picker .uni-picker-view-mask {
|
|
121
|
+
z-index: 1 !important;
|
|
122
|
+
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)), linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) !important;
|
|
123
|
+
}
|
|
124
|
+
.prism-datetime-picker .uni-picker-view-indicator {
|
|
125
|
+
border: none !important;
|
|
126
|
+
border-top: none !important;
|
|
127
|
+
border-bottom: none !important;
|
|
128
|
+
border-color: transparent !important;
|
|
129
|
+
}
|
|
130
|
+
.prism-datetime-picker .calendar-body {
|
|
131
|
+
padding: 0 24rpx 24rpx;
|
|
132
|
+
padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
|
|
133
|
+
position: relative;
|
|
134
|
+
}
|
|
135
|
+
.prism-datetime-picker .calendar-watermark {
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 50%;
|
|
138
|
+
left: 50%;
|
|
139
|
+
transform: translate(-50%, -50%);
|
|
140
|
+
font-size: 300rpx;
|
|
141
|
+
font-weight: bold;
|
|
142
|
+
color: var(--prism-text-primary, #1D2129);
|
|
143
|
+
opacity: 0.04;
|
|
144
|
+
pointer-events: none;
|
|
145
|
+
z-index: 0;
|
|
146
|
+
-webkit-user-select: none;
|
|
147
|
+
-moz-user-select: none;
|
|
148
|
+
user-select: none;
|
|
149
|
+
}
|
|
150
|
+
.prism-datetime-picker .calendar-nav {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
padding: 16rpx 0;
|
|
155
|
+
gap: 16rpx;
|
|
156
|
+
}
|
|
157
|
+
.prism-datetime-picker .nav-btn {
|
|
158
|
+
width: 64rpx;
|
|
159
|
+
height: 64rpx;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
border-radius: 8rpx;
|
|
164
|
+
color: var(--prism-text-secondary, #86909C);
|
|
165
|
+
}
|
|
166
|
+
.prism-datetime-picker .nav-btn:active {
|
|
167
|
+
background: var(--prism-bg-color-container, #F7F8FA);
|
|
168
|
+
}
|
|
169
|
+
.prism-datetime-picker .nav-title {
|
|
170
|
+
font-size: 32rpx;
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
color: var(--prism-text-primary, #1D2129);
|
|
173
|
+
min-width: 200rpx;
|
|
174
|
+
text-align: center;
|
|
175
|
+
}
|
|
176
|
+
.prism-datetime-picker .today-btn {
|
|
177
|
+
position: absolute;
|
|
178
|
+
right: 0;
|
|
179
|
+
background: var(--prism-primary-light, rgba(52, 120, 246, 0.08));
|
|
180
|
+
color: var(--prism-primary-color, #3478F6);
|
|
181
|
+
font-size: 24rpx;
|
|
182
|
+
font-weight: 500;
|
|
183
|
+
}
|
|
184
|
+
.prism-datetime-picker .calendar-weekdays {
|
|
185
|
+
display: grid;
|
|
186
|
+
grid-template-columns: repeat(7, 1fr);
|
|
187
|
+
margin-bottom: 8rpx;
|
|
188
|
+
}
|
|
189
|
+
.prism-datetime-picker .weekday {
|
|
190
|
+
text-align: center;
|
|
191
|
+
font-size: 26rpx;
|
|
192
|
+
color: var(--prism-text-secondary, #86909C);
|
|
193
|
+
padding: 16rpx 0;
|
|
194
|
+
}
|
|
195
|
+
.prism-datetime-picker .calendar-days {
|
|
196
|
+
display: grid;
|
|
197
|
+
grid-template-columns: repeat(7, 1fr);
|
|
198
|
+
gap: 8rpx;
|
|
199
|
+
position: relative;
|
|
200
|
+
z-index: 1;
|
|
201
|
+
}
|
|
202
|
+
.prism-datetime-picker .calendar-day {
|
|
203
|
+
aspect-ratio: 1;
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
border-radius: 12rpx;
|
|
209
|
+
position: relative;
|
|
210
|
+
}
|
|
211
|
+
.prism-datetime-picker .calendar-day.other-month .day-text {
|
|
212
|
+
color: var(--prism-text-placeholder, #C9CDD4);
|
|
213
|
+
}
|
|
214
|
+
.prism-datetime-picker .calendar-day.today .day-text {
|
|
215
|
+
color: #FF6B00;
|
|
216
|
+
font-weight: 600;
|
|
217
|
+
}
|
|
218
|
+
.prism-datetime-picker .calendar-day.selected {
|
|
219
|
+
background: var(--prism-primary-color, #3478F6);
|
|
220
|
+
}
|
|
221
|
+
.prism-datetime-picker .calendar-day.selected .day-text {
|
|
222
|
+
color: #FFFFFF;
|
|
223
|
+
}
|
|
224
|
+
.prism-datetime-picker .calendar-day.selected .today-label {
|
|
225
|
+
color: rgba(255, 255, 255, 0.8);
|
|
226
|
+
}
|
|
227
|
+
.prism-datetime-picker .calendar-day.today.selected {
|
|
228
|
+
background: var(--prism-primary-color, #3478F6);
|
|
229
|
+
}
|
|
230
|
+
.prism-datetime-picker .calendar-day.today.selected .day-text {
|
|
231
|
+
color: #FFFFFF;
|
|
232
|
+
}
|
|
233
|
+
.prism-datetime-picker .calendar-day.today.selected .today-label {
|
|
234
|
+
color: rgba(255, 255, 255, 0.8);
|
|
235
|
+
}
|
|
236
|
+
.prism-datetime-picker .calendar-day.range-start {
|
|
237
|
+
background: var(--prism-primary-color, #3478F6);
|
|
238
|
+
border-radius: 12rpx 0 0 12rpx;
|
|
239
|
+
}
|
|
240
|
+
.prism-datetime-picker .calendar-day.range-start .day-text, .prism-datetime-picker .calendar-day.range-start .lunar-text {
|
|
241
|
+
color: #FFFFFF;
|
|
242
|
+
}
|
|
243
|
+
.prism-datetime-picker .calendar-day.range-end {
|
|
244
|
+
background: var(--prism-primary-color, #3478F6);
|
|
245
|
+
border-radius: 0 12rpx 12rpx 0;
|
|
246
|
+
}
|
|
247
|
+
.prism-datetime-picker .calendar-day.range-end .day-text, .prism-datetime-picker .calendar-day.range-end .lunar-text {
|
|
248
|
+
color: #FFFFFF;
|
|
249
|
+
}
|
|
250
|
+
.prism-datetime-picker .calendar-day.in-range {
|
|
251
|
+
background: var(--prism-primary-light, rgba(52, 120, 246, 0.1));
|
|
252
|
+
border-radius: 0;
|
|
253
|
+
}
|
|
254
|
+
.prism-datetime-picker .calendar-day.range-start.range-end {
|
|
255
|
+
border-radius: 12rpx;
|
|
256
|
+
}
|
|
257
|
+
.prism-datetime-picker .day-text {
|
|
258
|
+
font-size: 30rpx;
|
|
259
|
+
color: var(--prism-text-primary, #1D2129);
|
|
260
|
+
}
|
|
261
|
+
.prism-datetime-picker .lunar-text {
|
|
262
|
+
font-size: 18rpx;
|
|
263
|
+
color: var(--prism-text-secondary, #86909C);
|
|
264
|
+
margin-top: 4rpx;
|
|
265
|
+
}
|
|
266
|
+
.prism-datetime-picker .today-label {
|
|
267
|
+
font-size: 20rpx;
|
|
268
|
+
color: #FF6B00;
|
|
269
|
+
position: absolute;
|
|
270
|
+
bottom: 6rpx;
|
|
271
|
+
}
|
|
272
|
+
.dark-mode.prism-datetime-picker .picker-content {
|
|
273
|
+
background: var(--prism-bg-color-card, #1A1A1A);
|
|
274
|
+
}
|
|
275
|
+
.dark-mode.prism-datetime-picker .picker-item {
|
|
276
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
277
|
+
}
|
|
278
|
+
.dark-mode.prism-datetime-picker .picker-indicator {
|
|
279
|
+
background: transparent !important;
|
|
280
|
+
background-color: transparent !important;
|
|
281
|
+
border: none !important;
|
|
282
|
+
border-width: 0 !important;
|
|
283
|
+
border-style: none !important;
|
|
284
|
+
border-color: transparent !important;
|
|
285
|
+
}
|
|
286
|
+
.dark-mode.prism-datetime-picker .uni-picker-view-indicator {
|
|
287
|
+
background: transparent !important;
|
|
288
|
+
border: none !important;
|
|
289
|
+
border-width: 0 !important;
|
|
290
|
+
border-color: transparent !important;
|
|
291
|
+
}
|
|
292
|
+
.dark-mode.prism-datetime-picker .uni-picker-view-indicator::before,
|
|
293
|
+
.dark-mode.prism-datetime-picker .uni-picker-view-indicator::after {
|
|
294
|
+
display: none !important;
|
|
295
|
+
border: none !important;
|
|
296
|
+
}
|
|
297
|
+
.dark-mode.prism-datetime-picker picker-view-column::before,
|
|
298
|
+
.dark-mode.prism-datetime-picker picker-view-column::after {
|
|
299
|
+
display: none !important;
|
|
300
|
+
}
|
|
301
|
+
.dark-mode.prism-datetime-picker picker-view {
|
|
302
|
+
--picker-mask-bg: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.6));
|
|
303
|
+
}
|
|
304
|
+
.dark-mode.prism-datetime-picker .uni-picker-view-mask {
|
|
305
|
+
background-image: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.6)), linear-gradient(0deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.6)) !important;
|
|
306
|
+
}
|
|
307
|
+
.dark-mode.prism-datetime-picker .nav-btn:active {
|
|
308
|
+
background: var(--prism-bg-color-container, #2A2A2A);
|
|
309
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const common_vendor = require("../../common/vendor.js");
|
|
3
|
+
const _sfc_main = {
|
|
4
|
+
__name: "PrismDropdown",
|
|
5
|
+
props: {
|
|
6
|
+
menus: {
|
|
7
|
+
type: Array,
|
|
8
|
+
required: true
|
|
9
|
+
// 格式: [{ title: '排序', value: '综合排序', options: ['综合排序', '销量优先'] }]
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: ["change"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const activeIndex = common_vendor.ref(-1);
|
|
17
|
+
const menuList = common_vendor.ref([...props.menus]);
|
|
18
|
+
common_vendor.watch(() => props.menus, (val) => {
|
|
19
|
+
menuList.value = [...val];
|
|
20
|
+
}, { deep: true });
|
|
21
|
+
function toggleDropdown(index) {
|
|
22
|
+
activeIndex.value = activeIndex.value === index ? -1 : index;
|
|
23
|
+
}
|
|
24
|
+
function closeDropdown() {
|
|
25
|
+
activeIndex.value = -1;
|
|
26
|
+
}
|
|
27
|
+
function selectOption(index, opt) {
|
|
28
|
+
menuList.value[index].value = opt;
|
|
29
|
+
activeIndex.value = -1;
|
|
30
|
+
emit("change", { index, value: opt, menu: menuList.value[index] });
|
|
31
|
+
}
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return {
|
|
34
|
+
a: common_vendor.f(menuList.value, (item, index, i0) => {
|
|
35
|
+
return {
|
|
36
|
+
a: common_vendor.t(item.value),
|
|
37
|
+
b: index,
|
|
38
|
+
c: activeIndex.value === index ? 1 : "",
|
|
39
|
+
d: common_vendor.o(($event) => toggleDropdown(index), index)
|
|
40
|
+
};
|
|
41
|
+
}),
|
|
42
|
+
b: common_vendor.f(menuList.value, (item, index, i0) => {
|
|
43
|
+
return {
|
|
44
|
+
a: common_vendor.f(item.options, (opt, k1, i1) => {
|
|
45
|
+
return {
|
|
46
|
+
a: common_vendor.t(opt),
|
|
47
|
+
b: opt,
|
|
48
|
+
c: item.value === opt ? 1 : "",
|
|
49
|
+
d: common_vendor.o(($event) => selectOption(index, opt), opt)
|
|
50
|
+
};
|
|
51
|
+
}),
|
|
52
|
+
b: "popup-" + index,
|
|
53
|
+
c: activeIndex.value === index ? 1 : ""
|
|
54
|
+
};
|
|
55
|
+
}),
|
|
56
|
+
c: activeIndex.value >= 0 ? 1 : "",
|
|
57
|
+
d: common_vendor.o(closeDropdown)
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
wx.createComponent(_sfc_main);
|
|
63
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismDropdown/PrismDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="prism-dropdown"><view class="prism-dropdown__bar"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="{{['prism-dropdown__item', item.c && 'prism-dropdown__item--active']}}" bindtap="{{item.d}}"><text>{{item.a}}</text><text class="prism-dropdown__arrow fa fa-chevron-down"></text></view></view><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="{{['prism-dropdown__popup', item.c && 'prism-dropdown__popup--show']}}"><view wx:for="{{item.a}}" wx:for-item="opt" wx:key="b" class="{{['prism-dropdown__option', opt.c && 'prism-dropdown__option--selected']}}" bindtap="{{opt.d}}"><text>{{opt.a}}</text><text class="prism-dropdown__check fa fa-check"></text></view></view><view class="{{['prism-dropdown__mask', c && 'prism-dropdown__mask--show']}}" bindtap="{{d}}"></view></view>
|
|
File without changes
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const common_vendor = require("../../common/vendor.js");
|
|
3
|
+
const _sfc_main = {
|
|
4
|
+
__name: "PrismGroupSticky",
|
|
5
|
+
props: {
|
|
6
|
+
// 索引列表
|
|
7
|
+
indexList: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: () => []
|
|
10
|
+
},
|
|
11
|
+
// 是否显示索引条
|
|
12
|
+
showIndexBar: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
// 容器高度
|
|
17
|
+
height: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "100%"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["index-change"],
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const instance = common_vendor.getCurrentInstance();
|
|
27
|
+
const currentIndex = common_vendor.ref("");
|
|
28
|
+
const showIndicator = common_vendor.ref(false);
|
|
29
|
+
const indicatorTop = common_vendor.ref(0);
|
|
30
|
+
const scrollTop = common_vendor.ref(0);
|
|
31
|
+
let indexBarRect = null;
|
|
32
|
+
let groupPositions = {};
|
|
33
|
+
const getLetterByTouch = (touchY) => {
|
|
34
|
+
if (!indexBarRect || !props.indexList.length) return "";
|
|
35
|
+
const itemHeight = indexBarRect.height / props.indexList.length;
|
|
36
|
+
const relativeY = touchY - indexBarRect.top;
|
|
37
|
+
const index = Math.floor(relativeY / itemHeight);
|
|
38
|
+
if (index < 0) return props.indexList[0];
|
|
39
|
+
if (index >= props.indexList.length) return props.indexList[props.indexList.length - 1];
|
|
40
|
+
return props.indexList[index];
|
|
41
|
+
};
|
|
42
|
+
const calculateGroupPositions = () => {
|
|
43
|
+
groupPositions = {};
|
|
44
|
+
props.indexList.forEach((letter) => {
|
|
45
|
+
const el = document.getElementById(`group-${letter}`);
|
|
46
|
+
if (el) {
|
|
47
|
+
groupPositions[letter] = el.offsetTop;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const scrollToLetter = (letter) => {
|
|
52
|
+
if (!groupPositions[letter]) {
|
|
53
|
+
calculateGroupPositions();
|
|
54
|
+
}
|
|
55
|
+
const targetTop = groupPositions[letter];
|
|
56
|
+
if (targetTop !== void 0) {
|
|
57
|
+
scrollTop.value = targetTop + 0.1;
|
|
58
|
+
common_vendor.nextTick$1(() => {
|
|
59
|
+
scrollTop.value = targetTop;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const onScroll = (e) => {
|
|
64
|
+
e.detail.scrollTop;
|
|
65
|
+
};
|
|
66
|
+
const updateLetter = (touchY) => {
|
|
67
|
+
indicatorTop.value = touchY;
|
|
68
|
+
const letter = getLetterByTouch(touchY);
|
|
69
|
+
if (letter) {
|
|
70
|
+
currentIndex.value = letter;
|
|
71
|
+
scrollToLetter(letter);
|
|
72
|
+
emit("index-change", letter);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const onIndexTouchStart = (e) => {
|
|
76
|
+
showIndicator.value = true;
|
|
77
|
+
const touchY = e.touches[0].clientY;
|
|
78
|
+
indicatorTop.value = touchY;
|
|
79
|
+
common_vendor.index.createSelectorQuery().in(instance).select(".prism-index-bar").boundingClientRect((rect) => {
|
|
80
|
+
if (rect) {
|
|
81
|
+
indexBarRect = rect;
|
|
82
|
+
const letter = getLetterByTouch(touchY);
|
|
83
|
+
if (letter) {
|
|
84
|
+
currentIndex.value = letter;
|
|
85
|
+
scrollToLetter(letter);
|
|
86
|
+
emit("index-change", letter);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}).exec();
|
|
90
|
+
};
|
|
91
|
+
const onIndexTouchMove = (e) => {
|
|
92
|
+
const touchY = e.touches[0].clientY;
|
|
93
|
+
if (indexBarRect) {
|
|
94
|
+
updateLetter(touchY);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const onIndexTouchEnd = () => {
|
|
98
|
+
showIndicator.value = false;
|
|
99
|
+
};
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return common_vendor.e({
|
|
102
|
+
a: scrollTop.value,
|
|
103
|
+
b: common_vendor.o(onScroll),
|
|
104
|
+
c: __props.showIndexBar && __props.indexList.length
|
|
105
|
+
}, __props.showIndexBar && __props.indexList.length ? {
|
|
106
|
+
d: common_vendor.f(__props.indexList, (item, k0, i0) => {
|
|
107
|
+
return {
|
|
108
|
+
a: common_vendor.t(item),
|
|
109
|
+
b: item,
|
|
110
|
+
c: currentIndex.value === item ? 1 : ""
|
|
111
|
+
};
|
|
112
|
+
}),
|
|
113
|
+
e: common_vendor.o(onIndexTouchStart),
|
|
114
|
+
f: common_vendor.o(onIndexTouchMove),
|
|
115
|
+
g: common_vendor.o(onIndexTouchEnd)
|
|
116
|
+
} : {}, {
|
|
117
|
+
h: showIndicator.value
|
|
118
|
+
}, showIndicator.value ? {
|
|
119
|
+
i: common_vendor.t(currentIndex.value),
|
|
120
|
+
j: indicatorTop.value + "px"
|
|
121
|
+
} : {}, {
|
|
122
|
+
k: __props.height
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
wx.createComponent(_sfc_main);
|
|
128
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismGroupSticky/PrismGroupSticky.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="prism-group-sticky-wrapper" style="{{'height:' + k}}"><scroll-view class="prism-group-sticky" scroll-y scroll-top="{{a}}" enhanced="{{true}}" show-scrollbar="{{false}}" style="height:100%" bindscroll="{{b}}"><slot></slot></scroll-view><view wx:if="{{c}}" class="prism-index-bar" bindtouchstart="{{e}}" catchtouchmove="{{f}}" bindtouchend="{{g}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="b" class="{{['index-item', item.c && 'active']}}">{{item.a}}</view></view><view wx:if="{{h}}" class="index-indicator" style="{{'top:' + j}}">{{i}}</view></view>
|