uview-ultra-plus 1.0.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/README.md +9 -0
- package/lime-dayuts/changelog.md +33 -0
- package/lime-dayuts/common/constant.ts +32 -0
- package/lime-dayuts/common/dates.ts +194 -0
- package/lime-dayuts/common/index.ts +1103 -0
- package/lime-dayuts/common/locale/en/index.ts +57 -0
- package/lime-dayuts/common/locale/zh-cn/index.ts +75 -0
- package/lime-dayuts/common/test.ts +106 -0
- package/lime-dayuts/common/use.ts +63 -0
- package/lime-dayuts/common/utils.ts +106 -0
- package/lime-dayuts/index.ts +6 -0
- package/lime-dayuts/package.json +106 -0
- package/lime-dayuts/readme - /345/211/257/346/234/254.md" +445 -0
- package/lime-dayuts/readme.md +264 -0
- package/lime-dayuts/utssdk/app-js/config.json +3 -0
- package/lime-dayuts/utssdk/app-js/index.uts +3 -0
- package/lime-dayuts/utssdk/interface.uts +405 -0
- package/lime-dayuts/utssdk/unierror.uts +39 -0
- package/package.json +42 -0
- package/uview-ultra/LICENSE +20 -0
- package/uview-ultra/README.md +76 -0
- package/uview-ultra/changelog.md +449 -0
- package/uview-ultra/components/up-action-sheet/actionSheet.js +26 -0
- package/uview-ultra/components/up-action-sheet/actionSheet.uts +28 -0
- package/uview-ultra/components/up-action-sheet/props.js +62 -0
- package/uview-ultra/components/up-action-sheet/props.uts +66 -0
- package/uview-ultra/components/up-action-sheet/types.uts +86 -0
- package/uview-ultra/components/up-action-sheet/up-action-sheet.uvue +337 -0
- package/uview-ultra/components/up-action-sheet/up-action-sheet.vue +283 -0
- package/uview-ultra/components/up-album/album.js +27 -0
- package/uview-ultra/components/up-album/album.uts +27 -0
- package/uview-ultra/components/up-album/props.js +81 -0
- package/uview-ultra/components/up-album/props.uts +84 -0
- package/uview-ultra/components/up-album/up-album.uvue +347 -0
- package/uview-ultra/components/up-album/up-album.vue +278 -0
- package/uview-ultra/components/up-alert/alert.js +22 -0
- package/uview-ultra/components/up-alert/alert.uts +22 -0
- package/uview-ultra/components/up-alert/props.js +46 -0
- package/uview-ultra/components/up-alert/props.uts +48 -0
- package/uview-ultra/components/up-alert/up-alert.uvue +287 -0
- package/uview-ultra/components/up-alert/up-alert.vue +249 -0
- package/uview-ultra/components/up-avatar/avatar.js +28 -0
- package/uview-ultra/components/up-avatar/avatar.uts +28 -0
- package/uview-ultra/components/up-avatar/props.js +82 -0
- package/uview-ultra/components/up-avatar/props.uts +82 -0
- package/uview-ultra/components/up-avatar/up-avatar.uvue +235 -0
- package/uview-ultra/components/up-avatar/up-avatar.vue +180 -0
- package/uview-ultra/components/up-avatar-group/avatarGroup.js +23 -0
- package/uview-ultra/components/up-avatar-group/avatarGroup.uts +23 -0
- package/uview-ultra/components/up-avatar-group/props.js +54 -0
- package/uview-ultra/components/up-avatar-group/props.uts +55 -0
- package/uview-ultra/components/up-avatar-group/up-avatar-group.uvue +160 -0
- package/uview-ultra/components/up-avatar-group/up-avatar-group.vue +110 -0
- package/uview-ultra/components/up-back-top/backtop.js +27 -0
- package/uview-ultra/components/up-back-top/backtop.uts +27 -0
- package/uview-ultra/components/up-back-top/props.js +56 -0
- package/uview-ultra/components/up-back-top/props.uts +57 -0
- package/uview-ultra/components/up-back-top/up-back-top.uvue +157 -0
- package/uview-ultra/components/up-back-top/up-back-top.vue +133 -0
- package/uview-ultra/components/up-badge/badge.js +27 -0
- package/uview-ultra/components/up-badge/badge.uts +27 -0
- package/uview-ultra/components/up-badge/props.js +79 -0
- package/uview-ultra/components/up-badge/props.uts +89 -0
- package/uview-ultra/components/up-badge/up-badge.uvue +260 -0
- package/uview-ultra/components/up-badge/up-badge.vue +179 -0
- package/uview-ultra/components/up-box/box.js +24 -0
- package/uview-ultra/components/up-box/box.uts +24 -0
- package/uview-ultra/components/up-box/props.js +57 -0
- package/uview-ultra/components/up-box/props.uts +58 -0
- package/uview-ultra/components/up-box/up-box.uvue +137 -0
- package/uview-ultra/components/up-box/up-box.vue +107 -0
- package/uview-ultra/components/up-button/button.js +42 -0
- package/uview-ultra/components/up-button/button.uts +42 -0
- package/uview-ultra/components/up-button/props.js +155 -0
- package/uview-ultra/components/up-button/props.uts +164 -0
- package/uview-ultra/components/up-button/up-button.uvue +609 -0
- package/uview-ultra/components/up-button/up-button.vue +442 -0
- package/uview-ultra/components/up-button/vue.scss +85 -0
- package/uview-ultra/components/up-calendar/calendar.js +42 -0
- package/uview-ultra/components/up-calendar/calendar.uts +42 -0
- package/uview-ultra/components/up-calendar/header.uvue +103 -0
- package/uview-ultra/components/up-calendar/header.vue +103 -0
- package/uview-ultra/components/up-calendar/month.uvue +608 -0
- package/uview-ultra/components/up-calendar/month.vue +587 -0
- package/uview-ultra/components/up-calendar/props.js +147 -0
- package/uview-ultra/components/up-calendar/props.uts +149 -0
- package/uview-ultra/components/up-calendar/up-calendar.uvue +632 -0
- package/uview-ultra/components/up-calendar/up-calendar.vue +409 -0
- package/uview-ultra/components/up-calendar/util.js +86 -0
- package/uview-ultra/components/up-calendar/util.uts +93 -0
- package/uview-ultra/components/up-car-keyboard/carKeyboard.js +15 -0
- package/uview-ultra/components/up-car-keyboard/carKeyboard.uts +16 -0
- package/uview-ultra/components/up-car-keyboard/props.js +17 -0
- package/uview-ultra/components/up-car-keyboard/props.uts +27 -0
- package/uview-ultra/components/up-car-keyboard/up-car-keyboard.uvue +337 -0
- package/uview-ultra/components/up-car-keyboard/up-car-keyboard.vue +315 -0
- package/uview-ultra/components/up-card/card.uts +58 -0
- package/uview-ultra/components/up-card/props.js +140 -0
- package/uview-ultra/components/up-card/props.uts +150 -0
- package/uview-ultra/components/up-card/up-card.uvue +292 -0
- package/uview-ultra/components/up-card/up-card.vue +186 -0
- package/uview-ultra/components/up-cell/cell.js +35 -0
- package/uview-ultra/components/up-cell/cell.uts +35 -0
- package/uview-ultra/components/up-cell/props.js +113 -0
- package/uview-ultra/components/up-cell/props.uts +108 -0
- package/uview-ultra/components/up-cell/up-cell.uvue +301 -0
- package/uview-ultra/components/up-cell/up-cell.vue +268 -0
- package/uview-ultra/components/up-cell-group/cellGroup.js +16 -0
- package/uview-ultra/components/up-cell-group/cellGroup.uts +16 -0
- package/uview-ultra/components/up-cell-group/props.js +16 -0
- package/uview-ultra/components/up-cell-group/props.uts +26 -0
- package/uview-ultra/components/up-cell-group/up-cell-group.uvue +61 -0
- package/uview-ultra/components/up-cell-group/up-cell-group.vue +67 -0
- package/uview-ultra/components/up-checkbox/checkbox.js +27 -0
- package/uview-ultra/components/up-checkbox/checkbox.uts +27 -0
- package/uview-ultra/components/up-checkbox/props.js +76 -0
- package/uview-ultra/components/up-checkbox/props.uts +77 -0
- package/uview-ultra/components/up-checkbox/up-checkbox.uvue +523 -0
- package/uview-ultra/components/up-checkbox/up-checkbox.vue +386 -0
- package/uview-ultra/components/up-checkbox-group/checkboxGroup.js +29 -0
- package/uview-ultra/components/up-checkbox-group/checkboxGroup.uts +29 -0
- package/uview-ultra/components/up-checkbox-group/props.js +93 -0
- package/uview-ultra/components/up-checkbox-group/props.uts +84 -0
- package/uview-ultra/components/up-checkbox-group/up-checkbox-group.uvue +195 -0
- package/uview-ultra/components/up-checkbox-group/up-checkbox-group.vue +137 -0
- package/uview-ultra/components/up-circle-progress/circleProgress.js +15 -0
- package/uview-ultra/components/up-circle-progress/props.js +10 -0
- package/uview-ultra/components/up-circle-progress/up-circle-progress.vue +201 -0
- package/uview-ultra/components/up-code/code.js +21 -0
- package/uview-ultra/components/up-code/code.uts +20 -0
- package/uview-ultra/components/up-code/props.js +36 -0
- package/uview-ultra/components/up-code/props.uts +47 -0
- package/uview-ultra/components/up-code/up-code.uvue +183 -0
- package/uview-ultra/components/up-code/up-code.vue +132 -0
- package/uview-ultra/components/up-code-input/codeInput.js +29 -0
- package/uview-ultra/components/up-code-input/codeInput.uts +29 -0
- package/uview-ultra/components/up-code-input/props.js +90 -0
- package/uview-ultra/components/up-code-input/props.uts +83 -0
- package/uview-ultra/components/up-code-input/up-code-input.uvue +321 -0
- package/uview-ultra/components/up-code-input/up-code-input.vue +300 -0
- package/uview-ultra/components/up-col/col.js +19 -0
- package/uview-ultra/components/up-col/col.uts +19 -0
- package/uview-ultra/components/up-col/props.js +32 -0
- package/uview-ultra/components/up-col/props.uts +41 -0
- package/uview-ultra/components/up-col/up-col.uvue +193 -0
- package/uview-ultra/components/up-col/up-col.vue +172 -0
- package/uview-ultra/components/up-collapse/collapse.js +17 -0
- package/uview-ultra/components/up-collapse/collapse.uts +17 -0
- package/uview-ultra/components/up-collapse/props.js +21 -0
- package/uview-ultra/components/up-collapse/props.uts +23 -0
- package/uview-ultra/components/up-collapse/up-collapse.uvue +116 -0
- package/uview-ultra/components/up-collapse/up-collapse.vue +91 -0
- package/uview-ultra/components/up-collapse-item/collapseItem.js +26 -0
- package/uview-ultra/components/up-collapse-item/collapseItem.uts +26 -0
- package/uview-ultra/components/up-collapse-item/props.js +66 -0
- package/uview-ultra/components/up-collapse-item/props.uts +69 -0
- package/uview-ultra/components/up-collapse-item/up-collapse-item.uvue +266 -0
- package/uview-ultra/components/up-collapse-item/up-collapse-item.vue +242 -0
- package/uview-ultra/components/up-column-notice/columnNotice.js +24 -0
- package/uview-ultra/components/up-column-notice/columnNotice.uts +24 -0
- package/uview-ultra/components/up-column-notice/props.js +57 -0
- package/uview-ultra/components/up-column-notice/props.uts +59 -0
- package/uview-ultra/components/up-column-notice/up-column-notice.uvue +194 -0
- package/uview-ultra/components/up-column-notice/up-column-notice.vue +165 -0
- package/uview-ultra/components/up-copy/up-copy.uvue +74 -0
- package/uview-ultra/components/up-copy/up-copy.vue +70 -0
- package/uview-ultra/components/up-count-down/countDown.js +18 -0
- package/uview-ultra/components/up-count-down/countDown.uts +18 -0
- package/uview-ultra/components/up-count-down/props.js +26 -0
- package/uview-ultra/components/up-count-down/props.uts +37 -0
- package/uview-ultra/components/up-count-down/up-count-down.uvue +194 -0
- package/uview-ultra/components/up-count-down/up-count-down.vue +166 -0
- package/uview-ultra/components/up-count-down/utils.js +62 -0
- package/uview-ultra/components/up-count-down/utils.uts +67 -0
- package/uview-ultra/components/up-count-to/countTo.js +25 -0
- package/uview-ultra/components/up-count-to/countTo.uts +25 -0
- package/uview-ultra/components/up-count-to/props.js +61 -0
- package/uview-ultra/components/up-count-to/props.uts +72 -0
- package/uview-ultra/components/up-count-to/up-count-to.uvue +307 -0
- package/uview-ultra/components/up-count-to/up-count-to.vue +189 -0
- package/uview-ultra/components/up-datetime-picker/datetimePicker.js +37 -0
- package/uview-ultra/components/up-datetime-picker/datetimePicker.uts +42 -0
- package/uview-ultra/components/up-datetime-picker/dayjs.esm.min.js +7 -0
- package/uview-ultra/components/up-datetime-picker/props.js +150 -0
- package/uview-ultra/components/up-datetime-picker/props.uts +154 -0
- package/uview-ultra/components/up-datetime-picker/up-datetime-picker.uvue +657 -0
- package/uview-ultra/components/up-datetime-picker/up-datetime-picker.vue +472 -0
- package/uview-ultra/components/up-divider/divider.js +23 -0
- package/uview-ultra/components/up-divider/divider.uts +22 -0
- package/uview-ultra/components/up-divider/props.js +46 -0
- package/uview-ultra/components/up-divider/props.uts +57 -0
- package/uview-ultra/components/up-divider/up-divider.uvue +142 -0
- package/uview-ultra/components/up-divider/up-divider.vue +121 -0
- package/uview-ultra/components/up-dropdown/dropdown.uts +25 -0
- package/uview-ultra/components/up-dropdown/props.js +61 -0
- package/uview-ultra/components/up-dropdown/props.uts +72 -0
- package/uview-ultra/components/up-dropdown/types.uts +5 -0
- package/uview-ultra/components/up-dropdown/up-dropdown.uvue +349 -0
- package/uview-ultra/components/up-dropdown/up-dropdown.vue +259 -0
- package/uview-ultra/components/up-dropdown-item/dropdown-item.uts +25 -0
- package/uview-ultra/components/up-dropdown-item/props.js +47 -0
- package/uview-ultra/components/up-dropdown-item/props.uts +56 -0
- package/uview-ultra/components/up-dropdown-item/up-dropdown-item.uvue +170 -0
- package/uview-ultra/components/up-dropdown-item/up-dropdown-item.vue +120 -0
- package/uview-ultra/components/up-empty/empty.js +26 -0
- package/uview-ultra/components/up-empty/empty.uts +24 -0
- package/uview-ultra/components/up-empty/props.js +61 -0
- package/uview-ultra/components/up-empty/props.uts +71 -0
- package/uview-ultra/components/up-empty/up-empty.uvue +179 -0
- package/uview-ultra/components/up-empty/up-empty.vue +133 -0
- package/uview-ultra/components/up-form/form.js +22 -0
- package/uview-ultra/components/up-form/form.uts +22 -0
- package/uview-ultra/components/up-form/props.js +47 -0
- package/uview-ultra/components/up-form/props.uts +57 -0
- package/uview-ultra/components/up-form/up-form.uvue +248 -0
- package/uview-ultra/components/up-form/up-form.vue +252 -0
- package/uview-ultra/components/up-form-item/formItem.js +24 -0
- package/uview-ultra/components/up-form-item/formItem.uts +24 -0
- package/uview-ultra/components/up-form-item/props.js +55 -0
- package/uview-ultra/components/up-form-item/props.uts +65 -0
- package/uview-ultra/components/up-form-item/up-form-item.uvue +264 -0
- package/uview-ultra/components/up-form-item/up-form-item.vue +261 -0
- package/uview-ultra/components/up-gap/gap.js +19 -0
- package/uview-ultra/components/up-gap/gap.uts +19 -0
- package/uview-ultra/components/up-gap/props.js +27 -0
- package/uview-ultra/components/up-gap/props.uts +36 -0
- package/uview-ultra/components/up-gap/up-gap.uvue +54 -0
- package/uview-ultra/components/up-gap/up-gap.vue +41 -0
- package/uview-ultra/components/up-grid/grid.js +17 -0
- package/uview-ultra/components/up-grid/grid.uts +17 -0
- package/uview-ultra/components/up-grid/props.js +28 -0
- package/uview-ultra/components/up-grid/props.uts +37 -0
- package/uview-ultra/components/up-grid/up-grid.uvue +145 -0
- package/uview-ultra/components/up-grid/up-grid.vue +114 -0
- package/uview-ultra/components/up-grid-item/gridItem.js +16 -0
- package/uview-ultra/components/up-grid-item/gridItem.uts +16 -0
- package/uview-ultra/components/up-grid-item/props.js +16 -0
- package/uview-ultra/components/up-grid-item/props.uts +27 -0
- package/uview-ultra/components/up-grid-item/up-grid-item.uvue +211 -0
- package/uview-ultra/components/up-grid-item/up-grid-item.vue +219 -0
- package/uview-ultra/components/up-icon/icon.js +36 -0
- package/uview-ultra/components/up-icon/icon.uts +33 -0
- package/uview-ultra/components/up-icon/icons.js +426 -0
- package/uview-ultra/components/up-icon/icons.uts +222 -0
- package/uview-ultra/components/up-icon/props.js +92 -0
- package/uview-ultra/components/up-icon/props.uts +101 -0
- package/uview-ultra/components/up-icon/up-icon.uvue +278 -0
- package/uview-ultra/components/up-icon/up-icon.vue +242 -0
- package/uview-ultra/components/up-image/image.js +30 -0
- package/uview-ultra/components/up-image/image.uts +30 -0
- package/uview-ultra/components/up-image/props.js +87 -0
- package/uview-ultra/components/up-image/props.uts +88 -0
- package/uview-ultra/components/up-image/up-image.uvue +246 -0
- package/uview-ultra/components/up-image/up-image.vue +237 -0
- package/uview-ultra/components/up-index-anchor/indexAnchor.js +19 -0
- package/uview-ultra/components/up-index-anchor/indexAnchor.uts +19 -0
- package/uview-ultra/components/up-index-anchor/props.js +31 -0
- package/uview-ultra/components/up-index-anchor/props.uts +41 -0
- package/uview-ultra/components/up-index-anchor/up-index-anchor.uvue +129 -0
- package/uview-ultra/components/up-index-anchor/up-index-anchor.vue +110 -0
- package/uview-ultra/components/up-index-item/indexItem.uts +15 -0
- package/uview-ultra/components/up-index-item/props.js +8 -0
- package/uview-ultra/components/up-index-item/props.uts +15 -0
- package/uview-ultra/components/up-index-item/up-index-item.uvue +92 -0
- package/uview-ultra/components/up-index-item/up-index-item.vue +89 -0
- package/uview-ultra/components/up-index-list/indexList.js +21 -0
- package/uview-ultra/components/up-index-list/indexList.uts +21 -0
- package/uview-ultra/components/up-index-list/props.js +41 -0
- package/uview-ultra/components/up-index-list/props.uts +51 -0
- package/uview-ultra/components/up-index-list/up-index-list.uvue +564 -0
- package/uview-ultra/components/up-index-list/up-index-list.vue +598 -0
- package/uview-ultra/components/up-input/input.js +48 -0
- package/uview-ultra/components/up-input/input.uts +49 -0
- package/uview-ultra/components/up-input/props.js +198 -0
- package/uview-ultra/components/up-input/props.uts +198 -0
- package/uview-ultra/components/up-input/up-input.uvue +545 -0
- package/uview-ultra/components/up-input/up-input.vue +394 -0
- package/uview-ultra/components/up-keyboard/keyboard.js +30 -0
- package/uview-ultra/components/up-keyboard/keyboard.uts +30 -0
- package/uview-ultra/components/up-keyboard/props.js +86 -0
- package/uview-ultra/components/up-keyboard/props.uts +97 -0
- package/uview-ultra/components/up-keyboard/up-keyboard.uvue +166 -0
- package/uview-ultra/components/up-keyboard/up-keyboard.vue +167 -0
- package/uview-ultra/components/up-lazy-load/lazyLoad.uts +19 -0
- package/uview-ultra/components/up-lazy-load/props.uts +74 -0
- package/uview-ultra/components/up-lazy-load/up-lazy-load.uvue +211 -0
- package/uview-ultra/components/up-lazy-load/up-lazy-load.vue +258 -0
- package/uview-ultra/components/up-line/line.js +20 -0
- package/uview-ultra/components/up-line/line.uts +20 -0
- package/uview-ultra/components/up-line/props.js +36 -0
- package/uview-ultra/components/up-line/props.uts +37 -0
- package/uview-ultra/components/up-line/up-line.uvue +61 -0
- package/uview-ultra/components/up-line/up-line.vue +66 -0
- package/uview-ultra/components/up-line-progress/lineProgress.js +19 -0
- package/uview-ultra/components/up-line-progress/props.js +30 -0
- package/uview-ultra/components/up-line-progress/up-line-progress.vue +149 -0
- package/uview-ultra/components/up-link/link.js +26 -0
- package/uview-ultra/components/up-link/link.uts +23 -0
- package/uview-ultra/components/up-link/props.js +41 -0
- package/uview-ultra/components/up-link/props.uts +43 -0
- package/uview-ultra/components/up-link/up-link.uvue +90 -0
- package/uview-ultra/components/up-link/up-link.vue +87 -0
- package/uview-ultra/components/up-list/list.js +28 -0
- package/uview-ultra/components/up-list/list.uts +33 -0
- package/uview-ultra/components/up-list/props.js +101 -0
- package/uview-ultra/components/up-list/props.uts +111 -0
- package/uview-ultra/components/up-list/up-list.uvue +146 -0
- package/uview-ultra/components/up-list/up-list.vue +185 -0
- package/uview-ultra/components/up-list-item/listItem.js +15 -0
- package/uview-ultra/components/up-list-item/listItem.uts +15 -0
- package/uview-ultra/components/up-list-item/props.js +11 -0
- package/uview-ultra/components/up-list-item/props.uts +21 -0
- package/uview-ultra/components/up-list-item/up-list-item.uvue +125 -0
- package/uview-ultra/components/up-list-item/up-list-item.vue +118 -0
- package/uview-ultra/components/up-loading-icon/loadingIcon.js +30 -0
- package/uview-ultra/components/up-loading-icon/loadingIcon.uts +28 -0
- package/uview-ultra/components/up-loading-icon/props.js +62 -0
- package/uview-ultra/components/up-loading-icon/props.uts +71 -0
- package/uview-ultra/components/up-loading-icon/up-loading-icon.uvue +311 -0
- package/uview-ultra/components/up-loading-icon/up-loading-icon.vue +349 -0
- package/uview-ultra/components/up-loading-page/loadingPage.js +24 -0
- package/uview-ultra/components/up-loading-page/loadingPage.uts +24 -0
- package/uview-ultra/components/up-loading-page/props.js +57 -0
- package/uview-ultra/components/up-loading-page/props.uts +58 -0
- package/uview-ultra/components/up-loading-page/up-loading-page.uvue +129 -0
- package/uview-ultra/components/up-loading-page/up-loading-page.vue +123 -0
- package/uview-ultra/components/up-loadmore/loadmore.js +32 -0
- package/uview-ultra/components/up-loadmore/loadmore.uts +32 -0
- package/uview-ultra/components/up-loadmore/props.js +96 -0
- package/uview-ultra/components/up-loadmore/props.uts +107 -0
- package/uview-ultra/components/up-loadmore/up-loadmore.uvue +160 -0
- package/uview-ultra/components/up-loadmore/up-loadmore.vue +155 -0
- package/uview-ultra/components/up-modal/modal.js +36 -0
- package/uview-ultra/components/up-modal/modal.uts +36 -0
- package/uview-ultra/components/up-modal/props.js +111 -0
- package/uview-ultra/components/up-modal/props.uts +113 -0
- package/uview-ultra/components/up-modal/up-modal.uvue +269 -0
- package/uview-ultra/components/up-modal/up-modal.vue +265 -0
- package/uview-ultra/components/up-navbar/navbar.js +33 -0
- package/uview-ultra/components/up-navbar/navbar.uts +32 -0
- package/uview-ultra/components/up-navbar/props.js +87 -0
- package/uview-ultra/components/up-navbar/props.uts +88 -0
- package/uview-ultra/components/up-navbar/up-navbar.uvue +205 -0
- package/uview-ultra/components/up-navbar/up-navbar.vue +193 -0
- package/uview-ultra/components/up-navbar-mini/navbarMini.js +23 -0
- package/uview-ultra/components/up-navbar-mini/navbarMini.uts +23 -0
- package/uview-ultra/components/up-navbar-mini/props.js +51 -0
- package/uview-ultra/components/up-navbar-mini/props.uts +53 -0
- package/uview-ultra/components/up-navbar-mini/up-navbar-mini.uvue +146 -0
- package/uview-ultra/components/up-navbar-mini/up-navbar-mini.vue +137 -0
- package/uview-ultra/components/up-no-network/noNetwork.js +18 -0
- package/uview-ultra/components/up-no-network/noNetwork.uts +18 -0
- package/uview-ultra/components/up-no-network/props.js +21 -0
- package/uview-ultra/components/up-no-network/props.uts +31 -0
- package/uview-ultra/components/up-no-network/up-no-network.uvue +227 -0
- package/uview-ultra/components/up-no-network/up-no-network.vue +224 -0
- package/uview-ultra/components/up-notice-bar/noticeBar.js +27 -0
- package/uview-ultra/components/up-notice-bar/noticeBar.uts +27 -0
- package/uview-ultra/components/up-notice-bar/props.js +72 -0
- package/uview-ultra/components/up-notice-bar/props.uts +74 -0
- package/uview-ultra/components/up-notice-bar/up-notice-bar.uvue +108 -0
- package/uview-ultra/components/up-notice-bar/up-notice-bar.vue +105 -0
- package/uview-ultra/components/up-notify/notify.js +22 -0
- package/uview-ultra/components/up-notify/notify.uts +22 -0
- package/uview-ultra/components/up-notify/props.js +51 -0
- package/uview-ultra/components/up-notify/props.uts +56 -0
- package/uview-ultra/components/up-notify/up-notify.uvue +253 -0
- package/uview-ultra/components/up-notify/up-notify.vue +217 -0
- package/uview-ultra/components/up-number-box/numberBox.js +40 -0
- package/uview-ultra/components/up-number-box/numberBox.uts +40 -0
- package/uview-ultra/components/up-number-box/props.js +145 -0
- package/uview-ultra/components/up-number-box/props.uts +148 -0
- package/uview-ultra/components/up-number-box/up-number-box.uvue +447 -0
- package/uview-ultra/components/up-number-box/up-number-box.vue +479 -0
- package/uview-ultra/components/up-number-keyboard/numberKeyboard.js +17 -0
- package/uview-ultra/components/up-number-keyboard/numberKeyboard.uts +17 -0
- package/uview-ultra/components/up-number-keyboard/props.js +21 -0
- package/uview-ultra/components/up-number-keyboard/props.uts +32 -0
- package/uview-ultra/components/up-number-keyboard/up-number-keyboard.uvue +208 -0
- package/uview-ultra/components/up-number-keyboard/up-number-keyboard.vue +199 -0
- package/uview-ultra/components/up-overlay/overlay.js +18 -0
- package/uview-ultra/components/up-overlay/overlay.uts +18 -0
- package/uview-ultra/components/up-overlay/props.js +26 -0
- package/uview-ultra/components/up-overlay/props.uts +28 -0
- package/uview-ultra/components/up-overlay/up-overlay.uvue +71 -0
- package/uview-ultra/components/up-overlay/up-overlay.vue +71 -0
- package/uview-ultra/components/up-parse/node/node.vue +584 -0
- package/uview-ultra/components/up-parse/parse.js +22 -0
- package/uview-ultra/components/up-parse/parser.js +1333 -0
- package/uview-ultra/components/up-parse/props.js +48 -0
- package/uview-ultra/components/up-parse/up-parse.vue +499 -0
- package/uview-ultra/components/up-picker/picker.js +30 -0
- package/uview-ultra/components/up-picker/picker.uts +30 -0
- package/uview-ultra/components/up-picker/props.js +103 -0
- package/uview-ultra/components/up-picker/props.uts +114 -0
- package/uview-ultra/components/up-picker/up-picker.uvue +391 -0
- package/uview-ultra/components/up-picker/up-picker.vue +345 -0
- package/uview-ultra/components/up-picker-column/props.js +7 -0
- package/uview-ultra/components/up-picker-column/props.uts +7 -0
- package/uview-ultra/components/up-picker-column/up-picker-column.uvue +28 -0
- package/uview-ultra/components/up-picker-column/up-picker-column.vue +28 -0
- package/uview-ultra/components/up-popup/popup.js +29 -0
- package/uview-ultra/components/up-popup/popup.uts +28 -0
- package/uview-ultra/components/up-popup/props.js +81 -0
- package/uview-ultra/components/up-popup/props.uts +91 -0
- package/uview-ultra/components/up-popup/up-popup.uvue +318 -0
- package/uview-ultra/components/up-popup/up-popup.vue +310 -0
- package/uview-ultra/components/up-qrcode/qrcode.js +1281 -0
- package/uview-ultra/components/up-qrcode/up-qrcode.vue +536 -0
- package/uview-ultra/components/up-radio/props.js +71 -0
- package/uview-ultra/components/up-radio/props.uts +81 -0
- package/uview-ultra/components/up-radio/radio.js +27 -0
- package/uview-ultra/components/up-radio/radio.uts +27 -0
- package/uview-ultra/components/up-radio/up-radio.uvue +393 -0
- package/uview-ultra/components/up-radio/up-radio.vue +348 -0
- package/uview-ultra/components/up-radio-group/props.js +95 -0
- package/uview-ultra/components/up-radio-group/props.uts +90 -0
- package/uview-ultra/components/up-radio-group/radioGroup.js +30 -0
- package/uview-ultra/components/up-radio-group/radioGroup.uts +30 -0
- package/uview-ultra/components/up-radio-group/up-radio-group.uvue +113 -0
- package/uview-ultra/components/up-radio-group/up-radio-group.vue +128 -0
- package/uview-ultra/components/up-rate/props.js +80 -0
- package/uview-ultra/components/up-rate/props.uts +82 -0
- package/uview-ultra/components/up-rate/rate.js +26 -0
- package/uview-ultra/components/up-rate/rate.uts +27 -0
- package/uview-ultra/components/up-rate/up-rate.uvue +316 -0
- package/uview-ultra/components/up-rate/up-rate.vue +327 -0
- package/uview-ultra/components/up-read-more/props.js +63 -0
- package/uview-ultra/components/up-read-more/props.uts +61 -0
- package/uview-ultra/components/up-read-more/readMore.js +23 -0
- package/uview-ultra/components/up-read-more/readMore.uts +23 -0
- package/uview-ultra/components/up-read-more/up-read-more.uvue +160 -0
- package/uview-ultra/components/up-read-more/up-read-more.vue +165 -0
- package/uview-ultra/components/up-row/props.js +22 -0
- package/uview-ultra/components/up-row/props.uts +31 -0
- package/uview-ultra/components/up-row/row.js +17 -0
- package/uview-ultra/components/up-row/row.uts +17 -0
- package/uview-ultra/components/up-row/up-row.uvue +118 -0
- package/uview-ultra/components/up-row/up-row.vue +97 -0
- package/uview-ultra/components/up-row-notice/props.js +41 -0
- package/uview-ultra/components/up-row-notice/props.uts +43 -0
- package/uview-ultra/components/up-row-notice/rowNotice.js +21 -0
- package/uview-ultra/components/up-row-notice/rowNotice.uts +21 -0
- package/uview-ultra/components/up-row-notice/up-row-notice.uvue +304 -0
- package/uview-ultra/components/up-row-notice/up-row-notice.vue +337 -0
- package/uview-ultra/components/up-safe-bottom/props.js +7 -0
- package/uview-ultra/components/up-safe-bottom/props.uts +6 -0
- package/uview-ultra/components/up-safe-bottom/up-safe-bottom.uvue +59 -0
- package/uview-ultra/components/up-safe-bottom/up-safe-bottom.vue +59 -0
- package/uview-ultra/components/up-scroll-list/nvue.js +31 -0
- package/uview-ultra/components/up-scroll-list/props.js +36 -0
- package/uview-ultra/components/up-scroll-list/props.uts +38 -0
- package/uview-ultra/components/up-scroll-list/scrollList.js +20 -0
- package/uview-ultra/components/up-scroll-list/scrollList.uts +20 -0
- package/uview-ultra/components/up-scroll-list/scrollWxs.wxs +50 -0
- package/uview-ultra/components/up-scroll-list/up-scroll-list.uvue +212 -0
- package/uview-ultra/components/up-scroll-list/up-scroll-list.vue +233 -0
- package/uview-ultra/components/up-search/props.js +156 -0
- package/uview-ultra/components/up-search/props.uts +152 -0
- package/uview-ultra/components/up-search/search.js +41 -0
- package/uview-ultra/components/up-search/search.uts +41 -0
- package/uview-ultra/components/up-search/up-search.uvue +364 -0
- package/uview-ultra/components/up-search/up-search.vue +354 -0
- package/uview-ultra/components/up-skeleton/props.js +61 -0
- package/uview-ultra/components/up-skeleton/props.uts +69 -0
- package/uview-ultra/components/up-skeleton/skeleton.js +25 -0
- package/uview-ultra/components/up-skeleton/skeleton.uts +22 -0
- package/uview-ultra/components/up-skeleton/up-skeleton.uvue +228 -0
- package/uview-ultra/components/up-skeleton/up-skeleton.vue +248 -0
- package/uview-ultra/components/up-slider/props.js +95 -0
- package/uview-ultra/components/up-slider/props.uts +102 -0
- package/uview-ultra/components/up-slider/slider.js +28 -0
- package/uview-ultra/components/up-slider/slider.uts +25 -0
- package/uview-ultra/components/up-slider/up-slider.uvue +547 -0
- package/uview-ultra/components/up-slider/up-slider.vue +511 -0
- package/uview-ultra/components/up-status-bar/props.js +10 -0
- package/uview-ultra/components/up-status-bar/props.uts +12 -0
- package/uview-ultra/components/up-status-bar/statusBar.js +15 -0
- package/uview-ultra/components/up-status-bar/statusBar.uts +15 -0
- package/uview-ultra/components/up-status-bar/up-status-bar.uvue +47 -0
- package/uview-ultra/components/up-status-bar/up-status-bar.vue +49 -0
- package/uview-ultra/components/up-steps/props.js +41 -0
- package/uview-ultra/components/up-steps/props.uts +43 -0
- package/uview-ultra/components/up-steps/steps.js +21 -0
- package/uview-ultra/components/up-steps/steps.uts +22 -0
- package/uview-ultra/components/up-steps/up-steps.uvue +93 -0
- package/uview-ultra/components/up-steps/up-steps.vue +94 -0
- package/uview-ultra/components/up-steps-item/props.js +31 -0
- package/uview-ultra/components/up-steps-item/props.uts +33 -0
- package/uview-ultra/components/up-steps-item/stepsItem.js +18 -0
- package/uview-ultra/components/up-steps-item/stepsItem.uts +18 -0
- package/uview-ultra/components/up-steps-item/up-steps-item.uvue +412 -0
- package/uview-ultra/components/up-steps-item/up-steps-item.vue +349 -0
- package/uview-ultra/components/up-sticky/props.js +42 -0
- package/uview-ultra/components/up-sticky/props.uts +52 -0
- package/uview-ultra/components/up-sticky/sticky.js +20 -0
- package/uview-ultra/components/up-sticky/sticky.uts +20 -0
- package/uview-ultra/components/up-sticky/up-sticky.uvue +173 -0
- package/uview-ultra/components/up-sticky/up-sticky.vue +221 -0
- package/uview-ultra/components/up-subsection/props.js +51 -0
- package/uview-ultra/components/up-subsection/props.uts +53 -0
- package/uview-ultra/components/up-subsection/subsection.js +23 -0
- package/uview-ultra/components/up-subsection/subsection.uts +23 -0
- package/uview-ultra/components/up-subsection/up-subsection.uvue +301 -0
- package/uview-ultra/components/up-subsection/up-subsection.vue +318 -0
- package/uview-ultra/components/up-swipe-action/props.js +16 -0
- package/uview-ultra/components/up-swipe-action/props.uts +18 -0
- package/uview-ultra/components/up-swipe-action/swipeAction.js +15 -0
- package/uview-ultra/components/up-swipe-action/swipeAction.uts +16 -0
- package/uview-ultra/components/up-swipe-action/up-swipe-action.uvue +88 -0
- package/uview-ultra/components/up-swipe-action/up-swipe-action.vue +84 -0
- package/uview-ultra/components/up-swipe-action-item/alipay.sjs +229 -0
- package/uview-ultra/components/up-swipe-action-item/index.wxs +234 -0
- package/uview-ultra/components/up-swipe-action-item/nvue.js +174 -0
- package/uview-ultra/components/up-swipe-action-item/other.js +178 -0
- package/uview-ultra/components/up-swipe-action-item/other.uts +176 -0
- package/uview-ultra/components/up-swipe-action-item/props.js +47 -0
- package/uview-ultra/components/up-swipe-action-item/props.uts +48 -0
- package/uview-ultra/components/up-swipe-action-item/swipeActionItem.js +22 -0
- package/uview-ultra/components/up-swipe-action-item/swipeActionItem.uts +23 -0
- package/uview-ultra/components/up-swipe-action-item/types.uts +11 -0
- package/uview-ultra/components/up-swipe-action-item/up-swipe-action-item.uvue +382 -0
- package/uview-ultra/components/up-swipe-action-item/up-swipe-action-item.vue +249 -0
- package/uview-ultra/components/up-swipe-action-item/wxs.js +15 -0
- package/uview-ultra/components/up-swiper/props.js +127 -0
- package/uview-ultra/components/up-swiper/props.uts +137 -0
- package/uview-ultra/components/up-swiper/swiper.js +39 -0
- package/uview-ultra/components/up-swiper/swiper.uts +38 -0
- package/uview-ultra/components/up-swiper/up-swiper.uvue +290 -0
- package/uview-ultra/components/up-swiper/up-swiper.vue +269 -0
- package/uview-ultra/components/up-swiper-indicator/props.js +31 -0
- package/uview-ultra/components/up-swiper-indicator/props.uts +41 -0
- package/uview-ultra/components/up-swiper-indicator/swipterIndicator.js +19 -0
- package/uview-ultra/components/up-swiper-indicator/swipterIndicator.uts +19 -0
- package/uview-ultra/components/up-swiper-indicator/up-swiper-indicator.uvue +123 -0
- package/uview-ultra/components/up-swiper-indicator/up-swiper-indicator.vue +114 -0
- package/uview-ultra/components/up-switch/props.js +64 -0
- package/uview-ultra/components/up-switch/props.uts +82 -0
- package/uview-ultra/components/up-switch/switch.js +24 -0
- package/uview-ultra/components/up-switch/switch.uts +27 -0
- package/uview-ultra/components/up-switch/up-switch.uvue +193 -0
- package/uview-ultra/components/up-switch/up-switch.vue +215 -0
- package/uview-ultra/components/up-tabbar/props.js +57 -0
- package/uview-ultra/components/up-tabbar/props.uts +66 -0
- package/uview-ultra/components/up-tabbar/tabbar.js +24 -0
- package/uview-ultra/components/up-tabbar/tabbar.uts +24 -0
- package/uview-ultra/components/up-tabbar/up-tabbar.uvue +149 -0
- package/uview-ultra/components/up-tabbar/up-tabbar.vue +151 -0
- package/uview-ultra/components/up-tabbar-item/props.js +41 -0
- package/uview-ultra/components/up-tabbar-item/props.uts +51 -0
- package/uview-ultra/components/up-tabbar-item/tabbarItem.js +21 -0
- package/uview-ultra/components/up-tabbar-item/tabbarItem.uts +21 -0
- package/uview-ultra/components/up-tabbar-item/up-tabbar-item.uvue +207 -0
- package/uview-ultra/components/up-tabbar-item/up-tabbar-item.vue +197 -0
- package/uview-ultra/components/up-table/props.js +7 -0
- package/uview-ultra/components/up-table/props.uts +39 -0
- package/uview-ultra/components/up-table/table.uts +21 -0
- package/uview-ultra/components/up-table/up-table.uvue +111 -0
- package/uview-ultra/components/up-table/up-table.vue +104 -0
- package/uview-ultra/components/up-tabs/props.js +71 -0
- package/uview-ultra/components/up-tabs/props.uts +73 -0
- package/uview-ultra/components/up-tabs/tabs.js +33 -0
- package/uview-ultra/components/up-tabs/tabs.uts +34 -0
- package/uview-ultra/components/up-tabs/types.uts +19 -0
- package/uview-ultra/components/up-tabs/up-tabs.uvue +417 -0
- package/uview-ultra/components/up-tabs/up-tabs.vue +413 -0
- package/uview-ultra/components/up-tabs-item/props.js +7 -0
- package/uview-ultra/components/up-tabs-item/props.uts +7 -0
- package/uview-ultra/components/up-tabs-item/up-tabs-item.uvue +31 -0
- package/uview-ultra/components/up-tabs-item/up-tabs-item.vue +31 -0
- package/uview-ultra/components/up-tag/props.js +91 -0
- package/uview-ultra/components/up-tag/props.uts +100 -0
- package/uview-ultra/components/up-tag/tag.js +30 -0
- package/uview-ultra/components/up-tag/tag.uts +30 -0
- package/uview-ultra/components/up-tag/up-tag.uvue +370 -0
- package/uview-ultra/components/up-tag/up-tag.vue +368 -0
- package/uview-ultra/components/up-td/props.js +7 -0
- package/uview-ultra/components/up-td/props.uts +7 -0
- package/uview-ultra/components/up-td/td.uts +19 -0
- package/uview-ultra/components/up-td/up-td.uvue +105 -0
- package/uview-ultra/components/up-td/up-td.vue +98 -0
- package/uview-ultra/components/up-text/props.js +118 -0
- package/uview-ultra/components/up-text/props.uts +154 -0
- package/uview-ultra/components/up-text/text.js +39 -0
- package/uview-ultra/components/up-text/text.uts +44 -0
- package/uview-ultra/components/up-text/up-text.uvue +339 -0
- package/uview-ultra/components/up-text/up-text.vue +228 -0
- package/uview-ultra/components/up-text/value.js +87 -0
- package/uview-ultra/components/up-textarea/props.js +127 -0
- package/uview-ultra/components/up-textarea/props.uts +125 -0
- package/uview-ultra/components/up-textarea/textarea.js +36 -0
- package/uview-ultra/components/up-textarea/textarea.uts +36 -0
- package/uview-ultra/components/up-textarea/up-textarea.uvue +258 -0
- package/uview-ultra/components/up-textarea/up-textarea.vue +278 -0
- package/uview-ultra/components/up-th/props.js +7 -0
- package/uview-ultra/components/up-th/props.uts +7 -0
- package/uview-ultra/components/up-th/th.uts +16 -0
- package/uview-ultra/components/up-th/up-th.uvue +74 -0
- package/uview-ultra/components/up-th/up-th.vue +66 -0
- package/uview-ultra/components/up-title/up-title.uvue +36 -0
- package/uview-ultra/components/up-title/up-title.vue +36 -0
- package/uview-ultra/components/up-toast/toast.js +30 -0
- package/uview-ultra/components/up-toast/toast.uts +29 -0
- package/uview-ultra/components/up-toast/up-toast.uvue +330 -0
- package/uview-ultra/components/up-toast/up-toast.vue +304 -0
- package/uview-ultra/components/up-toolbar/props.js +41 -0
- package/uview-ultra/components/up-toolbar/props.uts +43 -0
- package/uview-ultra/components/up-toolbar/toolbar.js +21 -0
- package/uview-ultra/components/up-toolbar/toolbar.uts +20 -0
- package/uview-ultra/components/up-toolbar/up-toolbar.uvue +125 -0
- package/uview-ultra/components/up-toolbar/up-toolbar.vue +125 -0
- package/uview-ultra/components/up-tooltip/props.js +61 -0
- package/uview-ultra/components/up-tooltip/tooltip.js +25 -0
- package/uview-ultra/components/up-tooltip/up-tooltip.vue +342 -0
- package/uview-ultra/components/up-tr/props.js +7 -0
- package/uview-ultra/components/up-tr/props.uts +7 -0
- package/uview-ultra/components/up-tr/up-tr.uvue +22 -0
- package/uview-ultra/components/up-tr/up-tr.vue +34 -0
- package/uview-ultra/components/up-transition/nvue-ani-map.js +68 -0
- package/uview-ultra/components/up-transition/props.js +27 -0
- package/uview-ultra/components/up-transition/props.uts +36 -0
- package/uview-ultra/components/up-transition/transition.js +18 -0
- package/uview-ultra/components/up-transition/transition.uts +18 -0
- package/uview-ultra/components/up-transition/transitionMixin.js +163 -0
- package/uview-ultra/components/up-transition/up-transition.uvue +161 -0
- package/uview-ultra/components/up-transition/up-transition.vue +96 -0
- package/uview-ultra/components/up-transition/vue.ani-style.scss +113 -0
- package/uview-ultra/components/up-upload/mixin.js +23 -0
- package/uview-ultra/components/up-upload/mixin.uts +24 -0
- package/uview-ultra/components/up-upload/props.js +176 -0
- package/uview-ultra/components/up-upload/props.uts +176 -0
- package/uview-ultra/components/up-upload/types.uts +38 -0
- package/uview-ultra/components/up-upload/up-upload.uvue +965 -0
- package/uview-ultra/components/up-upload/up-upload.vue +927 -0
- package/uview-ultra/components/up-upload/upload.js +46 -0
- package/uview-ultra/components/up-upload/upload.uts +46 -0
- package/uview-ultra/components/up-upload/utils.js +180 -0
- package/uview-ultra/components/up-upload/utils.uts +213 -0
- package/uview-ultra/components/up-waterfall/props.uts +49 -0
- package/uview-ultra/components/up-waterfall/up-waterfall.uvue +344 -0
- package/uview-ultra/components/up-waterfall/up-waterfall.vue +416 -0
- package/uview-ultra/components/up-waterfall/waterfall.uts +20 -0
- package/uview-ultra/index.js +145 -0
- package/uview-ultra/index.scss +18 -0
- package/uview-ultra/index.uts +67 -0
- package/uview-ultra/libs/composable/useButton.uts +61 -0
- package/uview-ultra/libs/composable/useFuncIndex.uts +861 -0
- package/uview-ultra/libs/composable/useMp.uts +6 -0
- package/uview-ultra/libs/composable/useOpenType.uts +63 -0
- package/uview-ultra/libs/composable/useUltraUI.uts +206 -0
- package/uview-ultra/libs/config/color.js +17 -0
- package/uview-ultra/libs/config/color.uts +17 -0
- package/uview-ultra/libs/config/config.js +33 -0
- package/uview-ultra/libs/config/config.uts +33 -0
- package/uview-ultra/libs/config/props.js +190 -0
- package/uview-ultra/libs/config/props.uts +3 -0
- package/uview-ultra/libs/config/zIndex.js +20 -0
- package/uview-ultra/libs/config/zIndex.uts +20 -0
- package/uview-ultra/libs/css/color.scss +311 -0
- package/uview-ultra/libs/css/common.scss +121 -0
- package/uview-ultra/libs/css/components.scss +34 -0
- package/uview-ultra/libs/css/flex.scss +368 -0
- package/uview-ultra/libs/css/h5.scss +0 -0
- package/uview-ultra/libs/css/mixin.scss +8 -0
- package/uview-ultra/libs/css/mp.scss +0 -0
- package/uview-ultra/libs/css/vue.scss +35 -0
- package/uview-ultra/libs/function/colorGradient.js +134 -0
- package/uview-ultra/libs/function/colorGradient.uts +316 -0
- package/uview-ultra/libs/function/debounce.js +29 -0
- package/uview-ultra/libs/function/debounce.uts +33 -0
- package/uview-ultra/libs/function/digit.js +167 -0
- package/uview-ultra/libs/function/digit.uts +182 -0
- package/uview-ultra/libs/function/index.js +747 -0
- package/uview-ultra/libs/function/index.uts +826 -0
- package/uview-ultra/libs/function/platform.js +75 -0
- package/uview-ultra/libs/function/platform.uts +75 -0
- package/uview-ultra/libs/function/test.js +330 -0
- package/uview-ultra/libs/function/test.uts +343 -0
- package/uview-ultra/libs/function/throttle.js +30 -0
- package/uview-ultra/libs/function/throttle.uts +36 -0
- package/uview-ultra/libs/i18n/index.js +55 -0
- package/uview-ultra/libs/i18n/index.uts +65 -0
- package/uview-ultra/libs/i18n/locales/de.json +85 -0
- package/uview-ultra/libs/i18n/locales/en.json +85 -0
- package/uview-ultra/libs/i18n/locales/es.json +85 -0
- package/uview-ultra/libs/i18n/locales/fr.json +85 -0
- package/uview-ultra/libs/i18n/locales/ja.json +85 -0
- package/uview-ultra/libs/i18n/locales/ko.json +85 -0
- package/uview-ultra/libs/i18n/locales/ru.json +85 -0
- package/uview-ultra/libs/i18n/locales/th.json +85 -0
- package/uview-ultra/libs/i18n/locales/zh-Hans.json +85 -0
- package/uview-ultra/libs/i18n/locales/zh-Hant.json +85 -0
- package/uview-ultra/libs/luch-request/adapters/index.js +97 -0
- package/uview-ultra/libs/luch-request/core/InterceptorManager.js +50 -0
- package/uview-ultra/libs/luch-request/core/Request.js +198 -0
- package/uview-ultra/libs/luch-request/core/buildFullPath.js +20 -0
- package/uview-ultra/libs/luch-request/core/defaults.js +29 -0
- package/uview-ultra/libs/luch-request/core/dispatchRequest.js +3 -0
- package/uview-ultra/libs/luch-request/core/mergeConfig.js +103 -0
- package/uview-ultra/libs/luch-request/core/settle.js +16 -0
- package/uview-ultra/libs/luch-request/helpers/buildURL.js +69 -0
- package/uview-ultra/libs/luch-request/helpers/combineURLs.js +14 -0
- package/uview-ultra/libs/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/uview-ultra/libs/luch-request/index.d.ts +116 -0
- package/uview-ultra/libs/luch-request/index.js +3 -0
- package/uview-ultra/libs/luch-request/utils/clone.js +264 -0
- package/uview-ultra/libs/luch-request/utils.js +131 -0
- package/uview-ultra/libs/mixin/button.js +18 -0
- package/uview-ultra/libs/mixin/button.uts +15 -0
- package/uview-ultra/libs/mixin/mixin.js +201 -0
- package/uview-ultra/libs/mixin/mixin.uts +220 -0
- package/uview-ultra/libs/mixin/mpMixin.js +13 -0
- package/uview-ultra/libs/mixin/mpMixin.uts +10 -0
- package/uview-ultra/libs/mixin/mpShare.js +27 -0
- package/uview-ultra/libs/mixin/mpShare.uts +26 -0
- package/uview-ultra/libs/mixin/openType.js +27 -0
- package/uview-ultra/libs/mixin/openType.uts +36 -0
- package/uview-ultra/libs/mixin/style.js +249 -0
- package/uview-ultra/libs/mixin/touch.js +61 -0
- package/uview-ultra/libs/mixin/touch.uts +72 -0
- package/uview-ultra/libs/util/async-validator.js +1343 -0
- package/uview-ultra/libs/util/async-validator.uts +1339 -0
- package/uview-ultra/libs/util/calendar.js +546 -0
- package/uview-ultra/libs/util/calendar.uts +546 -0
- package/uview-ultra/libs/util/emitter.js +51 -0
- package/uview-ultra/libs/util/route.js +124 -0
- package/uview-ultra/libs/util/route.uts +130 -0
- package/uview-ultra/libs/vue.js +3 -0
- package/uview-ultra/libs/vue.uts +8 -0
- package/uview-ultra/package.json +108 -0
- package/uview-ultra/theme.scss +77 -0
- package/uview-ultra/types/common.uts +14 -0
- package/uview-ultra/types/comps/_common.d.ts +9 -0
- package/uview-ultra/types/comps/actionSheet.d.ts +121 -0
- package/uview-ultra/types/comps/album.d.ts +82 -0
- package/uview-ultra/types/comps/alert.d.ts +55 -0
- package/uview-ultra/types/comps/avatar.d.ts +85 -0
- package/uview-ultra/types/comps/avatarGroup.d.ts +62 -0
- package/uview-ultra/types/comps/backTop.d.ts +74 -0
- package/uview-ultra/types/comps/badge.d.ts +76 -0
- package/uview-ultra/types/comps/button.d.ts +169 -0
- package/uview-ultra/types/comps/calendar.d.ts +164 -0
- package/uview-ultra/types/comps/cell.d.ts +133 -0
- package/uview-ultra/types/comps/cellGroup.d.ts +27 -0
- package/uview-ultra/types/comps/checkbox.d.ts +69 -0
- package/uview-ultra/types/comps/checkboxGroup.d.ts +93 -0
- package/uview-ultra/types/comps/code.d.ts +69 -0
- package/uview-ultra/types/comps/codeInput.d.ts +98 -0
- package/uview-ultra/types/comps/col.d.ts +43 -0
- package/uview-ultra/types/comps/collapse.d.ts +52 -0
- package/uview-ultra/types/comps/collapseItem.d.ts +83 -0
- package/uview-ultra/types/comps/countDown.d.ts +60 -0
- package/uview-ultra/types/comps/countTo.d.ts +88 -0
- package/uview-ultra/types/comps/datetimePicker.d.ts +146 -0
- package/uview-ultra/types/comps/divider.d.ts +58 -0
- package/uview-ultra/types/comps/empty.d.ts +72 -0
- package/uview-ultra/types/comps/form.d.ts +76 -0
- package/uview-ultra/types/comps/formItem.d.ts +68 -0
- package/uview-ultra/types/comps/gap.d.ts +35 -0
- package/uview-ultra/types/comps/grid.d.ts +34 -0
- package/uview-ultra/types/comps/gridItem.d.ts +28 -0
- package/uview-ultra/types/comps/icon.d.ts +93 -0
- package/uview-ultra/types/comps/image.d.ts +119 -0
- package/uview-ultra/types/comps/indexAnchor.d.ts +38 -0
- package/uview-ultra/types/comps/indexItem.d.ts +18 -0
- package/uview-ultra/types/comps/indexList.d.ts +39 -0
- package/uview-ultra/types/comps/input.d.ts +234 -0
- package/uview-ultra/types/comps/keyboard.d.ts +125 -0
- package/uview-ultra/types/comps/line.d.ts +44 -0
- package/uview-ultra/types/comps/lineProgress.d.ts +51 -0
- package/uview-ultra/types/comps/link.d.ts +51 -0
- package/uview-ultra/types/comps/list.d.ts +92 -0
- package/uview-ultra/types/comps/listItem.d.ts +18 -0
- package/uview-ultra/types/comps/loadMore.d.ts +108 -0
- package/uview-ultra/types/comps/loadingIcon.d.ts +68 -0
- package/uview-ultra/types/comps/loadingPage.d.ts +58 -0
- package/uview-ultra/types/comps/modal.d.ts +115 -0
- package/uview-ultra/types/comps/navbar.d.ts +113 -0
- package/uview-ultra/types/comps/navbarMini.d.ts +78 -0
- package/uview-ultra/types/comps/noNetwork.d.ts +40 -0
- package/uview-ultra/types/comps/noticeBar.d.ts +85 -0
- package/uview-ultra/types/comps/notify.d.ts +73 -0
- package/uview-ultra/types/comps/numberBox.d.ts +155 -0
- package/uview-ultra/types/comps/overlay.d.ts +46 -0
- package/uview-ultra/types/comps/parse.d.ts +101 -0
- package/uview-ultra/types/comps/picker.d.ts +115 -0
- package/uview-ultra/types/comps/popup.d.ts +103 -0
- package/uview-ultra/types/comps/radio.d.ts +77 -0
- package/uview-ultra/types/comps/radioGroup.d.ts +97 -0
- package/uview-ultra/types/comps/rate.d.ts +85 -0
- package/uview-ultra/types/comps/readMore.d.ts +80 -0
- package/uview-ultra/types/comps/row.d.ts +34 -0
- package/uview-ultra/types/comps/safeBottom.d.ts +16 -0
- package/uview-ultra/types/comps/scrollList.d.ts +51 -0
- package/uview-ultra/types/comps/search.d.ts +167 -0
- package/uview-ultra/types/comps/skeleton.d.ts +70 -0
- package/uview-ultra/types/comps/slider.d.ts +79 -0
- package/uview-ultra/types/comps/statusBar.d.ts +22 -0
- package/uview-ultra/types/comps/steps.d.ts +48 -0
- package/uview-ultra/types/comps/stepsItem.d.ts +41 -0
- package/uview-ultra/types/comps/sticky.d.ts +48 -0
- package/uview-ultra/types/comps/subsection.d.ts +64 -0
- package/uview-ultra/types/comps/swipeAction.d.ts +24 -0
- package/uview-ultra/types/comps/swipeActionItem.d.ts +58 -0
- package/uview-ultra/types/comps/swiper.d.ts +142 -0
- package/uview-ultra/types/comps/swiperIndicator.d.ts +37 -0
- package/uview-ultra/types/comps/switch.d.ts +73 -0
- package/uview-ultra/types/comps/tabbar.d.ts +54 -0
- package/uview-ultra/types/comps/tabbarItem.d.ts +52 -0
- package/uview-ultra/types/comps/tabs.d.ts +85 -0
- package/uview-ultra/types/comps/tag.d.ts +93 -0
- package/uview-ultra/types/comps/text.d.ts +110 -0
- package/uview-ultra/types/comps/textarea.d.ts +158 -0
- package/uview-ultra/types/comps/toast.d.ts +59 -0
- package/uview-ultra/types/comps/tooltip.d.ts +71 -0
- package/uview-ultra/types/comps/transition.d.ts +61 -0
- package/uview-ultra/types/comps/upload.d.ts +163 -0
- package/uview-ultra/types/comps.d.ts +101 -0
- package/uview-ultra/types/index.d.ts +172 -0
- package/uview-ultra/types/index.uts +7 -0
- package/uview-ultra/types/package.json +26 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue.js'
|
|
2
|
+
import defProps from '../../libs/config/props.js'
|
|
3
|
+
export const props = defineMixin({
|
|
4
|
+
props: {
|
|
5
|
+
// 倒计时时长,单位ms
|
|
6
|
+
time: {
|
|
7
|
+
type: [String, Number],
|
|
8
|
+
default: () => defProps.countDown.time
|
|
9
|
+
},
|
|
10
|
+
// 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
|
|
11
|
+
format: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: () => defProps.countDown.format
|
|
14
|
+
},
|
|
15
|
+
// 是否自动开始倒计时
|
|
16
|
+
autoStart: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: () => defProps.countDown.autoStart
|
|
19
|
+
},
|
|
20
|
+
// 是否展示毫秒倒计时
|
|
21
|
+
millisecond: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: () => defProps.countDown.millisecond
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author : jry
|
|
3
|
+
* @Description :
|
|
4
|
+
* @version : 4.0
|
|
5
|
+
* @Date : 2025-11-06 12:20:08
|
|
6
|
+
* @LastAuthor : jry
|
|
7
|
+
* @lastTime : 2025-11-06 12:20:08
|
|
8
|
+
* @FilePath : /uview-ultra/libs/config/props/countDown
|
|
9
|
+
*/
|
|
10
|
+
import { defineMixin } from '../../libs/vue'
|
|
11
|
+
import defProps from './countDown.uts'
|
|
12
|
+
let crtProp = defProps['countDown'] as UTSJSONObject
|
|
13
|
+
|
|
14
|
+
export const propsCountDown = defineMixin({
|
|
15
|
+
props: {
|
|
16
|
+
// 倒计时时长,单位ms
|
|
17
|
+
time: {
|
|
18
|
+
type: [String, Number],
|
|
19
|
+
default: crtProp['time']
|
|
20
|
+
},
|
|
21
|
+
// 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
|
|
22
|
+
format: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: crtProp['format']
|
|
25
|
+
},
|
|
26
|
+
// 是否自动开始倒计时
|
|
27
|
+
autoStart: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: crtProp['autoStart']
|
|
30
|
+
},
|
|
31
|
+
// 是否展示毫秒倒计时
|
|
32
|
+
millisecond: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: crtProp['millisecond']
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="up-count-down">
|
|
3
|
+
<slot>
|
|
4
|
+
<text class="up-count-down__text">{{ formattedTime }}</text>
|
|
5
|
+
</slot>
|
|
6
|
+
</view>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="uts">
|
|
10
|
+
import { ref, onMounted, onBeforeUnmount, watch } from 'vue'
|
|
11
|
+
import defProps from '../../libs/config/props.uts'
|
|
12
|
+
import { isSameSecond, parseFormat, parseTimeData } from './utils.uts';
|
|
13
|
+
|
|
14
|
+
// props
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
// 倒计时时长,单位ms
|
|
17
|
+
time: {
|
|
18
|
+
type: [String, Number],
|
|
19
|
+
default: defProps.getNumber('countDown.time')
|
|
20
|
+
},
|
|
21
|
+
// 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
|
|
22
|
+
format: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: defProps.getString('countDown.format')
|
|
25
|
+
},
|
|
26
|
+
// 是否自动开始倒计时
|
|
27
|
+
autoStart: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: defProps.getBoolean('countDown.autoStart')
|
|
30
|
+
},
|
|
31
|
+
// 是否展示毫秒倒计时
|
|
32
|
+
millisecond: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: defProps.getBoolean('countDown.millisecond')
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
// 定义事件
|
|
39
|
+
const emit = defineEmits<{
|
|
40
|
+
(e: 'finish'): void
|
|
41
|
+
(e: 'change', value: any): void
|
|
42
|
+
(e: 'start'): void
|
|
43
|
+
(e: 'pause'): void
|
|
44
|
+
(e: 'reset'): void
|
|
45
|
+
}>()
|
|
46
|
+
|
|
47
|
+
// 响应式数据
|
|
48
|
+
const timer = ref(-1)
|
|
49
|
+
const timeData = ref(parseTimeData(0))
|
|
50
|
+
const formattedTime = ref('0')
|
|
51
|
+
const running = ref(false)
|
|
52
|
+
const endTime = ref(0)
|
|
53
|
+
const remainTime = ref(0)
|
|
54
|
+
|
|
55
|
+
// 清空定时器
|
|
56
|
+
const clearTimeoutFn = () => {
|
|
57
|
+
if (timer.value !== -1) {
|
|
58
|
+
clearTimeout(timer.value)
|
|
59
|
+
}
|
|
60
|
+
timer.value = -1
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// 获取剩余的时间
|
|
64
|
+
const getRemainTime = (): number => {
|
|
65
|
+
// 取最大值,防止出现小于0的剩余时间值
|
|
66
|
+
return Math.max(endTime.value - Date.now(), 0)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// 暂停倒计时
|
|
70
|
+
const pause = () => {
|
|
71
|
+
running.value = false
|
|
72
|
+
clearTimeoutFn()
|
|
73
|
+
emit('pause')
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// 设置剩余的时间
|
|
77
|
+
const setRemainTime = (remain: number) => {
|
|
78
|
+
remainTime.value = remain
|
|
79
|
+
// 根据剩余的毫秒时间,得出该有天,小时,分钟等的值,返回一个对象
|
|
80
|
+
const timeDataValue = parseTimeData(remain)
|
|
81
|
+
timeData.value = timeDataValue
|
|
82
|
+
emit('change', timeDataValue)
|
|
83
|
+
// 得出格式化后的时间
|
|
84
|
+
formattedTime.value = parseFormat(props.format, timeDataValue)
|
|
85
|
+
// 如果时间已到,停止倒计时
|
|
86
|
+
if (remain <= 0) {
|
|
87
|
+
pause()
|
|
88
|
+
emit('finish')
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// 不能定义为函数表达式和箭头函数,否则app-android无法递归调用。
|
|
93
|
+
function macroTick() {
|
|
94
|
+
clearTimeoutFn()
|
|
95
|
+
// 每隔一定时间,更新一遍定时器的值
|
|
96
|
+
// 同时此定时器的作用也能带来毫秒级的更新
|
|
97
|
+
timer.value = setTimeout(() => {
|
|
98
|
+
// 获取剩余时间
|
|
99
|
+
const remain = getRemainTime()
|
|
100
|
+
// 重设剩余时间
|
|
101
|
+
if (!isSameSecond(remain, remainTime.value) || remain == 0) {
|
|
102
|
+
setRemainTime(remain)
|
|
103
|
+
}
|
|
104
|
+
// 如果剩余时间不为0,则继续检查更新倒计时
|
|
105
|
+
if (remainTime.value != 0) {
|
|
106
|
+
macroTick()
|
|
107
|
+
}
|
|
108
|
+
}, 30)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// 不能定义为函数表达式和箭头函数,否则app-android无法递归调用。
|
|
112
|
+
function microTick() {
|
|
113
|
+
clearTimeoutFn()
|
|
114
|
+
timer.value = setTimeout(() => {
|
|
115
|
+
setRemainTime(getRemainTime())
|
|
116
|
+
if (remainTime.value !== 0) {
|
|
117
|
+
microTick()
|
|
118
|
+
}
|
|
119
|
+
}, 50)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// 根据是否展示毫秒,执行不同操作函数
|
|
123
|
+
const toTick = () => {
|
|
124
|
+
if (props.millisecond) {
|
|
125
|
+
microTick()
|
|
126
|
+
} else {
|
|
127
|
+
macroTick()
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// 开始倒计时
|
|
132
|
+
const start = () => {
|
|
133
|
+
if (running.value) return
|
|
134
|
+
running.value = true
|
|
135
|
+
endTime.value = Date.now() + remainTime.value
|
|
136
|
+
toTick()
|
|
137
|
+
emit('start')
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// 重置倒计时
|
|
141
|
+
const reset = () => {
|
|
142
|
+
pause()
|
|
143
|
+
remainTime.value = props.time as number
|
|
144
|
+
setRemainTime(remainTime.value)
|
|
145
|
+
if (props.autoStart) {
|
|
146
|
+
start()
|
|
147
|
+
}
|
|
148
|
+
emit('reset')
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// 初始化
|
|
152
|
+
const init = () => {
|
|
153
|
+
reset()
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
onMounted(() => {
|
|
157
|
+
init()
|
|
158
|
+
})
|
|
159
|
+
|
|
160
|
+
// 监听time变化
|
|
161
|
+
watch((): string|number => props.time, (newVal: string|number) => {
|
|
162
|
+
reset()
|
|
163
|
+
})
|
|
164
|
+
|
|
165
|
+
// 组件卸载前清理定时器
|
|
166
|
+
onBeforeUnmount(() => {
|
|
167
|
+
clearTimeoutFn()
|
|
168
|
+
})
|
|
169
|
+
|
|
170
|
+
// 导出供模板使用的方法
|
|
171
|
+
defineExpose({
|
|
172
|
+
start,
|
|
173
|
+
pause,
|
|
174
|
+
reset
|
|
175
|
+
})
|
|
176
|
+
</script>
|
|
177
|
+
|
|
178
|
+
<style
|
|
179
|
+
lang="scss"
|
|
180
|
+
scoped
|
|
181
|
+
>
|
|
182
|
+
@import "../../libs/css/components.scss";
|
|
183
|
+
$up-count-down-text-color:$up-content-color !default;
|
|
184
|
+
$up-count-down-text-font-size:15px !default;
|
|
185
|
+
$up-count-down-text-line-height:22px !default;
|
|
186
|
+
|
|
187
|
+
.up-count-down {
|
|
188
|
+
&__text {
|
|
189
|
+
color: $up-count-down-text-color;
|
|
190
|
+
font-size: $up-count-down-text-font-size;
|
|
191
|
+
line-height: $up-count-down-text-line-height;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
</style>
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="up-count-down">
|
|
3
|
+
<slot>
|
|
4
|
+
<text class="up-count-down__text">{{ formattedTime }}</text>
|
|
5
|
+
</slot>
|
|
6
|
+
</view>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import { props } from './props.js';
|
|
11
|
+
import { mpMixin } from '../../libs/mixin/mpMixin.js';
|
|
12
|
+
import { mixin } from '../../libs/mixin/mixin.js';
|
|
13
|
+
import {
|
|
14
|
+
isSameSecond,
|
|
15
|
+
parseFormat,
|
|
16
|
+
parseTimeData
|
|
17
|
+
} from './utils';
|
|
18
|
+
/**
|
|
19
|
+
* up-count-down 倒计时
|
|
20
|
+
* @description 该组件一般使用于某个活动的截止时间上,通过数字的变化,给用户明确的时间感受,提示用户进行某一个行为操作。
|
|
21
|
+
* @tutorial https://uview-plus.jiangruyi.com/components/countDown.html
|
|
22
|
+
* @property {String | Number} time 倒计时时长,单位ms (默认 0 )
|
|
23
|
+
* @property {String} format 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 (默认 'HH:mm:ss' )
|
|
24
|
+
* @property {Boolean} autoStart 是否自动开始倒计时 (默认 true )
|
|
25
|
+
* @property {Boolean} millisecond 是否展示毫秒倒计时 (默认 false )
|
|
26
|
+
* @event {Function} finish 倒计时结束时触发
|
|
27
|
+
* @event {Function} change 倒计时变化时触发
|
|
28
|
+
* @event {Function} start 开始倒计时
|
|
29
|
+
* @event {Function} pause 暂停倒计时
|
|
30
|
+
* @event {Function} reset 重设倒计时,若 auto-start 为 true,重设后会自动开始倒计时
|
|
31
|
+
* @example <up-count-down :time="time"></up-count-down>
|
|
32
|
+
*/
|
|
33
|
+
export default {
|
|
34
|
+
name: 'up-count-down',
|
|
35
|
+
mixins: [mpMixin, mixin, props],
|
|
36
|
+
data() {
|
|
37
|
+
return {
|
|
38
|
+
timer: null,
|
|
39
|
+
// 各单位(天,时,分等)剩余时间
|
|
40
|
+
timeData: parseTimeData(0),
|
|
41
|
+
// 格式化后的时间,如"03:23:21"
|
|
42
|
+
formattedTime: '0',
|
|
43
|
+
// 倒计时是否正在进行中
|
|
44
|
+
runing: false,
|
|
45
|
+
endTime: 0, // 结束的毫秒时间戳
|
|
46
|
+
remainTime: 0, // 剩余的毫秒时间
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
watch: {
|
|
50
|
+
time(n) {
|
|
51
|
+
this.reset()
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
mounted() {
|
|
55
|
+
this.init()
|
|
56
|
+
},
|
|
57
|
+
emits: ["change", "finish"],
|
|
58
|
+
methods: {
|
|
59
|
+
init() {
|
|
60
|
+
this.reset()
|
|
61
|
+
},
|
|
62
|
+
// 开始倒计时
|
|
63
|
+
start() {
|
|
64
|
+
if (this.runing) return
|
|
65
|
+
// 标识为进行中
|
|
66
|
+
this.runing = true
|
|
67
|
+
// 结束时间戳 = 此刻时间戳 + 剩余的时间
|
|
68
|
+
this.endTime = Date.now() + this.remainTime
|
|
69
|
+
this.toTick()
|
|
70
|
+
},
|
|
71
|
+
// 根据是否展示毫秒,执行不同操作函数
|
|
72
|
+
toTick() {
|
|
73
|
+
if (this.millisecond) {
|
|
74
|
+
this.microTick()
|
|
75
|
+
} else {
|
|
76
|
+
this.macroTick()
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
macroTick() {
|
|
80
|
+
this.clearTimeout()
|
|
81
|
+
// 每隔一定时间,更新一遍定时器的值
|
|
82
|
+
// 同时此定时器的作用也能带来毫秒级的更新
|
|
83
|
+
this.timer = setTimeout(() => {
|
|
84
|
+
// 获取剩余时间
|
|
85
|
+
const remain = this.getRemainTime()
|
|
86
|
+
// 重设剩余时间
|
|
87
|
+
if (!isSameSecond(remain, this.remainTime) || remain === 0) {
|
|
88
|
+
this.setRemainTime(remain)
|
|
89
|
+
}
|
|
90
|
+
// 如果剩余时间不为0,则继续检查更新倒计时
|
|
91
|
+
if (this.remainTime !== 0) {
|
|
92
|
+
this.macroTick()
|
|
93
|
+
}
|
|
94
|
+
}, 30)
|
|
95
|
+
},
|
|
96
|
+
microTick() {
|
|
97
|
+
this.clearTimeout()
|
|
98
|
+
this.timer = setTimeout(() => {
|
|
99
|
+
this.setRemainTime(this.getRemainTime())
|
|
100
|
+
if (this.remainTime !== 0) {
|
|
101
|
+
this.microTick()
|
|
102
|
+
}
|
|
103
|
+
}, 50)
|
|
104
|
+
},
|
|
105
|
+
// 获取剩余的时间
|
|
106
|
+
getRemainTime() {
|
|
107
|
+
// 取最大值,防止出现小于0的剩余时间值
|
|
108
|
+
return Math.max(this.endTime - Date.now(), 0)
|
|
109
|
+
},
|
|
110
|
+
// 设置剩余的时间
|
|
111
|
+
setRemainTime(remain) {
|
|
112
|
+
this.remainTime = remain
|
|
113
|
+
// 根据剩余的毫秒时间,得出该有天,小时,分钟等的值,返回一个对象
|
|
114
|
+
const timeData = parseTimeData(remain)
|
|
115
|
+
this.$emit('change', timeData)
|
|
116
|
+
// 得出格式化后的时间
|
|
117
|
+
this.formattedTime = parseFormat(this.format, timeData)
|
|
118
|
+
// 如果时间已到,停止倒计时
|
|
119
|
+
if (remain <= 0) {
|
|
120
|
+
this.pause()
|
|
121
|
+
this.$emit('finish')
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
// 重置倒计时
|
|
125
|
+
reset() {
|
|
126
|
+
this.pause()
|
|
127
|
+
this.remainTime = this.time
|
|
128
|
+
this.setRemainTime(this.remainTime)
|
|
129
|
+
if (this.autoStart) {
|
|
130
|
+
this.start()
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
// 暂停倒计时
|
|
134
|
+
pause() {
|
|
135
|
+
this.runing = false;
|
|
136
|
+
this.clearTimeout()
|
|
137
|
+
},
|
|
138
|
+
// 清空定时器
|
|
139
|
+
clearTimeout() {
|
|
140
|
+
clearTimeout(this.timer)
|
|
141
|
+
this.timer = null
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
beforeUnmount() {
|
|
145
|
+
this.clearTimeout()
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
</script>
|
|
149
|
+
|
|
150
|
+
<style
|
|
151
|
+
lang="scss"
|
|
152
|
+
scoped
|
|
153
|
+
>
|
|
154
|
+
@import "../../libs/css/components.scss";
|
|
155
|
+
$up-count-down-text-color:$up-content-color !default;
|
|
156
|
+
$up-count-down-text-font-size:15px !default;
|
|
157
|
+
$up-count-down-text-line-height:22px !default;
|
|
158
|
+
|
|
159
|
+
.up-count-down {
|
|
160
|
+
&__text {
|
|
161
|
+
color: $up-count-down-text-color;
|
|
162
|
+
font-size: $up-count-down-text-font-size;
|
|
163
|
+
line-height: $up-count-down-text-line-height;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
</style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// 补0,如1 -> 01
|
|
2
|
+
function padZero(num, targetLength = 2) {
|
|
3
|
+
let str = `${num}`
|
|
4
|
+
while (str.length < targetLength) {
|
|
5
|
+
str = `0${str}`
|
|
6
|
+
}
|
|
7
|
+
return str
|
|
8
|
+
}
|
|
9
|
+
const SECOND = 1000
|
|
10
|
+
const MINUTE = 60 * SECOND
|
|
11
|
+
const HOUR = 60 * MINUTE
|
|
12
|
+
const DAY = 24 * HOUR
|
|
13
|
+
export function parseTimeData(time) {
|
|
14
|
+
const days = Math.floor(time / DAY)
|
|
15
|
+
const hours = Math.floor((time % DAY) / HOUR)
|
|
16
|
+
const minutes = Math.floor((time % HOUR) / MINUTE)
|
|
17
|
+
const seconds = Math.floor((time % MINUTE) / SECOND)
|
|
18
|
+
const milliseconds = Math.floor(time % SECOND)
|
|
19
|
+
return {
|
|
20
|
+
days,
|
|
21
|
+
hours,
|
|
22
|
+
minutes,
|
|
23
|
+
seconds,
|
|
24
|
+
milliseconds
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function parseFormat(format, timeData) {
|
|
28
|
+
let {
|
|
29
|
+
days,
|
|
30
|
+
hours,
|
|
31
|
+
minutes,
|
|
32
|
+
seconds,
|
|
33
|
+
milliseconds
|
|
34
|
+
} = timeData
|
|
35
|
+
// 如果格式化字符串中不存在DD(天),则将天的时间转为小时中去
|
|
36
|
+
if (format.indexOf('DD') === -1) {
|
|
37
|
+
hours += days * 24
|
|
38
|
+
} else {
|
|
39
|
+
// 对天补0
|
|
40
|
+
format = format.replace('DD', padZero(days))
|
|
41
|
+
}
|
|
42
|
+
// 其他同理于DD的格式化处理方式
|
|
43
|
+
if (format.indexOf('HH') === -1) {
|
|
44
|
+
minutes += hours * 60
|
|
45
|
+
} else {
|
|
46
|
+
format = format.replace('HH', padZero(hours))
|
|
47
|
+
}
|
|
48
|
+
if (format.indexOf('mm') === -1) {
|
|
49
|
+
seconds += minutes * 60
|
|
50
|
+
} else {
|
|
51
|
+
format = format.replace('mm', padZero(minutes))
|
|
52
|
+
}
|
|
53
|
+
if (format.indexOf('ss') === -1) {
|
|
54
|
+
milliseconds += seconds * 1000
|
|
55
|
+
} else {
|
|
56
|
+
format = format.replace('ss', padZero(seconds))
|
|
57
|
+
}
|
|
58
|
+
return format.replace('SSS', padZero(milliseconds, 3))
|
|
59
|
+
}
|
|
60
|
+
export function isSameSecond(time1, time2) {
|
|
61
|
+
return Math.floor(time1 / 1000) === Math.floor(time2 / 1000)
|
|
62
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// 补0,如1 -> 01
|
|
2
|
+
function padZero(num: number, targetLength = 2): string {
|
|
3
|
+
let str = `${num}`
|
|
4
|
+
while (str.length < targetLength) {
|
|
5
|
+
str = `0${str}`
|
|
6
|
+
}
|
|
7
|
+
return str
|
|
8
|
+
}
|
|
9
|
+
const SECOND = 1000
|
|
10
|
+
const MINUTE = 60 * SECOND
|
|
11
|
+
const HOUR = 60 * MINUTE
|
|
12
|
+
const DAY = 24 * HOUR
|
|
13
|
+
export function parseTimeData(time: number): UTSJSONObject {
|
|
14
|
+
const days = Math.floor(time / DAY)
|
|
15
|
+
const hours = Math.floor((time % DAY) / HOUR)
|
|
16
|
+
const minutes = Math.floor((time % HOUR) / MINUTE)
|
|
17
|
+
const seconds = Math.floor((time % MINUTE) / SECOND)
|
|
18
|
+
const milliseconds = Math.floor(time % SECOND)
|
|
19
|
+
return {
|
|
20
|
+
days,
|
|
21
|
+
hours,
|
|
22
|
+
minutes,
|
|
23
|
+
seconds,
|
|
24
|
+
milliseconds
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function parseFormat(format: string, timeData: UTSJSONObject): string {
|
|
28
|
+
// let {
|
|
29
|
+
// days,
|
|
30
|
+
// hours,
|
|
31
|
+
// minutes,
|
|
32
|
+
// seconds,
|
|
33
|
+
// milliseconds
|
|
34
|
+
// } = timeData
|
|
35
|
+
let days = timeData["days"] as number
|
|
36
|
+
let hours = timeData["hours"] as number
|
|
37
|
+
let minutes = timeData["minutes"] as number
|
|
38
|
+
let seconds = timeData["seconds"] as number
|
|
39
|
+
let milliseconds = timeData["milliseconds"] as number
|
|
40
|
+
// 如果格式化字符串中不存在DD(天),则将天的时间转为小时中去
|
|
41
|
+
if (format.indexOf('DD') == -1) {
|
|
42
|
+
hours += days * 24
|
|
43
|
+
} else {
|
|
44
|
+
// 对天补0
|
|
45
|
+
format = format.replace('DD', padZero(days))
|
|
46
|
+
}
|
|
47
|
+
// 其他同理于DD的格式化处理方式
|
|
48
|
+
if (format.indexOf('HH') == -1) {
|
|
49
|
+
minutes += hours * 60
|
|
50
|
+
} else {
|
|
51
|
+
format = format.replace('HH', padZero(hours))
|
|
52
|
+
}
|
|
53
|
+
if (format.indexOf('mm') == -1) {
|
|
54
|
+
seconds += minutes * 60
|
|
55
|
+
} else {
|
|
56
|
+
format = format.replace('mm', padZero(minutes))
|
|
57
|
+
}
|
|
58
|
+
if (format.indexOf('ss') == -1) {
|
|
59
|
+
milliseconds += seconds * 1000
|
|
60
|
+
} else {
|
|
61
|
+
format = format.replace('ss', padZero(seconds))
|
|
62
|
+
}
|
|
63
|
+
return format.replace('SSS', padZero(milliseconds, 3))
|
|
64
|
+
}
|
|
65
|
+
export function isSameSecond(time1: number, time2: number): boolean {
|
|
66
|
+
return Math.floor(time1 / 1000) === Math.floor(time2 / 1000)
|
|
67
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author : LQ,jry
|
|
3
|
+
* @Description :
|
|
4
|
+
* @version : 3.0
|
|
5
|
+
* @Date : 2021-08-20 16:44:21
|
|
6
|
+
* @LastAuthor : jry
|
|
7
|
+
* @lastTime : 2024-08-20 14:20:58
|
|
8
|
+
* @FilePath : /uview-ultra/libs/config/props/countTo.js
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// countTo 组件
|
|
12
|
+
countTo: {
|
|
13
|
+
startVal: 0,
|
|
14
|
+
endVal: 0,
|
|
15
|
+
duration: 2000,
|
|
16
|
+
autoplay: true,
|
|
17
|
+
decimals: 0,
|
|
18
|
+
useEasing: true,
|
|
19
|
+
decimal: '.',
|
|
20
|
+
color: '#606266',
|
|
21
|
+
fontSize: 22,
|
|
22
|
+
bold: false,
|
|
23
|
+
separator: ''
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author : jry
|
|
3
|
+
* @Description :
|
|
4
|
+
* @version : 4.0
|
|
5
|
+
* @Date : 2025-11-10 12:40:08
|
|
6
|
+
* @LastAuthor : jry
|
|
7
|
+
* @lastTime : 2025-11-10 12:40:08
|
|
8
|
+
* @FilePath : /uview-ultra/uni_modules/uview-ultra/components/up-count-to/count-to.uts
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// count-to组件
|
|
12
|
+
countTo: {
|
|
13
|
+
startVal: 0,
|
|
14
|
+
endVal: 0,
|
|
15
|
+
duration: 2000,
|
|
16
|
+
autoplay: true,
|
|
17
|
+
decimals: 0,
|
|
18
|
+
useEasing: true,
|
|
19
|
+
decimal: '.',
|
|
20
|
+
color: '#606266',
|
|
21
|
+
fontSize: 22,
|
|
22
|
+
bold: false,
|
|
23
|
+
separator: ''
|
|
24
|
+
}
|
|
25
|
+
} as UTSJSONObject
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue.js'
|
|
2
|
+
import defProps from '../../libs/config/props.js'
|
|
3
|
+
export const props = defineMixin({
|
|
4
|
+
props: {
|
|
5
|
+
// 开始的数值,默认从0增长到某一个数
|
|
6
|
+
startVal: {
|
|
7
|
+
type: [String, Number],
|
|
8
|
+
default: () => defProps.countTo.startVal
|
|
9
|
+
},
|
|
10
|
+
// 要滚动的目标数值,必须
|
|
11
|
+
endVal: {
|
|
12
|
+
type: [String, Number],
|
|
13
|
+
default: () => defProps.countTo.endVal
|
|
14
|
+
},
|
|
15
|
+
// 滚动到目标数值的动画持续时间,单位为毫秒(ms)
|
|
16
|
+
duration: {
|
|
17
|
+
type: [String, Number],
|
|
18
|
+
default: () => defProps.countTo.duration
|
|
19
|
+
},
|
|
20
|
+
// 设置数值后是否自动开始滚动
|
|
21
|
+
autoplay: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: () => defProps.countTo.autoplay
|
|
24
|
+
},
|
|
25
|
+
// 要显示的小数位数
|
|
26
|
+
decimals: {
|
|
27
|
+
type: [String, Number],
|
|
28
|
+
default: () => defProps.countTo.decimals
|
|
29
|
+
},
|
|
30
|
+
// 是否在即将到达目标数值的时候,使用缓慢滚动的效果
|
|
31
|
+
useEasing: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: () => defProps.countTo.useEasing
|
|
34
|
+
},
|
|
35
|
+
// 十进制分割
|
|
36
|
+
decimal: {
|
|
37
|
+
type: [String, Number],
|
|
38
|
+
default: () => defProps.countTo.decimal
|
|
39
|
+
},
|
|
40
|
+
// 字体颜色
|
|
41
|
+
color: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: () => defProps.countTo.color
|
|
44
|
+
},
|
|
45
|
+
// 字体大小
|
|
46
|
+
fontSize: {
|
|
47
|
+
type: [String, Number],
|
|
48
|
+
default: () => defProps.countTo.fontSize
|
|
49
|
+
},
|
|
50
|
+
// 是否加粗字体
|
|
51
|
+
bold: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: () => defProps.countTo.bold
|
|
54
|
+
},
|
|
55
|
+
// 千位分隔符,类似金额的分割(¥23,321.05中的",")
|
|
56
|
+
separator: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: () => defProps.countTo.separator
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
})
|