@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,449 @@
|
|
|
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: "PrismLicensePlateInput",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue", "complete"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const appStore = store_app.useAppStore();
|
|
17
|
+
const isNewEnergy = common_vendor.ref(false);
|
|
18
|
+
const showKeyboard = common_vendor.ref(false);
|
|
19
|
+
const activeIndex = common_vendor.ref(-1);
|
|
20
|
+
const firstKeyboardMode = common_vendor.ref("province");
|
|
21
|
+
const provinces = [
|
|
22
|
+
"京",
|
|
23
|
+
"津",
|
|
24
|
+
"沪",
|
|
25
|
+
"渝",
|
|
26
|
+
"冀",
|
|
27
|
+
"豫",
|
|
28
|
+
"云",
|
|
29
|
+
"辽",
|
|
30
|
+
"黑",
|
|
31
|
+
"湘",
|
|
32
|
+
"皖",
|
|
33
|
+
"鲁",
|
|
34
|
+
"新",
|
|
35
|
+
"苏",
|
|
36
|
+
"浙",
|
|
37
|
+
"赣",
|
|
38
|
+
"鄂",
|
|
39
|
+
"桂",
|
|
40
|
+
"甘",
|
|
41
|
+
"晋",
|
|
42
|
+
"蒙",
|
|
43
|
+
"陕",
|
|
44
|
+
"吉",
|
|
45
|
+
"闽",
|
|
46
|
+
"贵",
|
|
47
|
+
"粤",
|
|
48
|
+
"川",
|
|
49
|
+
"青",
|
|
50
|
+
"藏",
|
|
51
|
+
"琼",
|
|
52
|
+
"宁"
|
|
53
|
+
];
|
|
54
|
+
const provincePinyinMap = {
|
|
55
|
+
"京": "J",
|
|
56
|
+
"津": "J",
|
|
57
|
+
"沪": "H",
|
|
58
|
+
"渝": "Y",
|
|
59
|
+
"冀": "J",
|
|
60
|
+
"豫": "Y",
|
|
61
|
+
"云": "Y",
|
|
62
|
+
"辽": "L",
|
|
63
|
+
"黑": "H",
|
|
64
|
+
"湘": "X",
|
|
65
|
+
"皖": "W",
|
|
66
|
+
"鲁": "L",
|
|
67
|
+
"新": "X",
|
|
68
|
+
"苏": "S",
|
|
69
|
+
"浙": "Z",
|
|
70
|
+
"赣": "G",
|
|
71
|
+
"鄂": "E",
|
|
72
|
+
"桂": "G",
|
|
73
|
+
"甘": "G",
|
|
74
|
+
"晋": "J",
|
|
75
|
+
"蒙": "M",
|
|
76
|
+
"陕": "S",
|
|
77
|
+
"吉": "J",
|
|
78
|
+
"闽": "M",
|
|
79
|
+
"贵": "G",
|
|
80
|
+
"粤": "Y",
|
|
81
|
+
"川": "C",
|
|
82
|
+
"青": "Q",
|
|
83
|
+
"藏": "Z",
|
|
84
|
+
"琼": "Q",
|
|
85
|
+
"宁": "N"
|
|
86
|
+
};
|
|
87
|
+
const letterGroups = [
|
|
88
|
+
["C", "E"],
|
|
89
|
+
// 川、鄂
|
|
90
|
+
["G", "H"],
|
|
91
|
+
// 赣桂甘贵、沪黑
|
|
92
|
+
["J", "L"],
|
|
93
|
+
// 京津冀晋吉、辽鲁
|
|
94
|
+
["M", "N"],
|
|
95
|
+
// 蒙闽、宁
|
|
96
|
+
["Q", "S"],
|
|
97
|
+
// 青琼、苏陕
|
|
98
|
+
["W", "X"],
|
|
99
|
+
// 皖、新湘
|
|
100
|
+
["Y", "Z"]
|
|
101
|
+
// 渝豫云粤、浙藏
|
|
102
|
+
];
|
|
103
|
+
const selectedLetters = common_vendor.ref([]);
|
|
104
|
+
function selectLetterGroup(group) {
|
|
105
|
+
if (touchSelectedGroup && touchSelectedGroup.every((l) => group.includes(l))) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const isSelected = group.every((l) => selectedLetters.value.includes(l));
|
|
109
|
+
if (isSelected) {
|
|
110
|
+
selectedLetters.value = [];
|
|
111
|
+
} else {
|
|
112
|
+
selectedLetters.value = [...group];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function isGroupSelected(group) {
|
|
116
|
+
return group.every((l) => selectedLetters.value.includes(l));
|
|
117
|
+
}
|
|
118
|
+
function isProvinceHighlight(province) {
|
|
119
|
+
if (selectedLetters.value.length === 0) return false;
|
|
120
|
+
return selectedLetters.value.includes(provincePinyinMap[province]);
|
|
121
|
+
}
|
|
122
|
+
let isTouchingLetterIndex = false;
|
|
123
|
+
let touchSelectedGroup = null;
|
|
124
|
+
function onLetterIndexTouchStart(e) {
|
|
125
|
+
isTouchingLetterIndex = true;
|
|
126
|
+
touchSelectedGroup = null;
|
|
127
|
+
const touch = e.touches[0];
|
|
128
|
+
updateLetterIndexByTouch(touch);
|
|
129
|
+
}
|
|
130
|
+
function onLetterIndexTouchMove(e) {
|
|
131
|
+
if (!isTouchingLetterIndex) return;
|
|
132
|
+
const touch = e.touches[0];
|
|
133
|
+
updateLetterIndexByTouch(touch);
|
|
134
|
+
}
|
|
135
|
+
function onLetterIndexTouchEnd() {
|
|
136
|
+
isTouchingLetterIndex = false;
|
|
137
|
+
setTimeout(() => {
|
|
138
|
+
touchSelectedGroup = null;
|
|
139
|
+
}, 100);
|
|
140
|
+
}
|
|
141
|
+
function updateLetterIndexByTouch(touch) {
|
|
142
|
+
const x = touch.clientX;
|
|
143
|
+
const y = touch.clientY;
|
|
144
|
+
common_vendor.index.createSelectorQuery().selectAll(".letter-index").boundingClientRect((rects) => {
|
|
145
|
+
if (!rects) return;
|
|
146
|
+
for (let i = 0; i < rects.length; i++) {
|
|
147
|
+
const rect = rects[i];
|
|
148
|
+
if (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom) {
|
|
149
|
+
const group = letterGroups[i];
|
|
150
|
+
if (group && !isGroupSelected(group)) {
|
|
151
|
+
selectedLetters.value = [...group];
|
|
152
|
+
touchSelectedGroup = group;
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}).exec();
|
|
158
|
+
}
|
|
159
|
+
const specialChars = [
|
|
160
|
+
{ char: "警", type: "white" },
|
|
161
|
+
{ char: "领", type: "black" },
|
|
162
|
+
{ char: "港", type: "black" },
|
|
163
|
+
{ char: "澳", type: "black" },
|
|
164
|
+
{ char: "学", type: "yellow" },
|
|
165
|
+
{ char: "挂", type: "yellow" },
|
|
166
|
+
{ char: "使", type: "black" }
|
|
167
|
+
];
|
|
168
|
+
const letterRows = [
|
|
169
|
+
["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P"],
|
|
170
|
+
["A", "S", "D", "F", "G", "H", "J", "K", "L"],
|
|
171
|
+
["Z", "X", "C", "V", "B", "N", "M"]
|
|
172
|
+
];
|
|
173
|
+
const numberRow = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
|
|
174
|
+
const plateLength = common_vendor.computed(() => isNewEnergy.value ? 8 : 7);
|
|
175
|
+
function getSpecialCharType(char) {
|
|
176
|
+
if (!char) return null;
|
|
177
|
+
const found = specialChars.find((item) => item.char === char);
|
|
178
|
+
return found ? found.type : null;
|
|
179
|
+
}
|
|
180
|
+
const plateArray = common_vendor.computed(() => {
|
|
181
|
+
const value = props.modelValue;
|
|
182
|
+
if (!value) return [];
|
|
183
|
+
return value.split("").slice(0, plateLength.value);
|
|
184
|
+
});
|
|
185
|
+
const isFirstTwoLetters = common_vendor.computed(() => {
|
|
186
|
+
const arr = plateArray.value;
|
|
187
|
+
if (arr.length < 2) return false;
|
|
188
|
+
const letterRegex = /^[A-Z]$/;
|
|
189
|
+
return letterRegex.test(arr[0]) && letterRegex.test(arr[1]);
|
|
190
|
+
});
|
|
191
|
+
const keyboardTitle = common_vendor.computed(() => {
|
|
192
|
+
if (activeIndex.value === 0) {
|
|
193
|
+
return firstKeyboardMode.value === "province" ? "选择省份" : "选择字母";
|
|
194
|
+
}
|
|
195
|
+
if (activeIndex.value === 1) return "选择字母";
|
|
196
|
+
if (activeIndex.value === 2 && isFirstTwoLetters.value) return "选择省份";
|
|
197
|
+
return "输入字符";
|
|
198
|
+
});
|
|
199
|
+
const showLetterInFirst = common_vendor.computed(() => {
|
|
200
|
+
return activeIndex.value === 0 && firstKeyboardMode.value === "letter";
|
|
201
|
+
});
|
|
202
|
+
const showProvinceSection = common_vendor.computed(() => {
|
|
203
|
+
if (activeIndex.value === 0) return firstKeyboardMode.value === "province";
|
|
204
|
+
if (activeIndex.value === 2 && isFirstTwoLetters.value) return true;
|
|
205
|
+
return false;
|
|
206
|
+
});
|
|
207
|
+
const showLetterSection = common_vendor.computed(() => {
|
|
208
|
+
if (activeIndex.value === 0 && firstKeyboardMode.value === "letter") return true;
|
|
209
|
+
if (activeIndex.value === 1) return true;
|
|
210
|
+
if (activeIndex.value === 2 && isFirstTwoLetters.value) return false;
|
|
211
|
+
if (activeIndex.value >= 2) return true;
|
|
212
|
+
return false;
|
|
213
|
+
});
|
|
214
|
+
const showNumberSection = common_vendor.computed(() => {
|
|
215
|
+
if (activeIndex.value === 0 && firstKeyboardMode.value === "letter") return true;
|
|
216
|
+
if (activeIndex.value === 1) return true;
|
|
217
|
+
if (activeIndex.value === 2 && isFirstTwoLetters.value) return false;
|
|
218
|
+
return activeIndex.value >= 2;
|
|
219
|
+
});
|
|
220
|
+
const showSpecialSection = common_vendor.computed(() => {
|
|
221
|
+
if (activeIndex.value === 0 && firstKeyboardMode.value === "letter") return true;
|
|
222
|
+
if (activeIndex.value === 1) return true;
|
|
223
|
+
if (activeIndex.value === 2 && isFirstTwoLetters.value) return false;
|
|
224
|
+
return activeIndex.value >= 2;
|
|
225
|
+
});
|
|
226
|
+
const shouldDisableIO = common_vendor.computed(() => {
|
|
227
|
+
return activeIndex.value >= 2;
|
|
228
|
+
});
|
|
229
|
+
const showDoneButton = common_vendor.computed(() => {
|
|
230
|
+
if (!isNewEnergy.value && activeIndex.value === 6) return true;
|
|
231
|
+
if (isNewEnergy.value && activeIndex.value === 7) return true;
|
|
232
|
+
return false;
|
|
233
|
+
});
|
|
234
|
+
function showKeyboardAt(index) {
|
|
235
|
+
activeIndex.value = index;
|
|
236
|
+
if (index === 0) {
|
|
237
|
+
firstKeyboardMode.value = "province";
|
|
238
|
+
}
|
|
239
|
+
showKeyboard.value = true;
|
|
240
|
+
}
|
|
241
|
+
function toggleFirstKeyboard() {
|
|
242
|
+
firstKeyboardMode.value = firstKeyboardMode.value === "province" ? "letter" : "province";
|
|
243
|
+
}
|
|
244
|
+
function handleNewEnergyClick() {
|
|
245
|
+
if (!isNewEnergy.value) {
|
|
246
|
+
isNewEnergy.value = true;
|
|
247
|
+
}
|
|
248
|
+
showKeyboardAt(7);
|
|
249
|
+
}
|
|
250
|
+
function closeKeyboard() {
|
|
251
|
+
showKeyboard.value = false;
|
|
252
|
+
activeIndex.value = -1;
|
|
253
|
+
}
|
|
254
|
+
function inputChar(c) {
|
|
255
|
+
if (shouldDisableIO.value && (c === "I" || c === "O")) return;
|
|
256
|
+
const currentValue = props.modelValue;
|
|
257
|
+
let arr = currentValue.split("");
|
|
258
|
+
while (arr.length < activeIndex.value) {
|
|
259
|
+
arr.push("");
|
|
260
|
+
}
|
|
261
|
+
arr[activeIndex.value] = c;
|
|
262
|
+
emit("update:modelValue", arr.join(""));
|
|
263
|
+
if (activeIndex.value < 6) {
|
|
264
|
+
activeIndex.value = activeIndex.value + 1;
|
|
265
|
+
} else if (activeIndex.value === 6) {
|
|
266
|
+
isNewEnergy.value = true;
|
|
267
|
+
activeIndex.value = 7;
|
|
268
|
+
} else if (activeIndex.value === 7) {
|
|
269
|
+
closeKeyboard();
|
|
270
|
+
if (arr.join("").length === 8) {
|
|
271
|
+
emit("complete", arr.join(""));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
function deleteChar() {
|
|
276
|
+
const currentValue = props.modelValue;
|
|
277
|
+
let arr = currentValue.split("");
|
|
278
|
+
if (activeIndex.value >= 0 && arr[activeIndex.value]) {
|
|
279
|
+
arr[activeIndex.value] = "";
|
|
280
|
+
while (arr.length > 0 && arr[arr.length - 1] === "") {
|
|
281
|
+
arr.pop();
|
|
282
|
+
}
|
|
283
|
+
emit("update:modelValue", arr.join(""));
|
|
284
|
+
} else if (activeIndex.value > 0) {
|
|
285
|
+
const prevIndex = activeIndex.value - 1;
|
|
286
|
+
arr[prevIndex] = "";
|
|
287
|
+
while (arr.length > 0 && arr[arr.length - 1] === "") {
|
|
288
|
+
arr.pop();
|
|
289
|
+
}
|
|
290
|
+
emit("update:modelValue", arr.join(""));
|
|
291
|
+
activeIndex.value = prevIndex;
|
|
292
|
+
} else if (activeIndex.value === 0 && arr[0]) {
|
|
293
|
+
emit("update:modelValue", "");
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
common_vendor.watch(isNewEnergy, (val) => {
|
|
297
|
+
if (!val && props.modelValue.length > 7) {
|
|
298
|
+
emit("update:modelValue", props.modelValue.slice(0, 7));
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
return (_ctx, _cache) => {
|
|
302
|
+
return common_vendor.e({
|
|
303
|
+
a: common_vendor.t(plateArray.value[0] || ""),
|
|
304
|
+
b: activeIndex.value === 0 ? 1 : "",
|
|
305
|
+
c: plateArray.value[0] ? 1 : "",
|
|
306
|
+
d: getSpecialCharType(plateArray.value[0]) === "white" ? 1 : "",
|
|
307
|
+
e: getSpecialCharType(plateArray.value[0]) === "black" ? 1 : "",
|
|
308
|
+
f: getSpecialCharType(plateArray.value[0]) === "yellow" ? 1 : "",
|
|
309
|
+
g: common_vendor.o(($event) => showKeyboardAt(0)),
|
|
310
|
+
h: common_vendor.t(plateArray.value[1] || ""),
|
|
311
|
+
i: activeIndex.value === 1 ? 1 : "",
|
|
312
|
+
j: plateArray.value[1] ? 1 : "",
|
|
313
|
+
k: getSpecialCharType(plateArray.value[1]) === "white" ? 1 : "",
|
|
314
|
+
l: getSpecialCharType(plateArray.value[1]) === "black" ? 1 : "",
|
|
315
|
+
m: getSpecialCharType(plateArray.value[1]) === "yellow" ? 1 : "",
|
|
316
|
+
n: common_vendor.o(($event) => showKeyboardAt(1)),
|
|
317
|
+
o: common_vendor.f(5, (i, k0, i0) => {
|
|
318
|
+
return {
|
|
319
|
+
a: common_vendor.t(plateArray.value[i + 1] || ""),
|
|
320
|
+
b: i,
|
|
321
|
+
c: activeIndex.value === i + 1 ? 1 : "",
|
|
322
|
+
d: plateArray.value[i + 1] ? 1 : "",
|
|
323
|
+
e: getSpecialCharType(plateArray.value[i + 1]) === "white" ? 1 : "",
|
|
324
|
+
f: getSpecialCharType(plateArray.value[i + 1]) === "black" ? 1 : "",
|
|
325
|
+
g: getSpecialCharType(plateArray.value[i + 1]) === "yellow" ? 1 : "",
|
|
326
|
+
h: common_vendor.o(($event) => showKeyboardAt(i + 1), i)
|
|
327
|
+
};
|
|
328
|
+
}),
|
|
329
|
+
p: getSpecialCharType(plateArray.value[7]) ? 1 : "",
|
|
330
|
+
q: isNewEnergy.value
|
|
331
|
+
}, isNewEnergy.value ? {
|
|
332
|
+
r: common_vendor.t(plateArray.value[7] || "")
|
|
333
|
+
} : {}, {
|
|
334
|
+
s: isNewEnergy.value && !getSpecialCharType(plateArray.value[7]) ? 1 : "",
|
|
335
|
+
t: !isNewEnergy.value ? 1 : "",
|
|
336
|
+
v: activeIndex.value === 7 ? 1 : "",
|
|
337
|
+
w: plateArray.value[7] ? 1 : "",
|
|
338
|
+
x: getSpecialCharType(plateArray.value[7]) === "white" ? 1 : "",
|
|
339
|
+
y: getSpecialCharType(plateArray.value[7]) === "black" ? 1 : "",
|
|
340
|
+
z: getSpecialCharType(plateArray.value[7]) === "yellow" ? 1 : "",
|
|
341
|
+
A: common_vendor.o(handleNewEnergyClick),
|
|
342
|
+
B: showKeyboard.value
|
|
343
|
+
}, showKeyboard.value ? common_vendor.e({
|
|
344
|
+
C: common_vendor.t(keyboardTitle.value),
|
|
345
|
+
D: activeIndex.value === 0
|
|
346
|
+
}, activeIndex.value === 0 ? {
|
|
347
|
+
E: common_vendor.t(firstKeyboardMode.value === "province" ? "切换字母" : "切换省份"),
|
|
348
|
+
F: common_vendor.o(toggleFirstKeyboard)
|
|
349
|
+
} : {}, {
|
|
350
|
+
G: common_vendor.o(closeKeyboard),
|
|
351
|
+
H: showProvinceSection.value && !showLetterInFirst.value
|
|
352
|
+
}, showProvinceSection.value && !showLetterInFirst.value ? {
|
|
353
|
+
I: common_vendor.f(letterGroups, (group, idx, i0) => {
|
|
354
|
+
return {
|
|
355
|
+
a: common_vendor.t(group.join("/")),
|
|
356
|
+
b: idx,
|
|
357
|
+
c: isGroupSelected(group) ? 1 : "",
|
|
358
|
+
d: idx,
|
|
359
|
+
e: common_vendor.o(($event) => selectLetterGroup(group), idx)
|
|
360
|
+
};
|
|
361
|
+
}),
|
|
362
|
+
J: common_vendor.o(onLetterIndexTouchStart),
|
|
363
|
+
K: common_vendor.o(onLetterIndexTouchMove),
|
|
364
|
+
L: common_vendor.o(onLetterIndexTouchEnd),
|
|
365
|
+
M: common_vendor.f(provinces.slice(0, 8), (p, k0, i0) => {
|
|
366
|
+
return {
|
|
367
|
+
a: common_vendor.t(p),
|
|
368
|
+
b: p,
|
|
369
|
+
c: isProvinceHighlight(p) ? 1 : "",
|
|
370
|
+
d: common_vendor.o(($event) => inputChar(p), p)
|
|
371
|
+
};
|
|
372
|
+
}),
|
|
373
|
+
N: common_vendor.f(provinces.slice(8, 16), (p, k0, i0) => {
|
|
374
|
+
return {
|
|
375
|
+
a: common_vendor.t(p),
|
|
376
|
+
b: p,
|
|
377
|
+
c: isProvinceHighlight(p) ? 1 : "",
|
|
378
|
+
d: common_vendor.o(($event) => inputChar(p), p)
|
|
379
|
+
};
|
|
380
|
+
}),
|
|
381
|
+
O: common_vendor.f(provinces.slice(16, 24), (p, k0, i0) => {
|
|
382
|
+
return {
|
|
383
|
+
a: common_vendor.t(p),
|
|
384
|
+
b: p,
|
|
385
|
+
c: isProvinceHighlight(p) ? 1 : "",
|
|
386
|
+
d: common_vendor.o(($event) => inputChar(p), p)
|
|
387
|
+
};
|
|
388
|
+
}),
|
|
389
|
+
P: common_vendor.f(provinces.slice(24, 31), (p, k0, i0) => {
|
|
390
|
+
return {
|
|
391
|
+
a: common_vendor.t(p),
|
|
392
|
+
b: p,
|
|
393
|
+
c: isProvinceHighlight(p) ? 1 : "",
|
|
394
|
+
d: common_vendor.o(($event) => inputChar(p), p)
|
|
395
|
+
};
|
|
396
|
+
}),
|
|
397
|
+
Q: common_vendor.o(deleteChar)
|
|
398
|
+
} : {}, {
|
|
399
|
+
R: showNumberSection.value
|
|
400
|
+
}, showNumberSection.value ? {
|
|
401
|
+
S: common_vendor.f(numberRow, (n, k0, i0) => {
|
|
402
|
+
return {
|
|
403
|
+
a: common_vendor.t(n),
|
|
404
|
+
b: n,
|
|
405
|
+
c: common_vendor.o(($event) => inputChar(n), n)
|
|
406
|
+
};
|
|
407
|
+
})
|
|
408
|
+
} : {}, {
|
|
409
|
+
T: showLetterSection.value || showLetterInFirst.value
|
|
410
|
+
}, showLetterSection.value || showLetterInFirst.value ? {
|
|
411
|
+
U: common_vendor.f(letterRows, (row, idx, i0) => {
|
|
412
|
+
return common_vendor.e({
|
|
413
|
+
a: common_vendor.f(row, (l, k1, i1) => {
|
|
414
|
+
return {
|
|
415
|
+
a: common_vendor.t(l),
|
|
416
|
+
b: l,
|
|
417
|
+
c: shouldDisableIO.value && (l === "I" || l === "O") ? 1 : "",
|
|
418
|
+
d: common_vendor.o(($event) => inputChar(l), l)
|
|
419
|
+
};
|
|
420
|
+
}),
|
|
421
|
+
b: idx === 2
|
|
422
|
+
}, idx === 2 ? {
|
|
423
|
+
c: common_vendor.o(deleteChar, idx)
|
|
424
|
+
} : {}, {
|
|
425
|
+
d: idx
|
|
426
|
+
});
|
|
427
|
+
})
|
|
428
|
+
} : {}, {
|
|
429
|
+
V: showSpecialSection.value
|
|
430
|
+
}, showSpecialSection.value ? common_vendor.e({
|
|
431
|
+
W: common_vendor.f(specialChars, (item, k0, i0) => {
|
|
432
|
+
return {
|
|
433
|
+
a: common_vendor.t(item.char),
|
|
434
|
+
b: item.char,
|
|
435
|
+
c: common_vendor.n(item.type),
|
|
436
|
+
d: common_vendor.o(($event) => inputChar(item.char), item.char)
|
|
437
|
+
};
|
|
438
|
+
}),
|
|
439
|
+
X: showDoneButton.value
|
|
440
|
+
}, showDoneButton.value ? {
|
|
441
|
+
Y: common_vendor.o(closeKeyboard)
|
|
442
|
+
} : {}) : {}) : {}, {
|
|
443
|
+
Z: common_vendor.unref(appStore).isDarkMode ? 1 : ""
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
wx.createComponent(_sfc_main);
|
|
449
|
+
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/PrismLicensePlateInput/PrismLicensePlateInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<view class="{{['prism-license-plate-input', Z && 'dark-mode']}}"><view class="plate-boxes"><view class="{{['plate-box', 'province', b && 'active', c && 'filled', d && 'special-white', e && 'special-black', f && 'special-yellow']}}" bindtap="{{g}}"><text class="plate-text">{{a}}</text></view><view class="{{['plate-box', 'letter', i && 'active', j && 'filled', k && 'special-white', l && 'special-black', m && 'special-yellow']}}" bindtap="{{n}}"><text class="plate-text">{{h}}</text></view><view class="plate-dot"></view><view wx:for="{{o}}" wx:for-item="i" wx:key="b" class="{{['plate-box', i.c && 'active', i.d && 'filled', i.e && 'special-white', i.f && 'special-black', i.g && 'special-yellow']}}" bindtap="{{i.h}}"><text class="plate-text">{{i.a}}</text></view><view class="plate-box-wrapper new-energy-wrapper"><text class="{{['new-energy-label', p && 'hidden']}}">新能源</text><view class="{{['plate-box', s && 'new-energy', t && 'new-energy-optional', v && 'active', w && 'filled', x && 'special-white', y && 'special-black', z && 'special-yellow']}}" bindtap="{{A}}"><text wx:if="{{q}}" class="plate-text">{{r}}</text><text wx:else class="optional-icon fa fa-plus"></text></view></view></view><view wx:if="{{B}}" class="keyboard-modal"><view class="keyboard-content"><view class="keyboard-header"><view class="header-left"><text class="keyboard-title">{{C}}</text><view wx:if="{{D}}" class="switch-btn" bindtap="{{F}}"><text>{{E}}</text></view></view><text class="keyboard-close fa fa-times" bindtap="{{G}}"></text></view><scroll-view class="keyboard-body" scroll-y><view wx:if="{{H}}" class="keyboard-section"><view class="keyboard-row letter-index-row" bindtouchstart="{{J}}" bindtouchmove="{{K}}" bindtouchend="{{L}}"><view wx:for="{{I}}" wx:for-item="group" wx:key="b" class="{{['key-item', 'letter-index', group.c && 'active']}}" data-index="{{group.d}}" bindtap="{{group.e}}">{{group.a}}</view></view><view class="keyboard-qwerty province-qwerty"><view class="keyboard-row"><view wx:for="{{M}}" wx:for-item="p" wx:key="b" class="{{['key-item', p.c && 'highlight']}}" bindtap="{{p.d}}">{{p.a}}</view></view><view class="keyboard-row"><view wx:for="{{N}}" wx:for-item="p" wx:key="b" class="{{['key-item', p.c && 'highlight']}}" bindtap="{{p.d}}">{{p.a}}</view></view><view class="keyboard-row"><view wx:for="{{O}}" wx:for-item="p" wx:key="b" class="{{['key-item', p.c && 'highlight']}}" bindtap="{{p.d}}">{{p.a}}</view></view><view class="keyboard-row"><view wx:for="{{P}}" wx:for-item="p" wx:key="b" class="{{['key-item', p.c && 'highlight']}}" bindtap="{{p.d}}">{{p.a}}</view><view class="key-item delete" bindtap="{{Q}}"><text class="delete-text">删除</text></view></view></view></view><view wx:if="{{R}}" class="keyboard-section"><view class="keyboard-row number-row"><view wx:for="{{S}}" wx:for-item="n" wx:key="b" class="key-item" bindtap="{{n.c}}">{{n.a}}</view></view></view><view wx:if="{{T}}" class="keyboard-section"><view class="keyboard-qwerty"><view wx:for="{{U}}" wx:for-item="row" wx:key="d" class="keyboard-row"><view wx:for="{{row.a}}" wx:for-item="l" wx:key="b" class="{{['key-item', l.c && 'disabled']}}" bindtap="{{l.d}}">{{l.a}}</view><view wx:if="{{row.b}}" class="key-item delete" bindtap="{{row.c}}"><text class="delete-text">删除</text></view></view></view></view><view wx:if="{{V}}" class="keyboard-section"><view class="keyboard-row special-row"><view wx:for="{{W}}" wx:for-item="item" wx:key="b" class="{{['key-item', 'special', item.c]}}" bindtap="{{item.d}}">{{item.a}}</view><view wx:if="{{X}}" class="key-item done" bindtap="{{Y}}"><text class="done-text">完成</text></view></view></view></scroll-view></view></view></view>
|