├── .gitignore ├── App.vue ├── LICENSE ├── README.md ├── common ├── api.js ├── config.js └── demo.scss ├── components ├── page-nav │ └── page-nav.vue └── uv-custom-icon │ ├── props.js │ └── uv-custom-icon.vue ├── index.html ├── main.js ├── manifest.json ├── pages.json ├── pages ├── componentsA │ ├── button │ │ └── button.nvue │ ├── color │ │ └── color.nvue │ ├── divider │ │ └── divider.nvue │ ├── gap │ │ └── gap.nvue │ ├── icon │ │ └── icon.nvue │ ├── image │ │ └── image.nvue │ ├── layout │ │ └── layout.nvue │ ├── lazy-load-image │ │ └── lazy-load-image.nvue │ ├── line │ │ └── line.nvue │ ├── link │ │ └── link.nvue │ ├── qrcode │ │ ├── qrcode.nvue │ │ └── uqrcode.plugin.round.es.js │ ├── text │ │ └── text.nvue │ └── transition │ │ └── transition.nvue ├── componentsB │ ├── calendar │ │ └── calendar.nvue │ ├── calendars │ │ └── calendars.nvue │ ├── checkbox │ │ └── checkbox.nvue │ ├── code │ │ └── code.nvue │ ├── datetimePicker │ │ └── datetimePicker.nvue │ ├── dropDown │ │ └── dropDown.nvue │ ├── form │ │ └── form.nvue │ ├── input │ │ └── input.nvue │ ├── keyboard │ │ └── keyboard.nvue │ ├── numberBox │ │ └── numberBox.nvue │ ├── parse │ │ ├── content.js │ │ └── parse.nvue │ ├── pickColor │ │ └── pickColor.nvue │ ├── picker │ │ ├── components │ │ │ └── regions.vue │ │ └── picker.nvue │ ├── radio │ │ └── radio.nvue │ ├── rate │ │ └── rate.nvue │ ├── search │ │ └── search.nvue │ ├── slider │ │ └── slider.nvue │ ├── switch │ │ └── switch.nvue │ ├── textarea │ │ └── textarea.nvue │ └── upload │ │ └── upload.nvue ├── componentsC │ ├── album │ │ └── album.nvue │ ├── alert │ │ └── alert.nvue │ ├── cell │ │ └── cell.nvue │ ├── codeInput │ │ └── codeInput.nvue │ ├── collapse │ │ └── collapse.nvue │ ├── grid │ │ └── grid.nvue │ ├── list │ │ └── list.nvue │ ├── modal │ │ └── modal.nvue │ ├── noNetwork │ │ └── noNetwork.nvue │ ├── noticeBar │ │ └── noticeBar.nvue │ ├── notify │ │ └── notify.nvue │ ├── overlay │ │ └── overlay.nvue │ ├── popup │ │ └── popup.nvue │ ├── readMore │ │ └── readMore.nvue │ ├── scrollList │ │ └── scrollList.nvue │ ├── swipeAction │ │ └── swipeAction.nvue │ ├── swiper │ │ └── swiper.nvue │ ├── toast │ │ └── toast.nvue │ ├── tooltip │ │ └── tooltip.vue │ └── waterfall │ │ └── waterfall.nvue ├── componentsD │ ├── actionSheet │ │ └── actionSheet.nvue │ ├── avatar │ │ └── avatar.nvue │ ├── backtop │ │ └── backtop.nvue │ ├── badge │ │ └── badge.nvue │ ├── countDown │ │ └── countDown.nvue │ ├── countTo │ │ └── countTo.nvue │ ├── empty │ │ └── empty.nvue │ ├── indexList │ │ └── indexList.nvue │ ├── loading-icon │ │ └── loading-icon.nvue │ ├── loading-page │ │ └── loading-page.nvue │ ├── loadmore │ │ └── loadmore.nvue │ ├── navbar │ │ └── navbar.nvue │ ├── progress │ │ └── progress.nvue │ ├── skeleton │ │ └── skeleton.nvue │ ├── skeletons │ │ └── skeletons.nvue │ ├── steps │ │ └── steps.vue │ ├── sticky │ │ └── sticky.nvue │ ├── subsection │ │ └── subsection.nvue │ ├── tabbar │ │ └── tabbar.nvue │ ├── tabs │ │ └── tabs.nvue │ ├── tag │ │ └── tag.nvue │ └── vtabs │ │ ├── all.md │ │ ├── vtabs-0.nvue │ │ ├── vtabs-1.nvue │ │ └── vtabs.nvue ├── demo │ ├── demo.nvue │ └── test.nvue └── index │ ├── components.config.js │ └── index.nvue ├── static ├── 1.jpg ├── 2.jpg ├── 3.jpg ├── favicon.ico ├── iconfont.css ├── iconfont.ttf └── uvui │ ├── common │ ├── favicon.ico │ ├── gray-logo.png │ └── logo.png │ └── example │ ├── component.png │ ├── component_select.png │ ├── js.png │ ├── js_bak.png │ ├── js_select.png │ ├── regions.json │ ├── template.png │ └── template_select.png ├── uni.scss ├── uni_modules ├── uv-action-sheet │ ├── changelog.md │ ├── components │ │ └── uv-action-sheet │ │ │ ├── props.js │ │ │ └── uv-action-sheet.vue │ ├── package.json │ └── readme.md ├── uv-album │ ├── changelog.md │ ├── components │ │ └── uv-album │ │ │ └── uv-album.vue │ ├── package.json │ └── readme.md ├── uv-alert │ ├── changelog.md │ ├── components │ │ └── uv-alert │ │ │ ├── props.js │ │ │ └── uv-alert.vue │ ├── package.json │ └── readme.md ├── uv-avatar │ ├── changelog.md │ ├── components │ │ ├── uv-avatar-group │ │ │ ├── props.js │ │ │ └── uv-avatar-group.vue │ │ └── uv-avatar │ │ │ ├── props.js │ │ │ └── uv-avatar.vue │ ├── package.json │ └── readme.md ├── uv-back-top │ ├── changelog.md │ ├── components │ │ └── uv-back-top │ │ │ ├── props.js │ │ │ └── uv-back-top.vue │ ├── package.json │ └── readme.md ├── uv-badge │ ├── changelog.md │ ├── components │ │ └── uv-badge │ │ │ ├── props.js │ │ │ └── uv-badge.vue │ ├── package.json │ └── readme.md ├── uv-button │ ├── changelog.md │ ├── components │ │ └── uv-button │ │ │ ├── nvue.scss │ │ │ ├── props.js │ │ │ ├── uv-button.vue │ │ │ └── vue.scss │ ├── package.json │ └── readme.md ├── uv-calendar │ ├── changelog.md │ ├── components │ │ └── uv-calendar │ │ │ ├── calendar.js │ │ │ ├── header.vue │ │ │ ├── month.vue │ │ │ ├── props.js │ │ │ └── uv-calendar.vue │ ├── package.json │ └── readme.md ├── uv-calendars │ ├── changelog.md │ ├── components │ │ └── uv-calendars │ │ │ ├── calendar-body.vue │ │ │ ├── calendar-item.vue │ │ │ ├── calendar.js │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── util.js │ │ │ └── uv-calendars.vue │ ├── package.json │ └── readme.md ├── uv-cell │ ├── changelog.md │ ├── components │ │ ├── uv-cell-group │ │ │ ├── props.js │ │ │ └── uv-cell-group.vue │ │ └── uv-cell │ │ │ ├── props.js │ │ │ └── uv-cell.vue │ ├── package.json │ └── readme.md ├── uv-checkbox │ ├── changelog.md │ ├── components │ │ ├── uv-checkbox-group │ │ │ ├── props.js │ │ │ └── uv-checkbox-group.vue │ │ └── uv-checkbox │ │ │ ├── props.js │ │ │ └── uv-checkbox.vue │ ├── package.json │ └── readme.md ├── uv-code-input │ ├── changelog.md │ ├── components │ │ └── uv-code-input │ │ │ ├── props.js │ │ │ └── uv-code-input.vue │ ├── package.json │ └── readme.md ├── uv-code │ ├── changelog.md │ ├── components │ │ └── uv-code │ │ │ ├── props.js │ │ │ └── uv-code.vue │ ├── package.json │ └── readme.md ├── uv-collapse │ ├── changelog.md │ ├── components │ │ ├── uv-collapse-item │ │ │ ├── props.js │ │ │ └── uv-collapse-item.vue │ │ └── uv-collapse │ │ │ ├── props.js │ │ │ └── uv-collapse.vue │ ├── package.json │ └── readme.md ├── uv-count-down │ ├── changelog.md │ ├── components │ │ └── uv-count-down │ │ │ ├── props.js │ │ │ ├── utils.js │ │ │ └── uv-count-down.vue │ ├── package.json │ └── readme.md ├── uv-count-to │ ├── changelog.md │ ├── components │ │ └── uv-count-to │ │ │ ├── props.js │ │ │ └── uv-count-to.vue │ ├── package.json │ └── readme.md ├── uv-datetime-picker │ ├── changelog.md │ ├── components │ │ └── uv-datetime-picker │ │ │ ├── props.js │ │ │ └── uv-datetime-picker.vue │ ├── package.json │ └── readme.md ├── uv-demo │ ├── changelog.md │ ├── components │ │ └── uv-demo │ │ │ └── uv-demo.vue │ ├── package.json │ └── readme.md ├── uv-divider │ ├── changelog.md │ ├── components │ │ └── uv-divider │ │ │ ├── props.js │ │ │ └── uv-divider.vue │ ├── package.json │ └── readme.md ├── uv-drop-down │ ├── changelog.md │ ├── components │ │ ├── uv-drop-down-item │ │ │ └── uv-drop-down-item.vue │ │ ├── uv-drop-down-popup │ │ │ └── uv-drop-down-popup.vue │ │ └── uv-drop-down │ │ │ └── uv-drop-down.vue │ ├── package.json │ └── readme.md ├── uv-empty │ ├── changelog.md │ ├── components │ │ └── uv-empty │ │ │ ├── props.js │ │ │ └── uv-empty.vue │ ├── package.json │ └── readme.md ├── uv-form │ ├── changelog.md │ ├── components │ │ ├── uv-form-item │ │ │ ├── props.js │ │ │ └── uv-form-item.vue │ │ └── uv-form │ │ │ ├── props.js │ │ │ ├── uv-form.vue │ │ │ └── valid.js │ ├── package.json │ └── readme.md ├── uv-gap │ ├── changelog.md │ ├── components │ │ └── uv-gap │ │ │ ├── props.js │ │ │ └── uv-gap.vue │ ├── package.json │ └── readme.md ├── uv-grid │ ├── changelog.md │ ├── components │ │ ├── uv-grid-item │ │ │ ├── props.js │ │ │ └── uv-grid-item.vue │ │ └── uv-grid │ │ │ ├── props.js │ │ │ └── uv-grid.vue │ ├── package.json │ └── readme.md ├── uv-icon │ ├── changelog.md │ ├── components │ │ └── uv-icon │ │ │ ├── icons.js │ │ │ ├── props.js │ │ │ ├── uv-icon.vue │ │ │ └── uvicons.ttf │ ├── package.json │ └── readme.md ├── uv-image │ ├── changelog.md │ ├── components │ │ └── uv-image │ │ │ ├── props.js │ │ │ └── uv-image.vue │ ├── package.json │ └── readme.md ├── uv-index-list │ ├── changelog.md │ ├── components │ │ ├── uv-index-anchor │ │ │ ├── props.js │ │ │ └── uv-index-anchor.vue │ │ ├── uv-index-item │ │ │ └── uv-index-item.vue │ │ └── uv-index-list │ │ │ ├── props.js │ │ │ └── uv-index-list.vue │ ├── package.json │ └── readme.md ├── uv-input │ ├── changelog.md │ ├── components │ │ └── uv-input │ │ │ ├── props.js │ │ │ └── uv-input.vue │ ├── package.json │ └── readme.md ├── uv-keyboard │ ├── changelog.md │ ├── components │ │ ├── uv-keyboard-car │ │ │ ├── props.js │ │ │ └── uv-keyboard-car.vue │ │ ├── uv-keyboard-number │ │ │ ├── props.js │ │ │ └── uv-keyboard-number.vue │ │ └── uv-keyboard │ │ │ ├── props.js │ │ │ └── uv-keyboard.vue │ ├── package.json │ └── readme.md ├── uv-line-progress │ ├── changelog.md │ ├── components │ │ └── uv-line-progress │ │ │ ├── props.js │ │ │ └── uv-line-progress.vue │ ├── package.json │ └── readme.md ├── uv-line │ ├── changelog.md │ ├── components │ │ └── uv-line │ │ │ ├── props.js │ │ │ └── uv-line.vue │ ├── package.json │ └── readme.md ├── uv-link │ ├── changelog.md │ ├── components │ │ └── uv-link │ │ │ ├── props.js │ │ │ └── uv-link.vue │ ├── package.json │ └── readme.md ├── uv-list │ ├── changelog.md │ ├── components │ │ ├── uv-list-item │ │ │ └── uv-list-item.vue │ │ └── uv-list │ │ │ └── uv-list.vue │ ├── package.json │ └── readme.md ├── uv-load-more │ ├── changelog.md │ ├── components │ │ └── uv-load-more │ │ │ ├── props.js │ │ │ └── uv-load-more.vue │ ├── package.json │ └── readme.md ├── uv-loading-icon │ ├── changelog.md │ ├── components │ │ └── uv-loading-icon │ │ │ ├── props.js │ │ │ └── uv-loading-icon.vue │ ├── package.json │ └── readme.md ├── uv-loading-page │ ├── changelog.md │ ├── components │ │ └── uv-loading-page │ │ │ ├── props.js │ │ │ └── uv-loading-page.vue │ ├── package.json │ └── readme.md ├── uv-modal │ ├── changelog.md │ ├── components │ │ └── uv-modal │ │ │ ├── props.js │ │ │ └── uv-modal.vue │ ├── package.json │ └── readme.md ├── uv-navbar │ ├── changelog.md │ ├── components │ │ └── uv-navbar │ │ │ ├── props.js │ │ │ └── uv-navbar.vue │ ├── package.json │ └── readme.md ├── uv-no-network │ ├── changelog.md │ ├── components │ │ └── uv-no-network │ │ │ ├── props.js │ │ │ └── uv-no-network.vue │ ├── package.json │ └── readme.md ├── uv-notice-bar │ ├── changelog.md │ ├── components │ │ ├── uv-column-notice │ │ │ ├── props.js │ │ │ └── uv-column-notice.vue │ │ ├── uv-notice-bar │ │ │ ├── props.js │ │ │ └── uv-notice-bar.vue │ │ └── uv-row-notice │ │ │ ├── props.js │ │ │ └── uv-row-notice.vue │ ├── package.json │ └── readme.md ├── uv-notify │ ├── changelog.md │ ├── components │ │ └── uv-notify │ │ │ ├── props.js │ │ │ └── uv-notify.vue │ ├── package.json │ └── readme.md ├── uv-number-box │ ├── changelog.md │ ├── components │ │ └── uv-number-box │ │ │ ├── props.js │ │ │ └── uv-number-box.vue │ ├── package.json │ └── readme.md ├── uv-overlay │ ├── changelog.md │ ├── components │ │ └── uv-overlay │ │ │ ├── props.js │ │ │ └── uv-overlay.vue │ ├── package.json │ └── readme.md ├── uv-parse │ ├── changelog.md │ ├── components │ │ └── uv-parse │ │ │ ├── node │ │ │ └── node.vue │ │ │ ├── parser.js │ │ │ └── uv-parse.vue │ ├── package.json │ ├── readme.md │ └── static │ │ └── app-plus │ │ └── uv-parse │ │ ├── js │ │ ├── handler.js │ │ └── uni.webview.min.js │ │ └── local.html ├── uv-pick-color │ ├── changelog.md │ ├── components │ │ └── uv-pick-color │ │ │ ├── colors.js │ │ │ ├── props.js │ │ │ └── uv-pick-color.vue │ ├── package.json │ └── readme.md ├── uv-picker │ ├── changelog.md │ ├── components │ │ └── uv-picker │ │ │ ├── props.js │ │ │ └── uv-picker.vue │ ├── package.json │ └── readme.md ├── uv-popup │ ├── changelog.md │ ├── components │ │ └── uv-popup │ │ │ ├── keypress.js │ │ │ └── uv-popup.vue │ ├── package.json │ └── readme.md ├── uv-qrcode │ ├── changelog.md │ ├── components │ │ └── uv-qrcode │ │ │ ├── cache.js │ │ │ ├── gcanvas │ │ │ ├── bridge │ │ │ │ └── bridge-weex.js │ │ │ ├── context-2d │ │ │ │ ├── FillStyleLinearGradient.js │ │ │ │ ├── FillStylePattern.js │ │ │ │ ├── FillStyleRadialGradient.js │ │ │ │ └── RenderingContext.js │ │ │ ├── context-webgl │ │ │ │ ├── ActiveInfo.js │ │ │ │ ├── Buffer.js │ │ │ │ ├── Framebuffer.js │ │ │ │ ├── GLenum.js │ │ │ │ ├── GLmethod.js │ │ │ │ ├── GLtype.js │ │ │ │ ├── Program.js │ │ │ │ ├── Renderbuffer.js │ │ │ │ ├── RenderingContext.js │ │ │ │ ├── Shader.js │ │ │ │ ├── ShaderPrecisionFormat.js │ │ │ │ ├── Texture.js │ │ │ │ ├── UniformLocation.js │ │ │ │ └── classUtils.js │ │ │ ├── env │ │ │ │ ├── canvas.js │ │ │ │ ├── image.js │ │ │ │ └── tool.js │ │ │ └── index.js │ │ │ ├── props.js │ │ │ ├── qrcode.js │ │ │ ├── queue.js │ │ │ └── uv-qrcode.vue │ ├── package.json │ └── readme.md ├── uv-radio │ ├── changelog.md │ ├── components │ │ ├── uv-radio-group │ │ │ ├── props.js │ │ │ └── uv-radio-group.vue │ │ └── uv-radio │ │ │ ├── props.js │ │ │ └── uv-radio.vue │ ├── package.json │ └── readme.md ├── uv-rate │ ├── changelog.md │ ├── components │ │ └── uv-rate │ │ │ ├── props.js │ │ │ └── uv-rate.vue │ ├── package.json │ └── readme.md ├── uv-read-more │ ├── changelog.md │ ├── components │ │ └── uv-read-more │ │ │ ├── props.js │ │ │ └── uv-read-more.vue │ ├── package.json │ └── readme.md ├── uv-row │ ├── changelog.md │ ├── components │ │ ├── uv-col │ │ │ ├── props.js │ │ │ └── uv-col.vue │ │ └── uv-row │ │ │ ├── props.js │ │ │ └── uv-row.vue │ ├── package.json │ └── readme.md ├── uv-safe-bottom │ ├── changelog.md │ ├── components │ │ └── uv-safe-bottom │ │ │ └── uv-safe-bottom.vue │ ├── package.json │ └── readme.md ├── uv-scroll-list │ ├── changelog.md │ ├── components │ │ └── uv-scroll-list │ │ │ ├── nvue.js │ │ │ ├── props.js │ │ │ ├── scrollWxs.wxs │ │ │ └── uv-scroll-list.vue │ ├── package.json │ └── readme.md ├── uv-search │ ├── changelog.md │ ├── components │ │ └── uv-search │ │ │ ├── props.js │ │ │ └── uv-search.vue │ ├── package.json │ └── readme.md ├── uv-skeleton │ ├── changelog.md │ ├── components │ │ └── uv-skeleton │ │ │ ├── props.js │ │ │ └── uv-skeleton.vue │ ├── package.json │ └── readme.md ├── uv-skeletons │ ├── changelog.md │ ├── components │ │ └── uv-skeletons │ │ │ └── uv-skeletons.vue │ ├── package.json │ └── readme.md ├── uv-slider │ ├── changelog.md │ ├── components │ │ └── uv-slider │ │ │ ├── props.js │ │ │ └── uv-slider.vue │ ├── package.json │ └── readme.md ├── uv-status-bar │ ├── changelog.md │ ├── components │ │ └── uv-status-bar │ │ │ ├── props.js │ │ │ └── uv-status-bar.vue │ ├── package.json │ └── readme.md ├── uv-steps │ ├── changelog.md │ ├── components │ │ ├── uv-steps-item │ │ │ ├── props.js │ │ │ └── uv-steps-item.vue │ │ └── uv-steps │ │ │ ├── props.js │ │ │ └── uv-steps.vue │ ├── package.json │ └── readme.md ├── uv-sticky │ ├── changelog.md │ ├── components │ │ └── uv-sticky │ │ │ ├── props.js │ │ │ └── uv-sticky.vue │ ├── package.json │ └── readme.md ├── uv-subsection │ ├── changelog.md │ ├── components │ │ └── uv-subsection │ │ │ ├── props.js │ │ │ └── uv-subsection.vue │ ├── package.json │ └── readme.md ├── uv-swipe-action │ ├── changelog.md │ ├── components │ │ ├── uv-swipe-action-item │ │ │ ├── index - backup.wxs │ │ │ ├── index.wxs │ │ │ ├── nvue - backup.js │ │ │ ├── nvue.js │ │ │ ├── props.js │ │ │ ├── uv-swipe-action-item.vue │ │ │ └── wxs.js │ │ └── uv-swipe-action │ │ │ ├── props.js │ │ │ └── uv-swipe-action.vue │ ├── package.json │ └── readme.md ├── uv-swiper │ ├── changelog.md │ ├── components │ │ ├── uv-swiper-indicator │ │ │ ├── props.js │ │ │ └── uv-swiper-indicator.vue │ │ └── uv-swiper │ │ │ ├── props.js │ │ │ └── uv-swiper.vue │ ├── package.json │ └── readme.md ├── uv-switch │ ├── changelog.md │ ├── components │ │ └── uv-switch │ │ │ ├── props.js │ │ │ └── uv-switch.vue │ ├── package.json │ └── readme.md ├── uv-tabbar │ ├── changelog.md │ ├── components │ │ ├── uv-tabbar-item │ │ │ ├── props.js │ │ │ └── uv-tabbar-item.vue │ │ └── uv-tabbar │ │ │ ├── props.js │ │ │ └── uv-tabbar.vue │ ├── package.json │ └── readme.md ├── uv-tabs │ ├── changelog.md │ ├── components │ │ └── uv-tabs │ │ │ ├── props.js │ │ │ └── uv-tabs.vue │ ├── package.json │ └── readme.md ├── uv-tags │ ├── changelog.md │ ├── components │ │ └── uv-tags │ │ │ ├── props.js │ │ │ └── uv-tags.vue │ ├── package.json │ └── readme.md ├── uv-text │ ├── changelog.md │ ├── components │ │ └── uv-text │ │ │ ├── props.js │ │ │ ├── uv-text.vue │ │ │ └── value.js │ ├── package.json │ └── readme.md ├── uv-textarea │ ├── changelog.md │ ├── components │ │ └── uv-textarea │ │ │ ├── props.js │ │ │ └── uv-textarea.vue │ ├── package.json │ └── readme.md ├── uv-toast │ ├── changelog.md │ ├── components │ │ └── uv-toast │ │ │ └── uv-toast.vue │ ├── package.json │ └── readme.md ├── uv-toolbar │ ├── changelog.md │ ├── components │ │ └── uv-toolbar │ │ │ ├── props.js │ │ │ └── uv-toolbar.vue │ ├── package.json │ └── readme.md ├── uv-tooltip │ ├── changelog.md │ ├── components │ │ └── uv-tooltip │ │ │ ├── props.js │ │ │ └── uv-tooltip.vue │ ├── package.json │ └── readme.md ├── uv-transition │ ├── changelog.md │ ├── components │ │ └── uv-transition │ │ │ ├── createAnimation.js │ │ │ ├── props.js │ │ │ └── uv-transition.vue │ ├── package.json │ └── readme.md ├── uv-ui-tools │ ├── changelog.md │ ├── components │ │ └── uv-ui-tools │ │ │ └── uv-ui-tools.vue │ ├── index.js │ ├── index.scss │ ├── libs │ │ ├── config │ │ │ └── config.js │ │ ├── css │ │ │ ├── color.scss │ │ │ ├── common.scss │ │ │ ├── components.scss │ │ │ ├── variable.scss │ │ │ └── vue.scss │ │ ├── function │ │ │ ├── colorGradient.js │ │ │ ├── debounce.js │ │ │ ├── digit.js │ │ │ ├── index.js │ │ │ ├── platform.js │ │ │ ├── test.js │ │ │ └── throttle.js │ │ ├── luch-request │ │ │ ├── adapters │ │ │ │ └── index.js │ │ │ ├── core │ │ │ │ ├── InterceptorManager.js │ │ │ │ ├── Request.js │ │ │ │ ├── buildFullPath.js │ │ │ │ ├── defaults.js │ │ │ │ ├── dispatchRequest.js │ │ │ │ ├── mergeConfig.js │ │ │ │ └── settle.js │ │ │ ├── helpers │ │ │ │ ├── buildURL.js │ │ │ │ ├── combineURLs.js │ │ │ │ └── isAbsoluteURL.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── utils.js │ │ │ └── utils │ │ │ │ └── clone.js │ │ ├── mixin │ │ │ ├── button.js │ │ │ ├── mixin.js │ │ │ ├── mpMixin.js │ │ │ ├── mpShare.js │ │ │ ├── openType.js │ │ │ └── touch.js │ │ └── util │ │ │ ├── dayjs.js │ │ │ └── route.js │ ├── package.json │ ├── readme.md │ └── theme.scss ├── uv-ui │ ├── changelog.md │ ├── components │ │ └── uv-ui │ │ │ └── uv-ui.vue │ ├── package.json │ └── readme.md ├── uv-upload │ ├── changelog.md │ ├── components │ │ ├── uv-preview-video │ │ │ └── uv-preview-video.vue │ │ └── uv-upload │ │ │ ├── mixin.js │ │ │ ├── props.js │ │ │ ├── utils.js │ │ │ └── uv-upload.vue │ ├── package.json │ └── readme.md ├── uv-vtabs │ ├── changelog.md │ ├── components │ │ ├── uv-vtabs-item │ │ │ └── uv-vtabs-item.vue │ │ └── uv-vtabs │ │ │ ├── props.js │ │ │ └── uv-vtabs.vue │ ├── package.json │ └── readme.md └── uv-waterfall │ ├── changelog.md │ ├── components │ └── uv-waterfall │ │ ├── props.js │ │ └── uv-waterfall.vue │ ├── package.json │ └── readme.md ├── unpackage └── res │ └── icons │ ├── 1024x1024.png │ ├── 120x120.png │ ├── 144x144.png │ ├── 152x152.png │ ├── 167x167.png │ ├── 180x180.png │ ├── 192x192.png │ ├── 20x20.png │ ├── 29x29.png │ ├── 40x40.png │ ├── 58x58.png │ ├── 60x60.png │ ├── 72x72.png │ ├── 76x76.png │ ├── 80x80.png │ ├── 87x87.png │ └── 96x96.png └── util └── request ├── index.js ├── requestInterceptors.js └── responseInterceptors.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .hbuilderx 3 | unpackage/debug 4 | unpackage/dist 5 | unpackage/release 6 | unpackage/cache 7 | !unpackage/res 8 | **/node_modules -------------------------------------------------------------------------------- /App.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 www.uvui.cn 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /common/api.js: -------------------------------------------------------------------------------- 1 | // 获取菜单 2 | export const fetchMenu = (params, config = {}) => uni.$uv.http.get('/applet/index/getRecommendDocs', params, config) 3 | -------------------------------------------------------------------------------- /common/config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | baseUrl: 'https://api.book118.com' 3 | } -------------------------------------------------------------------------------- /common/demo.scss: -------------------------------------------------------------------------------- 1 | 2 | @mixin flex($direction: row) { 3 | /* #ifndef APP-NVUE */ 4 | display: flex; 5 | /* #endif */ 6 | flex-direction: $direction; 7 | } 8 | .uv-block{ 9 | padding: 14px; 10 | &__section{ 11 | margin-bottom:10px; 12 | } 13 | &__title { 14 | margin-top:10px; 15 | font-size: 15px; 16 | @if variable-exists(uv-content-color) { 17 | color: $uv-content-color; 18 | }@else { 19 | color: #606266; 20 | } 21 | margin-bottom:10px; 22 | } 23 | &__flex{ 24 | /* #ifndef APP-NVUE */ 25 | display: flex; 26 | /* #endif */ 27 | } 28 | } 29 | 30 | // 使用了cell组件的icon图片样式 31 | .uv-cell-icon { 32 | width: 36rpx; 33 | height: 36rpx; 34 | margin-right: 8rpx; 35 | } 36 | 37 | .uv-page { 38 | padding: 15px 15px 40px 15px; 39 | } 40 | 41 | .uv-demo-block { 42 | // #ifndef APP-NVUE 43 | flex: 1; 44 | // #endif 45 | margin-bottom: 23px; 46 | 47 | &__content { 48 | @include flex(column); 49 | } 50 | 51 | &__title { 52 | font-size: 14px; 53 | color: rgb(143, 156, 162); 54 | margin-bottom: 8px; 55 | @include flex; 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | import App from './App' 2 | import uvUI from '@/uni_modules/uv-ui-tools' 3 | import { Request } from '@/util/request/index' 4 | // uni.$uv.setConfig({ 5 | // config: { 6 | // // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx' 7 | // unit: 'px' 8 | // }, 9 | // props: { 10 | // text: { 11 | // color: { 12 | // default: 'red' 13 | // } 14 | // } 15 | // } 16 | // }) 17 | // #ifndef VUE3 18 | import Vue from 'vue' 19 | Vue.config.productionTip = false 20 | App.mpType = 'app' 21 | // Vue.use(uvUI,{mpShare:true}); 22 | try { 23 | function isPromise(obj) { 24 | return (!!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function"); 25 | } 26 | // 统一 vue2 API Promise 化返回格式与 vue3 保持一致 27 | uni.addInterceptor({ 28 | returnValue(res) { 29 | if (!isPromise(res)) { 30 | return res; 31 | } 32 | return new Promise((resolve, reject) => { 33 | res.then((res) => { 34 | if (res[0]) { 35 | reject(res[0]); 36 | } else { 37 | resolve(res[1]); 38 | } 39 | }); 40 | }); 41 | }, 42 | }); 43 | } catch (error) {} 44 | const app = new Vue({ 45 | ...App 46 | }) 47 | app.$mount() 48 | // 引入请求封装 49 | // Request(app) 50 | // #endif 51 | // #ifdef VUE3 52 | import { createSSRApp } from 'vue' 53 | export function createApp() { 54 | const app = createSSRApp(App) 55 | // 引入请求封装 56 | Request(app) 57 | // app.use(uvUI,{mpShare:true}) 58 | return { 59 | app 60 | } 61 | } 62 | // #endif -------------------------------------------------------------------------------- /pages/componentsA/gap/gap.nvue: -------------------------------------------------------------------------------- 1 | 33 | 34 | 39 | 40 | 43 | -------------------------------------------------------------------------------- /pages/componentsB/parse/parse.nvue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 55 | 56 | 65 | -------------------------------------------------------------------------------- /pages/componentsD/sticky/sticky.nvue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 44 | 45 | 50 | -------------------------------------------------------------------------------- /pages/componentsD/vtabs/vtabs.nvue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 49 | 50 | -------------------------------------------------------------------------------- /pages/demo/demo.nvue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /pages/demo/test.nvue: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /static/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/1.jpg -------------------------------------------------------------------------------- /static/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/2.jpg -------------------------------------------------------------------------------- /static/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/3.jpg -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/favicon.ico -------------------------------------------------------------------------------- /static/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/iconfont.ttf -------------------------------------------------------------------------------- /static/uvui/common/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/common/favicon.ico -------------------------------------------------------------------------------- /static/uvui/common/gray-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/common/gray-logo.png -------------------------------------------------------------------------------- /static/uvui/common/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/common/logo.png -------------------------------------------------------------------------------- /static/uvui/example/component.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/component.png -------------------------------------------------------------------------------- /static/uvui/example/component_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/component_select.png -------------------------------------------------------------------------------- /static/uvui/example/js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/js.png -------------------------------------------------------------------------------- /static/uvui/example/js_bak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/js_bak.png -------------------------------------------------------------------------------- /static/uvui/example/js_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/js_select.png -------------------------------------------------------------------------------- /static/uvui/example/template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/template.png -------------------------------------------------------------------------------- /static/uvui/example/template_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/static/uvui/example/template_select.png -------------------------------------------------------------------------------- /uni.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * 下方引入的为uvUI的集成样式文件,为scss预处理器,其中包含了一些"uv-"开头的自定义变量 3 | * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可 4 | * uvUI自定义的css类名和scss变量,均以"uv-"开头,不会造成冲突,请放心使用 5 | * @import '@/uni_modules/uv-ui-tools/theme.scss'; 6 | */ 7 | -------------------------------------------------------------------------------- /uni_modules/uv-action-sheet/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-07-02) 2 | uv-action-sheet 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/actionSheet.html 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-action-sheet 底部操作菜单 8 | -------------------------------------------------------------------------------- /uni_modules/uv-action-sheet/components/uv-action-sheet/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 标题,有值则显示,同时会显示关闭按钮 4 | title: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 选项上方的描述信息 9 | description: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 数据 14 | actions: { 15 | type: Array, 16 | default: () => [] 17 | }, 18 | // 取消按钮的文字,不为空时显示按钮 19 | cancelText: { 20 | type: String, 21 | default: '' 22 | }, 23 | // 点击某个菜单项时是否关闭弹窗 24 | closeOnClickAction: { 25 | type: Boolean, 26 | default: true 27 | }, 28 | // 处理底部安全区(默认true) 29 | safeAreaInsetBottom: { 30 | type: Boolean, 31 | default: true 32 | }, 33 | // 小程序的打开方式 34 | openType: { 35 | type: String, 36 | default: '' 37 | }, 38 | // 点击遮罩是否允许关闭 (默认true) 39 | closeOnClickOverlay: { 40 | type: Boolean, 41 | default: true 42 | }, 43 | // 圆角值 44 | round: { 45 | type: [Boolean, String, Number], 46 | default: 0 47 | }, 48 | ...uni.$uv?.props?.actionSheet 49 | } 50 | } -------------------------------------------------------------------------------- /uni_modules/uv-action-sheet/readme.md: -------------------------------------------------------------------------------- 1 | ## ActionSheet 操作菜单 2 | 3 | > **组件名:uv-action-sheet** 4 | 5 | 本组件用于从底部弹出一个操作菜单,供用户选择并返回结果。 6 | 7 | 本组件功能类似于uni的uni.showActionSheet API,配置更加灵活,所有平台都表现一致。 8 | 9 | ### 查看文档 10 | 11 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 14 | -------------------------------------------------------------------------------- /uni_modules/uv-album/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-12-06) 2 | 1. 阻止事件冒泡处理 3 | ## 1.0.3(2023-10-23) 4 | 1. 修复报错的BUG 5 | ## 1.0.2(2023-10-23) 6 | 1. 修复设置singleSize、multipleSize、space等值带单位,存在不显示的BUG 7 | ## 1.0.1(2023-09-13) 8 | 1. 添加依赖 9 | ## 1.0.0(2023-08-30) 10 | 1. 新增uv-album相册组件 11 | -------------------------------------------------------------------------------- /uni_modules/uv-album/readme.md: -------------------------------------------------------------------------------- 1 | # Album 相册 2 | 3 | > **组件名:uv-album** 4 | 5 | 本组件提供一个类似相册的功能,让开发者开发起来更加得心应手。 6 | 7 | 功能齐全,灵活配置可以,开箱即用。减少重复的模板代码。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-alert/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-06-01) 2 | 1. 修复点击触发两次实践的BUG 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-alert 警告提示组件 8 | -------------------------------------------------------------------------------- /uni_modules/uv-alert/components/uv-alert/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 显示文字 4 | title: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 主题,success/warning/info/error 9 | type: { 10 | type: String, 11 | default: 'warning' 12 | }, 13 | // 辅助性文字 14 | description: { 15 | type: String, 16 | default: '' 17 | }, 18 | // 是否可关闭 19 | closable: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | // 是否显示图标 24 | showIcon: { 25 | type: Boolean, 26 | default: false 27 | }, 28 | // 浅或深色调,light-浅色,dark-深色 29 | effect: { 30 | type: String, 31 | default: 'light' 32 | }, 33 | // 文字是否居中 34 | center: { 35 | type: Boolean, 36 | default: false 37 | }, 38 | // 字体大小 39 | fontSize: { 40 | type: [String, Number], 41 | default: 14 42 | }, 43 | ...uni.$uv?.props?.alert 44 | } 45 | } -------------------------------------------------------------------------------- /uni_modules/uv-alert/readme.md: -------------------------------------------------------------------------------- 1 | ## Alert 警告提示 2 | 3 | > **组件名:uv-alert** 4 | 5 | 警告提示,展现需要关注的信息。 6 | 7 | 当某个页面需要向用户显示警告的信息时。 8 | 9 | 非浮层的静态展现形式,始终展现,不会自动消失,用户可以点击关闭。 10 | 11 | ### 查看文档 12 | 13 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 16 | -------------------------------------------------------------------------------- /uni_modules/uv-avatar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-12-06) 2 | 1. 优化 3 | ## 1.0.4(2023-12-06) 4 | 1. 优化 5 | ## 1.0.3(2023-12-06) 6 | 1. 阻止事件冒泡处理,单个头像模式 7 | ## 1.0.2(2023-12-06) 8 | 1. 阻止事件冒泡处理 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-avatar 头像组件 14 | -------------------------------------------------------------------------------- /uni_modules/uv-avatar/components/uv-avatar-group/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 头像图片组 4 | urls: { 5 | type: Array, 6 | default: () => [] 7 | }, 8 | // 最多展示的头像数量 9 | maxCount: { 10 | type: [String, Number], 11 | default: 5 12 | }, 13 | // 头像形状 14 | shape: { 15 | type: String, 16 | default: 'circle' 17 | }, 18 | // 图片裁剪模式 19 | mode: { 20 | type: String, 21 | default: 'scaleToFill' 22 | }, 23 | // 超出maxCount时是否显示查看更多的提示 24 | showMore: { 25 | type: Boolean, 26 | default: true 27 | }, 28 | // 头像大小 29 | size: { 30 | type: [String, Number], 31 | default: 40 32 | }, 33 | // 指定从数组的对象元素中读取哪个属性作为图片地址 34 | keyName: { 35 | type: String, 36 | default: '' 37 | }, 38 | // 头像之间的遮挡比例 39 | gap: { 40 | type: [String, Number], 41 | validator(value) { 42 | return value >= 0 && value <= 1 43 | }, 44 | default: 0.5 45 | }, 46 | // 需额外显示的值 47 | extraValue: { 48 | type: [Number, String], 49 | default: 0 50 | }, 51 | ...uni.$uv?.props?.avatarGroup 52 | } 53 | } -------------------------------------------------------------------------------- /uni_modules/uv-avatar/readme.md: -------------------------------------------------------------------------------- 1 | ## Avatar 头像 2 | 3 | > **组件名:uv-avatar** 4 | 5 | 本组件一般用于展示头像的地方,如个人中心,或者评论列表页的用户头像展示等场所。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-back-top/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-07-03) 2 | 1. 优化插槽自定义内容部分 3 | 2. 增加backToTop方法说明 4 | ## 1.0.1(2023-05-16) 5 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 6 | 2. 优化部分功能 7 | ## 1.0.0(2023-05-10) 8 | uv-back-top 返回顶部 9 | -------------------------------------------------------------------------------- /uni_modules/uv-back-top/components/uv-back-top/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 返回顶部的形状,circle-圆形,square-方形 4 | mode: { 5 | type: String, 6 | default: 'circle' 7 | }, 8 | // 自定义图标 9 | icon: { 10 | type: String, 11 | default: 'arrow-upward' 12 | }, 13 | // 提示文字 14 | text: { 15 | type: String, 16 | default: '' 17 | }, 18 | // 返回顶部滚动时间 19 | duration: { 20 | type: [String, Number], 21 | default: 100 22 | }, 23 | // 滚动距离 24 | scrollTop: { 25 | type: [String, Number], 26 | default: 0 27 | }, 28 | // 距离顶部多少距离显示,单位px 29 | top: { 30 | type: [String, Number], 31 | default: 400 32 | }, 33 | // 返回顶部按钮到底部的距离,单位px 34 | bottom: { 35 | type: [String, Number], 36 | default: 100 37 | }, 38 | // 返回顶部按钮到右边的距离,单位px 39 | right: { 40 | type: [String, Number], 41 | default: 20 42 | }, 43 | // 层级 44 | zIndex: { 45 | type: [String, Number], 46 | default: 9 47 | }, 48 | // 图标的样式,对象形式 49 | iconStyle: { 50 | type: Object, 51 | default: () => ({ 52 | color: '#909399', 53 | fontSize: '19px' 54 | }) 55 | }, 56 | ...uni.$uv?.props?.backtop 57 | } 58 | } -------------------------------------------------------------------------------- /uni_modules/uv-back-top/readme.md: -------------------------------------------------------------------------------- 1 | ## BackTop 返回顶部 2 | 3 | > **组件名:uv-back-top** 4 | 5 | 该组件一个用于长页面,滑动一定距离后,出现返回顶部按钮,方便快速返回顶部的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-badge/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-06-04) 2 | 1. 修复type等属性为null的时候不显示徽标的BUG 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-badge 徽标数,数字角标 8 | -------------------------------------------------------------------------------- /uni_modules/uv-badge/readme.md: -------------------------------------------------------------------------------- 1 | ## Badge 徽标数 2 | 3 | > **组件名:uv-badge** 4 | 5 | 该组件一般用于图标右上角显示未读的消息数量,提示用户点击,有圆点和圆包含文字两种形式。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-button/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.15(2023-12-20) 2 | 1. 优化 3 | ## 1.0.14(2023-12-06) 4 | 1. 优化 5 | ## 1.0.13(2023-12-06) 6 | 1. 阻止事件冒泡处理 7 | ## 1.0.12(2023-10-19) 8 | 1. 增加后置插槽 9 | ## 1.0.11(2023-09-21) 10 | 1. 修复通过customStyle修改按钮宽度,组件中最外层节点不改变的问题 11 | ## 1.0.10(2023-09-15) 12 | 1. 按钮支持open-type="agreePrivacyAuthorization" 13 | ## 1.0.9(2023-09-11) 14 | 1. 增加参数iconSize,用于控制图标的大小 15 | ## 1.0.8(2023-09-10) 16 | 1. 修复多个按钮在一行宽度不正常的BUG 17 | ## 1.0.7(2023-09-07) 18 | 1. 修复warning颜色对应错误的BUG 19 | ## 1.0.6(2023-07-25) 20 | 1. 增加customTextStyle属性,方便自定义文字样式 21 | ## 1.0.5(2023-07-20) 22 | 1. 解决微信小程序动态设置hover-class点击态不消失的BUG 23 | ## 1.0.4(2023-06-29) 24 | 1. 修改上次更新出现nvue报错异常 25 | ## 1.0.3(2023-06-28) 26 | 修复:设置open-type="chooseAvatar"等值不生效的BUG 27 | ## 1.0.2(2023-06-01) 28 | 1. 修复按钮点击触发两次的BUG 29 | ## 1.0.1(2023-05-16) 30 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 31 | 2. 优化部分功能 32 | ## 1.0.0(2023-05-10) 33 | uv-button 按钮 34 | -------------------------------------------------------------------------------- /uni_modules/uv-button/components/uv-button/nvue.scss: -------------------------------------------------------------------------------- 1 | $uv-button-active-opacity:0.75 !default; 2 | $uv-button-loading-text-margin-left:4px !default; 3 | $uv-button-text-color: #FFFFFF !default; 4 | $uv-button-text-plain-error-color:$uv-error !default; 5 | $uv-button-text-plain-warning-color:$uv-warning !default; 6 | $uv-button-text-plain-success-color:$uv-success !default; 7 | $uv-button-text-plain-info-color:$uv-info !default; 8 | $uv-button-text-plain-primary-color:$uv-primary !default; 9 | .uv-button { 10 | &--active { 11 | opacity: $uv-button-active-opacity; 12 | } 13 | 14 | &--active--plain { 15 | background-color: rgb(217, 217, 217); 16 | } 17 | 18 | &__loading-text { 19 | margin-left:$uv-button-loading-text-margin-left; 20 | } 21 | 22 | &__text, 23 | &__loading-text { 24 | color:$uv-button-text-color; 25 | } 26 | 27 | &__text--plain--error { 28 | color:$uv-button-text-plain-error-color; 29 | } 30 | 31 | &__text--plain--warning { 32 | color:$uv-button-text-plain-warning-color; 33 | } 34 | 35 | &__text--plain--success{ 36 | color:$uv-button-text-plain-success-color; 37 | } 38 | 39 | &__text--plain--info { 40 | color:$uv-button-text-plain-info-color; 41 | } 42 | 43 | &__text--plain--primary { 44 | color:$uv-button-text-plain-primary-color; 45 | } 46 | } -------------------------------------------------------------------------------- /uni_modules/uv-button/readme.md: -------------------------------------------------------------------------------- 1 | ## Button 按钮 2 | 3 | > **组件名:uv-button** 4 | 5 | 该组件内部实现以`uni-app`的`button`组件为基础,进行二次封装,灵活配置,功能齐全,兼容全端。灵活配置,内置状态设置,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-calendar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.6(2023-11-03) 2 | 1. **该版本不再维护**,推荐使用新版本[https://ext.dcloud.net.cn/plugin?name=uv-calendars](https://ext.dcloud.net.cn/plugin?name=uv-calendars) 3 | ## 1.0.5(2023-07-02) 4 | uv-calendar 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/calendar.html 5 | ## 1.0.4(2023-06-15) 6 | 1. formatter格式化中增加topInfo参数 7 | ## 1.0.3(2023-06-08) 8 | 1. 增加点击日期change回调 9 | 2. 优化 10 | ## 1.0.2(2023-06-05) 11 | 1. 修改多个时间选择的时候存在反选的BUG 12 | ## 1.0.1(2023-05-16) 13 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 14 | 2. 优化部分功能 15 | ## 1.0.0(2023-05-10) 16 | uv-calendar 日历 17 | -------------------------------------------------------------------------------- /uni_modules/uv-calendar/readme.md: -------------------------------------------------------------------------------- 1 | ## Calendar 日历 2 | 3 | > **组件名:uv-calendar** 4 | 5 | 此组件用于单个选择日期,范围选择日期等,日历被包裹在底部弹起的容器中。灵活配置,功能齐全,兼容全端。 6 | 7 | ## 温馨提示:该组件不再更新,强烈推荐使用最新版日历组件:[https://www.uvui.cn/components/calendars.html](https://www.uvui.cn/components/calendars.html)。基于 `uv-ui` 插件市场首款多功能日历组件,不仅可以查看、选择日期,还可以选择任意范围内的日期、打点操作、自定义主题颜色、自定义文案、农历显示等。追求的就是完美。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-calendars/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.15(2023-11-08) 2 | 1. 增加readonly属性,是否为只读状态,只读状态下禁止选择日期 3 | ## 1.0.14(2023-10-12) 4 | 1. 修复selected没有设置了info或者info设置为空字符串后,文本则无法恢复BUG 5 | ## 1.0.13(2023-09-19) 6 | 1. 修复range模式下,selected设置了info后选中后,导致文本不恢复的问题 7 | 2. 修复multiple模式下,selected自定义信息的颜色没变,依然是白色 8 | ## 1.0.12(2023-09-14) 9 | 1. 优化 10 | ## 1.0.11(2023-09-14) 11 | 1. 增加allowSameDay参数,是否允许日期范围的起止时间为同一天,mode = range时有效 12 | 2. 修复在vue2+小程序渲染时闪烁的问题 13 | ## 1.0.10(2023-09-07) 14 | 1. 修复国际化失效的BUG 15 | ## 1.0.9(2023-09-01) 16 | 1. 修复在pages.json中设置easycom会报错的BUG 17 | ## 1.0.8(2023-08-29) 18 | 1. 修复mainjs中设置setConfig修改属性不生效的问题,出自评论区:https://ext.dcloud.net.cn/plugin?id=12287 19 | ## 1.0.7(2023-08-26) 20 | 1. 去除range参数,由mode="range"替换 21 | 2. 新增mode参数,不传 / multiple / range,分别为单日期, 多个日期,选择日期范围 22 | 3. 与uv-calendar选择日期的功能保持一致 23 | ## 1.0.6(2023-08-25) 24 | 1. 修复点击返回今天按钮时,monthSwitch方法回调参数返回月份不是当天对应月份:https://github.com/climblee/uv-ui/issues/7 25 | ## 1.0.5(2023-08-13) 26 | 1. 修复选择月份弹窗层级的问题 27 | ## 1.0.4(2023-08-06) 28 | 1. 优化 29 | ## 1.0.3(2023-08-06) 30 | 1. 修复高度不对的BUG 31 | 2. 修复文案在小屏幕的BUG 32 | ## 1.0.2(2023-08-05) 33 | 1. 增加startText参数 34 | 2. 增加endText参数 35 | 3. 增加selected中的参数 36 | 4. 优化日历范围选择 37 | ## 1.0.1(2023-08-04) 38 | 1. 修复 自定义主题时 颜色错误的BUG 39 | ## 1.0.0(2023-08-03) 40 | 1. 新增 uv-calendars 新版日历发布 41 | -------------------------------------------------------------------------------- /uni_modules/uv-calendars/components/uv-calendars/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uv-calender.ok": "ok", 3 | "uv-calender.cancel": "cancel", 4 | "uv-calender.today": "today", 5 | "uv-calender.MON": "MON", 6 | "uv-calender.TUE": "TUE", 7 | "uv-calender.WED": "WED", 8 | "uv-calender.THU": "THU", 9 | "uv-calender.FRI": "FRI", 10 | "uv-calender.SAT": "SAT", 11 | "uv-calender.SUN": "SUN" 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uv-calendars/components/uv-calendars/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uv-calendars/components/uv-calendars/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uv-calender.ok": "确定", 3 | "uv-calender.cancel": "取消", 4 | "uv-calender.today": "今日", 5 | "uv-calender.SUN": "日", 6 | "uv-calender.MON": "一", 7 | "uv-calender.TUE": "二", 8 | "uv-calender.WED": "三", 9 | "uv-calender.THU": "四", 10 | "uv-calender.FRI": "五", 11 | "uv-calender.SAT": "六" 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uv-calendars/components/uv-calendars/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uv-calender.ok": "確定", 3 | "uv-calender.cancel": "取消", 4 | "uv-calender.today": "今日", 5 | "uv-calender.SUN": "日", 6 | "uv-calender.MON": "一", 7 | "uv-calender.TUE": "二", 8 | "uv-calender.WED": "三", 9 | "uv-calender.THU": "四", 10 | "uv-calender.FRI": "五", 11 | "uv-calender.SAT": "六" 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uv-calendars/readme.md: -------------------------------------------------------------------------------- 1 | ## Calendars 全新日历 2 | 3 | > **组件名:uv-calendars** 4 | 5 | 为了解决老版本`uv-calendar`性能问题,特别是对日期选择范围有很大限制,体验不友好等缺点。于是有了新版日历组件。 6 | 7 | 新版本`uv-calendars`,不仅拥有老版本的所有功能,还增加了更加适用的插入页面等强大功能,且更加简洁。查看日期、选择单个或多个或任意范围日期,打点操作,自定义文案,自定义主题等强大功能。 8 | 9 | 常用场景:酒店日期预订、火车机票选择购买日期、上下班打卡等。 10 | 11 | # 查看文档 12 | 13 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 14 | 15 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 16 | 17 | 18 | 19 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 20 | 21 | 22 | 23 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-cell/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-12-06) 2 | 1. 修复uv-cell right-icon插槽编译到APP端不显示的BUG,问题来源:https://gitee.com/climblee/uv-ui/issues/I8LXZI 3 | ## 1.0.4(2023-09-19) 4 | 1. 增加cellStyle参数,方便自定义单元格的样式 5 | ## 1.0.3(2023-07-03) 6 | 去除插槽判断,避免某些平台不显示的BUG 7 | ## 1.0.2(2023-06-21) 8 | 1. 优化 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-cell 单元格 14 | -------------------------------------------------------------------------------- /uni_modules/uv-cell/components/uv-cell-group/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 分组标题 4 | title: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 是否显示外边框 9 | border: { 10 | type: Boolean, 11 | default: true 12 | }, 13 | ...uni.$uv?.props?.cellGroup 14 | } 15 | } -------------------------------------------------------------------------------- /uni_modules/uv-cell/readme.md: -------------------------------------------------------------------------------- 1 | ## Cell 单元格 2 | 3 | > **组件名:uv-cell** 4 | 5 | cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-checkbox/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.14(2023-11-04) 2 | 1. 修复label文字较多不分行的问题 3 | ## 1.0.13(2023-10-11) 4 | 1. 优化同类问题:https://gitee.com/climblee/uv-ui/issues/I872VD 5 | ## 1.0.12(2023-09-22) 6 | 1. 修复change回调中v-model值不更新的BUG 7 | ## 1.0.11(2023-09-01) 8 | 1. 修复点击空隙处无效的问题 9 | 2. label支持插槽下可点击 10 | ## 1.0.10(2023-08-27) 11 | 1. 修复label设置布尔值不生效的BUG 12 | ## 1.0.9(2023-08-16) 13 | 1. 解决数据多不换行的BUG 14 | ## 1.0.8(2023-07-13) 15 | 1. 修复 uv-checkbox设置value属性不生效的BUG 16 | ## 1.0.7(2023-07-05) 17 | 修复vue3模式下,动态修改v-model绑定的值无效的BUG 18 | ## 1.0.6(2023-06-29) 19 | 1. 增加label插槽,与radio保持一致 20 | 2. 优化文档 21 | ## 1.0.5(2023-06-12) 22 | 1. 修复1.0.4改出的问题 23 | ## 1.0.4(2023-06-08) 24 | 1. 复选框修复全局设置不生效的BUG 25 | ## 1.0.3(2023-06-06) 26 | 1. uv-checkbox-group 兼容自定义样式customStyle,方便通过样式调整整体位置等; 27 | 2. .uv-checkbox-group--row增加flex-wrap: wrap;允许换行 28 | ## 1.0.2(2023-05-30) 29 | 1. 修复error报错的BUG 30 | ## 1.0.1(2023-05-16) 31 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 32 | 2. 优化部分功能 33 | ## 1.0.0(2023-05-10) 34 | uv-checkbox 复选框 35 | -------------------------------------------------------------------------------- /uni_modules/uv-checkbox/components/uv-checkbox/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // checkbox的名称 4 | name: { 5 | type: [String, Number, Boolean], 6 | default: '' 7 | }, 8 | // 形状,square为方形,circle为圆型 9 | shape: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 整体的大小 14 | size: { 15 | type: [String, Number], 16 | default: '' 17 | }, 18 | // 是否默认选中 19 | checked: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | // 是否禁用 24 | disabled: { 25 | type: [String, Boolean], 26 | default: '' 27 | }, 28 | // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值 29 | activeColor: { 30 | type: String, 31 | default: '' 32 | }, 33 | // 未选中的颜色 34 | inactiveColor: { 35 | type: String, 36 | default: '' 37 | }, 38 | // 图标的大小,单位px 39 | iconSize: { 40 | type: [String, Number], 41 | default: '' 42 | }, 43 | // 图标颜色 44 | iconColor: { 45 | type: String, 46 | default: '' 47 | }, 48 | // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式 49 | label: { 50 | type: [String, Number, Boolean], 51 | default: '' 52 | }, 53 | // label的字体大小,px单位 54 | labelSize: { 55 | type: [String, Number], 56 | default: '' 57 | }, 58 | // label的颜色 59 | labelColor: { 60 | type: String, 61 | default: '' 62 | }, 63 | // 是否禁止点击提示语选中复选框 64 | labelDisabled: { 65 | type: [String, Boolean], 66 | default: '' 67 | }, 68 | ...uni.$uv?.props?.checkbox 69 | } 70 | } -------------------------------------------------------------------------------- /uni_modules/uv-checkbox/readme.md: -------------------------------------------------------------------------------- 1 | ## Checkbox 复选框 2 | 3 | > **组件名:uv-checkbox** 4 | 5 | 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便。可配合 `uv-form` 组件进行表单验证等场景使用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-code-input/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-08-05) 2 | 在vue2模式下,v-model设置为0时不生效的BUG 3 | ## 1.0.4(2023-07-13) 4 | 1. 修复value/v-model更改不生效的BUG 5 | ## 1.0.3(2023-06-28) 6 | 修复:使用:disabledKeyboard="true"属性,事件全部失效的BUG 7 | ## 1.0.2(2023-06-23) 8 | 优化下边框 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-code-input 验证码输入 14 | -------------------------------------------------------------------------------- /uni_modules/uv-code-input/readme.md: -------------------------------------------------------------------------------- 1 | ## CodeInput 验证码输入框 2 | 3 | > **组件名:uv-code-input** 4 | 5 | 该组件一般用于验证用户短信验证码的场景,输入框或横线多种模式可选。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-code/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-10-13) 2 | 1. 优化 3 | ## 1.0.2(2023-10-13) 4 | 1. unmounted兼容vue3 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | uv-code 验证码倒计时 10 | -------------------------------------------------------------------------------- /uni_modules/uv-code/components/uv-code/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 倒计时总秒数 4 | seconds: { 5 | type: [String, Number], 6 | default: 60 7 | }, 8 | // 尚未开始时提示 9 | startText: { 10 | type: String, 11 | default: '获取验证码' 12 | }, 13 | // 正在倒计时中的提示 14 | changeText: { 15 | type: String, 16 | default: 'X秒重新获取' 17 | }, 18 | // 倒计时结束时的提示 19 | endText: { 20 | type: String, 21 | default: '重新获取' 22 | }, 23 | // 是否在H5刷新或各端返回再进入时继续倒计时 24 | keepRunning: { 25 | type: Boolean, 26 | default: false 27 | }, 28 | // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了 29 | uniqueKey: { 30 | type: String, 31 | default: '' 32 | }, 33 | ...uni.$uv?.props?.code 34 | } 35 | } -------------------------------------------------------------------------------- /uni_modules/uv-code/readme.md: -------------------------------------------------------------------------------- 1 | ## Code 验证码输入框 2 | 3 | > **组件名:uv-code** 4 | 5 | 考虑到用户实际发送验证码的场景,可能是一个按钮,也可能是一段文字,提示语各有不同,所以本组件不提供界面显示,只提供倒计时文本,由用户将文本嵌入到具体的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-collapse/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2023-05-16) 2 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 3 | 2. 优化部分功能 4 | ## 1.0.0(2023-05-10) 5 | uv-collapse 折叠面板 6 | -------------------------------------------------------------------------------- /uni_modules/uv-collapse/components/uv-collapse-item/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 标题 4 | title: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 标题右侧内容 9 | value: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 标题下方的描述信息 14 | label: { 15 | type: String, 16 | default: '' 17 | }, 18 | // 是否禁用折叠面板 19 | disabled: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | // 是否展示右侧箭头并开启点击反馈 24 | isLink: { 25 | type: Boolean, 26 | default: true 27 | }, 28 | // 是否开启点击反馈 29 | clickable: { 30 | type: Boolean, 31 | default: true 32 | }, 33 | // 是否显示内边框 34 | border: { 35 | type: Boolean, 36 | default: true 37 | }, 38 | // 标题的对齐方式 39 | align: { 40 | type: String, 41 | default: 'left' 42 | }, 43 | // 唯一标识符 44 | name: { 45 | type: [String, Number], 46 | default: '' 47 | }, 48 | // 标题左侧图片,可为绝对路径的图片或内置图标 49 | icon: { 50 | type: String, 51 | default: '' 52 | }, 53 | // 面板展开收起的过渡时间,单位ms 54 | duration: { 55 | type: Number, 56 | default: 300 57 | }, 58 | ...uni.$uv?.props?.collapseItem 59 | } 60 | } -------------------------------------------------------------------------------- /uni_modules/uv-collapse/components/uv-collapse/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 当前展开面板的name,非手风琴模式:[],手风琴模式:string | number 4 | value: { 5 | type: [String, Number, Array, null], 6 | default: null 7 | }, 8 | // 是否手风琴模式 9 | accordion: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | // 是否显示外边框 14 | border: { 15 | type: Boolean, 16 | default: true 17 | }, 18 | ...uni.$uv?.props?.collapse 19 | } 20 | } -------------------------------------------------------------------------------- /uni_modules/uv-collapse/readme.md: -------------------------------------------------------------------------------- 1 | ## Collapse 折叠面板 2 | 3 | > **组件名:uv-collapse** 4 | 5 | 通过折叠面板收纳内容区域,点击可展开收起,多功能参数可配置。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-count-down/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-10-13) 2 | 1. unmounted兼容vue3 3 | ## 1.0.2(2023-06-20) 4 | 1. 增加外部样式customStyle参数 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | uv-count-down 倒计时 10 | -------------------------------------------------------------------------------- /uni_modules/uv-count-down/components/uv-count-down/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 倒计时时长,单位ms 4 | time: { 5 | type: [String, Number], 6 | default: 0 7 | }, 8 | // 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 9 | format: { 10 | type: String, 11 | default: 'HH:mm:ss' 12 | }, 13 | // 是否自动开始倒计时 14 | autoStart: { 15 | type: Boolean, 16 | default: true 17 | }, 18 | // 是否展示毫秒倒计时 19 | millisecond: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | ...uni.$uv?.props?.countDown 24 | } 25 | } -------------------------------------------------------------------------------- /uni_modules/uv-count-down/readme.md: -------------------------------------------------------------------------------- 1 | ## CountDown 倒计时 2 | 3 | > **组件名:uv-count-down** 4 | 5 | 该组件一般使用于某个活动的截止时间上,通过数字的变化,给用户明确的时间感受,提示用户进行某一个行为操作。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-count-to/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-06-20) 2 | 1. 优化 3 | ## 1.0.3(2023-06-20) 4 | 1. 修复继续滚动的函数 5 | 2. 修复其他 6 | ## 1.0.2(2023-06-20) 7 | 1. 适配px和rpx的单位 8 | 2. 适配customStyle参数 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-count-to 数字滚动 14 | -------------------------------------------------------------------------------- /uni_modules/uv-count-to/components/uv-count-to/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 开始的数值,默认从0增长到某一个数 4 | startVal: { 5 | type: [String, Number], 6 | default: 0 7 | }, 8 | // 要滚动的目标数值,必须 9 | endVal: { 10 | type: [String, Number], 11 | default: 0 12 | }, 13 | // 滚动到目标数值的动画持续时间,单位为毫秒(ms) 14 | duration: { 15 | type: [String, Number], 16 | default: 2000 17 | }, 18 | // 设置数值后是否自动开始滚动 19 | autoplay: { 20 | type: Boolean, 21 | default: true 22 | }, 23 | // 要显示的小数位数 24 | decimals: { 25 | type: [String, Number], 26 | default: 0 27 | }, 28 | // 是否在即将到达目标数值的时候,使用缓慢滚动的效果 29 | useEasing: { 30 | type: Boolean, 31 | default: true 32 | }, 33 | // 十进制分割 34 | decimal: { 35 | type: [String, Number], 36 | default: '.' 37 | }, 38 | // 字体颜色 39 | color: { 40 | type: String, 41 | default: '#606266' 42 | }, 43 | // 字体大小 44 | fontSize: { 45 | type: [String, Number], 46 | default: 22 47 | }, 48 | // 是否加粗字体 49 | bold: { 50 | type: Boolean, 51 | default: false 52 | }, 53 | // 千位分隔符,类似金额的分割(¥23,321.05中的",") 54 | separator: { 55 | type: String, 56 | default: '' 57 | }, 58 | ...uni.$uv?.props?.countTo 59 | } 60 | } -------------------------------------------------------------------------------- /uni_modules/uv-count-to/readme.md: -------------------------------------------------------------------------------- 1 | ## CountTo 数字滚动 2 | 3 | > **组件名:uv-count-to** 4 | 5 | 该组件一般用于需要滚动数字到某一个值的场景,目标要求是一个递增的值。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-datetime-picker/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.15(2024-06-14) 2 | 1. 修复上次更改引出的BUG 3 | ## 1.0.14(2024-05-31) 4 | 1. 修复设置maxDate后存在选择不准确的BUG 5 | ## 1.0.13(2024-03-22) 6 | 1. 修复VUE3中出现的BUG 7 | ## 1.0.12(2023-11-27) 8 | 1. 增加round圆角属性 9 | ## 1.0.11(2023-10-11) 10 | 1. 修复设置minDate出现选择错乱的BUG 11 | ## 1.0.10(2023-09-01) 12 | 1. 增加clearDate参数,是否清除上次选择,默认false 13 | ## 1.0.9(2023-08-31) 14 | 1. 增加mode="year",方便只选择年 15 | ## 1.0.8(2023-07-17) 16 | 1. 优化文档 17 | 2. 优化其他 18 | ## 1.0.7(2023-07-13) 19 | 1. 修复 uv-datetime-picker 设置value属性不生效的BUG 20 | ## 1.0.6(2023-07-05) 21 | 修复vue3模式下,动态修改v-model绑定的值无效的BUG 22 | ## 1.0.5(2023-07-02) 23 | uv-datetime-picker 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/datetimePicker.html 24 | ## 1.0.4(2023-06-29) 25 | 1. 修复抖音小程序报错的BUG 26 | ## 1.0.3(2023-06-07) 27 | 1. 取消defaultIndex参数,传该值没实际意义,后续更新文档 28 | ## 1.0.2(2023-06-02) 29 | 1. 修复v-model重新赋值不更新的BUG 30 | ## 1.0.1(2023-05-16) 31 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 32 | 2. 优化部分功能 33 | ## 1.0.0(2023-05-10) 34 | uv-datetime-picker 时间选择器 35 | -------------------------------------------------------------------------------- /uni_modules/uv-datetime-picker/readme.md: -------------------------------------------------------------------------------- 1 | ## DatetimePicker 时间选择器 2 | 3 | > **组件名:uv-datetime-picker** 4 | 5 | 此选择器用于时间日期,主要用于年月日时分的选择,具体选择的精确度由参数控制。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-demo/changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/uni_modules/uv-demo/changelog.md -------------------------------------------------------------------------------- /uni_modules/uv-demo/components/uv-demo/uv-demo.vue: -------------------------------------------------------------------------------- 1 | 6 | 16 | 18 | -------------------------------------------------------------------------------- /uni_modules/uv-demo/readme.md: -------------------------------------------------------------------------------- 1 | # uv-demo -------------------------------------------------------------------------------- /uni_modules/uv-divider/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-12-06) 2 | 1. 优化 3 | ## 1.0.3(2023-12-06) 4 | 1. 阻止事件冒泡问题 5 | ## 1.0.2(2023-06-01) 6 | 1. 修复点击触发两次事件的BUG 7 | ## 1.0.1(2023-05-16) 8 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 9 | 2. 优化部分功能 10 | ## 1.0.0(2023-05-10) 11 | uv-divider 分割线 12 | -------------------------------------------------------------------------------- /uni_modules/uv-divider/components/uv-divider/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否虚线 4 | dashed: { 5 | type: Boolean, 6 | default: false 7 | }, 8 | // 是否细线 9 | hairline: { 10 | type: Boolean, 11 | default: true 12 | }, 13 | // 是否以点替代文字,优先于text字段起作用 14 | dot: { 15 | type: Boolean, 16 | default: false 17 | }, 18 | // 内容文本的位置,left-左边,center-中间,right-右边 19 | textPosition: { 20 | type: String, 21 | default: 'center' 22 | }, 23 | // 文本内容 24 | text: { 25 | type: [String, Number], 26 | default: '' 27 | }, 28 | // 文本大小 29 | textSize: { 30 | type: [String, Number], 31 | default: 14 32 | }, 33 | // 文本颜色 34 | textColor: { 35 | type: String, 36 | default: '#909399' 37 | }, 38 | // 线条颜色 39 | lineColor: { 40 | type: String, 41 | default: '#dcdfe6' 42 | }, 43 | ...uni.$uv?.props?.divider 44 | } 45 | } -------------------------------------------------------------------------------- /uni_modules/uv-divider/readme.md: -------------------------------------------------------------------------------- 1 | ## Divider 分割线 2 | 3 | > **组件名:uv-divider** 4 | 5 | 区隔内容的分割线,一般用于页面底部"没有更多"的提示。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-drop-down/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2024-01-02) 2 | 1. 修复parentData不变的BUG 3 | ## 1.0.4(2023-09-28) 4 | 1. 增加uv-sticky依赖 5 | ## 1.0.3(2023-08-29) 6 | 1. 修复自定义内容,点击自定义内容时会自动关闭弹窗的问题 7 | ## 1.0.2(2023-08-22) 8 | 1. 优化 9 | ## 1.0.1(2023-08-22) 10 | 1. 增加@change回调,返回弹窗关闭状态 11 | 2. 增加init方法,方便位置改变进行调整 12 | ## 1.0.0(2023-07-30) 13 | 新增uv-drop-down 下拉筛选组件 14 | -------------------------------------------------------------------------------- /uni_modules/uv-drop-down/readme.md: -------------------------------------------------------------------------------- 1 | ## DropDown 下拉筛选 2 | 3 | > **组件名:uv-drop-down** 4 | 5 | 该组件主要提供筛选下拉筛选框,内置基础筛选功能,可以根据自己的需求自定义筛选项。 6 | 7 | 为了兼容app-nvue,需要内置三个组件进行配合使用,uv-drop-down属于菜单项(其实还包括子组件uv-drop-down-item),uv-drop-down-popup属于筛选框。 8 | 9 | 只需要做简单的约定式配置,即可使用该功能,兼容性良好,已经在多端进行了多次测试。 10 | 11 | # 查看文档 12 | 13 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 14 | 15 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 16 | 17 | 18 | 19 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 20 | 21 | 22 | 23 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-empty/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-12-20) 2 | 1. 优化 3 | ## 1.0.4(2023-08-04) 4 | 1. icon支持base64图片 5 | ## 1.0.3(2023-07-17) 6 | 1. 修复 uv-empty 恢复设置mode属性的内置图标 7 | ## 1.0.2(2023-07-03) 8 | 去除插槽判断,避免某些平台不显示的BUG 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-empty 内容为空 14 | -------------------------------------------------------------------------------- /uni_modules/uv-empty/components/uv-empty/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 内置图标名称,或图片路径,建议绝对路径 4 | icon: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 提示文字 9 | text: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 文字颜色 14 | textColor: { 15 | type: String, 16 | default: '#c0c4cc' 17 | }, 18 | // 文字大小 19 | textSize: { 20 | type: [String, Number], 21 | default: 14 22 | }, 23 | // 图标的颜色 24 | iconColor: { 25 | type: String, 26 | default: '#c0c4cc' 27 | }, 28 | // 图标的大小 29 | iconSize: { 30 | type: [String, Number], 31 | default: 90 32 | }, 33 | // 选择预置的图标类型 34 | mode: { 35 | type: String, 36 | default: 'data' 37 | }, 38 | // 图标宽度,单位px 39 | width: { 40 | type: [String, Number], 41 | default: 160 42 | }, 43 | // 图标高度,单位px 44 | height: { 45 | type: [String, Number], 46 | default: 160 47 | }, 48 | // 是否显示组件 49 | show: { 50 | type: Boolean, 51 | default: true 52 | }, 53 | // 组件距离上一个元素之间的距离,默认px单位 54 | marginTop: { 55 | type: [String, Number], 56 | default: 0 57 | }, 58 | ...uni.$uv?.props?.empty 59 | } 60 | } -------------------------------------------------------------------------------- /uni_modules/uv-empty/readme.md: -------------------------------------------------------------------------------- 1 | ## Empty 内容为空 2 | 3 | > **组件名:uv-empty** 4 | 5 | 该组件用于需要加载内容,但是加载的第一页数据就为空,提示一个"没有内容"的场景, 我们精心挑选了十几个场景的图标,方便您使用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-form/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.9(2023-08-14) 2 | 1. 修复设置labelWidth属性时,节点渲染有闪动的BUG 3 | ## 1.0.8(2023-08-13) 4 | 1. 修复未设置rules的情况下报错的BUG 5 | 2. 优化错误提示 6 | ## 1.0.7(2023-08-10) 7 | 1. 修复在vue3+setup语法糖中错误文字动画错乱 8 | ## 1.0.6(2023-07-17) 9 | 1. 优化文档 10 | 2. 优化其他 11 | ## 1.0.5(2023-07-03) 12 | 去除插槽判断,避免某些平台不显示的BUG 13 | ## 1.0.4(2023-07-02) 14 | uv-form 由于弹出层uv-transition的修改,组件内部做了相应的修改,参数不变。 15 | ## 1.0.3(2023-06-18) 16 | 1. 修改某些情况下的BUG 17 | ## 1.0.2(2023-06-15) 18 | 1. 修复支付宝报错的BUG 19 | ## 1.0.1(2023-05-16) 20 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 21 | 2. 优化部分功能 22 | ## 1.0.0(2023-05-10) 23 | uv-form 表单 24 | -------------------------------------------------------------------------------- /uni_modules/uv-form/components/uv-form-item/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // input的label提示语 4 | label: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 绑定的值 9 | prop: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 是否显示表单域的下划线边框 14 | borderBottom: { 15 | type: [Boolean], 16 | default: false 17 | }, 18 | // label的位置,left-左边,top-上边 19 | labelPosition: { 20 | type: String, 21 | default: '' 22 | }, 23 | // label的宽度,单位px 24 | labelWidth: { 25 | type: [String, Number], 26 | default: '' 27 | }, 28 | // 右侧图标 29 | rightIcon: { 30 | type: String, 31 | default: '' 32 | }, 33 | // 左侧图标 34 | leftIcon: { 35 | type: String, 36 | default: '' 37 | }, 38 | // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置 39 | required: { 40 | type: Boolean, 41 | default: false 42 | }, 43 | leftIconStyle: { 44 | type: [String, Object], 45 | default: '' 46 | }, 47 | ...uni.$uv?.props?.formItem 48 | } 49 | } -------------------------------------------------------------------------------- /uni_modules/uv-form/components/uv-form/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 当前form的需要验证字段的集合 4 | model: { 5 | type: Object, 6 | default: () => ({}) 7 | }, 8 | // 验证规则 9 | rules: { 10 | type: [Object, Function, Array], 11 | default: () => ({}) 12 | }, 13 | // 有错误时的提示方式,message-提示信息,toast-进行toast提示 14 | // border-bottom-下边框呈现红色,none-无提示 15 | errorType: { 16 | type: String, 17 | default: 'message' 18 | }, 19 | // 是否显示表单域的下划线边框 20 | borderBottom: { 21 | type: Boolean, 22 | default: true 23 | }, 24 | // label的位置,left-左边,top-上边 25 | labelPosition: { 26 | type: String, 27 | default: 'left' 28 | }, 29 | // label的宽度,单位px 30 | labelWidth: { 31 | type: [String, Number], 32 | default: 45 33 | }, 34 | // lable字体的对齐方式 35 | labelAlign: { 36 | type: String, 37 | default: 'left' 38 | }, 39 | // lable的样式,对象形式 40 | labelStyle: { 41 | type: Object, 42 | default: () => ({}) 43 | }, 44 | ...uni.$uv?.props?.form 45 | } 46 | } -------------------------------------------------------------------------------- /uni_modules/uv-form/readme.md: -------------------------------------------------------------------------------- 1 | ## Form 表单 2 | 3 | > **组件名:uv-form** 4 | 5 | 此组件一般用于表单场景,可以配置`Input`输入框,`Textarea`文本域,`Checkbox`复选框,`Radio`单选框,开关选择器等,进行表单验证等。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-gap/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2023-05-16) 2 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 3 | 2. 优化部分功能 4 | ## 1.0.0(2023-05-10) 5 | 1. 新增间隔槽组件 6 | -------------------------------------------------------------------------------- /uni_modules/uv-gap/components/uv-gap/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 背景颜色(默认transparent) 4 | bgColor: { 5 | type: String, 6 | default: 'transparent' 7 | }, 8 | // 分割槽高度,单位px(默认20) 9 | height: { 10 | type: [String, Number], 11 | default: 20 12 | }, 13 | // 与上一个组件的距离 14 | marginTop: { 15 | type: [String, Number], 16 | default: 0 17 | }, 18 | // 与下一个组件的距离 19 | marginBottom: { 20 | type: [String, Number], 21 | default: 0 22 | }, 23 | ...uni.$uv?.props?.gap 24 | } 25 | } -------------------------------------------------------------------------------- /uni_modules/uv-gap/components/uv-gap/uv-gap.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 37 | -------------------------------------------------------------------------------- /uni_modules/uv-gap/readme.md: -------------------------------------------------------------------------------- 1 | ## Gap 间隔槽 2 | 3 | > **组件名:uv-gap** 4 | 5 | 该组件一般用于内容块之间的用一个灰色块隔开的场景,方便用户风格统一,减少工作量。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | 13 | -------------------------------------------------------------------------------- /uni_modules/uv-grid/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.9(2023-12-06) 2 | 1. 优化 3 | ## 1.0.8(2023-12-06) 4 | 1. 阻止事件冒泡问题 5 | ## 1.0.7(2023-10-13) 6 | 1. unmounted兼容vue3 7 | ## 1.0.6(2023-08-14) 8 | 1. 修复初始的时候闪动的BUG 9 | ## 1.0.5(2023-06-22) 10 | 1. 优化修改 11 | ## 1.0.4(2023-06-21) 12 | 1. 修复BUG 13 | ## 1.0.3(2023-06-01) 14 | 1. 修复点击触发两次事件的BUG 15 | ## 1.0.2(2023-05-23) 16 | 1. 优化 17 | ## 1.0.1(2023-05-16) 18 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 19 | 2. 优化部分功能 20 | ## 1.0.0(2023-05-10) 21 | uv-grid 宫格布局 22 | -------------------------------------------------------------------------------- /uni_modules/uv-grid/components/uv-grid-item/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 宫格的name 4 | name: { 5 | type: [String, Number, null], 6 | default: null 7 | }, 8 | // 背景颜色 9 | bgColor: { 10 | type: String, 11 | default: 'transparent' 12 | }, 13 | ...uni.$uv?.props?.gridItem 14 | } 15 | } -------------------------------------------------------------------------------- /uni_modules/uv-grid/components/uv-grid/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 分成几列 4 | col: { 5 | type: [String, Number], 6 | default: 3 7 | }, 8 | // 是否显示边框 9 | border: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | // 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右 14 | align: { 15 | type: String, 16 | default: 'left' 17 | }, 18 | ...uni.$uv?.props?.grid 19 | } 20 | } -------------------------------------------------------------------------------- /uni_modules/uv-grid/readme.md: -------------------------------------------------------------------------------- 1 | ## Grid 宫格布局 2 | 3 | > **组件名:uv-grid** 4 | 5 | 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。 6 | 7 | # 查看文档 8 | 9 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | 12 | 13 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 14 | 15 | 16 | 17 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-icon/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.13(2023-12-06) 2 | 1. 优化 3 | ## 1.0.12(2023-12-06) 4 | 1. 阻止事件冒泡处理 5 | ## 1.0.11(2023-10-29) 6 | 1. imgMode默认值改成aspectFit 7 | ## 1.0.10(2023-08-13) 8 | 1. 优化nvue,方便自定义图标 9 | ## 1.0.9(2023-07-28) 10 | 1. 修改几个对应错误图标的BUG 11 | ## 1.0.8(2023-07-24) 12 | 1. 优化 支持base64图片 13 | ## 1.0.7(2023-07-17) 14 | 1. 修复 uv-icon 恢复uv-empty相关的图标 15 | ## 1.0.6(2023-07-13) 16 | 1. 修复icon设置name属性对应图标错误的BUG 17 | ## 1.0.5(2023-07-04) 18 | 1. 更新图标,删除一些不常用的图标 19 | 2. 删除base64,修改成ttf文件引入读取图标 20 | 3. 自定义图标文档说明:https://www.uvui.cn/guide/customIcon.html 21 | ## 1.0.4(2023-07-03) 22 | 1. 修复主题颜色在APP不生效的BUG 23 | ## 1.0.3(2023-05-24) 24 | 1. 将线上ttf字体包替换成base64,避免加载时或者网络差时候显示白色方块 25 | ## 1.0.2(2023-05-16) 26 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 27 | 2. 优化部分功能 28 | ## 1.0.1(2023-05-10) 29 | 1. 修复小程序中异常显示 30 | ## 1.0.0(2023-05-04) 31 | 新发版 32 | -------------------------------------------------------------------------------- /uni_modules/uv-icon/components/uv-icon/uvicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/uni_modules/uv-icon/components/uv-icon/uvicons.ttf -------------------------------------------------------------------------------- /uni_modules/uv-icon/readme.md: -------------------------------------------------------------------------------- 1 | ## uv-icon 图标库 2 | 3 | > **组件名:uv-icon** 4 | 5 | 基于字体的图标集,包含了大多数常见场景的图标,支持自定义,支持自定义图片图标等。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 14 | 15 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 16 | -------------------------------------------------------------------------------- /uni_modules/uv-image/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.16(2023-12-21) 2 | 1. 修复设置show-menu-by-longpress不生效的BUG 3 | ## 1.0.15(2023-12-06) 4 | 1. 优化 5 | ## 1.0.14(2023-12-06) 6 | 1. 阻止事件冒泡问题 7 | ## 1.0.13(2023-11-15) 8 | 1. 修复webp之前未使用的BUG 9 | ## 1.0.12(2023-10-11) 10 | 1. 修复懒加载报错:https://gitee.com/climblee/uv-ui/issues/I869JS 11 | ## 1.0.11(2023-08-31) 12 | 1. 修复设置widthFix时出现显示不全的BUG 13 | 2. 修复抖音等平台在width和height属性改变时出现不显示的BUG 14 | ## 1.0.10(2023-08-29) 15 | 1. 修复异步修改宽高不生效的问题,问题来源:https://gitee.com/climblee/uv-ui/issues/I7WUQ3 16 | ## 1.0.9(2023-08-21) 17 | 1. 修复设置宽高为百分比不生效的BUG 18 | ## 1.0.8(2023-07-24) 19 | 1. 优化 nvue模式下增加cellChild参数,是否在list中cell节点下,nvue中cell下建议设置成true 20 | ## 1.0.7(2023-07-02) 21 | 修复VUE3模式下可能不显示的BUG 22 | ## 1.0.6(2023-07-02) 23 | 优化修改 24 | ## 1.0.5(2023-06-28) 25 | 修复duration属性不生效的BUG 26 | ## 1.0.4(2023-05-27) 27 | 1. 修复可能报错的问题 28 | ## 1.0.3(2023-05-24) 29 | 1. 去掉template中存在的this.导致头条小程序编译警告 30 | ## 1.0.2(2023-05-23) 31 | 1. 优化 32 | ## 1.0.1(2023-05-16) 33 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 34 | 2. 优化部分功能 35 | ## 1.0.0(2023-05-10) 36 | uv-image 图片 37 | -------------------------------------------------------------------------------- /uni_modules/uv-image/readme.md: -------------------------------------------------------------------------------- 1 | ## Image 图片 2 | 3 | > **组件名:uv-image** 4 | 5 | 此组件为`uni-app`的`image`组件的加强版,在继承了原有功能外,增加`observer`懒加载功能,还支持淡入动画、加载中、加载失败提示、圆角值和形状等。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 14 | 15 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 16 | -------------------------------------------------------------------------------- /uni_modules/uv-index-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.7(2023-11-07) 2 | 1. 修复sticky属性不生效的BUG 3 | ## 1.0.6(2023-09-01) 4 | 1. 修复设置customNavHeight导致定位不准确的BUG 5 | ## 1.0.5(2023-08-23) 6 | 1. 修复ios端快速滑动+点击右侧导航会出现白屏的BUG 7 | ## 1.0.4(2023-07-25) 8 | 1. 修复全局设置成rpx存在的高度BUG 9 | 2. 修复其他BUG 10 | ## 1.0.3(2023-07-03) 11 | 去除插槽判断,避免某些平台不显示的BUG 12 | ## 1.0.2(2023-05-27) 13 | 1. select事件修复 14 | ## 1.0.1(2023-05-16) 15 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 16 | 2. 优化部分功能 17 | ## 1.0.0(2023-05-10) 18 | uv-index-list 索引列表 19 | -------------------------------------------------------------------------------- /uni_modules/uv-index-list/components/uv-index-anchor/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 列表锚点文本内容 4 | text: { 5 | type: [String, Number], 6 | default: '' 7 | }, 8 | // 列表锚点文字颜色 9 | color: { 10 | type: String, 11 | default: '#606266' 12 | }, 13 | // 列表锚点文字大小,单位默认px 14 | size: { 15 | type: [String, Number], 16 | default: 14 17 | }, 18 | // 列表锚点背景颜色 19 | bgColor: { 20 | type: String, 21 | default: '#dedede' 22 | }, 23 | // 列表锚点高度,单位默认px 24 | height: { 25 | type: [String, Number], 26 | default: 32 27 | }, 28 | ...uni.$uv?.props?.indexAnchor 29 | } 30 | } -------------------------------------------------------------------------------- /uni_modules/uv-index-list/components/uv-index-list/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 右边锚点非激活的颜色 4 | inactiveColor: { 5 | type: String, 6 | default: '#606266' 7 | }, 8 | // 右边锚点激活的颜色 9 | activeColor: { 10 | type: String, 11 | default: '#5677fc' 12 | }, 13 | // 索引字符列表,数组形式 14 | indexList: { 15 | type: Array, 16 | default: () => [] 17 | }, 18 | // 是否开启锚点自动吸顶 19 | sticky: { 20 | type: Boolean, 21 | default: true 22 | }, 23 | // 自定义导航栏的高度 24 | customNavHeight: { 25 | type: [String, Number], 26 | default: 0 27 | }, 28 | ...uni.$uv?.props?.indexList 29 | } 30 | } -------------------------------------------------------------------------------- /uni_modules/uv-index-list/readme.md: -------------------------------------------------------------------------------- 1 | ## IndexList 索引列表 2 | 3 | > **组件名:uv-index-list** 4 | 5 | 用于展示索引列表,右侧带索引的列表,方便快速定位到具体内容,通常用于城市/机场选择等场景,类似于微信通讯录页面。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-input/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.13(2023-12-06) 2 | 1. 优化 3 | ## 1.0.12(2023-12-06) 4 | 1. 阻止事件冒泡问题 5 | ## 1.0.11(2023-11-10) 6 | 1. 调整清除按钮样式的marginLeft,避免微信上多数情况触发不了的BUG 7 | ## 1.0.10(2023-10-07) 8 | 1. 修复搜狗输入法下存在不可清空的情况 9 | ## 1.0.9(2023-09-14) 10 | 1. 修复H5等情况设置禁用或可读情况下,点击事件无效的问题 11 | ## 1.0.8(2023-08-22) 12 | 1. 修复无法@keyboardheightchange无法获取键盘高度的BUG 13 | ## 1.0.7(2023-08-18) 14 | 1. 修复ios端不能输入的BUG 15 | ## 1.0.6(2023-08-05) 16 | 1. 修复在vue2模式下,v-model设置为0时不生效的BUG 17 | ## 1.0.5(2023-07-18) 18 | 1. 修复在微信小程序端清除内容存在不能清除的BUG 19 | ## 1.0.4(2023-07-13) 20 | 1. 修复value/v-model更改不生效的BUG 21 | ## 1.0.3(2023-07-03) 22 | 去除插槽判断,避免某些平台不显示的BUG 23 | ## 1.0.2(2023-05-16) 24 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 25 | 2. 优化部分功能 26 | ## 1.0.1(2023-05-12) 27 | 1. 修复vue3双向绑定的BUG 28 | ## 1.0.0(2023-05-10) 29 | uv-input 输入框 30 | -------------------------------------------------------------------------------- /uni_modules/uv-input/readme.md: -------------------------------------------------------------------------------- 1 | ## Input 输入框 2 | 3 | > **组件名:uv-input** 4 | 5 | 此组件为一个输入框,默认没有边框和样式,是专门为配合表单组件uv-form而设计的,利用它可以快速实现表单验证,输入内容,下拉选择等功能。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-keyboard/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-10-12) 2 | 1. 增加disKeys参数,mode = "car"下,被禁用的键,如:['I','O'] 3 | 2. 增加customabc参数,mode = "car"下,是否启用自定义中英文切换内容模式,为了兼容支付宝等小程序不兼容嵌套插槽,导致同时显示自定义内容和原始内容 4 | 3. 增加ref方法changeCarMode,mode = "car"下, 调用此方法可以切换中英文模式 5 | 4. 增加@changeCarInputMode,mode = "car"下,调用此方法可以进行切换中英文 6 | 5. 增加插槽abc,mode = "car"下,自定义中英文切换内容,具体参考[车牌键盘自定义中英文切换及禁用键等设置](https://www.uvui.cn/components/keyboard.html#车牌键盘自定义中英文切换及禁用键等设置) 7 | ## 1.0.4(2023-09-04) 8 | 1. 优化,修改文件名称 9 | ## 1.0.3(2023-09-04) 10 | 1. 修复键盘change回调事件产生冲突的BUG 11 | ## 1.0.2(2023-07-02) 12 | uv-keyboard 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/keyboard.html 13 | ## 1.0.1(2023-05-16) 14 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 15 | 2. 优化部分功能 16 | ## 1.0.0(2023-05-10) 17 | uv-keyboard 键盘 18 | -------------------------------------------------------------------------------- /uni_modules/uv-keyboard/components/uv-keyboard-car/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否打乱键盘按键的顺序 4 | random: { 5 | type: Boolean, 6 | default: false 7 | }, 8 | // 输入一个中文后,是否自动切换到英文 9 | autoChange: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | // 被禁用的键 14 | disKeys: { 15 | type: Array, 16 | default: ()=>[] 17 | }, 18 | // 是否自定义abc 19 | customabc: { 20 | type: Boolean, 21 | default: false 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /uni_modules/uv-keyboard/components/uv-keyboard-number/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 键盘的类型,number-数字键盘,card-身份证键盘 4 | mode: { 5 | type: String, 6 | default: 'number' 7 | }, 8 | // 是否显示键盘的"."符号 9 | dotDisabled: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | // 是否打乱键盘按键的顺序 14 | random: { 15 | type: Boolean, 16 | default: false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /uni_modules/uv-keyboard/readme.md: -------------------------------------------------------------------------------- 1 | ## Keyboard 键盘 2 | 3 | > **组件名:uv-keyboard** 4 | 5 | 该组件为自定义的键盘面板,内含了数字键盘,车牌号键,身份证号键盘3种模式,都有可以打乱按键顺序的选项。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-line-progress/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-06-20) 2 | 1. 适配height参数携带单位 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-line-progress 线形进度条 8 | -------------------------------------------------------------------------------- /uni_modules/uv-line-progress/components/uv-line-progress/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 激活部分的颜色 4 | activeColor: { 5 | type: String, 6 | default: '#19be6b' 7 | }, 8 | inactiveColor: { 9 | type: String, 10 | default: '#ececec' 11 | }, 12 | // 进度百分比,数值 13 | percentage: { 14 | type: [String, Number], 15 | default: 0 16 | }, 17 | // 是否在进度条内部显示百分比的值 18 | showText: { 19 | type: Boolean, 20 | default: true 21 | }, 22 | // 进度条的高度,单位px 23 | height: { 24 | type: [String, Number], 25 | default: 12 26 | }, 27 | ...uni.$uv?.props?.lineProgress 28 | } 29 | } -------------------------------------------------------------------------------- /uni_modules/uv-line-progress/readme.md: -------------------------------------------------------------------------------- 1 | ## LineProgress 线形进度条 2 | 3 | > **组件名:uv-line-progress** 4 | 5 | 展示操作或任务的当前进度,比如上传文件,是一个线形的进度条。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-line/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2023-05-16) 2 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 3 | 2. 优化部分功能 4 | ## 1.0.0(2023-05-10) 5 | 1. 新增线条组件 6 | -------------------------------------------------------------------------------- /uni_modules/uv-line/components/uv-line/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | color: { 4 | type: String, 5 | default: '#d6d7d9' 6 | }, 7 | // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等 8 | length: { 9 | type: [String, Number], 10 | default: '100%' 11 | }, 12 | // 线条方向,col-竖向,row-横向 13 | direction: { 14 | type: String, 15 | default: 'row' 16 | }, 17 | // 是否显示细边框 18 | hairline: { 19 | type: Boolean, 20 | default: true 21 | }, 22 | // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px" 23 | margin: { 24 | type: [String, Number], 25 | default: 0 26 | }, 27 | // 是否虚线,true-虚线,false-实线 28 | dashed: { 29 | type: Boolean, 30 | default: false 31 | }, 32 | ...uni.$uv?.props?.line 33 | } 34 | } -------------------------------------------------------------------------------- /uni_modules/uv-line/readme.md: -------------------------------------------------------------------------------- 1 | ## Line 线条 2 | 3 | > **组件名:uv-line** 4 | 5 | 此组件一般用于显示一根线条,用于分隔内容块,有横向和竖向两种模式,且能设置0.5px线条,使用也很简单。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-link/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-08-13) 2 | 1. 修复报错的BUG 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-link 超链接组件 8 | -------------------------------------------------------------------------------- /uni_modules/uv-link/components/uv-link/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 文字颜色 4 | color: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 字体大小,单位px 9 | fontSize: { 10 | type: [String, Number], 11 | default: 14 12 | }, 13 | // 是否显示下划线 14 | underLine: { 15 | type: Boolean, 16 | default: false 17 | }, 18 | // 要跳转的链接 19 | href: { 20 | type: String, 21 | default: '' 22 | }, 23 | // 小程序中复制到粘贴板的提示语 24 | mpTips: { 25 | type: String, 26 | default: '链接已复制,请在浏览器打开' 27 | }, 28 | // 下划线颜色 29 | lineColor: { 30 | type: String, 31 | default: '' 32 | }, 33 | // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色 34 | text: { 35 | type: String, 36 | default: '' 37 | }, 38 | ...uni.$uv?.props?.link 39 | } 40 | } -------------------------------------------------------------------------------- /uni_modules/uv-link/readme.md: -------------------------------------------------------------------------------- 1 | ## Link 超链接 2 | 3 | > **组件名:uv-link** 4 | 5 | 该组件为超链接组件,在不同平台有不同表现形式。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.9(2023-11-10) 2 | 1. 修复设置ellipsis不生效的BUG 3 | ## 1.0.8(2023-09-20) 4 | 1. listItem优化可使用customStyle变量进行样式控制 5 | ## 1.0.7(2023-08-29) 6 | 1. 修复边框的BUG 7 | ## 1.0.6(2023-08-16) 8 | 1. 修复switch开关返回undefined的问题 9 | 2. 优化初始化可能导致的闪动 10 | ## 1.0.5(2023-08-07) 11 | 1. 修复分包页面在ios端,nvue编译不能滚动的BUG 12 | ## 1.0.4(2023-08-04) 13 | 1. nvue修复 触底不触发事件的BUG 14 | 2. 更新文档说明事件触发 15 | ## 1.0.3(2023-07-28) 16 | 1. 修改可能造成样式污染的BUG 17 | ## 1.0.2(2023-07-26) 18 | 1. 全面重构,用法与之前保持一致,参数全部变化 19 | 2. 新增多个功能参数,方便一键构建列表 20 | 3. List列表组件,包含基本列表样式、默认插槽机制、可扩展插槽机制、长列表性能优化、多端兼容。 21 | ## 1.0.1(2023-05-16) 22 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 23 | 2. 优化部分功能 24 | ## 1.0.0(2023-05-10) 25 | uv-list 列表 26 | -------------------------------------------------------------------------------- /uni_modules/uv-list/readme.md: -------------------------------------------------------------------------------- 1 | ## List 列表 2 | 3 | > **组件名:uv-list** 4 | 5 | List列表组件,包含基本列表样式、默认插槽机制、可扩展插槽机制、长列表性能优化、多端兼容。 6 | 7 | 在vue页面里,它默认使用页面级滚动,这样做的目的是性能更加友好。在app-nvue页面里,它默认使用原生list组件滚动,这样的长列表,在滚动出屏幕外后,系统会回收不可见区域的渲染内存资源,不会造成滚动越长手机越卡的问题。 8 | 9 | uv-list组件是父容器,里面的核心是uv-list-item子组件,它代表列表中的一个可重复行,子组件可以无限循环。 10 | 11 | uv-list-item有很多风格,uv-list-item组件通过内置的属性,满足一些常用的场景。当内置属性不满足需求时,可以通过扩展插槽来自定义列表内容,插槽包括:默认插槽(完全自定义内容)、具名插槽(header | body | footer),根据需求进行扩展。 12 | 13 | 内置属性可以覆盖的场景包括:导航列表、设置列表、小图标列表等,其他不能满足的场景使用插槽进行扩展。 14 | 15 | # 查看文档 16 | 17 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 18 | 19 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 20 | 21 | 22 | 23 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 24 | 25 | 26 | 27 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-load-more/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-06-21) 2 | 1. 优化customStyle属性 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-load-more 加载更多 8 | -------------------------------------------------------------------------------- /uni_modules/uv-load-more/readme.md: -------------------------------------------------------------------------------- 1 | ## LoadMore 加载更多 2 | 3 | > **组件名:uv-load-more** 4 | 5 | 此组件一般用于标识页面底部加载数据时的状态,共有三种状态:加载前、加载中、加载后。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-loading-icon/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-08-14) 2 | 1. 新增参数textStyle,自定义文本样式 3 | ## 1.0.2(2023-06-27) 4 | 优化 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | 1. 新增uv-loading-icon组件 10 | -------------------------------------------------------------------------------- /uni_modules/uv-loading-icon/components/uv-loading-icon/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否显示组件 4 | show: { 5 | type: Boolean, 6 | default: true 7 | }, 8 | // 颜色 9 | color: { 10 | type: String, 11 | default: '#909193' 12 | }, 13 | // 提示文字颜色 14 | textColor: { 15 | type: String, 16 | default: '#909193' 17 | }, 18 | // 文字和图标是否垂直排列 19 | vertical: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形 24 | mode: { 25 | type: String, 26 | default: 'spinner' 27 | }, 28 | // 图标大小,单位默认px 29 | size: { 30 | type: [String, Number], 31 | default: 24 32 | }, 33 | // 文字大小 34 | textSize: { 35 | type: [String, Number], 36 | default: 15 37 | }, 38 | // 文字样式 39 | textStyle: { 40 | type: Object, 41 | default () { 42 | return {} 43 | } 44 | }, 45 | // 文字内容 46 | text: { 47 | type: [String, Number], 48 | default: '' 49 | }, 50 | // 动画模式 https://www.runoob.com/cssref/css3-pr-animation-timing-function.html 51 | timingFunction: { 52 | type: String, 53 | default: 'linear' 54 | }, 55 | // 动画执行周期时间 56 | duration: { 57 | type: [String, Number], 58 | default: 1200 59 | }, 60 | // mode=circle时的暗边颜色 61 | inactiveColor: { 62 | type: String, 63 | default: '' 64 | }, 65 | ...uni.$uv?.props?.loadingIcon 66 | } 67 | } -------------------------------------------------------------------------------- /uni_modules/uv-loading-icon/readme.md: -------------------------------------------------------------------------------- 1 | ## LoadingIcon 加载动画 2 | 3 | > **组件名:uv-loading-icon** 4 | 5 | 此组件为一个小动画,目前用在 `uv-ui` 的 `uv-load-more` 加载更多等组件,还可以运用在项目中正在加载状态场景。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-loading-page/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2024-01-20) 2 | 1. 修改上版本带出的问题 3 | ## 1.0.3(2024-01-15) 4 | 1. 重构,避免初始加载的时候先显示页面的问题 5 | ## 1.0.2(2023-07-02) 6 | uv-loading-page 由于弹出层uv-transition的修改,组件内部做了相应的修改,参数不变。 7 | ## 1.0.1(2023-05-16) 8 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 9 | 2. 优化部分功能 10 | ## 1.0.0(2023-05-10) 11 | uv-loading-page 加载页 12 | -------------------------------------------------------------------------------- /uni_modules/uv-loading-page/components/uv-loading-page/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 提示内容 4 | loadingText: { 5 | type: [String, Number], 6 | default: '' 7 | }, 8 | // 文字上方用于替换loading动画的图片 9 | image: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 加载动画的模式,circle-圆形,spinner-花朵形,semicircle-半圆形 14 | loadingMode: { 15 | type: String, 16 | default: 'circle' 17 | }, 18 | // 是否加载中 19 | loading: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | // 背景色 24 | bgColor: { 25 | type: String, 26 | default: '#fff' 27 | }, 28 | // 文字颜色 29 | color: { 30 | type: String, 31 | default: '#C8C8C8' 32 | }, 33 | // 文字大小 34 | fontSize: { 35 | type: [String, Number], 36 | default: 16 37 | }, 38 | // 图标大小 39 | iconSize: { 40 | type: [String, Number], 41 | default: 26 42 | }, 43 | // 加载中图标的颜色,只能rgb或者十六进制颜色值 44 | loadingColor: { 45 | type: String, 46 | default: '#C8C8C8' 47 | }, 48 | // 过渡时间 49 | duration: { 50 | type: [String, Number], 51 | default: 300 52 | }, 53 | ...uni.$uv?.props?.loadingPage 54 | } 55 | } -------------------------------------------------------------------------------- /uni_modules/uv-loading-page/readme.md: -------------------------------------------------------------------------------- 1 | ## LoadingPage 加载页 2 | 3 | > **组件名:uv-loading-page** 4 | 5 | 该组件是一个页面级的加载效果,可以在页面初始化数据等场景使用,与骨架屏有相似之处。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-modal/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.11(2023-12-20) 2 | 1. 优化 3 | ## 1.0.10(2023-12-19) 4 | 1. 修复confirm中快速使用closeLoading关闭加载状态失效的BUG 5 | ## 1.0.9(2023-11-28) 6 | 1. 修复上版本引出的确认和取消按钮均不显示,还有高度的BUG 7 | ## 1.0.8(2023-09-08) 8 | 1. 修复两个按钮之间竖线不显示的问题 9 | 2. uv-ui项目自定义按钮示例修改 10 | ## 1.0.7(2023-08-30) 11 | 1. 增加align参数,设置文本对齐方式,left center right 12 | 2. 增加textStyle参数,设置文本样式 13 | ## 1.0.6(2023-08-23) 14 | 1. 修复异步loading时,确认回调还会一直触发 15 | ## 1.0.5(2023-07-03) 16 | 去除插槽判断,避免某些平台不显示的BUG 17 | ## 1.0.4(2023-07-02) 18 | uv-modal 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/modal.html 19 | ## 1.0.3(2023-06-29) 20 | 1. 增加closeLoading方法,方便异步加载手动取消 21 | 2. 更新文档 22 | ## 1.0.2(2023-06-11) 23 | 1. 新增zIndex参数 24 | ## 1.0.1(2023-05-16) 25 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 26 | 2. 优化部分功能 27 | ## 1.0.0(2023-05-10) 28 | uv-modal 模态框 29 | -------------------------------------------------------------------------------- /uni_modules/uv-modal/readme.md: -------------------------------------------------------------------------------- 1 | ## Modal 模态框 2 | 3 | > **组件名:uv-modal** 4 | 5 | 弹出模态框,常用于消息提示、消息确认、在当前页面内完成特定的交互操作。 6 | 7 | 特性:支持自定义内容,与uniapp提供的API `uni.showModal` 类似,但是功能更强大,更加灵活。 8 | 9 | 运用场景:弹窗验证码输入等场景 10 | 11 | # 查看文档 12 | 13 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 14 | 15 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 16 | 17 | 18 | 19 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 20 | 21 | 22 | 23 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-navbar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.7(2023-08-16) 2 | 1. 修复ios可能存在点击返回按钮点不到的情况 3 | ## 1.0.6(2023-08-07) 4 | 1. 修复nvue在ios端可能存在背景图样式错乱的BUG 5 | ## 1.0.5(2023-08-04) 6 | 1. bgColor设置背景图片,增加imgMode属性 7 | ## 1.0.4(2023-08-01) 8 | 1. bgColor属性支持背景图片,在线图片或base64图片都可以 9 | ## 1.0.3(2023-07-03) 10 | 去除插槽判断,避免某些平台不显示的BUG 11 | ## 1.0.2(2023-06-05) 12 | 1. 兼容渐变背景色 13 | ## 1.0.1(2023-05-16) 14 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 15 | 2. 优化部分功能 16 | ## 1.0.0(2023-05-10) 17 | uv-navbar 自定义导航栏 18 | -------------------------------------------------------------------------------- /uni_modules/uv-navbar/readme.md: -------------------------------------------------------------------------------- 1 | ## Navbar 自定义导航栏 2 | 3 | > **组件名:uv-navbar** 4 | 5 | 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用自带的原生导航栏,支持渐变色、透明色、图片背景。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-no-network/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2023-05-16) 2 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 3 | 2. 优化部分功能 4 | ## 1.0.0(2023-05-10) 5 | uv-no-network 无网络提示 6 | -------------------------------------------------------------------------------- /uni_modules/uv-no-network/readme.md: -------------------------------------------------------------------------------- 1 | ## NoNetwork 无网络提示 2 | 3 | > **组件名:uv-no-network** 4 | 5 | 该组件在没有任何网络的情况下,显示在内容上方,无需任何配置,引入即可,内部自动处理所有功能和事件。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-notice-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.7(2023-10-13) 2 | 1. unmounted兼容vue3 3 | ## 1.0.6(2023-08-03) 4 | 1. 竖向滚动时候增加change回调 5 | ## 1.0.5(2023-07-21) 6 | 1. 增加icon类型,支持设置false不显示图标 7 | 2. 优化文档 8 | ## 1.0.4(2023-07-03) 9 | 1. 增加disableScroll 属性,禁止自动滚动 10 | 2. 优化文档 11 | ## 1.0.3(2023-06-04) 12 | 1. 修复text传值为null报错的问题 13 | ## 1.0.2(2023-05-30) 14 | 1. 修复error报错的BUG 15 | ## 1.0.1(2023-05-16) 16 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 17 | 2. 优化部分功能 18 | ## 1.0.0(2023-05-10) 19 | uv-notice-bar 滚动通知 20 | -------------------------------------------------------------------------------- /uni_modules/uv-notice-bar/components/uv-column-notice/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 显示的内容,字符串 4 | text: { 5 | type: [Array], 6 | default: '' 7 | }, 8 | // 是否显示左侧的音量图标 9 | icon: { 10 | type: [String, Boolean, null], 11 | default: 'volume' 12 | }, 13 | // 通告模式,link-显示右箭头,closable-显示右侧关闭图标 14 | mode: { 15 | type: String, 16 | default: '' 17 | }, 18 | // 文字颜色,各图标也会使用文字颜色 19 | color: { 20 | type: String, 21 | default: '#f9ae3d' 22 | }, 23 | // 背景颜色 24 | bgColor: { 25 | type: String, 26 | default: '#fdf6ec' 27 | }, 28 | // 字体大小,单位px 29 | fontSize: { 30 | type: [String, Number], 31 | default: 14 32 | }, 33 | // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度 34 | speed: { 35 | type: [String, Number], 36 | default: 80 37 | }, 38 | // direction = row时,是否使用步进形式滚动 39 | step: { 40 | type: Boolean, 41 | default: false 42 | }, 43 | // 滚动一个周期的时间长,单位ms 44 | duration: { 45 | type: [String, Number], 46 | default: 1500 47 | }, 48 | // 是否禁止用手滑动切换,仅`direction="column"生效` 49 | // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序 50 | disableTouch: { 51 | type: Boolean, 52 | default: true 53 | }, 54 | // 是否禁止滚动,仅`direction="column"生效` 55 | disableScroll: { 56 | type: Boolean, 57 | default: false 58 | }, 59 | ...uni.$uv?.props?.columnNotice 60 | } 61 | } -------------------------------------------------------------------------------- /uni_modules/uv-notice-bar/components/uv-row-notice/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 显示的内容,字符串 4 | text: { 5 | type: String, 6 | default: '' 7 | }, 8 | // 是否显示左侧的音量图标 9 | icon: { 10 | type: [String, Boolean, null], 11 | default: 'volume' 12 | }, 13 | // 通告模式,link-显示右箭头,closable-显示右侧关闭图标 14 | mode: { 15 | type: String, 16 | default: '' 17 | }, 18 | // 文字颜色,各图标也会使用文字颜色 19 | color: { 20 | type: String, 21 | default: '#f9ae3d' 22 | }, 23 | // 背景颜色 24 | bgColor: { 25 | type: String, 26 | default: '#fdf6ec' 27 | }, 28 | // 字体大小,单位px 29 | fontSize: { 30 | type: [String, Number], 31 | default: 14 32 | }, 33 | // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度 34 | speed: { 35 | type: [String, Number], 36 | default: 80 37 | }, 38 | ...uni.$uv?.props?.rowNotice 39 | } 40 | } -------------------------------------------------------------------------------- /uni_modules/uv-notice-bar/readme.md: -------------------------------------------------------------------------------- 1 | ## NoticeBar 滚动通知 2 | 3 | > **组件名:uv-notice-bar** 4 | 5 | 该组件用于滚动通告场景,有多种模式可供选择。灵活配置,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-notify/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-10-13) 2 | 1. unmounted兼容vue3 3 | ## 1.0.2(2023-07-02) 4 | uv-notify 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/notify.html 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | uv-notify 消息提示 10 | -------------------------------------------------------------------------------- /uni_modules/uv-notify/components/uv-notify/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 到顶部的距离 4 | top: { 5 | type: [String, Number], 6 | default: 0 7 | }, 8 | // type主题,primary,success,warning,error 9 | type: { 10 | type: String, 11 | default: 'primary' 12 | }, 13 | // 字体颜色 14 | color: { 15 | type: String, 16 | default: '#ffffff' 17 | }, 18 | // 背景颜色 19 | bgColor: { 20 | type: String, 21 | default: '' 22 | }, 23 | // 展示的文字内容 24 | message: { 25 | type: String, 26 | default: '' 27 | }, 28 | // 展示时长,为0时不消失,单位ms 29 | duration: { 30 | type: [String, Number], 31 | default: 3000 32 | }, 33 | // 字体大小 34 | fontSize: { 35 | type: [String, Number], 36 | default: 15 37 | }, 38 | // 是否留出顶部安全距离(状态栏高度) 39 | safeAreaInsetTop: { 40 | type: Boolean, 41 | default: false 42 | }, 43 | ...uni.$uv?.props?.notify 44 | } 45 | } -------------------------------------------------------------------------------- /uni_modules/uv-notify/readme.md: -------------------------------------------------------------------------------- 1 | ## Notify 消息提示 2 | 3 | > **组件名:uv-notify** 4 | 5 | 该组件一般用于页面顶部向下滑出一个提示,后自动收起的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-number-box/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-07-13) 2 | 1. 修复 uv-number-box设置value属性不生效的BUG 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-number-box 步进器 8 | -------------------------------------------------------------------------------- /uni_modules/uv-number-box/readme.md: -------------------------------------------------------------------------------- 1 | ## NumberBox 步进器 2 | 3 | > **组件名:uv-number-box** 4 | 5 | 该组件一般用于商城购物选择物品数量的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-overlay/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-07-02) 2 | uv-overlay 由于弹出层uv-transition的修改,组件内部做了相应的修改,参数不变。 3 | ## 1.0.2(2023-06-29) 4 | 1. 优化,H5端禁止穿透滚动 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | 1. 新增uv-overlay组件 10 | -------------------------------------------------------------------------------- /uni_modules/uv-overlay/components/uv-overlay/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否显示遮罩 4 | show: { 5 | type: Boolean, 6 | default: false 7 | }, 8 | // 层级z-index 9 | zIndex: { 10 | type: [String, Number], 11 | default: 10070 12 | }, 13 | // 遮罩的过渡时间,单位为ms 14 | duration: { 15 | type: [String, Number], 16 | default: 300 17 | }, 18 | // 不透明度值,当做rgba的第四个参数 19 | opacity: { 20 | type: [String, Number], 21 | default: 0.5 22 | }, 23 | ...uni.$uv?.props?.overlay 24 | } 25 | } -------------------------------------------------------------------------------- /uni_modules/uv-overlay/readme.md: -------------------------------------------------------------------------------- 1 | ## Overlay 遮罩层 2 | 3 | > **组件名:uv-overlay** 4 | 5 | 创建一个遮罩层,用于强调特定的页面元素,并阻止用户对遮罩下层的内容进行操作,一般用于弹窗场景,uv-popup、uv-toast、uv-tooltip等组件就是用了该组件。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-parse/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-07-17) 2 | 1. 优化文档 3 | 2. 优化其他 4 | ## 1.0.3(2023-06-19) 5 | 1. 修复nvue模式下不显示的BUG 6 | ## 1.0.2(2023-06-02) 7 | 1. 修复可能存在的BUG 8 | 2. 优化 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-parse 富文本解析器 14 | -------------------------------------------------------------------------------- /uni_modules/uv-parse/readme.md: -------------------------------------------------------------------------------- 1 | ## Parse 富文本解析器 2 | 3 | > **组件名:uv-parse** 4 | 5 | 该组件一般用于富文本解析场景,比如解析文章内容,商品详情,带原生`HTML`标签的各类字符串等,此组件和`uni-app`官方的`rich-text`组件功能有重合之处,但是也有不同的地方。 6 | 7 | 该插件只提供富文本的解析,该功能已经足够丰富。如果需要富文本的编辑,可使用`uniapp`官方提供的组件。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-parse/static/app-plus/uv-parse/local.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /uni_modules/uv-pick-color/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.8(2023-08-14) 2 | 1. 取消scrollTop参数,使用clientY 3 | ## 1.0.7(2023-08-13) 4 | 1. 增加scrollTop参数,设置滚动条的位置。不设置如果页面出现滚动就需要传该值,会出现颜色面板无法进行选颜色的情况。 5 | ## 1.0.6(2023-08-04) 6 | 1. 修复颜色值错误的BUG 7 | ## 1.0.5(2023-08-02) 8 | 1. 更新依赖 9 | ## 1.0.4(2023-07-02) 10 | uv-pick-color 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/pickColor.html 11 | ## 1.0.3(2023-06-12) 12 | 1. 修复在选择颜色时候百度小程序报错的BUG 13 | ## 1.0.2(2023-05-27) 14 | 1. 兼容非移动h5端不能选择的BUG 15 | ## 1.0.1(2023-05-24) 16 | 1. 去掉template中存在的this.导致头条小程序编译警告 17 | ## 1.0.0(2023-05-23) 18 | uv-pick-color 新增颜色选择器 19 | -------------------------------------------------------------------------------- /uni_modules/uv-pick-color/components/uv-pick-color/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 颜色选择器初始颜色 4 | color: { 5 | type: Object, 6 | default: () => { 7 | return { r: 0, g: 0, b: 0, a: 0 } 8 | } 9 | }, 10 | // 预制颜色 11 | prefabColor: { 12 | type: Array, 13 | default: () => [] 14 | }, 15 | // 是否允许点击遮罩关闭 16 | closeOnClickOverlay: { 17 | type: Boolean, 18 | default: true 19 | }, 20 | // 顶部标题 21 | title: { 22 | type: String, 23 | default: '' 24 | }, 25 | // 取消按钮的文字 26 | cancelText: { 27 | type: String, 28 | default: '取消' 29 | }, 30 | // 确认按钮的文字 31 | confirmText: { 32 | type: String, 33 | default: '确定' 34 | }, 35 | // 取消按钮的颜色 36 | cancelColor: { 37 | type: String, 38 | default: '#909193' 39 | }, 40 | // 确认按钮的颜色 41 | confirmColor: { 42 | type: String, 43 | default: '#3c9cff' 44 | }, 45 | ...uni.$uv?.props?.pickColor 46 | } 47 | } -------------------------------------------------------------------------------- /uni_modules/uv-pick-color/readme.md: -------------------------------------------------------------------------------- 1 | ## PickColor 颜色选择器 2 | 3 | > **组件名:uv-pick-color** 4 | 5 | 该组件为颜色选择器,支持预制颜色,初始化颜色,简单配置,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-picker/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.14(2023-12-29) 2 | 1. 修复上个版本引出的BUG 3 | ## 1.0.13(2023-12-26) 4 | 1. 修复抖音小程序滚到底不触发change的BUG 5 | ## 1.0.12(2023-11-20) 6 | 1. 修复issues反馈的问题uv-picker在组合式API的自定义组件中,columns动态赋值无法显示选项:https://gitee.com/climblee/uv-ui/issues/I8H0GQ 7 | ## 1.0.11(2023-10-11) 8 | 1. 将immediate-change默认值改为true,该值在于change回调的及时性,微信小程序生效 9 | ## 1.0.10(2023-08-25) 10 | 1. 增加round属性设置弹窗圆角,默认为0 11 | ## 1.0.9(2023-08-24) 12 | 1. 修复cli项目不返回值的问题 13 | ## 1.0.8(2023-08-04) 14 | 1. 优化 15 | ## 1.0.7(2023-08-02) 16 | 1. 改组件中删除uv-toolbar组件,请单独下载uv-toolbar组件 17 | ## 1.0.6(2023-07-02) 18 | uv-picker 由于弹出层uv-popup的修改,打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/picker.html 19 | ## 1.0.5(2023-06-26) 20 | 1. 增加color参数 21 | 2. 增加activeColor参数 22 | ## 1.0.4(2023-06-15) 23 | 1. 修改支付宝报错的BUG 24 | ## 1.0.3(2023-06-12) 25 | 1. setColumnValues的使用统一化,避免某些平台报错 26 | 2. 取消change回调回传的组件实例,直接统一通过ref的方式调取setColumnValues方法 27 | ## 1.0.2(2023-05-23) 28 | 1. uv-toolbar组件新增下边框属性 29 | ## 1.0.1(2023-05-16) 30 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 31 | 2. 优化部分功能 32 | ## 1.0.0(2023-05-10) 33 | uv-picker 选择器 34 | -------------------------------------------------------------------------------- /uni_modules/uv-picker/readme.md: -------------------------------------------------------------------------------- 1 | ## Picker 选择器 2 | 3 | > **组件名:uv-picker** 4 | 5 | 此选择器用于单列,多列,多列联动的选择场景。 6 | 7 | `uv-datetime-picker`等组件也用到了该组件,功能完善,需要特别注意的是`columns`参数的形式是数组嵌套。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-popup/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.7(2023-11-20) 2 | 修复issues问题:https://gitee.com/climblee/uv-ui/issues/I8HDLO 3 | ## 1.0.6(2023-10-13) 4 | 1. 优化vue,内容有背景色,设置圆角被遮挡的情况 5 | ## 1.0.5(2023-09-10) 6 | 1. 修复H5默认层级过高的问题 7 | 2. 修复全局设置prop无效的问题 8 | ## 1.0.4(2023-08-08) 9 | 1. 修复修改zIndex不生效的BUG 10 | ## 1.0.3(2023-07-02) 11 | uv-popup 弹出层,代码重构优化,性能翻倍,小程序体验性能更加,避免卡顿。打开和关闭方法更改,详情参考文档:https://www.uvui.cn/components/popup.html 12 | ## 1.0.2(2023-06-11) 13 | 1. 修复zIndex层级问题 14 | ## 1.0.1(2023-05-16) 15 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 16 | 2. 优化部分功能 17 | ## 1.0.0(2023-05-10) 18 | 1. 新增uv-popup组件 19 | -------------------------------------------------------------------------------- /uni_modules/uv-popup/components/uv-popup/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | // this.$once('hook:beforeDestroy', () => { 40 | // document.removeEventListener('keyup', listener) 41 | // }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /uni_modules/uv-popup/readme.md: -------------------------------------------------------------------------------- 1 | ## Popup 弹出层 2 | 3 | > **组件名:uv-popup** 4 | 5 | 弹出层容器,用于展示弹窗、信息提示等内容,支持上、下、左、右和中部弹出。组件只提供容器,内部内容由用户自定义。 6 | 7 | 该组件已经放弃原来`uview2.x`的写法,参照了官方`uni-popup`的写法进行重构。在小程序端的性能大大提升,打开和关闭避免延迟,调用方法与之前相比也有所差异,具体请查看文档。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-12-19) 2 | 1. 优化 3 | ## 1.0.4(2023-07-17) 4 | 1. 优化文档 5 | 2. 优化其他 6 | ## 1.0.3(2023-06-26) 7 | 1. H5增加属性h5SaveTip 保存二维码时候是否显示提示 8 | ## 1.0.2(2023-06-01) 9 | 1. 修复点击触发两次事件的BUG 10 | ## 1.0.1(2023-05-23) 11 | 1. 修复在部分平台不显示加载效果的BUG 12 | ## 1.0.0(2023-05-17) 13 | 1. 新增uv-qrcode组件 14 | -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/cache.js: -------------------------------------------------------------------------------- 1 | export const cacheImageList = []; -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js: -------------------------------------------------------------------------------- 1 | class FillStyleLinearGradient { 2 | 3 | constructor(x0, y0, x1, y1) { 4 | this._start_pos = { _x: x0, _y: y0 }; 5 | this._end_pos = { _x: x1, _y: y1 }; 6 | this._stop_count = 0; 7 | this._stops = [0, 0, 0, 0, 0]; 8 | } 9 | 10 | addColorStop = function (pos, color) { 11 | if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) { 12 | this._stops[this._stop_count] = { _pos: pos, _color: color }; 13 | this._stop_count++; 14 | } 15 | } 16 | } 17 | 18 | export default FillStyleLinearGradient; -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js: -------------------------------------------------------------------------------- 1 | class FillStylePattern { 2 | constructor(img, pattern) { 3 | this._style = pattern; 4 | this._img = img; 5 | } 6 | } 7 | 8 | export default FillStylePattern; -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js: -------------------------------------------------------------------------------- 1 | class FillStyleRadialGradient { 2 | constructor(x0, y0, r0, x1, y1, r1) { 3 | this._start_pos = { _x: x0, _y: y0, _r: r0 }; 4 | this._end_pos = { _x: x1, _y: y1, _r: r1 }; 5 | this._stop_count = 0; 6 | this._stops = [0, 0, 0, 0, 0]; 7 | } 8 | 9 | addColorStop(pos, color) { 10 | if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) { 11 | this._stops[this._stop_count] = { _pos: pos, _color: color }; 12 | this._stop_count++; 13 | } 14 | } 15 | } 16 | 17 | export default FillStyleRadialGradient; -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js: -------------------------------------------------------------------------------- 1 | export default class WebGLActiveInfo { 2 | className = 'WebGLActiveInfo'; 3 | 4 | constructor({ 5 | type, name, size 6 | }) { 7 | this.type = type; 8 | this.name = name; 9 | this.size = size; 10 | } 11 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Buffer.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLBuffer'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLBuffer { 10 | className = name; 11 | 12 | constructor(id) { 13 | this.id = id; 14 | } 15 | 16 | static uuid = uuid; 17 | 18 | uuid() { 19 | return uuid(this.id); 20 | } 21 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLFrameBuffer'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLFramebuffer { 10 | className = name; 11 | 12 | constructor(id) { 13 | this.id = id; 14 | } 15 | 16 | static uuid = uuid; 17 | 18 | uuid() { 19 | return uuid(this.id); 20 | } 21 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLtype.js: -------------------------------------------------------------------------------- 1 | const GLtype = {}; 2 | 3 | [ 4 | "GLbitfield", 5 | "GLboolean", 6 | "GLbyte", 7 | "GLclampf", 8 | "GLenum", 9 | "GLfloat", 10 | "GLint", 11 | "GLintptr", 12 | "GLsizei", 13 | "GLsizeiptr", 14 | "GLshort", 15 | "GLubyte", 16 | "GLuint", 17 | "GLushort" 18 | ].sort().map((typeName, i) => GLtype[typeName] = 1 >> (i + 1)); 19 | 20 | export default GLtype; 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Program.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLProgram'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLProgram { 10 | className = name; 11 | 12 | constructor(id) { 13 | this.id = id; 14 | } 15 | 16 | static uuid = uuid; 17 | 18 | uuid() { 19 | return uuid(this.id); 20 | } 21 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLRenderBuffer'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLRenderbuffer { 10 | className = name; 11 | 12 | constructor(id) { 13 | this.id = id; 14 | } 15 | 16 | static uuid = uuid; 17 | 18 | uuid() { 19 | return uuid(this.id); 20 | } 21 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Shader.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLShader'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLShader { 10 | className = name; 11 | 12 | constructor(id, type) { 13 | this.id = id; 14 | this.type = type; 15 | } 16 | 17 | static uuid = uuid; 18 | 19 | uuid() { 20 | return uuid(this.id); 21 | } 22 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js: -------------------------------------------------------------------------------- 1 | export default class WebGLShaderPrecisionFormat { 2 | className = 'WebGLShaderPrecisionFormat'; 3 | 4 | constructor({ 5 | rangeMin, rangeMax, precision 6 | }) { 7 | this.rangeMin = rangeMin; 8 | this.rangeMax = rangeMax; 9 | this.precision = precision; 10 | } 11 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Texture.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLTexture'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLTexture { 10 | className = name; 11 | 12 | constructor(id, type) { 13 | this.id = id; 14 | this.type = type; 15 | } 16 | 17 | static uuid = uuid; 18 | 19 | uuid() { 20 | return uuid(this.id); 21 | } 22 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js: -------------------------------------------------------------------------------- 1 | import {getTransferedObjectUUID} from './classUtils'; 2 | 3 | const name = 'WebGLUniformLocation'; 4 | 5 | function uuid(id) { 6 | return getTransferedObjectUUID(name, id); 7 | } 8 | 9 | export default class WebGLUniformLocation { 10 | className = name; 11 | 12 | constructor(id, type) { 13 | this.id = id; 14 | this.type = type; 15 | } 16 | 17 | static uuid = uuid; 18 | 19 | uuid() { 20 | return uuid(this.id); 21 | } 22 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/classUtils.js: -------------------------------------------------------------------------------- 1 | export function getTransferedObjectUUID(name, id) { 2 | return `${name.toLowerCase()}-${id}`; 3 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/tool.js: -------------------------------------------------------------------------------- 1 | 2 | export function ArrayBufferToBase64 (buffer) { 3 | var binary = ''; 4 | var bytes = new Uint8ClampedArray(buffer); 5 | for (var len = bytes.byteLength, i = 0; i < len; i++) { 6 | binary += String.fromCharCode(bytes[i]); 7 | } 8 | return btoa(binary); 9 | } 10 | 11 | export function Base64ToUint8ClampedArray(base64String) { 12 | const padding = '='.repeat((4 - base64String.length % 4) % 4); 13 | const base64 = (base64String + padding) 14 | .replace(/\-/g, '+') 15 | .replace(/_/g, '/'); 16 | 17 | const rawData = atob(base64); 18 | const outputArray = new Uint8ClampedArray(rawData.length); 19 | 20 | for (let i = 0; i < rawData.length; ++i) { 21 | outputArray[i] = rawData.charCodeAt(i); 22 | } 23 | return outputArray; 24 | } -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/index.js: -------------------------------------------------------------------------------- 1 | import GCanvas from './env/canvas'; 2 | import GImage from './env/image'; 3 | 4 | import GWebGLRenderingContext from './context-webgl/RenderingContext'; 5 | import GContext2D from './context-2d/RenderingContext'; 6 | 7 | import GBridgeWeex from './bridge/bridge-weex'; 8 | 9 | export let Image = GImage; 10 | 11 | export let WeexBridge = GBridgeWeex; 12 | 13 | export function enable(el, { bridge, debug, disableAutoSwap, disableComboCommands } = {}) { 14 | 15 | const GBridge = GImage.GBridge = GCanvas.GBridge = GWebGLRenderingContext.GBridge = GContext2D.GBridge = bridge; 16 | 17 | GBridge.callEnable(el.ref, [ 18 | 0, // renderMode: 0--RENDERMODE_WHEN_DIRTY, 1--RENDERMODE_CONTINUOUSLY 19 | -1, // hybridLayerType: 0--LAYER_TYPE_NONE 1--LAYER_TYPE_SOFTWARE 2--LAYER_TYPE_HARDWARE 20 | false, // supportScroll 21 | false, // newCanvasMode 22 | 1, // compatible 23 | 'white',// clearColor 24 | false // sameLevel: newCanvasMode = true && true => GCanvasView and Webview is same level 25 | ]); 26 | 27 | if (debug === true) { 28 | GBridge.callEnableDebug(); 29 | } 30 | if (disableComboCommands) { 31 | GBridge.callEnableDisableCombo(); 32 | } 33 | 34 | var canvas = new GCanvas(el.ref, { disableAutoSwap }); 35 | canvas.width = el.style.width; 36 | canvas.height = el.style.height; 37 | 38 | return canvas; 39 | }; -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/components/uv-qrcode/queue.js: -------------------------------------------------------------------------------- 1 | function Queue() { 2 | let waitingQueue = this.waitingQueue = []; 3 | let isRunning = this.isRunning = false; // 记录是否有未完成的任务 4 | 5 | function execute(task, resolve, reject) { 6 | task() 7 | .then((data) => { 8 | resolve(data); 9 | }) 10 | .catch((e) => { 11 | reject(e); 12 | }) 13 | .finally(() => { 14 | // 等待任务队列中如果有任务,则触发它;否则设置isRunning = false,表示无任务状态 15 | if (waitingQueue.length) { 16 | const next = waitingQueue.shift(); 17 | execute(next.task, next.resolve, next.reject); 18 | } else { 19 | isRunning = false; 20 | } 21 | }); 22 | } 23 | this.exec = function(task) { 24 | return new Promise((resolve, reject) => { 25 | if (isRunning) { 26 | waitingQueue.push({ 27 | task, 28 | resolve, 29 | reject 30 | }); 31 | } else { 32 | isRunning = true; 33 | execute(task, resolve, reject); 34 | } 35 | }); 36 | } 37 | } 38 | 39 | /* 队列实例,某些平台一起使用多个组件时需要通过队列逐一绘制,否则部分绘制方法异常,nvue端的iOS gcanvas尤其明显,在不通过队列绘制时会出现图片丢失的情况 */ 40 | export const queueDraw = new Queue(); 41 | export const queueLoadImage = new Queue(); -------------------------------------------------------------------------------- /uni_modules/uv-qrcode/readme.md: -------------------------------------------------------------------------------- 1 | ## QRCode 二维码生成器 2 | 3 | > **组件名:uv-qrcode** 4 | 5 | 超级强大二维码生成组件,可扩展性高。自定义二维码样式,如随机颜色、圆点、方块、块与块之间的间距等等,具体请在下方查看文档。 6 | 7 | 灵活配置,开箱即用,文档全面,支持自定义二维码风格。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-radio/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.13(2023-12-19) 2 | 1. 修复在group设置labelColor不生效的BUG 3 | ## 1.0.12(2023-11-04) 4 | 1. 修复label文字较多不分行的问题 5 | ## 1.0.11(2023-10-11) 6 | 1. 优化:https://gitee.com/climblee/uv-ui/issues/I872VD 7 | ## 1.0.10(2023-09-01) 8 | 1. 修复点击空隙处无效的问题 9 | 2. label支持插槽下可点击 10 | ## 1.0.9(2023-08-27) 11 | 1. 优化 12 | ## 1.0.8(2023-08-26) 13 | 1. 修复v-model 绑定布尔值控制台报警 14 | ## 1.0.7(2023-08-26) 15 | 1. 修复设置 labelSize 属性设置无效的问题:https://gitee.com/climblee/uv-ui/issues/I7W6UN 16 | ## 1.0.6(2023-08-04) 17 | 1. 修复name为数字0时不能选中的BUG 18 | ## 1.0.5(2023-07-13) 19 | 1. 修复 uv-radio设置value属性不生效的BUG 20 | ## 1.0.4(2023-07-05) 21 | 修复vue3模式下,动态修改v-model绑定的值无效的BUG 22 | ## 1.0.3(2023-06-06) 23 | 1. 修正语法问题 24 | ## 1.0.2(2023-06-06) 25 | 1. uv-radio-group 兼容自定义样式customStyle,方便通过样式调整整体位置等 26 | 2. .uv-radio-group--row增加flex-wrap: wrap;允许换行 27 | ## 1.0.1(2023-05-16) 28 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 29 | 2. 优化部分功能 30 | ## 1.0.0(2023-05-10) 31 | uv-radio 单选框 32 | -------------------------------------------------------------------------------- /uni_modules/uv-radio/components/uv-radio/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // radio的名称 4 | name: { 5 | type: [String, Number, Boolean], 6 | default: '' 7 | }, 8 | // 形状,square为方形,circle为圆型 9 | shape: { 10 | type: String, 11 | default: '' 12 | }, 13 | // 是否禁用 14 | disabled: { 15 | type: [String, Boolean], 16 | default: '' 17 | }, 18 | // 是否禁止点击提示语选中单选框 19 | labelDisabled: { 20 | type: [String, Boolean], 21 | default: '' 22 | }, 23 | // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值 24 | activeColor: { 25 | type: String, 26 | default: '' 27 | }, 28 | // 未选中的颜色 29 | inactiveColor: { 30 | type: String, 31 | default: '' 32 | }, 33 | // 图标的大小,单位px 34 | iconSize: { 35 | type: [String, Number], 36 | default: '' 37 | }, 38 | // label的字体大小,px单位 39 | labelSize: { 40 | type: [String, Number], 41 | default: '' 42 | }, 43 | // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式 44 | label: { 45 | type: [String, Number, Boolean], 46 | default: '' 47 | }, 48 | // 整体的大小 49 | size: { 50 | type: [String, Number], 51 | default: '' 52 | }, 53 | // 图标颜色 54 | iconColor: { 55 | type: String, 56 | default: '' 57 | }, 58 | // label的颜色 59 | labelColor: { 60 | type: String, 61 | default: '' 62 | }, 63 | ...uni.$uv?.props?.radio 64 | } 65 | } -------------------------------------------------------------------------------- /uni_modules/uv-radio/readme.md: -------------------------------------------------------------------------------- 1 | ## Radio 单选框 2 | 3 | > **组件名:uv-radio** 4 | 5 | 单选框用于有一个选择,用户只能选择其中一个的场景。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-rate/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.7(2023-08-24) 2 | 1. 修复支付宝不能选半星的BUG 3 | ## 1.0.6(2023-08-23) 4 | 1. 修复支付宝报错的BUG 5 | ## 1.0.5(2023-07-13) 6 | 优化代码 7 | ## 1.0.4(2023-07-13) 8 | 1. 修复value/v-model更改不生效的BUG 9 | ## 1.0.3(2023-06-05) 10 | 1. 修复只读或禁止状态下设置value无效的问题 11 | ## 1.0.2(2023-05-16) 12 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 13 | 2. 优化部分功能 14 | ## 1.0.1(2023-05-12) 15 | 1. 修复vue3中双向绑定问题 16 | ## 1.0.0(2023-05-10) 17 | uv-rate 评分 18 | -------------------------------------------------------------------------------- /uni_modules/uv-rate/components/uv-rate/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | value: { 4 | type: [String, Number], 5 | default: 0 6 | }, 7 | modelValue: { 8 | type: [String, Number], 9 | default: 0 10 | }, 11 | // 要显示的星星数量 12 | count: { 13 | type: [String, Number], 14 | default: 5 15 | }, 16 | // 是否不可选中 17 | disabled: { 18 | type: Boolean, 19 | default: false 20 | }, 21 | // 是否只读 22 | readonly: { 23 | type: Boolean, 24 | default: false 25 | }, 26 | // 星星的大小,单位px 27 | size: { 28 | type: [String, Number], 29 | default: 18 30 | }, 31 | // 未选中时的颜色 32 | inactiveColor: { 33 | type: String, 34 | default: '#b2b2b2' 35 | }, 36 | // 选中的颜色 37 | activeColor: { 38 | type: String, 39 | default: '#FA3534' 40 | }, 41 | // 星星之间的间距,单位px 42 | gutter: { 43 | type: [String, Number], 44 | default: 4 45 | }, 46 | // 最少能选择的星星个数 47 | minCount: { 48 | type: [String, Number], 49 | default: 1 50 | }, 51 | // 是否允许半星 52 | allowHalf: { 53 | type: Boolean, 54 | default: false 55 | }, 56 | // 选中时的图标(星星) 57 | activeIcon: { 58 | type: String, 59 | default: 'star-fill' 60 | }, 61 | // 未选中时的图标(星星) 62 | inactiveIcon: { 63 | type: String, 64 | default: 'star' 65 | }, 66 | // 是否可以通过滑动手势选择评分 67 | touchable: { 68 | type: Boolean, 69 | default: false 70 | }, 71 | ...uni.$uv?.props?.rate 72 | } 73 | } -------------------------------------------------------------------------------- /uni_modules/uv-rate/readme.md: -------------------------------------------------------------------------------- 1 | ## Rate 评分 2 | 3 | > **组件名:uv-rate** 4 | 5 | 该组件为星型评分,可用于满意度调查等场景。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-read-more/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-09-13) 2 | 1. 修复全局设置rpx,导致展开高度不对的BUG 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | uv-read-more 展开阅读更多 8 | -------------------------------------------------------------------------------- /uni_modules/uv-read-more/components/uv-read-more/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 默认的显示占位高度 4 | showHeight: { 5 | type: [String, Number], 6 | default: 400 7 | }, 8 | // 展开后是否显示"收起"按钮 9 | toggle: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | // 关闭时的提示文字 14 | closeText: { 15 | type: String, 16 | default: '展开阅读全文' 17 | }, 18 | // 展开时的提示文字 19 | openText: { 20 | type: String, 21 | default: '收起' 22 | }, 23 | // 提示的文字颜色 24 | color: { 25 | type: String, 26 | default: '#2979ff' 27 | }, 28 | // 提示文字的大小 29 | fontSize: { 30 | type: [String, Number], 31 | default: 14 32 | }, 33 | // 是否显示阴影 34 | // 此参数不能写在props/readMore.js中进行默认配置,因为使用了条件编译,在外部js中 35 | // uni无法准确识别当前是否处于nvue还是非nvue下 36 | shadowStyle: { 37 | type: Object, 38 | default: () => ({ 39 | // #ifndef APP-NVUE 40 | backgroundImage: 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)', 41 | // #endif 42 | // #ifdef APP-NVUE 43 | // nvue上不支持设置复杂的backgroundImage属性 44 | backgroundImage: 'linear-gradient(to top, #fff, rgba(255, 255, 255, 0.5))', 45 | // #endif 46 | paddingTop: '100px', 47 | marginTop: '-100px' 48 | }) 49 | }, 50 | // 段落首行缩进的字符个数 51 | textIndent: { 52 | type: String, 53 | default: '2em' 54 | }, 55 | // open和close事件时,将此参数返回在回调参数中 56 | name: { 57 | type: [String, Number], 58 | default: '' 59 | }, 60 | ...uni.$uv?.props?.readMore 61 | } 62 | } -------------------------------------------------------------------------------- /uni_modules/uv-read-more/readme.md: -------------------------------------------------------------------------------- 1 | ## ReadMore 展开阅读更多 2 | 3 | > **组件名:uv-read-more** 4 | 5 | 该组件一般用于内容较长,预先收起一部分,点击展开全部内容的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-row/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2023-05-16) 2 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 3 | 2. 优化部分功能 4 | ## 1.0.0(2023-05-10) 5 | uv-row layout布局 6 | -------------------------------------------------------------------------------- /uni_modules/uv-row/components/uv-col/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 占父容器宽度的多少等分,总分为12份 4 | span: { 5 | type: [String, Number], 6 | default: 12 7 | }, 8 | // 指定栅格左侧的间隔数(总12栏) 9 | offset: { 10 | type: [String, Number], 11 | default: 0 12 | }, 13 | // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`) 14 | justify: { 15 | type: String, 16 | default: 'start' 17 | }, 18 | // 垂直对齐方式,可选值为top、center、bottom、stretch 19 | align: { 20 | type: String, 21 | default: 'stretch' 22 | }, 23 | // 文字对齐方式 24 | textAlign: { 25 | type: String, 26 | default: 'left' 27 | }, 28 | ...uni.$uv?.props?.col 29 | } 30 | } -------------------------------------------------------------------------------- /uni_modules/uv-row/components/uv-row/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 给col添加间距,左右边距各占一半 4 | gutter: { 5 | type: [String, Number], 6 | default: 0 7 | }, 8 | // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`) 9 | justify: { 10 | type: String, 11 | default: 'start' 12 | }, 13 | // 垂直对齐方式,可选值为top、center、bottom 14 | align: { 15 | type: String, 16 | default: 'center' 17 | }, 18 | ...uni.$uv?.props?.row 19 | } 20 | } -------------------------------------------------------------------------------- /uni_modules/uv-row/readme.md: -------------------------------------------------------------------------------- 1 | ## Layout 布局 2 | 3 | > **组件名:uv-row** 4 | 5 | 通过基础的 12 分栏,迅速简便地创建布局 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-safe-bottom/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-09-14) 2 | 1. 飞书小程序支持 3 | ## 1.0.3(2023-08-14) 4 | 1. 修复百度报错的BUG 5 | ## 1.0.2(2023-07-02) 6 | uv-safe-bottom 修复,在百度程序,抖音小程序不生效的BUG 7 | ## 1.0.1(2023-05-16) 8 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 9 | 2. 优化部分功能 10 | ## 1.0.0(2023-05-10) 11 | uv-safe-bottom 底部安全区组件 12 | -------------------------------------------------------------------------------- /uni_modules/uv-safe-bottom/readme.md: -------------------------------------------------------------------------------- 1 | ## SafeBottom 底部安全区 2 | 3 | > **组件名:uv-safe-bottom** 4 | 5 | 这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-scroll-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-11-15) 2 | 1. 修复微信报错的BUG 3 | ## 1.0.4(2023-11-14) 4 | 1. 兼容全局设置rpx 5 | ## 1.0.3(2023-08-19) 6 | 1. 修复报错导致不能移动指示器的BUG 7 | ## 1.0.2(2023-08-08) 8 | 1. 修复vue2编译报错的BUG 9 | ## 1.0.1(2023-07-21) 10 | 1. 优化 11 | ## 1.0.0(2023-07-21) 12 | 1. 新增uv-scroll-liast 横向滚动表组件 13 | -------------------------------------------------------------------------------- /uni_modules/uv-scroll-list/components/uv-scroll-list/nvue.js: -------------------------------------------------------------------------------- 1 | // 引入bindingx,此库类似于微信小程序wxs,目的是让js运行在视图层,减少视图层和逻辑层的通信折损 2 | const BindingX = uni.requireNativePlugin('bindingx') 3 | export default { 4 | methods: { 5 | // 此处不写注释,请自行体会 6 | nvueScrollHandler(e) { 7 | if (this.indicator) { 8 | const anchor = this.$refs['uv-scroll-list__scroll-view'].ref 9 | const element = this.$refs['uv-scroll-list__indicator__line__bar'].ref 10 | const scrollLeft = e.contentOffset.x 11 | const contentSize = e.contentSize.width 12 | const { scrollWidth } = this 13 | const barAllMoveWidth = this.indicatorWidth - this.indicatorBarWidth 14 | // 在安卓和iOS上,需要除的倍数不一样,iOS需要除以2 15 | const actionNum = this.$uv.os() === 'ios' ? 2 : 1 16 | const expression = `(x / ${actionNum}) / ${contentSize - scrollWidth} * ${this.$uv.getPx(this.$uv.addUnit(barAllMoveWidth))}` 17 | BindingX.bind({ 18 | anchor, 19 | eventType: 'scroll', 20 | props: [{ 21 | element, 22 | property: 'transform.translateX', 23 | expression 24 | }] 25 | }) 26 | } 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /uni_modules/uv-scroll-list/components/uv-scroll-list/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 指示器的整体宽度 4 | indicatorWidth: { 5 | type: [String, Number], 6 | default: 50 7 | }, 8 | // 滑块的宽度 9 | indicatorBarWidth: { 10 | type: [String, Number], 11 | default: 20 12 | }, 13 | // 是否显示面板指示器 14 | indicator: { 15 | type: Boolean, 16 | default: true 17 | }, 18 | // 指示器非激活颜色 19 | indicatorColor: { 20 | type: String, 21 | default: '#f2f2f2' 22 | }, 23 | // 指示器的激活颜色 24 | indicatorActiveColor: { 25 | type: String, 26 | default: '#3c9cff' 27 | }, 28 | // 指示器样式,可通过bottom,left,right进行定位 29 | indicatorStyle: { 30 | type: [String, Object], 31 | default: '' 32 | }, 33 | ...uni.$uv?.props?.scrollList 34 | } 35 | } -------------------------------------------------------------------------------- /uni_modules/uv-scroll-list/readme.md: -------------------------------------------------------------------------------- 1 | ## ScrollList 横向滚动列表 2 | 3 | > **组件名:uv-scroll-list** 4 | 5 | 该组件一般用于同时展示多个商品、分类的场景,也可以完成左右滑动的列表,往往数量不确定,数量较多支持左右滚动。灵活配置,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-search/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.11(2023-11-10) 2 | 1. 调整清除按钮样式的marginLeft,避免微信上多数情况触发不了的BUG 3 | ## 1.0.10(2023-11-04) 4 | 1. 修复设置disabled情况下,@click回调事件触发不了的bug 5 | ## 1.0.9(2023-08-18) 6 | 1. 修复boxStyle失效的BUG 7 | ## 1.0.8(2023-08-07) 8 | 修复值为null或undefined时显示错误的bug 9 | ## 1.0.7(2023-08-05) 10 | 1. 修复在vue2模式下,v-model设置为0时不生效的BUG 11 | ## 1.0.6(2023-07-26) 12 | 1. 增加boxStyle参数,方便控制输入框部分的样式 13 | ## 1.0.5(2023-07-26) 14 | 1. 增加prefix和suffix 前置和后置插槽 15 | ## 1.0.4(2023-07-13) 16 | 1. 修复value值清空不生效的BUG 17 | ## 1.0.3(2023-07-13) 18 | 1. 修复value/v-model更改不生效的BUG 19 | ## 1.0.2(2023-07-03) 20 | 去除无用的插槽 21 | ## 1.0.1(2023-05-16) 22 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 23 | 2. 优化部分功能 24 | ## 1.0.0(2023-05-10) 25 | uv-search 搜索 26 | -------------------------------------------------------------------------------- /uni_modules/uv-search/readme.md: -------------------------------------------------------------------------------- 1 | ## Search 搜索 2 | 3 | > **组件名:uv-search** 4 | 5 | 搜索组件,集成了常见搜索框所需功能,支持前后插槽,用户可以一键引入,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-skeleton/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-11-02) 2 | 1. **`uv-skeleton`不再维护,强烈推荐使用新版本`uv-skeletons`** 3 | 2. 推荐大家使用新版骨架屏,作者已经运用到大量实战中了,绝对正品:[https://ext.dcloud.net.cn/plugin?name=uv-skeletons](https://ext.dcloud.net.cn/plugin?name=uv-skeletons) 4 | 3. 新版本`uv-skeletons`的优点:灵活度非常高,直接配置数组就可以完成想要的布局,作者已经运用到大量实战中。鼓励老用户迁移新版本,有任何问题可以加Q群549833913交流。 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | uv-skeleton 骨架屏 10 | -------------------------------------------------------------------------------- /uni_modules/uv-skeleton/components/uv-skeleton/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否展示骨架组件 4 | loading: { 5 | type: Boolean, 6 | default: true 7 | }, 8 | // 是否开启动画效果 9 | animate: { 10 | type: Boolean, 11 | default: true 12 | }, 13 | // 段落占位图行数 14 | rows: { 15 | type: [String, Number], 16 | default: 0 17 | }, 18 | // 段落占位图的宽度 19 | rowsWidth: { 20 | type: [String, Number, Array], 21 | default: '100%' 22 | }, 23 | // 段落占位图的高度 24 | rowsHeight: { 25 | type: [String, Number, Array], 26 | default: 18 27 | }, 28 | // 段落占位图的左边距 29 | rowsLeft: { 30 | type: [String, Number, Array], 31 | default: 0 32 | }, 33 | // 是否展示标题占位图 34 | title: { 35 | type: Boolean, 36 | default: true 37 | }, 38 | // 段落标题的宽度 39 | titleWidth: { 40 | type: [String, Number], 41 | default: '50%' 42 | }, 43 | // 段落标题的高度 44 | titleHeight: { 45 | type: [String, Number], 46 | default: 18 47 | }, 48 | // 是否展示头像占位图 49 | avatar: { 50 | type: Boolean, 51 | default: false 52 | }, 53 | // 头像占位图大小 54 | avatarSize: { 55 | type: [String, Number], 56 | default: 32 57 | }, 58 | // 头像占位图的形状,circle-圆形,square-方形 59 | avatarShape: { 60 | type: String, 61 | default: 'circle' 62 | }, 63 | ...uni.$uv?.props?.skeleton 64 | } 65 | } -------------------------------------------------------------------------------- /uni_modules/uv-skeleton/readme.md: -------------------------------------------------------------------------------- 1 | ## Skeleton 骨架屏 2 | 3 | > **组件名:uv-skeleton** 4 | 5 | 骨架屏一般用于页面在请求远程数据尚未完成时,页面用灰色块预显示本来的页面结构,给用户更好的体验。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-skeletons/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2023-11-15) 2 | 1. 修复支付宝小程序报错的BUG 3 | ## 1.0.0(2023-10-30) 4 | 1. 新版骨架屏上线 5 | -------------------------------------------------------------------------------- /uni_modules/uv-skeletons/readme.md: -------------------------------------------------------------------------------- 1 | # Skeletons 新版骨架屏 2 | 3 | > **组件名:uv-skeletons** 4 | 5 | 骨架屏一般用于页面在请求远程数据尚未完成时,在内容加载出来前展示与内容布局结构一致的灰白块,提升用户视觉体验。 6 | 7 | 新版骨架屏与老版本使用参数有很大的区别,所以才有了新版本,无法替换老版本。 8 | 9 | 新版骨架屏比老版本骨架屏更加灵活,理论上简单的左右上下布局结构均可以轻松实现,样式自由度较高,只要你会写css,推荐使用新版。 10 | 11 | # 查看文档 12 | 13 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 14 | 15 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 16 | 17 | 18 | 19 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 20 | 21 | 22 | 23 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-slider/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-07-25) 2 | 1. 将inactiveColor修正为backgroundColor 参数,避免不生效 3 | ## 1.0.2(2023-07-13) 4 | 1. 修复 uv-slider设置value属性不生效的BUG 5 | ## 1.0.1(2023-05-16) 6 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 7 | 2. 优化部分功能 8 | ## 1.0.0(2023-05-10) 9 | uv-slider 滑动选择器 10 | -------------------------------------------------------------------------------- /uni_modules/uv-slider/components/uv-slider/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | value: { 4 | type: [Number, String], 5 | default: 0 6 | }, 7 | modelValue: { 8 | type: [Number, String], 9 | default: 0 10 | }, 11 | // 最小可选值 12 | min: { 13 | type: [Number, String], 14 | default: 0 15 | }, 16 | // 最大可选值 17 | max: { 18 | type: [Number, String], 19 | default: 100 20 | }, 21 | // 步长,取值必须大于 0,并且可被(max - min)整除 22 | step: { 23 | type: [Number, String], 24 | default: 1 25 | }, 26 | // 滑块右侧已选择部分的背景色 27 | activeColor: { 28 | type: String, 29 | default: '#2979ff' 30 | }, 31 | // 滑块左侧未选择部分的背景色 32 | backgroundColor: { 33 | type: String, 34 | default: '#c0c4cc' 35 | }, 36 | // 滑块的大小,取值范围为 12 - 28 37 | blockSize: { 38 | type: [Number, String], 39 | default: 18 40 | }, 41 | // 滑块的颜色 42 | blockColor: { 43 | type: String, 44 | default: '#ffffff' 45 | }, 46 | // 禁用状态 47 | disabled: { 48 | type: Boolean, 49 | default: false 50 | }, 51 | // 是否显示当前的选择值 52 | showValue: { 53 | type: Boolean, 54 | default: false 55 | }, 56 | ...uni.$uv?.props?.slider 57 | } 58 | } -------------------------------------------------------------------------------- /uni_modules/uv-slider/components/uv-slider/uv-slider.vue: -------------------------------------------------------------------------------- 1 | 22 | 58 | 59 | -------------------------------------------------------------------------------- /uni_modules/uv-slider/readme.md: -------------------------------------------------------------------------------- 1 | ## Slider 滑动选择器 2 | 3 | > **组件名:uv-slider** 4 | 5 | 该组件一般用于表单中,手动选择一个区间范围的场景。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 14 | 15 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 16 | -------------------------------------------------------------------------------- /uni_modules/uv-status-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2023-06-05) 2 | 1. 兼容渐变背景色 3 | ## 1.0.1(2023-05-16) 4 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 5 | 2. 优化部分功能 6 | ## 1.0.0(2023-05-10) 7 | 1. 新增uv-status-bar组件 8 | -------------------------------------------------------------------------------- /uni_modules/uv-status-bar/components/uv-status-bar/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | bgColor: { 4 | type: String, 5 | default: 'transparent' 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uv-status-bar/readme.md: -------------------------------------------------------------------------------- 1 | ## StatbusBar 状态栏占位 2 | 3 | > **组件名:uv-status-bar** 4 | 5 | 本组件主要用于状态填充,比如在自定导航栏的时候,它会自动适配一个恰当的状态栏高度。 6 | 7 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 8 | 9 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 10 | 11 | -------------------------------------------------------------------------------- /uni_modules/uv-steps/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-06-29) 2 | 1. 增加customStyle参数,方便设置样式 3 | ## 1.0.2(2023-06-29) 4 | 1. 新增title自定义 5 | 2. 完善文档说明 6 | ## 1.0.1(2023-05-16) 7 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 8 | 2. 优化部分功能 9 | ## 1.0.0(2023-05-10) 10 | uv-steps 步骤条 11 | -------------------------------------------------------------------------------- /uni_modules/uv-steps/components/uv-steps-item/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 标题 4 | title: { 5 | type: [String, Number], 6 | default: '' 7 | }, 8 | // 描述文本 9 | desc: { 10 | type: [String, Number], 11 | default: '' 12 | }, 13 | // 图标大小 14 | iconSize: { 15 | type: [String, Number], 16 | default: 17 17 | }, 18 | // 当前步骤是否处于失败状态 19 | error: { 20 | type: Boolean, 21 | default: false 22 | }, 23 | ...uni.$uv?.props?.stepsItem 24 | } 25 | } -------------------------------------------------------------------------------- /uni_modules/uv-steps/components/uv-steps/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 排列方向 4 | direction: { 5 | type: String, 6 | default: 'row' 7 | }, 8 | // 设置第几个步骤 9 | current: { 10 | type: [String, Number], 11 | default: 0 12 | }, 13 | // 激活状态颜色 14 | activeColor: { 15 | type: String, 16 | default: '#3c9cff' 17 | }, 18 | // 未激活状态颜色 19 | inactiveColor: { 20 | type: String, 21 | default: '#969799' 22 | }, 23 | // 激活状态的图标 24 | activeIcon: { 25 | type: String, 26 | default: '' 27 | }, 28 | // 未激活状态图标 29 | inactiveIcon: { 30 | type: String, 31 | default: '' 32 | }, 33 | // 是否显示点类型 34 | dot: { 35 | type: Boolean, 36 | default: false 37 | }, 38 | ...uni.$uv?.props?.steps 39 | } 40 | } -------------------------------------------------------------------------------- /uni_modules/uv-steps/readme.md: -------------------------------------------------------------------------------- 1 | ## Steps 步骤条 2 | 3 | > **组件名:uv-steps** 4 | 5 | 该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-sticky/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-12-20) 2 | 1. 优化 3 | ## 1.0.3(2023-10-13) 4 | 1. unmounted兼容vue3 5 | ## 1.0.2(2023-08-27) 6 | 1. 优化 7 | ## 1.0.1(2023-05-16) 8 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 9 | 2. 优化部分功能 10 | ## 1.0.0(2023-05-10) 11 | uv-sticky 吸顶 12 | -------------------------------------------------------------------------------- /uni_modules/uv-sticky/components/uv-sticky/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px 4 | offsetTop: { 5 | type: [String, Number], 6 | default: 0 7 | }, 8 | // 自定义导航栏的高度 9 | customNavHeight: { 10 | type: [String, Number], 11 | // #ifdef H5 12 | // H5端的导航栏属于“自定义”导航栏的范畴,因为它是非原生的,与普通元素一致 13 | default: 44, 14 | // #endif 15 | // #ifndef H5 16 | default: 0 17 | // #endif 18 | }, 19 | // 是否禁用吸顶功能 20 | disabled: { 21 | type: Boolean, 22 | default: false 23 | }, 24 | // 吸顶区域的背景颜色 25 | bgColor: { 26 | type: String, 27 | default: 'transparent' 28 | }, 29 | // z-index值 30 | zIndex: { 31 | type: [String, Number], 32 | default: '' 33 | }, 34 | // 列表中的索引值 35 | index: { 36 | type: [String, Number], 37 | default: '' 38 | }, 39 | ...uni.$uv?.props?.sticky 40 | } 41 | } -------------------------------------------------------------------------------- /uni_modules/uv-sticky/readme.md: -------------------------------------------------------------------------------- 1 | ## Sticky 吸顶 2 | 3 | > **组件名:uv-sticky** 4 | 5 | 该组件与CSS中position: sticky属性实现的效果一致,当组件达到预设的到顶部距离时, 就会固定在指定位置,组件位置大于预设的顶部距离时,会重新按照正常的布局排列。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-subsection/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-12-20) 2 | 1. 优化 3 | ## 1.0.2(2023-11-27) 4 | 1. 增加customItemStyle属性,方便修改bar样式 5 | 2. 文档后续更新 6 | ## 1.0.1(2023-05-16) 7 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 8 | 2. 优化部分功能 9 | ## 1.0.0(2023-05-10) 10 | uv-subsection 分段器 11 | -------------------------------------------------------------------------------- /uni_modules/uv-subsection/components/uv-subsection/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // tab的数据 4 | list: { 5 | type: Array, 6 | default: () => [] 7 | }, 8 | // 当前活动的tab的index 9 | current: { 10 | type: [String, Number], 11 | default: 0 12 | }, 13 | // 激活的颜色 14 | activeColor: { 15 | type: String, 16 | default: '#3c9cff' 17 | }, 18 | // 未激活的颜色 19 | inactiveColor: { 20 | type: String, 21 | default: '#303133' 22 | }, 23 | // 模式选择,mode=button为按钮形式,mode=subsection时为分段模式 24 | mode: { 25 | type: String, 26 | default: 'button' 27 | }, 28 | // 字体大小 29 | fontSize: { 30 | type: [String, Number], 31 | default: 12 32 | }, 33 | // 激活tab的字体是否加粗 34 | bold: { 35 | type: Boolean, 36 | default: true 37 | }, 38 | // mode = button时,组件背景颜色 39 | bgColor: { 40 | type: String, 41 | default: '#eeeeef' 42 | }, 43 | // 从list元素对象中读取的键名 44 | keyName: { 45 | type: String, 46 | default: 'name' 47 | }, 48 | customItemStyle: { 49 | type: [String, Object], 50 | default: '' 51 | }, 52 | ...uni.$uv?.props?.subsection 53 | } 54 | } -------------------------------------------------------------------------------- /uni_modules/uv-subsection/readme.md: -------------------------------------------------------------------------------- 1 | ## Subsection 分段器 2 | 3 | > **组件名:uv-subsection** 4 | 5 | 该分段器一般用于用户从几个选项中选择某一个的场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-swipe-action/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-10-13) 2 | 1. 优化 3 | ## 1.0.3(2023-10-13) 4 | 1. unmounted兼容vue3 5 | ## 1.0.2(2023-05-27) 6 | 1. 不支持抖音小程序说明 7 | ## 1.0.1(2023-05-16) 8 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 9 | 2. 优化部分功能 10 | ## 1.0.0(2023-05-10) 11 | uv-swipe-action 滑动单元格 12 | -------------------------------------------------------------------------------- /uni_modules/uv-swipe-action/components/uv-swipe-action-item/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 控制打开或者关闭 4 | show: { 5 | type: Boolean, 6 | default: false 7 | }, 8 | // 标识符,如果是v-for,可用index索引值 9 | name: { 10 | type: [String, Number], 11 | default: '' 12 | }, 13 | // 是否禁用 14 | disabled: { 15 | type: Boolean, 16 | default: false 17 | }, 18 | // 是否自动关闭其他swipe按钮组 19 | autoClose: { 20 | type: Boolean, 21 | default: true 22 | }, 23 | // 滑动距离阈值,只有大于此值,才被认为是要打开菜单 24 | threshold: { 25 | type: Number, 26 | default: 20 27 | }, 28 | // 右侧按钮内容 29 | options: { 30 | type: Array, 31 | default: () => [] 32 | }, 33 | // 动画过渡时间,单位ms 34 | duration: { 35 | type: [String, Number], 36 | default: 300 37 | }, 38 | ...uni.$uv?.props?.swipeActionItem 39 | } 40 | } -------------------------------------------------------------------------------- /uni_modules/uv-swipe-action/components/uv-swipe-action-item/wxs.js: -------------------------------------------------------------------------------- 1 | export default { 2 | methods: { 3 | // 关闭时执行 4 | closeHandler() { 5 | this.status = 'close' 6 | }, 7 | setState(status) { 8 | this.status = status 9 | }, 10 | closeOther() { 11 | // 尝试关闭其他打开的单元格 12 | this.parent && this.parent.closeOther(this) 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /uni_modules/uv-swipe-action/components/uv-swipe-action/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否自动关闭其他swipe按钮组 4 | autoClose: { 5 | type: Boolean, 6 | default: true 7 | }, 8 | ...uni.$uv?.props?.swipeAction 9 | } 10 | } -------------------------------------------------------------------------------- /uni_modules/uv-swipe-action/readme.md: -------------------------------------------------------------------------------- 1 | ## SwipeAction 滑动单元格 2 | 3 | > **组件名:uv-swipe-action** 4 | 5 | 该组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-swiper/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.6(2023-12-20) 2 | 1. 优化 3 | ## 1.0.5(2023-08-24) 4 | 1. 修复标题文字过多未隐藏掉的BUG 5 | ## 1.0.4(2023-07-24) 6 | 1. 增加 滑动方向是否为纵向 属性vertical 7 | ## 1.0.3(2023-06-27) 8 | 1. 增加titleStyle属性,方便修改标题样式 9 | 2. 标题上去掉是否是图片的判断,避免无后缀的图片不显示 10 | ## 1.0.2(2023-06-01) 11 | 1. 修复点击触发两次事件的BUG 12 | ## 1.0.1(2023-05-16) 13 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 14 | 2. 优化部分功能 15 | ## 1.0.0(2023-05-10) 16 | uv-swiper 轮播图,走马灯 17 | -------------------------------------------------------------------------------- /uni_modules/uv-swiper/components/uv-swiper-indicator/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 轮播的长度 4 | length: { 5 | type: [String, Number], 6 | default: 0 7 | }, 8 | // 当前处于活动状态的轮播的索引 9 | current: { 10 | type: [String, Number], 11 | default: 0 12 | }, 13 | // 指示器非激活颜色 14 | indicatorActiveColor: { 15 | type: String, 16 | default: '' 17 | }, 18 | // 指示器的激活颜色 19 | indicatorInactiveColor: { 20 | type: String, 21 | default: '' 22 | }, 23 | // 指示器模式,line-线型,dot-点型 24 | indicatorMode: { 25 | type: String, 26 | default: '' 27 | }, 28 | ...uni.$uv?.props?.swiperIndicator 29 | } 30 | } -------------------------------------------------------------------------------- /uni_modules/uv-swiper/readme.md: -------------------------------------------------------------------------------- 1 | ## Swiper 轮播图 2 | 3 | > **组件名:uv-swiper** 4 | 5 | 该组件为轮播、跑马灯,支持卡片式。一般用于导航轮播,广告展示等场景,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-switch/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-09-21) 2 | 1. 优化细节 3 | ## 1.0.4(2023-08-23) 4 | 1. 取消value传值,只能使用v-model传值,避免异步操作不生效的BUG 5 | ## 1.0.3(2023-07-13) 6 | 1. 修复 uv-switch设置value属性不生效的BUG 7 | ## 1.0.2(2023-06-19) 8 | 1. size属性兼容和单位一起使用 9 | 10 | ## 1.0.1(2023-05-16) 11 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 12 | 2. 优化部分功能 13 | ## 1.0.0(2023-05-10) 14 | uv-switch 开关选择器 15 | -------------------------------------------------------------------------------- /uni_modules/uv-switch/components/uv-switch/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | value: { 4 | type: [Boolean, String, Number], 5 | default: false 6 | }, 7 | modelValue: { 8 | type: [Boolean, String, Number], 9 | default: false 10 | }, 11 | // 是否为加载中状态 12 | loading: { 13 | type: Boolean, 14 | default: false 15 | }, 16 | // 是否为禁用装填 17 | disabled: { 18 | type: Boolean, 19 | default: false 20 | }, 21 | // 开关尺寸,单位px 22 | size: { 23 | type: [String, Number], 24 | default: 25 25 | }, 26 | // 打开时的背景颜色 27 | activeColor: { 28 | type: String, 29 | default: '#2979ff' 30 | }, 31 | // 关闭时的背景颜色 32 | inactiveColor: { 33 | type: String, 34 | default: '#fff' 35 | }, 36 | // switch打开时的值 37 | activeValue: { 38 | type: [String, Number, Boolean], 39 | default: true 40 | }, 41 | // switch关闭时的值 42 | inactiveValue: { 43 | type: [String, Number, Boolean], 44 | default: false 45 | }, 46 | // 是否开启异步变更,开启后需要手动控制输入值 47 | asyncChange: { 48 | type: Boolean, 49 | default: false 50 | }, 51 | // 圆点与外边框的距离 52 | space: { 53 | type: [String, Number], 54 | default: 0 55 | }, 56 | ...uni.$uv?.props?.switch 57 | } 58 | } -------------------------------------------------------------------------------- /uni_modules/uv-switch/readme.md: -------------------------------------------------------------------------------- 1 | ## Switch 开关选择器 2 | 3 | > **组件名:uv-switch** 4 | 5 | 选择开关用于在打开和关闭状态之间进行切换,支持异步操作。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-tabbar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-07-17) 2 | 1. 优化文档 3 | 2. 优化其他 4 | ## 1.0.4(2023-06-13) 5 | 1. 底部安全距离依赖添加 6 | ## 1.0.3(2023-06-09) 7 | 1. 增加iconSize参数 8 | ## 1.0.2(2023-06-01) 9 | 1. 修复点击触发两次事件的BUG 10 | ## 1.0.1(2023-05-16) 11 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 12 | 2. 优化部分功能 13 | ## 1.0.0(2023-05-10) 14 | uv-tabbar 底部导航栏 15 | -------------------------------------------------------------------------------- /uni_modules/uv-tabbar/components/uv-tabbar-item/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // item标签的名称,作为与uv-tabbar的value参数匹配的标识符 4 | name: { 5 | type: [String, Number, null], 6 | default: null 7 | }, 8 | // uv-ui内置图标或者绝对路径的图片 9 | icon: { 10 | icon: String, 11 | default: '' 12 | }, 13 | // 图标大小,默认uv-tabbar的iconSize=20 14 | iconSize: { 15 | type: [String, Number], 16 | default: '' 17 | }, 18 | // 右上角的角标提示信息 19 | badge: { 20 | type: [String, Number, null], 21 | default: null 22 | }, 23 | // 是否显示圆点,将会覆盖badge参数 24 | dot: { 25 | type: Boolean, 26 | default: false 27 | }, 28 | // 描述文本 29 | text: { 30 | type: String, 31 | default: '' 32 | }, 33 | // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性 34 | badgeStyle: { 35 | type: [Object, String], 36 | default: 'top: 6px;right:2px;' 37 | }, 38 | ...uni.$uv?.props?.tabbarItem 39 | } 40 | } -------------------------------------------------------------------------------- /uni_modules/uv-tabbar/components/uv-tabbar/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 当前匹配项的name 4 | value: { 5 | type: [String, Number, null], 6 | default: null 7 | }, 8 | // 是否为iPhoneX留出底部安全距离 9 | safeAreaInsetBottom: { 10 | type: Boolean, 11 | default: true 12 | }, 13 | // 是否显示上方边框 14 | border: { 15 | type: Boolean, 16 | default: true 17 | }, 18 | // 元素层级z-index 19 | zIndex: { 20 | type: [String, Number], 21 | default: 9 22 | }, 23 | // 选中标签的颜色 24 | activeColor: { 25 | type: String, 26 | default: '#1989fa' 27 | }, 28 | // 未选中标签的颜色 29 | inactiveColor: { 30 | type: String, 31 | default: '#7d7e80' 32 | }, 33 | // 是否固定在底部 34 | fixed: { 35 | type: Boolean, 36 | default: true 37 | }, 38 | // fixed定位固定在底部时,是否生成一个等高元素防止塌陷 39 | placeholder: { 40 | type: Boolean, 41 | default: true 42 | }, 43 | // 图标大小 44 | iconSize: { 45 | type: [String, Number], 46 | default: 20 47 | }, 48 | ...uni.$uv?.props?.tabbar 49 | } 50 | } -------------------------------------------------------------------------------- /uni_modules/uv-tabbar/readme.md: -------------------------------------------------------------------------------- 1 | ## Tabbar 底部导航栏 2 | 3 | > **组件名:uv-tabbar** 4 | 5 | 此组件提供了自定义`tabbar`的能力。 6 | 7 | 一般固定在底部,可以满足某些需要鉴权跳转等场景。一旦自定义底部导航栏后,为了达到不闪烁的效果,建议在`tabbar`页面进行组件切换。 8 | 9 | # 查看文档 10 | 11 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 12 | 13 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | 20 | 21 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-tabs/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.9(2023-12-01) 2 | 1. 修复current为字符串activeStyle不生效的BUG 3 | 2. 优化文档 4 | ## 1.0.8(2023-10-13) 5 | 1. 优化点击一个选项,change事件重复派发的问题 6 | ## 1.0.7(2023-09-14) 7 | 1. 优化首次加载时,处理下划线会有左到右的过渡效果 8 | ## 1.0.6(2023-09-13) 9 | 1. 修复设置lineWidth未带单位产生的误差BUG 10 | ## 1.0.5(2023-06-23) 11 | 添加uv-icon依赖 12 | ## 1.0.4(2023-06-16) 13 | 1. 增加customStyle参数 14 | ## 1.0.3(2023-06-12) 15 | 1. activeStyle设置字体大小,导致下划线位置不对的BUG,增加this.$nextTick机制 16 | ## 1.0.2(2023-05-23) 17 | 1. 修复nvue中不滚动的BUG 18 | ## 1.0.1(2023-05-16) 19 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 20 | 2. 优化部分功能 21 | ## 1.0.0(2023-05-10) 22 | uv-tabs 标签选项卡 23 | -------------------------------------------------------------------------------- /uni_modules/uv-tabs/components/uv-tabs/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 滑块的移动过渡时间,单位ms 4 | duration: { 5 | type: Number, 6 | default: 300 7 | }, 8 | // tabs标签数组 9 | list: { 10 | type: Array, 11 | default: () => [] 12 | }, 13 | // 滑块颜色 14 | lineColor: { 15 | type: String, 16 | default: '#3c9cff' 17 | }, 18 | // 菜单选择中时的样式 19 | activeStyle: { 20 | type: [String, Object], 21 | default: () => ({ 22 | color: '#303133' 23 | }) 24 | }, 25 | // 菜单非选中时的样式 26 | inactiveStyle: { 27 | type: [String, Object], 28 | default: () => ({ 29 | color: '#606266' 30 | }) 31 | }, 32 | // 滑块长度 33 | lineWidth: { 34 | type: [String, Number], 35 | default: 20 36 | }, 37 | // 滑块高度 38 | lineHeight: { 39 | type: [String, Number], 40 | default: 3 41 | }, 42 | // 滑块背景显示大小,当滑块背景设置为图片时使用 43 | lineBgSize: { 44 | type: String, 45 | default: 'cover' 46 | }, 47 | // 菜单item的样式 48 | itemStyle: { 49 | type: [String, Object], 50 | default: () => ({ 51 | height: '44px' 52 | }) 53 | }, 54 | // 菜单是否可滚动 55 | scrollable: { 56 | type: Boolean, 57 | default: true 58 | }, 59 | // 当前选中标签的索引 60 | current: { 61 | type: [Number, String], 62 | default: 0 63 | }, 64 | // 默认读取的键名 65 | keyName: { 66 | type: String, 67 | default: 'name' 68 | }, 69 | ...uni.$uv?.props?.tabs 70 | } 71 | } -------------------------------------------------------------------------------- /uni_modules/uv-tabs/readme.md: -------------------------------------------------------------------------------- 1 | ## Tabs 标签选项卡 2 | 3 | > **组件名:uv-tabs** 4 | 5 | 标签选项卡组件,是一个`tabs`标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的`tab`会自动移动到组件的中间位置。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-tags/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-10-02) 2 | 1. 兼容customStyle参数 3 | 2. 优化 4 | ## 1.0.2(2023-07-31) 5 | 1. nvue模式下增加cell-child参数,避免在list中使用出现回收后不显示的BUG 6 | ## 1.0.1(2023-05-16) 7 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 8 | 2. 优化部分功能 9 | ## 1.0.0(2023-05-10) 10 | uv-tags 标签 11 | -------------------------------------------------------------------------------- /uni_modules/uv-tags/readme.md: -------------------------------------------------------------------------------- 1 | ## Tag 标签 2 | 3 | > **组件名:uv-tags** 4 | 5 | tag组件一般用于标记和选择,我们提供了更加丰富的表现形式,能够较全面的涵盖您的使用场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-text/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.4(2023-08-29) 2 | 1. nvue修复设置align不生效的BUG 3 | ## 1.0.3(2023-08-24) 4 | 1. 修复在nvue不能换行的问题 5 | ## 1.0.2(2023-05-24) 6 | 1. 去掉多余的data-index属性,避免警告 7 | ## 1.0.1(2023-05-16) 8 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 9 | 2. 优化部分功能 10 | ## 1.0.0(2023-05-10) 11 | uv-text 文本组件 12 | -------------------------------------------------------------------------------- /uni_modules/uv-text/readme.md: -------------------------------------------------------------------------------- 1 | ## Text 文本 2 | 3 | > **组件名:uv-text** 4 | 5 | 此组件集成了文本类在项目中的常用功能,包括状态,拨打电话,格式化日期,*替换,超链接...等功能。 您大可不必在使用特殊文本时自己定义,text组件涵盖您能使用的大部分场景。 6 | 7 | # 查看文档 8 | 9 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | 12 | 13 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 14 | 15 | 16 | 17 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-textarea/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.11(2023-12-26) 2 | 1. 优化confirmType默认值改成return 3 | ## 1.0.10(2023-09-13) 4 | 1. 修复设置autoHeight后出现高度异常的BUG 5 | ## 1.0.9(2023-08-08) 6 | 1. 优化 7 | ## 1.0.8(2023-08-07) 8 | 1. 修复值为null或undefined时显示错误的bug 9 | ## 1.0.7(2023-08-05) 10 | 1. v-model设置为数据时的BUG 11 | 2. 复制过多内容,计数显示错误的BUG 12 | 3. maxlength为-1改成不显示计数 13 | ## 1.0.6(2023-07-30) 14 | 1. 增加confirm-hold参数,参考官方文档 15 | ## 1.0.5(2023-07-25) 16 | 1. 增加textStyle属性,自定义文本样式 17 | 2. 增加countStyle属性,自定义统计数字的样式 18 | ## 1.0.4(2023-07-14) 19 | 1. 修复 设置maxlength为-1时不生效的BUG 20 | ## 1.0.3(2023-07-13) 21 | 1. 修复 uv-textarea设置value属性不生效的BUG 22 | ## 1.0.2(2023-05-16) 23 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 24 | 2. 优化部分功能 25 | ## 1.0.1(2023-05-12) 26 | 1. 修复vue3中双向绑定问题 27 | ## 1.0.0(2023-05-10) 28 | uv-textarea 文本域 29 | -------------------------------------------------------------------------------- /uni_modules/uv-textarea/readme.md: -------------------------------------------------------------------------------- 1 | ## Textarea 文本域 2 | 3 | > **组件名:uv-textarea** 4 | 5 | 文本域此组件满足了可能出现的表单信息补充,编辑等实际逻辑的功能,内置了字数校验等。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-toast/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2023-12-06) 2 | 1. 增加z-index参数 3 | 2. 增加overlay参数 4 | ## 1.0.2(2023-10-13) 5 | 1. unmounted兼容vue3 6 | ## 1.0.1(2023-05-16) 7 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 8 | 2. 优化部分功能 9 | ## 1.0.0(2023-05-10) 10 | uv-toast 消息提示 11 | -------------------------------------------------------------------------------- /uni_modules/uv-toast/readme.md: -------------------------------------------------------------------------------- 1 | ## Toast 消息提示 2 | 3 | > **组件名:uv-toast** 4 | 5 | Toast 组件主要用于消息通知、加载提示、操作结果提示等醒目提示效果,我们为其提供了多种丰富的API。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-toolbar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2023-08-02) 2 | 1. 新增工具条组件 3 | -------------------------------------------------------------------------------- /uni_modules/uv-toolbar/components/uv-toolbar/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否展示工具条 4 | show: { 5 | type: Boolean, 6 | default: true 7 | }, 8 | // 是否显示下边框 9 | showBorder: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | // 取消按钮的文字 14 | cancelText: { 15 | type: String, 16 | default: '取消' 17 | }, 18 | // 确认按钮的文字 19 | confirmText: { 20 | type: String, 21 | default: '确认' 22 | }, 23 | // 取消按钮的颜色 24 | cancelColor: { 25 | type: String, 26 | default: '#909193' 27 | }, 28 | // 确认按钮的颜色 29 | confirmColor: { 30 | type: String, 31 | default: '#3c9cff' 32 | }, 33 | // 标题文字 34 | title: { 35 | type: String, 36 | default: '' 37 | }, 38 | ...uni.$uv?.props?.toolbar 39 | } 40 | } -------------------------------------------------------------------------------- /uni_modules/uv-toolbar/readme.md: -------------------------------------------------------------------------------- 1 | ## Toolbar 工具条 2 | 3 | > **组件名:uv-toolbar** 4 | 5 | 该组价是仅用于uv-ui中一个公共小工具,提供一个取消和确定的样式,可以设置标题,主要用于弹窗顶部的选择确定工具条。 6 | 7 | ### 基本使用 8 | 9 | ```vue 10 | 11 | ``` 12 | 13 | ### Toolbar Props 14 | 15 | | 属性名 | 类型 | 默认值 | 说明 | 16 | |:-|:-|:-|:-| 17 | | show | Boolean | true | 是否展示工具条 | 18 | | showBorder | Boolean | false | 是否显示下边框 | 19 | | cancelText | String | '取消' | 取消按钮的文字 | 20 | | confirmText | String | '确定' | 确定按钮的文字 | 21 | | cancelColor | String | '#909193' | 取消按钮的颜色 | 22 | | confirmColor | String | '#3c9cff' | 确认按钮的颜色 | 23 | | title | String | - | 标题文字 | 24 | 25 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 26 | 27 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 28 | 29 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 30 | 31 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-tooltip/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2023-07-02) 2 | 修改VUE3模式不显示的BUG 3 | ## 1.0.4(2023-07-02) 4 | uv-tooltip 由于弹出层uv-transition的修改,组件内部做了相应的修改,参数不变。 5 | ## 1.0.3(2023-05-17) 6 | 1. 修复报错的BUG 7 | ## 1.0.2(2023-05-17) 8 | 1. vue2模式下报错的BUG修复 9 | ## 1.0.1(2023-05-16) 10 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 11 | 2. 优化部分功能 12 | ## 1.0.0(2023-05-10) 13 | uv-tooltip 长按提示 14 | -------------------------------------------------------------------------------- /uni_modules/uv-tooltip/components/uv-tooltip/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 需要显示的提示文字 4 | text: { 5 | type: [String, Number], 6 | default: '' 7 | }, 8 | // 点击复制按钮时,复制的文本,为空则使用text值 9 | copyText: { 10 | type: [String, Number], 11 | default: '' 12 | }, 13 | // 文本大小 14 | size: { 15 | type: [String, Number], 16 | default: 14 17 | }, 18 | // 字体颜色 19 | color: { 20 | type: String, 21 | default: '#606266' 22 | }, 23 | // 弹出提示框时,文本的背景色 24 | bgColor: { 25 | type: String, 26 | default: 'transparent' 27 | }, 28 | // 弹出提示的方向,top-上方,bottom-下方 29 | direction: { 30 | type: String, 31 | default: 'top' 32 | }, 33 | // 弹出提示的z-index,nvue无效 34 | zIndex: { 35 | type: [String, Number], 36 | default: 10071 37 | }, 38 | // 是否显示复制按钮 39 | showCopy: { 40 | type: Boolean, 41 | default: true 42 | }, 43 | // 扩展的按钮组 44 | buttons: { 45 | type: Array, 46 | default: () => [] 47 | }, 48 | // 是否显示透明遮罩以防止触摸穿透 49 | overlay: { 50 | type: Boolean, 51 | default: true 52 | }, 53 | // 是否显示复制成功或者失败的toast 54 | showToast: { 55 | type: Boolean, 56 | default: true 57 | }, 58 | ...uni.$uv?.props?.tooltip 59 | } 60 | } -------------------------------------------------------------------------------- /uni_modules/uv-tooltip/readme.md: -------------------------------------------------------------------------------- 1 | ## Tooltip 长按提示 2 | 3 | > **组件名:uv-tooltip** 4 | 5 | Tooltip组件主要用于长按操作,类似微信的长按气泡。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-transition/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.8(2023-10-18) 2 | 1. 修复在APP上不能正常显示的BUG 3 | ## 1.0.7(2023-10-12) 4 | 1. 修复部分情况,修改某属性自动关闭的BUG 5 | ## 1.0.6(2023-07-24) 6 | 1. 优化 nvue模式下增加cellChild参数,是否在list中cell节点下,nvue中cell下建议设置成true 7 | ## 1.0.5(2023-07-02) 8 | 修改VUE3模式下可能存在的BUG 9 | ## 1.0.4(2023-07-02) 10 | uv-transition 动画组件,代码重构优化,性能更加友好,增加自定义动画功能。详情参考文档:https://www.uvui.cn/components/transition.html 11 | ## 1.0.3(2023-06-12) 12 | 1. 恢复this.$nextTick的使用,经过测试百度等平台无问题 13 | ## 1.0.2(2023-05-23) 14 | 1. 百度小程序等平台不支持this.$nextick,修改成延时 15 | ## 1.0.1(2023-05-16) 16 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 17 | 2. 优化部分功能 18 | ## 1.0.0(2023-05-10) 19 | 1. 新增动画组件 20 | -------------------------------------------------------------------------------- /uni_modules/uv-transition/components/uv-transition/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 是否展示组件 4 | show: { 5 | type: Boolean, 6 | default: false 7 | }, 8 | // 使用的动画模式 9 | mode: { 10 | type: [Array, String, null], 11 | default() { 12 | return 'fade' 13 | } 14 | }, 15 | // 动画的执行时间,单位ms 16 | duration: { 17 | type: [String, Number], 18 | default: 300 19 | }, 20 | // 使用的动画过渡函数 21 | timingFunction: { 22 | type: String, 23 | default: 'ease-out' 24 | }, 25 | customClass: { 26 | type: String, 27 | default: '' 28 | }, 29 | ...uni.$uv?.props?.transition 30 | } 31 | } -------------------------------------------------------------------------------- /uni_modules/uv-transition/readme.md: -------------------------------------------------------------------------------- 1 | ## Transition 动画 2 | 3 | > **组件名:uv-transition** 4 | 5 | 该组件用于组件的动画过渡效果,支持自定义动画,开箱即用。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 14 | 15 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 16 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/components/uv-ui-tools/uv-ui-tools.vue: -------------------------------------------------------------------------------- 1 | 3 | 5 | 7 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/index.scss: -------------------------------------------------------------------------------- 1 | // 引入公共基础类 2 | @import "./libs/css/common.scss"; 3 | 4 | // 非nvue的样式 5 | /* #ifndef APP-NVUE */ 6 | @import "./libs/css/vue.scss"; 7 | /* #endif */ -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/config/config.js: -------------------------------------------------------------------------------- 1 | // 此版本发布于2024-01-20 2 | const version = '1.1.20' 3 | 4 | // 开发环境才提示,生产环境不会提示 5 | if (process.env.NODE_ENV === 'development') { 6 | console.log(`\n %c uvui V${version} https://www.uvui.cn/ \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;'); 7 | } 8 | 9 | export default { 10 | v: version, 11 | version, 12 | // 主题名称 13 | type: [ 14 | 'primary', 15 | 'success', 16 | 'info', 17 | 'error', 18 | 'warning' 19 | ], 20 | // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持 21 | color: { 22 | 'uv-primary': '#2979ff', 23 | 'uv-warning': '#ff9900', 24 | 'uv-success': '#19be6b', 25 | 'uv-error': '#fa3534', 26 | 'uv-info': '#909399', 27 | 'uv-main-color': '#303133', 28 | 'uv-content-color': '#606266', 29 | 'uv-tips-color': '#909399', 30 | 'uv-light-color': '#c0c4cc' 31 | }, 32 | // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx 33 | unit: 'px' 34 | } 35 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/css/color.scss: -------------------------------------------------------------------------------- 1 | $uv-main-color: #303133 !default; 2 | $uv-content-color: #606266 !default; 3 | $uv-tips-color: #909193 !default; 4 | $uv-light-color: #c0c4cc !default; 5 | $uv-border-color: #dadbde !default; 6 | $uv-bg-color: #f3f4f6 !default; 7 | $uv-disabled-color: #c8c9cc !default; 8 | 9 | $uv-primary: #3c9cff !default; 10 | $uv-primary-dark: #398ade !default; 11 | $uv-primary-disabled: #9acafc !default; 12 | $uv-primary-light: #ecf5ff !default; 13 | 14 | $uv-warning: #f9ae3d !default; 15 | $uv-warning-dark: #f1a532 !default; 16 | $uv-warning-disabled: #f9d39b !default; 17 | $uv-warning-light: #fdf6ec !default; 18 | 19 | $uv-success: #5ac725 !default; 20 | $uv-success-dark: #53c21d !default; 21 | $uv-success-disabled: #a9e08f !default; 22 | $uv-success-light: #f5fff0; 23 | 24 | $uv-error: #f56c6c !default; 25 | $uv-error-dark: #e45656 !default; 26 | $uv-error-disabled: #f7b2b2 !default; 27 | $uv-error-light: #fef0f0 !default; 28 | 29 | $uv-info: #909399 !default; 30 | $uv-info-dark: #767a82 !default; 31 | $uv-info-disabled: #c4c6c9 !default; 32 | $uv-info-light: #f4f4f5 !default; 33 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/css/components.scss: -------------------------------------------------------------------------------- 1 | @mixin flex($direction: row) { 2 | /* #ifndef APP-NVUE */ 3 | display: flex; 4 | /* #endif */ 5 | flex-direction: $direction; 6 | } 7 | 8 | /* #ifndef APP-NVUE */ 9 | // 由于uvui是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column; 10 | // 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常 11 | $uvui-nvue-style: true !default; 12 | @if $uvui-nvue-style == true { 13 | view, scroll-view, swiper-item { 14 | display: flex; 15 | flex-direction: column; 16 | flex-shrink: 0; 17 | flex-grow: 0; 18 | flex-basis: auto; 19 | align-items: stretch; 20 | align-content: flex-start; 21 | } 22 | } 23 | /* #endif */ 24 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/css/vue.scss: -------------------------------------------------------------------------------- 1 | // 历遍生成4个方向的底部安全区 2 | @each $d in top, right, bottom, left { 3 | .uv-safe-area-inset-#{$d} { 4 | padding-#{$d}: 0; 5 | padding-#{$d}: constant(safe-area-inset-#{$d}); 6 | padding-#{$d}: env(safe-area-inset-#{$d}); 7 | } 8 | } 9 | 10 | //提升H5端uni.toast()的层级,避免被uvui的modal等遮盖 11 | /* #ifdef H5 */ 12 | uni-toast { 13 | z-index: 10090; 14 | } 15 | uni-toast .uni-toast { 16 | z-index: 10090; 17 | } 18 | /* #endif */ 19 | 20 | // 隐藏scroll-view的滚动条 21 | ::-webkit-scrollbar { 22 | display: none; 23 | width: 0 !important; 24 | height: 0 !important; 25 | -webkit-appearance: none; 26 | background: transparent; 27 | } 28 | 29 | $uvui-nvue-style: true !default; 30 | @if $uvui-nvue-style == false { 31 | view, scroll-view, swiper-item { 32 | display: flex; 33 | flex-direction: column; 34 | flex-shrink: 0; 35 | flex-grow: 0; 36 | flex-basis: auto; 37 | align-items: stretch; 38 | align-content: flex-start; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/function/debounce.js: -------------------------------------------------------------------------------- 1 | let timeout = null 2 | 3 | /** 4 | * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数 5 | * 6 | * @param {Function} func 要执行的回调函数 7 | * @param {Number} wait 延时的时间 8 | * @param {Boolean} immediate 是否立即执行 9 | * @return null 10 | */ 11 | function debounce(func, wait = 500, immediate = false) { 12 | // 清除定时器 13 | if (timeout !== null) clearTimeout(timeout) 14 | // 立即执行,此类情况一般用不到 15 | if (immediate) { 16 | const callNow = !timeout 17 | timeout = setTimeout(() => { 18 | timeout = null 19 | }, wait) 20 | if (callNow) typeof func === 'function' && func() 21 | } else { 22 | // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法 23 | timeout = setTimeout(() => { 24 | typeof func === 'function' && func() 25 | }, wait) 26 | } 27 | } 28 | 29 | export default debounce 30 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/function/platform.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 注意: 3 | * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效: 4 | * module.exports = { 5 | * transpileDependencies: ['uview-v2'] 6 | * } 7 | */ 8 | 9 | let platform = 'none' 10 | 11 | // #ifdef VUE3 12 | platform = 'vue3' 13 | // #endif 14 | 15 | // #ifdef VUE2 16 | platform = 'vue2' 17 | // #endif 18 | 19 | // #ifdef APP-PLUS 20 | platform = 'plus' 21 | // #endif 22 | 23 | // #ifdef APP-NVUE 24 | platform = 'nvue' 25 | // #endif 26 | 27 | // #ifdef H5 28 | platform = 'h5' 29 | // #endif 30 | 31 | // #ifdef MP-WEIXIN 32 | platform = 'weixin' 33 | // #endif 34 | 35 | // #ifdef MP-ALIPAY 36 | platform = 'alipay' 37 | // #endif 38 | 39 | // #ifdef MP-BAIDU 40 | platform = 'baidu' 41 | // #endif 42 | 43 | // #ifdef MP-TOUTIAO 44 | platform = 'toutiao' 45 | // #endif 46 | 47 | // #ifdef MP-QQ 48 | platform = 'qq' 49 | // #endif 50 | 51 | // #ifdef MP-KUAISHOU 52 | platform = 'kuaishou' 53 | // #endif 54 | 55 | // #ifdef MP-360 56 | platform = '360' 57 | // #endif 58 | 59 | // #ifdef MP 60 | platform = 'mp' 61 | // #endif 62 | 63 | // #ifdef QUICKAPP-WEBVIEW 64 | platform = 'quickapp-webview' 65 | // #endif 66 | 67 | // #ifdef QUICKAPP-WEBVIEW-HUAWEI 68 | platform = 'quickapp-webview-huawei' 69 | // #endif 70 | 71 | // #ifdef QUICKAPP-WEBVIEW-UNION 72 | platform = 'quckapp-webview-union' 73 | // #endif 74 | 75 | export default platform 76 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/function/throttle.js: -------------------------------------------------------------------------------- 1 | let timer; let 2 | flag 3 | /** 4 | * 节流原理:在一定时间内,只能触发一次 5 | * 6 | * @param {Function} func 要执行的回调函数 7 | * @param {Number} wait 延时的时间 8 | * @param {Boolean} immediate 是否立即执行 9 | * @return null 10 | */ 11 | function throttle(func, wait = 500, immediate = true) { 12 | if (immediate) { 13 | if (!flag) { 14 | flag = true 15 | // 如果是立即执行,则在wait毫秒内开始时执行 16 | typeof func === 'function' && func() 17 | timer = setTimeout(() => { 18 | flag = false 19 | }, wait) 20 | } 21 | } else if (!flag) { 22 | flag = true 23 | // 如果是非立即执行,则在wait毫秒内的结束处执行 24 | timer = setTimeout(() => { 25 | flag = false 26 | typeof func === 'function' && func() 27 | }, wait) 28 | } 29 | } 30 | export default throttle 31 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/core/InterceptorManager.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | 4 | function InterceptorManager() { 5 | this.handlers = [] 6 | } 7 | 8 | /** 9 | * Add a new interceptor to the stack 10 | * 11 | * @param {Function} fulfilled The function to handle `then` for a `Promise` 12 | * @param {Function} rejected The function to handle `reject` for a `Promise` 13 | * 14 | * @return {Number} An ID used to remove interceptor later 15 | */ 16 | InterceptorManager.prototype.use = function use(fulfilled, rejected) { 17 | this.handlers.push({ 18 | fulfilled: fulfilled, 19 | rejected: rejected 20 | }) 21 | return this.handlers.length - 1 22 | } 23 | 24 | /** 25 | * Remove an interceptor from the stack 26 | * 27 | * @param {Number} id The ID that was returned by `use` 28 | */ 29 | InterceptorManager.prototype.eject = function eject(id) { 30 | if (this.handlers[id]) { 31 | this.handlers[id] = null 32 | } 33 | } 34 | 35 | /** 36 | * Iterate over all the registered interceptors 37 | * 38 | * This method is particularly useful for skipping over any 39 | * interceptors that may have become `null` calling `eject`. 40 | * 41 | * @param {Function} fn The function to call for each interceptor 42 | */ 43 | InterceptorManager.prototype.forEach = function forEach(fn) { 44 | this.handlers.forEach(h => { 45 | if (h !== null) { 46 | fn(h) 47 | } 48 | }) 49 | } 50 | 51 | export default InterceptorManager 52 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/core/buildFullPath.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | import isAbsoluteURL from '../helpers/isAbsoluteURL' 4 | import combineURLs from '../helpers/combineURLs' 5 | 6 | /** 7 | * Creates a new URL by combining the baseURL with the requestedURL, 8 | * only when the requestedURL is not already an absolute URL. 9 | * If the requestURL is absolute, this function returns the requestedURL untouched. 10 | * 11 | * @param {string} baseURL The base URL 12 | * @param {string} requestedURL Absolute or relative URL to combine 13 | * @returns {string} The combined full path 14 | */ 15 | export default function buildFullPath(baseURL, requestedURL) { 16 | if (baseURL && !isAbsoluteURL(requestedURL)) { 17 | return combineURLs(baseURL, requestedURL) 18 | } 19 | return requestedURL 20 | } 21 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/core/defaults.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 默认的全局配置 3 | */ 4 | 5 | 6 | export default { 7 | baseURL: '', 8 | header: {}, 9 | method: 'GET', 10 | dataType: 'json', 11 | paramsSerializer: null, 12 | // #ifndef MP-ALIPAY 13 | responseType: 'text', 14 | // #endif 15 | custom: {}, 16 | // #ifdef H5 || APP-PLUS || MP-WEIXIN || MP-ALIPAY || MP-TOUTIAO || MP-KUAISHOU 17 | timeout: 60000, 18 | // #endif 19 | // #ifdef APP-PLUS 20 | sslVerify: true, 21 | // #endif 22 | // #ifdef H5 23 | withCredentials: false, 24 | // #endif 25 | // #ifdef APP-PLUS 26 | firstIpv4: false, 27 | // #endif 28 | validateStatus: function validateStatus(status) { 29 | return status >= 200 && status < 300 30 | }, 31 | // 是否尝试将响应数据json化 32 | forcedJSONParsing: true 33 | } 34 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/core/dispatchRequest.js: -------------------------------------------------------------------------------- 1 | import adapter from '../adapters/index' 2 | 3 | 4 | export default (config) => { 5 | return adapter(config) 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/core/settle.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Resolve or reject a Promise based on response status. 3 | * 4 | * @param {Function} resolve A function that resolves the promise. 5 | * @param {Function} reject A function that rejects the promise. 6 | * @param {object} response The response. 7 | */ 8 | export default function settle(resolve, reject, response) { 9 | const validateStatus = response.config.validateStatus 10 | const status = response.statusCode 11 | if (status && (!validateStatus || validateStatus(status))) { 12 | resolve(response) 13 | } else { 14 | reject(response) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/helpers/combineURLs.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | /** 4 | * Creates a new URL by combining the specified URLs 5 | * 6 | * @param {string} baseURL The base URL 7 | * @param {string} relativeURL The relative URL 8 | * @returns {string} The combined URL 9 | */ 10 | export default function combineURLs(baseURL, relativeURL) { 11 | return relativeURL 12 | ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 13 | : baseURL 14 | } 15 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/helpers/isAbsoluteURL.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | /** 4 | * Determines whether the specified URL is absolute 5 | * 6 | * @param {string} url The URL to test 7 | * @returns {boolean} True if the specified URL is absolute, otherwise false 8 | */ 9 | export default function isAbsoluteURL(url) { 10 | // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). 11 | // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 12 | // by any combination of letters, digits, plus, period, or hyphen. 13 | return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url) 14 | } 15 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/luch-request/index.js: -------------------------------------------------------------------------------- 1 | import Request from './core/Request' 2 | export default Request 3 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/mixin/button.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | lang: String, 4 | sessionFrom: String, 5 | sendMessageTitle: String, 6 | sendMessagePath: String, 7 | sendMessageImg: String, 8 | showMessageCard: Boolean, 9 | appParameter: String, 10 | formType: String, 11 | openType: String 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/mixin/mpMixin.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // #ifdef MP-WEIXIN 3 | // 将自定义节点设置成虚拟的(去掉自定义组件包裹层),更加接近Vue组件的表现,能更好的使用flex属性 4 | options: { 5 | virtualHost: true 6 | } 7 | // #endif 8 | } -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/libs/mixin/mpShare.js: -------------------------------------------------------------------------------- 1 | export default { 2 | onLoad() { 3 | // 设置默认的转发参数 4 | uni.$uv.mpShare = { 5 | title: '', // 默认为小程序名称 6 | path: '', // 默认为当前页面路径 7 | imageUrl: '' // 默认为当前页面的截图 8 | } 9 | }, 10 | onShareAppMessage() { 11 | return uni.$uv.mpShare 12 | } 13 | } -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/readme.md: -------------------------------------------------------------------------------- 1 | ## uv-ui-tools 工具集 2 | 3 | > **组件名:uv-ui-tools** 4 | 5 | uv-ui工具集成,包括网络Http请求、便捷工具、节流防抖、对象操作、时间格式化、路由跳转、全局唯一标识符、规则校验等等。 6 | 7 | 该组件推荐配合[uv-ui组件库](https://www.uvui.cn/components/intro.html)使用,单独下载也可以在自己项目中使用,需要做相应的配置,可查看文档。强烈推荐使用[uv-ui组件库](https://www.uvui.cn/components/intro.html),导入组件都会自动导入`uv-ui-tools`。需要在自己的项目中使用请参考[扩展配置](https://www.uvui.cn/components/setting.html)。 8 | 9 | uv-ui破釜沉舟之兼容vue3+2、app、h5、多端小程序的uni-app生态框架,大部分组件基于uView2.x,在经过改进后全面支持vue3,部分组件做了进一步的优化,修复大量BUG,支持单独导入,方便开发者选择导入需要的组件。开箱即用,灵活配置。 10 | 11 | # 查看文档 12 | 13 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 14 | 15 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 16 | 17 | 18 | 19 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 20 | 21 | 22 | 23 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-ui-tools/theme.scss: -------------------------------------------------------------------------------- 1 | // 此文件为uvUI的主题变量,这些变量目前只能通过uni.scss引入才有效,另外由于 2 | // uni.scss中引入的样式会同时混入到全局样式文件和单独每一个页面的样式中,造成微信程序包太大, 3 | // 故uni.scss只建议放scss变量名相关样式,其他的样式可以通过main.js或者App.vue引入 4 | 5 | $uv-main-color: #303133; 6 | $uv-content-color: #606266; 7 | $uv-tips-color: #909193; 8 | $uv-light-color: #c0c4cc; 9 | $uv-border-color: #dadbde; 10 | $uv-bg-color: #f3f4f6; 11 | $uv-disabled-color: #c8c9cc; 12 | 13 | $uv-primary: #3c9cff; 14 | $uv-primary-dark: #398ade; 15 | $uv-primary-disabled: #9acafc; 16 | $uv-primary-light: #ecf5ff; 17 | 18 | $uv-warning: #f9ae3d; 19 | $uv-warning-dark: #f1a532; 20 | $uv-warning-disabled: #f9d39b; 21 | $uv-warning-light: #fdf6ec; 22 | 23 | $uv-success: #5ac725; 24 | $uv-success-dark: #53c21d; 25 | $uv-success-disabled: #a9e08f; 26 | $uv-success-light: #f5fff0; 27 | 28 | $uv-error: #f56c6c; 29 | $uv-error-dark: #e45656; 30 | $uv-error-disabled: #f7b2b2; 31 | $uv-error-light: #fef0f0; 32 | 33 | $uv-info: #909399; 34 | $uv-info-dark: #767a82; 35 | $uv-info-disabled: #c4c6c9; 36 | $uv-info-light: #f4f4f5; 37 | 38 | @mixin flex($direction: row) { 39 | /* #ifndef APP-NVUE */ 40 | display: flex; 41 | /* #endif */ 42 | flex-direction: $direction; 43 | } -------------------------------------------------------------------------------- /uni_modules/uv-ui/components/uv-ui/uv-ui.vue: -------------------------------------------------------------------------------- 1 | 4 | 6 | 8 | -------------------------------------------------------------------------------- /uni_modules/uv-upload/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.6(2023-12-20) 2 | 1. 修复动态设置deletable为false不生效的BUG 3 | ## 1.0.5(2023-08-31) 4 | 1. 添加uv-popup依赖 5 | ## 1.0.4(2023-08-18) 6 | 1. 修复图片预览位置错误的BUG 7 | 2. 修复视频预览不生效的BUG 8 | 3. 修复改变上传视频宽高不生效的BUG 9 | ## 1.0.3(2023-07-03) 10 | 去除插槽判断,避免某些平台不显示的BUG 11 | ## 1.0.2(2023-05-24) 12 | 1. 优化fileList,watch中增加deep属性 13 | ## 1.0.1(2023-05-16) 14 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 15 | 2. 优化部分功能 16 | ## 1.0.0(2023-05-10) 17 | uv-upload 上传 18 | -------------------------------------------------------------------------------- /uni_modules/uv-upload/components/uv-preview-video/uv-preview-video.vue: -------------------------------------------------------------------------------- 1 | 8 | 45 | -------------------------------------------------------------------------------- /uni_modules/uv-upload/components/uv-upload/mixin.js: -------------------------------------------------------------------------------- 1 | import { error } from '@/uni_modules/uv-ui-tools/libs/function/index.js' 2 | export default { 3 | watch: { 4 | // 监听accept的变化,判断是否符合个平台要求 5 | // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示 6 | accept: { 7 | immediate: true, 8 | handler(val) { 9 | // #ifndef MP-WEIXIN 10 | if (val === 'all' || val === 'media') { 11 | error('只有微信小程序才支持把accept配置为all、media之一') 12 | } 13 | // #endif 14 | // #ifndef H5 || MP-WEIXIN 15 | if (val === 'file') { 16 | error('只有微信小程序和H5(HX2.9.9)才支持把accept配置为file') 17 | } 18 | // #endif 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /uni_modules/uv-upload/readme.md: -------------------------------------------------------------------------------- 1 | ## Upload 上传 2 | 3 | > **组件名:uv-upload** 4 | 5 | 该组件用于上传图片等文件场景。 6 | 7 | ### 查看文档 8 | 9 | ### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) 10 | 11 | #### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 12 | -------------------------------------------------------------------------------- /uni_modules/uv-vtabs/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.8(2023-12-20) 2 | 1. 优化 3 | ## 1.0.7(2023-12-20) 4 | 1. 优化 5 | ## 1.0.6(2023-12-12) 6 | 1. 修复设置current,快速点击菜单,导致死循环的BUG 7 | ## 1.0.5(2023-06-27) 8 | 修复:非联动,内容过多的情况,滚动一段距离,再切换未滚动到顶部的BUG 9 | ## 1.0.4(2023-06-13) 10 | 1. 增加scrolltolower回调函数 11 | 2. 优化 12 | ## 1.0.3(2023-06-13) 13 | 1. 优化 14 | ## 1.0.2(2023-06-13) 15 | 1. 增加hdHeight参数,避免顶部有内容计算联动不准确的BUG 16 | 2. 优化滑动触发频率,避免跳动 17 | ## 1.0.1(2023-06-04) 18 | 1. 文档说明 19 | ## 1.0.0(2023-06-04) 20 | 1. 新增垂直选项卡组件 21 | -------------------------------------------------------------------------------- /uni_modules/uv-vtabs/readme.md: -------------------------------------------------------------------------------- 1 | ## Vtabs 垂直选项卡 2 | 3 | > **组件名:uv-vtabs** 4 | 5 | 该组件主要用于分类选择,开箱即用,简单配置参数即可使用,左右自动进行联动,不用自己再去做复杂的计算,组件内部已经完成相关计算。联动和不联动两种可选方式,联动-左右均可滚动,不联动-右边区域只会在选中时显示。 6 | 7 | # 查看文档 8 | 9 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) 10 | 11 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 12 | 13 | 14 | 15 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 16 | 17 | 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 -------------------------------------------------------------------------------- /uni_modules/uv-waterfall/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.8(2023-08-17) 2 | 1. 修复只有一条数据切换时可能存在位置错误的BUG 3 | ## 1.0.7(2023-07-22) 4 | 1. 避免快速切换报错的BUG 5 | ## 1.0.6(2023-07-17) 6 | 1. 优化文档 7 | 2. 优化其他 8 | ## 1.0.5(2023-07-14) 9 | 1. 优化changeList未处理数据时,正确返回对应列的数据,避免误导 10 | ## 1.0.4(2023-05-27) 11 | 1. 修复在百度小程序中可能存在的BUG 12 | 2. 去掉原有的slot方式 13 | ## 1.0.3(2023-05-23) 14 | 1. 修复在百度/头条小程序显示异常等BUG 15 | 2. 增加changeList回调函数处理数据 16 | 3. 更新示例 17 | ## 1.0.2(2023-05-16) 18 | 1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 19 | 2. 优化部分功能 20 | ## 1.0.1(2023-05-12) 21 | 1. 增加clear回调函数 22 | 2. 增加remove回调函数 23 | ## 1.0.0(2023-05-10) 24 | uv-waterfall 瀑布流 25 | -------------------------------------------------------------------------------- /uni_modules/uv-waterfall/components/uv-waterfall/props.js: -------------------------------------------------------------------------------- 1 | export default { 2 | props: { 3 | // 瀑布流数据 4 | // #ifdef VUE2 5 | value: { 6 | type: Array, 7 | default: () => [] 8 | }, 9 | // #endif 10 | // #ifdef VUE3 11 | modelValue: { 12 | type: Array, 13 | default: () => [] 14 | }, 15 | // #endif 16 | // 数据的id值,根据id值对数据执行删除操作 17 | // 如数据为:{id: 1, name: 'uv-ui'},那么该值设置为id 18 | idKey: { 19 | type: String, 20 | default: 'id' 21 | }, 22 | // 每次插入数据的事件间隔,间隔越长能保证两列高度相近,但是用户体验不好,单位ms 23 | addTime: { 24 | type: Number, 25 | default: 200 26 | }, 27 | // 瀑布流的列数,默认2,最高为5 28 | columnCount: { 29 | type: [Number, String], 30 | default: 2 31 | }, 32 | // 列与列的间隙,默认20 33 | columnGap: { 34 | type: [Number, String], 35 | default: 20 36 | }, 37 | // 左边和列表的间隙 38 | leftGap: { 39 | type: [Number, String], 40 | default: 0 41 | }, 42 | // 右边和列表的间隙 43 | rightGap: { 44 | type: [Number, String], 45 | default: 0 46 | }, 47 | // 是否显示滚动条,仅nvue生效 48 | showScrollbar: { 49 | type: [Boolean], 50 | default: false 51 | }, 52 | // 列宽,nvue生效 53 | columnWidth: { 54 | type: [Number, String], 55 | default: 'auto' 56 | }, 57 | // 瀑布流的宽度,nvue生效 58 | width: { 59 | type: [Number, String], 60 | default: '' 61 | }, 62 | // 瀑布流的高度,nvue生效 63 | height: { 64 | type: [Number, String], 65 | default: '' 66 | }, 67 | ...uni.$uv?.props?.waterfall 68 | } 69 | } -------------------------------------------------------------------------------- /uni_modules/uv-waterfall/readme.md: -------------------------------------------------------------------------------- 1 | ## Waterfall 瀑布流 2 | 3 | > **组件名:uv-waterfall** 4 | 5 | 该组件主要用于瀑布流式布局显示,视觉表现为参差不齐的多栏布局,随着页面滚动条向下滚动,这种布局还会不断加载数据块并附加至当前尾部,同时集成`nvue`的原生瀑布流用于`app-nvue`。常用于一些电商商品展示等,如某宝首页、x红书等。 6 | 7 | 研究uniapp瀑布流多年,**该方式是目前小程序端最佳方案**,灵活配置,简单易用,开箱即用。 8 | 9 | 该插件请根据文档耐心查看,`vue`的写法稍微麻烦点,但是效果是很好的,比之前上线的两个版本的瀑布流适用,更有扩展性,我自己的上线项目也是用的此插件。 10 | 11 | # 查看文档 12 | 13 | ## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) 14 | 15 | ### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) 16 | 17 | ![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) 18 | 19 | #### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 20 | -------------------------------------------------------------------------------- /unpackage/res/icons/1024x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/1024x1024.png -------------------------------------------------------------------------------- /unpackage/res/icons/120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/120x120.png -------------------------------------------------------------------------------- /unpackage/res/icons/144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/144x144.png -------------------------------------------------------------------------------- /unpackage/res/icons/152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/152x152.png -------------------------------------------------------------------------------- /unpackage/res/icons/167x167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/167x167.png -------------------------------------------------------------------------------- /unpackage/res/icons/180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/180x180.png -------------------------------------------------------------------------------- /unpackage/res/icons/192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/192x192.png -------------------------------------------------------------------------------- /unpackage/res/icons/20x20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/20x20.png -------------------------------------------------------------------------------- /unpackage/res/icons/29x29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/29x29.png -------------------------------------------------------------------------------- /unpackage/res/icons/40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/40x40.png -------------------------------------------------------------------------------- /unpackage/res/icons/58x58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/58x58.png -------------------------------------------------------------------------------- /unpackage/res/icons/60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/60x60.png -------------------------------------------------------------------------------- /unpackage/res/icons/72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/72x72.png -------------------------------------------------------------------------------- /unpackage/res/icons/76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/76x76.png -------------------------------------------------------------------------------- /unpackage/res/icons/80x80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/80x80.png -------------------------------------------------------------------------------- /unpackage/res/icons/87x87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/87x87.png -------------------------------------------------------------------------------- /unpackage/res/icons/96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/climblee/uv-ui/ecebf80349d6f4fdea3da0ed92735c26b4ccd954/unpackage/res/icons/96x96.png -------------------------------------------------------------------------------- /util/request/index.js: -------------------------------------------------------------------------------- 1 | // 引入配置 2 | import config from '@/common/config' 3 | // 引入请求拦截 4 | import { requestInterceptors } from './requestInterceptors.js' 5 | // 引入响应拦截 6 | import { responseInterceptors } from './responseInterceptors.js' 7 | // 初始化请求配置 8 | export const Request = ()=>{ 9 | uni.$uv.http.setConfig((defaultConfig) => { 10 | /* defaultConfig 为默认全局配置 */ 11 | defaultConfig.baseURL = config.baseUrl /* 根域名 */ 12 | return defaultConfig 13 | }) 14 | requestInterceptors(); 15 | responseInterceptors(); 16 | } 17 | -------------------------------------------------------------------------------- /util/request/requestInterceptors.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 请求拦截 3 | * @param {Object} http 4 | */ 5 | export const requestInterceptors = (vm) => { 6 | uni.$uv.http.interceptors.request.use((config) => { // 可使用async await 做异步操作 7 | // 初始化请求拦截器时,会执行此方法,此时data为undefined,赋予默认{} 8 | config.data = config.data || {} 9 | // 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中 10 | // console.log(vm.$store.state); 11 | return config 12 | }, (config) => // 可使用async await 做异步操作 13 | Promise.reject(config)) 14 | } 15 | -------------------------------------------------------------------------------- /util/request/responseInterceptors.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 响应拦截 3 | * @param {Object} http 4 | */ 5 | export const responseInterceptors = (vm) => { 6 | uni.$uv.http.interceptors.response.use((response) => { /* 对响应成功做点什么 可使用async await 做异步操作*/ 7 | const data = response.data 8 | // 自定义参数 9 | const custom = response.config?.custom 10 | if (data.code !== 200) { // 服务端返回的状态码不等于200,则reject() 11 | // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示 12 | if (custom.toast !== false) { 13 | uni.$uv.toast(data.message) 14 | } 15 | // 如果需要catch返回,则进行reject 16 | if (custom?.catch) { 17 | return Promise.reject(data) 18 | } else { 19 | // 否则返回一个pending中的promise 20 | return new Promise(() => { }) 21 | } 22 | } 23 | return data.data || {} 24 | }, (response) => { /* 对响应错误做点什么 (statusCode !== 200)*/ 25 | return Promise.reject(response) 26 | }) 27 | } --------------------------------------------------------------------------------