@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
|
@@ -1,3 +1,159 @@
|
|
|
1
|
-
<template>
|
|
2
1
|
<view class="u-text" :class="[customClass]" v-if="show" :style="wrapStyle" @tap="clickHandler">
|
|
3
2
|
<text :class="['u-text__price', type && `u-text__value--${type}`]" v-if="mode === 'price'" :style="[valueStyle]">¥</text>
|
|
4
3
|
<view class="u-text__prefix-icon" v-if="prefixIcon">
|
|
5
4
|
<u-icon :name="prefixIcon" :customStyle="addStyle(iconStyle)"></u-icon>
|
|
6
5
|
</view>
|
|
7
6
|
<u-link
|
|
8
7
|
v-if="mode === 'link'"
|
|
9
8
|
class="u-text__value"
|
|
10
9
|
:style="{ fontWeight: valueStyle.fontWeight, wordWrap: valueStyle.wordWrap, fontSize: valueStyle.fontSize }"
|
|
11
10
|
:class="[type && `u-text__value--${type}`, lines && `u-line-${lines}`]"
|
|
12
11
|
:text="value"
|
|
13
12
|
:href="href"
|
|
14
13
|
underLine
|
|
15
14
|
></u-link>
|
|
16
15
|
<template v-else-if="openType && isMp">
|
|
17
16
|
<button
|
|
18
17
|
class="u-reset-button u-text__value"
|
|
19
18
|
:style="[valueStyle]"
|
|
20
19
|
:data-index="index"
|
|
21
20
|
:openType="openType"
|
|
22
21
|
@getuserinfo="onGetUserInfo"
|
|
23
22
|
@contact="onContact"
|
|
24
23
|
@getphonenumber="onGetPhoneNumber"
|
|
25
24
|
@error="onError"
|
|
26
25
|
@launchapp="onLaunchApp"
|
|
27
26
|
@opensetting="onOpenSetting"
|
|
28
27
|
:lang="lang"
|
|
29
28
|
:session-from="sessionFrom"
|
|
30
29
|
:send-message-title="sendMessageTitle"
|
|
31
30
|
:send-message-path="sendMessagePath"
|
|
32
31
|
:send-message-img="sendMessageImg"
|
|
33
32
|
:show-message-card="showMessageCard"
|
|
34
33
|
:app-parameter="appParameter"
|
|
35
34
|
>
|
|
36
35
|
{{ value }}
|
|
37
36
|
</button>
|
|
38
37
|
</template>
|
|
39
38
|
<text
|
|
40
39
|
v-else
|
|
41
40
|
class="u-text__value"
|
|
42
41
|
:style="[valueStyle]"
|
|
43
42
|
:class="[type && `u-text__value--${type}`, lines && `u-line-${lines}`]"
|
|
44
43
|
>
|
|
45
44
|
{{ value }}
|
|
46
45
|
</text>
|
|
47
46
|
<view class="u-text__suffix-icon" v-if="suffixIcon">
|
|
48
47
|
<u-icon :name="suffixIcon" :customStyle="addStyle(iconStyle)"></u-icon>
|
|
49
48
|
</view>
|
|
50
49
|
</view>
|
|
51
50
|
* Text 文本
|
|
52
51
|
* @description 此组件集成了文本类在项目中的常用功能,包括状态,拨打电话,格式化日期,*替换,超链接...等功能。 您大可不必在使用特殊文本时自己定义,text组件几乎涵盖您能使用的大部分场景。
|
|
53
52
|
* @tutorial https://ijry.github.io/uview-plus/components/loading.html
|
|
54
53
|
* @property {String} type 主题颜色
|
|
55
54
|
* @property {Boolean} show 是否显示(默认 true )
|
|
56
55
|
* @property {String | Number} text 显示的值
|
|
57
56
|
* @property {String} prefixIcon 前置图标
|
|
58
57
|
* @property {String} suffixIcon 后置图标
|
|
59
58
|
* @property {String} mode 文本处理的匹配模式 text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
|
|
60
59
|
* @property {String} href mode=link下,配置的链接
|
|
61
60
|
* @property {String | Function} format 格式化规则
|
|
62
61
|
* @property {Boolean} call mode=phone时,点击文本是否拨打电话(默认 false )
|
|
63
62
|
* @property {String} openType 小程序的打开方式
|
|
64
63
|
* @property {Boolean} bold 是否粗体,默认normal(默认 false )
|
|
65
64
|
* @property {Boolean} block 是否块状(默认 false )
|
|
66
65
|
* @property {String | Number} lines 文本显示的行数,如果设置,超出此行数,将会显示省略号
|
|
67
66
|
* @property {String} color 文本颜色(默认 '#303133' )
|
|
68
67
|
* @property {String | Number} size 字体大小(默认 15 )
|
|
69
68
|
* @property {Object | String} iconStyle 图标的样式 (默认 {fontSize: '15px'} )
|
|
70
69
|
* @property {String} decoration 文字装饰,下划线,中划线等,可选值 none|underline|line-through(默认 'none' )
|
|
71
70
|
* @property {Object | String | Number} margin 外边距,对象、字符串,数值形式均可(默认 0 )
|
|
72
71
|
* @property {String | Number} lineHeight 文本行高
|
|
73
72
|
* @property {String} align 文本对齐方式,可选值left|center|right(默认 'left' )
|
|
74
73
|
* @property {String} wordWrap 文字换行,可选值break-word|normal|anywhere(默认 'normal' )
|
|
75
74
|
* @event {Function} click 点击触发事件
|
|
76
75
|
* @example <up-text text="我用十年青春,赴你最后之约"></up-text>
|
|
77
76
|
*/
|
|
78
77
|
name: 'up-text',
|
|
79
78
|
// #ifdef MP
|
|
80
79
|
mixins: [mpMixin, mixin, value, buttonMixin, openType, props],
|
|
81
80
|
// #endif
|
|
82
81
|
// #ifndef MP
|
|
83
82
|
mixins: [mpMixin, mixin, value, props],
|
|
84
83
|
// #endif
|
|
85
84
|
emits: ['click'],
|
|
86
85
|
computed: {
|
|
87
86
|
wrapStyle() {
|
|
88
87
|
let style = {
|
|
89
88
|
margin: this.margin,
|
|
90
89
|
justifyContent: this.align === 'left' ? 'flex-start' : this.align === 'center' ? 'center' : 'flex-end'
|
|
91
90
|
};
|
|
92
91
|
// 占满剩余空间
|
|
93
92
|
if (this.flex1) {
|
|
94
93
|
style.flex = 1;
|
|
95
94
|
// #ifndef APP-NVUE
|
|
96
95
|
style.width = '100%';
|
|
97
96
|
// #endif
|
|
98
97
|
}
|
|
99
98
|
return style;
|
|
100
99
|
},
|
|
101
100
|
valueStyle() {
|
|
102
101
|
const style = {
|
|
103
102
|
textDecoration: this.decoration,
|
|
104
103
|
fontWeight: this.bold ? 'bold' : 'normal',
|
|
105
104
|
wordWrap: this.wordWrap,
|
|
106
105
|
fontSize: addUnit(this.size)
|
|
107
106
|
};
|
|
108
107
|
!this.type && (style.color = this.color);
|
|
109
108
|
this.isNvue && this.lines && (style.lines = this.lines);
|
|
110
109
|
this.lineHeight && (style.lineHeight = addUnit(this.lineHeight));
|
|
111
110
|
!this.isNvue && this.block && (style.display = 'block');
|
|
112
111
|
return deepMerge(style, addStyle(this.customStyle));
|
|
113
112
|
},
|
|
114
113
|
isNvue() {
|
|
115
114
|
let nvue = false;
|
|
116
115
|
// #ifdef APP-NVUE
|
|
117
116
|
nvue = true;
|
|
118
117
|
// #endif
|
|
119
118
|
return nvue;
|
|
120
119
|
},
|
|
121
120
|
isMp() {
|
|
122
121
|
let mp = false;
|
|
123
122
|
// #ifdef MP
|
|
124
123
|
mp = true;
|
|
125
124
|
// #endif
|
|
126
125
|
return mp;
|
|
127
126
|
}
|
|
128
127
|
},
|
|
129
128
|
data() {
|
|
130
129
|
return {};
|
|
131
130
|
},
|
|
132
131
|
methods: {
|
|
133
132
|
addStyle,
|
|
134
133
|
clickHandler(e) {
|
|
135
134
|
// 如果为手机号模式,拨打电话
|
|
136
135
|
if (this.call && this.mode === 'phone') {
|
|
137
136
|
uni.makePhoneCall({
|
|
138
137
|
phoneNumber: this.text
|
|
139
138
|
});
|
|
140
139
|
}
|
|
141
140
|
this.$emit('click', e);
|
|
142
141
|
}
|
|
143
142
|
}
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
<template>
|
|
144
|
+
<view class="u-text" :class="[customClass]" v-if="show" :style="wrapStyle" @tap="clickHandler">
|
|
145
|
+
<text :class="['u-text__price', type && `u-text__value--${type}`]" v-if="mode === 'price'" :style="[valueStyle]">¥</text>
|
|
146
|
+
<view class="u-text__prefix-icon" v-if="prefixIcon">
|
|
147
|
+
<up-icon :name="prefixIcon" :customStyle="addStyle(iconStyle)"></up-icon>
|
|
148
|
+
</view>
|
|
149
|
+
<up-link
|
|
150
|
+
v-if="mode === 'link'"
|
|
151
|
+
class="u-text__value"
|
|
152
|
+
:style="{ fontWeight: valueStyle.fontWeight, wordWrap: valueStyle.wordWrap, fontSize: valueStyle.fontSize }"
|
|
153
|
+
:class="[type && `u-text__value--${type}`, lines && `u-line-${lines}`]"
|
|
154
|
+
:text="value"
|
|
155
|
+
:href="href"
|
|
156
|
+
underLine
|
|
157
|
+
></up-link>
|
|
158
|
+
<template v-else-if="openType && isMp">
|
|
159
|
+
<button
|
|
160
|
+
class="u-reset-button u-text__value"
|
|
161
|
+
:style="[valueStyle]"
|
|
162
|
+
:data-index="index"
|
|
163
|
+
:openType="openType"
|
|
164
|
+
@getuserinfo="onGetUserInfo"
|
|
165
|
+
@contact="onContact"
|
|
166
|
+
@getphonenumber="onGetPhoneNumber"
|
|
167
|
+
@error="onError"
|
|
168
|
+
@launchapp="onLaunchApp"
|
|
169
|
+
@opensetting="onOpenSetting"
|
|
170
|
+
:lang="lang"
|
|
171
|
+
:session-from="sessionFrom"
|
|
172
|
+
:send-message-title="sendMessageTitle"
|
|
173
|
+
:send-message-path="sendMessagePath"
|
|
174
|
+
:send-message-img="sendMessageImg"
|
|
175
|
+
:show-message-card="showMessageCard"
|
|
176
|
+
:app-parameter="appParameter"
|
|
177
|
+
>
|
|
178
|
+
{{ value }}
|
|
179
|
+
</button>
|
|
180
|
+
</template>
|
|
181
|
+
<text
|
|
182
|
+
v-else
|
|
183
|
+
class="u-text__value"
|
|
184
|
+
:style="[valueStyle]"
|
|
185
|
+
:class="[type && `u-text__value--${type}`, lines && `u-line-${lines}`]"
|
|
186
|
+
>
|
|
187
|
+
{{ value }}
|
|
188
|
+
</text>
|
|
189
|
+
<view class="u-text__suffix-icon" v-if="suffixIcon">
|
|
190
|
+
<up-icon :name="suffixIcon" :customStyle="addStyle(iconStyle)"></up-icon>
|
|
191
|
+
</view>
|
|
192
|
+
</view>
|
|
193
|
+
</template>
|
|
194
|
+
<script>
|
|
195
|
+
import { props } from './props';
|
|
196
|
+
import value from './value.js';
|
|
197
|
+
import { mpMixin } from '../../libs/mixin/mpMixin';
|
|
198
|
+
import { mixin } from '../../libs/mixin/mixin';
|
|
199
|
+
import { buttonMixin } from '../../libs/mixin/button';
|
|
200
|
+
import { openType } from '../../libs/mixin/openType';
|
|
201
|
+
import { addStyle, addUnit, deepMerge } from '../../libs/function/index';
|
|
202
|
+
/**
|
|
203
|
+
* Text 文本
|
|
204
|
+
* @description 此组件集成了文本类在项目中的常用功能,包括状态,拨打电话,格式化日期,*替换,超链接...等功能。 您大可不必在使用特殊文本时自己定义,text组件几乎涵盖您能使用的大部分场景。
|
|
205
|
+
* @tutorial https://ijry.github.io/uview-plus/components/loading.html
|
|
206
|
+
* @property {String} type 主题颜色
|
|
207
|
+
* @property {Boolean} show 是否显示(默认 true )
|
|
208
|
+
* @property {String | Number} text 显示的值
|
|
209
|
+
* @property {String} prefixIcon 前置图标
|
|
210
|
+
* @property {String} suffixIcon 后置图标
|
|
211
|
+
* @property {String} mode 文本处理的匹配模式 text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
|
|
212
|
+
* @property {String} href mode=link下,配置的链接
|
|
213
|
+
* @property {String | Function} format 格式化规则
|
|
214
|
+
* @property {Boolean} call mode=phone时,点击文本是否拨打电话(默认 false )
|
|
215
|
+
* @property {String} openType 小程序的打开方式
|
|
216
|
+
* @property {Boolean} bold 是否粗体,默认normal(默认 false )
|
|
217
|
+
* @property {Boolean} block 是否块状(默认 false )
|
|
218
|
+
* @property {String | Number} lines 文本显示的行数,如果设置,超出此行数,将会显示省略号
|
|
219
|
+
* @property {String} color 文本颜色(默认 '#303133' )
|
|
220
|
+
* @property {String | Number} size 字体大小(默认 15 )
|
|
221
|
+
* @property {Object | String} iconStyle 图标的样式 (默认 {fontSize: '15px'} )
|
|
222
|
+
* @property {String} decoration 文字装饰,下划线,中划线等,可选值 none|underline|line-through(默认 'none' )
|
|
223
|
+
* @property {Object | String | Number} margin 外边距,对象、字符串,数值形式均可(默认 0 )
|
|
224
|
+
* @property {String | Number} lineHeight 文本行高
|
|
225
|
+
* @property {String} align 文本对齐方式,可选值left|center|right(默认 'left' )
|
|
226
|
+
* @property {String} wordWrap 文字换行,可选值break-word|normal|anywhere(默认 'normal' )
|
|
227
|
+
* @event {Function} click 点击触发事件
|
|
228
|
+
* @example <up-text text="我用十年青春,赴你最后之约"></up-text>
|
|
229
|
+
*/
|
|
230
|
+
export default {
|
|
231
|
+
name: 'up-text',
|
|
232
|
+
// #ifdef MP
|
|
233
|
+
mixins: [mpMixin, mixin, value, buttonMixin, openType, props],
|
|
234
|
+
// #endif
|
|
235
|
+
// #ifndef MP
|
|
236
|
+
mixins: [mpMixin, mixin, value, props],
|
|
237
|
+
// #endif
|
|
238
|
+
emits: ['click'],
|
|
239
|
+
computed: {
|
|
240
|
+
wrapStyle() {
|
|
241
|
+
let style = {
|
|
242
|
+
margin: this.margin,
|
|
243
|
+
justifyContent: this.align === 'left' ? 'flex-start' : this.align === 'center' ? 'center' : 'flex-end'
|
|
244
|
+
};
|
|
245
|
+
// 占满剩余空间
|
|
246
|
+
if (this.flex1) {
|
|
247
|
+
style.flex = 1;
|
|
248
|
+
// #ifndef APP-NVUE
|
|
249
|
+
style.width = '100%';
|
|
250
|
+
// #endif
|
|
251
|
+
}
|
|
252
|
+
return style;
|
|
253
|
+
},
|
|
254
|
+
valueStyle() {
|
|
255
|
+
const style = {
|
|
256
|
+
textDecoration: this.decoration,
|
|
257
|
+
fontWeight: this.bold ? 'bold' : 'normal',
|
|
258
|
+
wordWrap: this.wordWrap,
|
|
259
|
+
fontSize: addUnit(this.size)
|
|
260
|
+
};
|
|
261
|
+
!this.type && (style.color = this.color);
|
|
262
|
+
this.isNvue && this.lines && (style.lines = this.lines);
|
|
263
|
+
this.lineHeight && (style.lineHeight = addUnit(this.lineHeight));
|
|
264
|
+
!this.isNvue && this.block && (style.display = 'block');
|
|
265
|
+
return deepMerge(style, addStyle(this.customStyle));
|
|
266
|
+
},
|
|
267
|
+
isNvue() {
|
|
268
|
+
let nvue = false;
|
|
269
|
+
// #ifdef APP-NVUE
|
|
270
|
+
nvue = true;
|
|
271
|
+
// #endif
|
|
272
|
+
return nvue;
|
|
273
|
+
},
|
|
274
|
+
isMp() {
|
|
275
|
+
let mp = false;
|
|
276
|
+
// #ifdef MP
|
|
277
|
+
mp = true;
|
|
278
|
+
// #endif
|
|
279
|
+
return mp;
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
data() {
|
|
283
|
+
return {};
|
|
284
|
+
},
|
|
285
|
+
methods: {
|
|
286
|
+
addStyle,
|
|
287
|
+
clickHandler(e) {
|
|
288
|
+
// 如果为手机号模式,拨打电话
|
|
289
|
+
if (this.call && this.mode === 'phone') {
|
|
290
|
+
uni.makePhoneCall({
|
|
291
|
+
phoneNumber: this.text
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
this.$emit('click', e);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
</script>
|
|
299
|
+
<style scoped>
|
|
300
|
+
@import './style.css';
|
|
301
|
+
</style>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "u-textarea",
|
|
3
|
+
"displayName": "u-textarea文本域 多端兼容,无论平台,一致体验",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"description": "u-textarea文本域 此组件满足了可能出现的表单信息补充,编辑等实际逻辑的功能,内置了字数校验等。",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"u-ui",
|
|
8
|
+
"wuui",
|
|
9
|
+
"u-textarea",
|
|
10
|
+
"textarea",
|
|
11
|
+
"文本域"
|
|
12
|
+
],
|
|
13
|
+
"repository": "",
|
|
14
|
+
"engines": {
|
|
15
|
+
"HBuilderX": "^3.4.15"
|
|
16
|
+
},
|
|
17
|
+
"dcloudext": {
|
|
18
|
+
"type": "component-vue",
|
|
19
|
+
"sale": {
|
|
20
|
+
"regular": {
|
|
21
|
+
"price": "0.00"
|
|
22
|
+
},
|
|
23
|
+
"sourcecode": {
|
|
24
|
+
"price": "0.00"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"contact": {
|
|
28
|
+
"qq": ""
|
|
29
|
+
},
|
|
30
|
+
"declaration": {
|
|
31
|
+
"ads": "无",
|
|
32
|
+
"data": "插件不采集任何数据",
|
|
33
|
+
"permissions": "无"
|
|
34
|
+
},
|
|
35
|
+
"npmurl": ""
|
|
36
|
+
},
|
|
37
|
+
"uni_modules": {
|
|
38
|
+
"dependencies": [],
|
|
39
|
+
"encrypt": [],
|
|
40
|
+
"platforms": {
|
|
41
|
+
"cloud": {
|
|
42
|
+
"tcb": "y",
|
|
43
|
+
"aliyun": "y",
|
|
44
|
+
"alipay": "n"
|
|
45
|
+
},
|
|
46
|
+
"client": {
|
|
47
|
+
"Vue": {
|
|
48
|
+
"vue2": "y",
|
|
49
|
+
"vue3": "y"
|
|
50
|
+
},
|
|
51
|
+
"App": {
|
|
52
|
+
"app-vue": "y",
|
|
53
|
+
"app-nvue": "y"
|
|
54
|
+
},
|
|
55
|
+
"H5-mobile": {
|
|
56
|
+
"Safari": "y",
|
|
57
|
+
"Android Browser": "y",
|
|
58
|
+
"微信浏览器(Android)": "y",
|
|
59
|
+
"QQ浏览器(Android)": "y"
|
|
60
|
+
},
|
|
61
|
+
"H5-pc": {
|
|
62
|
+
"Chrome": "y",
|
|
63
|
+
"IE": "y",
|
|
64
|
+
"Edge": "y",
|
|
65
|
+
"Firefox": "y",
|
|
66
|
+
"Safari": "y"
|
|
67
|
+
},
|
|
68
|
+
"小程序": {
|
|
69
|
+
"微信": "y",
|
|
70
|
+
"阿里": "y",
|
|
71
|
+
"百度": "y",
|
|
72
|
+
"字节跳动": "y",
|
|
73
|
+
"QQ": "y",
|
|
74
|
+
"钉钉": "n",
|
|
75
|
+
"快手": "n",
|
|
76
|
+
"飞书": "n",
|
|
77
|
+
"京东": "n"
|
|
78
|
+
},
|
|
79
|
+
"快应用": {
|
|
80
|
+
"华为": "n",
|
|
81
|
+
"联盟": "n"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## u-textarea 文本域
|
|
2
|
+
|
|
3
|
+
> **组件名:u-textarea**
|
|
4
|
+
|
|
5
|
+
文本域此组件满足了可能出现的表单信息补充,编辑等实际逻辑的功能,内置了字数校验等
|
|
6
|
+
|
|
7
|
+
## [查看文档](https://ijry.github.io/uview-plus/components/textarea.html)
|
|
8
|
+
|
|
9
|
+
## [更多组件, 请查看 `u-ui` 组件库](https://ext.dcloud.net.cn/plugin?name=u--ui)
|
|
10
|
+
(请勿下载插件zip)
|
|
11
|
+
|
|
12
|
+
<a href="https://ext.dcloud.net.cn/plugin?name=u--ui">
|
|
13
|
+
<img src="https://wuui.cn/intr.png">
|
|
14
|
+
</a>
|
|
15
|
+
|
|
16
|
+
**如使用过程中有任何问题,或者您对u-ui有一些好的建议。<br>欢迎加入 [u-ui 交流群](https://ijry.github.io/uview-plus/components/qqFeedBack.html)**
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="u-toast">
|
|
3
|
-
<
|
|
3
|
+
<up-overlay :show="isShow" :zIndex="tmpConfig.overlay ? 10070 : -1" :custom-style="overlayStyle">
|
|
4
4
|
<view
|
|
5
5
|
class="u-toast__content"
|
|
6
6
|
:style="[contentStyle]"
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
tmpConfig.type === 'loading' || tmpConfig.loading ? 'u-toast__content--loading' : ''
|
|
10
10
|
]"
|
|
11
11
|
>
|
|
12
|
-
<
|
|
12
|
+
<up-loading-icon
|
|
13
13
|
v-if="tmpConfig.type === 'loading'"
|
|
14
14
|
mode="circle"
|
|
15
15
|
color="rgb(255, 255, 255)"
|
|
16
16
|
inactiveColor="rgb(120, 120, 120)"
|
|
17
17
|
size="25"
|
|
18
|
-
></
|
|
19
|
-
<
|
|
18
|
+
></up-loading-icon>
|
|
19
|
+
<up-icon
|
|
20
20
|
v-else-if="tmpConfig.type !== 'defalut' && iconName"
|
|
21
21
|
:name="iconName"
|
|
22
22
|
size="17"
|
|
23
23
|
:color="tmpConfig.type"
|
|
24
24
|
:customStyle="iconStyle"
|
|
25
|
-
></
|
|
26
|
-
<
|
|
25
|
+
></up-icon>
|
|
26
|
+
<up-gap v-if="tmpConfig.type === 'loading' || tmpConfig.loading" height="12" bgColor="transparent"></up-gap>
|
|
27
27
|
<text class="u-toast__content__text" :class="['u-toast__content__text--' + tmpConfig.type]" style="max-width: 400rpx">
|
|
28
28
|
{{ tmpConfig.message }}
|
|
29
29
|
</text>
|
|
30
30
|
</view>
|
|
31
|
-
</
|
|
31
|
+
</up-overlay>
|
|
32
32
|
</view>
|
|
33
33
|
</template>
|
|
34
34
|
<script>
|
|
@@ -57,7 +57,7 @@ import { hexToRgb } from '../../libs/function/colorGradient';
|
|
|
57
57
|
* @property {Boolean} back 结束toast是否自动返回上一页 (默认 false )
|
|
58
58
|
* @property {Object} customStyle 组件的样式,对象形式
|
|
59
59
|
* @event {Function} show 显示toast,如需一进入页面就显示toast,请在onReady生命周期调用
|
|
60
|
-
* @example <
|
|
60
|
+
* @example <up-toast ref="uToast" />
|
|
61
61
|
*/
|
|
62
62
|
export default {
|
|
63
63
|
name: 'u-toast',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="u-tooltip" :style="[addStyle(customStyle)]">
|
|
3
|
-
<
|
|
3
|
+
<up-overlay
|
|
4
4
|
:show="showTooltip && tooltipTop !== -10000 && overlay"
|
|
5
5
|
customStyle="backgroundColor: rgba(0, 0, 0, 0)"
|
|
6
6
|
@click="overlayClickHandler"
|
|
7
|
-
></
|
|
7
|
+
></up-overlay>
|
|
8
8
|
<view class="u-tooltip__wrapper">
|
|
9
9
|
<text
|
|
10
10
|
class="u-tooltip__wrapper__text"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
>
|
|
21
21
|
{{ text }}
|
|
22
22
|
</text>
|
|
23
|
-
<
|
|
23
|
+
<up-transition
|
|
24
24
|
mode="fade"
|
|
25
25
|
:show="showTooltip"
|
|
26
26
|
duration="300"
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
>
|
|
56
56
|
<text class="u-tooltip__wrapper__popup__list__btn__text">复制</text>
|
|
57
57
|
</view>
|
|
58
|
-
<
|
|
58
|
+
<up-line direction="column" color="#8d8e90" v-if="showCopy && buttons.length > 0" length="18"></up-line>
|
|
59
59
|
<block v-for="(item, index) in buttons" :key="index">
|
|
60
60
|
<view class="u-tooltip__wrapper__popup__list__btn" hover-class="u-tooltip__wrapper__popup__list__btn--hover">
|
|
61
61
|
<text class="u-tooltip__wrapper__popup__list__btn__text" @tap="btnClickHandler(index)">{{ item }}</text>
|
|
62
62
|
</view>
|
|
63
|
-
<
|
|
63
|
+
<up-line direction="column" color="#8d8e90" v-if="index < buttons.length - 1" length="18"></up-line>
|
|
64
64
|
</block>
|
|
65
65
|
</view>
|
|
66
66
|
</view>
|
|
67
|
-
</
|
|
67
|
+
</up-transition>
|
|
68
68
|
</view>
|
|
69
69
|
</view>
|
|
70
70
|
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## 1.0.6(2024-05-08)
|
|
2
|
+
更新域名
|
|
3
|
+
## 1.0.5(2023-09-12)
|
|
4
|
+
新增自定义动画
|
|
5
|
+
## 1.0.4(2023-09-07)
|
|
6
|
+
修复非h5端动画进入状态错误的问题
|
|
7
|
+
## 1.0.3(2023-08-30)
|
|
8
|
+
修复动画class名称错误
|
|
9
|
+
## 1.0.2(2023-08-29)
|
|
10
|
+
更新自定义class名
|
|
11
|
+
## 1.0.1(2023-08-21)
|
|
12
|
+
组件说明更新
|
|
13
|
+
## 1.0.0(2023-08-16)
|
|
14
|
+
用于组件的动画过渡效果。
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "u-transition",
|
|
3
|
+
"displayName": "u-transition 用于组件的动画过渡效果 全端兼容,无论平台,一致体验",
|
|
4
|
+
"version": "1.0.6",
|
|
5
|
+
"description": "u-transition 用于组件的动画过渡效果",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"u-ui",
|
|
8
|
+
"wuui",
|
|
9
|
+
"u-transition",
|
|
10
|
+
"transition",
|
|
11
|
+
"动画过渡"
|
|
12
|
+
],
|
|
13
|
+
"repository": "",
|
|
14
|
+
"engines": {
|
|
15
|
+
"HBuilderX": "^3.4.15"
|
|
16
|
+
},
|
|
17
|
+
"dcloudext": {
|
|
18
|
+
"type": "component-vue",
|
|
19
|
+
"sale": {
|
|
20
|
+
"regular": {
|
|
21
|
+
"price": "0.00"
|
|
22
|
+
},
|
|
23
|
+
"sourcecode": {
|
|
24
|
+
"price": "0.00"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"contact": {
|
|
28
|
+
"qq": ""
|
|
29
|
+
},
|
|
30
|
+
"declaration": {
|
|
31
|
+
"ads": "无",
|
|
32
|
+
"data": "插件不采集任何数据",
|
|
33
|
+
"permissions": "无"
|
|
34
|
+
},
|
|
35
|
+
"npmurl": ""
|
|
36
|
+
},
|
|
37
|
+
"uni_modules": {
|
|
38
|
+
"dependencies": [],
|
|
39
|
+
"encrypt": [],
|
|
40
|
+
"platforms": {
|
|
41
|
+
"cloud": {
|
|
42
|
+
"tcb": "y",
|
|
43
|
+
"aliyun": "y",
|
|
44
|
+
"alipay": "n"
|
|
45
|
+
},
|
|
46
|
+
"client": {
|
|
47
|
+
"Vue": {
|
|
48
|
+
"vue2": "y",
|
|
49
|
+
"vue3": "y"
|
|
50
|
+
},
|
|
51
|
+
"App": {
|
|
52
|
+
"app-vue": "y",
|
|
53
|
+
"app-nvue": "y"
|
|
54
|
+
},
|
|
55
|
+
"H5-mobile": {
|
|
56
|
+
"Safari": "y",
|
|
57
|
+
"Android Browser": "y",
|
|
58
|
+
"微信浏览器(Android)": "y",
|
|
59
|
+
"QQ浏览器(Android)": "y"
|
|
60
|
+
},
|
|
61
|
+
"H5-pc": {
|
|
62
|
+
"Chrome": "y",
|
|
63
|
+
"IE": "y",
|
|
64
|
+
"Edge": "y",
|
|
65
|
+
"Firefox": "y",
|
|
66
|
+
"Safari": "y"
|
|
67
|
+
},
|
|
68
|
+
"小程序": {
|
|
69
|
+
"微信": "y",
|
|
70
|
+
"阿里": "y",
|
|
71
|
+
"百度": "y",
|
|
72
|
+
"字节跳动": "y",
|
|
73
|
+
"QQ": "y",
|
|
74
|
+
"钉钉": "u",
|
|
75
|
+
"快手": "u",
|
|
76
|
+
"飞书": "u",
|
|
77
|
+
"京东": "u"
|
|
78
|
+
},
|
|
79
|
+
"快应用": {
|
|
80
|
+
"华为": "u",
|
|
81
|
+
"联盟": "u"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## u-transition 图片
|
|
2
|
+
|
|
3
|
+
> **组件名:u-transition**
|
|
4
|
+
|
|
5
|
+
该组件用于组件的动画过渡效果。
|
|
6
|
+
|
|
7
|
+
## [查看文档](https://ijry.github.io/uview-plus/components/transition.html)
|
|
8
|
+
|
|
9
|
+
## [更多组件, 请查看 `u-ui` 组件库](https://ext.dcloud.net.cn/plugin?name=u--ui)
|
|
10
|
+
(请勿下载插件zip)
|
|
11
|
+
|
|
12
|
+
<a href="https://ext.dcloud.net.cn/plugin?name=u--ui">
|
|
13
|
+
<img src="https://wuui.cn/intr.png">
|
|
14
|
+
</a>
|
|
15
|
+
|
|
16
|
+
**如使用过程中有任何问题,或者您对u-ui有一些好的建议。<br>欢迎加入 [u-ui 交流群](https://ijry.github.io/uview-plus/components/qqFeedBack.html)**
|