@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 @@
|
|
|
1
|
+
<view class="{{['prism-secure-input', p && 'dark-mode']}}"><view class="password-boxes" bindtap="{{b}}"><view wx:for="{{a}}" wx:for-item="i" wx:key="c" class="{{['password-box', i.d && 'active', i.e && 'filled']}}"><view wx:if="{{i.a}}" class="password-dot"></view><view wx:if="{{i.b}}" class="cursor"></view></view></view><view wx:if="{{c}}" class="keyboard-modal" bindtap="{{o}}"><view class="keyboard-content" catchtap="{{n}}"><view class="keyboard-header"><text class="keyboard-title">{{d}}</text><text class="keyboard-done" bindtap="{{e}}">完成</text></view><view class="{{['number-keyboard', m && 'random']}}"><view class="keyboard-row"><view wx:for="{{f}}" wx:for-item="n" wx:key="b" class="key-btn" bindtap="{{n.c}}"><text class="key-text">{{n.a}}</text></view></view><view class="keyboard-row"><view wx:for="{{g}}" wx:for-item="n" wx:key="b" class="key-btn" bindtap="{{n.c}}"><text class="key-text">{{n.a}}</text></view></view><view class="keyboard-row"><view wx:for="{{h}}" wx:for-item="n" wx:key="b" class="key-btn" bindtap="{{n.c}}"><text class="key-text">{{n.a}}</text></view></view><view class="keyboard-row"><view class="key-btn func" bindtap="{{i}}"><text class="key-text">清空</text></view><view class="key-btn" bindtap="{{k}}"><text class="key-text">{{j}}</text></view><view class="key-btn delete" bindtap="{{l}}"><text class="delete-text">删除</text></view></view></view></view></view></view>
|
|
@@ -0,0 +1,215 @@
|
|
|
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-secure-input .password-boxes {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
gap: 16rpx;
|
|
55
|
+
}
|
|
56
|
+
.prism-secure-input .password-box {
|
|
57
|
+
width: 76rpx;
|
|
58
|
+
height: 88rpx;
|
|
59
|
+
background: var(--prism-input-bg, #EBEEF2);
|
|
60
|
+
border-radius: 12rpx;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
border: 2rpx solid transparent;
|
|
65
|
+
transition: all 0.2s ease;
|
|
66
|
+
position: relative;
|
|
67
|
+
}
|
|
68
|
+
.prism-secure-input .password-box.active {
|
|
69
|
+
border-color: var(--prism-primary-color, #3478F6);
|
|
70
|
+
background: rgba(52, 120, 246, 0.08);
|
|
71
|
+
}
|
|
72
|
+
.prism-secure-input .password-box.filled {
|
|
73
|
+
background: rgba(52, 120, 246, 0.08);
|
|
74
|
+
}
|
|
75
|
+
.prism-secure-input .password-box .password-dot {
|
|
76
|
+
width: 24rpx;
|
|
77
|
+
height: 24rpx;
|
|
78
|
+
background: var(--prism-text-primary, #1D2129);
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
}
|
|
81
|
+
.prism-secure-input .password-box .cursor {
|
|
82
|
+
width: 4rpx;
|
|
83
|
+
height: 40rpx;
|
|
84
|
+
background: var(--prism-primary-color, #3478F6);
|
|
85
|
+
animation: blink 1s infinite;
|
|
86
|
+
}
|
|
87
|
+
.prism-secure-input .keyboard-modal {
|
|
88
|
+
position: fixed;
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
right: 0;
|
|
92
|
+
bottom: 0;
|
|
93
|
+
background: var(--prism-mask-bg, rgba(0, 0, 0, 0.5));
|
|
94
|
+
z-index: 9999;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: flex-end;
|
|
97
|
+
}
|
|
98
|
+
.prism-secure-input .keyboard-content {
|
|
99
|
+
width: 100%;
|
|
100
|
+
background: var(--prism-bg-color, #F7F8FA);
|
|
101
|
+
border-radius: 24rpx 24rpx 0 0;
|
|
102
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
103
|
+
}
|
|
104
|
+
.prism-secure-input .keyboard-header {
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
align-items: center;
|
|
108
|
+
padding: 24rpx 32rpx;
|
|
109
|
+
background: var(--prism-bg-color-card, #FFFFFF);
|
|
110
|
+
border-radius: 24rpx 24rpx 0 0;
|
|
111
|
+
}
|
|
112
|
+
.prism-secure-input .keyboard-header .keyboard-title {
|
|
113
|
+
font-size: 32rpx;
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
color: var(--prism-text-primary, #1D2129);
|
|
116
|
+
}
|
|
117
|
+
.prism-secure-input .keyboard-header .keyboard-done {
|
|
118
|
+
font-size: 30rpx;
|
|
119
|
+
color: var(--prism-primary-color, #3478F6);
|
|
120
|
+
font-weight: 500;
|
|
121
|
+
}
|
|
122
|
+
.prism-secure-input .number-keyboard {
|
|
123
|
+
padding: 16rpx;
|
|
124
|
+
}
|
|
125
|
+
.prism-secure-input .keyboard-row {
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: 12rpx;
|
|
128
|
+
margin-bottom: 12rpx;
|
|
129
|
+
}
|
|
130
|
+
.prism-secure-input .keyboard-row:last-child {
|
|
131
|
+
margin-bottom: 0;
|
|
132
|
+
}
|
|
133
|
+
.prism-secure-input .key-btn {
|
|
134
|
+
flex: 1;
|
|
135
|
+
height: 100rpx;
|
|
136
|
+
background: var(--prism-bg-color-card, #FFFFFF);
|
|
137
|
+
border-radius: 12rpx;
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
transition: all 0.15s ease;
|
|
142
|
+
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.05);
|
|
143
|
+
}
|
|
144
|
+
.prism-secure-input .key-btn:active {
|
|
145
|
+
background: var(--prism-primary-color, #3478F6);
|
|
146
|
+
transform: scale(0.98);
|
|
147
|
+
}
|
|
148
|
+
.prism-secure-input .key-btn:active .key-text, .prism-secure-input .key-btn:active .fa {
|
|
149
|
+
color: #FFFFFF;
|
|
150
|
+
}
|
|
151
|
+
.prism-secure-input .key-btn .key-text {
|
|
152
|
+
font-size: 44rpx;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
color: var(--prism-text-primary, #1D2129);
|
|
155
|
+
}
|
|
156
|
+
.prism-secure-input .key-btn .fa {
|
|
157
|
+
font-size: 40rpx;
|
|
158
|
+
color: var(--prism-text-primary, #1D2129);
|
|
159
|
+
}
|
|
160
|
+
.prism-secure-input .key-btn.func {
|
|
161
|
+
background: var(--prism-bg-color, #E8E8E8);
|
|
162
|
+
}
|
|
163
|
+
.prism-secure-input .key-btn.func .key-text {
|
|
164
|
+
font-size: 28rpx;
|
|
165
|
+
color: var(--prism-text-secondary, #86909C);
|
|
166
|
+
}
|
|
167
|
+
.prism-secure-input .key-btn.delete {
|
|
168
|
+
background: var(--prism-bg-color, #E8E8E8);
|
|
169
|
+
}
|
|
170
|
+
.prism-secure-input .key-btn.delete .delete-text {
|
|
171
|
+
font-size: 28rpx;
|
|
172
|
+
font-weight: 500;
|
|
173
|
+
color: var(--prism-danger-color, #F53F3F);
|
|
174
|
+
}
|
|
175
|
+
@keyframes blink {
|
|
176
|
+
0%, 50% {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
}
|
|
179
|
+
51%, 100% {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
.dark-mode .prism-secure-input .password-box {
|
|
184
|
+
background: var(--prism-input-bg, #2A2A2A);
|
|
185
|
+
}
|
|
186
|
+
.dark-mode .prism-secure-input .password-box.active {
|
|
187
|
+
background: rgba(52, 120, 246, 0.15);
|
|
188
|
+
}
|
|
189
|
+
.dark-mode .prism-secure-input .password-box.filled {
|
|
190
|
+
background: rgba(52, 120, 246, 0.15);
|
|
191
|
+
}
|
|
192
|
+
.dark-mode .prism-secure-input .password-box .password-dot {
|
|
193
|
+
background: var(--prism-text-primary, #E5E6EB);
|
|
194
|
+
}
|
|
195
|
+
.dark-mode .prism-secure-input .keyboard-content {
|
|
196
|
+
background: var(--prism-bg-color, #1A1A1A);
|
|
197
|
+
}
|
|
198
|
+
.dark-mode .prism-secure-input .keyboard-header {
|
|
199
|
+
background: var(--prism-bg-color-card, #242424);
|
|
200
|
+
}
|
|
201
|
+
.dark-mode .prism-secure-input .keyboard-header .keyboard-title {
|
|
202
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
203
|
+
}
|
|
204
|
+
.dark-mode .prism-secure-input .key-btn {
|
|
205
|
+
background: var(--prism-bg-color-card, #242424);
|
|
206
|
+
}
|
|
207
|
+
.dark-mode .prism-secure-input .key-btn .key-text {
|
|
208
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
209
|
+
}
|
|
210
|
+
.dark-mode .prism-secure-input .key-btn .fa {
|
|
211
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
212
|
+
}
|
|
213
|
+
.dark-mode .prism-secure-input .key-btn.func, .dark-mode .prism-secure-input .key-btn.delete {
|
|
214
|
+
background: rgba(255, 255, 255, 0.1);
|
|
215
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const common_vendor = require("../../common/vendor.js");
|
|
3
|
+
const _sfc_main = {
|
|
4
|
+
__name: "PrismSticky",
|
|
5
|
+
props: {
|
|
6
|
+
// 吸顶时距离顶部的距离(rpx)
|
|
7
|
+
offsetTop: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: 0
|
|
10
|
+
},
|
|
11
|
+
// 自定义导航栏高度(px)
|
|
12
|
+
navHeight: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 0
|
|
15
|
+
},
|
|
16
|
+
// 是否开启吸顶
|
|
17
|
+
enabled: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
},
|
|
21
|
+
// 背景颜色
|
|
22
|
+
bgColor: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
// z-index
|
|
27
|
+
zIndex: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 100
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["fixed", "unfixed"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const instance = common_vendor.getCurrentInstance();
|
|
37
|
+
const elClass = common_vendor.ref("prism-sticky-" + Math.random().toString(36).slice(2, 10));
|
|
38
|
+
const fixed = common_vendor.ref(false);
|
|
39
|
+
const height = common_vendor.ref("auto");
|
|
40
|
+
const width = common_vendor.ref("auto");
|
|
41
|
+
const left = common_vendor.ref(0);
|
|
42
|
+
const stickyTop = common_vendor.ref(0);
|
|
43
|
+
let observer = null;
|
|
44
|
+
const wrapStyle = common_vendor.computed(() => ({
|
|
45
|
+
height: fixed.value ? height.value + "px" : "auto",
|
|
46
|
+
zIndex: props.zIndex
|
|
47
|
+
}));
|
|
48
|
+
function initObserver() {
|
|
49
|
+
if (!props.enabled) return;
|
|
50
|
+
stickyTop.value = props.navHeight + (props.offsetTop ? common_vendor.index.upx2px(props.offsetTop) : 0);
|
|
51
|
+
disconnectObserver();
|
|
52
|
+
const query = common_vendor.index.createSelectorQuery().in(instance.proxy);
|
|
53
|
+
query.select("." + elClass.value).boundingClientRect((res) => {
|
|
54
|
+
if (res) {
|
|
55
|
+
height.value = res.height;
|
|
56
|
+
left.value = res.left;
|
|
57
|
+
width.value = res.width;
|
|
58
|
+
connectObserver();
|
|
59
|
+
}
|
|
60
|
+
}).exec();
|
|
61
|
+
}
|
|
62
|
+
function connectObserver() {
|
|
63
|
+
disconnectObserver();
|
|
64
|
+
observer = common_vendor.index.createIntersectionObserver(instance.proxy, {
|
|
65
|
+
thresholds: [0.95, 0.98, 1]
|
|
66
|
+
});
|
|
67
|
+
observer.relativeToViewport({
|
|
68
|
+
top: -stickyTop.value
|
|
69
|
+
});
|
|
70
|
+
observer.observe("." + elClass.value, (res) => {
|
|
71
|
+
if (!props.enabled) return;
|
|
72
|
+
setFixed(res.boundingClientRect.top);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function setFixed(top) {
|
|
76
|
+
const isFixed = top < stickyTop.value;
|
|
77
|
+
if (isFixed && !fixed.value) {
|
|
78
|
+
emit("fixed");
|
|
79
|
+
} else if (!isFixed && fixed.value) {
|
|
80
|
+
emit("unfixed");
|
|
81
|
+
}
|
|
82
|
+
fixed.value = isFixed;
|
|
83
|
+
}
|
|
84
|
+
function disconnectObserver() {
|
|
85
|
+
if (observer) {
|
|
86
|
+
observer.disconnect();
|
|
87
|
+
observer = null;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
common_vendor.watch(() => props.offsetTop, () => initObserver());
|
|
91
|
+
common_vendor.watch(() => props.navHeight, () => initObserver());
|
|
92
|
+
common_vendor.watch(() => props.enabled, (val) => {
|
|
93
|
+
if (!val) {
|
|
94
|
+
fixed.value = false;
|
|
95
|
+
disconnectObserver();
|
|
96
|
+
} else {
|
|
97
|
+
initObserver();
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
common_vendor.onMounted(() => {
|
|
101
|
+
setTimeout(() => {
|
|
102
|
+
initObserver();
|
|
103
|
+
}, 50);
|
|
104
|
+
});
|
|
105
|
+
return (_ctx, _cache) => {
|
|
106
|
+
return {
|
|
107
|
+
a: fixed.value ? "fixed" : "static",
|
|
108
|
+
b: stickyTop.value + "px",
|
|
109
|
+
c: left.value + "px",
|
|
110
|
+
d: width.value === "auto" ? "auto" : width.value + "px",
|
|
111
|
+
e: __props.zIndex,
|
|
112
|
+
f: __props.bgColor,
|
|
113
|
+
g: common_vendor.n(elClass.value),
|
|
114
|
+
h: common_vendor.s(wrapStyle.value)
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
wx.createComponent(_sfc_main);
|
|
120
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismSticky/PrismSticky.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="prism-sticky"><view class="{{['prism-sticky__wrap', g]}}" style="{{h}}"><view class="prism-sticky__content" style="{{'position:' + a + ';' + ('top:' + b) + ';' + ('left:' + c) + ';' + ('width:' + d) + ';' + ('z-index:' + e) + ';' + ('background:' + f)}}"><slot></slot></view></view></view>
|
|
@@ -0,0 +1,62 @@
|
|
|
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-sticky {
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
.prism-sticky__wrap {
|
|
55
|
+
position: relative;
|
|
56
|
+
}
|
|
57
|
+
.prism-sticky__content {
|
|
58
|
+
background: var(--prism-bg-color-card, #FFFFFF);
|
|
59
|
+
}
|
|
60
|
+
.dark-mode .prism-sticky__content {
|
|
61
|
+
background: var(--prism-bg-color-card, #242424);
|
|
62
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const common_vendor = require("../../common/vendor.js");
|
|
3
|
+
const _sfc_main = {
|
|
4
|
+
__name: "PrismSwiper",
|
|
5
|
+
props: {
|
|
6
|
+
list: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default: () => []
|
|
9
|
+
},
|
|
10
|
+
height: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "300rpx"
|
|
13
|
+
},
|
|
14
|
+
displayMode: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "normal",
|
|
17
|
+
// 'normal' | 'preview'
|
|
18
|
+
validator: (value) => ["normal", "preview"].includes(value)
|
|
19
|
+
},
|
|
20
|
+
previousMargin: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "60rpx"
|
|
23
|
+
},
|
|
24
|
+
nextMargin: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "60rpx"
|
|
27
|
+
},
|
|
28
|
+
indicatorType: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "dots",
|
|
31
|
+
// 'dots' | 'number' | 'thumbnails' | 'accordion'
|
|
32
|
+
validator: (value) => ["dots", "number", "thumbnails", "accordion"].includes(value)
|
|
33
|
+
},
|
|
34
|
+
autoplay: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
38
|
+
circular: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
interval: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 3e3
|
|
45
|
+
},
|
|
46
|
+
duration: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 500
|
|
49
|
+
},
|
|
50
|
+
radius: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "16rpx"
|
|
53
|
+
},
|
|
54
|
+
isDarkMode: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
emits: ["change", "click"],
|
|
60
|
+
setup(__props, { emit: __emit }) {
|
|
61
|
+
const props = __props;
|
|
62
|
+
const emit = __emit;
|
|
63
|
+
const currentIndex = common_vendor.ref(0);
|
|
64
|
+
function itemStyle(item) {
|
|
65
|
+
return {
|
|
66
|
+
borderRadius: props.radius
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function onChange(e) {
|
|
70
|
+
currentIndex.value = e.detail.current;
|
|
71
|
+
emit("change", e.detail.current);
|
|
72
|
+
}
|
|
73
|
+
function onItemClick(item, index) {
|
|
74
|
+
emit("click", { item, index });
|
|
75
|
+
}
|
|
76
|
+
function goToSlide(index) {
|
|
77
|
+
currentIndex.value = index;
|
|
78
|
+
}
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return common_vendor.e({
|
|
81
|
+
a: common_vendor.f(__props.list, (item, index, i0) => {
|
|
82
|
+
return common_vendor.e({
|
|
83
|
+
a: item.image
|
|
84
|
+
}, item.image ? {
|
|
85
|
+
b: item.image
|
|
86
|
+
} : item.color ? common_vendor.e({
|
|
87
|
+
d: item.text
|
|
88
|
+
}, item.text ? {
|
|
89
|
+
e: common_vendor.t(item.text)
|
|
90
|
+
} : {}, {
|
|
91
|
+
f: item.color
|
|
92
|
+
}) : {
|
|
93
|
+
g: "d-" + i0,
|
|
94
|
+
h: common_vendor.r("d", {
|
|
95
|
+
item,
|
|
96
|
+
index
|
|
97
|
+
}, i0)
|
|
98
|
+
}, {
|
|
99
|
+
c: item.color,
|
|
100
|
+
i: __props.displayMode === "preview" && currentIndex.value === index ? 1 : "",
|
|
101
|
+
j: common_vendor.s(itemStyle()),
|
|
102
|
+
k: common_vendor.o(($event) => onItemClick(item, index), index),
|
|
103
|
+
l: index
|
|
104
|
+
});
|
|
105
|
+
}),
|
|
106
|
+
b: __props.displayMode === "preview" ? 1 : "",
|
|
107
|
+
c: __props.displayMode === "preview" ? 1 : "",
|
|
108
|
+
d: __props.height,
|
|
109
|
+
e: __props.autoplay,
|
|
110
|
+
f: __props.circular,
|
|
111
|
+
g: __props.interval,
|
|
112
|
+
h: __props.duration,
|
|
113
|
+
i: currentIndex.value,
|
|
114
|
+
j: __props.displayMode === "preview" ? __props.previousMargin : "0",
|
|
115
|
+
k: __props.displayMode === "preview" ? __props.nextMargin : "0",
|
|
116
|
+
l: common_vendor.o(onChange),
|
|
117
|
+
m: __props.indicatorType === "dots"
|
|
118
|
+
}, __props.indicatorType === "dots" ? {
|
|
119
|
+
n: common_vendor.f(__props.list, (item, index, i0) => {
|
|
120
|
+
return {
|
|
121
|
+
a: index,
|
|
122
|
+
b: currentIndex.value === index ? 1 : "",
|
|
123
|
+
c: common_vendor.o(($event) => goToSlide(index), index)
|
|
124
|
+
};
|
|
125
|
+
})
|
|
126
|
+
} : __props.indicatorType === "number" ? {
|
|
127
|
+
p: common_vendor.t(currentIndex.value + 1),
|
|
128
|
+
q: common_vendor.t(__props.list.length)
|
|
129
|
+
} : __props.indicatorType === "thumbnails" ? {
|
|
130
|
+
s: common_vendor.f(__props.list, (item, index, i0) => {
|
|
131
|
+
return common_vendor.e({
|
|
132
|
+
a: item.image
|
|
133
|
+
}, item.image ? {
|
|
134
|
+
b: item.image
|
|
135
|
+
} : {
|
|
136
|
+
c: item.color || "#ccc"
|
|
137
|
+
}, {
|
|
138
|
+
d: index,
|
|
139
|
+
e: currentIndex.value === index ? 1 : "",
|
|
140
|
+
f: common_vendor.o(($event) => goToSlide(index), index)
|
|
141
|
+
});
|
|
142
|
+
})
|
|
143
|
+
} : __props.indicatorType === "accordion" ? {
|
|
144
|
+
v: common_vendor.f(__props.list, (item, index, i0) => {
|
|
145
|
+
return {
|
|
146
|
+
a: index,
|
|
147
|
+
b: currentIndex.value === index ? 1 : "",
|
|
148
|
+
c: common_vendor.o(($event) => goToSlide(index), index)
|
|
149
|
+
};
|
|
150
|
+
})
|
|
151
|
+
} : {}, {
|
|
152
|
+
o: __props.indicatorType === "number",
|
|
153
|
+
r: __props.indicatorType === "thumbnails",
|
|
154
|
+
t: __props.indicatorType === "accordion",
|
|
155
|
+
w: __props.isDarkMode ? 1 : "",
|
|
156
|
+
x: __props.displayMode === "preview" ? 1 : ""
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4c274c8b"]]);
|
|
162
|
+
wx.createComponent(Component);
|
|
163
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismSwiper/PrismSwiper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="{{['prism-swiper', 'data-v-4c274c8b', w && 'dark-mode', x && 'prism-swiper--preview']}}"><swiper class="{{['prism-swiper__container', 'data-v-4c274c8b', c && 'prism-swiper__container--preview']}}" style="{{'height:' + d}}" indicator-dots="{{false}}" autoplay="{{e}}" circular="{{f}}" interval="{{g}}" duration="{{h}}" current="{{i}}" previous-margin="{{j}}" next-margin="{{k}}" bindchange="{{l}}"><swiper-item wx:for="{{a}}" wx:for-item="item" wx:key="l" class="data-v-4c274c8b"><view class="{{['prism-swiper__item', 'data-v-4c274c8b', b && 'prism-swiper__item--preview', item.i && 'prism-swiper__item--active']}}" style="{{item.j}}" bindtap="{{item.k}}"><image wx:if="{{item.a}}" class="prism-swiper__image data-v-4c274c8b" src="{{item.b}}" mode="aspectFill"/><view wx:elif="{{item.c}}" class="prism-swiper__color data-v-4c274c8b" style="{{'background:' + item.f}}"><text wx:if="{{item.d}}" class="prism-swiper__text data-v-4c274c8b">{{item.e}}</text></view><slot wx:else name="{{item.g}}"></slot></view></swiper-item></swiper><view wx:if="{{m}}" class="prism-swiper__dots data-v-4c274c8b"><view wx:for="{{n}}" wx:for-item="item" wx:key="a" class="{{['prism-swiper__dot', 'data-v-4c274c8b', item.b && 'prism-swiper__dot--active']}}" bindtap="{{item.c}}"></view></view><view wx:elif="{{o}}" class="prism-swiper__number data-v-4c274c8b"><text class="data-v-4c274c8b">{{p}}</text><text class="prism-swiper__number-divider data-v-4c274c8b">/</text><text class="data-v-4c274c8b">{{q}}</text></view><view wx:elif="{{r}}" class="prism-swiper__thumbnails data-v-4c274c8b"><view wx:for="{{s}}" wx:for-item="item" wx:key="d" class="{{['prism-swiper__thumbnail', 'data-v-4c274c8b', item.e && 'prism-swiper__thumbnail--active']}}" bindtap="{{item.f}}"><image wx:if="{{item.a}}" class="prism-swiper__thumbnail-image data-v-4c274c8b" src="{{item.b}}" mode="aspectFill"/><view wx:else class="prism-swiper__thumbnail-color data-v-4c274c8b" style="{{'background:' + item.c}}"></view></view></view><view wx:elif="{{t}}" class="prism-swiper__accordion data-v-4c274c8b"><view wx:for="{{v}}" wx:for-item="item" wx:key="a" class="{{['prism-swiper__accordion-item', 'data-v-4c274c8b', item.b && 'prism-swiper__accordion-item--active']}}" bindtap="{{item.c}}"><view class="prism-swiper__accordion-bar data-v-4c274c8b"></view></view></view></view>
|