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,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author : jry
|
|
3
|
+
* @Description :
|
|
4
|
+
* @version : 4.0
|
|
5
|
+
* @Date : 2025-11-10 12:45:08
|
|
6
|
+
* @LastAuthor : jry
|
|
7
|
+
* @lastTime : 2025-11-10 12:45:08
|
|
8
|
+
* @FilePath : /uview-ultra/uni_modules/uview-ultra/components/up-count-to/props.uts
|
|
9
|
+
*/
|
|
10
|
+
import { defineMixin } from '../../libs/vue.uts'
|
|
11
|
+
import defProps from './countTo.uts'
|
|
12
|
+
let crtProp = defProps['countTo'] as UTSJSONObject
|
|
13
|
+
|
|
14
|
+
export const propsCountTo = defineMixin({
|
|
15
|
+
props: {
|
|
16
|
+
// 开始的数值,默认从0增长到某一个数
|
|
17
|
+
startVal: {
|
|
18
|
+
type: [String, Number],
|
|
19
|
+
default: crtProp['startVal']
|
|
20
|
+
},
|
|
21
|
+
// 要滚动的目标数值,必须
|
|
22
|
+
endVal: {
|
|
23
|
+
type: [String, Number],
|
|
24
|
+
default: crtProp['endVal']
|
|
25
|
+
},
|
|
26
|
+
// 滚动到目标数值的动画持续时间,单位为毫秒(ms)
|
|
27
|
+
duration: {
|
|
28
|
+
type: [String, Number],
|
|
29
|
+
default: crtProp['duration']
|
|
30
|
+
},
|
|
31
|
+
// 设置数值后是否自动开始滚动
|
|
32
|
+
autoplay: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: crtProp['autoplay']
|
|
35
|
+
},
|
|
36
|
+
// 要显示的小数位数
|
|
37
|
+
decimals: {
|
|
38
|
+
type: [String, Number],
|
|
39
|
+
default: crtProp['decimals']
|
|
40
|
+
},
|
|
41
|
+
// 是否在即将到达目标数值的时候,使用缓慢滚动的效果
|
|
42
|
+
useEasing: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: crtProp['useEasing']
|
|
45
|
+
},
|
|
46
|
+
// 十进制分割
|
|
47
|
+
decimal: {
|
|
48
|
+
type: [String, Number],
|
|
49
|
+
default: crtProp['decimal']
|
|
50
|
+
},
|
|
51
|
+
// 字体颜色
|
|
52
|
+
color: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: crtProp['color']
|
|
55
|
+
},
|
|
56
|
+
// 字体大小
|
|
57
|
+
fontSize: {
|
|
58
|
+
type: [String, Number],
|
|
59
|
+
default: crtProp['fontSize']
|
|
60
|
+
},
|
|
61
|
+
// 是否加粗字体
|
|
62
|
+
bold: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: crtProp['bold']
|
|
65
|
+
},
|
|
66
|
+
// 千位分隔符,类似金额的分割(¥23,321.05中的",")
|
|
67
|
+
separator: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: crtProp['separator']
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
})
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<text
|
|
3
|
+
class="up-count-num"
|
|
4
|
+
:style="{
|
|
5
|
+
fontSize: $up.addUnit(fontSize),
|
|
6
|
+
fontWeight: bold ? 'bold' : 'normal',
|
|
7
|
+
color: color
|
|
8
|
+
}"
|
|
9
|
+
>{{ displayValue }}</text>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup lang="uts">
|
|
13
|
+
import { mpMixin } from '../../libs/mixin/mpMixin.uts';
|
|
14
|
+
import { mixin } from '../../libs/mixin/mixin.uts';
|
|
15
|
+
import { addUnit } from '../../libs/function/index.uts';
|
|
16
|
+
import defProps from './countTo';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* countTo 数字滚动
|
|
20
|
+
* @description 该组件一般用于需要滚动数字到某一个值的场景,目标要求是一个递增的值。
|
|
21
|
+
* @tutorial https://ijry.github.io/uview-plus/components/countTo.html
|
|
22
|
+
* @property {String | Number} startVal 开始的数值,默认从0增长到某一个数(默认 0 )
|
|
23
|
+
* @property {String | Number} endVal 要滚动的目标数值,必须 (默认 0 )
|
|
24
|
+
* @property {String | Number} duration 滚动到目标数值的动画持续时间,单位为毫秒(ms) (默认 2000 )
|
|
25
|
+
* @property {Boolean} autoplay 设置数值后是否自动开始滚动 (默认 true )
|
|
26
|
+
* @property {String | Number} decimals 要显示的小数位数,见官网说明(默认 0 )
|
|
27
|
+
* @property {Boolean} useEasing 滚动结束时,是否缓动结尾,见官网说明(默认 true )
|
|
28
|
+
* @property {String} decimal 十进制分割 ( 默认 "." )
|
|
29
|
+
* @property {String} color 字体颜色( 默认 '#606266' )
|
|
30
|
+
* @property {String | Number} fontSize 字体大小,单位px( 默认 22 )
|
|
31
|
+
* @property {Boolean} bold 字体是否加粗(默认 false )
|
|
32
|
+
* @property {String} separator 千位分隔符,见官网说明
|
|
33
|
+
* @event {Function} end 数值滚动到目标值时触发
|
|
34
|
+
* @example <up-count-to ref="uCountTo" :end-val="endVal" :autoplay="autoplay"></up-count-to>
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
// props
|
|
38
|
+
const props = defineProps({
|
|
39
|
+
startVal: {
|
|
40
|
+
type: [String, Number],
|
|
41
|
+
default: defProps.getNumber('countTo.startVal')
|
|
42
|
+
},
|
|
43
|
+
endVal: {
|
|
44
|
+
type: [String, Number],
|
|
45
|
+
default: defProps.getNumber('countTo.endVal')
|
|
46
|
+
},
|
|
47
|
+
duration: {
|
|
48
|
+
type: [String, Number],
|
|
49
|
+
default: defProps.getNumber('countTo.duration')
|
|
50
|
+
},
|
|
51
|
+
autoplay: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: defProps.getBoolean('countTo.autoplay')
|
|
54
|
+
},
|
|
55
|
+
decimals: {
|
|
56
|
+
type: [String, Number],
|
|
57
|
+
default: defProps.getNumber('countTo.decimals')
|
|
58
|
+
},
|
|
59
|
+
useEasing: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: defProps.getBoolean('countTo.useEasing')
|
|
62
|
+
},
|
|
63
|
+
decimal: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: defProps.getString('countTo.decimal')
|
|
66
|
+
},
|
|
67
|
+
color: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: defProps.getString('countTo.color')
|
|
70
|
+
},
|
|
71
|
+
fontSize: {
|
|
72
|
+
type: [String, Number],
|
|
73
|
+
default: defProps.getNumber('countTo.fontSize')
|
|
74
|
+
},
|
|
75
|
+
bold: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: defProps.getBoolean('countTo.bold')
|
|
78
|
+
},
|
|
79
|
+
separator: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: defProps.getString('countTo.separator')
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// emits
|
|
86
|
+
const emit = defineEmits(['end'])
|
|
87
|
+
|
|
88
|
+
// 导入ref
|
|
89
|
+
import { ref } from 'vue';
|
|
90
|
+
|
|
91
|
+
let localStartVal = ref<number>(0);
|
|
92
|
+
let displayValue = ref<string>('');
|
|
93
|
+
let printVal = ref<number | null>(null);
|
|
94
|
+
let paused = ref<boolean>(false); // 是否暂停
|
|
95
|
+
let localDuration = ref<number>(0);
|
|
96
|
+
let startTime = ref<number | null>(null); // 开始的时间
|
|
97
|
+
let timestamp = ref<number | null>(null); // 时间戳
|
|
98
|
+
let remaining = ref<number | null>(null); // 停留的时间
|
|
99
|
+
let rAF = ref<number>(0);
|
|
100
|
+
let lastTime = ref<number>(0); // 上一次的时间
|
|
101
|
+
|
|
102
|
+
const countDown: boolean = parseInt(props.startVal.toString()) > parseInt(props.endVal.toString());
|
|
103
|
+
|
|
104
|
+
function easingFn(t: number, b: number, c: number, d: number): number {
|
|
105
|
+
return (c * (-Math.pow(2, (-10 * t) / d) + 1) * 1024) / 1023 + b;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function formatNumber(num: any): string {
|
|
109
|
+
// 将num转为Number类型,因为其值可能为字符串数值,调用toFixed会报错
|
|
110
|
+
num = parseFloat(num.toString());
|
|
111
|
+
let numStr: string = num.toFixed(parseFloat(props.decimals.toString())).toString();
|
|
112
|
+
const x: string[] = numStr.split('.');
|
|
113
|
+
let x1 = x[0];
|
|
114
|
+
const x2 = x.length > 1 ? props.decimals.toString() + x[1] : '';
|
|
115
|
+
const rgx = /(\d+)(\d{3})/;
|
|
116
|
+
if (props.separator != '' && !isNumber(props.separator)) {
|
|
117
|
+
while (rgx.test(x1)) {
|
|
118
|
+
x1 = x1.replace(rgx, '$1' + props.separator + '$2');
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return x1 + x2;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// function requestAnimationFrame(countFunc: (tt: number) => void): number {
|
|
125
|
+
// const currTime = new Date().getTime();
|
|
126
|
+
// // 为了使setTimteout的尽可能的接近每秒60帧的效果
|
|
127
|
+
// const timeToCall: number = Math.max(0, 16 - (currTime - lastTime.value));
|
|
128
|
+
// const id = setTimeout(() => {
|
|
129
|
+
// countFunc(new Date().getTime());
|
|
130
|
+
// }, timeToCall);
|
|
131
|
+
// lastTime.value = currTime + timeToCall;
|
|
132
|
+
// return id;
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
// const count = function(tt: number) {
|
|
136
|
+
// if (startTime.value == null || startTime.value === 0) startTime.value = tt;
|
|
137
|
+
// timestamp.value = tt;
|
|
138
|
+
// const progress = tt - startTime.value;
|
|
139
|
+
// remaining.value = localDuration.value - progress;
|
|
140
|
+
|
|
141
|
+
// if (props.useEasing) {
|
|
142
|
+
// if (countDown) {
|
|
143
|
+
// printVal.value = localStartVal.value - easingFn(progress, 0, localStartVal.value - parseInt(props.endVal.toString()), localDuration.value);
|
|
144
|
+
// } else {
|
|
145
|
+
// printVal.value = easingFn(progress, localStartVal.value, parseInt(props.endVal.toString()) - localStartVal.value, localDuration.value);
|
|
146
|
+
// }
|
|
147
|
+
// } else {
|
|
148
|
+
// if (countDown) {
|
|
149
|
+
// printVal.value = localStartVal.value - (localStartVal.value - parseInt(props.endVal.toString())) * (progress / localDuration.value);
|
|
150
|
+
// } else {
|
|
151
|
+
// printVal.value = localStartVal.value + (parseInt(props.endVal.toString()) - localStartVal.value) * (progress / localDuration.value);
|
|
152
|
+
// }
|
|
153
|
+
// }
|
|
154
|
+
|
|
155
|
+
// if (countDown) {
|
|
156
|
+
// printVal.value = printVal.value < (props.endVal as number) ? (props.endVal as number) : printVal.value;
|
|
157
|
+
// } else {
|
|
158
|
+
// printVal.value = printVal.value > (props.endVal as number) ? (props.endVal as number) : printVal.value;
|
|
159
|
+
// }
|
|
160
|
+
|
|
161
|
+
// displayValue.value = formatNumber(printVal.value.toString());
|
|
162
|
+
|
|
163
|
+
// if (progress < localDuration.value) {
|
|
164
|
+
// rAF.value = requestAnimationFrame(count);
|
|
165
|
+
// } else {
|
|
166
|
+
// displayValue.value = formatNumber(parseFloat(props.endVal.toString()));
|
|
167
|
+
// emit('end');
|
|
168
|
+
// }
|
|
169
|
+
// }
|
|
170
|
+
|
|
171
|
+
// 合并requestAnimationFrame和count功能的方法
|
|
172
|
+
function animateCount(timestamp: number) {
|
|
173
|
+
if(startTime.value == null) startTime.value = timestamp
|
|
174
|
+
timestamp = timestamp
|
|
175
|
+
const progress = timestamp - startTime.value!
|
|
176
|
+
remaining.value = localDuration.value - progress
|
|
177
|
+
|
|
178
|
+
if(props.useEasing) {
|
|
179
|
+
if(countDown) {
|
|
180
|
+
printVal.value = localStartVal.value - easingFn(progress, 0, localStartVal.value - parseInt(props.endVal.toString()), localDuration.value)
|
|
181
|
+
} else {
|
|
182
|
+
printVal.value = localStartVal.value + (parseInt(props.endVal.toString()) - localStartVal.value) * (progress / localDuration.value)
|
|
183
|
+
}
|
|
184
|
+
} else {
|
|
185
|
+
if(countDown) {
|
|
186
|
+
printVal.value = localStartVal.value - (localStartVal.value - parseInt(props.endVal.toString())) * (progress / localDuration.value)
|
|
187
|
+
} else {
|
|
188
|
+
printVal.value = localStartVal.value + (parseInt(props.endVal.toString()) - localStartVal.value) * (progress / localDuration.value)
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if(countDown) {
|
|
193
|
+
printVal.value = printVal.value < parseInt(props.endVal.toString()) ? parseInt(props.endVal.toString()) : printVal.value
|
|
194
|
+
} else {
|
|
195
|
+
printVal.value = printVal.value > parseInt(props.endVal.toString()) ? parseInt(props.endVal.toString()) : printVal.value
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
displayValue.value = formatNumber(printVal.value!)
|
|
199
|
+
|
|
200
|
+
if(progress < localDuration.value) {
|
|
201
|
+
// 直接在这里实现requestAnimationFrame逻辑,而不是调用另一个方法
|
|
202
|
+
const currTime = new Date().getTime()
|
|
203
|
+
// 为了使setTimeout的尽可能的接近每秒60帧的效果
|
|
204
|
+
const timeToCall = Math.max(0, 16 - (currTime - lastTime.value))
|
|
205
|
+
rAF.value = setTimeout(() => {
|
|
206
|
+
animateCount(currTime + timeToCall)
|
|
207
|
+
}, timeToCall)
|
|
208
|
+
lastTime.value = currTime + timeToCall
|
|
209
|
+
} else {
|
|
210
|
+
displayValue.value = formatNumber(parseInt(props.endVal.toString()))
|
|
211
|
+
emit('end')
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function cancelAnimationFrame(id: number) {
|
|
216
|
+
clearTimeout(id);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// 开始滚动数字
|
|
220
|
+
function start() {
|
|
221
|
+
localStartVal.value = parseInt(props.startVal.toString());
|
|
222
|
+
startTime.value = null;
|
|
223
|
+
localDuration.value = parseInt(props.duration.toString());
|
|
224
|
+
paused.value = false;
|
|
225
|
+
// 使用合并后的方法
|
|
226
|
+
const currTime = new Date().getTime();
|
|
227
|
+
lastTime.value = currTime;
|
|
228
|
+
rAF.value = setTimeout(() => {
|
|
229
|
+
animateCount(currTime);
|
|
230
|
+
}, 0);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// 暂停
|
|
234
|
+
function stop() {
|
|
235
|
+
animateCount(rAF.value);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// 重新开始(暂停的情况下)
|
|
239
|
+
function resume() {
|
|
240
|
+
if (remaining.value == null) return
|
|
241
|
+
startTime.value = 0;
|
|
242
|
+
localDuration.value = remaining.value;
|
|
243
|
+
localStartVal.value = printVal.value as number;
|
|
244
|
+
// 使用合并后的方法
|
|
245
|
+
const currTime = new Date().getTime();
|
|
246
|
+
rAF.value = setTimeout(() => {
|
|
247
|
+
animateCount(currTime);
|
|
248
|
+
}, 0);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// 暂定状态,重新再开始滚动;或者滚动状态下,暂停
|
|
252
|
+
function reStart() {
|
|
253
|
+
if (paused.value) {
|
|
254
|
+
resume();
|
|
255
|
+
paused.value = false;
|
|
256
|
+
} else {
|
|
257
|
+
stop();
|
|
258
|
+
paused.value = true;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// 重置
|
|
263
|
+
function reset() {
|
|
264
|
+
startTime.value = null;
|
|
265
|
+
if (rAF.value != null) {
|
|
266
|
+
cancelAnimationFrame(rAF.value);
|
|
267
|
+
}
|
|
268
|
+
displayValue.value = formatNumber(props.startVal.toString());
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// 判断是否数字
|
|
272
|
+
function isNumber(val: string): boolean {
|
|
273
|
+
return !isNaN(parseFloat(val));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// 初始化
|
|
277
|
+
localStartVal.value = parseInt(props.startVal.toString())
|
|
278
|
+
displayValue.value = formatNumber(props.startVal.toString())
|
|
279
|
+
localDuration.value = parseInt(props.duration.toString())
|
|
280
|
+
if (props.autoplay) {
|
|
281
|
+
start();
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function destroyed() {
|
|
285
|
+
if(rAF.value != null) {
|
|
286
|
+
clearTimeout(rAF.value)
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// 导出供模板使用的方法
|
|
291
|
+
defineExpose({
|
|
292
|
+
start,
|
|
293
|
+
stop,
|
|
294
|
+
resume
|
|
295
|
+
})
|
|
296
|
+
</script>
|
|
297
|
+
|
|
298
|
+
<style lang="scss" scoped>
|
|
299
|
+
@import "../../libs/css/components.scss";
|
|
300
|
+
|
|
301
|
+
.up-count-num {
|
|
302
|
+
/* #ifndef APP-NVUE */
|
|
303
|
+
display: flex;
|
|
304
|
+
/* #endif */
|
|
305
|
+
text-align: center;
|
|
306
|
+
}
|
|
307
|
+
</style>
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<text
|
|
3
|
+
class="up-count-num"
|
|
4
|
+
:style="{
|
|
5
|
+
fontSize: addUnit(fontSize),
|
|
6
|
+
fontWeight: bold ? 'bold' : 'normal',
|
|
7
|
+
color: color
|
|
8
|
+
}"
|
|
9
|
+
>{{ displayValue }}</text>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import { props } from './props.js';
|
|
14
|
+
import { mpMixin } from '../../libs/mixin/mpMixin.js';
|
|
15
|
+
import { mixin } from '../../libs/mixin/mixin.js';
|
|
16
|
+
import { addUnit } from '../../libs/function/index.js';
|
|
17
|
+
/**
|
|
18
|
+
* countTo 数字滚动
|
|
19
|
+
* @description 该组件一般用于需要滚动数字到某一个值的场景,目标要求是一个递增的值。
|
|
20
|
+
* @tutorial https://ijry.github.io/uview-plus/components/countTo.html
|
|
21
|
+
* @property {String | Number} startVal 开始的数值,默认从0增长到某一个数(默认 0 )
|
|
22
|
+
* @property {String | Number} endVal 要滚动的目标数值,必须 (默认 0 )
|
|
23
|
+
* @property {String | Number} duration 滚动到目标数值的动画持续时间,单位为毫秒(ms) (默认 2000 )
|
|
24
|
+
* @property {Boolean} autoplay 设置数值后是否自动开始滚动 (默认 true )
|
|
25
|
+
* @property {String | Number} decimals 要显示的小数位数,见官网说明(默认 0 )
|
|
26
|
+
* @property {Boolean} useEasing 滚动结束时,是否缓动结尾,见官网说明(默认 true )
|
|
27
|
+
* @property {String} decimal 十进制分割 ( 默认 "." )
|
|
28
|
+
* @property {String} color 字体颜色( 默认 '#606266' )
|
|
29
|
+
* @property {String | Number} fontSize 字体大小,单位px( 默认 22 )
|
|
30
|
+
* @property {Boolean} bold 字体是否加粗(默认 false )
|
|
31
|
+
* @property {String} separator 千位分隔符,见官网说明
|
|
32
|
+
* @event {Function} end 数值滚动到目标值时触发
|
|
33
|
+
* @example <up-count-to ref="uCountTo" :end-val="endVal" :autoplay="autoplay"></up-count-to>
|
|
34
|
+
*/
|
|
35
|
+
export default {
|
|
36
|
+
name: 'up-count-to',
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
localStartVal: this.startVal,
|
|
40
|
+
displayValue: this.formatNumber(this.startVal),
|
|
41
|
+
printVal: null,
|
|
42
|
+
paused: false, // 是否暂停
|
|
43
|
+
localDuration: Number(this.duration),
|
|
44
|
+
startTime: null, // 开始的时间
|
|
45
|
+
timestamp: null, // 时间戳
|
|
46
|
+
remaining: null, // 停留的时间
|
|
47
|
+
rAF: null,
|
|
48
|
+
lastTime: 0 // 上一次的时间
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
mixins: [mpMixin, mixin,props],
|
|
52
|
+
computed: {
|
|
53
|
+
countDown() {
|
|
54
|
+
return this.startVal > this.endVal;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
watch: {
|
|
58
|
+
startVal() {
|
|
59
|
+
this.autoplay && this.start();
|
|
60
|
+
},
|
|
61
|
+
endVal() {
|
|
62
|
+
this.autoplay && this.start();
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
mounted() {
|
|
66
|
+
this.autoplay && this.start();
|
|
67
|
+
},
|
|
68
|
+
emits: ["end"],
|
|
69
|
+
methods: {
|
|
70
|
+
addUnit,
|
|
71
|
+
easingFn(t, b, c, d) {
|
|
72
|
+
return (c * (-Math.pow(2, (-10 * t) / d) + 1) * 1024) / 1023 + b;
|
|
73
|
+
},
|
|
74
|
+
requestAnimationFrame(callback) {
|
|
75
|
+
const currTime = new Date().getTime();
|
|
76
|
+
// 为了使setTimteout的尽可能的接近每秒60帧的效果
|
|
77
|
+
const timeToCall = Math.max(0, 16 - (currTime - this.lastTime));
|
|
78
|
+
const id = setTimeout(() => {
|
|
79
|
+
callback(currTime + timeToCall);
|
|
80
|
+
}, timeToCall);
|
|
81
|
+
this.lastTime = currTime + timeToCall;
|
|
82
|
+
return id;
|
|
83
|
+
},
|
|
84
|
+
cancelAnimationFrame(id) {
|
|
85
|
+
clearTimeout(id);
|
|
86
|
+
},
|
|
87
|
+
// 开始滚动数字
|
|
88
|
+
start() {
|
|
89
|
+
this.localStartVal = this.startVal;
|
|
90
|
+
this.startTime = null;
|
|
91
|
+
this.localDuration = this.duration;
|
|
92
|
+
this.paused = false;
|
|
93
|
+
this.rAF = this.requestAnimationFrame(this.count);
|
|
94
|
+
},
|
|
95
|
+
// 暂定状态,重新再开始滚动;或者滚动状态下,暂停
|
|
96
|
+
reStart() {
|
|
97
|
+
if (this.paused) {
|
|
98
|
+
this.resume();
|
|
99
|
+
this.paused = false;
|
|
100
|
+
} else {
|
|
101
|
+
this.stop();
|
|
102
|
+
this.paused = true;
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
// 暂停
|
|
106
|
+
stop() {
|
|
107
|
+
this.cancelAnimationFrame(this.rAF);
|
|
108
|
+
},
|
|
109
|
+
// 重新开始(暂停的情况下)
|
|
110
|
+
resume() {
|
|
111
|
+
if (!this.remaining) return
|
|
112
|
+
this.startTime = 0;
|
|
113
|
+
this.localDuration = this.remaining;
|
|
114
|
+
this.localStartVal = this.printVal;
|
|
115
|
+
this.requestAnimationFrame(this.count);
|
|
116
|
+
},
|
|
117
|
+
// 重置
|
|
118
|
+
reset() {
|
|
119
|
+
this.startTime = null;
|
|
120
|
+
this.cancelAnimationFrame(this.rAF);
|
|
121
|
+
this.displayValue = this.formatNumber(this.startVal);
|
|
122
|
+
},
|
|
123
|
+
count(timestamp) {
|
|
124
|
+
if (!this.startTime) this.startTime = timestamp;
|
|
125
|
+
this.timestamp = timestamp;
|
|
126
|
+
const progress = timestamp - this.startTime;
|
|
127
|
+
this.remaining = this.localDuration - progress;
|
|
128
|
+
if (this.useEasing) {
|
|
129
|
+
if (this.countDown) {
|
|
130
|
+
this.printVal = this.localStartVal - this.easingFn(progress, 0, this.localStartVal - this.endVal, this.localDuration);
|
|
131
|
+
} else {
|
|
132
|
+
this.printVal = this.easingFn(progress, this.localStartVal, this.endVal - this.localStartVal, this.localDuration);
|
|
133
|
+
}
|
|
134
|
+
} else {
|
|
135
|
+
if (this.countDown) {
|
|
136
|
+
this.printVal = this.localStartVal - (this.localStartVal - this.endVal) * (progress / this.localDuration);
|
|
137
|
+
} else {
|
|
138
|
+
this.printVal = this.localStartVal + (this.endVal - this.localStartVal) * (progress / this.localDuration);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (this.countDown) {
|
|
142
|
+
this.printVal = this.printVal < this.endVal ? this.endVal : this.printVal;
|
|
143
|
+
} else {
|
|
144
|
+
this.printVal = this.printVal > this.endVal ? this.endVal : this.printVal;
|
|
145
|
+
}
|
|
146
|
+
this.displayValue = this.formatNumber(this.printVal) || 0;
|
|
147
|
+
if (progress < this.localDuration) {
|
|
148
|
+
this.rAF = this.requestAnimationFrame(this.count);
|
|
149
|
+
} else {
|
|
150
|
+
this.$emit('end');
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
// 判断是否数字
|
|
154
|
+
isNumber(val) {
|
|
155
|
+
return !isNaN(parseFloat(val));
|
|
156
|
+
},
|
|
157
|
+
formatNumber(num) {
|
|
158
|
+
// 将num转为Number类型,因为其值可能为字符串数值,调用toFixed会报错
|
|
159
|
+
num = Number(num);
|
|
160
|
+
num = num.toFixed(Number(this.decimals));
|
|
161
|
+
num += '';
|
|
162
|
+
const x = num.split('.');
|
|
163
|
+
let x1 = x[0];
|
|
164
|
+
const x2 = x.length > 1 ? this.decimal + x[1] : '';
|
|
165
|
+
const rgx = /(\d+)(\d{3})/;
|
|
166
|
+
if (this.separator && !this.isNumber(this.separator)) {
|
|
167
|
+
while (rgx.test(x1)) {
|
|
168
|
+
x1 = x1.replace(rgx, '$1' + this.separator + '$2');
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return x1 + x2;
|
|
172
|
+
},
|
|
173
|
+
destroyed() {
|
|
174
|
+
this.cancelAnimationFrame(this.rAF);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
</script>
|
|
179
|
+
|
|
180
|
+
<style lang="scss" scoped>
|
|
181
|
+
@import "../../libs/css/components.scss";
|
|
182
|
+
|
|
183
|
+
.up-count-num {
|
|
184
|
+
/* #ifndef APP-NVUE */
|
|
185
|
+
display: inline-flex;
|
|
186
|
+
/* #endif */
|
|
187
|
+
text-align: center;
|
|
188
|
+
}
|
|
189
|
+
</style>
|
|
@@ -0,0 +1,37 @@
|
|
|
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/datetimePicker.js
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// datetimePicker 组件
|
|
12
|
+
datetimePicker: {
|
|
13
|
+
show: false,
|
|
14
|
+
popupMode: 'bottom',
|
|
15
|
+
showToolbar: true,
|
|
16
|
+
value: '',
|
|
17
|
+
title: '',
|
|
18
|
+
mode: 'datetime',
|
|
19
|
+
maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
|
|
20
|
+
minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
|
|
21
|
+
minHour: 0,
|
|
22
|
+
maxHour: 23,
|
|
23
|
+
minMinute: 0,
|
|
24
|
+
maxMinute: 59,
|
|
25
|
+
filter: null,
|
|
26
|
+
formatter: null,
|
|
27
|
+
loading: false,
|
|
28
|
+
itemHeight: 44,
|
|
29
|
+
cancelText: '取消',
|
|
30
|
+
confirmText: '确认',
|
|
31
|
+
cancelColor: '#909193',
|
|
32
|
+
confirmColor: '#3c9cff',
|
|
33
|
+
visibleItemCount: 5,
|
|
34
|
+
closeOnClickOverlay: false,
|
|
35
|
+
defaultIndex: []
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author : jry
|
|
3
|
+
* @Description :
|
|
4
|
+
* @version : 4.0
|
|
5
|
+
* @Date : 2024-04-22 16:44:21
|
|
6
|
+
* @LastAuthor : jry
|
|
7
|
+
* @lastTime : 2024-08-28 12:27:20
|
|
8
|
+
* @FilePath : /uview-ultra/libs/config/props/datetime-picker.uts
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// datetimePicker组件
|
|
12
|
+
datetimePicker: {
|
|
13
|
+
hasInput: false,
|
|
14
|
+
placeholder: '请选择',
|
|
15
|
+
format: '',
|
|
16
|
+
show: false,
|
|
17
|
+
popupMode: 'bottom',
|
|
18
|
+
showToolbar: true,
|
|
19
|
+
toolbarRightSlot: false,
|
|
20
|
+
value: '',
|
|
21
|
+
modelValue: '',
|
|
22
|
+
title: '',
|
|
23
|
+
mode: 'datetime',
|
|
24
|
+
maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
|
|
25
|
+
minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
|
|
26
|
+
minHour: 0,
|
|
27
|
+
maxHour: 23,
|
|
28
|
+
minMinute: 0,
|
|
29
|
+
maxMinute: 59,
|
|
30
|
+
filter: null,
|
|
31
|
+
formatter: null,
|
|
32
|
+
loading: false,
|
|
33
|
+
itemHeight: 44,
|
|
34
|
+
cancelText: '取消',
|
|
35
|
+
confirmText: '确认',
|
|
36
|
+
cancelColor: '#909193',
|
|
37
|
+
confirmColor: '#3c9cff',
|
|
38
|
+
visibleItemCount: 5,
|
|
39
|
+
closeOnClickOverlay: false,
|
|
40
|
+
defaultIndex: [] as number[]
|
|
41
|
+
}
|
|
42
|
+
} as UTSJSONObject
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
|
|
3
|
+
* Original file: /npm/dayjs@1.11.13/dayjs.min.js
|
|
4
|
+
*
|
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
|
+
*/
|
|
7
|
+
"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t={exports:{}},e=t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,c),i=n-s<0,u=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:i,s:s,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m="en",D={};D[m]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var s;if(!e)return m;if("string"==typeof e){var i=e.toLowerCase();D[i]&&(s=i),n&&(D[i]=n,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,s=a}return!r&&s&&(m=s),s||!r&&m},b=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=w,O.i=S,O.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var g=M.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return O},g.isValid=function(){return!(this.$d.toString()===l)},g.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return b(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<b(t)},g.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var s=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var m=this.$locale().weekStart||0,D=(y<m?y+7:y)-m;return l(r?g-D:g+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case i:return $(v+"Seconds",2);case s:return $(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[i]=f+"Minutes",n[s]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[O.p(t)]()},g.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=b(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[i]=e,d[u]=n,d[s]=t,d)[$]||1,g=this.$d.getTime()+r*M;return O.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,s,i){return t&&(t[n]||t(e,r))||s[n].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(i,u,!0);case"A":return $(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,l){var $,y=this,M=O.p(d),g=b(r),v=(g.utcOffset()-this.utcOffset())*e,m=this-g,D=function(){return O.m(y,g)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(m-v)/6048e5;break;case a:$=(m-v)/864e5;break;case u:$=m/n;break;case i:$=m/e;break;case s:$=m/t;break;default:$=m}return l?$:O.a($)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return D[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return O.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return b.prototype=k,[["$ms",r],["$s",s],["$m",i],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),b.extend=function(t,e){return t.$i||(t(e,_,b),t.$i=!0),b},b.locale=w,b.isDayjs=S,b.unix=function(t){return b(1e3*t)},b.en=D[m],b.Ls=D,b.p={},b}();export{e as default};
|