@10yun/cv-mobile-ui 0.5.53 → 0.5.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/parse-create.js +17 -5
- package/build/parse-pages-pkg.js +14 -5
- package/js-sdk/Sansnn-uQRCode/uqrcode.js +150 -75
- package/js-sdk/clipboard.min.js +9 -0
- package/js-sdk/gprint/encoding-indexes.js +47 -0
- package/js-sdk/gprint/encoding.js +3312 -0
- package/js-sdk/gprint/esc.js +548 -0
- package/js-sdk/gprint/tsc.js +222 -0
- package/js-sdk/ican-H5Api/ican-H5Api.js +68 -666
- package/other/api-set-tabbar.nvue +0 -3
- package/other/lime-painter/changelog.md +225 -0
- package/other/lime-painter/components/common/relation.js +150 -0
- package/other/lime-painter/components/l-painter/l-painter.vue +482 -0
- package/other/lime-painter/components/l-painter/nvue.js +203 -0
- package/other/lime-painter/components/l-painter/painter.js +1 -0
- package/other/lime-painter/components/l-painter/props.js +56 -0
- package/other/lime-painter/components/l-painter/single.js +1 -0
- package/other/lime-painter/components/l-painter/utils.js +382 -0
- package/other/lime-painter/components/l-painter-image/l-painter-image.vue +23 -0
- package/other/lime-painter/components/l-painter-qrcode/l-painter-qrcode.vue +22 -0
- package/other/lime-painter/components/l-painter-text/l-painter-text.vue +32 -0
- package/other/lime-painter/components/l-painter-view/l-painter-view.vue +28 -0
- package/other/lime-painter/components/lime-painter/lime-painter.vue +259 -0
- package/other/lime-painter/hybrid/html/index.html +117 -0
- package/other/lime-painter/hybrid/html/painter.js +1 -0
- package/other/lime-painter/hybrid/html/uni.webview.1.5.3.js +1 -0
- package/other/lime-painter/package.json +93 -0
- package/other/lime-painter/parser.js +388 -0
- package/other/lime-painter/readme.md +961 -0
- package/other/lime-painter2/README2.md +576 -0
- package/other/lime-painter2/changelog.md +225 -0
- package/other/lime-painter2/components/lime-painter/canvas.js +57 -0
- package/other/lime-painter2/components/lime-painter/draw.js +654 -0
- package/other/lime-painter2/components/lime-painter/draw2.js +709 -0
- package/other/lime-painter2/components/lime-painter/gradient.js +119 -0
- package/other/lime-painter2/components/lime-painter/index.vue +344 -0
- package/other/lime-painter2/components/lime-painter/index2.vue +197 -0
- package/other/lime-painter2/components/lime-painter/layout.js +374 -0
- package/other/lime-painter2/components/lime-painter/utils.js +420 -0
- package/other/lime-painter2/package.json +93 -0
- package/other/lime-painter2/readme.md +758 -0
- package/other/lime-painter2/test.md +45 -0
- package/other/mpvue-echarts/src/echarts.vue +116 -103
- package/other/mpvue-echarts/src/style.css +0 -6
- package/other/product.vue +45 -1
- package/other/qiun-data-charts/qiun-data-charts.vue +1618 -0
- package/other/u-parse-2019/components/wxParseAudio.vue +29 -0
- package/other/u-parse-2019/components/wxParseImg.vue +87 -0
- package/other/u-parse-2019/components/wxParseTemplate0.vue +105 -0
- package/other/u-parse-2019/components/wxParseTemplate1.vue +96 -0
- package/other/u-parse-2019/components/wxParseTemplate10.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate11.vue +84 -0
- package/other/u-parse-2019/components/wxParseTemplate2.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate3.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate4.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate5.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate6.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate7.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate8.vue +95 -0
- package/other/u-parse-2019/components/wxParseTemplate9.vue +95 -0
- package/other/u-parse-2019/components/wxParseVideo.vue +15 -0
- package/other/u-parse-2019/libs/html2json.js +258 -0
- package/other/u-parse-2019/libs/htmlparser.js +163 -0
- package/other/u-parse-2019/libs/wxDiscode.js +195 -0
- package/other/u-parse-2019/readme.md +99 -0
- package/other/u-parse-2019/u-parse.css +240 -0
- package/other/u-parse-2019/u-parse.vue +114 -0
- package/other/u-parse2026/components/wxParseAudio.vue +29 -0
- package/other/u-parse2026/components/wxParseImg.vue +90 -0
- package/other/u-parse2026/components/wxParseTable.vue +51 -0
- package/other/u-parse2026/components/wxParseTemplate0.vue +93 -0
- package/other/u-parse2026/components/wxParseTemplate1.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate10.vue +82 -0
- package/other/u-parse2026/components/wxParseTemplate11.vue +79 -0
- package/other/u-parse2026/components/wxParseTemplate2.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate3.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate4.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate5.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate6.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate7.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate8.vue +92 -0
- package/other/u-parse2026/components/wxParseTemplate9.vue +82 -0
- package/other/u-parse2026/components/wxParseVideo.vue +15 -0
- package/other/u-parse2026/libs/html2json.js +258 -0
- package/other/u-parse2026/libs/htmlparser.js +163 -0
- package/other/u-parse2026/libs/wxDiscode.js +195 -0
- package/other/u-parse2026/readme.md +99 -0
- package/other/u-parse2026/u-parse.css +283 -0
- package/other/u-parse2026/u-parse.vue +114 -0
- package/other/uParse/components/wxParseVideo.vue +2 -1
- package/other/xt-parse/changelog.md +41 -0
- package/other/xt-parse/node/node.vue +752 -0
- package/other/xt-parse/package.json +129 -0
- package/other/xt-parse/parser.js +1461 -0
- package/other/xt-parse/props.js +49 -0
- package/other/xt-parse/readme.md +145 -0
- package/other/xt-parse/static/app-plus/u-parse/js/handler.js +1 -0
- package/other/xt-parse/static/app-plus/u-parse/js/handler2.js +224 -0
- package/other/xt-parse/static/app-plus/u-parse/js/uni.webview.min.js +1 -0
- package/other/xt-parse/static/app-plus/u-parse/js/uni.webview.min2.js +186 -0
- package/other/xt-parse/static/app-plus/u-parse/local.html +37 -0
- package/other/xt-parse/u-parse.vue +510 -0
- package/other/z-paging/changelog.md +52 -0
- package/other/z-paging/components/z-paging/components/z-paging-load-more.vue +182 -0
- package/other/z-paging/components/z-paging/components/z-paging-refresh.vue +214 -0
- package/other/z-paging/components/z-paging/config/index.js +3 -0
- package/other/z-paging/components/z-paging/css/z-paging-main.css +241 -0
- package/other/z-paging/components/z-paging/css/z-paging-static.css +50 -0
- package/other/z-paging/components/z-paging/i18n/en.json +23 -0
- package/other/z-paging/components/z-paging/i18n/index.js +8 -0
- package/other/z-paging/components/z-paging/i18n/zh-Hans.json +23 -0
- package/other/z-paging/components/z-paging/i18n/zh-Hant.json +23 -0
- package/other/z-paging/components/z-paging/js/hooks/useZPaging.js +25 -0
- package/other/z-paging/components/z-paging/js/hooks/useZPagingComp.js +25 -0
- package/other/z-paging/components/z-paging/js/modules/back-to-top.js +125 -0
- package/other/z-paging/components/z-paging/js/modules/chat-record-mode.js +149 -0
- package/other/z-paging/components/z-paging/js/modules/common-layout.js +152 -0
- package/other/z-paging/components/z-paging/js/modules/data-handle.js +736 -0
- package/other/z-paging/components/z-paging/js/modules/empty.js +144 -0
- package/other/z-paging/components/z-paging/js/modules/i18n.js +113 -0
- package/other/z-paging/components/z-paging/js/modules/load-more.js +374 -0
- package/other/z-paging/components/z-paging/js/modules/loading.js +95 -0
- package/other/z-paging/components/z-paging/js/modules/nvue.js +268 -0
- package/other/z-paging/components/z-paging/js/modules/refresher.js +831 -0
- package/other/z-paging/components/z-paging/js/modules/scroller.js +550 -0
- package/other/z-paging/components/z-paging/js/modules/virtual-list.js +555 -0
- package/other/z-paging/components/z-paging/js/z-paging-constant.js +19 -0
- package/other/z-paging/components/z-paging/js/z-paging-enum.js +45 -0
- package/other/z-paging/components/z-paging/js/z-paging-interceptor.js +97 -0
- package/other/z-paging/components/z-paging/js/z-paging-main.js +515 -0
- package/other/z-paging/components/z-paging/js/z-paging-mixin.js +22 -0
- package/other/z-paging/components/z-paging/js/z-paging-static.js +13 -0
- package/other/z-paging/components/z-paging/js/z-paging-utils.js +302 -0
- package/other/z-paging/components/z-paging/wxs/z-paging-renderjs.js +67 -0
- package/other/z-paging/components/z-paging/wxs/z-paging-wxs.wxs +382 -0
- package/other/z-paging/components/z-paging/z-paging.vue +538 -0
- package/other/z-paging/components/z-paging-cell/z-paging-cell.vue +47 -0
- package/other/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue +209 -0
- package/other/z-paging/components/z-paging-swiper/z-paging-swiper.vue +176 -0
- package/other/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue +171 -0
- package/other/z-paging/package.json +89 -0
- package/other/z-paging/readme.md +57 -0
- package/other/z-paging/types/comps/_common.d.ts +9 -0
- package/other/z-paging/types/comps/z-paging-cell.d.ts +29 -0
- package/other/z-paging/types/comps/z-paging-empty-view.d.ts +95 -0
- package/other/z-paging/types/comps/z-paging-swiper-item.d.ts +95 -0
- package/other/z-paging/types/comps/z-paging-swiper.d.ts +89 -0
- package/other/z-paging/types/comps/z-paging.d.ts +2083 -0
- package/other/z-paging/types/comps.d.ts +11 -0
- package/other/z-paging/types/index.d.ts +24 -0
- package/package.json +7 -7
- package/plugins/tui-validation.js +279 -0
- package/plugins/uni-async.js +28 -0
- package/ui-cv/components/cv-draw-gesture-lock/cv-draw-gesture-lock.vue +39 -1
- package/ui-cv/components/cv-draw-qrcode/cv-draw-qrcode.vue +18 -14
- package/ui-cv/components/cv-geo-region/mpvueCityPicker.vue +77 -1
- package/ui-cv/components/cv-lists-base/cv-lists-base.vue +2 -2
- package/ui-cv/components/cv-tab-lists/cv-tab-lists.vue +2 -2
- package/ui-fireui/components/u-icon/u-icon.vue +63 -1
- package/ui-sdks/qiun-data-charts/changelog.md +320 -0
- package/ui-sdks/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue +1618 -0
- package/ui-sdks/qiun-data-charts/components/qiun-error/qiun-error.vue +46 -0
- package/ui-sdks/qiun-data-charts/components/qiun-loading/loading1.vue +162 -0
- package/ui-sdks/qiun-data-charts/components/qiun-loading/loading2.vue +170 -0
- package/ui-sdks/qiun-data-charts/components/qiun-loading/loading3.vue +173 -0
- package/ui-sdks/qiun-data-charts/components/qiun-loading/loading4.vue +222 -0
- package/ui-sdks/qiun-data-charts/components/qiun-loading/loading5.vue +229 -0
- package/ui-sdks/qiun-data-charts/components/qiun-loading/qiun-loading.vue +36 -0
- package/ui-sdks/qiun-data-charts/js_sdk/u-charts/config-echarts.js +422 -0
- package/ui-sdks/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +606 -0
- package/ui-sdks/qiun-data-charts/js_sdk/u-charts/readme.md +5 -0
- package/ui-sdks/qiun-data-charts/js_sdk/u-charts/u-charts.js +7706 -0
- package/ui-sdks/qiun-data-charts/js_sdk/u-charts/u-charts.min.js +18 -0
- package/ui-sdks/qiun-data-charts/license.md +201 -0
- package/ui-sdks/qiun-data-charts/package.json +80 -0
- package/ui-sdks/qiun-data-charts/readme.md +84 -0
- package/ui-sdks/qiun-data-charts/static/app-plus/echarts.min.js +23 -0
- package/ui-sdks/qiun-data-charts/static/h5/echarts.min.js +23 -0
- package/ui-sdks/tui-clipboard/tui-clipboard.js +53 -0
- package/uni-ui/lib/uni-badge/changelog.md +33 -0
- package/uni-ui/lib/uni-badge/package.json +107 -0
- package/uni-ui/lib/uni-badge/readme.md +8 -0
- package/uni-ui/lib/uni-badge/uni-badge.vue +87 -4
- package/uni-ui/lib/uni-breadcrumb/changelog.md +6 -0
- package/uni-ui/lib/uni-breadcrumb/package.json +104 -0
- package/uni-ui/lib/uni-breadcrumb/readme.md +66 -0
- package/uni-ui/lib/uni-breadcrumb/uni-breadcrumb.vue +8 -1
- package/uni-ui/lib/uni-breadcrumb-item/uni-breadcrumb-item.vue +38 -1
- package/uni-ui/lib/uni-calendar/calendar.js +0 -2
- package/uni-ui/lib/uni-calendar/changelog.md +30 -0
- package/uni-ui/lib/uni-calendar/package.json +105 -0
- package/uni-ui/lib/uni-calendar/readme.md +103 -0
- package/uni-ui/lib/uni-calendar/uni-calendar-item.vue +83 -1
- package/uni-ui/lib/uni-calendar/uni-calendar.vue +206 -8
- package/uni-ui/lib/uni-calendar/util.js +1 -1
- package/uni-ui/lib/uni-card/changelog.md +26 -0
- package/uni-ui/lib/uni-card/package.json +107 -0
- package/uni-ui/lib/uni-card/readme.md +10 -0
- package/uni-ui/lib/uni-card/uni-card.vue +127 -4
- package/uni-ui/lib/uni-col/uni-col.vue +2155 -2
- package/uni-ui/lib/uni-collapse/changelog.md +48 -0
- package/uni-ui/lib/uni-collapse/package.json +106 -0
- package/uni-ui/lib/uni-collapse/readme.md +11 -0
- package/uni-ui/lib/uni-collapse/uni-collapse.vue +13 -1
- package/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +127 -2
- package/uni-ui/lib/uni-combox/changelog.md +17 -0
- package/uni-ui/lib/uni-combox/package.json +107 -0
- package/uni-ui/lib/uni-combox/readme.md +10 -0
- package/uni-ui/lib/uni-combox/uni-combox.vue +145 -19
- package/uni-ui/lib/uni-countdown/changelog.md +30 -0
- package/uni-ui/lib/uni-countdown/package.json +105 -0
- package/uni-ui/lib/uni-countdown/readme.md +9 -0
- package/uni-ui/lib/uni-countdown/uni-countdown.vue +43 -16
- package/uni-ui/lib/uni-data-checkbox/changelog.md +51 -0
- package/uni-ui/lib/uni-data-checkbox/package.json +107 -0
- package/uni-ui/lib/uni-data-checkbox/readme.md +17 -0
- package/uni-ui/lib/uni-data-checkbox/uni-data-checkbox.vue +326 -5
- package/uni-ui/lib/uni-data-picker/changelog.md +81 -0
- package/uni-ui/lib/uni-data-picker/package.json +109 -0
- package/uni-ui/lib/uni-data-picker/readme.md +21 -0
- package/uni-ui/lib/uni-data-picker/uni-data-picker.uvue +380 -0
- package/uni-ui/lib/uni-data-picker/uni-data-picker.vue +52 -4
- package/uni-ui/lib/uni-data-pickerview/loading.uts +1 -0
- package/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +150 -157
- package/uni-ui/lib/uni-data-pickerview/uni-data-picker.uts +693 -0
- package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +76 -0
- package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.uvue +69 -0
- package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +163 -1
- package/uni-ui/lib/uni-data-select/changelog.md +51 -0
- package/uni-ui/lib/uni-data-select/package.json +106 -0
- package/uni-ui/lib/uni-data-select/readme.md +7 -0
- package/uni-ui/lib/uni-data-select/uni-data-select.vue +555 -45
- package/uni-ui/lib/uni-dateformat/changelog.md +10 -0
- package/uni-ui/lib/uni-dateformat/package.json +107 -0
- package/uni-ui/lib/uni-dateformat/readme.md +10 -0
- package/uni-ui/lib/uni-dateformat/uni-dateformat.vue +2 -0
- package/uni-ui/lib/uni-datetime-picker/calendar-item.vue +113 -1
- package/uni-ui/lib/uni-datetime-picker/calendar.vue +340 -20
- package/uni-ui/lib/uni-datetime-picker/changelog.md +177 -0
- package/uni-ui/lib/uni-datetime-picker/keypress.js +45 -0
- package/uni-ui/lib/uni-datetime-picker/package.json +107 -0
- package/uni-ui/lib/uni-datetime-picker/readme.md +20 -0
- package/uni-ui/lib/uni-datetime-picker/time-picker.vue +200 -8
- package/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +287 -9
- package/uni-ui/lib/uni-datetime-picker/util.js +102 -85
- package/uni-ui/lib/uni-drawer/changelog.md +13 -0
- package/uni-ui/lib/uni-drawer/package.json +106 -0
- package/uni-ui/lib/uni-drawer/readme.md +9 -0
- package/uni-ui/lib/uni-drawer/uni-drawer.vue +72 -2
- package/uni-ui/lib/uni-easyinput/changelog.md +121 -0
- package/uni-ui/lib/uni-easyinput/common.js +0 -2
- package/uni-ui/lib/uni-easyinput/package.json +107 -0
- package/uni-ui/lib/uni-easyinput/readme.md +10 -0
- package/uni-ui/lib/uni-easyinput/uni-easyinput.vue +247 -5
- package/uni-ui/lib/uni-fab/changelog.md +25 -0
- package/uni-ui/lib/uni-fab/package.json +107 -0
- package/uni-ui/lib/uni-fab/readme.md +8 -0
- package/uni-ui/lib/uni-fab/uni-fab.vue +255 -2
- package/uni-ui/lib/uni-fav/changelog.md +19 -0
- package/uni-ui/lib/uni-fav/package.json +106 -0
- package/uni-ui/lib/uni-fav/readme.md +9 -0
- package/uni-ui/lib/uni-fav/uni-fav.vue +45 -1
- package/uni-ui/lib/uni-file-picker/changelog.md +91 -0
- package/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +67 -4
- package/uni-ui/lib/uni-file-picker/package.json +105 -0
- package/uni-ui/lib/uni-file-picker/readme.md +10 -0
- package/uni-ui/lib/uni-file-picker/uni-file-picker.vue +42 -22
- package/uni-ui/lib/uni-file-picker/upload-file.vue +152 -1
- package/uni-ui/lib/uni-file-picker/upload-image.vue +107 -5
- package/uni-ui/lib/uni-forms/changelog.md +100 -0
- package/uni-ui/lib/uni-forms/package.json +107 -0
- package/uni-ui/lib/uni-forms/readme.md +22 -0
- package/uni-ui/lib/uni-forms/uni-forms.vue +30 -3
- package/uni-ui/lib/uni-forms-item/uni-forms-item.vue +181 -6
- package/uni-ui/lib/uni-goods-nav/changelog.md +18 -0
- package/uni-ui/lib/uni-goods-nav/package.json +105 -0
- package/uni-ui/lib/uni-goods-nav/readme.md +9 -0
- package/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +124 -1
- package/uni-ui/lib/uni-grid/changelog.md +13 -0
- package/uni-ui/lib/uni-grid/package.json +106 -0
- package/uni-ui/lib/uni-grid/readme.md +10 -0
- package/uni-ui/lib/uni-grid/uni-grid.vue +36 -2
- package/uni-ui/lib/uni-grid-item/uni-grid-item.vue +57 -2
- package/uni-ui/lib/uni-group/changelog.md +16 -0
- package/uni-ui/lib/uni-group/package.json +106 -0
- package/uni-ui/lib/uni-group/readme.md +8 -0
- package/uni-ui/lib/uni-group/uni-group.vue +50 -1
- package/uni-ui/lib/uni-icons/changelog.md +22 -0
- package/uni-ui/lib/uni-icons/package.json +77 -8
- package/uni-ui/lib/uni-icons/readme.md +0 -1
- package/uni-ui/lib/uni-icons/uni-icons.uvue +91 -0
- package/uni-ui/lib/uni-icons/uni-icons.vue +37 -13
- package/uni-ui/lib/uni-icons/uniicons.css +32 -31
- package/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
- package/uni-ui/lib/uni-icons/uniicons_file.ts +664 -0
- package/uni-ui/lib/uni-icons/uniicons_file_vue.js +649 -0
- package/uni-ui/lib/uni-indexed-list/changelog.md +19 -0
- package/uni-ui/lib/uni-indexed-list/package.json +107 -0
- package/uni-ui/lib/uni-indexed-list/readme.md +10 -0
- package/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +90 -2
- package/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +91 -3
- package/uni-ui/lib/uni-link/changelog.md +17 -0
- package/uni-ui/lib/uni-link/package.json +106 -0
- package/uni-ui/lib/uni-link/readme.md +10 -0
- package/uni-ui/lib/uni-link/uni-link.vue +3 -0
- package/uni-ui/lib/uni-list/changelog.md +52 -0
- package/uni-ui/lib/uni-list/package.json +108 -0
- package/uni-ui/lib/uni-list/readme.md +44 -0
- package/uni-ui/lib/uni-list/uni-list.vue +44 -1
- package/uni-ui/lib/uni-list/uni-refresh.vue +2 -0
- package/uni-ui/lib/uni-list/uni-refresh.wxs +1 -1
- package/uni-ui/lib/uni-list-ad/uni-list-ad.vue +33 -1
- package/uni-ui/lib/uni-list-chat/uni-list-chat.vue +265 -1
- package/uni-ui/lib/uni-list-item/uni-list-item.vue +185 -1
- package/uni-ui/lib/uni-load-more/changelog.md +27 -0
- package/uni-ui/lib/uni-load-more/package.json +105 -0
- package/uni-ui/lib/uni-load-more/readme.md +12 -0
- package/uni-ui/lib/uni-load-more/uni-load-more.vue +252 -1
- package/uni-ui/lib/uni-nav-bar/changelog.md +64 -0
- package/uni-ui/lib/uni-nav-bar/package.json +106 -0
- package/uni-ui/lib/uni-nav-bar/readme.md +13 -0
- package/uni-ui/lib/uni-nav-bar/uni-nav-bar.vue +199 -5
- package/uni-ui/lib/uni-nav-bar/uni-status-bar.vue +11 -1
- package/uni-ui/lib/uni-notice-bar/changelog.md +22 -0
- package/uni-ui/lib/uni-notice-bar/package.json +107 -0
- package/uni-ui/lib/uni-notice-bar/readme.md +11 -0
- package/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +136 -8
- package/uni-ui/lib/uni-number-box/changelog.md +39 -0
- package/uni-ui/lib/uni-number-box/package.json +104 -0
- package/uni-ui/lib/uni-number-box/readme.md +11 -0
- package/uni-ui/lib/uni-number-box/uni-number-box.vue +73 -4
- package/uni-ui/lib/uni-pagination/changelog.md +27 -0
- package/uni-ui/lib/uni-pagination/package.json +106 -0
- package/uni-ui/lib/uni-pagination/readme.md +10 -0
- package/uni-ui/lib/uni-pagination/uni-pagination.vue +157 -1
- package/uni-ui/lib/uni-popup/changelog.md +102 -0
- package/uni-ui/lib/uni-popup/package.json +107 -0
- package/uni-ui/lib/uni-popup/readme.md +15 -0
- package/uni-ui/lib/uni-popup/uni-popup.uvue +90 -0
- package/uni-ui/lib/uni-popup/uni-popup.vue +108 -15
- package/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +167 -11
- package/uni-ui/lib/uni-popup-message/uni-popup-message.vue +70 -1
- package/uni-ui/lib/uni-popup-share/uni-popup-share.vue +87 -6
- package/uni-ui/lib/uni-rate/changelog.md +27 -0
- package/uni-ui/lib/uni-rate/package.json +106 -0
- package/uni-ui/lib/uni-rate/readme.md +11 -0
- package/uni-ui/lib/uni-rate/uni-rate.vue +64 -29
- package/uni-ui/lib/uni-row/changelog.md +10 -0
- package/uni-ui/lib/uni-row/package.json +106 -0
- package/uni-ui/lib/uni-row/readme.md +9 -0
- package/uni-ui/lib/uni-row/uni-row.vue +66 -1
- package/uni-ui/lib/uni-row/uni-row2.vue +144 -0
- package/uni-ui/lib/uni-scss/package.json +56 -39
- package/uni-ui/lib/uni-scss/readme.md +0 -1
- package/uni-ui/lib/uni-search-bar/changelog.md +47 -0
- package/uni-ui/lib/uni-search-bar/package.json +106 -0
- package/uni-ui/lib/uni-search-bar/readme.md +12 -0
- package/uni-ui/lib/uni-search-bar/uni-search-bar.vue +85 -4
- package/uni-ui/lib/uni-section/changelog.md +2 -0
- package/uni-ui/lib/uni-section/package.json +104 -0
- package/uni-ui/lib/uni-section/readme.md +7 -0
- package/uni-ui/lib/uni-section/uni-section.vue +61 -1
- package/uni-ui/lib/uni-segmented-control/changelog.md +15 -0
- package/uni-ui/lib/uni-segmented-control/package.json +106 -0
- package/uni-ui/lib/uni-segmented-control/readme.md +11 -0
- package/uni-ui/lib/uni-segmented-control/uni-segmented-control.vue +67 -5
- package/uni-ui/lib/uni-status-bar/uni-status-bar.vue +3 -1
- package/uni-ui/lib/uni-steps/changelog.md +18 -0
- package/uni-ui/lib/uni-steps/package.json +106 -0
- package/uni-ui/lib/uni-steps/readme.md +11 -0
- package/uni-ui/lib/uni-steps/uni-steps.vue +201 -7
- package/uni-ui/lib/uni-swipe-action/changelog.md +60 -0
- package/uni-ui/lib/uni-swipe-action/package.json +113 -0
- package/uni-ui/lib/uni-swipe-action/readme.md +10 -0
- package/uni-ui/lib/uni-swipe-action/uni-swipe-action.vue +60 -1
- package/uni-ui/lib/uni-swipe-action-item/bindingx.js +286 -282
- package/uni-ui/lib/uni-swipe-action-item/mpwxs.js +1 -1
- package/uni-ui/lib/uni-swipe-action-item/render.js +21 -14
- package/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +139 -18
- package/uni-ui/lib/uni-swipe-action-item/wx.wxs +10 -2
- package/uni-ui/lib/uni-swiper-dot/changelog.md +12 -0
- package/uni-ui/lib/uni-swiper-dot/package.json +106 -0
- package/uni-ui/lib/uni-swiper-dot/readme.md +10 -0
- package/uni-ui/lib/uni-swiper-dot/uni-swiper-dot.vue +98 -2
- package/uni-ui/lib/uni-table/changelog.md +35 -0
- package/uni-ui/lib/uni-table/i18n/en.json +9 -0
- package/uni-ui/lib/uni-table/i18n/es.json +9 -0
- package/uni-ui/lib/uni-table/i18n/fr.json +9 -0
- package/uni-ui/lib/uni-table/i18n/index.js +12 -0
- package/uni-ui/lib/uni-table/i18n/zh-Hans.json +9 -0
- package/uni-ui/lib/uni-table/i18n/zh-Hant.json +9 -0
- package/uni-ui/lib/uni-table/package.json +106 -0
- package/uni-ui/lib/uni-table/readme.md +11 -0
- package/uni-ui/lib/uni-table/uni-table.vue +162 -1
- package/uni-ui/lib/uni-tag/changelog.md +25 -0
- package/uni-ui/lib/uni-tag/package.json +106 -0
- package/uni-ui/lib/uni-tag/readme.md +11 -0
- package/uni-ui/lib/uni-tag/uni-tag.vue +111 -3
- package/uni-ui/lib/uni-tbody/uni-tbody.vue +1 -1
- package/uni-ui/lib/uni-td/uni-td.vue +19 -1
- package/uni-ui/lib/uni-th/filter-dropdown.vue +224 -2
- package/uni-ui/lib/uni-th/uni-th.vue +82 -1
- package/uni-ui/lib/uni-thead/uni-thead.vue +53 -2
- package/uni-ui/lib/uni-title/changelog.md +10 -0
- package/uni-ui/lib/uni-title/package.json +107 -0
- package/uni-ui/lib/uni-title/readme.md +12 -0
- package/uni-ui/lib/uni-title/uni-title.vue +1 -1
- package/uni-ui/lib/uni-tooltip/changelog.md +16 -0
- package/uni-ui/lib/uni-tooltip/package.json +104 -0
- package/uni-ui/lib/uni-tooltip/readme.md +7 -0
- package/uni-ui/lib/uni-tooltip/uni-tooltip.vue +1 -1
- package/uni-ui/lib/uni-tr/table-checkbox.vue +85 -1
- package/uni-ui/lib/uni-tr/uni-tr.vue +45 -3
- package/uni-ui/lib/uni-transition/changelog.md +31 -0
- package/uni-ui/lib/uni-transition/package.json +112 -0
- package/uni-ui/lib/uni-transition/readme.md +10 -0
- package/uni-ui/lib/uni-transition/uni-transition.vue +36 -32
- package/uni-ui/lib/uni-ui/changelog.md +639 -0
- package/uni-ui/lib/uni-ui/package.json +148 -0
- package/uni-ui/lib/uni-ui/readme.md +247 -0
- package/uni-ui/lib/uni-ui/uni-ui.vue +7 -0
- package/uni-ui/package.json +1 -1
- package/uview-plus/components/u-action-sheet/u-action-sheet.vue +56 -1
- package/uview-plus/components/u-action-sheet-data/u-action-sheet-data.vue +10 -1
- package/uview-plus/components/u-agreement/u-agreement.vue +14 -3
- package/uview-plus/components/u-album/u-album.vue +29 -1
- package/uview-plus/components/u-alert/u-alert.vue +96 -1
- package/uview-plus/components/u-avatar/u-avatar.vue +21 -1
- package/uview-plus/components/u-avatar-group/u-avatar-group.vue +28 -1
- package/uview-plus/components/u-back-top/u-back-top.vue +16 -1
- package/uview-plus/components/u-badge/u-badge.vue +57 -1
- package/uview-plus/components/u-box/u-box.vue +101 -3
- package/uview-plus/components/u-button/u-button.vue +196 -3
- package/uview-plus/components/u-calendar/header.vue +59 -3
- package/uview-plus/components/u-calendar/month.vue +1 -3
- package/uview-plus/components/u-calendar/u-calendar.vue +3 -1
- package/uview-plus/components/u-calendar-wu/u-calendar-wu.vue +196 -1
- package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +70 -1
- package/uview-plus/components/u-card/u-card.vue +34 -1
- package/uview-plus/components/u-cascader/u-cascader.vue +16 -1
- package/uview-plus/components/u-cate-tab/u-cate-tab.vue +387 -3
- package/uview-plus/components/u-cell/u-cell.vue +113 -1
- package/uview-plus/components/u-cell-group/u-cell-group.vue +14 -1
- package/uview-plus/components/u-checkbox/u-checkbox.vue +77 -1
- package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +12 -1
- package/uview-plus/components/u-choose/u-choose.vue +15 -3
- package/uview-plus/components/u-circle-progress/u-circle-progress.vue +69 -1
- package/{ui-fireui copy/components/u-circular-progress/u-circular-progress.vue → uview-plus/components/u-circular-progress/u-circular-progress.vue} +1 -1
- package/uview-plus/components/u-city-locate/u-city-locate.vue +161 -1
- package/uview-plus/components/u-code-input/u-code-input.vue +68 -1
- package/uview-plus/components/u-col/u-col.vue +50 -1
- package/uview-plus/components/u-collapse-item/u-collapse-item.vue +10 -1
- package/uview-plus/components/u-color-picker/u-color-picker.vue +260 -1
- package/uview-plus/components/u-column-notice/u-column-notice.vue +37 -1
- package/uview-plus/components/u-count-down/u-count-down.vue +5 -1
- package/uview-plus/components/u-count-to/u-count-to.vue +6 -1
- package/uview-plus/components/u-coupon/u-coupon.vue +214 -1
- package/uview-plus/components/u-cropper/u-cropper.vue +1319 -1
- package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +26 -1
- package/uview-plus/components/u-divider/u-divider.vue +17 -1
- package/uview-plus/components/u-dragsort/u-dragsort.vue +40 -1
- package/uview-plus/components/u-dropdown/u-dropdown.vue +66 -1
- package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +3 -1
- package/{ui-fireui → uview-plus}/components/u-dropdown-list/u-dropdown-list.vue +1 -1
- package/uview-plus/components/u-empty/u-empty.vue +43 -32
- package/{ui-fireui copy/components/u-fab/u-fab.vue → uview-plus/components/u-fab/u-fab.vue} +1 -1
- package/uview-plus/components/u-float-button/u-float-button.vue +15 -1
- package/{ui-fireui → uview-plus}/components/u-footer/u-footer.vue +1 -1
- package/uview-plus/components/u-form-base/form.js +22 -0
- package/uview-plus/components/u-form-base/props.js +47 -0
- package/uview-plus/components/u-form-base/u-form.vue +243 -0
- package/uview-plus/components/u-form-item/u-form-item.vue +82 -1
- package/uview-plus/components/u-goods-sku/u-goods-sku.vue +100 -1
- package/uview-plus/components/u-grid/u-grid.vue +0 -2
- package/uview-plus/components/u-grid-item/u-grid-item.vue +30 -1
- package/uview-plus/components/u-icon/u-icon.vue +63 -1
- package/uview-plus/components/u-image/u-image.vue +25 -1
- package/{ui-fireui → uview-plus}/components/u-image-cropper/u-image-cropper.vue +1 -1
- package/{ui-fireui copy/components/u-image-group/u-image-group.vue → uview-plus/components/u-image-group/u-image-group.vue} +1 -1
- package/uview-plus/components/u-index-anchor/u-index-anchor.vue +22 -1
- package/uview-plus/components/u-index-list/u-index-list.vue +51 -1
- package/uview-plus/components/u-input/u-input.vue +65 -1
- package/uview-plus/components/u-keyboard/u-keyboard.vue +26 -1
- package/uview-plus/components/u-lazy-load/u-lazy-load.vue +12 -1
- package/uview-plus/components/u-line/u-line.vue +5 -1
- package/uview-plus/components/u-line-progress/u-line-progress.vue +38 -1
- package/uview-plus/components/u-link/u-link.vue +11 -1
- package/uview-plus/components/u-list/u-list.vue +6 -1
- package/uview-plus/components/u-list-item/u-list-item.vue +2 -1
- package/uview-plus/components/u-loading-icon/u-loading-icon.vue +138 -1
- package/uview-plus/components/u-loading-page/u-loading-page.vue +33 -1
- package/uview-plus/components/u-loadmore/u-loadmore.vue +29 -1
- package/uview-plus/components/u-markdown/u-markdown.vue +188 -1
- package/uview-plus/components/u-message-input/u-message-input.vue +115 -1
- package/uview-plus/components/u-modal/u-modal.vue +65 -1
- package/uview-plus/components/u-navbar/u-navbar.vue +52 -1
- package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +34 -1
- package/uview-plus/components/u-no-network/u-no-network.vue +38 -1
- package/uview-plus/components/u-notice-bar/u-notice-bar.vue +5 -1
- package/uview-plus/components/u-notify/u-notify.vue +28 -1
- package/uview-plus/components/u-number-box/u-number-box.vue +60 -2
- package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +45 -1
- package/uview-plus/components/u-overlay/u-overlay.vue +8 -1
- package/uview-plus/components/u-pagination/u-pagination.vue +255 -1
- package/uview-plus/components/u-parse/node/node.vue +319 -129
- package/uview-plus/components/u-pdf-reader/u-pdf-reader.vue +2 -1
- package/uview-plus/components/u-picker/u-picker.vue +58 -1
- package/uview-plus/components/u-picker-data/u-picker-data.vue +11 -1
- package/uview-plus/components/u-popover/u-popover.vue +8 -1
- package/uview-plus/components/u-popup/u-popup.vue +87 -1
- package/uview-plus/components/u-popup-wu/u-popup-wu.vue +2 -2
- package/uview-plus/components/u-poster/u-poster.vue +22 -1
- package/uview-plus/components/u-pull-refresh/u-pull-refresh.vue +51 -1
- package/uview-plus/components/u-qrcode/u-qrcode.vue +32 -1
- package/uview-plus/components/u-radio/u-radio.vue +77 -1
- package/uview-plus/components/u-radio-group/u-radio-group.vue +15 -1
- package/uview-plus/components/u-rate/u-rate.vue +32 -1
- package/uview-plus/components/u-read-more/u-read-more.vue +23 -1
- package/uview-plus/components/u-row/u-row.vue +6 -1
- package/uview-plus/components/u-row-notice/u-row-notice.vue +50 -1
- package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +5 -1
- package/uview-plus/components/u-scroll-list/u-scroll-list.vue +35 -1
- package/uview-plus/components/u-search/u-search.vue +87 -1
- package/uview-plus/components/u-select/u-select.vue +51 -1
- package/uview-plus/components/u-short-video/u-short-video.vue +118 -1
- package/uview-plus/components/u-signature/u-signature.vue +71 -1
- package/uview-plus/components/u-skeleton/u-skeleton.vue +52 -1
- package/uview-plus/components/u-sku-wu/u-sku-wu.vue +271 -1
- package/uview-plus/components/u-slider/nvue.js +165 -178
- package/uview-plus/components/u-slider/u-slider.vue +69 -1
- package/uview-plus/components/u-status-bar/u-status-bar.vue +6 -1
- package/uview-plus/components/u-steps/u-steps.vue +20 -1
- package/uview-plus/components/u-steps-item/u-steps-item.vue +112 -1
- package/uview-plus/components/u-sticky/u-sticky.vue +6 -1
- package/uview-plus/components/u-subsection/u-subsection.vue +101 -1
- package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +51 -1
- package/uview-plus/components/u-swiper/u-swiper.vue +50 -1
- package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +26 -1
- package/uview-plus/components/u-switch/u-switch.vue +47 -1
- package/uview-plus/components/u-tabbar/u-tabbar.vue +29 -1
- package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +59 -1
- package/uview-plus/components/u-table2/tableRow.vue +361 -1
- package/uview-plus/components/u-table2/u-table2.vue +763 -1
- package/uview-plus/components/u-tabs/u-tabs.vue +62 -1
- package/uview-plus/components/u-tag/u-tag.vue +169 -1
- package/uview-plus/components/u-td/u-td.vue +14 -1
- package/uview-plus/components/u-text/u-text.vue +50 -1
- package/uview-plus/components/u-textarea/u-textarea.vue +35 -1
- package/uview-plus/components/u-th/u-th.vue +13 -1
- package/uview-plus/components/u-title/u-title.vue +10 -3
- package/uview-plus/components/u-toast/u-toast.vue +67 -1
- package/uview-plus/components/u-toolbar/u-toolbar.vue +34 -1
- package/uview-plus/components/u-tooltip/u-tooltip.vue +65 -1
- package/uview-plus/components/u-tr/u-tr.vue +6 -1
- package/uview-plus/components/u-transition/u-transition.vue +98 -1
- package/uview-plus/components/u-upload/u-upload.vue +176 -1
- package/uview-plus/components/u-view/u-view.vue +2 -1
- package/uview-plus/components/u-virtual-list/u-virtual-list.vue +16 -1
- package/uview-plus/components/u-waterfall/u-waterfall.vue +28 -1
- package/uview-plus/libs/css/color2.scss +32 -0
- package/uview-plus/libs/css/variable2.scss +111 -0
- package/{plugins → uview-plus/libs/ctocode}/MessageTip.js +6 -6
- package/uview-plus/libs/ctocode/wait.js +47 -0
- package/uview-plus/libs/mixin/openType2.js +60 -0
- package/uview-plus/libs/util/route2.js +126 -0
- package/other/style.css +0 -46
- package/ui-cv/components/cv-draw-gesture-lock/style.css +0 -39
- package/ui-cv/components/cv-geo-region/style.css +0 -77
- package/ui-fireui/components/u-circular-progress/u-circular-progress.vue +0 -269
- package/ui-fireui/components/u-countdown/u-countdown.vue +0 -301
- package/ui-fireui/components/u-fab/u-fab.vue +0 -284
- package/ui-fireui/components/u-icon/style.css +0 -63
- package/ui-fireui/components/u-image-group/u-image-group.vue +0 -149
- package/ui-fireui copy/components/u-action-sheet/u-action-sheet.vue +0 -202
- package/ui-fireui copy/components/u-alert/u-alert.vue +0 -141
- package/ui-fireui copy/components/u-badge/u-badge.vue +0 -158
- package/ui-fireui copy/components/u-bottom-navigation/u-bottom-navigation.vue +0 -391
- package/ui-fireui copy/components/u-bottom-popup/u-bottom-popup.vue +0 -101
- package/ui-fireui copy/components/u-bubble-popup/u-bubble-popup.vue +0 -240
- package/ui-fireui copy/components/u-button/u-button.vue +0 -424
- package/ui-fireui copy/components/u-button/u-button2.vue +0 -553
- package/ui-fireui copy/components/u-calendar/u-calendar.js +0 -915
- package/ui-fireui copy/components/u-calendar/u-calendar.vue +0 -868
- package/ui-fireui copy/components/u-calendar/u-calendar2.vue +0 -801
- package/ui-fireui copy/components/u-card/u-card.vue +0 -231
- package/ui-fireui copy/components/u-cascade-selection/u-cascade-selection.vue +0 -538
- package/ui-fireui copy/components/u-collapse/u-collapse.vue +0 -179
- package/ui-fireui copy/components/u-datetime/u-datetime.vue +0 -570
- package/ui-fireui copy/components/u-divider/u-divider.vue +0 -118
- package/ui-fireui copy/components/u-drawer/u-drawer.vue +0 -103
- package/ui-fireui copy/components/u-dropdown-list/u-dropdown-list.vue +0 -75
- package/ui-fireui copy/components/u-footer/u-footer.vue +0 -135
- package/ui-fireui copy/components/u-grid/u-grid.vue +0 -50
- package/ui-fireui copy/components/u-grid-item/u-grid-item.vue +0 -142
- package/ui-fireui copy/components/u-icon/icons.js +0 -214
- package/ui-fireui copy/components/u-icon/props.js +0 -92
- package/ui-fireui copy/components/u-icon/style.css +0 -63
- package/ui-fireui copy/components/u-icon/style.scss +0 -1066
- package/ui-fireui copy/components/u-icon/u-icon.vue +0 -117
- package/ui-fireui copy/components/u-icon/u-icon2.vue +0 -149
- package/ui-fireui copy/components/u-icon/util.js +0 -68
- package/ui-fireui copy/components/u-image-cropper/u-image-cropper.vue +0 -1058
- package/ui-fireui copy/components/u-keyboard/u-keyboard.vue +0 -251
- package/ui-fireui copy/components/u-keyboard-input/u-keyboard-input.vue +0 -78
- package/ui-fireui copy/components/u-list-cell/u-list-cell.vue +0 -178
- package/ui-fireui copy/components/u-list-view/u-list-view.vue +0 -87
- package/ui-fireui copy/components/u-loading/u-loading.vue +0 -78
- package/ui-fireui copy/components/u-loadmore/u-loadmore.vue +0 -163
- package/ui-fireui copy/components/u-modal/u-modal.vue +0 -392
- package/ui-fireui copy/components/u-navigation-bar/u-navigation-bar.vue +0 -181
- package/ui-fireui copy/components/u-no-data/u-no-data.vue +0 -116
- package/ui-fireui copy/components/u-nomore/u-nomore.vue +0 -116
- package/ui-fireui copy/components/u-numberbox/u-numberbox.vue +0 -234
- package/ui-fireui copy/components/u-numberbox-border/u-numberbox-border.vue +0 -232
- package/ui-fireui copy/components/u-picture-cropper/u-picture-cropper.vue +0 -682
- package/ui-fireui copy/components/u-picture-cropper/u-picture-cropper.wxs +0 -582
- package/ui-fireui copy/components/u-round-progress/u-round-progress.vue +0 -306
- package/ui-fireui copy/components/u-scroll-top/u-scroll-top.vue +0 -189
- package/ui-fireui copy/components/u-share-model/u-share-model.vue +0 -181
- package/ui-fireui copy/components/u-skeleton/u-skeleton.vue +0 -248
- package/ui-fireui copy/components/u-steps/u-steps.vue +0 -214
- package/ui-fireui copy/components/u-sticky/u-sticky.vue +0 -155
- package/ui-fireui copy/components/u-sticky-wxs/u-sticky-wxs.vue +0 -133
- package/ui-fireui copy/components/u-sticky-wxs/u-sticky.wxs +0 -46
- package/ui-fireui copy/components/u-swipe-action/u-swipe-action.vue +0 -301
- package/ui-fireui copy/components/u-tabbar/u-tabbar.vue +0 -279
- package/ui-fireui copy/components/u-tabs/u-tabs.vue +0 -284
- package/ui-fireui copy/components/u-tabs2/u-tabs2.vue +0 -284
- package/ui-fireui copy/components/u-tag/u-tag.vue +0 -362
- package/ui-fireui copy/components/u-time-axis/u-time-axis.vue +0 -36
- package/ui-fireui copy/components/u-timeaxis-item/u-timeaxis-item.vue +0 -48
- package/ui-fireui copy/components/u-tips/u-tips.vue +0 -161
- package/ui-fireui copy/components/u-toast/u-toast.vue +0 -117
- package/ui-fireui copy/components/u-top-dropdown/u-top-dropdown.vue +0 -129
- package/ui-fireui copy/components/u-upload/u-upload.vue +0 -446
- package/ui-fireui copy/components/u-upload2/u-upload.vue +0 -464
- package/ui-fireui copy/components/u-uploadsamll/u-uploadsamll.vue +0 -472
- package/ui-fireui copy/css/thorui.css +0 -589
- package/ui-fireui copy/index.css +0 -1483
- package/ui-fireui copy/libs/fui-color-analysis/fui-color-analysis.js +0 -1
- package/ui-fireui copy/libs/fui-zh-pinyin/fui-zh-pinyin.js +0 -1
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/bridge/bridge-weex.js +0 -241
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/FillStyleLinearGradient.js +0 -18
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/FillStylePattern.js +0 -8
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/FillStyleRadialGradient.js +0 -17
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/RenderingContext.js +0 -666
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/ActiveInfo.js +0 -11
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Buffer.js +0 -21
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Framebuffer.js +0 -21
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/GLenum.js +0 -298
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/GLmethod.js +0 -142
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/GLtype.js +0 -23
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Program.js +0 -21
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Renderbuffer.js +0 -21
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/RenderingContext.js +0 -1191
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Shader.js +0 -22
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -11
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Texture.js +0 -22
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/UniformLocation.js +0 -22
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/classUtils.js +0 -3
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/env/canvas.js +0 -74
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/env/image.js +0 -96
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/env/tool.js +0 -24
- package/ui-fireui copy/nvue/u-circular-progress/gcanvas/index.js +0 -47
- package/ui-fireui copy/nvue/u-circular-progress/u-circular-progress.nvue +0 -203
- package/ui-fireui copy/nvue/u-icon/icons.js +0 -188
- package/ui-fireui copy/nvue/u-icon/u-icon.vue +0 -78
- package/uni-ui/lib/uni-badge/style.css +0 -81
- package/uni-ui/lib/uni-badge/style.scss +0 -106
- package/uni-ui/lib/uni-breadcrumb/style.css +0 -3
- package/uni-ui/lib/uni-breadcrumb/style.scss +0 -4
- package/uni-ui/lib/uni-breadcrumb-item/style.css +0 -30
- package/uni-ui/lib/uni-breadcrumb-item/style.scss +0 -40
- package/uni-ui/lib/uni-calendar/style.css +0 -167
- package/uni-ui/lib/uni-calendar/style.scss +0 -200
- package/uni-ui/lib/uni-card/style.css +0 -115
- package/uni-ui/lib/uni-card/style.scss +0 -161
- package/uni-ui/lib/uni-col/style.css +0 -2145
- package/uni-ui/lib/uni-col/style.scss +0 -112
- package/uni-ui/lib/uni-collapse/style.css +0 -11
- package/uni-ui/lib/uni-collapse/style.scss +0 -12
- package/uni-ui/lib/uni-collapse-item/style.css +0 -120
- package/uni-ui/lib/uni-collapse-item/style.scss +0 -143
- package/uni-ui/lib/uni-combox/style.css +0 -114
- package/uni-ui/lib/uni-combox/style.scss +0 -133
- package/uni-ui/lib/uni-countdown/style.css +0 -16
- package/uni-ui/lib/uni-countdown/style.scss +0 -21
- package/uni-ui/lib/uni-data-checkbox/style.css +0 -302
- package/uni-ui/lib/uni-data-checkbox/style.scss +0 -366
- package/uni-ui/lib/uni-data-pickerview/style.css +0 -134
- package/uni-ui/lib/uni-data-pickerview/style.scss +0 -154
- package/uni-ui/lib/uni-data-select/style.css +0 -181
- package/uni-ui/lib/uni-data-select/style.scss +0 -213
- package/uni-ui/lib/uni-datetime-picker/style.css +0 -188
- package/uni-ui/lib/uni-datetime-picker/style.scss +0 -218
- package/uni-ui/lib/uni-drawer/style.css +0 -63
- package/uni-ui/lib/uni-drawer/style.scss +0 -77
- package/uni-ui/lib/uni-easyinput/style.css +0 -126
- package/uni-ui/lib/uni-easyinput/style.scss +0 -155
- package/uni-ui/lib/uni-fab/style.css +0 -185
- package/uni-ui/lib/uni-fab/style.scss +0 -259
- package/uni-ui/lib/uni-fav/style.css +0 -39
- package/uni-ui/lib/uni-fav/style.scss +0 -45
- package/uni-ui/lib/uni-file-picker/style.css +0 -97
- package/uni-ui/lib/uni-file-picker/style.scss +0 -110
- package/uni-ui/lib/uni-forms-item/style.css +0 -133
- package/uni-ui/lib/uni-goods-nav/style.css +0 -100
- package/uni-ui/lib/uni-goods-nav/style.scss +0 -122
- package/uni-ui/lib/uni-grid/style.css +0 -29
- package/uni-ui/lib/uni-grid/style.scss +0 -33
- package/uni-ui/lib/uni-grid-item/style.css +0 -49
- package/uni-ui/lib/uni-grid-item/style.scss +0 -55
- package/uni-ui/lib/uni-group/style.css +0 -36
- package/uni-ui/lib/uni-group/style.scss +0 -50
- package/uni-ui/lib/uni-icons/icons.js +0 -1169
- package/uni-ui/lib/uni-icons/style.css +0 -12
- package/uni-ui/lib/uni-icons/style.scss +0 -14
- package/uni-ui/lib/uni-indexed-list/style.css +0 -68
- package/uni-ui/lib/uni-indexed-list/style.scss +0 -83
- package/uni-ui/lib/uni-list/style.css +0 -43
- package/uni-ui/lib/uni-list/style.scss +0 -52
- package/uni-ui/lib/uni-list-ad/style.css +0 -30
- package/uni-ui/lib/uni-list-ad/style.scss +0 -35
- package/uni-ui/lib/uni-list-chat/style.css +0 -257
- package/uni-ui/lib/uni-list-chat/style.scss +0 -326
- package/uni-ui/lib/uni-list-item/style.css +0 -170
- package/uni-ui/lib/uni-list-item/style.scss +0 -213
- package/uni-ui/lib/uni-load-more/style.css +0 -194
- package/uni-ui/lib/uni-load-more/style.scss +0 -244
- package/uni-ui/lib/uni-nav-bar/style.css +0 -3
- package/uni-ui/lib/uni-nav-bar/style.scss +0 -6
- package/uni-ui/lib/uni-notice-bar/style.css +0 -109
- package/uni-ui/lib/uni-notice-bar/style.scss +0 -125
- package/uni-ui/lib/uni-number-box/style.css +0 -50
- package/uni-ui/lib/uni-number-box/style.scss +0 -64
- package/uni-ui/lib/uni-pagination/style.css +0 -125
- package/uni-ui/lib/uni-pagination/style.scss +0 -154
- package/uni-ui/lib/uni-popup/style.css +0 -41
- package/uni-ui/lib/uni-popup/style.scss +0 -51
- package/uni-ui/lib/uni-popup-dialog/style.css +0 -82
- package/uni-ui/lib/uni-popup-dialog/style.scss +0 -98
- package/uni-ui/lib/uni-popup-message/style.css +0 -57
- package/uni-ui/lib/uni-popup-message/style.scss +0 -69
- package/uni-ui/lib/uni-popup-share/style.css +0 -72
- package/uni-ui/lib/uni-popup-share/style.scss +0 -81
- package/uni-ui/lib/uni-rate/style.css +0 -29
- package/uni-ui/lib/uni-rate/style.scss +0 -33
- package/uni-ui/lib/uni-row/style.css +0 -58
- package/uni-ui/lib/uni-row/style.scss +0 -104
- package/uni-ui/lib/uni-search-bar/style.css +0 -59
- package/uni-ui/lib/uni-search-bar/style.scss +0 -70
- package/uni-ui/lib/uni-section/style.css +0 -55
- package/uni-ui/lib/uni-section/style.scss +0 -65
- package/uni-ui/lib/uni-segmented-control/style.css +0 -48
- package/uni-ui/lib/uni-segmented-control/style.scss +0 -55
- package/uni-ui/lib/uni-status-bar/style.css +0 -4
- package/uni-ui/lib/uni-steps/style.css +0 -152
- package/uni-ui/lib/uni-steps/style.scss +0 -179
- package/uni-ui/lib/uni-swipe-action-item/style.css +0 -90
- package/uni-ui/lib/uni-swipe-action-item/style.scss +0 -112
- package/uni-ui/lib/uni-swiper-dot/style.css +0 -75
- package/uni-ui/lib/uni-swiper-dot/style.scss +0 -95
- package/uni-ui/lib/uni-table/style.css +0 -123
- package/uni-ui/lib/uni-table/style.scss +0 -152
- package/uni-ui/lib/uni-tag/style.css +0 -105
- package/uni-ui/lib/uni-tag/style.scss +0 -141
- package/uni-ui/lib/uni-td/style.css +0 -13
- package/uni-ui/lib/uni-td/style.scss +0 -17
- package/uni-ui/lib/uni-th/style.css +0 -63
- package/uni-ui/lib/uni-th/style.scss +0 -78
- package/uni-ui/lib/uni-thead/style.css +0 -30
- package/uni-ui/lib/uni-thead/style.scss +0 -52
- package/uni-ui/lib/uni-tr/style.css +0 -25
- package/uni-ui/lib/uni-tr/style.scss +0 -46
- package/uview-plus/components/u-action-sheet/style.css +0 -56
- package/uview-plus/components/u-action-sheet/style.scss +0 -83
- package/uview-plus/components/u-action-sheet-data/style.css +0 -10
- package/uview-plus/components/u-action-sheet-data/style.scss +0 -12
- package/uview-plus/components/u-agreement/style.css +0 -10
- package/uview-plus/components/u-agreement/style.scss +0 -12
- package/uview-plus/components/u-album/style.css +0 -29
- package/uview-plus/components/u-alert/style.css +0 -90
- package/uview-plus/components/u-alert/style.scss +0 -111
- package/uview-plus/components/u-avatar/style.css +0 -21
- package/uview-plus/components/u-avatar/style.scss +0 -24
- package/uview-plus/components/u-avatar-group/style.css +0 -28
- package/uview-plus/components/u-avatar-group/style.scss +0 -26
- package/uview-plus/components/u-back-top/style.css +0 -16
- package/uview-plus/components/u-back-top/style.scss +0 -18
- package/uview-plus/components/u-badge/style.css +0 -57
- package/uview-plus/components/u-badge/style.scss +0 -83
- package/uview-plus/components/u-box/style.css +0 -51
- package/uview-plus/components/u-box/style.scss +0 -36
- package/uview-plus/components/u-button/style.css +0 -192
- package/uview-plus/components/u-calendar/style.css +0 -3
- package/uview-plus/components/u-calendar/style.scss +0 -5
- package/uview-plus/components/u-calendar-wu/style.css +0 -196
- package/uview-plus/components/u-car-keyboard/style.css +0 -69
- package/uview-plus/components/u-car-keyboard/style.scss +0 -89
- package/uview-plus/components/u-card/style.css +0 -34
- package/uview-plus/components/u-card/style.scss +0 -45
- package/uview-plus/components/u-cascader/style.css +0 -16
- package/uview-plus/components/u-cascader/style.scss +0 -25
- package/uview-plus/components/u-cate-tab/style.css +0 -98
- package/uview-plus/components/u-cate-tab/style.scss +0 -115
- package/uview-plus/components/u-cell/style.css +0 -112
- package/uview-plus/components/u-cell/style.scss +0 -148
- package/uview-plus/components/u-cell-group/style.css +0 -14
- package/uview-plus/components/u-cell-group/style.scss +0 -22
- package/uview-plus/components/u-checkbox/style.css +0 -77
- package/uview-plus/components/u-checkbox/style.scss +0 -102
- package/uview-plus/components/u-checkbox-group/style.css +0 -12
- package/uview-plus/components/u-checkbox-group/style.scss +0 -12
- package/uview-plus/components/u-choose/style.css +0 -13
- package/uview-plus/components/u-choose/style.scss +0 -17
- package/uview-plus/components/u-circle-progress/style.css +0 -69
- package/uview-plus/components/u-circle-progress/style.scss +0 -84
- package/uview-plus/components/u-city-locate/style.css +0 -20
- package/uview-plus/components/u-city-locate/style.scss +0 -20
- package/uview-plus/components/u-code-input/style.css +0 -68
- package/uview-plus/components/u-code-input/style.scss +0 -75
- package/uview-plus/components/u-col/style.css +0 -50
- package/uview-plus/components/u-col/style.scss +0 -65
- package/uview-plus/components/u-collapse-item/style.css +0 -10
- package/uview-plus/components/u-collapse-item/style.scss +0 -13
- package/uview-plus/components/u-color-picker/style.css +0 -246
- package/uview-plus/components/u-color-picker/style.scss +0 -299
- package/uview-plus/components/u-column-notice/style.css +0 -37
- package/uview-plus/components/u-column-notice/style.scss +0 -33
- package/uview-plus/components/u-count-down/style.css +0 -5
- package/uview-plus/components/u-count-down/style.scss +0 -11
- package/uview-plus/components/u-count-to/style.css +0 -6
- package/uview-plus/components/u-count-to/style.scss +0 -6
- package/uview-plus/components/u-coupon/style.css +0 -214
- package/uview-plus/components/u-coupon/style.scss +0 -246
- package/uview-plus/components/u-cropper/style.css +0 -91
- package/uview-plus/components/u-cropper/style.scss +0 -93
- package/uview-plus/components/u-datetime-picker/style.css +0 -26
- package/uview-plus/components/u-datetime-picker/style.scss +0 -26
- package/uview-plus/components/u-divider/style.css +0 -17
- package/uview-plus/components/u-divider/style.scss +0 -22
- package/uview-plus/components/u-dragsort/style.css +0 -40
- package/uview-plus/components/u-dragsort/style.scss +0 -52
- package/uview-plus/components/u-dropdown/style.css +0 -66
- package/uview-plus/components/u-dropdown/style.scss +0 -66
- package/uview-plus/components/u-dropdown-item/style.css +0 -3
- package/uview-plus/components/u-dropdown-item/style.scss +0 -3
- package/uview-plus/components/u-empty/style.css +0 -27
- package/uview-plus/components/u-empty/style.scss +0 -22
- package/uview-plus/components/u-empty/u-empty-new.vue +0 -102
- package/uview-plus/components/u-float-button/style.css +0 -15
- package/uview-plus/components/u-float-button/style.scss +0 -15
- package/uview-plus/components/u-form-item/style.css +0 -82
- package/uview-plus/components/u-form-item/style.scss +0 -72
- package/uview-plus/components/u-goods-sku/style.css +0 -100
- package/uview-plus/components/u-goods-sku/style.scss +0 -120
- package/uview-plus/components/u-grid/style.css +0 -21
- package/uview-plus/components/u-grid/style.scss +0 -21
- package/uview-plus/components/u-grid-item/style.css +0 -30
- package/uview-plus/components/u-grid-item/style.scss +0 -43
- package/uview-plus/components/u-icon/style.css +0 -63
- package/uview-plus/components/u-icon/style.scss +0 -82
- package/uview-plus/components/u-image/style.css +0 -24
- package/uview-plus/components/u-image/style.scss +0 -32
- package/uview-plus/components/u-index-anchor/style.css +0 -22
- package/uview-plus/components/u-index-anchor/style.scss +0 -18
- package/uview-plus/components/u-index-list/style.css +0 -51
- package/uview-plus/components/u-index-list/style.scss +0 -52
- package/uview-plus/components/u-input/style.css +0 -64
- package/uview-plus/components/u-input/style.scss +0 -62
- package/uview-plus/components/u-keyboard/style.css +0 -26
- package/uview-plus/components/u-keyboard/style.scss +0 -29
- package/uview-plus/components/u-lazy-load/style.css +0 -12
- package/uview-plus/components/u-lazy-load/style.scss +0 -15
- package/uview-plus/components/u-line/style.css +0 -5
- package/uview-plus/components/u-line/style.scss +0 -5
- package/uview-plus/components/u-line-progress/style.css +0 -38
- package/uview-plus/components/u-line-progress/style.scss +0 -35
- package/uview-plus/components/u-link/style.css +0 -11
- package/uview-plus/components/u-link/style.scss +0 -10
- package/uview-plus/components/u-list/style.css +0 -6
- package/uview-plus/components/u-list/style.scss +0 -3
- package/uview-plus/components/u-list-item/style.css +0 -2
- package/uview-plus/components/u-list-item/style.scss +0 -2
- package/uview-plus/components/u-loading-icon/style.css +0 -138
- package/uview-plus/components/u-loading-icon/style.scss +0 -152
- package/uview-plus/components/u-loading-page/style.css +0 -33
- package/uview-plus/components/u-loading-page/style.scss +0 -35
- package/uview-plus/components/u-loadmore/style.css +0 -29
- package/uview-plus/components/u-loadmore/style.scss +0 -27
- package/uview-plus/components/u-markdown/style.css +0 -188
- package/uview-plus/components/u-markdown/style.scss +0 -199
- package/uview-plus/components/u-message-input/style.css +0 -115
- package/uview-plus/components/u-message-input/style.scss +0 -134
- package/uview-plus/components/u-modal/style.css +0 -63
- package/uview-plus/components/u-modal/style.scss +0 -68
- package/uview-plus/components/u-navbar/style.css +0 -51
- package/uview-plus/components/u-navbar/style.scss +0 -56
- package/uview-plus/components/u-navbar-mini/style.css +0 -34
- package/uview-plus/components/u-navbar-mini/style.scss +0 -36
- package/uview-plus/components/u-no-network/style.css +0 -38
- package/uview-plus/components/u-no-network/style.scss +0 -34
- package/uview-plus/components/u-notice-bar/style.css +0 -5
- package/uview-plus/components/u-notice-bar/style.scss +0 -5
- package/uview-plus/components/u-notice-bar/u-notice-bar2.vue +0 -102
- package/uview-plus/components/u-notify/style.css +0 -28
- package/uview-plus/components/u-notify/style.scss +0 -38
- package/uview-plus/components/u-number-box/style.css +0 -56
- package/uview-plus/components/u-number-box/style.scss +0 -68
- package/uview-plus/components/u-number-keyboard/style.css +0 -45
- package/uview-plus/components/u-number-keyboard/style.scss +0 -61
- package/uview-plus/components/u-overlay/style.css +0 -8
- package/uview-plus/components/u-overlay/style.scss +0 -13
- package/uview-plus/components/u-pagination/style.css +0 -46
- package/uview-plus/components/u-pagination/style.scss +0 -51
- package/uview-plus/components/u-pdf-reader/style.css +0 -2
- package/uview-plus/components/u-pdf-reader/style.scss +0 -2
- package/uview-plus/components/u-picker/style.css +0 -58
- package/uview-plus/components/u-picker/style.scss +0 -54
- package/uview-plus/components/u-picker-data/style.css +0 -11
- package/uview-plus/components/u-picker-data/style.scss +0 -13
- package/uview-plus/components/u-popover/style.css +0 -8
- package/uview-plus/components/u-popover/style.scss +0 -7
- package/uview-plus/components/u-popup/style.css +0 -87
- package/uview-plus/components/u-popup/style.scss +0 -106
- package/uview-plus/components/u-poster/style.css +0 -22
- package/uview-plus/components/u-poster/style.scss +0 -26
- package/uview-plus/components/u-pull-refresh/style.css +0 -51
- package/uview-plus/components/u-pull-refresh/style.scss +0 -58
- package/uview-plus/components/u-qrcode/style.css +0 -33
- package/uview-plus/components/u-qrcode/style.scss +0 -33
- package/uview-plus/components/u-radio/style.css +0 -77
- package/uview-plus/components/u-radio/style.scss +0 -101
- package/uview-plus/components/u-radio-group/style.css +0 -15
- package/uview-plus/components/u-radio-group/style.scss +0 -14
- package/uview-plus/components/u-rate/style.css +0 -32
- package/uview-plus/components/u-rate/style.scss +0 -37
- package/uview-plus/components/u-read-more/style.css +0 -23
- package/uview-plus/components/u-read-more/style.scss +0 -21
- package/uview-plus/components/u-row/style.css +0 -6
- package/uview-plus/components/u-row/style.scss +0 -3
- package/uview-plus/components/u-row-notice/style.css +0 -50
- package/uview-plus/components/u-row-notice/style.scss +0 -49
- package/uview-plus/components/u-safe-bottom/style.css +0 -5
- package/uview-plus/components/u-safe-bottom/style.scss +0 -5
- package/uview-plus/components/u-scroll-list/style.css +0 -35
- package/uview-plus/components/u-scroll-list/style.scss +0 -32
- package/uview-plus/components/u-search/style.css +0 -87
- package/uview-plus/components/u-search/style.scss +0 -105
- package/uview-plus/components/u-select/style.css +0 -51
- package/uview-plus/components/u-select/style.scss +0 -47
- package/uview-plus/components/u-short-video/style.css +0 -117
- package/uview-plus/components/u-short-video/style.scss +0 -138
- package/uview-plus/components/u-signature/style.css +0 -70
- package/uview-plus/components/u-signature/style.scss +0 -88
- package/uview-plus/components/u-skeleton/style.css +0 -51
- package/uview-plus/components/u-skeleton/style.scss +0 -57
- package/uview-plus/components/u-sku-wu/style.css +0 -271
- package/uview-plus/components/u-slider/style.css +0 -69
- package/uview-plus/components/u-slider/style.scss +0 -76
- package/uview-plus/components/u-status-bar/style.css +0 -5
- package/uview-plus/components/u-status-bar/style.scss +0 -6
- package/uview-plus/components/u-steps/style.css +0 -20
- package/uview-plus/components/u-steps/style.scss +0 -21
- package/uview-plus/components/u-steps-item/style.css +0 -112
- package/uview-plus/components/u-steps-item/style.scss +0 -116
- package/uview-plus/components/u-sticky/style.css +0 -5
- package/uview-plus/components/u-sticky/style.scss +0 -6
- package/uview-plus/components/u-subsection/style.css +0 -101
- package/uview-plus/components/u-subsection/style.scss +0 -121
- package/uview-plus/components/u-swipe-action-item/style.css +0 -51
- package/uview-plus/components/u-swipe-action-item/style.scss +0 -44
- package/uview-plus/components/u-swiper/style.css +0 -50
- package/uview-plus/components/u-swiper/style.scss +0 -51
- package/uview-plus/components/u-swiper-indicator/style.css +0 -26
- package/uview-plus/components/u-swiper-indicator/style.scss +0 -29
- package/uview-plus/components/u-switch/style.css +0 -47
- package/uview-plus/components/u-switch/style.scss +0 -46
- package/uview-plus/components/u-tabbar/style.css +0 -29
- package/uview-plus/components/u-tabbar/style.scss +0 -23
- package/uview-plus/components/u-tabbar-item/style.css +0 -59
- package/uview-plus/components/u-tabbar-item/style.scss +0 -62
- package/uview-plus/components/u-table2/style.css +0 -90
- package/uview-plus/components/u-table2/style.scss +0 -117
- package/uview-plus/components/u-tabs/style.css +0 -62
- package/uview-plus/components/u-tabs/style.scss +0 -60
- package/uview-plus/components/u-tag/style.css +0 -169
- package/uview-plus/components/u-tag/style.scss +0 -204
- package/uview-plus/components/u-td/style.css +0 -14
- package/uview-plus/components/u-td/style.scss +0 -11
- package/uview-plus/components/u-text/style.css +0 -50
- package/uview-plus/components/u-text/style.scss +0 -56
- package/uview-plus/components/u-text/style2.scss +0 -60
- package/uview-plus/components/u-textarea/style.css +0 -35
- package/uview-plus/components/u-textarea/style.scss +0 -37
- package/uview-plus/components/u-th/style.css +0 -13
- package/uview-plus/components/u-th/style.scss +0 -10
- package/uview-plus/components/u-title/style.css +0 -8
- package/uview-plus/components/u-title/style.scss +0 -10
- package/uview-plus/components/u-toast/style.css +0 -67
- package/uview-plus/components/u-toast/style.scss +0 -106
- package/uview-plus/components/u-toolbar/style.css +0 -33
- package/uview-plus/components/u-toolbar/style.scss +0 -35
- package/uview-plus/components/u-tooltip/style.css +0 -65
- package/uview-plus/components/u-tooltip/style.scss +0 -62
- package/uview-plus/components/u-tr/style.css +0 -6
- package/uview-plus/components/u-tr/style.scss +0 -3
- package/uview-plus/components/u-transition/style.css +0 -98
- package/uview-plus/components/u-transition/style.scss +0 -120
- package/uview-plus/components/u-upload/style.css +0 -174
- package/uview-plus/components/u-upload/style.scss +0 -221
- package/uview-plus/components/u-view/style.css +0 -2
- package/uview-plus/components/u-view/style.scss +0 -2
- package/uview-plus/components/u-virtual-list/style.css +0 -16
- package/uview-plus/components/u-virtual-list/style.scss +0 -16
- package/uview-plus/components/u-waterfall/style.css +0 -28
- package/uview-plus/components/u-waterfall/style.scss +0 -25
- /package/{uni-ui/lib/uni-forms/style.css → other/lime-painter2/components/lime-painter/qrcode.js} +0 -0
- /package/{ui-fireui copy/components/u-countdown/u-countdown.vue → ui-fireui/components/u-count-down/u-count-down.vue} +0 -0
- /package/{plugins → uview-plus/libs/ctocode}/MessageBox.js +0 -0
|
@@ -0,0 +1,961 @@
|
|
|
1
|
+
# Painter 画板 测试版
|
|
2
|
+
|
|
3
|
+
> uniapp 海报画板,更优雅的海报生成方案
|
|
4
|
+
> [查看更多](https://limeui.qcoon.cn/#/painter)
|
|
5
|
+
|
|
6
|
+
## 平台兼容
|
|
7
|
+
|
|
8
|
+
| H5 | 微信小程序 | 支付宝小程序 | 百度小程序 | 头条小程序 | QQ 小程序 | App |
|
|
9
|
+
| --- | ---------- | ------------ | ---------- | ---------- | --------- | --- |
|
|
10
|
+
| √ | √ | √ | 未测 | √ | √ | √ |
|
|
11
|
+
|
|
12
|
+
## 安装
|
|
13
|
+
在市场导入**[海报画板](https://ext.dcloud.net.cn/plugin?id=2389)uni_modules**版本的即可,无需`import`
|
|
14
|
+
|
|
15
|
+
## 代码演示
|
|
16
|
+
|
|
17
|
+
### 插件demo
|
|
18
|
+
- lime-painter 为 demo
|
|
19
|
+
- 位于 uni_modules/lime-painter/components/lime-painter
|
|
20
|
+
- 导入插件后直接使用可查看demo
|
|
21
|
+
```vue
|
|
22
|
+
<lime-painter />
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### 基本用法
|
|
27
|
+
|
|
28
|
+
- 插件提供 JSON 及 Template 的方式绘制海报
|
|
29
|
+
- 参考 css 块状流布局模拟 css schema。
|
|
30
|
+
- 另外flex布局还不是成完善,请谨慎使用,普通的流布局我觉得已经够用了。
|
|
31
|
+
|
|
32
|
+
#### 方式一 Template
|
|
33
|
+
|
|
34
|
+
- 提供`l-painter-view`、`l-painter-text`、`l-painter-image`、`l-painter-qrcode`四种类型组件
|
|
35
|
+
- 通过 `css` 属性绘制样式,与 style 使用方式保持一致。
|
|
36
|
+
```html
|
|
37
|
+
<l-painter>
|
|
38
|
+
//如果使用Template出现顺序错乱,可使用`template` 等所有变量完成再显示
|
|
39
|
+
<template v-if="show">
|
|
40
|
+
<l-painter-view
|
|
41
|
+
css="background: #07c160; height: 120rpx; width: 120rpx; display: inline-block"
|
|
42
|
+
></l-painter-view>
|
|
43
|
+
<l-painter-view
|
|
44
|
+
css="background: #1989fa; height: 120rpx; width: 120rpx; border-top-right-radius: 60rpx; border-bottom-left-radius: 60rpx; display: inline-block; margin: 0 30rpx;"
|
|
45
|
+
></l-painter-view>
|
|
46
|
+
<l-painter-view
|
|
47
|
+
css="background: #ff9d00; height: 120rpx; width: 120rpx; border-radius: 50%; display: inline-block"
|
|
48
|
+
></l-painter-view>
|
|
49
|
+
<template>
|
|
50
|
+
</l-painter>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### 方式二 JSON
|
|
54
|
+
|
|
55
|
+
- 在 json 里四种类型组件的`type`为`view`、`text`、`image`、`qrcode`
|
|
56
|
+
- 通过 `board` 设置海报所需的 JSON 数据进行绘制或`ref`获取组件实例调用组件内的`render(json)`
|
|
57
|
+
- 所有类型的 schema 都具有`css`字段,css 的 key 值使用**驼峰**如:`lineHeight`
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<l-painter :board="poster"/>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
data() {
|
|
65
|
+
return {
|
|
66
|
+
poster: {
|
|
67
|
+
css: {
|
|
68
|
+
// 根节点若无尺寸,自动获取父级节点
|
|
69
|
+
width: '750rpx'
|
|
70
|
+
},
|
|
71
|
+
views: [
|
|
72
|
+
{
|
|
73
|
+
css: {
|
|
74
|
+
background: "#07c160",
|
|
75
|
+
height: "120rpx",
|
|
76
|
+
width: "120rpx",
|
|
77
|
+
display: "inline-block"
|
|
78
|
+
},
|
|
79
|
+
type: "view"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
css: {
|
|
83
|
+
background: "#1989fa",
|
|
84
|
+
height: "120rpx",
|
|
85
|
+
width: "120rpx",
|
|
86
|
+
borderTopRightRadius: "60rpx",
|
|
87
|
+
borderBottomLeftRadius: "60rpx",
|
|
88
|
+
display: "inline-block",
|
|
89
|
+
margin: "0 30rpx"
|
|
90
|
+
},
|
|
91
|
+
views: [],
|
|
92
|
+
type: "view"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
css: {
|
|
96
|
+
background: "#ff9d00",
|
|
97
|
+
height: "120rpx",
|
|
98
|
+
width: "120rpx",
|
|
99
|
+
borderRadius: "50%",
|
|
100
|
+
display: "inline-block"
|
|
101
|
+
},
|
|
102
|
+
views: [],
|
|
103
|
+
type: "view"
|
|
104
|
+
},
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### View 容器
|
|
112
|
+
|
|
113
|
+
- 类似于 `div` 可以嵌套承载更多的 view、text、image,qrcode 共同构建一颗完整的节点树
|
|
114
|
+
- 在 JSON 里具有 `views` 的数组字段,用于嵌套承载节点。
|
|
115
|
+
|
|
116
|
+
#### 方式一 Template
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<l-painter>
|
|
120
|
+
<l-painter-view css="background: #f0f0f0; padding-top: 100rpx;">
|
|
121
|
+
<l-painter-view
|
|
122
|
+
css="background: #d9d9d9; width: 33.33%; height: 100rpx; display: inline-block"
|
|
123
|
+
></l-painter-view>
|
|
124
|
+
<l-painter-view
|
|
125
|
+
css="background: #bfbfbf; width: 66.66%; height: 100rpx; display: inline-block"
|
|
126
|
+
></l-painter-view>
|
|
127
|
+
</l-painter-view>
|
|
128
|
+
</l-painter>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### 方式二 JSON
|
|
132
|
+
|
|
133
|
+
```js
|
|
134
|
+
{
|
|
135
|
+
css: {},
|
|
136
|
+
views: [
|
|
137
|
+
{
|
|
138
|
+
type: 'view',
|
|
139
|
+
css: {
|
|
140
|
+
background: '#f0f0f0',
|
|
141
|
+
paddingTop: '100rpx'
|
|
142
|
+
},
|
|
143
|
+
views: [
|
|
144
|
+
{
|
|
145
|
+
type: 'view',
|
|
146
|
+
css: {
|
|
147
|
+
background: '#d9d9d9',
|
|
148
|
+
width: '33.33%',
|
|
149
|
+
height: '100rpx',
|
|
150
|
+
display: 'inline-block'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: 'view',
|
|
155
|
+
css: {
|
|
156
|
+
background: '#bfbfbf',
|
|
157
|
+
width: '66.66%',
|
|
158
|
+
height: '100rpx',
|
|
159
|
+
display: 'inline-block'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Text 文本
|
|
170
|
+
|
|
171
|
+
- 通过 `text` 属性填写文本内容。
|
|
172
|
+
- 支持`\n`换行符
|
|
173
|
+
- 支持省略号,使用 css 的`line-clamp`设置行数,当文字内容超过会显示省略号。
|
|
174
|
+
- 支持`text-decoration`
|
|
175
|
+
|
|
176
|
+
#### 方式一 Template
|
|
177
|
+
|
|
178
|
+
```html
|
|
179
|
+
<l-painter>
|
|
180
|
+
<l-painter-view css="background: #e0e2db; padding: 30rpx; color: #222a29">
|
|
181
|
+
<l-painter-text
|
|
182
|
+
text="登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼"
|
|
183
|
+
/>
|
|
184
|
+
<l-painter-text
|
|
185
|
+
text="登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼"
|
|
186
|
+
css="text-align:center; padding-top: 20rpx; text-decoration: line-through "
|
|
187
|
+
/>
|
|
188
|
+
<l-painter-text
|
|
189
|
+
text="登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼"
|
|
190
|
+
css="text-align:right; padding-top: 20rpx"
|
|
191
|
+
/>
|
|
192
|
+
<l-painter-text
|
|
193
|
+
text="水调歌头\n明月几时有?把酒问青天。不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间。"
|
|
194
|
+
css="line-clamp: 3; padding-top: 20rpx; background: linear-gradient(,#ff971b 0%, #ff5000 100%); background-clip: text"
|
|
195
|
+
/>
|
|
196
|
+
</l-painter-view>
|
|
197
|
+
</l-painter>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
#### 方式二 JSON
|
|
201
|
+
|
|
202
|
+
```js
|
|
203
|
+
// 基础用法
|
|
204
|
+
{
|
|
205
|
+
type: 'text',
|
|
206
|
+
text: '登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: 'text',
|
|
210
|
+
text: '登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼',
|
|
211
|
+
css: {
|
|
212
|
+
// 设置居中对齐
|
|
213
|
+
textAlign: 'center',
|
|
214
|
+
// 设置中划线
|
|
215
|
+
textDecoration: 'line-through'
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: 'text',
|
|
220
|
+
text: '登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼',
|
|
221
|
+
css: {
|
|
222
|
+
// 设置右对齐
|
|
223
|
+
textAlign: 'right',
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
type: 'text',
|
|
228
|
+
text: '登鹳雀楼\n白日依山尽,黄河入海流\n欲穷千里目,更上一层楼',
|
|
229
|
+
css: {
|
|
230
|
+
// 设置行数,超出显示省略号
|
|
231
|
+
lineClamp: 3,
|
|
232
|
+
// 渐变文字
|
|
233
|
+
background: 'linear-gradient(,#ff971b 0%, #1989fa 100%)',
|
|
234
|
+
backgroundClip: 'text'
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Image 图片
|
|
240
|
+
|
|
241
|
+
- 通过 `src` 属性填写图片路径。
|
|
242
|
+
- 图片路径支持:网络图片,本地 static 里的图片路径,缓存路径,**字节的static目录是写相对路径**
|
|
243
|
+
- 通过 `css` 的 `object-fit`属性可以设置图片的填充方式,可选值见下方 CSS 表格。
|
|
244
|
+
- 通过 `css` 的 `object-position`配合 `object-fit` 可以设置图片的对齐方式,类似于`background-position`,详情见下方 CSS 表格。
|
|
245
|
+
- 使用网络图片时:小程序需要去公众平台配置 [downloadFile](https://mp.weixin.qq.com/) 域名
|
|
246
|
+
- 使用网络图片时:**H5 和 Nvue 需要决跨域问题**
|
|
247
|
+
|
|
248
|
+
#### 方式一 Template
|
|
249
|
+
|
|
250
|
+
```html
|
|
251
|
+
<l-painter>
|
|
252
|
+
<!-- 基础用法 -->
|
|
253
|
+
<l-painter-image
|
|
254
|
+
src="https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg"
|
|
255
|
+
css="width: 200rpx; height: 200rpx"
|
|
256
|
+
/>
|
|
257
|
+
<!-- 填充方式 -->
|
|
258
|
+
<!-- css object-fit 设置 填充方式 见下方表格-->
|
|
259
|
+
<l-painter-image
|
|
260
|
+
src="https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg"
|
|
261
|
+
css="width: 200rpx; height: 200rpx; object-fit: contain; background: #eee"
|
|
262
|
+
/>
|
|
263
|
+
<!-- css object-position 设置 图片的对齐方式-->
|
|
264
|
+
<l-painter-image
|
|
265
|
+
src="https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg"
|
|
266
|
+
css="width: 200rpx; height: 200rpx; object-fit: contain; object-position: 50% 50%; background: #eee"
|
|
267
|
+
/>
|
|
268
|
+
</l-painter>
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
#### 方式二 JSON
|
|
272
|
+
|
|
273
|
+
```js
|
|
274
|
+
// 基础用法
|
|
275
|
+
{
|
|
276
|
+
type: 'image',
|
|
277
|
+
src: 'https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg',
|
|
278
|
+
css: {
|
|
279
|
+
width: '200rpx',
|
|
280
|
+
height: '200rpx'
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
// 填充方式
|
|
284
|
+
// css objectFit 设置 填充方式 见下方表格
|
|
285
|
+
{
|
|
286
|
+
type: 'image',
|
|
287
|
+
src: 'https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg',
|
|
288
|
+
css: {
|
|
289
|
+
width: '200rpx',
|
|
290
|
+
height: '200rpx',
|
|
291
|
+
objectFit: 'contain'
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
// css objectPosition 设置 图片的对齐方式
|
|
295
|
+
{
|
|
296
|
+
type: 'image',
|
|
297
|
+
src: 'https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg',
|
|
298
|
+
css: {
|
|
299
|
+
width: '200rpx',
|
|
300
|
+
height: '200rpx',
|
|
301
|
+
objectFit: 'contain',
|
|
302
|
+
objectPosition: '50% 50%'
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Qrcode 二维码
|
|
308
|
+
|
|
309
|
+
- 通过`text`属性填写需要生成二维码的文本。
|
|
310
|
+
- 通过 `css` 里的 `color` 可设置生成码点的颜色。
|
|
311
|
+
- 通过 `css` 里的 `background`可设置背景色。
|
|
312
|
+
- 通过 `css `里的 `width`、`height`设置尺寸。
|
|
313
|
+
|
|
314
|
+
#### 方式一 Template
|
|
315
|
+
|
|
316
|
+
```html
|
|
317
|
+
<l-painter>
|
|
318
|
+
<l-painter-qrcode
|
|
319
|
+
text="limeui.qcoon.cn"
|
|
320
|
+
css="width: 200rpx; height: 200rpx"
|
|
321
|
+
/>
|
|
322
|
+
</l-painter>
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### 方式二 JSON
|
|
326
|
+
|
|
327
|
+
```js
|
|
328
|
+
{
|
|
329
|
+
type: 'qrcode',
|
|
330
|
+
text: 'limeui.qcoon.cn',
|
|
331
|
+
css: {
|
|
332
|
+
width: '200rpx',
|
|
333
|
+
height: '200rpx',
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### 富文本
|
|
339
|
+
- 这是一个有限支持的测试能力,只能通过JSON方式,不要抱太大希望!
|
|
340
|
+
- 首先需要把富文本转成JSON,这需要引入`parser`这个包,如果你不使用是不会进入主包
|
|
341
|
+
|
|
342
|
+
```html
|
|
343
|
+
<l-painter ref="painter"/>
|
|
344
|
+
```
|
|
345
|
+
```js
|
|
346
|
+
import parseHtml from '@/uni_modules/lime-painter/parser'
|
|
347
|
+
const json = parseHtml(`<p><span>测试测试</span><img src="/static/logo.png"/></p>`)
|
|
348
|
+
this.$refs.painter.render(json)
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### 生成图片
|
|
352
|
+
|
|
353
|
+
- 方式1、通过设置`isCanvasToTempFilePath`自动生成图片并在 `@success` 事件里接收海报临时路径
|
|
354
|
+
- 方式2、通过调用内部方法生成图片:
|
|
355
|
+
|
|
356
|
+
```html
|
|
357
|
+
<l-painter ref="painter">...code</l-painter>
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
```js
|
|
361
|
+
this.$refs.painter.canvasToTempFilePathSync({
|
|
362
|
+
fileType: "jpg",
|
|
363
|
+
// 如果返回的是base64是无法使用 saveImageToPhotosAlbum,需要设置 pathType为url
|
|
364
|
+
pathType: 'url',
|
|
365
|
+
quality: 1,
|
|
366
|
+
success: (res) => {
|
|
367
|
+
console.log(res.tempFilePath);
|
|
368
|
+
// 非H5 保存到相册
|
|
369
|
+
// H5 提示用户长按图另存
|
|
370
|
+
uni.saveImageToPhotosAlbum({
|
|
371
|
+
filePath: res.tempFilePath,
|
|
372
|
+
success: function () {
|
|
373
|
+
console.log('save success');
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
},
|
|
377
|
+
});
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### 主动调用方式
|
|
381
|
+
|
|
382
|
+
- 通过获取组件实例内部的`render`函数 传递`JSON`即可
|
|
383
|
+
|
|
384
|
+
```html
|
|
385
|
+
<l-painter ref="painter" />
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
```js
|
|
389
|
+
// 渲染
|
|
390
|
+
this.$refs.painter.render(jsonSchema);
|
|
391
|
+
// 生成图片
|
|
392
|
+
this.$refs.painter.canvasToTempFilePathSync({
|
|
393
|
+
fileType: "jpg",
|
|
394
|
+
// 如果返回的是base64是无法使用 saveImageToPhotosAlbum,需要设置 pathType为url
|
|
395
|
+
pathType: 'url',
|
|
396
|
+
quality: 1,
|
|
397
|
+
success: (res) => {
|
|
398
|
+
console.log(res.tempFilePath);
|
|
399
|
+
// 非H5 保存到相册
|
|
400
|
+
uni.saveImageToPhotosAlbum({
|
|
401
|
+
filePath: res.tempFilePath,
|
|
402
|
+
success: function () {
|
|
403
|
+
console.log('save success');
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
},
|
|
407
|
+
});
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
### H5跨域
|
|
412
|
+
- 一般是需要后端或管理OSS资源的大佬处理
|
|
413
|
+
- 一般OSS的处理方式:
|
|
414
|
+
|
|
415
|
+
1、设置来源
|
|
416
|
+
```cmd
|
|
417
|
+
*
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
2、允许Methods
|
|
421
|
+
```html
|
|
422
|
+
GET
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
3、允许Headers
|
|
426
|
+
```html
|
|
427
|
+
access-control-allow-origin:*
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
4、最后如果还是不行,可试下给插件设置`useCORS`
|
|
431
|
+
```html
|
|
432
|
+
<l-painter useCORS>
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### 海报示例
|
|
438
|
+
|
|
439
|
+
- 提供一份示例,只把插件当成生成图片的工具,非必要不要在弹窗里使用。
|
|
440
|
+
- 通过设置`isCanvasToTempFilePath`主动生成图片,再由 `@success` 事件接收海报临时路径
|
|
441
|
+
- 设置`hidden`隐藏画板。
|
|
442
|
+
请注意,示例用到了图片,海报的渲染是包括下载图片的时间,也许在某天图片会失效或访问超级慢,请更换为你的图片再查看,另外如果你是小程序请在使用示例时把**不校验合法域名**勾上!!!!!不然不显示还以为是插件的锅,求求了大佬们!
|
|
443
|
+
#### 方式一 Template
|
|
444
|
+
|
|
445
|
+
```html
|
|
446
|
+
<image :src="path" mode="widthFix"/>
|
|
447
|
+
<l-painter
|
|
448
|
+
isCanvasToTempFilePath
|
|
449
|
+
@success="path = $event"
|
|
450
|
+
hidden
|
|
451
|
+
css="width: 750rpx; padding-bottom: 40rpx; background: linear-gradient(,#ff971b 0%, #ff5000 100%)"
|
|
452
|
+
>
|
|
453
|
+
<l-painter-image
|
|
454
|
+
src="https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg"
|
|
455
|
+
css="margin-left: 40rpx; margin-top: 40rpx; width: 84rpx; height: 84rpx; border-radius: 50%;"
|
|
456
|
+
/>
|
|
457
|
+
<l-painter-view
|
|
458
|
+
css="margin-top: 40rpx; padding-left: 20rpx; display: inline-block"
|
|
459
|
+
>
|
|
460
|
+
<l-painter-text
|
|
461
|
+
text="隔壁老王"
|
|
462
|
+
css="display: block; padding-bottom: 10rpx; color: #fff; font-size: 32rpx; fontWeight: bold"
|
|
463
|
+
/>
|
|
464
|
+
<l-painter-text
|
|
465
|
+
text="为您挑选了一个好物"
|
|
466
|
+
css="color: rgba(255,255,255,.7); font-size: 24rpx"
|
|
467
|
+
/>
|
|
468
|
+
</l-painter-view>
|
|
469
|
+
<l-painter-view
|
|
470
|
+
css="margin-left: 40rpx; margin-top: 30rpx; padding: 32rpx; box-sizing: border-box; background: #fff; border-radius: 16rpx; width: 670rpx; box-shadow: 0 20rpx 58rpx rgba(0,0,0,.15)"
|
|
471
|
+
>
|
|
472
|
+
<l-painter-image
|
|
473
|
+
src="https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg"
|
|
474
|
+
css="object-fit: cover; object-position: 50% 50%; width: 606rpx; height: 606rpx; border-radius: 12rpx;"
|
|
475
|
+
/>
|
|
476
|
+
<l-painter-view
|
|
477
|
+
css="margin-top: 32rpx; color: #FF0000; font-weight: bold; font-size: 28rpx; line-height: 1em;"
|
|
478
|
+
>
|
|
479
|
+
<l-painter-text text="¥" css="vertical-align: bottom" />
|
|
480
|
+
<l-painter-text
|
|
481
|
+
text="39"
|
|
482
|
+
css="vertical-align: bottom; font-size: 58rpx"
|
|
483
|
+
/>
|
|
484
|
+
<l-painter-text text=".39" css="vertical-align: bottom" />
|
|
485
|
+
<l-painter-text
|
|
486
|
+
text="¥59.99"
|
|
487
|
+
css="vertical-align: bottom; padding-left: 10rpx; font-weight: normal; text-decoration: line-through; color: #999999"
|
|
488
|
+
/>
|
|
489
|
+
</l-painter-view>
|
|
490
|
+
<l-painter-view css="margin-top: 32rpx; font-size: 26rpx; color: #8c5400">
|
|
491
|
+
<l-painter-text text="自营" css="color: #212121; background: #ffb400;" />
|
|
492
|
+
<l-painter-text
|
|
493
|
+
text="30天最低价"
|
|
494
|
+
css="margin-left: 16rpx; background: #fff4d9; text-decoration: line-through;"
|
|
495
|
+
/>
|
|
496
|
+
<l-painter-text
|
|
497
|
+
text="满减优惠"
|
|
498
|
+
css="margin-left: 16rpx; background: #fff4d9"
|
|
499
|
+
/>
|
|
500
|
+
<l-painter-text
|
|
501
|
+
text="超高好评"
|
|
502
|
+
css="margin-left: 16rpx; background: #fff4d9"
|
|
503
|
+
/>
|
|
504
|
+
</l-painter-view>
|
|
505
|
+
<l-painter-view css="margin-top: 30rpx">
|
|
506
|
+
<l-painter-text
|
|
507
|
+
css="line-clamp: 2; color: #333333; line-height: 1.8em; font-size: 36rpx; width: 478rpx; padding-right:32rpx; box-sizing: border-box"
|
|
508
|
+
text="360儿童电话手表9X 智能语音问答定位支付手表 4G全网通20米游泳级防水视频通话拍照手表男女孩星空蓝"
|
|
509
|
+
></l-painter-text>
|
|
510
|
+
<l-painter-qrcode
|
|
511
|
+
css="width: 128rpx; height: 128rpx;"
|
|
512
|
+
text="limeui.qcoon.cn"
|
|
513
|
+
></l-painter-qrcode>
|
|
514
|
+
</l-painter-view>
|
|
515
|
+
</l-painter-view>
|
|
516
|
+
</l-painter>
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
```js
|
|
520
|
+
data() {
|
|
521
|
+
return {
|
|
522
|
+
path: ''
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
#### 方式二 JSON
|
|
528
|
+
|
|
529
|
+
```html
|
|
530
|
+
<image :src="path" mode="widthFix"/>
|
|
531
|
+
<l-painter
|
|
532
|
+
:board="poster"
|
|
533
|
+
isCanvasToTempFilePath
|
|
534
|
+
@success="path = $event"
|
|
535
|
+
hidden
|
|
536
|
+
/>
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
```js
|
|
540
|
+
data() {
|
|
541
|
+
return {
|
|
542
|
+
path: '',
|
|
543
|
+
poster: {
|
|
544
|
+
css: {
|
|
545
|
+
width: "750rpx",
|
|
546
|
+
paddingBottom: "40rpx",
|
|
547
|
+
background: "linear-gradient(,#000 0%, #ff5000 100%)"
|
|
548
|
+
},
|
|
549
|
+
views: [
|
|
550
|
+
{
|
|
551
|
+
src: "https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg",
|
|
552
|
+
type: "image",
|
|
553
|
+
css: {
|
|
554
|
+
background: "#fff",
|
|
555
|
+
objectFit: "cover",
|
|
556
|
+
marginLeft: "40rpx",
|
|
557
|
+
marginTop: "40rpx",
|
|
558
|
+
width: "84rpx",
|
|
559
|
+
border: "2rpx solid #fff",
|
|
560
|
+
boxSizing: "border-box",
|
|
561
|
+
height: "84rpx",
|
|
562
|
+
borderRadius: "50%"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
type: "view",
|
|
567
|
+
css: {
|
|
568
|
+
marginTop: "40rpx",
|
|
569
|
+
paddingLeft: "20rpx",
|
|
570
|
+
display: "inline-block"
|
|
571
|
+
},
|
|
572
|
+
views: [
|
|
573
|
+
{
|
|
574
|
+
text: "隔壁老王",
|
|
575
|
+
type: "text",
|
|
576
|
+
css: {
|
|
577
|
+
display: "block",
|
|
578
|
+
paddingBottom: "10rpx",
|
|
579
|
+
color: "#fff",
|
|
580
|
+
fontSize: "32rpx",
|
|
581
|
+
fontWeight: "bold"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
text: "为您挑选了一个好物",
|
|
586
|
+
type: "text",
|
|
587
|
+
css: {
|
|
588
|
+
color: "rgba(255,255,255,.7)",
|
|
589
|
+
fontSize: "24rpx"
|
|
590
|
+
},
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
css: {
|
|
596
|
+
marginLeft: "40rpx",
|
|
597
|
+
marginTop: "30rpx",
|
|
598
|
+
padding: "32rpx",
|
|
599
|
+
boxSizing: "border-box",
|
|
600
|
+
background: "#fff",
|
|
601
|
+
borderRadius: "16rpx",
|
|
602
|
+
width: "670rpx",
|
|
603
|
+
boxShadow: "0 20rpx 58rpx rgba(0,0,0,.15)"
|
|
604
|
+
},
|
|
605
|
+
views: [
|
|
606
|
+
{
|
|
607
|
+
src: "https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg",
|
|
608
|
+
type: "image",
|
|
609
|
+
css: {
|
|
610
|
+
objectFit: "cover",
|
|
611
|
+
objectPosition: "50% 50%",
|
|
612
|
+
width: "606rpx",
|
|
613
|
+
height: "606rpx"
|
|
614
|
+
},
|
|
615
|
+
}, {
|
|
616
|
+
css: {
|
|
617
|
+
marginTop: "32rpx",
|
|
618
|
+
color: "#FF0000",
|
|
619
|
+
fontWeight: "bold",
|
|
620
|
+
fontSize: "28rpx",
|
|
621
|
+
lineHeight: "1em"
|
|
622
|
+
},
|
|
623
|
+
views: [{
|
|
624
|
+
text: "¥",
|
|
625
|
+
type: "text",
|
|
626
|
+
css: {
|
|
627
|
+
verticalAlign: "bottom"
|
|
628
|
+
},
|
|
629
|
+
}, {
|
|
630
|
+
text: "39",
|
|
631
|
+
type: "text",
|
|
632
|
+
css: {
|
|
633
|
+
verticalAlign: "bottom",
|
|
634
|
+
fontSize: "58rpx"
|
|
635
|
+
},
|
|
636
|
+
}, {
|
|
637
|
+
text: ".39",
|
|
638
|
+
type: "text",
|
|
639
|
+
css: {
|
|
640
|
+
verticalAlign: "bottom"
|
|
641
|
+
},
|
|
642
|
+
}, {
|
|
643
|
+
text: "¥59.99",
|
|
644
|
+
type: "text",
|
|
645
|
+
css: {
|
|
646
|
+
verticalAlign: "bottom",
|
|
647
|
+
paddingLeft: "10rpx",
|
|
648
|
+
fontWeight: "normal",
|
|
649
|
+
textDecoration: "line-through",
|
|
650
|
+
color: "#999999"
|
|
651
|
+
}
|
|
652
|
+
}],
|
|
653
|
+
|
|
654
|
+
type: "view"
|
|
655
|
+
}, {
|
|
656
|
+
css: {
|
|
657
|
+
marginTop: "32rpx",
|
|
658
|
+
fontSize: "26rpx",
|
|
659
|
+
color: "#8c5400"
|
|
660
|
+
},
|
|
661
|
+
views: [{
|
|
662
|
+
text: "自营",
|
|
663
|
+
type: "text",
|
|
664
|
+
css: {
|
|
665
|
+
color: "#212121",
|
|
666
|
+
background: "#ffb400"
|
|
667
|
+
},
|
|
668
|
+
}, {
|
|
669
|
+
text: "30天最低价",
|
|
670
|
+
type: "text",
|
|
671
|
+
css: {
|
|
672
|
+
marginLeft: "16rpx",
|
|
673
|
+
background: "#fff4d9",
|
|
674
|
+
textDecoration: "line-through"
|
|
675
|
+
},
|
|
676
|
+
}, {
|
|
677
|
+
text: "满减优惠",
|
|
678
|
+
type: "text",
|
|
679
|
+
css: {
|
|
680
|
+
marginLeft: "16rpx",
|
|
681
|
+
background: "#fff4d9"
|
|
682
|
+
},
|
|
683
|
+
}, {
|
|
684
|
+
text: "超高好评",
|
|
685
|
+
type: "text",
|
|
686
|
+
css: {
|
|
687
|
+
marginLeft: "16rpx",
|
|
688
|
+
background: "#fff4d9"
|
|
689
|
+
},
|
|
690
|
+
|
|
691
|
+
}],
|
|
692
|
+
|
|
693
|
+
type: "view"
|
|
694
|
+
}, {
|
|
695
|
+
css: {
|
|
696
|
+
marginTop: "30rpx"
|
|
697
|
+
},
|
|
698
|
+
views: [
|
|
699
|
+
{
|
|
700
|
+
text: "360儿童电话手表9X 智能语音问答定位支付手表 4G全网通20米游泳级防水视频通话拍照手表男女孩星空蓝",
|
|
701
|
+
type: "text",
|
|
702
|
+
css: {
|
|
703
|
+
paddingRight: "32rpx",
|
|
704
|
+
boxSizing: "border-box",
|
|
705
|
+
lineClamp: 2,
|
|
706
|
+
color: "#333333",
|
|
707
|
+
lineHeight: "1.8em",
|
|
708
|
+
fontSize: "36rpx",
|
|
709
|
+
width: "478rpx"
|
|
710
|
+
},
|
|
711
|
+
}, {
|
|
712
|
+
text: "limeui.qcoon.cn",
|
|
713
|
+
type: "qrcode",
|
|
714
|
+
css: {
|
|
715
|
+
width: "128rpx",
|
|
716
|
+
height: "128rpx",
|
|
717
|
+
},
|
|
718
|
+
|
|
719
|
+
}],
|
|
720
|
+
type: "view"
|
|
721
|
+
}],
|
|
722
|
+
type: "view"
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
### 自定义字体
|
|
732
|
+
- 需要平台的支持,已知微信小程序支持,其它的没试过,如果可行请告之
|
|
733
|
+
|
|
734
|
+
```
|
|
735
|
+
// 需要在app.vue中下载字体
|
|
736
|
+
uni.loadFontFace({
|
|
737
|
+
global:true,
|
|
738
|
+
scopes: ['native'],
|
|
739
|
+
family: '自定义字体名称',
|
|
740
|
+
source: 'url("https://sungd.github.io/Pacifico.ttf")',
|
|
741
|
+
|
|
742
|
+
success() {
|
|
743
|
+
console.log('success')
|
|
744
|
+
}
|
|
745
|
+
})
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
// 然后就可以在插件的css中写font-family: '自定义字体名称'
|
|
749
|
+
```
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
### Nvue
|
|
753
|
+
- 必须为HBX 3.4.11及以上
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
### 原生小程序
|
|
757
|
+
|
|
758
|
+
- 插件里的`painter.js`支持在原生小程序中使用
|
|
759
|
+
- new Painter 之后在`source`里传入 JSON
|
|
760
|
+
- 再调用`render`绘制海报
|
|
761
|
+
- 如需生成图片,请查看微信小程序 cavnas 的[canvasToTempFilePath](https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.html)
|
|
762
|
+
|
|
763
|
+
```html
|
|
764
|
+
<canvas type="2d" id="painter" style="width: 100%"></canvas>
|
|
765
|
+
```
|
|
766
|
+
|
|
767
|
+
```js
|
|
768
|
+
import { Painter } from "./painter";
|
|
769
|
+
page({
|
|
770
|
+
data: {
|
|
771
|
+
poster: {
|
|
772
|
+
css: {
|
|
773
|
+
width: "750rpx",
|
|
774
|
+
},
|
|
775
|
+
views: [
|
|
776
|
+
{
|
|
777
|
+
type: "view",
|
|
778
|
+
css: {
|
|
779
|
+
background: "#d2d4c8",
|
|
780
|
+
paddingTop: "100rpx",
|
|
781
|
+
},
|
|
782
|
+
views: [
|
|
783
|
+
{
|
|
784
|
+
type: "view",
|
|
785
|
+
css: {
|
|
786
|
+
background: "#5f7470",
|
|
787
|
+
width: "33.33%",
|
|
788
|
+
height: "100rpx",
|
|
789
|
+
display: "inline-block",
|
|
790
|
+
},
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
type: "view",
|
|
794
|
+
css: {
|
|
795
|
+
background: "#889696",
|
|
796
|
+
width: "33.33%",
|
|
797
|
+
height: "100rpx",
|
|
798
|
+
display: "inline-block",
|
|
799
|
+
},
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
type: "view",
|
|
803
|
+
css: {
|
|
804
|
+
background: "#b8bdb5",
|
|
805
|
+
width: "33.33%",
|
|
806
|
+
height: "100rpx",
|
|
807
|
+
display: "inline-block",
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
],
|
|
811
|
+
},
|
|
812
|
+
],
|
|
813
|
+
},
|
|
814
|
+
},
|
|
815
|
+
async onLoad() {
|
|
816
|
+
const res = await this.getCentext();
|
|
817
|
+
const painter = new Painter(res);
|
|
818
|
+
// 返回计算布局后的整个内容尺寸
|
|
819
|
+
const { width, height } = await painter.source(this.data.poster);
|
|
820
|
+
// 得到计算后的尺寸后 可给canvas尺寸赋值,达到动态响应效果
|
|
821
|
+
// 渲染
|
|
822
|
+
await painter.render();
|
|
823
|
+
},
|
|
824
|
+
// 获取canvas 2d
|
|
825
|
+
// 非2d 需要传一个 createImage 方法用于获取图片信息 即把 getImageInfo 的 success 通过 promise resolve 返回
|
|
826
|
+
getCentext() {
|
|
827
|
+
return new Promise((resolve) => {
|
|
828
|
+
wx.createSelectorQuery()
|
|
829
|
+
.select(`#painter`)
|
|
830
|
+
.node()
|
|
831
|
+
.exec((res) => {
|
|
832
|
+
let { node: canvas } = res[0];
|
|
833
|
+
resolve({
|
|
834
|
+
canvas,
|
|
835
|
+
context: canvas.getContext("2d"),
|
|
836
|
+
width: canvas.width,
|
|
837
|
+
height: canvas.height,
|
|
838
|
+
// createImage: getImageInfo()
|
|
839
|
+
pixelRatio: 2,
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
});
|
|
843
|
+
},
|
|
844
|
+
});
|
|
845
|
+
```
|
|
846
|
+
|
|
847
|
+
### 旧版(1.6.x)更新
|
|
848
|
+
|
|
849
|
+
- 由于 1.8.x 版放弃了以定位的方式,所以 1.6.x 版更新之后要每个样式都加上`position: absolute`
|
|
850
|
+
- 旧版的 `image` mode 模式被放弃,使用`object-fit`
|
|
851
|
+
- 旧版的 `isRenderImage` 改成 `is-canvas-to-temp-file-path`
|
|
852
|
+
- 旧版的 `maxLines` 改成 `line-clamp`
|
|
853
|
+
|
|
854
|
+
## API
|
|
855
|
+
|
|
856
|
+
### Props
|
|
857
|
+
|
|
858
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
859
|
+
| --------------------------- | ------------------------------------------------------------ | ---------------- | ------------ |
|
|
860
|
+
| board | JSON 方式的海报元素对象集 | <em>object</em> | - |
|
|
861
|
+
| css | 海报内容最外层的样式,可以理解为`body` | <em>object</em> | 参数请向下看 |
|
|
862
|
+
| custom-style | canvas 元素的样式 | <em>string</em> | |
|
|
863
|
+
| hidden | 隐藏画板 | <em>boolean</em> | `false` |
|
|
864
|
+
| is-canvas-to-temp-file-path | 是否生成图片,在`@success`事件接收图片地址 | <em>boolean</em> | `false` |
|
|
865
|
+
| after-delay | 生成图片错乱,可延时生成图片 | <em>number</em> | `100` |
|
|
866
|
+
| type | canvas 类型,对微信头条支付宝小程序可有效,可选值:`2d`,`''` | <em>string</em> | `2d` |
|
|
867
|
+
| file-type | 生成图片的后缀类型, 可选值:`png`、`jpg` | <em>string</em> | `png` |
|
|
868
|
+
| path-type | 生成图片路径类型,可选值`url`、`base64` | <em>string</em> | `-` |
|
|
869
|
+
| pixel-ratio | 生成图片的像素密度,默认为对应手机的像素密度,`nvue`无效 | <em>number</em> | `-` |
|
|
870
|
+
| hidpi | H5和APP是否使用高清处理 | <em>boolean</em> | `true` |
|
|
871
|
+
| width | **废弃** 画板的宽度,一般只用于通过内部方法时加上 | <em>number</em> | `` |
|
|
872
|
+
| height | **废弃** 画板的高度 ,同上 | <em>number</em> | `` |
|
|
873
|
+
|
|
874
|
+
### css
|
|
875
|
+
| 属性名 | 支持的值或类型 | 默认值 |
|
|
876
|
+
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------ |
|
|
877
|
+
| (min\max)width | 支持`%`、`rpx`、`px` | - |
|
|
878
|
+
| height | 同上 | - |
|
|
879
|
+
| color | `string` | - |
|
|
880
|
+
| position | 定位,可选值:`absolute`、`fixed` | - |
|
|
881
|
+
| ↳ left、top、right、bottom | 配合`position`才生效,支持`%`、`rpx`、`px` | - |
|
|
882
|
+
| margin | 可简写或各方向分别写,如:`margin-top`,支持`auto`、`rpx`、`px` | - |
|
|
883
|
+
| padding | 可简写或各方向分别写,支持`rpx`、`px` | - |
|
|
884
|
+
| border | 可简写或各个值分开写:`border-width`、`border-style` 、`border-color`,简写请按顺序写 | - |
|
|
885
|
+
| line-clamp | `number`,超过行数显示省略号 | - |
|
|
886
|
+
| vertical-align | 文字垂直对齐,可选值:`bottom`、`top`、`middle` | `middle` |
|
|
887
|
+
| line-height | 文字行高,支持`rpx`、`px`、`em` | `1.4em` |
|
|
888
|
+
| font-weight | 文字粗细,可选值:`normal`、`bold` | `normal` |
|
|
889
|
+
| font-size | 文字大小,`string`,支持`rpx`、`px` | `14px` |
|
|
890
|
+
| text-decoration | 文本修饰,可选值:`underline` 、`line-through`、`overline` | - |
|
|
891
|
+
| text-stroke | 文字描边,可简写或各个值分开写,如:`text-stroke-color`, `text-stroke-width` | - |
|
|
892
|
+
| text-align | 文本水平对齐,可选值:`right` 、`center` | `left` |
|
|
893
|
+
| display | 框类型,可选值:`block`、`inline-block`、`flex`、`none`,当为`none`时是不渲染该段, `flex`功能简陋。 | - |
|
|
894
|
+
| flex | 配合 display: flex; 属性定义了在分配多余空间,目前只用为数值如: flex: 1 | - |
|
|
895
|
+
| align-self | 配合 display: flex; 单个项目垂直轴对齐方式: `flex-start` `flex-end` `center` | `flex-start` |
|
|
896
|
+
| justify-content | 配合 display: flex; 水平轴对齐方式: `flex-start` `flex-end` `center` | `flex-start` |
|
|
897
|
+
| align-items | 配合 display: flex; 垂直轴对齐方式: `flex-start` `flex-end` `center` | `flex-start` |
|
|
898
|
+
| border-radius | 圆角边框,支持`%`、`rpx`、`px` | - |
|
|
899
|
+
| box-sizing | 可选值:`border-box` | - |
|
|
900
|
+
| box-shadow | 投影 | - |
|
|
901
|
+
| background(color) | 支持渐变,但必须写百分比!如:`linear-gradient(,#ff971b 0%, #ff5000 100%)`、`radial-gradient(#0ff 15%, #f0f 60%)`,目前 radial-gradient 渐变的圆心为元素中点,半径为最长边,不支持设置 | - |
|
|
902
|
+
| background-clip | 文字渐变,配合`background`背景渐变,设置`background-clip: text` 达到文字渐变效果 | - |
|
|
903
|
+
| background-image | view 元素背景:`url(src)`,若只是设置背景图,请不要设置`background-repeat` | - |
|
|
904
|
+
| background-repeat | 设置是否及如何重复背景纹理,可选值:`repeat`、`repeat-x`、`repeat-y`、`no-repeat` | `repeat` |
|
|
905
|
+
| [object-fit](https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit/) | 图片元素适应容器方式,类似于`mode`,可选值:`cover`、 `contain`、 `fill`、 `none` | - |
|
|
906
|
+
| [object-position](https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-position) | 图片的对齐方式,配合`object-fit`使用 | - |
|
|
907
|
+
|
|
908
|
+
### 图片填充模式 object-fit
|
|
909
|
+
|
|
910
|
+
| 名称 | 含义 |
|
|
911
|
+
| ------- | ------------------------------------------------------ |
|
|
912
|
+
| contain | 保持宽高缩放图片,使图片的长边能完全显示出来 |
|
|
913
|
+
| cover | 保持宽高缩放图片,使图片的短边能完全显示出来,裁剪长边 |
|
|
914
|
+
| fill | 拉伸图片,使图片填满元素 |
|
|
915
|
+
| none | 保持图片原有尺寸 |
|
|
916
|
+
|
|
917
|
+
### 事件 Events
|
|
918
|
+
|
|
919
|
+
| 事件名 | 说明 | 返回值 |
|
|
920
|
+
| -------- | ---------------------------------------------------------------- | ------ |
|
|
921
|
+
| success | 生成图片成功,若使用`is-canvas-to-temp-filePath` 可以接收图片地址 | path |
|
|
922
|
+
| fail | 生成图片失败 | error |
|
|
923
|
+
| done | 绘制成功 | |
|
|
924
|
+
| progress | 绘制进度 | number |
|
|
925
|
+
|
|
926
|
+
### 暴露函数 Expose
|
|
927
|
+
| 事件名 | 说明 | 返回值 |
|
|
928
|
+
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ------- |
|
|
929
|
+
| render(object) | 渲染器,传入JSON 绘制海报 | promise |
|
|
930
|
+
| [canvasToTempFilePath](https://uniapp.dcloud.io/api/canvas/canvasToTempFilePath.html#canvastotempfilepath)(object) | 把当前画布指定区域的内容导出生成指定大小的图片,并返回文件临时路径。 | |
|
|
931
|
+
| canvasToTempFilePathSync(object) | 同步接口,同上 | |
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
## 常见问题
|
|
935
|
+
|
|
936
|
+
- 1、H5 端使用网络图片需要解决跨域问题。
|
|
937
|
+
- 2、小程序使用网络图片需要去公众平台增加下载白名单!二级域名也需要配!
|
|
938
|
+
- 3、H5 端生成图片是 base64,有时显示只有一半可以使用原生标签`<IMG/>`
|
|
939
|
+
- 4、发生保存图片倾斜变形或提示 native buffer exceed size limit 时,使用 pixel-ratio="2"参数,降分辨率。
|
|
940
|
+
- 5、h5 保存图片不需要调接口,提示用户长按图片保存。
|
|
941
|
+
- 6、画板不能隐藏,包括`v-if`,`v-show`、`display:none`、`opacity:0`,另外也不要把画板放在弹窗里。如果需要隐藏画板请设置 `custom-style="position: fixed; left: 200%"`
|
|
942
|
+
- 7、微信小程序真机调试请使用 **真机调试2.0**,不支持1.0。
|
|
943
|
+
- 8、微信小程序打开调试时可以生但并闭无法生成时,这种情况一般是没有在公众号配置download域名
|
|
944
|
+
- 9、HBX 3.4.5之前的版本不支持vue3
|
|
945
|
+
- 10、在微信开发工具上 canvas 层级最高无法zindex,并不影响真机
|
|
946
|
+
- 11、请不要导入非uni_modules插件
|
|
947
|
+
- 12、关于QQ小程序 报 Propertyor method"toJSON"is not defined 请把基础库调到 1.50.3
|
|
948
|
+
- 13、支付宝小程序 IDE 不支持 生成图片 请以真机调试结果为准
|
|
949
|
+
- 14、返回值为字符串 `data:,` 大概是尺寸超过限制,设置 pixel-ratio="2"
|
|
950
|
+
- 华为手机 APP 上无法生成图片,请使用 HBX2.9.11++(已过时,忽略这条)
|
|
951
|
+
- IOS APP 请勿使用 HBX2.9.3.20201014 的版本!这个版本无法生成图片。(已过时,忽略这条)
|
|
952
|
+
- 苹果微信 7.0.20 存在闪退和图片无法 onload 为微信 bug(已过时,忽略这条)
|
|
953
|
+
- 微信小程序 IOS 旧接口 如父级设置圆角,子级也设会导致子级的失效,为旧接口BUG。
|
|
954
|
+
- 微信小程序 安卓 旧接口 如使用图片必须加背景色,为旧接口BUG。
|
|
955
|
+
- 微信小程序 安卓端 [图片可能在首次可以加载成功,再次加载会不触发任何事件](https://developers.weixin.qq.com/community/develop/doc/000ee2b8dacf4009337f51f4556800?highLine=canvas%25202d%2520createImage),临时解决方法是给图片加个时间戳
|
|
956
|
+
## 打赏
|
|
957
|
+
|
|
958
|
+
如果你觉得本插件,解决了你的问题,赠人玫瑰,手留余香。
|
|
959
|
+
|
|
960
|
+

|
|
961
|
+

|