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,258 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="up-wrap" :style="{
|
|
3
|
+
opacity: Number(opacity),
|
|
4
|
+
borderRadius: borderRadius + 'rpx',
|
|
5
|
+
// 因为time值需要改变,所以不直接用duration值(不能改变父组件prop传过来的值)
|
|
6
|
+
transition: `opacity ${time / 1000}s ease-in-out`
|
|
7
|
+
}" :class="'up-lazy-item-' + elIndex">
|
|
8
|
+
<view :class="'up-lazy-item-' + elIndex">
|
|
9
|
+
<image :style="{ borderRadius: borderRadius + 'rpx', height: imgHeight }" v-if="!isError"
|
|
10
|
+
class="up-lazy-item" :src="isShow ? image : loadingImg" :mode="imgMode" @load="imgLoaded"
|
|
11
|
+
@error="loadError" @tap="clickImg">
|
|
12
|
+
</image>
|
|
13
|
+
<image :style="{ borderRadius: borderRadius + 'rpx', height: imgHeight }" class="up-lazy-item error" v-else
|
|
14
|
+
:src="errorImg" :mode="imgMode" @load="errorImgLoaded" @tap="clickImg"></image>
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import {
|
|
21
|
+
addUnit,
|
|
22
|
+
guid
|
|
23
|
+
} from '../../libs/function/index.js';
|
|
24
|
+
/**
|
|
25
|
+
* lazyLoad 懒加载
|
|
26
|
+
* @description 懒加载使用的场景为:页面有很多图片时,APP会同时加载所有的图片,导致页面卡顿,各个位置的图片出现前后不一致等.
|
|
27
|
+
* @tutorial https://uview-plus.jiangruyi.com/components/lazy-load.html
|
|
28
|
+
* @property {String Number} index 用户自定义值,在事件触发时回调,用以区分是哪个图片
|
|
29
|
+
* @property {String} image 图片路径
|
|
30
|
+
* @property {String} loading-img 预加载时的占位图
|
|
31
|
+
* @property {String} error-img 图片加载出错时的占位图
|
|
32
|
+
* @property {String} threshold 触发加载时的位置,见上方说明,单位 rpx(默认300)
|
|
33
|
+
* @property {String Number} duration 图片加载成功时,淡入淡出时间,单位ms(默认)
|
|
34
|
+
* @property {String} effect 图片加载成功时,淡入淡出的css动画效果(默认ease-in-out)
|
|
35
|
+
* @property {Boolean} is-effect 图片加载成功时,是否启用淡入淡出效果(默认true)
|
|
36
|
+
* @property {String Number} border-radius 图片圆角值,单位rpx(默认0)
|
|
37
|
+
* @property {String Number} height 图片高度,注意:实际高度可能受img-mode参数影响(默认450)
|
|
38
|
+
* @property {String Number} mg-mode 图片的裁剪模式,详见image组件裁剪模式(默认widthFix)
|
|
39
|
+
* @event {Function} click 点击图片时触发
|
|
40
|
+
* @event {Function} load 图片加载成功时触发
|
|
41
|
+
* @event {Function} error 图片加载失败时触发
|
|
42
|
+
* @example <up-lazy-load :image="image" :loading-img="loadingImg" :error-img="errorImg"></up-lazy-load>
|
|
43
|
+
*/
|
|
44
|
+
export default {
|
|
45
|
+
name: 'up-lazy-load',
|
|
46
|
+
props: {
|
|
47
|
+
index: {
|
|
48
|
+
type: [Number, String]
|
|
49
|
+
},
|
|
50
|
+
// 要显示的图片
|
|
51
|
+
image: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: ''
|
|
54
|
+
},
|
|
55
|
+
// 图片裁剪模式
|
|
56
|
+
imgMode: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: 'widthFix'
|
|
59
|
+
},
|
|
60
|
+
// 占位图片路径
|
|
61
|
+
loadingImg: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmN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6ZL4JkpbRYXdUaFevivx2M/1GIOctNh949TtAoumQ+TpIHMX54CJu+8BDd8FkE5BqcZh/59XvAClmTvKfB0nDqIlHo3T70SftyW1eX9dXtgQJqs1f/Q6QaOa/7wmQKtxH8eiGoCRuovODIO3VxOMmruZbHrLyD7z6DSDtGyT7ew1kf9hNn07c986JTovzzem0Id9wUG+Vk/IDr34DSNR7huZJkMFT6vEhqrPx/j5cnlZML8N6/PAzh9Y99Flm5Yde/c9BquDOkvkKkMP58dA4qi9vivE8JOvGz/j8FokfPpr288+pH2ZPOZrLmeGD+7KOh6dqYWJ48ki7yUg0tz0go/fv/LLddfV3sgOLJyaGPY/zrSlh1a36Arkzoue9CyG35ze6E6/dzO2Ga0EGHqdRJIkfn9/8OEjTW8Vq91ZWh39FeehWA7Nu9ft8CpUEk1WWOyDF0OPyEU2Pnzf/bZC0P6IPzmAvu7KauQBVrgKpJ0tG2arHzX8e5Pb3PezNs/PrX+3JMyCLn9XXf37tPFHvt09WfCDDjx+yyn1/p1V11j7GnB/q3leLuVva79S/tzed+db08YpF4uOZtmz/9oXWMq6BCAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiAALELvqt/BBgACqVeUBXxcCkAAAAASUVORK5CYII='
|
|
64
|
+
},
|
|
65
|
+
// 加载失败的错误占位图
|
|
66
|
+
errorImg: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAGXRFWHRTb2Z0d2FyZQ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IIIAQQAAhgABCACGAAEIAAYQAAggBBBACCAEEEAIIIAQQQAggfyL/BBgA8PgLdH0TBtkAAAAASUVORK5CYII='
|
|
69
|
+
},
|
|
70
|
+
// 图片进入可见区域前多少像素时,单位rpx,开始加载图片
|
|
71
|
+
// 负数为图片超出屏幕底部多少距离后触发懒加载,正数为图片顶部距离屏幕底部多少距离时触发(图片还没出现在屏幕上)
|
|
72
|
+
threshold: {
|
|
73
|
+
type: [Number, String],
|
|
74
|
+
default: 100
|
|
75
|
+
},
|
|
76
|
+
// 淡入淡出动画的过渡时间
|
|
77
|
+
duration: {
|
|
78
|
+
type: [Number, String],
|
|
79
|
+
default: 500
|
|
80
|
+
},
|
|
81
|
+
// 渡效果的速度曲线,各个之间差别不大,因为这是淡入淡出,且时间很短,不是那些变形或者移动的情况,会明显
|
|
82
|
+
// linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(n,n,n,n);
|
|
83
|
+
effect: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: 'ease-in-out'
|
|
86
|
+
},
|
|
87
|
+
// 是否使用过渡效果
|
|
88
|
+
isEffect: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
92
|
+
// 圆角值
|
|
93
|
+
borderRadius: {
|
|
94
|
+
type: [Number, String],
|
|
95
|
+
default: 0
|
|
96
|
+
},
|
|
97
|
+
// 图片高度,单位rpx
|
|
98
|
+
height: {
|
|
99
|
+
type: [Number, String],
|
|
100
|
+
default: '200'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
data() {
|
|
104
|
+
return {
|
|
105
|
+
isShow: false,
|
|
106
|
+
opacity: 1,
|
|
107
|
+
time: this.duration,
|
|
108
|
+
loadStatus: '', // 默认是懒加载中的状态
|
|
109
|
+
isError: false, // 图片加载失败
|
|
110
|
+
elIndex: guid()
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
computed: {
|
|
114
|
+
// 将threshold从rpx转为px
|
|
115
|
+
getThreshold() {
|
|
116
|
+
// 先取绝对值,因为threshold可能是负数,最后根据this.threshold是正数或者负数,重新还原
|
|
117
|
+
let thresholdPx = uni.upx2px(Math.abs(this.threshold));
|
|
118
|
+
return this.threshold < 0 ? -thresholdPx : thresholdPx;
|
|
119
|
+
},
|
|
120
|
+
// 计算图片的高度,可能为auto,带%,或者直接数值
|
|
121
|
+
imgHeight() {
|
|
122
|
+
return addUnit(this.height);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
created() {
|
|
126
|
+
// 由于一些特殊原因,不能将此变量放到data中定义
|
|
127
|
+
this.observer = {};
|
|
128
|
+
},
|
|
129
|
+
watch: {
|
|
130
|
+
isShow(nVal) {
|
|
131
|
+
// 如果是不开启过渡效果,直接返回
|
|
132
|
+
if (!this.isEffect) return;
|
|
133
|
+
this.time = 0;
|
|
134
|
+
// 原来opacity为1(不透明,是为了显示占位图),改成0(透明,意味着该元素显示的是背景颜色,默认的白色),再改成1,是为了获得过渡效果
|
|
135
|
+
this.opacity = 0;
|
|
136
|
+
// 延时30ms,否则在浏览器H5,过渡效果无效
|
|
137
|
+
setTimeout(() => {
|
|
138
|
+
this.time = this.duration;
|
|
139
|
+
this.opacity = 1;
|
|
140
|
+
}, 30)
|
|
141
|
+
},
|
|
142
|
+
// 图片路径发生变化时,需要重新标记一些变量,否则会一直卡在某一个状态,比如isError
|
|
143
|
+
image(n) {
|
|
144
|
+
if (!n) {
|
|
145
|
+
// 如果传入null或者'',或者undefined,标记为错误状态
|
|
146
|
+
this.isError = true;
|
|
147
|
+
} else {
|
|
148
|
+
this.init();
|
|
149
|
+
this.isError = false;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
emits: ['click', 'load', 'error'],
|
|
154
|
+
methods: {
|
|
155
|
+
// 用于重新初始化
|
|
156
|
+
init() {
|
|
157
|
+
this.isError = false;
|
|
158
|
+
this.loadStatus = '';
|
|
159
|
+
},
|
|
160
|
+
// 点击图片触发的事件,loadlazy-还是懒加载中状态,loading-图片正在加载,loaded-图片加加载完成
|
|
161
|
+
clickImg() {
|
|
162
|
+
let whichImg = '';
|
|
163
|
+
// 如果isShow为false,意味着图片还没开始加载,点击的只能是最开始的占位图
|
|
164
|
+
if (this.isShow == false) whichImg = 'lazyImg';
|
|
165
|
+
// 如果isError为true,意味着图片加载失败,这是只剩下错误的占位图,所以点击的只能是错误占位图
|
|
166
|
+
// 当然,也可以给错误的占位图元素绑定点击事件,看你喜欢~
|
|
167
|
+
else if (this.isError == true) whichImg = 'errorImg';
|
|
168
|
+
// 总共三张图片,除了两个占位图,剩下的只能是正常的那张图片了
|
|
169
|
+
else whichImg = 'realImg';
|
|
170
|
+
// 只通知当前图片的index
|
|
171
|
+
this.$emit('click', this.index);
|
|
172
|
+
},
|
|
173
|
+
// 图片加载完成事件,可能是加载占位图时触发,也可能是加载真正的图片完成时触发,通过isShow区分
|
|
174
|
+
imgLoaded() {
|
|
175
|
+
// 占位图加载完成
|
|
176
|
+
if (this.loadStatus == '') {
|
|
177
|
+
this.loadStatus = 'lazyed';
|
|
178
|
+
}
|
|
179
|
+
// 真正的图片加载完成
|
|
180
|
+
else if (this.loadStatus == 'lazyed') {
|
|
181
|
+
this.loadStatus = 'loaded';
|
|
182
|
+
this.$emit('load', this.index);
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
// 错误的图片加载完成
|
|
186
|
+
errorImgLoaded() {
|
|
187
|
+
this.$emit('error', this.index);
|
|
188
|
+
},
|
|
189
|
+
// 图片加载失败
|
|
190
|
+
loadError() {
|
|
191
|
+
this.isError = true;
|
|
192
|
+
},
|
|
193
|
+
disconnectObserver(observerName) {
|
|
194
|
+
const observer = this[observerName];
|
|
195
|
+
observer && observer.disconnect();
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
beforeUnmount() {
|
|
199
|
+
// 销毁页面时,可能还没触发某张很底部的懒加载图片,所以把这个事件给去掉
|
|
200
|
+
//observer.disconnect();
|
|
201
|
+
},
|
|
202
|
+
mounted() {
|
|
203
|
+
// 此uOnReachBottom事件由mixin.js发出,目的是让页面到底时,保证所有图片都进行加载,做到绝对稳定且可靠
|
|
204
|
+
this.$nextTick(() => {
|
|
205
|
+
uni.$once('uOnReachBottom', () => {
|
|
206
|
+
if (!this.isShow) this.isShow = true;
|
|
207
|
+
});
|
|
208
|
+
})
|
|
209
|
+
// mounted的时候,不一定挂载了这个元素,延时30ms,否则会报错或者不报错,但是也没有效果
|
|
210
|
+
|
|
211
|
+
setTimeout(() => {
|
|
212
|
+
// #ifndef APP-NVUE
|
|
213
|
+
// 这里是组件内获取布局状态,不能用uni.createIntersectionObserver,而必须用this.createIntersectionObserver
|
|
214
|
+
// this.disconnectObserver('contentObserver');
|
|
215
|
+
// nvue 里不支持
|
|
216
|
+
const contentObserver = uni.createIntersectionObserver(this);
|
|
217
|
+
// 要理解这里怎么计算的,请看这个:
|
|
218
|
+
// https://blog.csdn.net/qq_25324335/article/details/83687695
|
|
219
|
+
contentObserver.relativeToViewport({
|
|
220
|
+
bottom: this.getThreshold,
|
|
221
|
+
}).observe('.up-lazy-item-' + this.elIndex, (res) => {
|
|
222
|
+
// console.log('relativeToViewport', res)
|
|
223
|
+
if (res.intersectionRatio > 0) {
|
|
224
|
+
// 懒加载状态改变
|
|
225
|
+
this.isShow = true;
|
|
226
|
+
// 如果图片已经加载,去掉监听,减少性能的消耗
|
|
227
|
+
this.disconnectObserver('contentObserver');
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
this.contentObserver = contentObserver;
|
|
231
|
+
// #endif
|
|
232
|
+
// #ifdef APP-NVUE
|
|
233
|
+
this.isShow = true;
|
|
234
|
+
// #endif
|
|
235
|
+
}, 30)
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
</script>
|
|
239
|
+
|
|
240
|
+
<style scoped lang="scss">
|
|
241
|
+
@import "../../libs/css/components.scss";
|
|
242
|
+
|
|
243
|
+
.up-wrap {
|
|
244
|
+
background-color: #eee;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.up-lazy-item {
|
|
249
|
+
// 骗系统开启硬件加速
|
|
250
|
+
transform: transition3d(0, 0, 0);
|
|
251
|
+
/* #ifndef APP-NVUE */
|
|
252
|
+
// 防止图片加载“闪一下”
|
|
253
|
+
will-change: transform;
|
|
254
|
+
display: block;
|
|
255
|
+
width: 100%;
|
|
256
|
+
/* #endif */
|
|
257
|
+
}
|
|
258
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
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/line.js
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// line组件
|
|
12
|
+
line: {
|
|
13
|
+
color: '#d6d7d9',
|
|
14
|
+
length: '100%',
|
|
15
|
+
direction: 'row',
|
|
16
|
+
hairline: true,
|
|
17
|
+
margin: 0,
|
|
18
|
+
dashed: false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 11:04:49
|
|
8
|
+
* @FilePath : /uview-ultra/libs/config/props/line.js
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// line组件
|
|
12
|
+
line: {
|
|
13
|
+
color: '#d6d7d9',
|
|
14
|
+
length: '100%',
|
|
15
|
+
direction: 'row',
|
|
16
|
+
hairline: true,
|
|
17
|
+
margin: '0',
|
|
18
|
+
dashed: false
|
|
19
|
+
}
|
|
20
|
+
} as UTSJSONObject
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue.js'
|
|
2
|
+
import defProps from '../../libs/config/props.js'
|
|
3
|
+
|
|
4
|
+
export const props = defineMixin({
|
|
5
|
+
props: {
|
|
6
|
+
color: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: () => defProps.line.color
|
|
9
|
+
},
|
|
10
|
+
// 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
11
|
+
length: {
|
|
12
|
+
type: [String, Number],
|
|
13
|
+
default: () => defProps.line.length
|
|
14
|
+
},
|
|
15
|
+
// 线条方向,col-竖向,row-横向
|
|
16
|
+
direction: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: () => defProps.line.direction
|
|
19
|
+
},
|
|
20
|
+
// 是否显示细边框
|
|
21
|
+
hairline: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: () => defProps.line.hairline
|
|
24
|
+
},
|
|
25
|
+
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
26
|
+
margin: {
|
|
27
|
+
type: [String, Number],
|
|
28
|
+
default: () => defProps.line.margin
|
|
29
|
+
},
|
|
30
|
+
// 是否虚线,true-虚线,false-实线
|
|
31
|
+
dashed: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: () => defProps.line.dashed
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue.uts'
|
|
2
|
+
import defProps from './line.uts'
|
|
3
|
+
let crtProp = defProps['line'] as UTSJSONObject
|
|
4
|
+
|
|
5
|
+
export const propsLine = defineMixin({
|
|
6
|
+
props: {
|
|
7
|
+
color: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: crtProp['color']
|
|
10
|
+
},
|
|
11
|
+
// 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
12
|
+
length: {
|
|
13
|
+
type: [String, Number],
|
|
14
|
+
default: crtProp['length']
|
|
15
|
+
},
|
|
16
|
+
// 线条方向,col-竖向,row-横向
|
|
17
|
+
direction: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: crtProp['direction']
|
|
20
|
+
},
|
|
21
|
+
// 是否显示细边框
|
|
22
|
+
hairline: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: crtProp['hairline']
|
|
25
|
+
},
|
|
26
|
+
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
27
|
+
margin: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: crtProp['margin']
|
|
30
|
+
},
|
|
31
|
+
// 是否虚线,true-虚线,false-实线
|
|
32
|
+
dashed: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: crtProp['dashed']
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="up-line"
|
|
4
|
+
:style="[lineStyle]"
|
|
5
|
+
>
|
|
6
|
+
</view>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import { propsLine } from './props';
|
|
11
|
+
import { mpMixin } from '../../libs/mixin/mpMixin';
|
|
12
|
+
import { mixin } from '../../libs/mixin/mixin';
|
|
13
|
+
import { addUnit, addStyle, deepMerge } from '../../libs/function/index';
|
|
14
|
+
/**
|
|
15
|
+
* line 线条
|
|
16
|
+
* @description 此组件一般用于显示一根线条,用于分隔内容块,有横向和竖向两种模式,且能设置0.5px线条,使用也很简单
|
|
17
|
+
* @tutorial https://ijry.github.io/uview-plus/components/line.html
|
|
18
|
+
* @property {String} color 线条的颜色 ( 默认 '#d6d7d9' )
|
|
19
|
+
* @property {String } length 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等 ( 默认 '100%' )
|
|
20
|
+
* @property {String} direction 线条的方向,row-横向,col-竖向 (默认 'row' )
|
|
21
|
+
* @property {Boolean} hairline 是否显示细线条 (默认 true )
|
|
22
|
+
* @property {String } margin 线条与上下左右元素的间距,字符串形式,如"30px" (默认 0 )
|
|
23
|
+
* @property {Boolean} dashed 是否虚线,true-虚线,false-实线 (默认 false )
|
|
24
|
+
* @property {Object} customStyle 定义需要用到的外部样式
|
|
25
|
+
* @example <up-line color="red"></up-line>
|
|
26
|
+
*/
|
|
27
|
+
export default {
|
|
28
|
+
name: 'up-line',
|
|
29
|
+
mixins: [mpMixin, mixin, propsLine],
|
|
30
|
+
computed: {
|
|
31
|
+
lineStyle(): UTSJSONObject {
|
|
32
|
+
const style = {}
|
|
33
|
+
style['margin'] = this.margin
|
|
34
|
+
// 如果是水平线条,边框高度为1px,再通过transform缩小一半,就是0.5px了
|
|
35
|
+
if (this.direction === 'row') {
|
|
36
|
+
// 此处采用兼容分开写,兼容nvue的写法
|
|
37
|
+
style['borderBottomWidth'] = '1px'
|
|
38
|
+
style['borderBottomStyle'] = this.dashed ? 'dashed' : 'solid'
|
|
39
|
+
style['width'] = addUnit(this.length)
|
|
40
|
+
if (this.hairline) style['transform'] = 'scaleY(0.5)'
|
|
41
|
+
} else {
|
|
42
|
+
// 如果是竖向线条,边框宽度为1px,再通过transform缩小一半,就是0.5px了
|
|
43
|
+
style['borderLeftWidth'] = '1px'
|
|
44
|
+
style['borderLeftStyle'] = this.dashed ? 'dashed' : 'solid'
|
|
45
|
+
style['height'] = addUnit(this.length)
|
|
46
|
+
if (this.hairline) style['transform'] = 'scaleX(0.5)'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
style['borderColor'] = this.color
|
|
50
|
+
return deepMerge(style, addStyle(this.customStyle))
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<style lang="scss" scoped>
|
|
57
|
+
@import "../../libs/css/components.scss";
|
|
58
|
+
|
|
59
|
+
.up-line {
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="up-line"
|
|
4
|
+
:style="[lineStyle]"
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
</view>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { props } from './props.js';
|
|
12
|
+
import { mpMixin } from '../../libs/mixin/mpMixin.js';
|
|
13
|
+
import { mixin } from '../../libs/mixin/mixin.js';
|
|
14
|
+
import { addUnit, addStyle, deepMerge } from '../../libs/function/index.js';
|
|
15
|
+
/**
|
|
16
|
+
* line 线条
|
|
17
|
+
* @author jry ijry@qq.com 2024
|
|
18
|
+
* @description 此组件一般用于显示一根线条,用于分隔内容块,有横向和竖向两种模式,且能设置0.5px线条,使用也很简单
|
|
19
|
+
* @tutorial https://ijry.github.io/uview-plus/components/line.html
|
|
20
|
+
* @property {String} color 线条的颜色 ( 默认 '#d6d7d9' )
|
|
21
|
+
* @property {String | Number} length 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等 ( 默认 '100%' )
|
|
22
|
+
* @property {String} direction 线条的方向,row-横向,col-竖向 (默认 'row' )
|
|
23
|
+
* @property {Boolean} hairline 是否显示细线条 (默认 true )
|
|
24
|
+
* @property {String | Number} margin 线条与上下左右元素的间距,字符串形式,如"30px" (默认 0 )
|
|
25
|
+
* @property {Boolean} dashed 是否虚线,true-虚线,false-实线 (默认 false )
|
|
26
|
+
* @property {Object} customStyle 定义需要用到的外部样式
|
|
27
|
+
* @example <up-line color="red"></up-line>
|
|
28
|
+
*/
|
|
29
|
+
export default {
|
|
30
|
+
name: 'up-line',
|
|
31
|
+
mixins: [props],
|
|
32
|
+
computed: {
|
|
33
|
+
lineStyle() {
|
|
34
|
+
const style = {}
|
|
35
|
+
style.margin = this.margin
|
|
36
|
+
// 如果是水平线条,边框高度为1px,再通过transform缩小一半,就是0.5px了
|
|
37
|
+
if (this.direction === 'row') {
|
|
38
|
+
// 此处采用兼容分开写,兼容nvue的写法
|
|
39
|
+
style.borderBottomWidth = '1px'
|
|
40
|
+
style.borderBottomStyle = this.dashed ? 'dashed' : 'solid'
|
|
41
|
+
style.width = addUnit(this.length)
|
|
42
|
+
if (this.hairline) style.transform = 'scaleY(0.5)'
|
|
43
|
+
} else {
|
|
44
|
+
// 如果是竖向线条,边框宽度为1px,再通过transform缩小一半,就是0.5px了
|
|
45
|
+
style.borderLeftWidth = '1px'
|
|
46
|
+
style.borderLeftStyle = this.dashed ? 'dashed' : 'solid'
|
|
47
|
+
style.height = addUnit(this.length)
|
|
48
|
+
if (this.hairline) style.transform = 'scaleX(0.5)'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
style.borderColor = this.color
|
|
52
|
+
return deepMerge(style, addStyle(this.customStyle))
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
@import "../../libs/css/components.scss";
|
|
60
|
+
|
|
61
|
+
.up-line {
|
|
62
|
+
/* #ifndef APP-NVUE */
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
/* #endif */
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
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/lineProgress.js
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
// lineProgress 组件
|
|
12
|
+
lineProgress: {
|
|
13
|
+
activeColor: '#19be6b',
|
|
14
|
+
inactiveColor: '#ececec',
|
|
15
|
+
percentage: 0,
|
|
16
|
+
showText: true,
|
|
17
|
+
height: 12
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue.js'
|
|
2
|
+
import defProps from '../../libs/config/props.js'
|
|
3
|
+
export const props = defineMixin({
|
|
4
|
+
props: {
|
|
5
|
+
// 激活部分的颜色
|
|
6
|
+
activeColor: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: () => defProps.lineProgress.activeColor
|
|
9
|
+
},
|
|
10
|
+
inactiveColor: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: () => defProps.lineProgress.color
|
|
13
|
+
},
|
|
14
|
+
// 进度百分比,数值
|
|
15
|
+
percentage: {
|
|
16
|
+
type: [String, Number],
|
|
17
|
+
default: () => defProps.lineProgress.inactiveColor
|
|
18
|
+
},
|
|
19
|
+
// 是否在进度条内部显示百分比的值
|
|
20
|
+
showText: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: () => defProps.lineProgress.showText
|
|
23
|
+
},
|
|
24
|
+
// 进度条的高度,单位px
|
|
25
|
+
height: {
|
|
26
|
+
type: [String, Number],
|
|
27
|
+
default: () => defProps.lineProgress.height
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
})
|