@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,175 @@
|
|
|
1
|
-
<template>
|
|
2
1
|
<view class="u-select">
|
|
3
2
|
<view class="u-select__content">
|
|
4
3
|
<view class="u-select__label" @click="openSelect">
|
|
5
4
|
<slot name="text" :currentLabel="currentLabel">
|
|
6
5
|
<text class="u-select__text" v-if="showOptionsLabel">
|
|
7
6
|
{{ currentLabel }}
|
|
8
7
|
</text>
|
|
9
8
|
<text class="u-select__text" v-else>
|
|
10
9
|
{{ label }}
|
|
11
10
|
</text>
|
|
12
11
|
</slot>
|
|
13
12
|
<slot name="icon">
|
|
14
13
|
<u-icon name="arrow-down" :size="iconSize" :color="iconColor"></u-icon>
|
|
15
14
|
</slot>
|
|
16
15
|
</view>
|
|
17
16
|
<u-overlay
|
|
18
17
|
:show="isOpen"
|
|
19
18
|
@click="overlayClick"
|
|
20
19
|
v-if="overlay"
|
|
21
20
|
:zIndex="zIndex"
|
|
22
21
|
:duration="duration + 50"
|
|
23
22
|
:customStyle="overlayStyle"
|
|
24
23
|
:opacity="overlayOpacity"
|
|
25
24
|
@touchmove.stop.prevent="noop"
|
|
26
25
|
></u-overlay>
|
|
27
26
|
<view
|
|
28
27
|
class="u-select__options__wrap"
|
|
29
28
|
:style="{ overflowY: 'auto', zIndex: zIndex + 1, left: optionsWrapLeft, right: optionsWrapRight, maxHeight: maxHeight }"
|
|
30
29
|
>
|
|
31
30
|
<view class="u-select__options" v-if="isOpen">
|
|
32
31
|
<slot name="options">
|
|
33
32
|
<view
|
|
34
33
|
class="u-select__options_item"
|
|
35
34
|
:class="current == item[keyName] ? 'active' : ''"
|
|
36
35
|
:key="index"
|
|
37
36
|
v-for="(item, index) in options"
|
|
38
37
|
@click="selectItem(item)"
|
|
39
38
|
>
|
|
40
39
|
<slot name="optionItem" :item="item">
|
|
41
40
|
<text class="u-select__item_text" :style="{ color: itemColor }">
|
|
42
41
|
{{ item[labelName] }}
|
|
43
42
|
</text>
|
|
44
43
|
</slot>
|
|
45
44
|
</view>
|
|
46
45
|
</slot>
|
|
47
46
|
</view>
|
|
48
47
|
</view>
|
|
49
48
|
</view>
|
|
50
49
|
</view>
|
|
51
50
|
name: 'up-select',
|
|
52
51
|
emits: ['update:current', 'select'],
|
|
53
52
|
props: {
|
|
54
53
|
maxHeight: {
|
|
55
54
|
type: String,
|
|
56
55
|
default: '90vh'
|
|
57
56
|
},
|
|
58
57
|
overlay: {
|
|
59
58
|
type: Boolean,
|
|
60
59
|
default: true
|
|
61
60
|
},
|
|
62
61
|
overlayOpacity: {
|
|
63
62
|
type: Number,
|
|
64
63
|
default: 0.01
|
|
65
64
|
},
|
|
66
65
|
overlayStyle: {
|
|
67
66
|
type: Object,
|
|
68
67
|
default: () => {
|
|
69
68
|
return {};
|
|
70
69
|
}
|
|
71
70
|
},
|
|
72
71
|
duration: {
|
|
73
72
|
type: Number,
|
|
74
73
|
default: 300
|
|
75
74
|
},
|
|
76
75
|
label: {
|
|
77
76
|
type: String,
|
|
78
77
|
default: '选项'
|
|
79
78
|
},
|
|
80
79
|
options: {
|
|
81
80
|
type: Array,
|
|
82
81
|
default: () => {
|
|
83
82
|
return [];
|
|
84
83
|
}
|
|
85
84
|
},
|
|
86
85
|
keyName: {
|
|
87
86
|
type: String,
|
|
88
87
|
default: 'id'
|
|
89
88
|
},
|
|
90
89
|
labelName: {
|
|
91
90
|
type: String,
|
|
92
91
|
default: 'name'
|
|
93
92
|
},
|
|
94
93
|
showOptionsLabel: {
|
|
95
94
|
type: Boolean,
|
|
96
95
|
default: false
|
|
97
96
|
},
|
|
98
97
|
current: {
|
|
99
98
|
type: [String, Number],
|
|
100
99
|
default: ''
|
|
101
100
|
},
|
|
102
101
|
zIndex: {
|
|
103
102
|
type: Number,
|
|
104
103
|
default: 11000
|
|
105
104
|
},
|
|
106
105
|
itemColor: {
|
|
107
106
|
type: String,
|
|
108
107
|
default: '#333333'
|
|
109
108
|
},
|
|
110
109
|
iconColor: {
|
|
111
110
|
type: String,
|
|
112
111
|
default: ''
|
|
113
112
|
},
|
|
114
113
|
iconSize: {
|
|
115
114
|
type: [String],
|
|
116
115
|
default: '13px'
|
|
117
116
|
}
|
|
118
117
|
},
|
|
119
118
|
data() {
|
|
120
119
|
return {
|
|
121
120
|
isOpen: false,
|
|
122
121
|
optionsWrapLeft: 'auto',
|
|
123
122
|
optionsWrapRight: 'auto'
|
|
124
123
|
};
|
|
125
124
|
},
|
|
126
125
|
computed: {
|
|
127
126
|
currentLabel() {
|
|
128
127
|
let name = '';
|
|
129
128
|
this.options.forEach((ele) => {
|
|
130
129
|
if (ele[this.keyName] === this.current) {
|
|
131
130
|
name = ele[this.labelName];
|
|
132
131
|
}
|
|
133
132
|
});
|
|
134
133
|
return name;
|
|
135
134
|
}
|
|
136
135
|
},
|
|
137
136
|
methods: {
|
|
138
137
|
openSelect() {
|
|
139
138
|
this.isOpen = true;
|
|
140
139
|
this.$nextTick(() => {
|
|
141
140
|
if (this.isOpen) {
|
|
142
141
|
this.adjustOptionsWrapPosition();
|
|
143
142
|
}
|
|
144
143
|
});
|
|
145
144
|
},
|
|
146
145
|
overlayClick() {
|
|
147
146
|
this.isOpen = false;
|
|
148
147
|
},
|
|
149
148
|
selectItem(item) {
|
|
150
149
|
this.isOpen = false;
|
|
151
150
|
this.$emit('update:current', item[this.keyName]);
|
|
152
151
|
this.$emit('select', item);
|
|
153
152
|
},
|
|
154
153
|
adjustOptionsWrapPosition() {
|
|
155
154
|
let wi = getWindowInfo();
|
|
156
155
|
let windowWidth = wi.windowWidth;
|
|
157
156
|
this.$uGetRect('.u-select__options__wrap').then((rect) => {
|
|
158
157
|
console.log(rect);
|
|
159
158
|
if (rect.left + rect.width > windowWidth) {
|
|
160
159
|
// 如果右侧被遮挡,则调整到左侧
|
|
161
160
|
this.optionsWrapLeft = 'auto';
|
|
162
161
|
this.optionsWrapRight = `0px`;
|
|
163
162
|
}
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
<template>
|
|
167
|
+
<view class="u-select">
|
|
168
|
+
<view class="u-select__content">
|
|
169
|
+
<view class="u-select__label" @click="openSelect">
|
|
170
|
+
<slot name="text" :currentLabel="currentLabel">
|
|
171
|
+
<text class="u-select__text" v-if="showOptionsLabel">
|
|
172
|
+
{{ currentLabel }}
|
|
173
|
+
</text>
|
|
174
|
+
<text class="u-select__text" v-else>
|
|
175
|
+
{{ label }}
|
|
176
|
+
</text>
|
|
177
|
+
</slot>
|
|
178
|
+
<slot name="icon">
|
|
179
|
+
<up-icon name="arrow-down" :size="iconSize" :color="iconColor"></up-icon>
|
|
180
|
+
</slot>
|
|
181
|
+
</view>
|
|
182
|
+
<up-overlay
|
|
183
|
+
:show="isOpen"
|
|
184
|
+
@click="overlayClick"
|
|
185
|
+
v-if="overlay"
|
|
186
|
+
:zIndex="zIndex"
|
|
187
|
+
:duration="duration + 50"
|
|
188
|
+
:customStyle="overlayStyle"
|
|
189
|
+
:opacity="overlayOpacity"
|
|
190
|
+
@touchmove.stop.prevent="noop"
|
|
191
|
+
></up-overlay>
|
|
192
|
+
<view
|
|
193
|
+
class="u-select__options__wrap"
|
|
194
|
+
:style="{ overflowY: 'auto', zIndex: zIndex + 1, left: optionsWrapLeft, right: optionsWrapRight, maxHeight: maxHeight }"
|
|
195
|
+
>
|
|
196
|
+
<view class="u-select__options" v-if="isOpen">
|
|
197
|
+
<slot name="options">
|
|
198
|
+
<view
|
|
199
|
+
class="u-select__options_item"
|
|
200
|
+
:class="current == item[keyName] ? 'active' : ''"
|
|
201
|
+
:key="index"
|
|
202
|
+
v-for="(item, index) in options"
|
|
203
|
+
@click="selectItem(item)"
|
|
204
|
+
>
|
|
205
|
+
<slot name="optionItem" :item="item">
|
|
206
|
+
<text class="u-select__item_text" :style="{ color: itemColor }">
|
|
207
|
+
{{ item[labelName] }}
|
|
208
|
+
</text>
|
|
209
|
+
</slot>
|
|
210
|
+
</view>
|
|
211
|
+
</slot>
|
|
212
|
+
</view>
|
|
213
|
+
</view>
|
|
214
|
+
</view>
|
|
215
|
+
</view>
|
|
216
|
+
</template>
|
|
217
|
+
<script>
|
|
218
|
+
import { getWindowInfo } from '../../libs/function/index';
|
|
219
|
+
export default {
|
|
220
|
+
name: 'up-select',
|
|
221
|
+
emits: ['update:current', 'select'],
|
|
222
|
+
props: {
|
|
223
|
+
maxHeight: {
|
|
224
|
+
type: String,
|
|
225
|
+
default: '90vh'
|
|
226
|
+
},
|
|
227
|
+
overlay: {
|
|
228
|
+
type: Boolean,
|
|
229
|
+
default: true
|
|
230
|
+
},
|
|
231
|
+
overlayOpacity: {
|
|
232
|
+
type: Number,
|
|
233
|
+
default: 0.01
|
|
234
|
+
},
|
|
235
|
+
overlayStyle: {
|
|
236
|
+
type: Object,
|
|
237
|
+
default: () => {
|
|
238
|
+
return {};
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
duration: {
|
|
242
|
+
type: Number,
|
|
243
|
+
default: 300
|
|
244
|
+
},
|
|
245
|
+
label: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: '选项'
|
|
248
|
+
},
|
|
249
|
+
options: {
|
|
250
|
+
type: Array,
|
|
251
|
+
default: () => {
|
|
252
|
+
return [];
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
keyName: {
|
|
256
|
+
type: String,
|
|
257
|
+
default: 'id'
|
|
258
|
+
},
|
|
259
|
+
labelName: {
|
|
260
|
+
type: String,
|
|
261
|
+
default: 'name'
|
|
262
|
+
},
|
|
263
|
+
showOptionsLabel: {
|
|
264
|
+
type: Boolean,
|
|
265
|
+
default: false
|
|
266
|
+
},
|
|
267
|
+
current: {
|
|
268
|
+
type: [String, Number],
|
|
269
|
+
default: ''
|
|
270
|
+
},
|
|
271
|
+
zIndex: {
|
|
272
|
+
type: Number,
|
|
273
|
+
default: 11000
|
|
274
|
+
},
|
|
275
|
+
itemColor: {
|
|
276
|
+
type: String,
|
|
277
|
+
default: '#333333'
|
|
278
|
+
},
|
|
279
|
+
iconColor: {
|
|
280
|
+
type: String,
|
|
281
|
+
default: ''
|
|
282
|
+
},
|
|
283
|
+
iconSize: {
|
|
284
|
+
type: [String],
|
|
285
|
+
default: '13px'
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
data() {
|
|
289
|
+
return {
|
|
290
|
+
isOpen: false,
|
|
291
|
+
optionsWrapLeft: 'auto',
|
|
292
|
+
optionsWrapRight: 'auto'
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
computed: {
|
|
296
|
+
currentLabel() {
|
|
297
|
+
let name = '';
|
|
298
|
+
this.options.forEach((ele) => {
|
|
299
|
+
if (ele[this.keyName] === this.current) {
|
|
300
|
+
name = ele[this.labelName];
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
return name;
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
methods: {
|
|
307
|
+
openSelect() {
|
|
308
|
+
this.isOpen = true;
|
|
309
|
+
this.$nextTick(() => {
|
|
310
|
+
if (this.isOpen) {
|
|
311
|
+
this.adjustOptionsWrapPosition();
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
overlayClick() {
|
|
316
|
+
this.isOpen = false;
|
|
317
|
+
},
|
|
318
|
+
selectItem(item) {
|
|
319
|
+
this.isOpen = false;
|
|
320
|
+
this.$emit('update:current', item[this.keyName]);
|
|
321
|
+
this.$emit('select', item);
|
|
322
|
+
},
|
|
323
|
+
adjustOptionsWrapPosition() {
|
|
324
|
+
let wi = getWindowInfo();
|
|
325
|
+
let windowWidth = wi.windowWidth;
|
|
326
|
+
this.$uGetRect('.u-select__options__wrap').then((rect) => {
|
|
327
|
+
console.log(rect);
|
|
328
|
+
if (rect.left + rect.width > windowWidth) {
|
|
329
|
+
// 如果右侧被遮挡,则调整到左侧
|
|
330
|
+
this.optionsWrapLeft = 'auto';
|
|
331
|
+
this.optionsWrapRight = `0px`;
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
</script>
|
|
338
|
+
<style scoped>
|
|
339
|
+
@import './style.css';
|
|
340
|
+
</style>
|
|
@@ -62,7 +62,7 @@ const animation = uni.requireNativePlugin('animation');
|
|
|
62
62
|
* @property {Boolean} avatar 是否展示头像占位图 (默认 false )
|
|
63
63
|
* @property {String | Number} avatarSize 头像占位图大小 (默认 32 )
|
|
64
64
|
* @property {String} avatarShape 头像占位图的形状,circle-圆形,square-方形 (默认 'circle' )
|
|
65
|
-
* @example <
|
|
65
|
+
* @example <up-search placeholder="日照香炉生紫烟" v-model="keyword"></up-search>
|
|
66
66
|
*/
|
|
67
67
|
export default {
|
|
68
68
|
name: 'u-skeleton',
|
|
@@ -89,8 +89,8 @@ export default {
|
|
|
89
89
|
rowWidth = test.array(this.rowsWidth)
|
|
90
90
|
? this.rowsWidth[i] || (i === this.rows - 1 ? '70%' : '100%')
|
|
91
91
|
: i === this.rows - 1
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
? '70%'
|
|
93
|
+
: this.rowsWidth,
|
|
94
94
|
rowHeight = test.array(this.rowsHeight) ? this.rowsHeight[i] || '18px' : this.rowsHeight;
|
|
95
95
|
// 如果有title占位图,第一个段落占位图的外边距需要大一些,如果没有title占位图,第一个段落占位图则无需外边距
|
|
96
96
|
// 之所以需要这么做,是因为weex的无能,以提升性能为借口不支持css的一些伪类
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## 1.1.0(2024-11-14)
|
|
2
|
+
修复nvue警告
|
|
3
|
+
## 1.0.9(2024-06-11)
|
|
4
|
+
1. 修复某些安卓手机点击加减无反应
|
|
5
|
+
2. 修复点击关闭图标无法关闭的bug
|
|
6
|
+
## 1.0.8(2024-05-08)
|
|
7
|
+
更新域名
|
|
8
|
+
## 1.0.7(2023-12-08)
|
|
9
|
+
修复隐式转换的错误
|
|
10
|
+
## 1.0.6(2023-08-23)
|
|
11
|
+
去除0库存禁用,新增sku不相关是否禁用属性
|
|
12
|
+
## 1.0.5(2023-08-21)
|
|
13
|
+
更新文档说明
|
|
14
|
+
## 1.0.4(2023-08-12)
|
|
15
|
+
修复数据变动无法检测变化的bug
|
|
16
|
+
## 1.0.3(2023-08-11)
|
|
17
|
+
将使用说明迁至 u-ui sku 组件文档中
|
|
18
|
+
## 1.0.2(2023-08-11)
|
|
19
|
+
发布新版教程
|
|
20
|
+
## 1.0.1(2023-08-11)
|
|
21
|
+
1. 优化源geek-sku组件,原组件不在维护
|
|
22
|
+
2. 新增全端兼容,nvue、vue2、vue3、小程序等
|
|
23
|
+
3. 修复 vue2 icon图标消失的bug
|
|
24
|
+
## 1.0.0(2023-08-11)
|
|
25
|
+
1. 优化源geek-sku组件,原组件不在维护
|
|
26
|
+
2. 新增全端兼容,nvue、vue2、vue3、小程序等
|
|
27
|
+
3. 修复 vue2 icon图标消失的bug
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "u-sku",
|
|
3
|
+
"displayName": "u-sku 商品多规格sku选择器【支持vue3】【支持NVUE】【支持带图sku】【全端兼容】",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "一款仿京东算法的轻量化、强大、拓展性强、可使用带图sku、可根据配置主题色自动生成相应的组件主题色的商品多规格sku,仅需要按照指定格式传入sku数组便可以直接使用。",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"商品多规格选择器",
|
|
8
|
+
"u-sku",
|
|
9
|
+
"全端",
|
|
10
|
+
"vue3",
|
|
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
|
+
"u-number-box"
|
|
40
|
+
],
|
|
41
|
+
"encrypt": [],
|
|
42
|
+
"platforms": {
|
|
43
|
+
"cloud": {
|
|
44
|
+
"tcb": "y",
|
|
45
|
+
"aliyun": "y",
|
|
46
|
+
"alipay": "n"
|
|
47
|
+
},
|
|
48
|
+
"client": {
|
|
49
|
+
"Vue": {
|
|
50
|
+
"vue2": "y",
|
|
51
|
+
"vue3": "y"
|
|
52
|
+
},
|
|
53
|
+
"App": {
|
|
54
|
+
"app-vue": "y",
|
|
55
|
+
"app-nvue": "y",
|
|
56
|
+
"app-harmony": "u",
|
|
57
|
+
"app-uvue": "u"
|
|
58
|
+
},
|
|
59
|
+
"H5-mobile": {
|
|
60
|
+
"Safari": "y",
|
|
61
|
+
"Android Browser": "y",
|
|
62
|
+
"微信浏览器(Android)": "y",
|
|
63
|
+
"QQ浏览器(Android)": "y"
|
|
64
|
+
},
|
|
65
|
+
"H5-pc": {
|
|
66
|
+
"Chrome": "y",
|
|
67
|
+
"IE": "y",
|
|
68
|
+
"Edge": "y",
|
|
69
|
+
"Firefox": "y",
|
|
70
|
+
"Safari": "y"
|
|
71
|
+
},
|
|
72
|
+
"小程序": {
|
|
73
|
+
"微信": "y",
|
|
74
|
+
"阿里": "y",
|
|
75
|
+
"百度": "y",
|
|
76
|
+
"字节跳动": "y",
|
|
77
|
+
"QQ": "y",
|
|
78
|
+
"钉钉": "y",
|
|
79
|
+
"快手": "y",
|
|
80
|
+
"飞书": "y",
|
|
81
|
+
"京东": "y"
|
|
82
|
+
},
|
|
83
|
+
"快应用": {
|
|
84
|
+
"华为": "y",
|
|
85
|
+
"联盟": "y"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"crypto-js": "^4.1.1"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## u-sku 按钮
|
|
2
|
+
|
|
3
|
+
> **组件名:u-sku**
|
|
4
|
+
|
|
5
|
+
`u-sku` 是一款仿京东算法的轻量化、强大、拓展性强、可使用带图sku、可根据配置主题色自动生成相应的组件主题色的商品多规格sku,仅需要按照指定格式传入sku数组便可以直接使用。
|
|
6
|
+
|
|
7
|
+
## [查看文档](https://ijry.github.io/uview-plus/components/sku.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)**
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue';
|
|
2
|
+
import defProps from '../../libs/config/props.js';
|
|
3
|
+
export const props = defineMixin({
|
|
4
|
+
props: {
|
|
5
|
+
// 源数据
|
|
6
|
+
data: {
|
|
7
|
+
default: () => [],
|
|
8
|
+
type: Array
|
|
9
|
+
},
|
|
10
|
+
// 是否显示sku组件
|
|
11
|
+
// #ifdef VUE3
|
|
12
|
+
modelValue: {
|
|
13
|
+
default: false,
|
|
14
|
+
type: Boolean
|
|
15
|
+
},
|
|
16
|
+
// #endif
|
|
17
|
+
// #ifndef VUE3
|
|
18
|
+
value: {
|
|
19
|
+
default: false,
|
|
20
|
+
type: Boolean
|
|
21
|
+
},
|
|
22
|
+
// #endif
|
|
23
|
+
// 是否可以点击关闭
|
|
24
|
+
isMaskClose: {
|
|
25
|
+
default: false,
|
|
26
|
+
type: Boolean
|
|
27
|
+
},
|
|
28
|
+
// 是否默认选中最低价格sku
|
|
29
|
+
isSelectMinPriceSku: {
|
|
30
|
+
default: true,
|
|
31
|
+
type: Boolean
|
|
32
|
+
},
|
|
33
|
+
// 默认选中的sku下标
|
|
34
|
+
selectSkuIndex: {
|
|
35
|
+
default: null,
|
|
36
|
+
type: [Number, String]
|
|
37
|
+
},
|
|
38
|
+
// 默认封面图
|
|
39
|
+
defaultCover: {
|
|
40
|
+
default: '',
|
|
41
|
+
type: String
|
|
42
|
+
},
|
|
43
|
+
// 默认购买商品数量
|
|
44
|
+
defaultNum: {
|
|
45
|
+
default: 1,
|
|
46
|
+
type: [Number, String]
|
|
47
|
+
},
|
|
48
|
+
// 主题色
|
|
49
|
+
themeColor: {
|
|
50
|
+
default: () => [60, 156, 255],
|
|
51
|
+
type: Array
|
|
52
|
+
},
|
|
53
|
+
// 确认按钮文字
|
|
54
|
+
btnConfirmText: {
|
|
55
|
+
default: '确定',
|
|
56
|
+
type: String
|
|
57
|
+
},
|
|
58
|
+
// 不相关sku是否禁用
|
|
59
|
+
skuUnrelatedDisabled: {
|
|
60
|
+
default: false,
|
|
61
|
+
type: Boolean
|
|
62
|
+
},
|
|
63
|
+
// sku禁用时的样式
|
|
64
|
+
skuDisabledStyle: {
|
|
65
|
+
default: () => {
|
|
66
|
+
return {};
|
|
67
|
+
},
|
|
68
|
+
type: Object
|
|
69
|
+
},
|
|
70
|
+
// 库存不足文字
|
|
71
|
+
notStockText: {
|
|
72
|
+
default: '库存不足',
|
|
73
|
+
type: String
|
|
74
|
+
},
|
|
75
|
+
// 未选择完整的sku时的文字提示
|
|
76
|
+
notSelectSku: {
|
|
77
|
+
default: '请选择完整的sku属性',
|
|
78
|
+
type: String
|
|
79
|
+
},
|
|
80
|
+
// 展示库存数量
|
|
81
|
+
showStockNum: {
|
|
82
|
+
default: true,
|
|
83
|
+
type: Boolean
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|