@10yun/cv-mobile-ui 0.5.29 → 0.5.31
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/package.json +5 -1
- package/plugins/luch-request/adapters/index.js +131 -0
- package/plugins/luch-request/core/InterceptorManager.js +50 -0
- package/plugins/luch-request/core/Request.js +199 -0
- package/plugins/luch-request/core/buildFullPath.js +20 -0
- package/plugins/luch-request/core/defaults.js +32 -0
- package/plugins/luch-request/core/dispatchRequest.js +5 -0
- package/plugins/luch-request/core/mergeConfig.js +125 -0
- package/plugins/luch-request/core/settle.js +16 -0
- package/plugins/luch-request/helpers/buildURL.js +71 -0
- package/plugins/luch-request/helpers/combineURLs.js +12 -0
- package/plugins/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/plugins/luch-request/index.d.ts +197 -0
- package/plugins/luch-request/index.js +2 -0
- package/plugins/luch-request/readme.md +3 -0
- package/plugins/luch-request/utils/clone.js +264 -0
- package/plugins/luch-request/utils.js +131 -0
- package/plugins/request.js +2 -2
- package/ui-cv/components/cv-btn-base/cv-btn-base.vue +1 -1
- package/ui-cv/components/cv-form-item/cv-form-item.vue +1 -1
- package/ui-fireui/fui-actionsheet/fui-actionsheet.vue +202 -0
- package/ui-fireui/fui-alert/fui-alert.vue +141 -0
- package/ui-fireui/fui-badge/fui-badge.vue +158 -0
- package/ui-fireui/fui-bottom-navigation/fui-bottom-navigation.vue +390 -0
- package/ui-fireui/fui-bottom-popup/fui-bottom-popup.vue +100 -0
- package/ui-fireui/fui-bubble-popup/fui-bubble-popup.vue +236 -0
- package/ui-fireui/fui-button/fui-button.vue +424 -0
- package/ui-fireui/fui-calendar/fui-calendar.js +915 -0
- package/ui-fireui/fui-calendar/fui-calendar.vue +868 -0
- package/ui-fireui/fui-card/fui-card.vue +231 -0
- package/ui-fireui/fui-cascade-selection/fui-cascade-selection.vue +538 -0
- package/ui-fireui/fui-circular-progress/fui-circular-progress.vue +261 -0
- package/ui-fireui/fui-collapse/fui-collapse.vue +179 -0
- package/ui-fireui/fui-countdown/fui-countdown.vue +301 -0
- package/ui-fireui/fui-datetime/fui-datetime.vue +570 -0
- package/ui-fireui/fui-divider/fui-divider.vue +118 -0
- package/ui-fireui/fui-drawer/fui-drawer.vue +103 -0
- package/ui-fireui/fui-dropdown-list/fui-dropdown-list.vue +70 -0
- package/ui-fireui/fui-fab/fui-fab.vue +284 -0
- package/ui-fireui/fui-footer/fui-footer.vue +131 -0
- package/ui-fireui/fui-grid/fui-grid.vue +42 -0
- package/ui-fireui/fui-grid-item/fui-grid-item.vue +142 -0
- package/ui-fireui/fui-icon/fui-icon.vue +820 -0
- package/ui-fireui/fui-image-cropper/fui-image-cropper.vue +1058 -0
- package/ui-fireui/fui-image-group/fui-image-group.vue +149 -0
- package/ui-fireui/fui-keyboard/fui-keyboard.vue +254 -0
- package/ui-fireui/fui-keyboard-input/fui-keyboard-input.vue +78 -0
- package/ui-fireui/fui-list-cell/fui-list-cell.vue +178 -0
- package/ui-fireui/fui-list-view/fui-list-view.vue +87 -0
- package/ui-fireui/fui-loading/fui-loading.vue +78 -0
- package/ui-fireui/fui-loadmore/fui-loadmore.vue +163 -0
- package/ui-fireui/fui-modal/fui-modal.vue +392 -0
- package/ui-fireui/fui-navigation-bar/fui-navigation-bar.vue +180 -0
- package/ui-fireui/fui-no-data/fui-no-data.vue +116 -0
- package/ui-fireui/fui-nomore/fui-nomore.vue +116 -0
- package/ui-fireui/fui-numberbox/fui-numberbox.vue +234 -0
- package/ui-fireui/fui-numberbox-border/fui-numberbox-border.vue +232 -0
- package/ui-fireui/fui-picture-cropper/fui-picture-cropper.vue +682 -0
- package/ui-fireui/fui-picture-cropper/fui-picture-cropper.wxs +560 -0
- package/ui-fireui/fui-rate/fui-rate.vue +167 -0
- package/ui-fireui/fui-round-progress/fui-round-progress.vue +306 -0
- package/ui-fireui/fui-scroll-top/fui-scroll-top.vue +189 -0
- package/ui-fireui/fui-sharemodel/fui-sharemodel.vue +181 -0
- package/ui-fireui/fui-skeleton/fui-skeleton.vue +248 -0
- package/ui-fireui/fui-steps/fui-steps.vue +214 -0
- package/ui-fireui/fui-sticky/fui-sticky.vue +155 -0
- package/ui-fireui/fui-sticky-wxs/fui-sticky-wxs.vue +133 -0
- package/ui-fireui/fui-sticky-wxs/fui-sticky.wxs +44 -0
- package/ui-fireui/fui-swipe-action/fui-swipe-action.vue +301 -0
- package/ui-fireui/fui-tabbar/fui-tabbar.vue +283 -0
- package/ui-fireui/fui-tabs/fui-tabs.vue +284 -0
- package/ui-fireui/fui-tabs2/fui-tabs2.vue +284 -0
- package/ui-fireui/fui-tag/fui-tag.vue +374 -0
- package/ui-fireui/fui-time-axis/fui-time-axis.vue +36 -0
- package/ui-fireui/fui-timeaxis-item/fui-timeaxis-item.vue +48 -0
- package/ui-fireui/fui-tips/fui-tips.vue +161 -0
- package/ui-fireui/fui-toast/fui-toast.vue +117 -0
- package/ui-fireui/fui-top-dropdown/fui-top-dropdown.vue +129 -0
- package/ui-fireui/fui-upload/fui-upload.vue +446 -0
- package/ui-fireui/fui-uploadsamll/fui-uploadsamll.vue +472 -0
- package/uview-plus/README.md +2 -2
- package/uview-plus/changelog-wu-tool.md +21 -0
- package/uview-plus/changelog-wu.md +91 -0
- package/uview-plus/components/u-action-sheet/_doc/changelog.md +12 -0
- package/uview-plus/components/u-action-sheet/_doc/package.json +92 -0
- package/uview-plus/components/u-action-sheet/_doc/readme.md +16 -0
- package/uview-plus/components/u-action-sheet/u-action-sheet.vue +8 -8
- package/uview-plus/components/u-album/u-album.vue +1 -1
- package/uview-plus/components/u-alert/u-alert.vue +5 -5
- package/uview-plus/components/u-app-update/_doc/changelog.md +26 -0
- package/uview-plus/components/u-app-update/_doc/package.json +89 -0
- package/uview-plus/components/u-app-update/_doc/readme.md +16 -0
- package/uview-plus/components/u-app-update/config.js +120 -0
- package/uview-plus/components/u-app-update/img/act.png +0 -0
- package/uview-plus/components/u-app-update/img/appUploadAlertBoxBg.png +0 -0
- package/uview-plus/components/u-app-update/img/close.png +0 -0
- package/uview-plus/components/u-app-update/js-sdk/checkVersion.js +81 -0
- package/uview-plus/components/u-app-update/js-sdk/silentlyAppUpdate.js +41 -0
- package/uview-plus/components/u-app-update/pages/index.vue +8 -0
- package/uview-plus/components/u-app-update/u-app-update.vue +583 -0
- package/uview-plus/components/u-avatar/u-avatar.vue +2 -2
- package/uview-plus/components/u-avatar-group/u-avatar-group.vue +79 -3
- package/uview-plus/components/u-back-top/u-back-top.vue +4 -4
- package/uview-plus/components/u-badge/u-badge.vue +1 -1
- package/uview-plus/components/u-button/u-button.vue +8 -8
- package/uview-plus/components/u-button-wu/_doc/changelog.md +6 -0
- package/uview-plus/components/u-button-wu/_doc/package.json +89 -0
- package/uview-plus/components/u-button-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-button-wu/u-button-wu.vue +522 -0
- package/uview-plus/components/u-button-wu/vue.scss +81 -0
- package/uview-plus/components/u-calendar/u-calendar.vue +5 -6
- package/uview-plus/components/u-calendar-wu/_doc/changelog.md +145 -0
- package/uview-plus/components/u-calendar-wu/_doc/package.json +90 -0
- package/uview-plus/components/u-calendar-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-calendar-wu/calendar.js +664 -0
- package/uview-plus/components/u-calendar-wu/i18n/en.json +14 -0
- package/uview-plus/components/u-calendar-wu/i18n/index.js +8 -0
- package/uview-plus/components/u-calendar-wu/i18n/zh-Hans.json +14 -0
- package/uview-plus/components/u-calendar-wu/i18n/zh-Hant.json +14 -0
- package/uview-plus/components/u-calendar-wu/props.js +166 -0
- package/uview-plus/components/u-calendar-wu/style.css +196 -0
- package/uview-plus/components/u-calendar-wu/u-calendar-wu.vue +921 -0
- package/uview-plus/components/u-calendar-wu/util.js +552 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-block/props.js +73 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-block/wu-calendar-block.vue +122 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-item/props.js +55 -0
- package/uview-plus/components/u-calendar-wu/wu-calendar-item/wu-calendar-item.vue +293 -0
- package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +2 -2
- package/uview-plus/components/u-card/u-card.vue +139 -3
- package/uview-plus/components/u-cell/_doc/changelog.md +6 -0
- package/uview-plus/components/u-cell/_doc/package.json +89 -0
- package/uview-plus/components/u-cell/_doc/readme.md +25 -0
- package/uview-plus/components/u-cell/u-cell.vue +4 -4
- package/uview-plus/components/u-cell-group/u-cell-group.vue +2 -2
- package/uview-plus/components/u-checkbox/_doc/changelog.md +8 -0
- package/uview-plus/components/u-checkbox/_doc/package.json +88 -0
- package/uview-plus/components/u-checkbox/_doc/readme.md +25 -0
- package/uview-plus/components/u-checkbox/u-checkbox.vue +4 -4
- package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +1 -1
- package/uview-plus/components/u-code/_doc/changelog.md +6 -0
- package/uview-plus/components/u-code/_doc/package.json +86 -0
- package/uview-plus/components/u-code/_doc/readme.md +16 -0
- package/uview-plus/components/u-code/u-code.vue +1 -1
- package/uview-plus/components/u-code-input/u-code-input.vue +1 -1
- package/uview-plus/components/u-col/u-col.vue +1 -1
- package/uview-plus/components/u-collapse/u-collapse.vue +2 -2
- package/uview-plus/components/u-collapse-item/u-collapse-item.vue +218 -3
- package/uview-plus/components/u-column-notice/u-column-notice.vue +3 -3
- package/uview-plus/components/u-count-down/u-count-down.vue +1 -1
- package/uview-plus/components/u-count-to/u-count-to.vue +1 -1
- package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +3 -3
- package/uview-plus/components/u-divider/u-divider.vue +3 -3
- package/uview-plus/components/u-drag-sort/_doc/changelog.md +0 -0
- package/uview-plus/components/u-drag-sort/_doc/package.json +85 -0
- package/uview-plus/components/u-drag-sort/_doc/readme.md +16 -0
- package/uview-plus/components/u-drag-sort/u-drag-sort.vue +3 -0
- package/uview-plus/components/u-dropdown/u-dropdown.vue +3 -3
- package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +1 -1
- package/uview-plus/components/u-empty/u-empty.vue +30 -4
- package/uview-plus/components/u-form-item/u-form-item.vue +4 -4
- package/uview-plus/components/u-gap/_doc/changelog.md +4 -0
- package/uview-plus/components/u-gap/_doc/package.json +86 -0
- package/uview-plus/components/u-gap/_doc/readme.md +22 -0
- package/uview-plus/components/u-gap/u-gap.vue +1 -1
- package/uview-plus/components/u-grid/u-grid.vue +1 -1
- package/uview-plus/components/u-grid-item/u-grid-item.vue +1 -1
- package/uview-plus/components/u-icon/_doc/changelog.md +10 -0
- package/uview-plus/components/u-icon/_doc/package.json +85 -0
- package/uview-plus/components/u-icon/_doc/readme.md +10 -0
- package/uview-plus/components/u-icon/icon.js +23 -25
- package/uview-plus/components/u-icon/icons.js +213 -213
- package/uview-plus/components/u-icon/style.css +3 -3
- package/uview-plus/components/u-icon/u-icon.vue +1 -1
- package/uview-plus/components/u-icon/u-icon2.vue +149 -0
- package/uview-plus/components/u-image/u-image.vue +5 -5
- package/uview-plus/components/u-image-wu/_doc/changelog.md +21 -0
- package/uview-plus/components/u-image-wu/_doc/package.json +88 -0
- package/uview-plus/components/u-image-wu/_doc/readme.md +11 -0
- package/uview-plus/components/u-image-wu/props.js +94 -0
- package/uview-plus/components/u-image-wu/u-image-wu.vue +243 -0
- package/uview-plus/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/uview-plus/components/u-index-list/u-index-list.vue +2 -2
- package/uview-plus/components/u-input/_doc/changelog.md +6 -0
- package/uview-plus/components/u-input/_doc/package.json +88 -0
- package/uview-plus/components/u-input/_doc/readme.md +16 -0
- package/uview-plus/components/u-input/u-input.vue +4 -4
- package/uview-plus/components/u-keyboard/u-keyboard.vue +6 -6
- package/uview-plus/components/u-lazy-load/u-lazy-load.vue +257 -3
- package/uview-plus/components/u-line/_doc/changelog.md +8 -0
- package/uview-plus/components/u-line/_doc/package.json +86 -0
- package/uview-plus/components/u-line/_doc/readme.md +16 -0
- package/uview-plus/components/u-line/u-line.vue +1 -1
- package/uview-plus/components/u-line-progress/u-line-progress.vue +1 -1
- package/uview-plus/components/u-link/_doc/changelog.md +8 -0
- package/uview-plus/components/u-link/_doc/package.json +86 -0
- package/uview-plus/components/u-link/_doc/readme.md +20 -0
- package/uview-plus/components/u-link/u-link.vue +1 -1
- package/uview-plus/components/u-list/u-list.vue +1 -1
- package/uview-plus/components/u-list-item/u-list-item.vue +1 -1
- package/uview-plus/components/u-loading-icon/_doc/changelog.md +12 -0
- package/uview-plus/components/u-loading-icon/_doc/package.json +86 -0
- package/uview-plus/components/u-loading-icon/_doc/readme.md +16 -0
- package/uview-plus/components/u-loading-icon/props.js +1 -1
- package/uview-plus/components/u-loading-icon/u-loading-icon.vue +191 -3
- package/uview-plus/components/u-loading-page/u-loading-page.vue +4 -4
- package/uview-plus/components/u-loadmore/u-loadmore.vue +4 -4
- package/uview-plus/components/u-mask/u-mask.vue +120 -113
- package/uview-plus/components/u-message-input/u-message-input.vue +1 -1
- package/uview-plus/components/u-modal/u-modal.vue +6 -6
- package/uview-plus/components/u-navbar/_doc/changelog.md +6 -0
- package/uview-plus/components/u-navbar/_doc/package.json +89 -0
- package/uview-plus/components/u-navbar/_doc/readme.md +16 -0
- package/uview-plus/components/u-navbar/u-navbar.vue +4 -4
- package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +2 -2
- package/uview-plus/components/u-navbar-wu/props.js +102 -0
- package/uview-plus/components/u-navbar-wu/u-navbar-wu.vue +196 -0
- package/uview-plus/components/u-no-network/u-no-network.vue +5 -5
- package/uview-plus/components/u-notice-bar/u-notice-bar.vue +5 -5
- package/uview-plus/components/u-notify/u-notify.vue +6 -6
- package/uview-plus/components/u-number-box/_doc/changelog.md +19 -0
- package/uview-plus/components/u-number-box/_doc/package.json +88 -0
- package/uview-plus/components/u-number-box/_doc/readme.md +16 -0
- package/uview-plus/components/u-number-box/u-number-box.vue +9 -3
- package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +1 -1
- package/uview-plus/components/u-overlay/_doc/changelog.md +4 -0
- package/uview-plus/components/u-overlay/_doc/package.json +88 -0
- package/uview-plus/components/u-overlay/_doc/readme.md +16 -0
- package/uview-plus/components/u-overlay/u-overlay.vue +3 -3
- package/uview-plus/components/u-picker/u-picker.vue +5 -5
- package/uview-plus/components/u-popup/_doc/changelog.md +4 -0
- package/uview-plus/components/u-popup/_doc/package.json +92 -0
- package/uview-plus/components/u-popup/_doc/readme.md +16 -0
- package/uview-plus/components/u-popup/u-popup.vue +8 -8
- package/uview-plus/components/u-popup-wu/keypress.js +45 -0
- package/uview-plus/components/u-popup-wu/u-popup-wu.vue +519 -0
- package/uview-plus/components/u-radio/_doc/changelog.md +6 -0
- package/uview-plus/components/u-radio/_doc/package.json +88 -0
- package/uview-plus/components/u-radio/_doc/readme.md +25 -0
- package/uview-plus/components/u-radio/u-radio.vue +4 -4
- package/uview-plus/components/u-radio-group/u-radio-group.vue +1 -1
- package/uview-plus/components/u-rate/u-rate.vue +5 -5
- package/uview-plus/components/u-read-more/u-read-more.vue +126 -3
- package/uview-plus/components/u-row/_doc/changelog.md +8 -0
- package/uview-plus/components/u-row/_doc/package.json +86 -0
- package/uview-plus/components/u-row/_doc/readme.md +16 -0
- package/uview-plus/components/u-row/u-row.vue +1 -1
- package/uview-plus/components/u-row-notice/u-row-notice.vue +3 -3
- package/uview-plus/components/u-safe-bottom/_doc/changelog.md +6 -0
- package/uview-plus/components/u-safe-bottom/_doc/package.json +86 -0
- package/uview-plus/components/u-safe-bottom/_doc/readme.md +16 -0
- package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +48 -3
- package/uview-plus/components/u-search/u-search.vue +4 -4
- package/uview-plus/components/u-select/u-select.vue +175 -3
- package/uview-plus/components/u-skeleton/u-skeleton.vue +3 -3
- package/uview-plus/components/u-sku-wu/_doc/changelog.md +27 -0
- package/uview-plus/components/u-sku-wu/_doc/package.json +93 -0
- package/uview-plus/components/u-sku-wu/_doc/readme.md +16 -0
- package/uview-plus/components/u-sku-wu/props.js +86 -0
- package/uview-plus/components/u-sku-wu/style.css +271 -0
- package/uview-plus/components/u-sku-wu/u-sku-wu.vue +864 -0
- package/uview-plus/components/u-status-bar/_doc/changelog.md +4 -0
- package/uview-plus/components/u-status-bar/_doc/package.json +86 -0
- package/uview-plus/components/u-status-bar/_doc/readme.md +16 -0
- package/uview-plus/components/u-status-bar/u-status-bar.vue +1 -1
- package/uview-plus/components/u-steps/u-steps.vue +1 -1
- package/uview-plus/components/u-steps-item/u-steps-item.vue +7 -7
- package/uview-plus/components/u-sticky/u-sticky.vue +1 -1
- package/uview-plus/components/u-subsection/u-subsection.vue +1 -1
- package/uview-plus/components/u-swipe-action/u-swipe-action.vue +1 -1
- package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +3 -3
- package/uview-plus/components/u-swiper/u-swiper.vue +1 -1
- package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
- package/uview-plus/components/u-switch/u-switch.vue +2 -2
- package/uview-plus/components/u-tabbar/u-tabbar.vue +2 -2
- package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +9 -4
- package/uview-plus/components/u-table/u-table.vue +1 -1
- package/uview-plus/components/u-tabs/u-tabs.vue +3 -3
- package/uview-plus/components/u-tag/u-tag.vue +5 -5
- package/uview-plus/components/u-text/_doc/changelog.md +10 -0
- package/uview-plus/components/u-text/_doc/package.json +89 -0
- package/uview-plus/components/u-text/_doc/readme.md +20 -0
- package/uview-plus/components/u-text/u-text.vue +159 -3
- package/uview-plus/components/u-textarea/_doc/changelog.md +6 -0
- package/uview-plus/components/u-textarea/_doc/package.json +86 -0
- package/uview-plus/components/u-textarea/_doc/readme.md +25 -0
- package/uview-plus/components/u-toast/u-toast.vue +8 -8
- package/uview-plus/components/u-tooltip/u-tooltip.vue +6 -6
- package/uview-plus/components/u-transition/_doc/changelog.md +14 -0
- package/uview-plus/components/u-transition/_doc/package.json +86 -0
- package/uview-plus/components/u-transition/_doc/readme.md +16 -0
- package/uview-plus/components/u-transition-wu/createAnimation.js +148 -0
- package/uview-plus/components/u-transition-wu/props.js +32 -0
- package/uview-plus/components/u-transition-wu/u-transition.vue +300 -0
- package/uview-plus/components/u-upload/u-upload.vue +10 -10
- package/uview-plus/components/u-verification-code/u-verification-code.vue +161 -0
- package/uview-plus/components/u-waterfall/u-waterfall.vue +221 -3
- package/uview-plus/index.js +109 -94
- package/uview-plus/libs/config/config.js +46 -48
- package/uview-plus/libs/css/color.scss +32 -311
- package/uview-plus/libs/css/components-wu.scss +30 -0
- package/uview-plus/libs/css/vue.scss +10 -10
- package/uview-plus/libs/ctocode/index.js +120 -0
- package/uview-plus/libs/function/calc.js +61 -55
- package/uview-plus/libs/function/color/color-convert/CHANGELOG.md +54 -0
- package/uview-plus/libs/function/color/color-convert/LICENSE +21 -0
- package/uview-plus/libs/function/color/color-convert/README.md +68 -0
- package/uview-plus/libs/function/color/color-convert/conversions.js +839 -0
- package/uview-plus/libs/function/color/color-convert/index.js +81 -0
- package/uview-plus/libs/function/color/color-convert/package.json +48 -0
- package/uview-plus/libs/function/color/color-convert/route.js +97 -0
- package/uview-plus/libs/function/color/color-name/LICENSE +8 -0
- package/uview-plus/libs/function/color/color-name/README.md +11 -0
- package/uview-plus/libs/function/color/color-name/index.js +152 -0
- package/uview-plus/libs/function/color/color-name/package.json +28 -0
- package/uview-plus/libs/function/color/color-string/LICENSE +21 -0
- package/uview-plus/libs/function/color/color-string/README.md +62 -0
- package/uview-plus/libs/function/color/color-string/index.js +244 -0
- package/uview-plus/libs/function/color/color-string/package.json +39 -0
- package/uview-plus/libs/function/color/color.js +496 -0
- package/uview-plus/libs/function/color/index.js +158 -0
- package/uview-plus/libs/function/color/is-arrayish/LICENSE +21 -0
- package/uview-plus/libs/function/color/is-arrayish/README.md +16 -0
- package/uview-plus/libs/function/color/is-arrayish/index.js +9 -0
- package/uview-plus/libs/function/color/is-arrayish/package.json +45 -0
- package/uview-plus/libs/function/color/is-arrayish/yarn-error.log +1443 -0
- package/uview-plus/libs/function/color/simple-swizzle/LICENSE +21 -0
- package/uview-plus/libs/function/color/simple-swizzle/README.md +39 -0
- package/uview-plus/libs/function/color/simple-swizzle/index.js +29 -0
- package/uview-plus/libs/function/color/simple-swizzle/package.json +36 -0
- package/uview-plus/libs/function/colorGradient.js +108 -106
- package/uview-plus/libs/function/debounce.js +17 -17
- package/uview-plus/libs/function/digit.js +1 -3
- package/uview-plus/libs/function/http.js +3 -3
- package/uview-plus/libs/function/index-wu.js +198 -0
- package/uview-plus/libs/function/index.js +579 -566
- package/uview-plus/libs/function/platform.js +18 -18
- package/uview-plus/libs/function/test.js +135 -137
- package/uview-plus/libs/function/throttle.js +17 -17
- package/uview-plus/libs/luch-request/core/Request.js +199 -199
- package/uview-plus/libs/mixin/mpMixin.js +1 -0
- package/uview-plus/libs/mixin/openType.js +33 -0
- package/uview-plus/libs/util/async-validator.js +1343 -1343
- package/uview-plus/libs/util/dayjs.js +404 -0
- package/uview-plus/libs/util/route.js +101 -105
- package/uview-plus/package-wu-tool.json +84 -0
- package/uview-plus/package-wu.json +112 -0
- package/uview-plus/package.json +106 -95
- package/uview-plus/readme-wu.md +148 -0
- package/uview-ui/index.js +51 -52
- package/plugins/uni-upgrade.js +0 -294
package/uview-ui/index.js
CHANGED
|
@@ -1,79 +1,78 @@
|
|
|
1
1
|
// 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
|
|
2
|
-
const pleaseSetTranspileDependencies = {},
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const pleaseSetTranspileDependencies = {},
|
|
3
|
+
babelTest = pleaseSetTranspileDependencies?.test;
|
|
5
4
|
|
|
6
5
|
// 引入全局mixin
|
|
7
|
-
import mixin from './libs/mixin/mixin.js'
|
|
6
|
+
import mixin from './libs/mixin/mixin.js';
|
|
8
7
|
// 小程序特有的mixin
|
|
9
|
-
import mpMixin from './libs/mixin/mpMixin.js'
|
|
8
|
+
import mpMixin from './libs/mixin/mpMixin.js';
|
|
10
9
|
// 全局挂载引入http相关请求拦截插件
|
|
11
|
-
import Request from './libs/luch-request'
|
|
10
|
+
import Request from './libs/luch-request';
|
|
12
11
|
|
|
13
12
|
// 路由封装
|
|
14
|
-
import route from './libs/util/route.js'
|
|
13
|
+
import route from './libs/util/route.js';
|
|
15
14
|
// 颜色渐变相关,colorGradient-颜色渐变,hexToRgb-十六进制颜色转rgb颜色,rgbToHex-rgb转十六进制
|
|
16
|
-
import colorGradient from './libs/function/colorGradient.js'
|
|
15
|
+
import colorGradient from './libs/function/colorGradient.js';
|
|
17
16
|
|
|
18
17
|
// 规则检验
|
|
19
|
-
import test from './libs/function/test.js'
|
|
18
|
+
import test from './libs/function/test.js';
|
|
20
19
|
// 防抖方法
|
|
21
|
-
import debounce from './libs/function/debounce.js'
|
|
20
|
+
import debounce from './libs/function/debounce.js';
|
|
22
21
|
// 节流方法
|
|
23
|
-
import throttle from './libs/function/throttle.js'
|
|
22
|
+
import throttle from './libs/function/throttle.js';
|
|
24
23
|
// 公共文件写入的方法
|
|
25
|
-
import index from './libs/function/index.js'
|
|
24
|
+
import index from './libs/function/index.js';
|
|
26
25
|
|
|
27
26
|
// 配置信息
|
|
28
|
-
import config from './libs/config/config.js'
|
|
27
|
+
import config from './libs/config/config.js';
|
|
29
28
|
// props配置信息
|
|
30
|
-
import props from './libs/config/props.js'
|
|
29
|
+
import props from './libs/config/props.js';
|
|
31
30
|
// 各个需要fixed的地方的z-index配置文件
|
|
32
|
-
import zIndex from './libs/config/zIndex.js'
|
|
31
|
+
import zIndex from './libs/config/zIndex.js';
|
|
33
32
|
// 关于颜色的配置,特殊场景使用
|
|
34
|
-
import color from './libs/config/color.js'
|
|
33
|
+
import color from './libs/config/color.js';
|
|
35
34
|
// 平台
|
|
36
|
-
import platform from './libs/function/platform'
|
|
35
|
+
import platform from './libs/function/platform';
|
|
37
36
|
|
|
38
37
|
const $u = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
38
|
+
route,
|
|
39
|
+
date: index.timeFormat, // 另名date
|
|
40
|
+
colorGradient: colorGradient.colorGradient,
|
|
41
|
+
hexToRgb: colorGradient.hexToRgb,
|
|
42
|
+
rgbToHex: colorGradient.rgbToHex,
|
|
43
|
+
colorToRgba: colorGradient.colorToRgba,
|
|
44
|
+
test,
|
|
45
|
+
type: ['primary', 'success', 'error', 'warning', 'info'],
|
|
46
|
+
http: new Request(),
|
|
47
|
+
config, // uView配置信息相关,比如版本号
|
|
48
|
+
zIndex,
|
|
49
|
+
debounce,
|
|
50
|
+
throttle,
|
|
51
|
+
mixin,
|
|
52
|
+
mpMixin,
|
|
53
|
+
props,
|
|
54
|
+
...index,
|
|
55
|
+
color,
|
|
56
|
+
platform
|
|
57
|
+
};
|
|
59
58
|
|
|
60
59
|
// $u挂载到uni对象上
|
|
61
|
-
uni.$u = $u
|
|
60
|
+
uni.$u = $u;
|
|
62
61
|
|
|
63
62
|
const install = (Vue) => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
63
|
+
// 时间格式化,同时两个名称,date和timeFormat
|
|
64
|
+
Vue.filter('timeFormat', (timestamp, format) => uni.$u.timeFormat(timestamp, format));
|
|
65
|
+
Vue.filter('date', (timestamp, format) => uni.$u.timeFormat(timestamp, format));
|
|
66
|
+
// 将多久以前的方法,注入到全局过滤器
|
|
67
|
+
Vue.filter('timeFrom', (timestamp, format) => uni.$u.timeFrom(timestamp, format));
|
|
68
|
+
// 同时挂载到uni和Vue.prototype中
|
|
69
|
+
// #ifndef APP-NVUE
|
|
70
|
+
// 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
|
|
71
|
+
Vue.prototype.$u = $u;
|
|
72
|
+
Vue.mixin(mixin);
|
|
73
|
+
// #endif
|
|
74
|
+
};
|
|
76
75
|
|
|
77
76
|
export default {
|
|
78
|
-
|
|
79
|
-
}
|
|
77
|
+
install
|
|
78
|
+
};
|
package/plugins/uni-upgrade.js
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import HttpObj from '@/plugins/http.js';
|
|
2
|
-
function checkVersion(plus,widgetInfo){
|
|
3
|
-
uni.request({
|
|
4
|
-
url: 'https://uniapp.dcloud.io/update', // 检查更新的服务器地址
|
|
5
|
-
data: {
|
|
6
|
-
appid: (plus.runtime.appid || ''),
|
|
7
|
-
version: (plus.runtime.version || ''),
|
|
8
|
-
imei: (plus.device.imei || ''),
|
|
9
|
-
appid: widgetInfo.appid, //当前应用的APPID
|
|
10
|
-
version: widgetInfo.version, // 当前应用的版本
|
|
11
|
-
name: widgetInfo.name, // 当前应用的名称
|
|
12
|
-
imei: plus.device.imei,
|
|
13
|
-
os: plus.os.name // OS环境 ios / android
|
|
14
|
-
},
|
|
15
|
-
success: res => {
|
|
16
|
-
if (res.code == 200) {
|
|
17
|
-
if(res.data.version_update ='no_need'){
|
|
18
|
-
uni.showModal({
|
|
19
|
-
title: '提示',
|
|
20
|
-
content: '已是最新版本',
|
|
21
|
-
showCancel: false
|
|
22
|
-
});
|
|
23
|
-
}else{
|
|
24
|
-
if(res.data.version_update ='yes_need'){
|
|
25
|
-
showVersion(res.data);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function showVersion(apiData){
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// 提醒用户更新
|
|
36
|
-
uni.showModal({
|
|
37
|
-
title: '更新提示',
|
|
38
|
-
title: '版本更新' + apiData.versionCode,
|
|
39
|
-
content: apiData.note ? apiData.note : '是否选择更新',
|
|
40
|
-
content: apiData.description,
|
|
41
|
-
confirmText: '更新',
|
|
42
|
-
showCancel: !res.forceUpdate,
|
|
43
|
-
success: showResult => {
|
|
44
|
-
if (showResult.confirm) {
|
|
45
|
-
downVersion(apiData);
|
|
46
|
-
} else {
|
|
47
|
-
//取消
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function downVersion(){
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (plus.os.name.toLowerCase() == 'ios') {
|
|
56
|
-
// 跳转到下载页面
|
|
57
|
-
let upgradeUrl = apiData.url_ios;
|
|
58
|
-
plus.runtime.openURL(res.data.upgradeUrl);
|
|
59
|
-
} else {
|
|
60
|
-
// let upgradeUrl = apiData.url_android;
|
|
61
|
-
// plus.runtime.openURL(upgradeUrl);
|
|
62
|
-
var dtask = plus.downloader.createDownload(res.data.upgradeUrl, {}, function (d, status) {
|
|
63
|
-
uni.showToast({
|
|
64
|
-
title: '下载完成',
|
|
65
|
-
mask: false,
|
|
66
|
-
duration: 1000
|
|
67
|
-
});
|
|
68
|
-
// 下载完成
|
|
69
|
-
if (status == 200) {
|
|
70
|
-
plus.runtime.install(
|
|
71
|
-
plus.io.convertLocalFileSystemURL(d.filename),
|
|
72
|
-
{},
|
|
73
|
-
(e) => e,
|
|
74
|
-
function (error) {
|
|
75
|
-
uni.showToast({
|
|
76
|
-
title: '安装失败-01',
|
|
77
|
-
mask: false,
|
|
78
|
-
duration: 1500
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
} else {
|
|
83
|
-
uni.showToast({
|
|
84
|
-
title: '更新失败-02',
|
|
85
|
-
mask: false,
|
|
86
|
-
duration: 1500
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
try {
|
|
91
|
-
dtask.start(); // 开启下载的任务
|
|
92
|
-
var prg = 0;
|
|
93
|
-
var showLoading = plus.nativeUI.showWaiting('正在下载'); //创建一个showWaiting对象
|
|
94
|
-
dtask.addEventListener('statechanged', function (task, status) {
|
|
95
|
-
// 给下载任务设置一个监听 并根据状态 做操作
|
|
96
|
-
switch (task.state) {
|
|
97
|
-
case 1:
|
|
98
|
-
showLoading.setTitle('正在下载');
|
|
99
|
-
break;
|
|
100
|
-
case 2:
|
|
101
|
-
showLoading.setTitle('已连接到服务器');
|
|
102
|
-
break;
|
|
103
|
-
case 3:
|
|
104
|
-
prg = parseInt((parseFloat(task.downloadedSize) / parseFloat(task.totalSize)) * 100);
|
|
105
|
-
showLoading.setTitle(' 正在下载' + prg + '% ');
|
|
106
|
-
break;
|
|
107
|
-
case 4:
|
|
108
|
-
plus.nativeUI.closeWaiting();
|
|
109
|
-
//下载完成
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
} catch (err) {
|
|
114
|
-
plus.nativeUI.closeWaiting();
|
|
115
|
-
uni.showToast({
|
|
116
|
-
title: '更新失败-03',
|
|
117
|
-
mask: false,
|
|
118
|
-
duration: 1500
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function downloadVersion(){
|
|
124
|
-
uni.downloadFile({
|
|
125
|
-
url: res.data.wgtUrl,
|
|
126
|
-
success: (downloadResult) => {
|
|
127
|
-
if (downloadResult.statusCode === 200) {
|
|
128
|
-
plus.runtime.install(downloadResult.tempFilePath, {
|
|
129
|
-
force: false
|
|
130
|
-
}, (d) => {
|
|
131
|
-
console.log('install success...');
|
|
132
|
-
plus.runtime.restart();
|
|
133
|
-
}, (e) => {
|
|
134
|
-
console.error('install fail...');
|
|
135
|
-
})
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// APP检测更新 具体可以参考:https://ask.dcloud.net.cn/article/35667
|
|
142
|
-
plus.runtime.getProperty(plus.runtime.appid, widgetInfo => {
|
|
143
|
-
checkVersion(plus,widgetInfo);
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
var UniUpgradeClass = function{
|
|
147
|
-
// console.log('App Launch')
|
|
148
|
-
// 调用API从本地缓存中获取数据
|
|
149
|
-
var logs = uni.getStorageSync('logs') || [];
|
|
150
|
-
logs.unshift(Date.now());
|
|
151
|
-
uni.setStorageSync('logs', logs);
|
|
152
|
-
// 展示本地存储能力
|
|
153
|
-
if (uni.canIUse('getUpdateManager')) {
|
|
154
|
-
const updateManager = uni.getUpdateManager();
|
|
155
|
-
|
|
156
|
-
updateManager.onCheckForUpdate((ForUpdateRes) => {
|
|
157
|
-
// 请求完新版本信息的回调
|
|
158
|
-
if (ForUpdateRes.hasUpdate === true) { //有新的版本
|
|
159
|
-
uni.showLoading({
|
|
160
|
-
title: '应用升级中', //正在加载中
|
|
161
|
-
mask: true
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
updateManager.onUpdateReady((ReadyRes) => {
|
|
167
|
-
uni.hideLoading();
|
|
168
|
-
uni.showModal({
|
|
169
|
-
title: '更新提示',
|
|
170
|
-
content: '新版本已经准备好,是否重启应用?',
|
|
171
|
-
success: function (ModalRes) {
|
|
172
|
-
if (ModalRes.confirm) {
|
|
173
|
-
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|
174
|
-
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|
175
|
-
updateManager.applyUpdate()
|
|
176
|
-
updateManager.applyUpdate()
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
})
|
|
180
|
-
})
|
|
181
|
-
updateManager.onUpdateFailed((FailedRes) => {
|
|
182
|
-
uni.hideLoading();
|
|
183
|
-
// 新的版本下载失败
|
|
184
|
-
uni.showModal({
|
|
185
|
-
title: '更新提示',
|
|
186
|
-
content: '新版本下载失败',
|
|
187
|
-
showCancel: false
|
|
188
|
-
})
|
|
189
|
-
uni.showModal({
|
|
190
|
-
title: '已经是最新版本了呦',
|
|
191
|
-
content: '或请您删除当前小程序,重新搜索打开哟',
|
|
192
|
-
showCancel: false
|
|
193
|
-
})
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function showPlusVersion() {
|
|
198
|
-
// 跟后台传过来的版本号比对,如果版本号不一致
|
|
199
|
-
plus.nativeUI.confirm(
|
|
200
|
-
'检测到有新版本,是否更新',
|
|
201
|
-
function (e) {
|
|
202
|
-
/**
|
|
203
|
-
* 如果是苹果手机
|
|
204
|
-
*/
|
|
205
|
-
if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
|
|
206
|
-
/**
|
|
207
|
-
* 如果选择更新
|
|
208
|
-
*/
|
|
209
|
-
if (e.index == 0) {
|
|
210
|
-
window.location.href = 'itms-services://?action=download-manifest&url=https://ios.17rua.top/static/ios/x5.plist';
|
|
211
|
-
//不经过苹果商店下载(不懂得看我的另一篇文章)
|
|
212
|
-
plus.nativeUI.showWaiting('正在下载...');
|
|
213
|
-
}
|
|
214
|
-
} else {
|
|
215
|
-
if (e.index == 0) {
|
|
216
|
-
that.downWgt(res.data.url); //下载文件
|
|
217
|
-
} else {
|
|
218
|
-
plus.runtime.quit(); //安卓控制不更新退出应用
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
'',
|
|
223
|
-
['立即更新', '以后再说']
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
function versionCheckUpdate() {
|
|
228
|
-
var that = this;
|
|
229
|
-
HttpObj.post('/version/checkUpdate', {
|
|
230
|
-
version: that.wgtVer
|
|
231
|
-
})
|
|
232
|
-
.then((res) => {
|
|
233
|
-
if (res.data.code == 0) {
|
|
234
|
-
showPlusVersion();
|
|
235
|
-
// 检验过一次版本就加入缓存,不在检测
|
|
236
|
-
sessionStorage.setItem('kbj_banben', true);
|
|
237
|
-
} else {
|
|
238
|
-
alert('获取数据失败');
|
|
239
|
-
}
|
|
240
|
-
})
|
|
241
|
-
.catch(function (error) {
|
|
242
|
-
alert('请检查网络连接');
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
let xx = {
|
|
246
|
-
//检测当前版本号
|
|
247
|
-
dqbanben: function () {
|
|
248
|
-
var that = this;
|
|
249
|
-
//在页面中初始化plus插件
|
|
250
|
-
mui.init();
|
|
251
|
-
mui.plusReady(function () {
|
|
252
|
-
// 获取本地应用资源版本号
|
|
253
|
-
that.wgtVer = plus.runtime.version;
|
|
254
|
-
that.checkUpdate();
|
|
255
|
-
});
|
|
256
|
-
},
|
|
257
|
-
//检查更新
|
|
258
|
-
checkUpdate: function () {},
|
|
259
|
-
//下载资源包
|
|
260
|
-
downWgt: function (wgtUrl) {
|
|
261
|
-
var that = this;
|
|
262
|
-
var task = plus.downloader.createDownload(wgtUrl, {}, function (download, status) {
|
|
263
|
-
//安装到手机的目录
|
|
264
|
-
if (status == 200) {
|
|
265
|
-
plus.runtime.install(download.filename); // 安装下载的apk文件
|
|
266
|
-
} else {
|
|
267
|
-
mui.toast('下载更新失败!');
|
|
268
|
-
plus.nativeUI.closeWaiting();
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
//监听下载
|
|
272
|
-
task.addEventListener('statechanged', function (download, status) {
|
|
273
|
-
switch (download.state) {
|
|
274
|
-
case 2:
|
|
275
|
-
plus.nativeUI.showWaiting('正在下载...');
|
|
276
|
-
break;
|
|
277
|
-
case 3:
|
|
278
|
-
//进度条百分比 totalSize为总量,baifen为当前下载的百分比
|
|
279
|
-
if (that.totalSize == 0) {
|
|
280
|
-
that.totalSize = parseInt(download.totalSize);
|
|
281
|
-
}
|
|
282
|
-
if (parseInt((download.downloadedSize / that.totalSize) * 100) != that.baifen) {
|
|
283
|
-
that.baifen = parseInt((download.downloadedSize / that.totalSize) * 100);
|
|
284
|
-
}
|
|
285
|
-
break;
|
|
286
|
-
case 4:
|
|
287
|
-
mui.toast('下载完成');
|
|
288
|
-
plus.nativeUI.closeWaiting();
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
task.start();
|
|
293
|
-
}
|
|
294
|
-
};
|