@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
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
ref="u-rate__content__item__icon-wrap"
|
|
8
8
|
@tap.stop="clickHandler($event, index + 1)"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
10
|
+
<up-icon
|
|
11
11
|
:name="Math.floor(activeIndex) > index ? activeIcon : inactiveIcon"
|
|
12
12
|
:color="disabled ? '#c8c9cc' : Math.floor(activeIndex) > index ? activeColor : inactiveColor"
|
|
13
13
|
:custom-style="{
|
|
14
14
|
padding: `0 ${addUnit(gutter / 2)}`
|
|
15
15
|
}"
|
|
16
16
|
:size="size"
|
|
17
|
-
></
|
|
17
|
+
></up-icon>
|
|
18
18
|
</view>
|
|
19
19
|
<view
|
|
20
20
|
v-if="allowHalf"
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
]"
|
|
28
28
|
ref="u-rate__content__item__icon-wrap"
|
|
29
29
|
>
|
|
30
|
-
<
|
|
30
|
+
<up-icon
|
|
31
31
|
:name="Math.ceil(activeIndex) > index ? activeIcon : inactiveIcon"
|
|
32
32
|
:color="disabled ? '#c8c9cc' : Math.ceil(activeIndex) > index ? activeColor : inactiveColor"
|
|
33
33
|
:custom-style="{
|
|
34
34
|
padding: `0 ${addUnit(gutter / 2)}`
|
|
35
35
|
}"
|
|
36
36
|
:size="size"
|
|
37
|
-
></
|
|
37
|
+
></up-icon>
|
|
38
38
|
</view>
|
|
39
39
|
</view>
|
|
40
40
|
</view>
|
|
@@ -67,7 +67,7 @@ const dom = weex.requireModule('dom');
|
|
|
67
67
|
* @property {Boolean} touchable 是否可以通过滑动手势选择评分 (默认 'true' )
|
|
68
68
|
* @property {Object} customStyle 组件的样式,对象形式
|
|
69
69
|
* @event {Function} change 选中的星星发生变化时触发
|
|
70
|
-
* @example <
|
|
70
|
+
* @example <up-rate :count="count" :value="2"></up-rate>
|
|
71
71
|
*/
|
|
72
72
|
export default {
|
|
73
73
|
name: 'u-rate',
|
|
@@ -1,3 +1,126 @@
|
|
|
1
|
-
<template>
|
|
2
1
|
<view class="u-read-more">
|
|
3
2
|
<view
|
|
4
3
|
class="u-read-more__content"
|
|
5
4
|
:style="{
|
|
6
5
|
height: isLongContent && status === 'close' ? addUnit(showHeight) : addUnit(contentHeight),
|
|
7
6
|
textIndent: textIndent
|
|
8
7
|
}"
|
|
9
8
|
>
|
|
10
9
|
<view class="u-read-more__content__inner" ref="u-read-more__content__inner" :class="[elId]">
|
|
11
10
|
<slot></slot>
|
|
12
11
|
</view>
|
|
13
12
|
</view>
|
|
14
13
|
<view class="u-read-more__toggle" :style="[innerShadowStyle]" v-if="isLongContent">
|
|
15
14
|
<slot name="toggle">
|
|
16
15
|
<view class="u-read-more__toggle__text" @tap="toggleReadMore">
|
|
17
16
|
<up-text
|
|
18
17
|
:text="status === 'close' ? closeText : openText"
|
|
19
18
|
:color="color"
|
|
20
19
|
:size="fontSize"
|
|
21
20
|
:lineHeight="fontSize"
|
|
22
21
|
margin="0 5px 0 0"
|
|
23
22
|
></up-text>
|
|
24
23
|
<view class="u-read-more__toggle__icon">
|
|
25
24
|
<u-icon :color="color" :size="fontSize + 2" :name="status === 'close' ? 'arrow-down' : 'arrow-up'"></u-icon>
|
|
26
25
|
</view>
|
|
27
26
|
</view>
|
|
28
27
|
</slot>
|
|
29
28
|
</view>
|
|
30
29
|
</view>
|
|
31
30
|
* readMore 阅读更多
|
|
32
31
|
* @description 该组件一般用于内容较长,预先收起一部分,点击展开全部内容的场景。
|
|
33
32
|
* @tutorial https://ijry.github.io/uview-plus/components/readMore.html
|
|
34
33
|
* @property {String | Number} showHeight 内容超出此高度才会显示展开全文按钮,单位px(默认 400 )
|
|
35
34
|
* @property {Boolean} toggle 展开后是否显示收起按钮(默认 false )
|
|
36
35
|
* @property {String} closeText 关闭时的提示文字(默认 '展开阅读全文' )
|
|
37
36
|
* @property {String} openText 展开时的提示文字(默认 '收起' )
|
|
38
37
|
* @property {String} color 提示文字的颜色(默认 '#2979ff' )
|
|
39
38
|
* @property {String | Number} fontSize 提示文字的大小,单位px (默认 14 )
|
|
40
39
|
* @property {Object} shadowStyle 显示阴影的样式
|
|
41
40
|
* @property {String} textIndent 段落首行缩进的字符个数 (默认 '2em' )
|
|
42
41
|
* @property {String | Number} name 用于在 open 和 close 事件中当作回调参数返回
|
|
43
42
|
* @event {Function} open 内容被展开时触发
|
|
44
43
|
* @event {Function} close 内容被收起时触发
|
|
45
44
|
* @example <u-read-more><rich-text :nodes="content"></rich-text></u-read-more>
|
|
46
45
|
*/
|
|
47
46
|
name: 'u-read-more',
|
|
48
47
|
mixins: [mpMixin, mixin, props],
|
|
49
48
|
data() {
|
|
50
49
|
return {
|
|
51
50
|
isLongContent: false, // 是否需要隐藏一部分内容
|
|
52
51
|
status: 'close', // 当前隐藏与显示的状态,close-收起状态,open-展开状态
|
|
53
52
|
elId: guid(), // 生成唯一class
|
|
54
53
|
contentHeight: 100 // 内容高度
|
|
55
54
|
};
|
|
56
55
|
},
|
|
57
56
|
computed: {
|
|
58
57
|
// 展开后无需阴影,收起时才需要阴影样式
|
|
59
58
|
innerShadowStyle() {
|
|
60
59
|
if (this.status === 'open') return {};
|
|
61
60
|
else return this.shadowStyle;
|
|
62
61
|
}
|
|
63
62
|
},
|
|
64
63
|
mounted() {
|
|
65
64
|
this.init();
|
|
66
65
|
},
|
|
67
66
|
emits: ['open', 'close'],
|
|
68
67
|
methods: {
|
|
69
68
|
addUnit,
|
|
70
69
|
async init() {
|
|
71
70
|
this.getContentHeight().then((height) => {
|
|
72
71
|
this.contentHeight = height;
|
|
73
72
|
// 判断高度,如果真实内容高度大于占位高度,则显示收起与展开的控制按钮
|
|
74
73
|
if (height > getPx(this.showHeight)) {
|
|
75
74
|
this.isLongContent = true;
|
|
76
75
|
this.status = 'close';
|
|
77
76
|
} else {
|
|
78
77
|
// https://github.com/ijry/uview-plus/issues/270
|
|
79
78
|
this.isLongContent = false;
|
|
80
79
|
this.status = 'close';
|
|
81
80
|
}
|
|
82
81
|
});
|
|
83
82
|
},
|
|
84
83
|
// 获取内容的高度
|
|
85
84
|
async getContentHeight() {
|
|
86
85
|
// 延时一定时间再获取节点
|
|
87
86
|
await sleep(30);
|
|
88
87
|
return new Promise((resolve) => {
|
|
89
88
|
// #ifndef APP-NVUE
|
|
90
89
|
this.$uGetRect('.' + this.elId).then((res) => {
|
|
91
90
|
resolve(res.height);
|
|
92
91
|
});
|
|
93
92
|
// #endif
|
|
94
93
|
// #ifdef APP-NVUE
|
|
95
94
|
const ref = this.$refs['u-read-more__content__inner'];
|
|
96
95
|
dom.getComponentRect(ref, (res) => {
|
|
97
96
|
resolve(res.size.height);
|
|
98
97
|
});
|
|
99
98
|
// #endif
|
|
100
99
|
});
|
|
101
100
|
},
|
|
102
101
|
// 展开或者收起
|
|
103
102
|
toggleReadMore() {
|
|
104
103
|
this.status = this.status === 'close' ? 'open' : 'close';
|
|
105
104
|
// 如果toggle为false,隐藏"收起"部分的内容
|
|
106
105
|
if (this.toggle == false) this.isLongContent = false;
|
|
107
106
|
// 发出打开或者收齐的事件
|
|
108
107
|
this.$emit(this.status, this.name);
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
<template>
|
|
111
|
+
<view class="u-read-more">
|
|
112
|
+
<view
|
|
113
|
+
class="u-read-more__content"
|
|
114
|
+
:style="{
|
|
115
|
+
height: isLongContent && status === 'close' ? addUnit(showHeight) : addUnit(contentHeight),
|
|
116
|
+
textIndent: textIndent
|
|
117
|
+
}"
|
|
118
|
+
>
|
|
119
|
+
<view class="u-read-more__content__inner" ref="u-read-more__content__inner" :class="[elId]">
|
|
120
|
+
<slot></slot>
|
|
121
|
+
</view>
|
|
122
|
+
</view>
|
|
123
|
+
<view class="u-read-more__toggle" :style="[innerShadowStyle]" v-if="isLongContent">
|
|
124
|
+
<slot name="toggle">
|
|
125
|
+
<view class="u-read-more__toggle__text" @tap="toggleReadMore">
|
|
126
|
+
<up-text
|
|
127
|
+
:text="status === 'close' ? closeText : openText"
|
|
128
|
+
:color="color"
|
|
129
|
+
:size="fontSize"
|
|
130
|
+
:lineHeight="fontSize"
|
|
131
|
+
margin="0 5px 0 0"
|
|
132
|
+
></up-text>
|
|
133
|
+
<view class="u-read-more__toggle__icon">
|
|
134
|
+
<up-icon :color="color" :size="fontSize + 2" :name="status === 'close' ? 'arrow-down' : 'arrow-up'"></up-icon>
|
|
135
|
+
</view>
|
|
136
|
+
</view>
|
|
137
|
+
</slot>
|
|
138
|
+
</view>
|
|
139
|
+
</view>
|
|
140
|
+
</template>
|
|
141
|
+
<script>
|
|
142
|
+
// #ifdef APP-NVUE
|
|
143
|
+
const dom = uni.requireNativePlugin('dom');
|
|
144
|
+
// #endif
|
|
145
|
+
import { props } from './props';
|
|
146
|
+
import { mpMixin } from '../../libs/mixin/mpMixin';
|
|
147
|
+
import { mixin } from '../../libs/mixin/mixin';
|
|
148
|
+
import { addUnit, guid, getPx, sleep } from '../../libs/function/index';
|
|
149
|
+
/**
|
|
150
|
+
* readMore 阅读更多
|
|
151
|
+
* @description 该组件一般用于内容较长,预先收起一部分,点击展开全部内容的场景。
|
|
152
|
+
* @tutorial https://ijry.github.io/uview-plus/components/readMore.html
|
|
153
|
+
* @property {String | Number} showHeight 内容超出此高度才会显示展开全文按钮,单位px(默认 400 )
|
|
154
|
+
* @property {Boolean} toggle 展开后是否显示收起按钮(默认 false )
|
|
155
|
+
* @property {String} closeText 关闭时的提示文字(默认 '展开阅读全文' )
|
|
156
|
+
* @property {String} openText 展开时的提示文字(默认 '收起' )
|
|
157
|
+
* @property {String} color 提示文字的颜色(默认 '#2979ff' )
|
|
158
|
+
* @property {String | Number} fontSize 提示文字的大小,单位px (默认 14 )
|
|
159
|
+
* @property {Object} shadowStyle 显示阴影的样式
|
|
160
|
+
* @property {String} textIndent 段落首行缩进的字符个数 (默认 '2em' )
|
|
161
|
+
* @property {String | Number} name 用于在 open 和 close 事件中当作回调参数返回
|
|
162
|
+
* @event {Function} open 内容被展开时触发
|
|
163
|
+
* @event {Function} close 内容被收起时触发
|
|
164
|
+
* @example <up-read-more><rich-text :nodes="content"></rich-text></up-read-more>
|
|
165
|
+
*/
|
|
166
|
+
export default {
|
|
167
|
+
name: 'u-read-more',
|
|
168
|
+
mixins: [mpMixin, mixin, props],
|
|
169
|
+
data() {
|
|
170
|
+
return {
|
|
171
|
+
isLongContent: false, // 是否需要隐藏一部分内容
|
|
172
|
+
status: 'close', // 当前隐藏与显示的状态,close-收起状态,open-展开状态
|
|
173
|
+
elId: guid(), // 生成唯一class
|
|
174
|
+
contentHeight: 100 // 内容高度
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
computed: {
|
|
178
|
+
// 展开后无需阴影,收起时才需要阴影样式
|
|
179
|
+
innerShadowStyle() {
|
|
180
|
+
if (this.status === 'open') return {};
|
|
181
|
+
else return this.shadowStyle;
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
mounted() {
|
|
185
|
+
this.init();
|
|
186
|
+
},
|
|
187
|
+
emits: ['open', 'close'],
|
|
188
|
+
methods: {
|
|
189
|
+
addUnit,
|
|
190
|
+
async init() {
|
|
191
|
+
this.getContentHeight().then((height) => {
|
|
192
|
+
this.contentHeight = height;
|
|
193
|
+
// 判断高度,如果真实内容高度大于占位高度,则显示收起与展开的控制按钮
|
|
194
|
+
if (height > getPx(this.showHeight)) {
|
|
195
|
+
this.isLongContent = true;
|
|
196
|
+
this.status = 'close';
|
|
197
|
+
} else {
|
|
198
|
+
// https://github.com/ijry/uview-plus/issues/270
|
|
199
|
+
this.isLongContent = false;
|
|
200
|
+
this.status = 'close';
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
// 获取内容的高度
|
|
205
|
+
async getContentHeight() {
|
|
206
|
+
// 延时一定时间再获取节点
|
|
207
|
+
await sleep(30);
|
|
208
|
+
return new Promise((resolve) => {
|
|
209
|
+
// #ifndef APP-NVUE
|
|
210
|
+
this.$uGetRect('.' + this.elId).then((res) => {
|
|
211
|
+
resolve(res.height);
|
|
212
|
+
});
|
|
213
|
+
// #endif
|
|
214
|
+
// #ifdef APP-NVUE
|
|
215
|
+
const ref = this.$refs['u-read-more__content__inner'];
|
|
216
|
+
dom.getComponentRect(ref, (res) => {
|
|
217
|
+
resolve(res.size.height);
|
|
218
|
+
});
|
|
219
|
+
// #endif
|
|
220
|
+
});
|
|
221
|
+
},
|
|
222
|
+
// 展开或者收起
|
|
223
|
+
toggleReadMore() {
|
|
224
|
+
this.status = this.status === 'close' ? 'open' : 'close';
|
|
225
|
+
// 如果toggle为false,隐藏"收起"部分的内容
|
|
226
|
+
if (this.toggle == false) this.isLongContent = false;
|
|
227
|
+
// 发出打开或者收齐的事件
|
|
228
|
+
this.$emit(this.status, this.name);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
</script>
|
|
233
|
+
<style scoped>
|
|
234
|
+
@import './style.css';
|
|
235
|
+
</style>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "u-row",
|
|
3
|
+
"displayName": "u-row layout布局 全端兼容,无论平台,一致体验",
|
|
4
|
+
"version": "1.0.3",
|
|
5
|
+
"description": "u-row 通过基础的 12 分栏,迅速简便地创建布局",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"u-row",
|
|
8
|
+
"u-ui",
|
|
9
|
+
"wuui",
|
|
10
|
+
"layout",
|
|
11
|
+
"布局"
|
|
12
|
+
],
|
|
13
|
+
"repository": "",
|
|
14
|
+
"engines": {
|
|
15
|
+
"HBuilderX": "^3.1.0"
|
|
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,16 @@
|
|
|
1
|
+
## u-row layout布局
|
|
2
|
+
|
|
3
|
+
> **组件名:u-row**
|
|
4
|
+
|
|
5
|
+
`u-row` 通过基础的 12 分栏,迅速简便地创建布局。
|
|
6
|
+
|
|
7
|
+
## [查看文档](https://ijry.github.io/uview-plus/components/layout.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)**
|
|
@@ -21,7 +21,7 @@ import { addUnit, addStyle, deepMerge, sleep } from '../../libs/function/index';
|
|
|
21
21
|
* @property {Object} customStyle 定义需要用到的外部样式
|
|
22
22
|
*
|
|
23
23
|
* @event {Function} click row被点击
|
|
24
|
-
* @example <
|
|
24
|
+
* @example <up-row justify="space-between" customStyle="margin-bottom: 10px"></up-row>
|
|
25
25
|
*/
|
|
26
26
|
export default {
|
|
27
27
|
name: 'u-row',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view class="u-notice" @tap="clickHandler">
|
|
3
3
|
<slot name="icon">
|
|
4
4
|
<view class="u-notice__left-icon" v-if="icon">
|
|
5
|
-
<
|
|
5
|
+
<up-icon :name="icon" :color="color" size="19"></up-icon>
|
|
6
6
|
</view>
|
|
7
7
|
</slot>
|
|
8
8
|
<view class="u-notice__content" ref="u-notice__content">
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
</view>
|
|
12
12
|
</view>
|
|
13
13
|
<view class="u-notice__right-icon" v-if="['link', 'closable'].includes(mode)">
|
|
14
|
-
<
|
|
15
|
-
<
|
|
14
|
+
<up-icon v-if="mode === 'link'" name="arrow-right" :size="17" :color="color"></up-icon>
|
|
15
|
+
<up-icon v-if="mode === 'closable'" @click="close" name="close" :size="16" :color="color"></up-icon>
|
|
16
16
|
</view>
|
|
17
17
|
</view>
|
|
18
18
|
</template>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "u-safe-bottom",
|
|
3
|
+
"displayName": "u-safe-bottom底部安全区 全端兼容 无论平台 一致体验",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"description": "针对一些底部带指示条的机型,操作区域与页面底部重合,容易误操作,因此本插件对这些机型进行底部安全区适配",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"u-ui",
|
|
8
|
+
"wuui",
|
|
9
|
+
"u-safe-bottom",
|
|
10
|
+
"safe-bottom",
|
|
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,16 @@
|
|
|
1
|
+
## u-safe-bottom 底部安全区
|
|
2
|
+
|
|
3
|
+
> **组件名:u-safe-bottom**
|
|
4
|
+
|
|
5
|
+
这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。
|
|
6
|
+
|
|
7
|
+
## [查看文档](https://ijry.github.io/uview-plus/components/safeAreaInset.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)**
|
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
<template>
|
|
2
1
|
<view class="u-safe-bottom" :style="[style]" :class="[!isNvue && 'u-safe-area-inset-bottom']"></view>
|
|
3
2
|
* SafeBottom 底部安全区
|
|
4
3
|
* @description 这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。
|
|
5
4
|
* @tutorial https://ijry.github.io/uview-plus/components/safeAreaInset.html
|
|
6
5
|
* @property {type} prop_name
|
|
7
6
|
* @property {Object} customStyle 定义需要用到的外部样式
|
|
8
7
|
*
|
|
9
8
|
* @event {Function()}
|
|
10
9
|
* @example <u-status-bar></u-status-bar>
|
|
11
10
|
*/
|
|
12
11
|
name: 'u-safe-bottom',
|
|
13
12
|
mixins: [mpMixin, mixin, props],
|
|
14
13
|
data() {
|
|
15
14
|
return {
|
|
16
15
|
safeAreaBottomHeight: 0,
|
|
17
16
|
isNvue: false
|
|
18
17
|
};
|
|
19
18
|
},
|
|
20
19
|
computed: {
|
|
21
20
|
style() {
|
|
22
21
|
const style = {};
|
|
23
22
|
// #ifdef APP-NVUE || MP-TOUTIAO
|
|
24
23
|
// nvue下,高度使用js计算填充
|
|
25
24
|
style.height = addUnit(getWindowInfo().safeAreaInsets.bottom, 'px');
|
|
26
25
|
// #endif
|
|
27
26
|
return deepMerge(style, addStyle(this.customStyle));
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
29
|
mounted() {
|
|
31
30
|
// #ifdef APP-NVUE
|
|
32
31
|
// 标识为是否nvue
|
|
33
32
|
this.isNvue = true;
|
|
34
33
|
// #endif
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
<template>
|
|
36
|
+
<view class="u-safe-bottom" :style="[style]" :class="[!isNvue && 'u-safe-area-inset-bottom']"></view>
|
|
37
|
+
</template>
|
|
38
|
+
<script>
|
|
39
|
+
import { props } from './props.js';
|
|
40
|
+
import { mpMixin } from '../../libs/mixin/mpMixin';
|
|
41
|
+
import { mixin } from '../../libs/mixin/mixin';
|
|
42
|
+
import { addStyle, deepMerge, addUnit, getWindowInfo } from '../../libs/function/index';
|
|
43
|
+
/**
|
|
44
|
+
* SafeBottom 底部安全区
|
|
45
|
+
* @description 这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。
|
|
46
|
+
* @tutorial https://ijry.github.io/uview-plus/components/safeAreaInset.html
|
|
47
|
+
* @property {type} prop_name
|
|
48
|
+
* @property {Object} customStyle 定义需要用到的外部样式
|
|
49
|
+
*
|
|
50
|
+
* @event {Function()}
|
|
51
|
+
* @example <up-status-bar></up-status-bar>
|
|
52
|
+
*/
|
|
53
|
+
export default {
|
|
54
|
+
name: 'u-safe-bottom',
|
|
55
|
+
mixins: [mpMixin, mixin, props],
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
58
|
+
safeAreaBottomHeight: 0,
|
|
59
|
+
isNvue: false
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
style() {
|
|
64
|
+
const style = {};
|
|
65
|
+
// #ifdef APP-NVUE || MP-TOUTIAO
|
|
66
|
+
// nvue下,高度使用js计算填充
|
|
67
|
+
style.height = addUnit(getWindowInfo().safeAreaInsets.bottom, 'px');
|
|
68
|
+
// #endif
|
|
69
|
+
return deepMerge(style, addStyle(this.customStyle));
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
mounted() {
|
|
73
|
+
// #ifdef APP-NVUE
|
|
74
|
+
// 标识为是否nvue
|
|
75
|
+
this.isNvue = true;
|
|
76
|
+
// #endif
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
</script>
|
|
80
|
+
<style scoped>
|
|
81
|
+
@import './style.css';
|
|
82
|
+
</style>
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
</slot>
|
|
25
25
|
</template>
|
|
26
26
|
<view class="u-search__content__icon">
|
|
27
|
-
<
|
|
27
|
+
<up-icon
|
|
28
28
|
@tap="clickIcon"
|
|
29
29
|
:size="searchIconSize"
|
|
30
30
|
:name="searchIcon"
|
|
31
31
|
:color="searchIconColor ? searchIconColor : color"
|
|
32
|
-
></
|
|
32
|
+
></up-icon>
|
|
33
33
|
</view>
|
|
34
34
|
<input
|
|
35
35
|
confirm-type="search"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
]"
|
|
61
61
|
/>
|
|
62
62
|
<view class="u-search__content__icon u-search__content__close" v-if="keyword && clearabled && focused" @click="clear">
|
|
63
|
-
<
|
|
63
|
+
<up-icon name="close" size="11" color="#ffffff" customStyle="line-height: 12px"></up-icon>
|
|
64
64
|
</view>
|
|
65
65
|
</view>
|
|
66
66
|
<text
|
|
@@ -114,7 +114,7 @@ import { addUnit, addStyle } from '../../libs/function/index';
|
|
|
114
114
|
* @event {Function} search 用户确定搜索时触发,用户按回车键,或者手机键盘右下角的"搜索"键时触发
|
|
115
115
|
* @event {Function} custom 用户点击右侧控件时触发
|
|
116
116
|
* @event {Function} clear 用户点击清除按钮时触发
|
|
117
|
-
* @example <
|
|
117
|
+
* @example <up-search placeholder="日照香炉生紫烟" v-model="keyword"></up-search>
|
|
118
118
|
*/
|
|
119
119
|
export default {
|
|
120
120
|
name: 'u-search',
|