stellar-ui-v2 1.37.0 → 1.38.0
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/.babelrc +8 -0
- package/App.vue +22 -0
- package/LICENSE +21 -0
- package/README.md +8 -8
- package/common/account.js +59 -0
- package/common/app-mixin.js +61 -0
- package/common/config.js +69 -0
- package/common/css/common.scss +155 -54
- package/common/css/vars.scss +51 -0
- package/common/request.js +38 -0
- package/common/token.js +13 -0
- package/common/uploadFile.js +21 -0
- package/common/usePosition.js +159 -0
- package/common/utils.js +303 -0
- package/components/item-view/item-view.vue +84 -0
- package/components/page-nav/page-nav.vue +245 -0
- package/components/t-color-picker/t-color-picker.vue +820 -0
- package/index.html +20 -0
- package/main.js +22 -0
- package/manifest.json +84 -0
- package/mp/animate-demo/animate-demo.vue +132 -0
- package/mp/badge-demo/badge-demo.vue +211 -0
- package/mp/barcode-demo/barcode-demo.vue +59 -0
- package/mp/button-demo/button-demo.vue +211 -0
- package/mp/calendar-demo/calendar-demo.vue +266 -0
- package/mp/checkbox-demo/checkbox-demo.vue +274 -0
- package/mp/code-input-demo/code-input-demo.vue +113 -0
- package/mp/color-demo/color-demo.vue +363 -0
- package/mp/date-picker-demo/date-picker-demo.vue +158 -0
- package/mp/drag-demo/drag-demo.vue +112 -0
- package/mp/dropdown-menu-demo/dropdown-menu-demo.vue +380 -0
- package/mp/icon-demo/icon-demo.vue +223 -0
- package/mp/icon-demo/icon-vertical-align.vue +236 -0
- package/mp/image-demo/image-demo.vue +140 -0
- package/mp/index/index.vue +588 -0
- package/mp/index-list-demo/index-list-demo.vue +111 -0
- package/mp/input-demo/input-demo.vue +230 -0
- package/mp/loading-demo/loading-demo.vue +71 -0
- package/mp/media-preview-demo/media-preview-demo.vue +139 -0
- package/mp/message-box-demo/message-box-demo.vue +200 -0
- package/mp/notice-bar-demo/notice-bar-demo.vue +107 -0
- package/mp/number-keyboard-demo/number-keyboard-demo.vue +138 -0
- package/mp/popup-demo/popup-demo.vue +351 -0
- package/mp/price-demo/price-demo.vue +163 -0
- package/mp/progress-demo/progress-demo.vue +219 -0
- package/mp/qrcode-demo/qrcode-demo.vue +74 -0
- package/mp/radio-demo/radio-demo.vue +276 -0
- package/mp/rate-demo/rate-demo.vue +112 -0
- package/mp/read-more-demo/read-more-demo.vue +118 -0
- package/mp/rich-text-demo/rich-text-demo.vue +58 -0
- package/mp/scroll-to-demo/scroll-to-demo.vue +65 -0
- package/mp/search-demo/search-demo.vue +225 -0
- package/mp/select-demo/select-demo.vue +245 -0
- package/mp/signature-demo/signature-demo.vue +74 -0
- package/mp/slider-demo/slider-demo.vue +197 -0
- package/mp/stepper-demo/stepper-demo.vue +201 -0
- package/mp/steps-demo/steps-demo.vue +119 -0
- package/mp/sticky-demo/sticky-demo.vue +64 -0
- package/mp/swipe-action-demo/swipe-action-demo.vue +223 -0
- package/mp/swiper-demo/swiper-demo.vue +120 -0
- package/mp/switch-demo/switch-demo.vue +108 -0
- package/mp/table-demo/table-demo.vue +647 -0
- package/mp/tabs-demo/tabs-demo.vue +518 -0
- package/mp/test-demo/test-demo.vue +248 -0
- package/mp/text-demo/text-demo.vue +109 -0
- package/mp/toast-demo/toast-demo.vue +189 -0
- package/mp/touch-swipe-demo/touch-swipe-demo.vue +97 -0
- package/mp/tour-demo/tour-demo.vue +103 -0
- package/mp/tree-demo/tree-demo.vue +156 -0
- package/mp/upload-demo/upload-demo.vue +176 -0
- package/mp/video-demo/video-demo.vue +61 -0
- package/package.json +27 -6
- package/pages/404/404.vue +194 -0
- package/pages/gitlab/gitlab.vue +50 -0
- package/pages/index/index.vue +36 -0
- package/pages/login/login.vue +149 -0
- package/pages/user/user.vue +277 -0
- package/pages.json +809 -0
- package/pc/index/components/append-link.vue +61 -0
- package/pc/index/components/comment.vue +347 -0
- package/pc/index/components/comp-nav.vue +135 -0
- package/pc/index/components/header-nav.vue +74 -0
- package/pc/index/components/version-select.vue +217 -0
- package/pc/index/iPhone13.png +0 -0
- package/pc/index/index.vue +554 -0
- package/pc/index/login.vue +146 -0
- package/pc/index/md2html.js +163 -0
- package/pc/index/mdStyle.scss +270 -0
- package/pc/index/sse.js +22 -0
- package/pc/markdown/devGuide/93-/347/273/204/344/273/266/346/233/277/346/215/242/350/247/204/350/214/203.md +18 -0
- package/pc/markdown/devGuide/94-/345/274/200/345/217/221/350/256/241/345/210/222.md +1083 -0
- package/pc/markdown/devGuide/95-/347/273/204/344/273/266/345/221/275/345/220/215/350/247/204/350/214/203.md +78 -0
- package/pc/markdown/devGuide/96-/347/273/204/344/273/266/347/244/272/344/276/213/346/250/241/346/235/277.md +49 -0
- package/pc/markdown/devGuide/99-/347/273/204/344/273/266/345/272/223/345/274/200/345/217/221/346/214/207/345/215/227.md +93 -0
- package/pc/markdown/devGuide/config.json +5 -0
- package/pc/markdown/handbook/1-/344/273/213/347/273/215.md +34 -0
- package/pc/markdown/handbook/2-/345/277/253/351/200/237/344/270/212/346/211/213.md +59 -0
- package/pc/markdown/handbook/3-/350/207/252/345/256/232/344/271/211/344/270/273/351/242/230.md +35 -0
- package/pc/markdown/handbook/4-/347/273/204/344/273/266/346/265/213/350/257/225.md +24 -0
- package/pc/markdown/handbook/97-/346/233/264/346/226/260/346/227/245/345/277/227.md +1773 -0
- package/pc/markdown/handbook/98-/345/205/266/344/273/226/346/217/222/344/273/266.md +28 -0
- package/pc/markdown/handbook/99-/345/217/213/346/203/205/351/223/276/346/216/245.md +71 -0
- package/pc/markdown/handbook/config.json +4 -0
- package/pc/markdown/index.js +75 -0
- package/pc/markdown/requireFiles.js +103 -0
- package/pc/service/app.js +33 -0
- package/pc/service/config.json +16 -0
- package/pc/service/datas/ste-rich-text.txt +2 -0
- package/pc/service/package-lock.json +1328 -0
- package/pc/service/package.json +27 -0
- package/pc/service/src/routers.js +100 -0
- package/pc/service/src/utils/Applet.js +7 -0
- package/pc/service/src/utils/Code.js +70 -0
- package/pc/service/src/utils/Data.js +84 -0
- package/pc/service/src/utils/Redis.js +35 -0
- package/pc/service/src/utils/User.js +65 -0
- package/pc/service/src/utils/Utils.js +31 -0
- package/pc/service/src/utils/getConfig.js +7 -0
- package/pc/service/webs/index.js +11 -0
- package/prettier.config.js +20 -0
- package/router.js +22 -0
- package/static/astronaut.svg +1 -0
- package/static/favicon.png +0 -0
- package/static/planet.svg +1 -0
- package/static/reset.png +0 -0
- package/static/tabbars/home.png +0 -0
- package/static/tabbars/home_fill.png +0 -0
- package/static/tabbars/people.png +0 -0
- package/static/tabbars/people_fill.png +0 -0
- package/template.h5.html +31 -0
- package/test/components/badge.test.js +75 -0
- package/test/components/barcode.test.js +22 -0
- package/test/components/button.test.js +52 -0
- package/test/components/calendar.test.js +105 -0
- package/test/components/checkbox.test.js +103 -0
- package/test/components/code-input.test.js +61 -0
- package/test/components/date-picker.test.js +18 -0
- package/test/components/drag.test.js +6 -0
- package/test/components/drop-down-menu.test.js +47 -0
- package/test/components/icon.test.js +65 -0
- package/test/components/image.test.js +64 -0
- package/test/components/index-list.test.js +77 -0
- package/test/components/input.test.js +82 -0
- package/test/components/loading.test.js +63 -0
- package/test/components/media-preview.test.js +46 -0
- package/test/components/message-box.test.js +118 -0
- package/test/components/notice-bar.test.js +59 -0
- package/test/components/number-keyboard.test.js +77 -0
- package/test/components/popup.test.js +20 -0
- package/test/components/price.test.js +116 -0
- package/test/components/progress.test.js +94 -0
- package/test/components/radio.test.js +98 -0
- package/test/components/rate.test.js +94 -0
- package/test/components/read-more.test.js +33 -0
- package/test/components/rich-text.test.js +20 -0
- package/test/components/scroll-to.test.js +54 -0
- package/test/components/search.test.js +107 -0
- package/test/components/select.test.js +111 -0
- package/test/components/signature.test.js +50 -0
- package/test/components/slider.test.js +69 -0
- package/test/components/stepper.test.js +113 -0
- package/test/components/steps.test.js +54 -0
- package/test/components/sticky.test.js +40 -0
- package/test/components/swipe-action.test.js +76 -0
- package/test/components/swiper.test.js +130 -0
- package/test/components/switch.test.js +53 -0
- package/test/components/tabs.test.js +273 -0
- package/test/components/text.test.js +17 -0
- package/test/components/touch-swipe.test.js +113 -0
- package/test/components/tour.test.js +146 -0
- package/test/components/tree.test.js +111 -0
- package/test/components/upload.test.js +116 -0
- package/test/components/video.test.js +48 -0
- package/test/methods.js +74 -0
- package/test/setup.js +32 -0
- package/test/utils/Color.test.js +26 -0
- package/test/utils/utils.test.js +42 -0
- package/uni.promisify.adaptor.js +10 -0
- package/uni.scss +4 -0
- package/uni_modules/stellar-ui/README.md +177 -0
- package/uni_modules/stellar-ui/common/css/common.scss +61 -0
- package/{components → uni_modules/stellar-ui/components}/ste-calendar/README.md +1 -1
- package/{components → uni_modules/stellar-ui/components}/ste-date-picker/ste-date-picker.vue +407 -407
- package/{components → uni_modules/stellar-ui/components}/ste-input/README.md +1 -1
- package/{components → uni_modules/stellar-ui/components}/ste-picker/ste-picker.vue +2 -2
- package/{components → uni_modules/stellar-ui/components}/ste-search/ste-search.vue +1 -1
- package/{components → uni_modules/stellar-ui/components}/ste-table/README.md +4 -4
- package/uni_modules/stellar-ui/package-lock.json +22 -0
- package/uni_modules/stellar-ui/package.json +18 -0
- package/vitest.config.js +14 -0
- package/vue.config.js +32 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-animate/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-animate/animate.scss +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-animate/ste-animate.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-badge/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-badge/ste-badge.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-barcode/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-barcode/encode2.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-barcode/ste-barcode.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-button/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-button/ste-button.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-calendar/self-date.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-calendar/ste-calendar.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-checkbox/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-checkbox/ste-checkbox.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-checkbox-group/ste-checkbox-group.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-code-input/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-code-input/ste-code-input.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-date-picker/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-drag/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-drag/ste-drag.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-dropdown-menu/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-dropdown-menu/ste-dropdown-menu.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-dropdown-menu-item/ste-dropdown-menu-item.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-icon/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-icon/iconfont.css +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-icon/ste-icon.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-image/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-image/ste-image.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-index-item/ste-index-item.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-index-list/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-index-list/ste-index-list.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-input/ste-input.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-loading/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-loading/ste-loading.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-media-preview/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-media-preview/TouchScaleing.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-media-preview/ste-media-preview.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-message-box/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-message-box/ste-message-box.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-message-box/ste-message-box.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-notice-bar/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-notice-bar/ste-notice-bar.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-number-keyboard/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-number-keyboard/keyboard.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-number-keyboard/ste-number-keyboard.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-popup/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-popup/ste-popup.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-price/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-price/ste-price.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-progress/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-progress/ste-progress.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-qrcode/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-qrcode/ste-qrcode.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-qrcode/uqrcode.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-radio/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-radio/ste-radio.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-radio-group/ste-radio-group.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-rate/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-rate/ste-rate.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-read-more/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-read-more/ste-read-more.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-rich-text/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-rich-text/ste-rich-text.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to/mixin.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to/ste-scroll-to.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to-item/ste-scroll-to-item.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-search/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-select/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-select/datapager.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-select/datetime.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-select/defaultDate.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-select/ste-select.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-signature/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-signature/ste-signature.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-slider/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-slider/ste-slider.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-step/ste-step.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-stepper/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-stepper/ste-stepper.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-steps/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-steps/ste-steps.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-sticky/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-sticky/ste-sticky.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-swipe-action/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-swipe-action/ste-swipe-action.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-swipe-action-group/ste-swipe-action-group.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-swiper/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-swiper/ste-swiper.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-swiper-item/ste-swiper-item.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-switch/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-switch/ste-switch.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tab/ste-tab.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table/common.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table/ste-table.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table/utils.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/checkbox-icon.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/common.scss +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/radio-icon.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/ste-table-column.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/sub-table.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/table-popover.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-table-column/var.scss +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tabs/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tabs/props.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tabs/ste-tabs.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-text/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-text/ste-text.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-toast/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-toast/ste-toast.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-toast/ste-toast.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe/TouchEvent.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe/ste-touch-swipe.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe-item/ste-touch-swipe-item.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tour/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tour/ste-tour.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tree/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-tree/ste-tree.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-upload/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-upload/ReadFile.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-upload/ste-upload.vue +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-video/README.md +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-video/props.js +0 -0
- /package/{components → uni_modules/stellar-ui/components}/ste-video/ste-video.vue +0 -0
- /package/{config → uni_modules/stellar-ui/config}/color.js +0 -0
- /package/{index.js → uni_modules/stellar-ui/index.js} +0 -0
- /package/{utils → uni_modules/stellar-ui/utils}/Color.js +0 -0
- /package/{utils → uni_modules/stellar-ui/utils}/System.js +0 -0
- /package/{utils → uni_modules/stellar-ui/utils}/dayjs.min.js +0 -0
- /package/{utils → uni_modules/stellar-ui/utils}/mixin.js +0 -0
- /package/{utils → uni_modules/stellar-ui/utils}/store.js +0 -0
- /package/{utils → uni_modules/stellar-ui/utils}/utils.js +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="page">
|
|
3
|
+
<page-nav :autoBack="true" backColor="#000" titleAlignment="2" title="复选框"></page-nav>
|
|
4
|
+
<view class="content">
|
|
5
|
+
<view class="description">
|
|
6
|
+
<view class="cmp-name">Checkbox 复选框</view>
|
|
7
|
+
<view class="cmp-desc">用于预设的一组选项中执行多项选择,并呈现选择结果。</view>
|
|
8
|
+
</view>
|
|
9
|
+
<view class="type-block">
|
|
10
|
+
<view>01 组件类型</view>
|
|
11
|
+
</view>
|
|
12
|
+
<view class="demo-item">
|
|
13
|
+
<view class="title">纵向排列</view>
|
|
14
|
+
<view class="item-block">
|
|
15
|
+
<ste-checkbox-group v-model="value20">
|
|
16
|
+
<ste-checkbox name="a">复选框a</ste-checkbox>
|
|
17
|
+
<ste-checkbox name="b">复选框b</ste-checkbox>
|
|
18
|
+
<ste-checkbox name="c">复选框c</ste-checkbox>
|
|
19
|
+
</ste-checkbox-group>
|
|
20
|
+
</view>
|
|
21
|
+
</view>
|
|
22
|
+
<view class="demo-item">
|
|
23
|
+
<view class="title">横向排列</view>
|
|
24
|
+
<view class="item-block checkbox-box">
|
|
25
|
+
<ste-checkbox-group v-model="value20" direction="row">
|
|
26
|
+
<ste-checkbox name="a">复选框a</ste-checkbox>
|
|
27
|
+
<ste-checkbox name="b">复选框b</ste-checkbox>
|
|
28
|
+
<ste-checkbox name="c">复选框c</ste-checkbox>
|
|
29
|
+
</ste-checkbox-group>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
<view class="type-block">
|
|
33
|
+
<view>02 组件状态</view>
|
|
34
|
+
</view>
|
|
35
|
+
<view class="demo-item">
|
|
36
|
+
<view class="title">禁用</view>
|
|
37
|
+
<view class="item-block checkbox-box">
|
|
38
|
+
<ste-checkbox v-model="value2" disabled>复选框1</ste-checkbox>
|
|
39
|
+
<ste-checkbox v-model="value3" disabled>复选框2</ste-checkbox>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
42
|
+
<view class="demo-item">
|
|
43
|
+
<view class="title">只读</view>
|
|
44
|
+
<view class="item-block checkbox-box">
|
|
45
|
+
<ste-checkbox v-model="value4" readonly>复选框1</ste-checkbox>
|
|
46
|
+
<ste-checkbox v-model="value5" readonly>复选框2</ste-checkbox>
|
|
47
|
+
</view>
|
|
48
|
+
</view>
|
|
49
|
+
<view class="type-block">
|
|
50
|
+
<view>03 组件样式</view>
|
|
51
|
+
</view>
|
|
52
|
+
<view class="demo-item">
|
|
53
|
+
<view class="title">自定义形状</view>
|
|
54
|
+
<view class="item-block checkbox-box">
|
|
55
|
+
<ste-checkbox v-model="value6">圆形</ste-checkbox>
|
|
56
|
+
<ste-checkbox v-model="value7" shape="square">方形</ste-checkbox>
|
|
57
|
+
</view>
|
|
58
|
+
</view>
|
|
59
|
+
<view class="demo-item">
|
|
60
|
+
<view class="title">自定义图标大小</view>
|
|
61
|
+
<view class="item-block checkbox-box">
|
|
62
|
+
<ste-checkbox v-model="value11" iconSize="60">60rpx</ste-checkbox>
|
|
63
|
+
</view>
|
|
64
|
+
</view>
|
|
65
|
+
<view class="demo-item">
|
|
66
|
+
<view class="title">自定义图标颜色</view>
|
|
67
|
+
<view class="item-block checkbox-box">
|
|
68
|
+
<ste-checkbox v-model="value12" checkedColor="#ee0a24">红色</ste-checkbox>
|
|
69
|
+
</view>
|
|
70
|
+
</view>
|
|
71
|
+
<view class="demo-item">
|
|
72
|
+
<view class="title">自定义图标</view>
|
|
73
|
+
<view class="item-block checkbox-box">
|
|
74
|
+
<ste-checkbox-group v-model="value13">
|
|
75
|
+
<ste-checkbox name="a">
|
|
76
|
+
<template #icon="{ slotProps }">
|
|
77
|
+
<ste-icon
|
|
78
|
+
code=""
|
|
79
|
+
size="50"
|
|
80
|
+
:color="slotProps.checked ? '#ee0a24' : '#000000'"
|
|
81
|
+
></ste-icon>
|
|
82
|
+
</template>
|
|
83
|
+
<template #default="{ slotProps }">
|
|
84
|
+
{{ slotProps.checked ? '已选中' : '未选中' }}
|
|
85
|
+
</template>
|
|
86
|
+
</ste-checkbox>
|
|
87
|
+
<ste-checkbox name="b">
|
|
88
|
+
<template #icon="{ slotProps }">
|
|
89
|
+
<ste-icon
|
|
90
|
+
code=""
|
|
91
|
+
size="50"
|
|
92
|
+
:color="slotProps.checked ? '#ee0a24' : '#000000'"
|
|
93
|
+
></ste-icon>
|
|
94
|
+
</template>
|
|
95
|
+
<template #default="{ slotProps }">
|
|
96
|
+
{{ slotProps.checked ? '已选中' : '未选中' }}
|
|
97
|
+
</template>
|
|
98
|
+
</ste-checkbox>
|
|
99
|
+
<ste-checkbox name="c" disabled>
|
|
100
|
+
<template #icon="{ slotProps }">
|
|
101
|
+
<ste-icon
|
|
102
|
+
code=""
|
|
103
|
+
size="50"
|
|
104
|
+
:color="slotProps.disabled ? '#eeeeee' : '#000000'"
|
|
105
|
+
></ste-icon>
|
|
106
|
+
</template>
|
|
107
|
+
<template #default="{ slotProps }">
|
|
108
|
+
{{ slotProps.disabled ? '禁止' : '未禁止' }}
|
|
109
|
+
</template>
|
|
110
|
+
</ste-checkbox>
|
|
111
|
+
<ste-checkbox name="d" readonly>
|
|
112
|
+
<template #icon="{ slotProps }">
|
|
113
|
+
<ste-icon
|
|
114
|
+
code=""
|
|
115
|
+
size="50"
|
|
116
|
+
:color="slotProps.readonly ? 'green' : '#000000'"
|
|
117
|
+
></ste-icon>
|
|
118
|
+
</template>
|
|
119
|
+
<template #default="{ slotProps }">
|
|
120
|
+
{{ slotProps.readonly ? '只读' : '未只读' }}
|
|
121
|
+
</template>
|
|
122
|
+
</ste-checkbox>
|
|
123
|
+
</ste-checkbox-group>
|
|
124
|
+
</view>
|
|
125
|
+
</view>
|
|
126
|
+
<view class="type-block">
|
|
127
|
+
<view>04 组件自定义</view>
|
|
128
|
+
</view>
|
|
129
|
+
<view class="demo-item">
|
|
130
|
+
<view class="title">左侧文本</view>
|
|
131
|
+
<view class="item-block checkbox-box">
|
|
132
|
+
<ste-checkbox v-model="value8">右边</ste-checkbox>
|
|
133
|
+
<ste-checkbox v-model="value9" textPosition="left">左边</ste-checkbox>
|
|
134
|
+
</view>
|
|
135
|
+
</view>
|
|
136
|
+
<view class="demo-item">
|
|
137
|
+
<view class="title">自定义文本</view>
|
|
138
|
+
<view class="item-block checkbox-box">
|
|
139
|
+
<ste-checkbox v-model="value14" textSize="50" textInactiveColor="green" textActiveColor="#d276a3">
|
|
140
|
+
复选框
|
|
141
|
+
</ste-checkbox>
|
|
142
|
+
</view>
|
|
143
|
+
</view>
|
|
144
|
+
<view class="demo-item">
|
|
145
|
+
<view class="title">禁用文本点击</view>
|
|
146
|
+
<view class="item-block checkbox-box">
|
|
147
|
+
<ste-checkbox v-model="value15" textDisabled>复选框</ste-checkbox>
|
|
148
|
+
</view>
|
|
149
|
+
</view>
|
|
150
|
+
<view class="demo-item">
|
|
151
|
+
<view class="title">回调事件</view>
|
|
152
|
+
<view class="item-block checkbox-box">
|
|
153
|
+
<ste-checkbox v-model="value16" @click="click1" @change="change">复选框</ste-checkbox>
|
|
154
|
+
<text>在click事件后,执行change事件</text>
|
|
155
|
+
<ste-checkbox v-model="value17" @click="click2" @change="change">复选框</ste-checkbox>
|
|
156
|
+
<text>在click事件后,阻止change事件</text>
|
|
157
|
+
</view>
|
|
158
|
+
</view>
|
|
159
|
+
<view class="demo-item">
|
|
160
|
+
<view class="title">复选框组</view>
|
|
161
|
+
<view class="item-block checkbox-box">
|
|
162
|
+
<ste-checkbox-group v-model="value18">
|
|
163
|
+
<ste-checkbox name="a">复选框a</ste-checkbox>
|
|
164
|
+
<ste-checkbox name="b">复选框b</ste-checkbox>
|
|
165
|
+
<ste-checkbox name="c">复选框c</ste-checkbox>
|
|
166
|
+
</ste-checkbox-group>
|
|
167
|
+
</view>
|
|
168
|
+
</view>
|
|
169
|
+
<view class="demo-item">
|
|
170
|
+
<view class="title">复选框组属性和复选框属性</view>
|
|
171
|
+
<view class="item-block checkbox-box">
|
|
172
|
+
<ste-checkbox-group v-model="value19" shape="square" textPosition="left">
|
|
173
|
+
<ste-checkbox name="a">复选框a</ste-checkbox>
|
|
174
|
+
<ste-checkbox name="b" disabled>复选框b</ste-checkbox>
|
|
175
|
+
<ste-checkbox name="c" shape="circle">复选框c</ste-checkbox>
|
|
176
|
+
</ste-checkbox-group>
|
|
177
|
+
</view>
|
|
178
|
+
</view>
|
|
179
|
+
<view class="demo-item">
|
|
180
|
+
<view class="title">限制最大可选数</view>
|
|
181
|
+
<view class="item-block checkbox-box">
|
|
182
|
+
<ste-checkbox-group v-model="value21" :max="2">
|
|
183
|
+
<ste-checkbox name="a">复选框a</ste-checkbox>
|
|
184
|
+
<ste-checkbox name="b">复选框b</ste-checkbox>
|
|
185
|
+
<ste-checkbox name="c">复选框c</ste-checkbox>
|
|
186
|
+
</ste-checkbox-group>
|
|
187
|
+
</view>
|
|
188
|
+
</view>
|
|
189
|
+
</view>
|
|
190
|
+
</view>
|
|
191
|
+
</template>
|
|
192
|
+
<script>
|
|
193
|
+
export default {
|
|
194
|
+
data() {
|
|
195
|
+
return {
|
|
196
|
+
value1: false,
|
|
197
|
+
value2: true,
|
|
198
|
+
value3: false,
|
|
199
|
+
value4: true,
|
|
200
|
+
value5: false,
|
|
201
|
+
value6: true,
|
|
202
|
+
value7: true,
|
|
203
|
+
value8: false,
|
|
204
|
+
value9: false,
|
|
205
|
+
value10: false,
|
|
206
|
+
value11: true,
|
|
207
|
+
value12: true,
|
|
208
|
+
value13: ['a'],
|
|
209
|
+
value14: false,
|
|
210
|
+
value15: false,
|
|
211
|
+
value16: false,
|
|
212
|
+
value17: false,
|
|
213
|
+
value18: [],
|
|
214
|
+
value19: [],
|
|
215
|
+
value20: [],
|
|
216
|
+
value21: [],
|
|
217
|
+
value22: [],
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
created() {},
|
|
221
|
+
methods: {
|
|
222
|
+
click1(value) {
|
|
223
|
+
this.$showToast({
|
|
224
|
+
icon: 'none',
|
|
225
|
+
title: `点击:${value} 复选框的值`,
|
|
226
|
+
});
|
|
227
|
+
},
|
|
228
|
+
click2(value, allowStop, resolve) {
|
|
229
|
+
this.$showToast({
|
|
230
|
+
icon: 'none',
|
|
231
|
+
title: `点击:${value} 复选框的值`,
|
|
232
|
+
});
|
|
233
|
+
// 阻止change事件
|
|
234
|
+
allowStop();
|
|
235
|
+
},
|
|
236
|
+
change(value) {
|
|
237
|
+
setTimeout(() => {
|
|
238
|
+
this.$showToast({
|
|
239
|
+
icon: 'none',
|
|
240
|
+
title: `改变:${value} 复选框的值`,
|
|
241
|
+
});
|
|
242
|
+
}, 1000);
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
</script>
|
|
247
|
+
|
|
248
|
+
<style lang="scss" scoped>
|
|
249
|
+
.page {
|
|
250
|
+
.checkbox-box {
|
|
251
|
+
flex-direction: column !important;
|
|
252
|
+
row-gap: 20rpx;
|
|
253
|
+
align-items: flex-start !important;
|
|
254
|
+
justify-content: center;
|
|
255
|
+
}
|
|
256
|
+
color: #0009;
|
|
257
|
+
.content {
|
|
258
|
+
background-color: #f5f5f5;
|
|
259
|
+
padding: 0;
|
|
260
|
+
.description,
|
|
261
|
+
.type-block {
|
|
262
|
+
padding: 0 40rpx;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
.title {
|
|
266
|
+
margin: 0;
|
|
267
|
+
padding: 0 40rpx;
|
|
268
|
+
}
|
|
269
|
+
.item-block {
|
|
270
|
+
background-color: #ffffff;
|
|
271
|
+
padding: 18rpx 40rpx;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
</style>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="page">
|
|
3
|
+
<page-nav :autoBack="true" backColor="#000" titleAlignment="2" title="验证码输入组件"></page-nav>
|
|
4
|
+
<view class="content">
|
|
5
|
+
<view class="description">
|
|
6
|
+
<view class="cmp-name">CodeInput 验证码输入</view>
|
|
7
|
+
<view class="cmp-desc">用于验证码输入或短密码输入</view>
|
|
8
|
+
</view>
|
|
9
|
+
<view class="demo-item">
|
|
10
|
+
<view class="type-block">
|
|
11
|
+
<view>01 组件类型</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view class="title">基础使用</view>
|
|
14
|
+
<view class="item-block">
|
|
15
|
+
<view style="width: 100%">
|
|
16
|
+
<ste-code-input :maxlength="4" @change="change" @finish="finish"></ste-code-input>
|
|
17
|
+
</view>
|
|
18
|
+
<view style="width: 100%">
|
|
19
|
+
<ste-code-input :maxlength="4" borderColor="rgba(0, 0, 0,0)"></ste-code-input>
|
|
20
|
+
</view>
|
|
21
|
+
</view>
|
|
22
|
+
</view>
|
|
23
|
+
<view class="demo-item">
|
|
24
|
+
<view class="title">横线模式</view>
|
|
25
|
+
<view class="item-block">
|
|
26
|
+
<view>
|
|
27
|
+
<ste-code-input mode="line" :maxlength="4"></ste-code-input>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
<view class="demo-item">
|
|
32
|
+
<view class="title">设置长度</view>
|
|
33
|
+
<view class="item-block">
|
|
34
|
+
<view>
|
|
35
|
+
<ste-code-input :maxlength="5"></ste-code-input>
|
|
36
|
+
</view>
|
|
37
|
+
</view>
|
|
38
|
+
</view>
|
|
39
|
+
<view class="demo-item">
|
|
40
|
+
<view class="title">设置间距</view>
|
|
41
|
+
<view class="item-block">
|
|
42
|
+
<view>
|
|
43
|
+
<ste-code-input mode="box" :space="0" :maxlength="4"></ste-code-input>
|
|
44
|
+
</view>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
47
|
+
<view class="type-block">
|
|
48
|
+
<view>02 组件样式</view>
|
|
49
|
+
</view>
|
|
50
|
+
<view class="demo-item">
|
|
51
|
+
<view class="title">调整颜色</view>
|
|
52
|
+
<view class="item-block">
|
|
53
|
+
<view style="width: 100%">
|
|
54
|
+
<ste-code-input :maxlength="4" fontColor="#f56c6c" borderColor="#f56c6c"></ste-code-input>
|
|
55
|
+
</view>
|
|
56
|
+
<view style="width: 100%">
|
|
57
|
+
<ste-code-input
|
|
58
|
+
mode="line"
|
|
59
|
+
:maxlength="4"
|
|
60
|
+
fontColor="#0090FF"
|
|
61
|
+
borderColor="#0090FF"
|
|
62
|
+
></ste-code-input>
|
|
63
|
+
</view>
|
|
64
|
+
</view>
|
|
65
|
+
</view>
|
|
66
|
+
<view class="demo-item">
|
|
67
|
+
<view class="title">自定义显示</view>
|
|
68
|
+
<view class="item-block">
|
|
69
|
+
<view style="width: 100%">
|
|
70
|
+
<ste-code-input v-model="value2" formatter="·" fontSize="100" :maxlength="4"></ste-code-input>
|
|
71
|
+
</view>
|
|
72
|
+
<view style="width: 100%">
|
|
73
|
+
<ste-code-input v-model="value3" mode="line" formatter="*" :maxlength="4"></ste-code-input>
|
|
74
|
+
</view>
|
|
75
|
+
</view>
|
|
76
|
+
</view>
|
|
77
|
+
</view>
|
|
78
|
+
</view>
|
|
79
|
+
</template>
|
|
80
|
+
<script>
|
|
81
|
+
export default {
|
|
82
|
+
data() {
|
|
83
|
+
return {
|
|
84
|
+
value1: '123',
|
|
85
|
+
value2: '1',
|
|
86
|
+
value3: '12',
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
created() {},
|
|
90
|
+
methods: {
|
|
91
|
+
change(e) {
|
|
92
|
+
console.log('change', e);
|
|
93
|
+
},
|
|
94
|
+
finish(e) {
|
|
95
|
+
console.log('finish', e);
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
</script>
|
|
100
|
+
|
|
101
|
+
<style lang="scss" scoped>
|
|
102
|
+
.page {
|
|
103
|
+
.content {
|
|
104
|
+
.demo-item {
|
|
105
|
+
.item-block {
|
|
106
|
+
> view:not(:last-child) {
|
|
107
|
+
margin: 0 16rpx 32rpx 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
</style>
|