@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,191 @@
|
|
|
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-group-sticky-wrapper {
|
|
52
|
+
position: relative;
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
55
|
+
.prism-group-sticky {
|
|
56
|
+
height: 100%;
|
|
57
|
+
}
|
|
58
|
+
.prism-group-sticky .uni-scroll-view-content {
|
|
59
|
+
height: auto !important;
|
|
60
|
+
}
|
|
61
|
+
.prism-group-sticky .group-index {
|
|
62
|
+
position: sticky;
|
|
63
|
+
top: -1px;
|
|
64
|
+
z-index: 10;
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 12rpx 24rpx;
|
|
67
|
+
padding-top: calc(12rpx + 1px);
|
|
68
|
+
font-size: 26rpx;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
color: var(--prism-primary-color, #3478F6);
|
|
71
|
+
background: var(--prism-bg-color-page, #F7F8FA);
|
|
72
|
+
}
|
|
73
|
+
.dark-mode .prism-group-sticky .group-index {
|
|
74
|
+
background: var(--prism-bg-color-page, #121212);
|
|
75
|
+
}
|
|
76
|
+
.prism-group-sticky .group-item {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
min-height: 88rpx;
|
|
80
|
+
padding: 24rpx 32rpx;
|
|
81
|
+
background: var(--prism-bg-color-card, #FFFFFF);
|
|
82
|
+
border-bottom: 1rpx solid var(--prism-border-color-light, #F2F3F5);
|
|
83
|
+
font-size: 28rpx;
|
|
84
|
+
color: var(--prism-text-primary, #1D2129);
|
|
85
|
+
}
|
|
86
|
+
.dark-mode .prism-group-sticky .group-item {
|
|
87
|
+
background: var(--prism-bg-color-card, #242424);
|
|
88
|
+
border-bottom-color: var(--prism-border-color-light, #2D2D2D);
|
|
89
|
+
}
|
|
90
|
+
.prism-group-sticky .group-item:has(+ .group-index),
|
|
91
|
+
.prism-group-sticky .group-item:last-child {
|
|
92
|
+
border-radius: 0 0 16rpx 16rpx;
|
|
93
|
+
border-bottom: none;
|
|
94
|
+
}
|
|
95
|
+
.prism-group-sticky .group-item:active {
|
|
96
|
+
background: var(--prism-bg-color, #F2F2F2);
|
|
97
|
+
}
|
|
98
|
+
.dark-mode .prism-group-sticky .group-item:active {
|
|
99
|
+
background: var(--prism-bg-color, #1A1A1A);
|
|
100
|
+
}
|
|
101
|
+
.prism-group-sticky .group-index + .group-item {
|
|
102
|
+
border-radius: 16rpx 16rpx 0 0;
|
|
103
|
+
}
|
|
104
|
+
.prism-group-sticky .group-index + .group-item:has(+ .group-index),
|
|
105
|
+
.prism-group-sticky .group-index + .group-item:last-child {
|
|
106
|
+
border-radius: 16rpx;
|
|
107
|
+
}
|
|
108
|
+
.prism-group-sticky .group-avatar {
|
|
109
|
+
width: 80rpx;
|
|
110
|
+
height: 80rpx;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
margin-right: 24rpx;
|
|
113
|
+
background: var(--prism-primary-light, #EBF2FF);
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
font-size: 28rpx;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
color: var(--prism-primary-color, #3478F6);
|
|
120
|
+
flex-shrink: 0;
|
|
121
|
+
}
|
|
122
|
+
.dark-mode .prism-group-sticky .group-avatar {
|
|
123
|
+
background: rgba(52, 120, 246, 0.15);
|
|
124
|
+
}
|
|
125
|
+
.prism-group-sticky .group-info {
|
|
126
|
+
flex: 1;
|
|
127
|
+
min-width: 0;
|
|
128
|
+
}
|
|
129
|
+
.prism-group-sticky .group-info .group-title {
|
|
130
|
+
font-size: 30rpx;
|
|
131
|
+
font-weight: 500;
|
|
132
|
+
color: var(--prism-text-primary, #1D2129);
|
|
133
|
+
margin-bottom: 4rpx;
|
|
134
|
+
}
|
|
135
|
+
.dark-mode .prism-group-sticky .group-info .group-title {
|
|
136
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
137
|
+
}
|
|
138
|
+
.prism-group-sticky .group-info .group-desc {
|
|
139
|
+
font-size: 24rpx;
|
|
140
|
+
color: var(--prism-text-secondary, #86909C);
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
}
|
|
145
|
+
.prism-index-bar {
|
|
146
|
+
position: absolute;
|
|
147
|
+
right: 0;
|
|
148
|
+
top: 50%;
|
|
149
|
+
transform: translateY(-50%);
|
|
150
|
+
z-index: 100;
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
align-items: center;
|
|
154
|
+
padding: 12rpx 16rpx 12rpx 24rpx;
|
|
155
|
+
background: rgba(255, 255, 255, 0.02);
|
|
156
|
+
border-radius: 20rpx 0 0 20rpx;
|
|
157
|
+
backdrop-filter: blur(8px);
|
|
158
|
+
}
|
|
159
|
+
.prism-index-bar .index-item {
|
|
160
|
+
width: 36rpx;
|
|
161
|
+
height: 36rpx;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
font-size: 22rpx;
|
|
166
|
+
color: var(--prism-text-primary, #1D2129);
|
|
167
|
+
font-weight: 500;
|
|
168
|
+
background: transparent;
|
|
169
|
+
}
|
|
170
|
+
.prism-index-bar .index-item:active, .prism-index-bar .index-item.active {
|
|
171
|
+
color: var(--prism-primary-color, #3478F6);
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
}
|
|
174
|
+
.index-indicator {
|
|
175
|
+
position: fixed;
|
|
176
|
+
right: 120rpx;
|
|
177
|
+
width: 100rpx;
|
|
178
|
+
height: 100rpx;
|
|
179
|
+
margin-top: -50rpx;
|
|
180
|
+
border-radius: 50%;
|
|
181
|
+
background: rgba(52, 120, 246, 0.8);
|
|
182
|
+
backdrop-filter: blur(10px);
|
|
183
|
+
color: #FFFFFF;
|
|
184
|
+
font-size: 48rpx;
|
|
185
|
+
font-weight: 600;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
box-shadow: 0 8rpx 32rpx rgba(52, 120, 246, 0.3);
|
|
190
|
+
z-index: 1000;
|
|
191
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const common_vendor = require("../../common/vendor.js");
|
|
3
|
+
const store_app = require("../../store/app.js");
|
|
4
|
+
const _sfc_main = {
|
|
5
|
+
__name: "PrismIdCardInput",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
showInfo: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: true
|
|
14
|
+
},
|
|
15
|
+
placeholder: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "请输入身份证号"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue", "complete", "valid"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const appStore = store_app.useAppStore();
|
|
25
|
+
const idValue = common_vendor.ref(props.modelValue);
|
|
26
|
+
const lastDisplayLength = common_vendor.ref(0);
|
|
27
|
+
const displayValue = common_vendor.computed(() => {
|
|
28
|
+
const val = idValue.value;
|
|
29
|
+
if (!val) return "";
|
|
30
|
+
let result = "";
|
|
31
|
+
for (let i = 0; i < val.length; i++) {
|
|
32
|
+
if (i === 6 || i === 14) {
|
|
33
|
+
result += " ";
|
|
34
|
+
}
|
|
35
|
+
result += val[i];
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
});
|
|
39
|
+
const parsedInfo = common_vendor.computed(() => {
|
|
40
|
+
const id = idValue.value;
|
|
41
|
+
if (id.length !== 18) {
|
|
42
|
+
return { valid: false };
|
|
43
|
+
}
|
|
44
|
+
const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
|
|
45
|
+
const checkCodes = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"];
|
|
46
|
+
let sum = 0;
|
|
47
|
+
for (let i = 0; i < 17; i++) {
|
|
48
|
+
sum += parseInt(id[i]) * weights[i];
|
|
49
|
+
}
|
|
50
|
+
const checkCode = checkCodes[sum % 11];
|
|
51
|
+
if (id[17].toUpperCase() !== checkCode) {
|
|
52
|
+
return { valid: false };
|
|
53
|
+
}
|
|
54
|
+
const year = id.substring(6, 10);
|
|
55
|
+
const month = id.substring(10, 12);
|
|
56
|
+
const day = id.substring(12, 14);
|
|
57
|
+
const birthday = `${year}年${month}月${day}日`;
|
|
58
|
+
const genderCode = parseInt(id[16]);
|
|
59
|
+
const gender = genderCode % 2 === 1 ? "男" : "女";
|
|
60
|
+
return {
|
|
61
|
+
valid: true,
|
|
62
|
+
region: "—",
|
|
63
|
+
birthday,
|
|
64
|
+
gender
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
function onFocus() {
|
|
68
|
+
}
|
|
69
|
+
function onBlur() {
|
|
70
|
+
}
|
|
71
|
+
function handleInput(e) {
|
|
72
|
+
const inputValue = e.detail.value;
|
|
73
|
+
const oldLength = lastDisplayLength.value;
|
|
74
|
+
const newLength = inputValue.length;
|
|
75
|
+
let value = inputValue.replace(/\s/g, "").toUpperCase().replace(/[^0-9X]/g, "");
|
|
76
|
+
if (newLength < oldLength) {
|
|
77
|
+
const deletedPos = oldLength - 1;
|
|
78
|
+
if (deletedPos === 7 || deletedPos === 16) {
|
|
79
|
+
const actualPos = deletedPos === 7 ? 6 : 14;
|
|
80
|
+
value = value.slice(0, actualPos - 1) + value.slice(actualPos);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (value.length < 18) {
|
|
84
|
+
value = value.replace(/X/g, "");
|
|
85
|
+
} else if (value.length === 18 && value[17] === "X") {
|
|
86
|
+
value = value.slice(0, 17).replace(/X/g, "") + "X";
|
|
87
|
+
} else {
|
|
88
|
+
value = value.replace(/X/g, "");
|
|
89
|
+
}
|
|
90
|
+
value = value.slice(0, 18);
|
|
91
|
+
idValue.value = value;
|
|
92
|
+
emit("update:modelValue", value);
|
|
93
|
+
lastDisplayLength.value = displayValue.value.length;
|
|
94
|
+
if (value.length === 18) {
|
|
95
|
+
emit("complete", value);
|
|
96
|
+
if (parsedInfo.value.valid) {
|
|
97
|
+
emit("valid", parsedInfo.value);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
common_vendor.watch(() => props.modelValue, (val) => {
|
|
102
|
+
idValue.value = val;
|
|
103
|
+
});
|
|
104
|
+
return (_ctx, _cache) => {
|
|
105
|
+
return common_vendor.e({
|
|
106
|
+
a: displayValue.value,
|
|
107
|
+
b: __props.placeholder,
|
|
108
|
+
c: common_vendor.o(handleInput),
|
|
109
|
+
d: common_vendor.o(onFocus),
|
|
110
|
+
e: common_vendor.o(onBlur),
|
|
111
|
+
f: __props.showInfo && parsedInfo.value.valid
|
|
112
|
+
}, __props.showInfo && parsedInfo.value.valid ? {
|
|
113
|
+
g: common_vendor.t(parsedInfo.value.region),
|
|
114
|
+
h: common_vendor.t(parsedInfo.value.birthday),
|
|
115
|
+
i: common_vendor.t(parsedInfo.value.gender)
|
|
116
|
+
} : {}, {
|
|
117
|
+
j: common_vendor.unref(appStore).isDarkMode ? 1 : ""
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
wx.createComponent(_sfc_main);
|
|
123
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismIdCardInput/PrismIdCardInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="{{['prism-id-card-input', j && 'dark-mode']}}"><view class="id-card-input-wrapper"><input class="id-card-input" type="idcard" value="{{a}}" placeholder="{{b}}" placeholder-class="id-placeholder" maxlength="{{21}}" bindinput="{{c}}" bindfocus="{{d}}" bindblur="{{e}}"/></view><view wx:if="{{f}}" class="id-info"><view class="info-item"><text class="info-label">地区:</text><text class="info-value">{{g}}</text></view><view class="info-item"><text class="info-label">出生日期:</text><text class="info-value">{{h}}</text></view><view class="info-item"><text class="info-label">性别:</text><text class="info-value">{{i}}</text></view></view></view>
|
|
@@ -0,0 +1,114 @@
|
|
|
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-id-card-input .id-card-input-wrapper {
|
|
52
|
+
background: var(--prism-input-bg, #EBEEF2);
|
|
53
|
+
border-radius: 12rpx;
|
|
54
|
+
padding: 0 24rpx;
|
|
55
|
+
height: 88rpx;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
transition: all 0.3s ease;
|
|
59
|
+
}
|
|
60
|
+
.prism-id-card-input .id-card-input-wrapper:focus-within {
|
|
61
|
+
background: var(--prism-primary-light, #E3EEFF);
|
|
62
|
+
}
|
|
63
|
+
.prism-id-card-input .id-card-input {
|
|
64
|
+
flex: 1;
|
|
65
|
+
font-size: 32rpx;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
color: var(--prism-text-primary, #1D2129);
|
|
68
|
+
letter-spacing: 2rpx;
|
|
69
|
+
}
|
|
70
|
+
.prism-id-card-input .id-placeholder {
|
|
71
|
+
color: var(--prism-text-placeholder, #86909C);
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
}
|
|
74
|
+
.prism-id-card-input .id-info {
|
|
75
|
+
margin-top: 24rpx;
|
|
76
|
+
padding: 20rpx;
|
|
77
|
+
background: rgba(52, 120, 246, 0.08);
|
|
78
|
+
border-radius: 12rpx;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-wrap: wrap;
|
|
81
|
+
gap: 16rpx;
|
|
82
|
+
}
|
|
83
|
+
.prism-id-card-input .id-info .info-item {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
}
|
|
87
|
+
.prism-id-card-input .id-info .info-item .info-label {
|
|
88
|
+
font-size: 24rpx;
|
|
89
|
+
color: var(--prism-text-secondary, #86909C);
|
|
90
|
+
}
|
|
91
|
+
.prism-id-card-input .id-info .info-item .info-value {
|
|
92
|
+
font-size: 24rpx;
|
|
93
|
+
color: var(--prism-text-primary, #1D2129);
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
}
|
|
96
|
+
.dark-mode .prism-id-card-input .id-card-input-wrapper {
|
|
97
|
+
background: var(--prism-input-bg, #2A2A2A);
|
|
98
|
+
}
|
|
99
|
+
.dark-mode .prism-id-card-input .id-card-input-wrapper:focus-within {
|
|
100
|
+
background: rgba(52, 120, 246, 0.12);
|
|
101
|
+
box-shadow: 0 0 0 2rpx rgba(52, 120, 246, 0.4), 0 4rpx 16rpx rgba(52, 120, 246, 0.15);
|
|
102
|
+
}
|
|
103
|
+
.dark-mode .prism-id-card-input .id-card-input {
|
|
104
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
105
|
+
}
|
|
106
|
+
.dark-mode .prism-id-card-input .id-placeholder {
|
|
107
|
+
color: var(--prism-text-placeholder, #6B7785);
|
|
108
|
+
}
|
|
109
|
+
.dark-mode .prism-id-card-input .id-info {
|
|
110
|
+
background: rgba(52, 120, 246, 0.15);
|
|
111
|
+
}
|
|
112
|
+
.dark-mode .prism-id-card-input .id-info .info-value {
|
|
113
|
+
color: var(--prism-text-primary, #E5E6EB);
|
|
114
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const common_vendor = require("../../common/vendor.js");
|
|
3
|
+
const _sfc_main = {
|
|
4
|
+
__name: "PrismIndexBar",
|
|
5
|
+
props: {
|
|
6
|
+
// 索引项列表 [{ value: 'key', label: '显示文字', background: '#fff' 或 'linear-gradient(...)' }]
|
|
7
|
+
items: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: () => []
|
|
10
|
+
},
|
|
11
|
+
// 是否深色模式
|
|
12
|
+
isDarkMode: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
// 当前选中的索引值(支持 v-model)
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue", "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(props.modelValue);
|
|
28
|
+
const showIndicator = common_vendor.ref(false);
|
|
29
|
+
const indicatorTop = common_vendor.ref(0);
|
|
30
|
+
let indexBarRect = null;
|
|
31
|
+
const currentItemLabel = common_vendor.computed(() => {
|
|
32
|
+
const item = props.items.find((i) => i.value === currentIndex.value);
|
|
33
|
+
return item ? item.label : "";
|
|
34
|
+
});
|
|
35
|
+
const currentItemBackground = common_vendor.computed(() => {
|
|
36
|
+
const item = props.items.find((i) => i.value === currentIndex.value);
|
|
37
|
+
return item ? item.background : "rgba(0, 0, 0, 0.85)";
|
|
38
|
+
});
|
|
39
|
+
const getItemByTouch = (touchY) => {
|
|
40
|
+
if (!indexBarRect || !props.items.length) return null;
|
|
41
|
+
const itemHeight = indexBarRect.height / props.items.length;
|
|
42
|
+
const relativeY = touchY - indexBarRect.top;
|
|
43
|
+
const index = Math.floor(relativeY / itemHeight);
|
|
44
|
+
if (index < 0) return props.items[0];
|
|
45
|
+
if (index >= props.items.length) return props.items[props.items.length - 1];
|
|
46
|
+
return props.items[index];
|
|
47
|
+
};
|
|
48
|
+
const updateIndex = (touchY) => {
|
|
49
|
+
indicatorTop.value = touchY;
|
|
50
|
+
const item = getItemByTouch(touchY);
|
|
51
|
+
if (item && item.value !== currentIndex.value) {
|
|
52
|
+
currentIndex.value = item.value;
|
|
53
|
+
emit("update:modelValue", item.value);
|
|
54
|
+
emit("change", item.value);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const onIndexTouchStart = (e) => {
|
|
58
|
+
showIndicator.value = true;
|
|
59
|
+
const touchY = e.touches[0].clientY;
|
|
60
|
+
indicatorTop.value = touchY;
|
|
61
|
+
common_vendor.index.createSelectorQuery().in(instance).select(".prism-index-bar").boundingClientRect((rect) => {
|
|
62
|
+
if (rect) {
|
|
63
|
+
indexBarRect = rect;
|
|
64
|
+
const item = getItemByTouch(touchY);
|
|
65
|
+
if (item) {
|
|
66
|
+
currentIndex.value = item.value;
|
|
67
|
+
emit("update:modelValue", item.value);
|
|
68
|
+
emit("change", item.value);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}).exec();
|
|
72
|
+
};
|
|
73
|
+
const onIndexTouchMove = (e) => {
|
|
74
|
+
const touchY = e.touches[0].clientY;
|
|
75
|
+
if (indexBarRect) {
|
|
76
|
+
updateIndex(touchY);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const onIndexTouchEnd = () => {
|
|
80
|
+
showIndicator.value = false;
|
|
81
|
+
};
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return common_vendor.e({
|
|
84
|
+
a: common_vendor.f(__props.items, (item, k0, i0) => {
|
|
85
|
+
return {
|
|
86
|
+
a: item.value,
|
|
87
|
+
b: currentIndex.value === item.value ? 1 : "",
|
|
88
|
+
c: item.background
|
|
89
|
+
};
|
|
90
|
+
}),
|
|
91
|
+
b: __props.isDarkMode ? 1 : "",
|
|
92
|
+
c: common_vendor.o(onIndexTouchStart),
|
|
93
|
+
d: common_vendor.o(onIndexTouchMove),
|
|
94
|
+
e: common_vendor.o(onIndexTouchEnd),
|
|
95
|
+
f: showIndicator.value && currentIndex.value
|
|
96
|
+
}, showIndicator.value && currentIndex.value ? {
|
|
97
|
+
g: common_vendor.t(currentItemLabel.value),
|
|
98
|
+
h: currentItemBackground.value,
|
|
99
|
+
i: __props.isDarkMode ? 1 : "",
|
|
100
|
+
j: indicatorTop.value + "px",
|
|
101
|
+
k: currentItemBackground.value
|
|
102
|
+
} : {});
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b4fa71a"]]);
|
|
107
|
+
wx.createComponent(Component);
|
|
108
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismIndexBar/PrismIndexBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="data-v-4b4fa71a"><view class="{{['prism-index-bar', 'data-v-4b4fa71a', b && 'dark-mode']}}" bindtouchstart="{{c}}" catchtouchmove="{{d}}" bindtouchend="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="a" class="{{['prism-index-item', 'data-v-4b4fa71a', item.b && 'active']}}" style="{{'background:' + item.c}}"></view></view><view wx:if="{{f}}" class="{{['prism-index-indicator', 'data-v-4b4fa71a', i && 'dark-mode']}}" style="{{'top:' + j + ';' + ('background:' + k)}}">{{g}} <view class="prism-index-indicator-arrow data-v-4b4fa71a" style="{{'border-left-color:' + h}}"></view></view></view>
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
/* 右侧索引条 */
|
|
52
|
+
.prism-index-bar.data-v-4b4fa71a {
|
|
53
|
+
position: fixed;
|
|
54
|
+
right: 8rpx;
|
|
55
|
+
top: 50%;
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 12rpx;
|
|
61
|
+
z-index: 999;
|
|
62
|
+
padding: 16rpx 12rpx;
|
|
63
|
+
background: rgba(255, 255, 255, 0.1);
|
|
64
|
+
border-radius: 24rpx;
|
|
65
|
+
backdrop-filter: blur(10px);
|
|
66
|
+
-webkit-backdrop-filter: blur(10px);
|
|
67
|
+
}
|
|
68
|
+
.prism-index-item.data-v-4b4fa71a {
|
|
69
|
+
width: 40rpx;
|
|
70
|
+
height: 40rpx;
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
border: 3rpx solid rgba(255, 255, 255, 0.8);
|
|
73
|
+
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
|
|
74
|
+
transition: all 0.3s ease;
|
|
75
|
+
position: relative;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
}
|
|
78
|
+
.prism-index-item.data-v-4b4fa71a:active {
|
|
79
|
+
transform: scale(1.15);
|
|
80
|
+
}
|
|
81
|
+
.prism-index-item.active.data-v-4b4fa71a {
|
|
82
|
+
width: 48rpx;
|
|
83
|
+
height: 48rpx;
|
|
84
|
+
border-width: 4rpx;
|
|
85
|
+
border-color: #FFFFFF;
|
|
86
|
+
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.3);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* 气泡提示 */
|
|
90
|
+
.prism-index-indicator.data-v-4b4fa71a {
|
|
91
|
+
position: fixed;
|
|
92
|
+
right: 80rpx;
|
|
93
|
+
padding: 12rpx 20rpx;
|
|
94
|
+
color: #FFFFFF;
|
|
95
|
+
border-radius: 8rpx;
|
|
96
|
+
font-size: 24rpx;
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
backdrop-filter: blur(10px);
|
|
99
|
+
-webkit-backdrop-filter: blur(10px);
|
|
100
|
+
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.3);
|
|
101
|
+
animation: fadeIn-4b4fa71a 0.2s ease;
|
|
102
|
+
z-index: 1000;
|
|
103
|
+
transform: translateY(-50%);
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* 气泡箭头 */
|
|
108
|
+
.prism-index-indicator-arrow.data-v-4b4fa71a {
|
|
109
|
+
position: absolute;
|
|
110
|
+
right: -8rpx;
|
|
111
|
+
top: 50%;
|
|
112
|
+
transform: translateY(-50%);
|
|
113
|
+
width: 0;
|
|
114
|
+
height: 0;
|
|
115
|
+
border-left: 8rpx solid;
|
|
116
|
+
border-top: 8rpx solid transparent;
|
|
117
|
+
border-bottom: 8rpx solid transparent;
|
|
118
|
+
}
|
|
119
|
+
@keyframes fadeIn-4b4fa71a {
|
|
120
|
+
from {
|
|
121
|
+
opacity: 0;
|
|
122
|
+
}
|
|
123
|
+
to {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/* 深色模式适配 */
|
|
128
|
+
.dark-mode.prism-index-bar .prism-index-item.data-v-4b4fa71a {
|
|
129
|
+
border-color: rgba(0, 0, 0, 0.5);
|
|
130
|
+
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.4);
|
|
131
|
+
}
|
|
132
|
+
.dark-mode.prism-index-bar .prism-index-item.active.data-v-4b4fa71a {
|
|
133
|
+
border-color: rgba(255, 255, 255, 0.9);
|
|
134
|
+
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.6);
|
|
135
|
+
}
|