stellar-ui-plus 1.16.18
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 +176 -0
- package/common/css/common.scss +19 -0
- package/common/useProps.js +9 -0
- package/components/ste-animate/ATTRIBUTES.md +10 -0
- package/components/ste-animate/README.md +115 -0
- package/components/ste-animate/animate.scss +247 -0
- package/components/ste-animate/config.json +5 -0
- package/components/ste-animate/props.ts +9 -0
- package/components/ste-animate/ste-animate.easycom.json +39 -0
- package/components/ste-animate/ste-animate.scss +113 -0
- package/components/ste-animate/ste-animate.vue +67 -0
- package/components/ste-badge/ATTRIBUTES.md +17 -0
- package/components/ste-badge/README.md +162 -0
- package/components/ste-badge/config.json +5 -0
- package/components/ste-badge/props.ts +17 -0
- package/components/ste-badge/ste-badge.easycom.json +96 -0
- package/components/ste-badge/ste-badge.vue +157 -0
- package/components/ste-barcode/ATTRIBUTES.md +14 -0
- package/components/ste-barcode/README.md +28 -0
- package/components/ste-barcode/config.json +5 -0
- package/components/ste-barcode/encode.ts +317 -0
- package/components/ste-barcode/props.ts +7 -0
- package/components/ste-barcode/ste-barcode.easycom.json +44 -0
- package/components/ste-barcode/ste-barcode.vue +152 -0
- package/components/ste-button/ATTRIBUTES.md +32 -0
- package/components/ste-button/README.md +119 -0
- package/components/ste-button/config.json +5 -0
- package/components/ste-button/props.ts +21 -0
- package/components/ste-button/ste-button.easycom.json +168 -0
- package/components/ste-button/ste-button.vue +275 -0
- package/components/ste-calendar/ATTRIBUTES.md +31 -0
- package/components/ste-calendar/README.md +241 -0
- package/components/ste-calendar/config.json +5 -0
- package/components/ste-calendar/date.ts +110 -0
- package/components/ste-calendar/props.ts +26 -0
- package/components/ste-calendar/ste-calendar.easycom.json +172 -0
- package/components/ste-calendar/ste-calendar.vue +376 -0
- package/components/ste-calendar/useData.ts +30 -0
- package/components/ste-checkbox/ATTRIBUTES.md +25 -0
- package/components/ste-checkbox/README.md +302 -0
- package/components/ste-checkbox/config.json +5 -0
- package/components/ste-checkbox/props.ts +33 -0
- package/components/ste-checkbox/ste-checkbox.easycom.json +151 -0
- package/components/ste-checkbox/ste-checkbox.vue +206 -0
- package/components/ste-checkbox/type.d.ts +2 -0
- package/components/ste-checkbox-group/props.ts +34 -0
- package/components/ste-checkbox-group/ste-checkbox-group.vue +34 -0
- package/components/ste-code-input/ATTRIBUTES.md +22 -0
- package/components/ste-code-input/README.md +56 -0
- package/components/ste-code-input/config.json +5 -0
- package/components/ste-code-input/props.ts +19 -0
- package/components/ste-code-input/ste-code-input.easycom.json +99 -0
- package/components/ste-code-input/ste-code-input.vue +222 -0
- package/components/ste-date-picker/ATTRIBUTES.md +25 -0
- package/components/ste-date-picker/README.md +119 -0
- package/components/ste-date-picker/config.json +5 -0
- package/components/ste-date-picker/props.ts +62 -0
- package/components/ste-date-picker/ste-date-picker.easycom.json +137 -0
- package/components/ste-date-picker/ste-date-picker.vue +290 -0
- package/components/ste-date-picker/types.d.ts +3 -0
- package/components/ste-drag/ATTRIBUTES.md +13 -0
- package/components/ste-drag/README.md +88 -0
- package/components/ste-drag/config.json +5 -0
- package/components/ste-drag/props.ts +10 -0
- package/components/ste-drag/ste-drag.easycom.json +50 -0
- package/components/ste-drag/ste-drag.vue +172 -0
- package/components/ste-dropdown-menu/ATTRIBUTES.md +22 -0
- package/components/ste-dropdown-menu/README.md +325 -0
- package/components/ste-dropdown-menu/config.json +5 -0
- package/components/ste-dropdown-menu/constans.ts +4 -0
- package/components/ste-dropdown-menu/props.ts +30 -0
- package/components/ste-dropdown-menu/ste-dropdown-menu.easycom.json +111 -0
- package/components/ste-dropdown-menu/ste-dropdown-menu.scss +99 -0
- package/components/ste-dropdown-menu/ste-dropdown-menu.vue +223 -0
- package/components/ste-dropdown-menu-item/props.ts +17 -0
- package/components/ste-dropdown-menu-item/ste-dropdown-menu-item.scss +61 -0
- package/components/ste-dropdown-menu-item/ste-dropdown-menu-item.vue +84 -0
- package/components/ste-dropdown-menu-item/type.d.ts +4 -0
- package/components/ste-icon/ATTRIBUTES.md +19 -0
- package/components/ste-icon/README.md +72 -0
- package/components/ste-icon/config.json +5 -0
- package/components/ste-icon/iconfont.css +22 -0
- package/components/ste-icon/props.ts +14 -0
- package/components/ste-icon/ste-icon.easycom.json +71 -0
- package/components/ste-icon/ste-icon.vue +80 -0
- package/components/ste-image/ATTRIBUTES.md +21 -0
- package/components/ste-image/README.md +118 -0
- package/components/ste-image/config.json +5 -0
- package/components/ste-image/props.ts +15 -0
- package/components/ste-image/ste-image.easycom.json +189 -0
- package/components/ste-image/ste-image.vue +146 -0
- package/components/ste-index-item/props.ts +4 -0
- package/components/ste-index-item/ste-index-item.vue +83 -0
- package/components/ste-index-list/ATTRIBUTES.md +15 -0
- package/components/ste-index-list/README.md +138 -0
- package/components/ste-index-list/config.json +5 -0
- package/components/ste-index-list/props.ts +17 -0
- package/components/ste-index-list/ste-index-list.easycom.json +48 -0
- package/components/ste-index-list/ste-index-list.vue +109 -0
- package/components/ste-input/ATTRIBUTES.md +37 -0
- package/components/ste-input/README.md +130 -0
- package/components/ste-input/config.json +5 -0
- package/components/ste-input/props.ts +46 -0
- package/components/ste-input/ste-input.easycom.json +282 -0
- package/components/ste-input/ste-input.scss +124 -0
- package/components/ste-input/ste-input.vue +221 -0
- package/components/ste-loading/ATTRIBUTES.md +11 -0
- package/components/ste-loading/README.md +74 -0
- package/components/ste-loading/config.json +5 -0
- package/components/ste-loading/props.ts +8 -0
- package/components/ste-loading/ste-loading.easycom.json +54 -0
- package/components/ste-loading/ste-loading.vue +127 -0
- package/components/ste-media-preview/ATTRIBUTES.md +20 -0
- package/components/ste-media-preview/README.md +252 -0
- package/components/ste-media-preview/TouchScaleing.ts +117 -0
- package/components/ste-media-preview/config.json +5 -0
- package/components/ste-media-preview/props.ts +12 -0
- package/components/ste-media-preview/ste-media-preview.easycom.json +88 -0
- package/components/ste-media-preview/ste-media-preview.vue +201 -0
- package/components/ste-media-preview/useData.ts +63 -0
- package/components/ste-message-box/ATTRIBUTES.md +6 -0
- package/components/ste-message-box/README.md +222 -0
- package/components/ste-message-box/config.json +5 -0
- package/components/ste-message-box/constants.ts +25 -0
- package/components/ste-message-box/ste-message-box.easycom.json +14 -0
- package/components/ste-message-box/ste-message-box.ts +1 -0
- package/components/ste-message-box/ste-message-box.vue +355 -0
- package/components/ste-message-box/use-message-box.ts +26 -0
- package/components/ste-message-box/useData.ts +56 -0
- package/components/ste-notice-bar/ATTRIBUTES.md +22 -0
- package/components/ste-notice-bar/README.md +124 -0
- package/components/ste-notice-bar/config.json +5 -0
- package/components/ste-notice-bar/props.ts +15 -0
- package/components/ste-notice-bar/ste-notice-bar.easycom.json +109 -0
- package/components/ste-notice-bar/ste-notice-bar.vue +262 -0
- package/components/ste-number-keyboard/ATTRIBUTES.md +31 -0
- package/components/ste-number-keyboard/KeyboardVue.vue +142 -0
- package/components/ste-number-keyboard/README.md +192 -0
- package/components/ste-number-keyboard/config.json +5 -0
- package/components/ste-number-keyboard/props.ts +35 -0
- package/components/ste-number-keyboard/ste-number-keyboard.easycom.json +177 -0
- package/components/ste-number-keyboard/ste-number-keyboard.vue +81 -0
- package/components/ste-number-keyboard/useData.ts +144 -0
- package/components/ste-picker/props.ts +16 -0
- package/components/ste-picker/ste-picker.vue +194 -0
- package/components/ste-popup/ATTRIBUTES.md +24 -0
- package/components/ste-popup/README.md +135 -0
- package/components/ste-popup/config.json +6 -0
- package/components/ste-popup/event.ts +0 -0
- package/components/ste-popup/props.ts +19 -0
- package/components/ste-popup/ste-popup.easycom.json +122 -0
- package/components/ste-popup/ste-popup.vue +253 -0
- package/components/ste-price/ATTRIBUTES.md +26 -0
- package/components/ste-price/README.md +110 -0
- package/components/ste-price/config.json +5 -0
- package/components/ste-price/props.ts +23 -0
- package/components/ste-price/ste-price.easycom.json +154 -0
- package/components/ste-price/ste-price.vue +148 -0
- package/components/ste-progress/ATTRIBUTES.md +17 -0
- package/components/ste-progress/README.md +88 -0
- package/components/ste-progress/config.json +5 -0
- package/components/ste-progress/props.ts +16 -0
- package/components/ste-progress/ste-progress.easycom.json +80 -0
- package/components/ste-progress/ste-progress.vue +135 -0
- package/components/ste-qrcode/ATTRIBUTES.md +16 -0
- package/components/ste-qrcode/README.md +34 -0
- package/components/ste-qrcode/config.json +5 -0
- package/components/ste-qrcode/props.ts +16 -0
- package/components/ste-qrcode/ste-qrcode.easycom.json +56 -0
- package/components/ste-qrcode/ste-qrcode.vue +134 -0
- package/components/ste-qrcode/uqrcode.d.ts +57 -0
- package/components/ste-qrcode/uqrcode.js +34 -0
- package/components/ste-radio/ATTRIBUTES.md +25 -0
- package/components/ste-radio/README.md +260 -0
- package/components/ste-radio/config.json +5 -0
- package/components/ste-radio/props.ts +33 -0
- package/components/ste-radio/ste-radio.easycom.json +150 -0
- package/components/ste-radio/ste-radio.vue +188 -0
- package/components/ste-radio/type.d.ts +2 -0
- package/components/ste-radio-group/props.ts +33 -0
- package/components/ste-radio-group/ste-radio-group.vue +34 -0
- package/components/ste-rate/ATTRIBUTES.md +21 -0
- package/components/ste-rate/README.md +97 -0
- package/components/ste-rate/config.json +5 -0
- package/components/ste-rate/props.ts +16 -0
- package/components/ste-rate/ste-rate.easycom.json +85 -0
- package/components/ste-rate/ste-rate.vue +143 -0
- package/components/ste-read-more/ATTRIBUTES.md +16 -0
- package/components/ste-read-more/README.md +93 -0
- package/components/ste-read-more/config.json +5 -0
- package/components/ste-read-more/props.ts +9 -0
- package/components/ste-read-more/ste-read-more.easycom.json +54 -0
- package/components/ste-read-more/ste-read-more.vue +106 -0
- package/components/ste-rich-text/ATTRIBUTES.md +8 -0
- package/components/ste-rich-text/README.md +26 -0
- package/components/ste-rich-text/config.json +5 -0
- package/components/ste-rich-text/props.ts +8 -0
- package/components/ste-rich-text/ste-rich-text.easycom.json +40 -0
- package/components/ste-rich-text/ste-rich-text.vue +33 -0
- package/components/ste-scroll-to/ATTRIBUTES.md +11 -0
- package/components/ste-scroll-to/README.md +47 -0
- package/components/ste-scroll-to/config.json +5 -0
- package/components/ste-scroll-to/props.ts +17 -0
- package/components/ste-scroll-to/ste-scroll-to.easycom.json +25 -0
- package/components/ste-scroll-to/ste-scroll-to.vue +42 -0
- package/components/ste-scroll-to/useData.ts +214 -0
- package/components/ste-scroll-to-item/ste-scroll-to-item.vue +24 -0
- package/components/ste-search/ATTRIBUTES.md +39 -0
- package/components/ste-search/README.md +232 -0
- package/components/ste-search/config.json +5 -0
- package/components/ste-search/props.ts +124 -0
- package/components/ste-search/ste-search.easycom.json +232 -0
- package/components/ste-search/ste-search.vue +379 -0
- package/components/ste-search/useData.ts +34 -0
- package/components/ste-select/ATTRIBUTES.md +39 -0
- package/components/ste-select/README.md +324 -0
- package/components/ste-select/config.json +5 -0
- package/components/ste-select/datapager.vue +54 -0
- package/components/ste-select/datetime.vue +109 -0
- package/components/ste-select/defaultDate.ts +138 -0
- package/components/ste-select/props.ts +67 -0
- package/components/ste-select/ste-select.easycom.json +287 -0
- package/components/ste-select/ste-select.vue +437 -0
- package/components/ste-select/useData.ts +471 -0
- package/components/ste-signature/ATTRIBUTES.md +18 -0
- package/components/ste-signature/README.md +97 -0
- package/components/ste-signature/config.json +5 -0
- package/components/ste-signature/props.ts +12 -0
- package/components/ste-signature/ste-signature.easycom.json +74 -0
- package/components/ste-signature/ste-signature.vue +183 -0
- package/components/ste-signature/types.d.ts +4 -0
- package/components/ste-slider/ATTRIBUTES.md +25 -0
- package/components/ste-slider/README.md +149 -0
- package/components/ste-slider/config.json +5 -0
- package/components/ste-slider/props.ts +32 -0
- package/components/ste-slider/ste-slider.easycom.json +128 -0
- package/components/ste-slider/ste-slider.scss +150 -0
- package/components/ste-slider/ste-slider.vue +293 -0
- package/components/ste-slider/type.d.ts +4 -0
- package/components/ste-slider/useData.ts +79 -0
- package/components/ste-step/props.ts +10 -0
- package/components/ste-step/ste-step.scss +104 -0
- package/components/ste-step/ste-step.vue +122 -0
- package/components/ste-stepper/ATTRIBUTES.md +33 -0
- package/components/ste-stepper/README.md +172 -0
- package/components/ste-stepper/config.json +5 -0
- package/components/ste-stepper/props.ts +41 -0
- package/components/ste-stepper/ste-stepper.easycom.json +220 -0
- package/components/ste-stepper/ste-stepper.vue +249 -0
- package/components/ste-steps/ATTRIBUTES.md +12 -0
- package/components/ste-steps/README.md +139 -0
- package/components/ste-steps/config.json +5 -0
- package/components/ste-steps/props.ts +18 -0
- package/components/ste-steps/ste-steps.easycom.json +46 -0
- package/components/ste-steps/ste-steps.vue +44 -0
- package/components/ste-sticky/ATTRIBUTES.md +15 -0
- package/components/ste-sticky/README.md +56 -0
- package/components/ste-sticky/config.json +5 -0
- package/components/ste-sticky/props.ts +7 -0
- package/components/ste-sticky/ste-sticky.easycom.json +48 -0
- package/components/ste-sticky/ste-sticky.vue +88 -0
- package/components/ste-swipe-action/ATTRIBUTES.md +16 -0
- package/components/ste-swipe-action/README.md +195 -0
- package/components/ste-swipe-action/config.json +5 -0
- package/components/ste-swipe-action/props.ts +23 -0
- package/components/ste-swipe-action/ste-swipe-action.easycom.json +74 -0
- package/components/ste-swipe-action/ste-swipe-action.vue +138 -0
- package/components/ste-swipe-action/useData.ts +204 -0
- package/components/ste-swipe-action-group/ATTRIBUTES.md +17 -0
- package/components/ste-swipe-action-group/props.ts +22 -0
- package/components/ste-swipe-action-group/ste-swipe-action-group.easycom.json +90 -0
- package/components/ste-swipe-action-group/ste-swipe-action-group.vue +57 -0
- package/components/ste-swiper/ATTRIBUTES.md +24 -0
- package/components/ste-swiper/README.md +156 -0
- package/components/ste-swiper/config.json +5 -0
- package/components/ste-swiper/props.ts +41 -0
- package/components/ste-swiper/ste-swiper.easycom.json +123 -0
- package/components/ste-swiper/ste-swiper.vue +98 -0
- package/components/ste-swiper/useData.ts +365 -0
- package/components/ste-swiper-item/ste-swiper-item.vue +41 -0
- package/components/ste-switch/ATTRIBUTES.md +17 -0
- package/components/ste-switch/README.md +105 -0
- package/components/ste-switch/config.json +5 -0
- package/components/ste-switch/props.ts +9 -0
- package/components/ste-switch/ste-switch.easycom.json +60 -0
- package/components/ste-switch/ste-switch.vue +96 -0
- package/components/ste-tab/ATTRIBUTES.md +14 -0
- package/components/ste-tab/props.ts +25 -0
- package/components/ste-tab/ste-tab.easycom.json +56 -0
- package/components/ste-tab/ste-tab.vue +26 -0
- package/components/ste-table/ATTRIBUTES.md +41 -0
- package/components/ste-table/README.md +638 -0
- package/components/ste-table/config.json +5 -0
- package/components/ste-table/props.ts +72 -0
- package/components/ste-table/ste-table.easycom.json +188 -0
- package/components/ste-table/ste-table.vue +427 -0
- package/components/ste-table/types.d.ts +3 -0
- package/components/ste-table/useData.ts +233 -0
- package/components/ste-table/utils.ts +11 -0
- package/components/ste-table-column/checkbox-icon.vue +35 -0
- package/components/ste-table-column/common.scss +52 -0
- package/components/ste-table-column/props.ts +18 -0
- package/components/ste-table-column/radio-icon.vue +99 -0
- package/components/ste-table-column/ste-table-column.vue +169 -0
- package/components/ste-table-column/var.scss +1 -0
- package/components/ste-tabs/ATTRIBUTES.md +52 -0
- package/components/ste-tabs/README.md +165 -0
- package/components/ste-tabs/config.json +5 -0
- package/components/ste-tabs/props.ts +133 -0
- package/components/ste-tabs/ste-tabs.easycom.json +278 -0
- package/components/ste-tabs/ste-tabs.vue +447 -0
- package/components/ste-tabs/useData.ts +364 -0
- package/components/ste-text/ATTRIBUTES.md +9 -0
- package/components/ste-text/README.md +58 -0
- package/components/ste-text/config.json +6 -0
- package/components/ste-text/props.ts +10 -0
- package/components/ste-text/ste-text.easycom.json +30 -0
- package/components/ste-text/ste-text.vue +46 -0
- package/components/ste-toast/ATTRIBUTES.md +15 -0
- package/components/ste-toast/README.md +222 -0
- package/components/ste-toast/config.json +5 -0
- package/components/ste-toast/props.ts +7 -0
- package/components/ste-toast/ste-toast.easycom.json +73 -0
- package/components/ste-toast/ste-toast.vue +209 -0
- package/components/ste-toast/use-toast.ts +26 -0
- package/components/ste-touch-swipe/ATTRIBUTES.md +18 -0
- package/components/ste-touch-swipe/README.md +89 -0
- package/components/ste-touch-swipe/TouchEvent.ts +79 -0
- package/components/ste-touch-swipe/config.json +5 -0
- package/components/ste-touch-swipe/props.ts +23 -0
- package/components/ste-touch-swipe/ste-touch-swipe.easycom.json +83 -0
- package/components/ste-touch-swipe/ste-touch-swipe.vue +283 -0
- package/components/ste-touch-swipe/useData.ts +51 -0
- package/components/ste-touch-swipe-item/ste-touch-swipe-item.vue +32 -0
- package/components/ste-tour/ATTRIBUTES.md +26 -0
- package/components/ste-tour/README.md +134 -0
- package/components/ste-tour/config.json +5 -0
- package/components/ste-tour/props.ts +45 -0
- package/components/ste-tour/ste-tour.easycom.json +120 -0
- package/components/ste-tour/ste-tour.vue +152 -0
- package/components/ste-tour/useData.ts +220 -0
- package/components/ste-tree/ATTRIBUTES.md +19 -0
- package/components/ste-tree/README.md +217 -0
- package/components/ste-tree/config.json +5 -0
- package/components/ste-tree/props.ts +24 -0
- package/components/ste-tree/ste-tree.easycom.json +106 -0
- package/components/ste-tree/ste-tree.vue +140 -0
- package/components/ste-tree/useData.ts +219 -0
- package/components/ste-upload/ATTRIBUTES.md +35 -0
- package/components/ste-upload/README.md +208 -0
- package/components/ste-upload/ReadFile.ts +305 -0
- package/components/ste-upload/config.json +5 -0
- package/components/ste-upload/props.ts +25 -0
- package/components/ste-upload/ste-upload.easycom.json +267 -0
- package/components/ste-upload/ste-upload.vue +386 -0
- package/components/ste-upload/useData.ts +46 -0
- package/components/ste-video/ATTRIBUTES.md +34 -0
- package/components/ste-video/README.md +48 -0
- package/components/ste-video/config.json +5 -0
- package/components/ste-video/props.ts +86 -0
- package/components/ste-video/ste-video.easycom.json +226 -0
- package/components/ste-video/ste-video.scss +201 -0
- package/components/ste-video/ste-video.vue +390 -0
- package/components/ste-video/types.d.ts +4 -0
- package/components/ste-video/useData.ts +140 -0
- package/composables.ts +2 -0
- package/config/color.ts +16 -0
- package/config/index.ts +48 -0
- package/index.ts +118 -0
- package/package.json +22 -0
- package/store/color.ts +24 -0
- package/store/index.ts +12 -0
- package/store/message-box.ts +54 -0
- package/store/toast.ts +50 -0
- package/types/components.d.ts +124 -0
- package/types/event.d.ts +51 -0
- package/types/index.d.ts +112 -0
- package/types/refComponents.d.ts +118 -0
- package/utils/Color.ts +66 -0
- package/utils/System.ts +114 -0
- package/utils/mixin.ts +122 -0
- package/utils/utils.ts +520 -0
package/README.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img alt="logo" src="https://image.whzb.com/chain/StellarUI/logo.png" width="200">
|
|
3
|
+
</p>
|
|
4
|
+
<h1 align="center">StellarUI-Plus</h1>
|
|
5
|
+
|
|
6
|
+
<p align="center">📱 一个基于vue3构建,打造的uni-app组件库</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
🚀 <a href="https://stellar-ui.intecloud.com.cn/plus/#/">文档网站</a>
|
|
10
|
+
|
|
11
|
+
## ✨ 特性
|
|
12
|
+
|
|
13
|
+
- 🎯 多平台覆盖,支持 微信小程序、支付宝小程序、H5、App.
|
|
14
|
+
- 🚀 40+ 个高质量组件,覆盖移动端主流场景.
|
|
15
|
+
- 📖 提供丰富的文档和组件示例.
|
|
16
|
+
- 🎨 支持修改 CSS 变量实现主题定制.
|
|
17
|
+
|
|
18
|
+
## 📱 预览
|
|
19
|
+
|
|
20
|
+
扫描二维码访问演示,注意:因微信审核机制限制,当前的微信小程序示例可能不是最新版本,可以 clone 代码到本地预览。
|
|
21
|
+
|
|
22
|
+
<p style="display:flex;gap:24px">
|
|
23
|
+
<img src="https://image.whzb.com/chain/StellarUI/%E5%BE%AE%E4%BF%A1.jpg" width="200" height="200"/>
|
|
24
|
+
<img src="https://image.whzb.com/chain/StellarUI/%E6%94%AF%E4%BB%98%E5%AE%9D.png" width="200" height="200" />
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
## 平台支持
|
|
28
|
+
|
|
29
|
+
| App | H5应用 | 微信小程序 | 支付宝小程序 | 百度小程序 | 字节小程序 | QQ小程序 |
|
|
30
|
+
| :-: | :----: | :--------: | :----------: | :--------: | :--------: | :------: |
|
|
31
|
+
| √ | √ | √ | √ | × | × | × |
|
|
32
|
+
|
|
33
|
+
## 安装
|
|
34
|
+
|
|
35
|
+
```bash [npm]
|
|
36
|
+
npm install stellar-ui-plus -S
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 快速上手
|
|
40
|
+
|
|
41
|
+
详细说明见 [快速上手](https://stellar-ui.intecloud.com.cn/plus/#/?active=handbook-%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B)。
|
|
42
|
+
|
|
43
|
+
## 优秀案例
|
|
44
|
+
|
|
45
|
+
我们非常欢迎大家一起贡献优秀的 Demo 与案例,欢迎在此 [issue](https://github.com/wuhanshuzhiyun/stellar-ui-plus/issues/1) 提交案例。
|
|
46
|
+
|
|
47
|
+
<table boder="0">
|
|
48
|
+
<tr>
|
|
49
|
+
<td>
|
|
50
|
+
<img width="250" src="https://image.whzb.com/chain/StellarUI/头像/邻里购.png" />
|
|
51
|
+
<p>邻里购</p>
|
|
52
|
+
<p>中百邻里购是中百旗下电商平台,主营蔬果、肉蛋、粮油、酒水、休食、家清、百货等,提供外卖、自提、包邮等商品服务,构建邻里生活服务圈。</p>
|
|
53
|
+
</td>
|
|
54
|
+
<td>
|
|
55
|
+
<img width="250" src="https://image.whzb.com/chain/StellarUI/头像/百荟.png" />
|
|
56
|
+
<p>抱抱生活</p>
|
|
57
|
+
<p align="justify">抱抱生活是数智云公司自建的本地综合生活服务线上平台。集商业服务、生活服务、政务综合服务于一体的15分钟便民生活圈服务平台。          </p>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td>
|
|
62
|
+
<img width="250" src="https://image.whzb.com/chain/StellarUI/头像/中百百货.png" />
|
|
63
|
+
<p>中百百货线上商城</p>
|
|
64
|
+
<p align="justify">中心百货大楼历经80余年的沧桑巨变,与时俱进,以新时尚、潮品牌、年轻态竭诚满足消费者购物休闲、娱乐餐饮等一站式需求,曾被国家商务部评定为“全国首批金鼎百货店”。             </p>
|
|
65
|
+
<div> </div>
|
|
66
|
+
</td>
|
|
67
|
+
<td>
|
|
68
|
+
<img width="250" src="https://image.whzb.com/chain/StellarUI/头像/数智云巡店助手.png" />
|
|
69
|
+
<p>数智云巡店助手</p>
|
|
70
|
+
<p>建立一套连锁超市巡店助手系统,以满足社超总部、区域经理、区域督导的巡店需求,结合门店自查统计,社超营运中心通过巡店助手系统提供的支持数据,更好,更优,服务于社超店铺经营,从而实现武汉中百便利店有限公司整体经营利润的提升。</p>
|
|
71
|
+
</td>
|
|
72
|
+
</tr>
|
|
73
|
+
</table>
|
|
74
|
+
|
|
75
|
+
## 周边生态
|
|
76
|
+
|
|
77
|
+
| 项目 | 描述 |
|
|
78
|
+
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
79
|
+
| [StellarUI](https://github.com/wuhanshuzhiyun/stellar-ui) | 一个基于vue2构建,打造的uni-app组件库 |
|
|
80
|
+
| [ste-vue-inset-loader](https://github.com/wuhanshuzhiyun/ste-vue-inset-loader) | 常用于小程序需要全局引入组件的场景的包 |
|
|
81
|
+
| [ste-helper](https://github.com/wuhanshuzhiyun/stellar-ui-plus/tree/main/plugins/ste-helper) | 旨在帮助开发者更加有效率的使用 StellarUI-Plus来开发项目的vscode插件 |
|
|
82
|
+
|
|
83
|
+
## 核心团队
|
|
84
|
+
|
|
85
|
+
以下是`StellarUI-Plus`的核心贡献者们:
|
|
86
|
+
|
|
87
|
+
<table border="0">
|
|
88
|
+
<tr>
|
|
89
|
+
<td>
|
|
90
|
+
<p>
|
|
91
|
+
<a>
|
|
92
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/费玉婷.png" />
|
|
93
|
+
</a>
|
|
94
|
+
</p>
|
|
95
|
+
<p align="center">
|
|
96
|
+
<a>费玉婷</a>
|
|
97
|
+
</p>
|
|
98
|
+
</td>
|
|
99
|
+
<td>
|
|
100
|
+
<p>
|
|
101
|
+
<a target="_blank" href="https://github.com/HEXIAYUE">
|
|
102
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/秦鹏飞.png" />
|
|
103
|
+
</a>
|
|
104
|
+
</p>
|
|
105
|
+
<p align="center">
|
|
106
|
+
<a target="_blank" href="https://github.com/HEXIAYUE">秦鹏飞</a>
|
|
107
|
+
</p>
|
|
108
|
+
</td>
|
|
109
|
+
<td>
|
|
110
|
+
<p>
|
|
111
|
+
<a target="_blank" href="https://github.com/zyydfaglory">
|
|
112
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/张园因.png" />
|
|
113
|
+
</a>
|
|
114
|
+
</p>
|
|
115
|
+
<p align="center">
|
|
116
|
+
<a target="_blank" href="https://github.com/zyydfaglory">张园因</a>
|
|
117
|
+
</p>
|
|
118
|
+
</td>
|
|
119
|
+
<td>
|
|
120
|
+
<p>
|
|
121
|
+
<a target="_blank" href="https://github.com/woyou0712">
|
|
122
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/徐亚君.png" />
|
|
123
|
+
</a>
|
|
124
|
+
</p>
|
|
125
|
+
<p align="center">
|
|
126
|
+
<a target="_blank" href="https://github.com/woyou0712">徐亚君</a>
|
|
127
|
+
</p>
|
|
128
|
+
</td>
|
|
129
|
+
<td>
|
|
130
|
+
<p>
|
|
131
|
+
<a target="_blank" href="https://github.com/fxxisme">
|
|
132
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/付宇威.png" />
|
|
133
|
+
</a>
|
|
134
|
+
</p>
|
|
135
|
+
<p align="center">
|
|
136
|
+
<a target="_blank" href="https://github.com/fxxisme">付宇威</a>
|
|
137
|
+
</p>
|
|
138
|
+
</td>
|
|
139
|
+
<td>
|
|
140
|
+
<p>
|
|
141
|
+
<a>
|
|
142
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/鲍思睿.png" />
|
|
143
|
+
</a>
|
|
144
|
+
</p>
|
|
145
|
+
<p align="center">
|
|
146
|
+
<a>鲍思睿</a>
|
|
147
|
+
</p>
|
|
148
|
+
</td>
|
|
149
|
+
<td>
|
|
150
|
+
<p>
|
|
151
|
+
<a>
|
|
152
|
+
<img width="90" height="90" style="border-radius:50%" src="https://image.whzb.com/chain/StellarUI/头像/齐巍.png" />
|
|
153
|
+
</a>
|
|
154
|
+
</p>
|
|
155
|
+
<p align="center">
|
|
156
|
+
<a>齐巍</a>
|
|
157
|
+
</p>
|
|
158
|
+
</td>
|
|
159
|
+
</tr>
|
|
160
|
+
</table>
|
|
161
|
+
|
|
162
|
+
### 贡献者们
|
|
163
|
+
|
|
164
|
+
感谢以下小伙伴们为 `StellarUI-Plus` 发展做出的贡献:
|
|
165
|
+
|
|
166
|
+
<a href="https://github.com/wuhanshuzhiyun/stellar-ui/graphs/contributors">
|
|
167
|
+
<img src="https://contrib.rocks/image?repo=wuhanshuzhiyun/stellar-ui" alt="contributors">
|
|
168
|
+
</a>
|
|
169
|
+
|
|
170
|
+
## 鸣谢
|
|
171
|
+
|
|
172
|
+
- [uni-helper](https://github.com/uni-helper) - 感谢 uni-helper 团队提供的 uni-app 工具库,让 StellarUI-Plus 能够更方便地使用。
|
|
173
|
+
|
|
174
|
+
## 开源协议
|
|
175
|
+
|
|
176
|
+
本项目基于 [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89) 协议,请自由地享受和参与开源。
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#### Props
|
|
2
|
+
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
|
+
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
|
+
| `show` | 控制动画,当值从`false`变为`true`时会触发一次动画 | `boolean` | `false` | - | - |
|
|
5
|
+
| `type` | 动画类型,见下方`type`值说明 | `string` | `` | - | - |
|
|
6
|
+
| `loop` | 是否循环执行。 | `boolean` | `false` | - | - |
|
|
7
|
+
| `duration` | 动画时长,单位 ms | `number` | `200` | - | - |
|
|
8
|
+
| `action` | 不能与 show 同时使用)触发方式,`initial`初始化执行; `click`点击执行 | `string` | `` | - | - |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Animate 动画
|
|
2
|
+
|
|
3
|
+
给子元素添加动画效果
|
|
4
|
+
|
|
5
|
+
---$
|
|
6
|
+
|
|
7
|
+
### 代码演示
|
|
8
|
+
|
|
9
|
+
#### 基础使用
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<ste-animate type="shakeX" loop>
|
|
13
|
+
<ste-button>shakeX-横向</ste-button>
|
|
14
|
+
</ste-animate>
|
|
15
|
+
<ste-animate type="shakeY" loop>
|
|
16
|
+
<ste-button>shakeY-竖向</ste-button>
|
|
17
|
+
</ste-animate>
|
|
18
|
+
<ste-animate type="ripple" loop>
|
|
19
|
+
<ste-button>ripple-心跳</ste-button>
|
|
20
|
+
</ste-animate>
|
|
21
|
+
<ste-animate type="breath" loop>
|
|
22
|
+
<ste-button>breath-呼吸灯</ste-button>
|
|
23
|
+
</ste-animate>
|
|
24
|
+
<ste-animate type="twinkle" loop>
|
|
25
|
+
<ste-button>twinkle-水波</ste-button>
|
|
26
|
+
</ste-animate>
|
|
27
|
+
<ste-animate type="flicker" loop>
|
|
28
|
+
<ste-button>flicker-擦亮</ste-button>
|
|
29
|
+
</ste-animate>
|
|
30
|
+
<ste-animate type="jump" loop>
|
|
31
|
+
<ste-button>jump-跳跃</ste-button>
|
|
32
|
+
</ste-animate>
|
|
33
|
+
<ste-animate type="float" loop>
|
|
34
|
+
<ste-button>float-漂浮</ste-button>
|
|
35
|
+
</ste-animate>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### 点击触发
|
|
39
|
+
|
|
40
|
+
设置`action`为`click`
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<ste-animate type="slide-right" action="click">
|
|
44
|
+
<ste-button :stopPropagation="false">由右向左划入</ste-button>
|
|
45
|
+
</ste-animate>
|
|
46
|
+
<ste-animate type="slide-left" action="click">
|
|
47
|
+
<ste-button :stopPropagation="false">由左向右划入</ste-button>
|
|
48
|
+
</ste-animate>
|
|
49
|
+
<ste-animate type="slide-top" action="click">
|
|
50
|
+
<ste-button :stopPropagation="false">由上向下划入</ste-button>
|
|
51
|
+
</ste-animate>
|
|
52
|
+
<ste-animate type="slide-bottom" action="click">
|
|
53
|
+
<ste-button :stopPropagation="false">由下向上划入</ste-button>
|
|
54
|
+
</ste-animate>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### 属性触发
|
|
58
|
+
|
|
59
|
+
可通过属性`show`来自定义触发动画执行
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<script lang="ts" setup>
|
|
63
|
+
import { ref } from 'vue';
|
|
64
|
+
const show = ref(false);
|
|
65
|
+
|
|
66
|
+
function click() {
|
|
67
|
+
show.value = false;
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
show.value = true;
|
|
70
|
+
}, 50);
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
<template>
|
|
74
|
+
<view>
|
|
75
|
+
<ste-animate type="shakeY" :show="show">
|
|
76
|
+
<ste-button :stopPropagation="false">动画</ste-button>
|
|
77
|
+
</ste-animate>
|
|
78
|
+
</view>
|
|
79
|
+
<view>
|
|
80
|
+
<ste-button @click="click">触发</ste-button>
|
|
81
|
+
</view>
|
|
82
|
+
</template>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---$
|
|
86
|
+
|
|
87
|
+
### API
|
|
88
|
+
|
|
89
|
+
<!-- props -->
|
|
90
|
+
|
|
91
|
+
#### 动画类型(type)
|
|
92
|
+
|
|
93
|
+
| 参数名称 | 参数说明 |
|
|
94
|
+
| -------------- | ---------------------------------- |
|
|
95
|
+
| `shake` | 抖动,建议 loop 为 true |
|
|
96
|
+
| `ripple` | 不循环则是放大后缩小,循环则是心跳 |
|
|
97
|
+
| `breath` | 呼吸灯,建议 loop 为 true |
|
|
98
|
+
| `float` | 漂浮,建议 loop 为 true |
|
|
99
|
+
| `slide-right` | 由右向左划入 |
|
|
100
|
+
| `slide-left` | 由左向右划入 |
|
|
101
|
+
| `slide-top` | 由上至下划入 |
|
|
102
|
+
| `slide-bottom` | 由下至上划入 |
|
|
103
|
+
| `jump` | 跳跃,建议 loop 为 true |
|
|
104
|
+
| `twinkle` | 水波,建议 loop 为 true |
|
|
105
|
+
| `flicker` | 擦亮按钮,建议 loop 为 true |
|
|
106
|
+
|
|
107
|
+
#### 组件插槽(Slots)
|
|
108
|
+
|
|
109
|
+
| 名称 | 说明 | 支持版本 |
|
|
110
|
+
| --------- | -------- | -------- |
|
|
111
|
+
| `default` | 默认插槽 | - |
|
|
112
|
+
|
|
113
|
+
---$
|
|
114
|
+
|
|
115
|
+
{{fuyuwei}}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// 横向抖动动画
|
|
2
|
+
@keyframes shakeX {
|
|
3
|
+
0%,
|
|
4
|
+
100% {
|
|
5
|
+
transform: translateX(0);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
10% {
|
|
9
|
+
transform: translateX(-9px);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
20% {
|
|
13
|
+
transform: translateX(8px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
30% {
|
|
17
|
+
transform: translateX(-7px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
40% {
|
|
21
|
+
transform: translateX(6px);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
50% {
|
|
25
|
+
transform: translateX(-5px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
60% {
|
|
29
|
+
transform: translateX(4px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
70% {
|
|
33
|
+
transform: translateX(-3px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
80% {
|
|
37
|
+
transform: translateX(2px);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
90% {
|
|
41
|
+
transform: translateX(-1px);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 竖向抖动动画
|
|
46
|
+
@keyframes shakeY {
|
|
47
|
+
0%,
|
|
48
|
+
100% {
|
|
49
|
+
transform: translateY(0);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
10% {
|
|
53
|
+
transform: translateY(-9px);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
20% {
|
|
57
|
+
transform: translateY(8px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
30% {
|
|
61
|
+
transform: translateY(-7px);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
40% {
|
|
65
|
+
transform: translateY(6px);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
50% {
|
|
69
|
+
transform: translateY(-5px);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
60% {
|
|
73
|
+
transform: translateY(4px);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
70% {
|
|
77
|
+
transform: translateY(-3px);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
80% {
|
|
81
|
+
transform: translateY(2px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
90% {
|
|
85
|
+
transform: translateY(-1px);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// 心跳
|
|
90
|
+
@keyframes ripple {
|
|
91
|
+
0% {
|
|
92
|
+
// box-shadow: 0 0.5em 0.5em rgba(0, 0, 0, 0.4);
|
|
93
|
+
|
|
94
|
+
transform: scale(1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
50% {
|
|
98
|
+
// box-shadow: 0 1em 1em rgba(0, 0, 0, 0.4);
|
|
99
|
+
transform: scale(1.1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// 呼吸
|
|
104
|
+
@keyframes breath {
|
|
105
|
+
0% {
|
|
106
|
+
transform: scale(1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
50% {
|
|
110
|
+
transform: scale(1.1);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
100% {
|
|
114
|
+
transform: scale(1);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// 右侧向左侧划入
|
|
119
|
+
@keyframes slide-right {
|
|
120
|
+
0% {
|
|
121
|
+
opacity: 0;
|
|
122
|
+
transform: translateX(100%);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
100% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform: translateX(0);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// 左侧向右侧划入
|
|
132
|
+
@keyframes slide-left {
|
|
133
|
+
0% {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transform: translateX(-100%);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
100% {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
transform: translateX(0);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// 上面向下面划入
|
|
145
|
+
@keyframes slide-top {
|
|
146
|
+
0% {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
transform: translateY(-100%);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
100% {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
transform: translateY(0);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// 下面向上面划入
|
|
158
|
+
@keyframes slide-bottom {
|
|
159
|
+
0% {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transform: translateY(100%);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
100% {
|
|
165
|
+
opacity: 1;
|
|
166
|
+
transform: translateY(0);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// 漂浮 float
|
|
171
|
+
@keyframes floatPop {
|
|
172
|
+
0% {
|
|
173
|
+
top: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
25% {
|
|
177
|
+
top: 1px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
50% {
|
|
181
|
+
top: 4px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
75% {
|
|
185
|
+
top: 1px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
100% {
|
|
189
|
+
top: 0;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// 跳跃
|
|
194
|
+
@keyframes jump {
|
|
195
|
+
0% {
|
|
196
|
+
transform: rotate(0deg) translateY(0);
|
|
197
|
+
animation-timing-function: ease-in;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
25% {
|
|
201
|
+
transform: rotate(10deg) translateY(20 * 1px);
|
|
202
|
+
animation-timing-function: ease-out;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
50% {
|
|
206
|
+
transform: rotate(0deg) translateY(-10 * 1px);
|
|
207
|
+
animation-timing-function: ease-in;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
75% {
|
|
211
|
+
transform: rotate(-10deg) translateY(20 * 1px);
|
|
212
|
+
animation-timing-function: ease-out;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
transform: rotate(0deg) translateY(0);
|
|
217
|
+
animation-timing-function: ease-in;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// 水波
|
|
222
|
+
@keyframes twinkle {
|
|
223
|
+
0% {
|
|
224
|
+
transform: scale(0);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
20% {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
50%,
|
|
232
|
+
100% {
|
|
233
|
+
opacity: 0;
|
|
234
|
+
transform: scale(1.4);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@keyframes flicker {
|
|
239
|
+
0% {
|
|
240
|
+
transform: translateX(-100 * 1px) skewX(-20deg);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
40%,
|
|
244
|
+
100% {
|
|
245
|
+
transform: translateX(150 * 1px) skewX(-20deg);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const animateProps = {
|
|
2
|
+
show: { type: Boolean, default: false },
|
|
3
|
+
type: { type: String, default: '' },
|
|
4
|
+
loop: { type: Boolean, default: false },
|
|
5
|
+
duration: { type: Number, default: 300 },
|
|
6
|
+
action: { type: String, default: '' },
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default animateProps
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ste-animate",
|
|
3
|
+
"description": "动画组件",
|
|
4
|
+
"example": "<ste-animate></ste-animate>",
|
|
5
|
+
"tutorial": "https://stellar-ui.intecloud.com.cn/plus/#/?active=animate",
|
|
6
|
+
"attributes": [
|
|
7
|
+
{
|
|
8
|
+
"name": "show",
|
|
9
|
+
"description": "控制动画,当值从`false`变为`true`时会触发一次动画",
|
|
10
|
+
"type": "boolean",
|
|
11
|
+
|
|
12
|
+
"default": false
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "type",
|
|
16
|
+
"description": "动画类型,见下方`type`值说明",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"default": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "loop",
|
|
22
|
+
"description": "是否循环执行。",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "duration",
|
|
28
|
+
"description": "动画时长,单位 ms",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"default": 200
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "action",
|
|
34
|
+
"description": "不能与 show 同时使用)触发方式,`initial`初始化执行; `click`点击执行",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": ""
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|