@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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="fui-list-view fui-view-class" :style="{ backgroundColor: backgroundColor }">
|
|
3
|
+
<view class="fui-list-title" v-if="title">{{ title }}</view>
|
|
4
|
+
<view class="fui-list-content" :class="[unlined ? 'fui-border-' + unlined : '']">
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</view>
|
|
7
|
+
</view>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: 'fuiListView',
|
|
13
|
+
props: {
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ''
|
|
17
|
+
},
|
|
18
|
+
backgroundColor: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: 'transparent'
|
|
21
|
+
},
|
|
22
|
+
unlined: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: '' //top,bottom,all
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style scoped>
|
|
31
|
+
.fui-list-title {
|
|
32
|
+
width: 100%;
|
|
33
|
+
padding: 30rpx;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
font-size: 30rpx;
|
|
36
|
+
line-height: 30rpx;
|
|
37
|
+
color: #666;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fui-list-content {
|
|
41
|
+
width: 100%;
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.fui-list-content::before {
|
|
46
|
+
content: ' ';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
border-top: 1rpx solid #eaeef1;
|
|
52
|
+
-webkit-transform: scaleY(0.5) translateZ(0);
|
|
53
|
+
transform: scaleY(0.5) translateZ(0);
|
|
54
|
+
transform-origin: 0 0;
|
|
55
|
+
z-index: 2;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.fui-list-content::after {
|
|
60
|
+
content: '';
|
|
61
|
+
width: 100%;
|
|
62
|
+
position: absolute;
|
|
63
|
+
border-bottom: 1rpx solid #eaeef1;
|
|
64
|
+
-webkit-transform: scaleY(0.5) translateZ(0);
|
|
65
|
+
transform: scaleY(0.5) translateZ(0);
|
|
66
|
+
transform-origin: 0 100%;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
right: 0;
|
|
69
|
+
left: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.fui-border-top::before {
|
|
73
|
+
border-top: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.fui-border-bottom::after {
|
|
77
|
+
border-bottom: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.fui-border-all::after {
|
|
81
|
+
border-bottom: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.fui-border-all::before {
|
|
85
|
+
border-top: 0;
|
|
86
|
+
}
|
|
87
|
+
</style>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="fui-loading-init">
|
|
3
|
+
<view class="fui-loading-center"></view>
|
|
4
|
+
<view class="fui-loadmore-tips">{{ text }}</view>
|
|
5
|
+
</view>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: 'fuiLoading',
|
|
11
|
+
props: {
|
|
12
|
+
text: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: '正在加载...'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<style scoped>
|
|
21
|
+
.fui-loading-init {
|
|
22
|
+
min-width: 200rpx;
|
|
23
|
+
min-height: 200rpx;
|
|
24
|
+
max-width: 500rpx;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
position: fixed;
|
|
30
|
+
top: 50%;
|
|
31
|
+
left: 50%;
|
|
32
|
+
transform: translate(-50%, -50%);
|
|
33
|
+
z-index: 9999;
|
|
34
|
+
font-size: 26rpx;
|
|
35
|
+
color: #fff;
|
|
36
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
37
|
+
border-radius: 10rpx;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fui-loading-center {
|
|
41
|
+
width: 50rpx;
|
|
42
|
+
height: 50rpx;
|
|
43
|
+
border: 3px solid #fff;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
margin: 0 6px;
|
|
46
|
+
display: inline-block;
|
|
47
|
+
vertical-align: middle;
|
|
48
|
+
clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 0% 40%);
|
|
49
|
+
animation: rotate 1s linear infinite;
|
|
50
|
+
margin-bottom: 36rpx;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.fui-loadmore-tips {
|
|
54
|
+
text-align: center;
|
|
55
|
+
padding: 0 20rpx;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@-webkit-keyframes rotate {
|
|
60
|
+
from {
|
|
61
|
+
transform: rotatez(0deg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
to {
|
|
65
|
+
transform: rotatez(360deg);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes rotate {
|
|
70
|
+
from {
|
|
71
|
+
transform: rotatez(0deg);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
to {
|
|
75
|
+
transform: rotatez(360deg);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</style>
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="fui-loadmore">
|
|
3
|
+
<view :class="['fui-loading-' + index, index == 3 && type ? 'fui-loading-' + type : '']"></view>
|
|
4
|
+
<view class="fui-loadmore-tips">{{ text }}</view>
|
|
5
|
+
</view>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: 'fuiLoadmore',
|
|
11
|
+
props: {
|
|
12
|
+
//显示文本
|
|
13
|
+
text: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: '正在加载...'
|
|
16
|
+
},
|
|
17
|
+
//loading 样式 :1,2,3
|
|
18
|
+
index: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 1
|
|
21
|
+
},
|
|
22
|
+
//颜色设置,只有index=3时生效:primary,red,orange,green
|
|
23
|
+
type: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ''
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style scoped>
|
|
32
|
+
.fui-loadmore {
|
|
33
|
+
width: 48%;
|
|
34
|
+
margin: 1.5em auto;
|
|
35
|
+
line-height: 1.5em;
|
|
36
|
+
font-size: 24rpx;
|
|
37
|
+
text-align: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fui-loading-1 {
|
|
41
|
+
margin: 0 5px;
|
|
42
|
+
width: 20px;
|
|
43
|
+
height: 20px;
|
|
44
|
+
display: inline-block;
|
|
45
|
+
vertical-align: middle;
|
|
46
|
+
-webkit-animation: a 1s steps(12) infinite;
|
|
47
|
+
animation: a 1s steps(12) infinite;
|
|
48
|
+
background: transparent
|
|
49
|
+
url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=)
|
|
50
|
+
no-repeat;
|
|
51
|
+
background-size: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@-webkit-keyframes a {
|
|
55
|
+
0% {
|
|
56
|
+
-webkit-transform: rotate(0deg);
|
|
57
|
+
transform: rotate(0deg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
to {
|
|
61
|
+
-webkit-transform: rotate(1turn);
|
|
62
|
+
transform: rotate(1turn);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes a {
|
|
67
|
+
0% {
|
|
68
|
+
-webkit-transform: rotate(0deg);
|
|
69
|
+
transform: rotate(0deg);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
to {
|
|
73
|
+
-webkit-transform: rotate(1turn);
|
|
74
|
+
transform: rotate(1turn);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.fui-loadmore-tips {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
vertical-align: middle;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.fui-loading-2 {
|
|
84
|
+
width: 28rpx;
|
|
85
|
+
height: 28rpx;
|
|
86
|
+
border: 1px solid #8f8d8e;
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
margin: 0 6px;
|
|
89
|
+
display: inline-block;
|
|
90
|
+
vertical-align: middle;
|
|
91
|
+
clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 0% 30%);
|
|
92
|
+
animation: rotate 1s linear infinite;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@-webkit-keyframes rotate {
|
|
96
|
+
from {
|
|
97
|
+
transform: rotatez(0deg);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
to {
|
|
101
|
+
transform: rotatez(360deg);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes rotate {
|
|
106
|
+
from {
|
|
107
|
+
transform: rotatez(0deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
to {
|
|
111
|
+
transform: rotatez(360deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.fui-loading-3 {
|
|
116
|
+
display: inline-block;
|
|
117
|
+
margin: 0 6px;
|
|
118
|
+
vertical-align: middle;
|
|
119
|
+
width: 28rpx;
|
|
120
|
+
height: 28rpx;
|
|
121
|
+
background: 0 0;
|
|
122
|
+
border-radius: 50%;
|
|
123
|
+
border: 2px solid;
|
|
124
|
+
border-color: #e5e5e5 #e5e5e5 #e5e5e5 #8f8d8e;
|
|
125
|
+
animation: fui-rotate 0.7s linear infinite;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.fui-loading-3.fui-loading-primary {
|
|
129
|
+
border-color: #e5e5e5 #e5e5e5 #e5e5e5 #5677fc;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.fui-loading-3.fui-loading-green {
|
|
133
|
+
border-color: #e5e5e5 #e5e5e5 #e5e5e5 #19be6b;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.fui-loading-3.fui-loading-orange {
|
|
137
|
+
border-color: #e5e5e5 #e5e5e5 #e5e5e5 #ff7900;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.fui-loading-3.fui-loading-red {
|
|
141
|
+
border-color: #ededed #ededed #ededed #ed3f14;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@-webkit-keyframes fui-rotate {
|
|
145
|
+
0% {
|
|
146
|
+
transform: rotate(0);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
100% {
|
|
150
|
+
transform: rotate(360deg);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes fui-rotate {
|
|
155
|
+
0% {
|
|
156
|
+
transform: rotate(0);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
100% {
|
|
160
|
+
transform: rotate(360deg);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
</style>
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view @touchmove.stop.prevent>
|
|
3
|
+
<view
|
|
4
|
+
class="fui-modal-box"
|
|
5
|
+
:style="{ width: width, padding: padding, borderRadius: radius }"
|
|
6
|
+
:class="[fadeIn || show ? 'fui-modal-normal' : 'fui-modal-scale', show ? 'fui-modal-show' : '']"
|
|
7
|
+
>
|
|
8
|
+
<view v-if="!custom">
|
|
9
|
+
<view class="fui-modal-title" v-if="title">{{ title }}</view>
|
|
10
|
+
<view class="fui-modal-content" :class="[title ? '' : 'fui-mtop']" :style="{ color: color, fontSize: size + 'rpx' }">
|
|
11
|
+
{{ content }}
|
|
12
|
+
</view>
|
|
13
|
+
<view class="fui-modalBtn-box" :class="[button.length != 2 ? 'fui-flex-column' : '']">
|
|
14
|
+
<block v-for="(item, index) in button" :key="index">
|
|
15
|
+
<button
|
|
16
|
+
class="fui-modal-btn"
|
|
17
|
+
:class="[
|
|
18
|
+
'fui-' + (item.type || 'primary') + (item.plain ? '-outline' : ''),
|
|
19
|
+
button.length != 2 ? 'fui-btn-width' : '',
|
|
20
|
+
button.length > 2 ? 'fui-mbtm' : '',
|
|
21
|
+
shape == 'circle' ? 'fui-circle-btn' : ''
|
|
22
|
+
]"
|
|
23
|
+
:hover-class="'fui-' + (item.plain ? 'outline' : item.type || 'primary') + '-hover'"
|
|
24
|
+
:data-index="index"
|
|
25
|
+
@tap="handleClick"
|
|
26
|
+
>
|
|
27
|
+
{{ item.text || '确定' }}
|
|
28
|
+
</button>
|
|
29
|
+
</block>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
<view v-else>
|
|
33
|
+
<slot></slot>
|
|
34
|
+
</view>
|
|
35
|
+
</view>
|
|
36
|
+
<view class="fui-modal-mask" :class="[show ? 'fui-mask-show' : '']" @tap="handleClickCancel"></view>
|
|
37
|
+
</view>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
export default {
|
|
42
|
+
name: 'fuiModal',
|
|
43
|
+
props: {
|
|
44
|
+
//是否显示
|
|
45
|
+
show: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
width: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: '84%'
|
|
52
|
+
},
|
|
53
|
+
padding: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: '40rpx 64rpx'
|
|
56
|
+
},
|
|
57
|
+
radius: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: '24rpx'
|
|
60
|
+
},
|
|
61
|
+
//标题
|
|
62
|
+
title: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ''
|
|
65
|
+
},
|
|
66
|
+
//内容
|
|
67
|
+
content: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: ''
|
|
70
|
+
},
|
|
71
|
+
//内容字体颜色
|
|
72
|
+
color: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: '#999'
|
|
75
|
+
},
|
|
76
|
+
//内容字体大小 rpx
|
|
77
|
+
size: {
|
|
78
|
+
type: Number,
|
|
79
|
+
default: 28
|
|
80
|
+
},
|
|
81
|
+
//形状 circle, square
|
|
82
|
+
shape: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: 'square'
|
|
85
|
+
},
|
|
86
|
+
button: {
|
|
87
|
+
type: Array,
|
|
88
|
+
default: () => {
|
|
89
|
+
return [
|
|
90
|
+
{
|
|
91
|
+
text: '取消',
|
|
92
|
+
type: 'red',
|
|
93
|
+
plain: true //是否空心
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
text: '确定',
|
|
97
|
+
type: 'red',
|
|
98
|
+
plain: false
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
//点击遮罩 是否可关闭
|
|
104
|
+
maskClosable: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: true
|
|
107
|
+
},
|
|
108
|
+
//淡入效果,自定义弹框插入input输入框时传true
|
|
109
|
+
fadeIn: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: false
|
|
112
|
+
},
|
|
113
|
+
//自定义弹窗内容
|
|
114
|
+
custom: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: false
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
data() {
|
|
120
|
+
return {};
|
|
121
|
+
},
|
|
122
|
+
methods: {
|
|
123
|
+
handleClick(e) {
|
|
124
|
+
if (!this.show) return;
|
|
125
|
+
const dataset = e.currentTarget.dataset;
|
|
126
|
+
this.$emit('click', {
|
|
127
|
+
index: Number(dataset.index)
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
handleClickCancel() {
|
|
131
|
+
if (!this.maskClosable) return;
|
|
132
|
+
this.$emit('cancel');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
</script>
|
|
137
|
+
|
|
138
|
+
<style scoped>
|
|
139
|
+
.fui-modal-box {
|
|
140
|
+
position: fixed;
|
|
141
|
+
left: 50%;
|
|
142
|
+
top: 50%;
|
|
143
|
+
margin: auto;
|
|
144
|
+
background-color: #fff;
|
|
145
|
+
z-index: 9999998;
|
|
146
|
+
transition: all 0.3s ease-in-out;
|
|
147
|
+
opacity: 0;
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
visibility: hidden;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fui-modal-scale {
|
|
153
|
+
transform: translate(-50%, -50%) scale(0);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.fui-modal-normal {
|
|
157
|
+
transform: translate(-50%, -50%) scale(1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.fui-modal-show {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
visibility: visible;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.fui-modal-mask {
|
|
166
|
+
position: fixed;
|
|
167
|
+
top: 0;
|
|
168
|
+
left: 0;
|
|
169
|
+
right: 0;
|
|
170
|
+
bottom: 0;
|
|
171
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
172
|
+
z-index: 9999996;
|
|
173
|
+
transition: all 0.3s ease-in-out;
|
|
174
|
+
opacity: 0;
|
|
175
|
+
visibility: hidden;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.fui-mask-show {
|
|
179
|
+
visibility: visible;
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.fui-modal-title {
|
|
184
|
+
text-align: center;
|
|
185
|
+
font-size: 34rpx;
|
|
186
|
+
color: #333;
|
|
187
|
+
padding-top: 20rpx;
|
|
188
|
+
font-weight: bold;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fui-modal-content {
|
|
192
|
+
text-align: center;
|
|
193
|
+
color: #999;
|
|
194
|
+
font-size: 28rpx;
|
|
195
|
+
padding-top: 20rpx;
|
|
196
|
+
padding-bottom: 60rpx;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.fui-mtop {
|
|
200
|
+
margin-top: 30rpx;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.fui-mbtm {
|
|
204
|
+
margin-bottom: 30rpx;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.fui-modalBtn-box {
|
|
208
|
+
width: 100%;
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: space-between;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.fui-flex-column {
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.fui-modal-btn {
|
|
219
|
+
width: 46%;
|
|
220
|
+
height: 68rpx;
|
|
221
|
+
line-height: 68rpx;
|
|
222
|
+
position: relative;
|
|
223
|
+
border-radius: 10rpx;
|
|
224
|
+
font-size: 26rpx;
|
|
225
|
+
overflow: visible;
|
|
226
|
+
margin-left: 0;
|
|
227
|
+
margin-right: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.fui-modal-btn::after {
|
|
231
|
+
content: ' ';
|
|
232
|
+
position: absolute;
|
|
233
|
+
width: 200%;
|
|
234
|
+
height: 200%;
|
|
235
|
+
-webkit-transform-origin: 0 0;
|
|
236
|
+
transform-origin: 0 0;
|
|
237
|
+
-webkit-transform: scale(0.5, 0.5);
|
|
238
|
+
transform: scale(0.5, 0.5);
|
|
239
|
+
left: 0;
|
|
240
|
+
top: 0;
|
|
241
|
+
border-radius: 20rpx;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.fui-btn-width {
|
|
245
|
+
width: 80% !important;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.fui-primary {
|
|
249
|
+
background: #5677fc;
|
|
250
|
+
color: #fff;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.fui-primary-hover {
|
|
254
|
+
background: #4a67d6;
|
|
255
|
+
color: #e5e5e5;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.fui-primary-outline {
|
|
259
|
+
color: #5677fc;
|
|
260
|
+
background: transparent;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.fui-primary-outline::after {
|
|
264
|
+
border: 1px solid #5677fc;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.fui-danger {
|
|
268
|
+
background: #4fb49b;
|
|
269
|
+
color: #fff;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.fui-danger-hover {
|
|
273
|
+
background: #d53912;
|
|
274
|
+
color: #e5e5e5;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.fui-danger-outline {
|
|
278
|
+
color: #4fb49b;
|
|
279
|
+
background: transparent;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.fui-danger-outline::after {
|
|
283
|
+
border: 1px solid #4fb49b;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.fui-red {
|
|
287
|
+
background: #4fb49b;
|
|
288
|
+
color: #fff;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.fui-red-hover {
|
|
292
|
+
background: #4fb49b;
|
|
293
|
+
color: #e5e5e5;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.fui-red-outline {
|
|
297
|
+
color: #4fb49b;
|
|
298
|
+
background: transparent;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.fui-red-outline::after {
|
|
302
|
+
border: 1px solid #4fb49b;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.fui-warning {
|
|
306
|
+
background: #ff7900;
|
|
307
|
+
color: #fff;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.fui-warning-hover {
|
|
311
|
+
background: #e56d00;
|
|
312
|
+
color: #e5e5e5;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.fui-warning-outline {
|
|
316
|
+
color: #ff7900;
|
|
317
|
+
background: transparent;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.fui-warning-outline::after {
|
|
321
|
+
border: 1px solid #ff7900;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.fui-green {
|
|
325
|
+
background: #19be6b;
|
|
326
|
+
color: #fff;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.fui-green-hover {
|
|
330
|
+
background: #16ab60;
|
|
331
|
+
color: #e5e5e5;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.fui-green-outline {
|
|
335
|
+
color: #19be6b;
|
|
336
|
+
background: transparent;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.fui-green-outline::after {
|
|
340
|
+
border: 1px solid #19be6b;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.fui-white {
|
|
344
|
+
background: #fff;
|
|
345
|
+
color: #333;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.fui-white-hover {
|
|
349
|
+
background: #f7f7f9;
|
|
350
|
+
color: #666;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.fui-white-outline {
|
|
354
|
+
color: #333;
|
|
355
|
+
background: transparent;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.fui-white-outline::after {
|
|
359
|
+
border: 1px solid #333;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.fui-gray {
|
|
363
|
+
background: #ededed;
|
|
364
|
+
color: #999;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.fui-gray-hover {
|
|
368
|
+
background: #d5d5d5;
|
|
369
|
+
color: #898989;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.fui-gray-outline {
|
|
373
|
+
color: #999;
|
|
374
|
+
background: transparent;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.fui-gray-outline::after {
|
|
378
|
+
border: 1px solid #999;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.fui-outline-hover {
|
|
382
|
+
opacity: 0.6;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.fui-circle-btn {
|
|
386
|
+
border-radius: 40rpx !important;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.fui-circle-btn::after {
|
|
390
|
+
border-radius: 80rpx !important;
|
|
391
|
+
}
|
|
392
|
+
</style>
|