@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,709 @@
|
|
|
1
|
+
import { toPx, CHAR_WIDTH_SCALE_MAP, base64ToPath } from './utils';
|
|
2
|
+
import { GD } from './gradient';
|
|
3
|
+
let id = 0;
|
|
4
|
+
let cache = {};
|
|
5
|
+
export class Draw {
|
|
6
|
+
constructor(context, canvas, use2dCanvas = false) {
|
|
7
|
+
this.ctx = context;
|
|
8
|
+
this.canvas = canvas || null;
|
|
9
|
+
this.use2dCanvas = use2dCanvas;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
roundRect(x, y, w, h, r, fill = false, stroke = false) {
|
|
13
|
+
if (r < 0) return;
|
|
14
|
+
const ctx = this.ctx;
|
|
15
|
+
|
|
16
|
+
ctx.beginPath();
|
|
17
|
+
if (!r) {
|
|
18
|
+
ctx.rect(x, y, w, h);
|
|
19
|
+
} else {
|
|
20
|
+
let {
|
|
21
|
+
borderTopLeftRadius: tl = r || 0,
|
|
22
|
+
borderTopRightRadius: tr = r || 0,
|
|
23
|
+
borderBottomRightRadius: br = r || 0,
|
|
24
|
+
borderBottomLeftRadius: bl = r || 0
|
|
25
|
+
} = r || { r, r, r, r };
|
|
26
|
+
ctx.beginPath();
|
|
27
|
+
// 右下角
|
|
28
|
+
ctx.arc(x + w - br, y + h - br, br, 0, Math.PI * 0.5);
|
|
29
|
+
ctx.lineTo(x + bl, y + h);
|
|
30
|
+
// 左下角
|
|
31
|
+
ctx.arc(x + bl, y + h - bl, bl, Math.PI * 0.5, Math.PI);
|
|
32
|
+
ctx.lineTo(x, y + tl);
|
|
33
|
+
// 左上角
|
|
34
|
+
ctx.arc(x + tl, y + tl, tl, Math.PI, Math.PI * 1.5);
|
|
35
|
+
ctx.lineTo(x + w - tr, y);
|
|
36
|
+
// 右上角
|
|
37
|
+
ctx.arc(x + w - tr, y + tr, tr, Math.PI * 1.5, Math.PI * 2);
|
|
38
|
+
ctx.closePath();
|
|
39
|
+
}
|
|
40
|
+
if (stroke) ctx.stroke();
|
|
41
|
+
if (fill) ctx.fill();
|
|
42
|
+
}
|
|
43
|
+
measureText(text, fontSize) {
|
|
44
|
+
const ctx = this.ctx;
|
|
45
|
+
// #ifndef APP-PLUS
|
|
46
|
+
return ctx.measureText(text).width;
|
|
47
|
+
// #endif
|
|
48
|
+
// #ifdef APP-PLUS
|
|
49
|
+
// app measureText为0需要累加计算0
|
|
50
|
+
return (
|
|
51
|
+
text.split('').reduce((widthScaleSum, char) => {
|
|
52
|
+
let code = char.charCodeAt(0);
|
|
53
|
+
let widthScale = CHAR_WIDTH_SCALE_MAP[code - 0x20] || 1;
|
|
54
|
+
return widthScaleSum + widthScale;
|
|
55
|
+
}, 0) * fontSize
|
|
56
|
+
);
|
|
57
|
+
// #endif
|
|
58
|
+
}
|
|
59
|
+
setFont({ fontFamily, fontSize, fontWeight, textStyle }) {
|
|
60
|
+
let ctx = this.ctx;
|
|
61
|
+
// 设置属性
|
|
62
|
+
// #ifndef MP-TOUTIAO
|
|
63
|
+
fontWeight = fontWeight === 'bold' ? 'bold' : 'normal';
|
|
64
|
+
textStyle = textStyle === 'italic' ? 'italic' : 'normal';
|
|
65
|
+
// #endif
|
|
66
|
+
// #ifdef MP-TOUTIAO
|
|
67
|
+
fontWeight = fontWeight === 'bold' ? 'bold' : '';
|
|
68
|
+
textStyle = textStyle === 'italic' ? 'italic' : '';
|
|
69
|
+
// #endif
|
|
70
|
+
fontSize = toPx(fontSize);
|
|
71
|
+
ctx.font = `${textStyle} ${fontWeight} ${fontSize}px ${fontFamily}`;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
drawBackground(bd, w, h) {
|
|
75
|
+
const ctx = this.ctx;
|
|
76
|
+
if (!bd) {
|
|
77
|
+
// #ifndef MP-TOUTIAO
|
|
78
|
+
ctx.setFillStyle('transparent');
|
|
79
|
+
// #endif
|
|
80
|
+
// #ifdef MP-TOUTIAO
|
|
81
|
+
ctx.setFillStyle('rgba(0,0,0,0)');
|
|
82
|
+
// #endif
|
|
83
|
+
// } else if(bd.startsWith('#') || bd.startsWith('rgba') || bd.toLowerCase() === 'transparent' ) {
|
|
84
|
+
// ctx.setFillStyle(bd)
|
|
85
|
+
} else if (GD.isGradient(bd)) {
|
|
86
|
+
GD.doGradient(bd, w, h, ctx);
|
|
87
|
+
} else {
|
|
88
|
+
ctx.setFillStyle(bd);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
drawView(box, style) {
|
|
92
|
+
const ctx = this.ctx;
|
|
93
|
+
const { left: x, top: y, width: w, height: h } = box;
|
|
94
|
+
let {
|
|
95
|
+
boxShadow = [],
|
|
96
|
+
borderRadius = 0,
|
|
97
|
+
border,
|
|
98
|
+
borderTop,
|
|
99
|
+
borderBottom,
|
|
100
|
+
borderLeft,
|
|
101
|
+
borderRight,
|
|
102
|
+
color = '#000000',
|
|
103
|
+
backgroundColor: bg,
|
|
104
|
+
rotate,
|
|
105
|
+
shadow
|
|
106
|
+
} = style || {};
|
|
107
|
+
ctx.save();
|
|
108
|
+
// 旋转
|
|
109
|
+
if (rotate) {
|
|
110
|
+
ctx.translate(x + w / 2, y + h / 2);
|
|
111
|
+
ctx.rotate((rotate * Math.PI) / 180);
|
|
112
|
+
ctx.translate(-x - w / 2, -y - h / 2);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// 投影
|
|
116
|
+
if (boxShadow.length) {
|
|
117
|
+
const [x, y, b, c] = boxShadow;
|
|
118
|
+
ctx.setShadow(x, y, b, c);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// 背景
|
|
122
|
+
this.drawBackground(bg, w, h);
|
|
123
|
+
this.roundRect(x, y, w, h, borderRadius, true, false);
|
|
124
|
+
ctx.restore();
|
|
125
|
+
this.drawBorder(box, style);
|
|
126
|
+
}
|
|
127
|
+
drawBorder(box, style) {
|
|
128
|
+
const ctx = this.ctx;
|
|
129
|
+
const { left: x, top: y, width: w, height: h } = box;
|
|
130
|
+
const { border, borderBottom, borderTop, borderRight, borderLeft, borderRadius: r } = style;
|
|
131
|
+
const { borderWidth: bw = 0, borderStyle: bs, borderColor: bc } = border || {};
|
|
132
|
+
const { borderBottomWidth: bbw = bw, borderBottomStyle: bbs = bs, borderBottomColor: bbc = bc } = borderBottom || {};
|
|
133
|
+
const { borderTopWidth: btw = bw, borderTopStyle: bts = bs, borderTopColor: btc = bc } = borderTop || {};
|
|
134
|
+
const { borderRightWidth: brw = bw, borderRightStyle: brs = bs, borderRightColor: brc = bc } = borderRight || {};
|
|
135
|
+
const { borderLeftWidth: blw = bw, borderLeftStyle: bls = bs, borderLeftColor: blc = bc } = borderLeft || {};
|
|
136
|
+
|
|
137
|
+
let {
|
|
138
|
+
borderTopLeftRadius: tl = r || 0,
|
|
139
|
+
borderTopRightRadius: tr = r || 0,
|
|
140
|
+
borderBottomRightRadius: br = r || 0,
|
|
141
|
+
borderBottomLeftRadius: bl = r || 0
|
|
142
|
+
} = r || { r, r, r, r };
|
|
143
|
+
const _drawBorder = (x1, y1, x2, y2, x3, y3, r1, r2, p1, p2, p3, bw, bs, bc) => {
|
|
144
|
+
ctx.save();
|
|
145
|
+
ctx.beginPath();
|
|
146
|
+
ctx.arc(x1, y1, r1, Math.PI * p1, Math.PI * p2);
|
|
147
|
+
ctx.lineTo(x2, y2);
|
|
148
|
+
ctx.arc(x3, y3, r2, Math.PI * p2, Math.PI * p3);
|
|
149
|
+
|
|
150
|
+
ctx.lineWidth = bw;
|
|
151
|
+
if (bs == 'dashed') {
|
|
152
|
+
ctx.setLineDash([Math.ceil((bw * 4) / 3), Math.ceil((bw * 4) / 3)]);
|
|
153
|
+
} else if (bs == 'dotted') {
|
|
154
|
+
ctx.setLineDash([bw, bw]);
|
|
155
|
+
}
|
|
156
|
+
ctx.setStrokeStyle(bc);
|
|
157
|
+
ctx.stroke();
|
|
158
|
+
ctx.restore();
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
if (borderBottom || border) {
|
|
162
|
+
_drawBorder(x + w - br, y + h - br, x + bl, y + h, x + bl, y + h - bl, br, bl, 0.25, 0.5, 0.75, bbw, bbs, bbc);
|
|
163
|
+
}
|
|
164
|
+
if (borderLeft || border) {
|
|
165
|
+
// 左下角
|
|
166
|
+
_drawBorder(x + bl, y + h - bl, x, y + tl, x + tl, y + tl, bl, tl, 0.75, 1, 1.25, blw, bls, blc);
|
|
167
|
+
}
|
|
168
|
+
if (borderTop || border) {
|
|
169
|
+
// 左上角
|
|
170
|
+
_drawBorder(x + tl, y + tl, x + w - tr, y, x + w - tr, y + tr, tl, tr, 1.25, 1.5, 1.75, btw, bts, btc);
|
|
171
|
+
}
|
|
172
|
+
if (borderRight || border) {
|
|
173
|
+
// 右上角
|
|
174
|
+
_drawBorder(x + w - tr, y + tr, x + w, y + h - br, x + w - br, y + h - br, tr, br, 1.75, 2, 0.25, btw, bts, btc);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
async drawImage(img, box, style) {
|
|
178
|
+
await new Promise(async (resolve, reject) => {
|
|
179
|
+
const ctx = this.ctx;
|
|
180
|
+
|
|
181
|
+
const canvas = this.canvas;
|
|
182
|
+
const { borderRadius = 0, mode, backgroundColor: bg } = style;
|
|
183
|
+
const { left: x, top: y, width: w, height: h } = box;
|
|
184
|
+
ctx.save();
|
|
185
|
+
// 背景
|
|
186
|
+
this.drawBackground(bg || 'white', w, h);
|
|
187
|
+
this.roundRect(x, y, w, h, borderRadius, true, false);
|
|
188
|
+
ctx.clip();
|
|
189
|
+
const _modeImage = (img) => {
|
|
190
|
+
// 获得缩放到图片大小级别的裁减框
|
|
191
|
+
let rWidth = img.width;
|
|
192
|
+
let rHeight = img.height;
|
|
193
|
+
let startX = 0;
|
|
194
|
+
let startY = 0;
|
|
195
|
+
// 绘画区域比例
|
|
196
|
+
const cp = w / h;
|
|
197
|
+
// 原图比例
|
|
198
|
+
const op = rWidth / rHeight;
|
|
199
|
+
if (cp >= op) {
|
|
200
|
+
rHeight = rWidth / cp;
|
|
201
|
+
// startY = Math.round((h - rHeight) / 2)
|
|
202
|
+
} else {
|
|
203
|
+
rWidth = rHeight * cp;
|
|
204
|
+
startX = Math.round(((img.width || w) - rWidth) / 2);
|
|
205
|
+
}
|
|
206
|
+
if (mode === 'scaleToFill' || !img.width) {
|
|
207
|
+
ctx.drawImage(img.path, x, y, w, h);
|
|
208
|
+
} else {
|
|
209
|
+
ctx.drawImage(img.path, startX, startY, rWidth, rHeight, x, y, w, h);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const _drawImage = (img) => {
|
|
213
|
+
if (this.use2dCanvas && !img.path.src) {
|
|
214
|
+
const Image = canvas.createImage();
|
|
215
|
+
Image.onload = () => {
|
|
216
|
+
img.path = Image;
|
|
217
|
+
_modeImage(img);
|
|
218
|
+
ctx.restore();
|
|
219
|
+
resolve();
|
|
220
|
+
};
|
|
221
|
+
Image.onerror = () => {
|
|
222
|
+
reject(new Error(`createImage fail: ${img}`));
|
|
223
|
+
};
|
|
224
|
+
Image.src = img.path;
|
|
225
|
+
} else {
|
|
226
|
+
_modeImage(img);
|
|
227
|
+
ctx.restore();
|
|
228
|
+
resolve();
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const baseReg = /^data:image\/(\w+);base64/;
|
|
233
|
+
const localReg = /^\.|^\/(?=[^\/])/;
|
|
234
|
+
if (baseReg.test(img) && !cache[img]) {
|
|
235
|
+
const imgName = img;
|
|
236
|
+
img = await base64ToPath(img);
|
|
237
|
+
cache[imgName] = img;
|
|
238
|
+
}
|
|
239
|
+
if (cache[img] && cache[img].errMsg) {
|
|
240
|
+
_drawImage(cache[img]);
|
|
241
|
+
} else {
|
|
242
|
+
uni.getImageInfo({
|
|
243
|
+
src: img,
|
|
244
|
+
success: (image) => {
|
|
245
|
+
image.path = /^(http|\/\/|\/|wxfile|data:image\/(\w+);base64|file|bdfile|ttfile|blob)/.test(image.path)
|
|
246
|
+
? image.path
|
|
247
|
+
: `/${image.path}`;
|
|
248
|
+
cache[img] = image;
|
|
249
|
+
_drawImage(image);
|
|
250
|
+
},
|
|
251
|
+
fail(err) {
|
|
252
|
+
if (localReg.test(img) || baseReg.test(img)) {
|
|
253
|
+
_drawImage({ path: img });
|
|
254
|
+
} else {
|
|
255
|
+
console.error(`getImageInfo:fail ${img} failed ${JSON.stringify(err)}`);
|
|
256
|
+
reject(new Error(`getImageInfo:fail ${img} ${JSON.stringify(err)}`));
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
// eslint-disable-next-line complexity
|
|
264
|
+
drawText(text, box, style) {
|
|
265
|
+
const ctx = this.ctx;
|
|
266
|
+
let { left: x, top: y, width: w, height: h } = box;
|
|
267
|
+
let {
|
|
268
|
+
color = '#000000',
|
|
269
|
+
lineHeight = '1.4em',
|
|
270
|
+
fontSize = 14,
|
|
271
|
+
fontWeight,
|
|
272
|
+
fontFamily = 'sans-serif',
|
|
273
|
+
textStyle,
|
|
274
|
+
textAlign = 'left',
|
|
275
|
+
verticalAlign: va = 'top',
|
|
276
|
+
backgroundColor: bg,
|
|
277
|
+
maxLines,
|
|
278
|
+
textDecoration: td
|
|
279
|
+
} = style;
|
|
280
|
+
if (typeof lineHeight === 'string') {
|
|
281
|
+
// 1.4em
|
|
282
|
+
lineHeight = Math.ceil(parseFloat(lineHeight.replace('em')) * fontSize);
|
|
283
|
+
}
|
|
284
|
+
// || (lineHeight > h)
|
|
285
|
+
if (!text) return;
|
|
286
|
+
ctx.save();
|
|
287
|
+
ctx.setTextBaseline(va);
|
|
288
|
+
// 设置属性
|
|
289
|
+
this.setFont({ fontFamily, fontSize, fontWeight, textStyle });
|
|
290
|
+
ctx.setTextAlign(textAlign);
|
|
291
|
+
|
|
292
|
+
// 背景色
|
|
293
|
+
this.drawBackground(bg, w, h);
|
|
294
|
+
this.roundRect(x, y, w, h, 1, bg);
|
|
295
|
+
// 文字颜色
|
|
296
|
+
ctx.setFillStyle(color);
|
|
297
|
+
// 水平布局
|
|
298
|
+
switch (textAlign) {
|
|
299
|
+
case 'left':
|
|
300
|
+
break;
|
|
301
|
+
case 'center':
|
|
302
|
+
x += 0.5 * w;
|
|
303
|
+
break;
|
|
304
|
+
case 'right':
|
|
305
|
+
x += w;
|
|
306
|
+
break;
|
|
307
|
+
default:
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
const textWidth = this.measureText(text, fontSize);
|
|
311
|
+
const actualHeight = Math.ceil(textWidth / w) * lineHeight;
|
|
312
|
+
let paddingTop = Math.ceil((h - actualHeight) / 2);
|
|
313
|
+
if (paddingTop < 0) paddingTop = 0;
|
|
314
|
+
// 垂直布局
|
|
315
|
+
switch (va) {
|
|
316
|
+
case 'top':
|
|
317
|
+
break;
|
|
318
|
+
case 'middle':
|
|
319
|
+
y += fontSize / 2;
|
|
320
|
+
break;
|
|
321
|
+
case 'bottom':
|
|
322
|
+
y += fontSize;
|
|
323
|
+
break;
|
|
324
|
+
default:
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
// 绘线
|
|
328
|
+
const _drawLine = (x, y, textWidth) => {
|
|
329
|
+
const { system } = uni.getSystemInfoSync();
|
|
330
|
+
if (/win|mac/.test(system)) {
|
|
331
|
+
y += fontSize / 3;
|
|
332
|
+
}
|
|
333
|
+
// 垂直布局
|
|
334
|
+
switch (va) {
|
|
335
|
+
case 'top':
|
|
336
|
+
break;
|
|
337
|
+
case 'middle':
|
|
338
|
+
y -= fontSize / 2;
|
|
339
|
+
break;
|
|
340
|
+
case 'bottom':
|
|
341
|
+
y -= fontSize;
|
|
342
|
+
break;
|
|
343
|
+
default:
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
let to = x;
|
|
347
|
+
switch (textAlign) {
|
|
348
|
+
case 'left':
|
|
349
|
+
x = x;
|
|
350
|
+
to += textWidth;
|
|
351
|
+
break;
|
|
352
|
+
case 'center':
|
|
353
|
+
x = x - textWidth / 2;
|
|
354
|
+
to = x + textWidth;
|
|
355
|
+
break;
|
|
356
|
+
case 'right':
|
|
357
|
+
to = x;
|
|
358
|
+
x = x - textWidth;
|
|
359
|
+
break;
|
|
360
|
+
default:
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (td) {
|
|
365
|
+
ctx.setLineWidth(fontSize / 13);
|
|
366
|
+
ctx.beginPath();
|
|
367
|
+
|
|
368
|
+
if (/\bunderline\b/.test(td)) {
|
|
369
|
+
y -= inlinePaddingTop * 0.8;
|
|
370
|
+
ctx.moveTo(x, y);
|
|
371
|
+
ctx.lineTo(to, y);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
if (/\boverline\b/.test(td)) {
|
|
375
|
+
y += inlinePaddingTop;
|
|
376
|
+
ctx.moveTo(x, y - lineHeight);
|
|
377
|
+
ctx.lineTo(to, y - lineHeight);
|
|
378
|
+
}
|
|
379
|
+
if (/\bline-through\b/.test(td)) {
|
|
380
|
+
ctx.moveTo(x, y - lineHeight / 2);
|
|
381
|
+
ctx.lineTo(to, y - lineHeight / 2);
|
|
382
|
+
}
|
|
383
|
+
ctx.closePath();
|
|
384
|
+
ctx.setStrokeStyle(color);
|
|
385
|
+
ctx.stroke();
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const inlinePaddingTop = Math.ceil((lineHeight - fontSize) / 2);
|
|
390
|
+
// 不超过一行
|
|
391
|
+
if (textWidth <= w && !text.includes('\n')) {
|
|
392
|
+
ctx.fillText(text, x, y + inlinePaddingTop);
|
|
393
|
+
y += lineHeight;
|
|
394
|
+
_drawLine(x, y, textWidth);
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
// 多行文本
|
|
398
|
+
const chars = text.split('');
|
|
399
|
+
const _y = y;
|
|
400
|
+
// 逐行绘制
|
|
401
|
+
let line = '';
|
|
402
|
+
let lineIndex = 0;
|
|
403
|
+
let textArray = [];
|
|
404
|
+
for (let index = 0; index <= chars.length; index++) {
|
|
405
|
+
let ch = chars[index];
|
|
406
|
+
// for (let ch of chars) {
|
|
407
|
+
const isLine = ch === '\n';
|
|
408
|
+
const isRight = index === chars.length - 1;
|
|
409
|
+
ch = isLine ? '' : ch;
|
|
410
|
+
let testLine = line + ch;
|
|
411
|
+
const testWidth = this.measureText(testLine, fontSize);
|
|
412
|
+
// 绘制行数大于最大行数,则直接跳出循环
|
|
413
|
+
if (lineIndex >= maxLines) {
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
if (testWidth > w || isLine || isRight) {
|
|
417
|
+
lineIndex++;
|
|
418
|
+
line = isRight && testWidth <= w ? testLine : line;
|
|
419
|
+
if (lineIndex === maxLines && testWidth > w) {
|
|
420
|
+
while (this.measureText(`${line}...`, fontSize) > w) {
|
|
421
|
+
if (line.length <= 1) {
|
|
422
|
+
// 如果只有一个字符时,直接跳出循环
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
line = line.substring(0, line.length - 1);
|
|
426
|
+
}
|
|
427
|
+
line += '...';
|
|
428
|
+
}
|
|
429
|
+
textArray.push(line);
|
|
430
|
+
ctx.fillText(line, x, y + inlinePaddingTop);
|
|
431
|
+
y += lineHeight;
|
|
432
|
+
_drawLine(x, y, testWidth);
|
|
433
|
+
line = ch;
|
|
434
|
+
if (y + lineHeight > _y + h) break;
|
|
435
|
+
} else {
|
|
436
|
+
line = testLine;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
ctx.restore();
|
|
440
|
+
}
|
|
441
|
+
findNode(element, parent = {}, index = 0, siblings = [], source) {
|
|
442
|
+
let computedStyle = Object.assign({}, this.getComputedStyle(element, parent, index));
|
|
443
|
+
let node = {
|
|
444
|
+
id: id++,
|
|
445
|
+
parent,
|
|
446
|
+
computedStyle,
|
|
447
|
+
attributes: Object.assign({}, this.getAttributes(element)),
|
|
448
|
+
name: element?.type || 'view'
|
|
449
|
+
};
|
|
450
|
+
if (JSON.stringify(parent) === '{}') {
|
|
451
|
+
const { left = 0, top = 0, width = 0, height = 0 } = computedStyle;
|
|
452
|
+
node.layoutBox = { left, top, width, height };
|
|
453
|
+
} else {
|
|
454
|
+
node.layoutBox = Object.assign({ left: 0, top: 0 }, this.getLayoutBox(node, parent, index, siblings, source));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (element?.views) {
|
|
458
|
+
let childrens = [];
|
|
459
|
+
node.children = [];
|
|
460
|
+
element.views.forEach((v, i) => {
|
|
461
|
+
childrens.push(this.findNode(v, node, i, childrens, element));
|
|
462
|
+
});
|
|
463
|
+
node.children = childrens;
|
|
464
|
+
}
|
|
465
|
+
return node;
|
|
466
|
+
}
|
|
467
|
+
getComputedStyle(element, parent = {}, index = 0) {
|
|
468
|
+
const style = {};
|
|
469
|
+
if (parent.computedStyle) {
|
|
470
|
+
for (let value of Object.keys(parent.computedStyle)) {
|
|
471
|
+
const item = parent.computedStyle[value];
|
|
472
|
+
if (['color', 'fontSize', 'lineHeight', 'verticalAlign', 'fontWeight', 'textAlign'].includes(value)) {
|
|
473
|
+
style[value] = /px$/.test(item) ? toPx(item) : item;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
const node = JSON.stringify(parent) == '{}' ? element : element.css;
|
|
478
|
+
if (!node) return style;
|
|
479
|
+
for (let value of Object.keys(node)) {
|
|
480
|
+
const item = node[value];
|
|
481
|
+
if (value == 'views') {
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
if (['boxShadow', 'shadow'].includes(value)) {
|
|
485
|
+
let shadows = item.split(' ').map((v) => (/^\d/.test(v) ? toPx(v) : v));
|
|
486
|
+
style.boxShadow = shadows;
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (value.includes('border') && !value.includes('adius')) {
|
|
490
|
+
const prefix = value.match(/^border([BTRLa-z]+)?/)[0];
|
|
491
|
+
const type = value.match(/[W|S|C][a-z]+/);
|
|
492
|
+
let v = item.split(' ').map((v) => (/^\d/.test(v) ? toPx(v) : v));
|
|
493
|
+
if (v.length > 1) {
|
|
494
|
+
style[prefix] = {
|
|
495
|
+
[prefix + 'Width']: v[0] || 1,
|
|
496
|
+
[prefix + 'Style']: v[1] || 'solid',
|
|
497
|
+
[prefix + 'Color']: v[2] || 'black'
|
|
498
|
+
};
|
|
499
|
+
} else {
|
|
500
|
+
style[prefix] = {
|
|
501
|
+
[prefix + 'Width']: 1,
|
|
502
|
+
[prefix + 'Style']: 'solid',
|
|
503
|
+
[prefix + 'Color']: 'black'
|
|
504
|
+
};
|
|
505
|
+
style[prefix][prefix + type[0]] = v[0];
|
|
506
|
+
}
|
|
507
|
+
continue;
|
|
508
|
+
}
|
|
509
|
+
if (['background', 'backgroundColor'].includes(value)) {
|
|
510
|
+
style['backgroundColor'] = item;
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
if (value.includes('padding') || value.includes('margin') || value.includes('adius')) {
|
|
514
|
+
let isRadius = value.includes('adius');
|
|
515
|
+
let prefix = isRadius ? 'borderRadius' : value.match(/[a-z]+/)[0];
|
|
516
|
+
let pre = [0, 0, 0, 0].map((item, i) =>
|
|
517
|
+
isRadius
|
|
518
|
+
? ['borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomRightRadius', 'borderBottomLeftRadius'][i]
|
|
519
|
+
: [prefix + 'Top', prefix + 'Right', prefix + 'Bottom', prefix + 'Left'][i]
|
|
520
|
+
);
|
|
521
|
+
if (value === 'padding' || value === 'margin' || value === 'radius') {
|
|
522
|
+
let v = item?.split(' ').map((item) => /^\d/.test(item) && toPx(item, style['width']), []) || [0];
|
|
523
|
+
let type = isRadius ? 'borderRadius' : value;
|
|
524
|
+
if (v.length == 1) {
|
|
525
|
+
style[type] = v[0];
|
|
526
|
+
} else {
|
|
527
|
+
let [t, r, b, l] = v;
|
|
528
|
+
style[type] = {
|
|
529
|
+
[pre[0]]: t,
|
|
530
|
+
[pre[1]]: r || t,
|
|
531
|
+
[pre[2]]: b || t,
|
|
532
|
+
[pre[3]]: l || r
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
} else {
|
|
536
|
+
if (typeof style[prefix] === 'object') {
|
|
537
|
+
style[prefix][value] = toPx(item, style['width']);
|
|
538
|
+
} else {
|
|
539
|
+
style[prefix] = {
|
|
540
|
+
[pre[0]]: style[prefix] || 0,
|
|
541
|
+
[pre[1]]: style[prefix] || 0,
|
|
542
|
+
[pre[2]]: style[prefix] || 0,
|
|
543
|
+
[pre[3]]: style[prefix] || 0
|
|
544
|
+
};
|
|
545
|
+
style[prefix][value] = toPx(item, style['width']);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
style[value] = /%|px|rpx$/.test(item) ? toPx(item) : item;
|
|
551
|
+
}
|
|
552
|
+
return style;
|
|
553
|
+
}
|
|
554
|
+
getLayoutBox(element, parent = {}, index = 0, siblings = [], source = {}) {
|
|
555
|
+
let box = {};
|
|
556
|
+
let { name, computedStyle: cstyle, layoutBox, attributes } = element || {};
|
|
557
|
+
if (!name) return box;
|
|
558
|
+
const isText = name === 'text';
|
|
559
|
+
const isParentText = parent.name === 'text';
|
|
560
|
+
const ctx = this.ctx;
|
|
561
|
+
const pbox = parent.layoutBox;
|
|
562
|
+
const pstyle = parent.computedStyle;
|
|
563
|
+
const { verticalAlign: va } = cstyle;
|
|
564
|
+
// 获取left
|
|
565
|
+
const { paddingTop: pt = 0, paddingRight: pr = 0, paddingBottom: pb = 0, paddingLeft: pl = 0 } = cstyle.padding || {};
|
|
566
|
+
const { marginTop: mt = 0, marginRight: mr = 0, marginBottom: mb = 0, marginLeft: ml = 0 } = cstyle.margin || {};
|
|
567
|
+
const getNodeLeft = () => {
|
|
568
|
+
if (typeof cstyle.left === 'number') {
|
|
569
|
+
return cstyle.left + pl + ml;
|
|
570
|
+
}
|
|
571
|
+
// 如果是块元素
|
|
572
|
+
if (!isText) {
|
|
573
|
+
return (pbox?.left || 0) + pl + ml;
|
|
574
|
+
}
|
|
575
|
+
// 如果是第1个元素
|
|
576
|
+
const isLeft = index == 0;
|
|
577
|
+
if (isLeft) {
|
|
578
|
+
// 如果父级是文本
|
|
579
|
+
if (isParentText) {
|
|
580
|
+
return (pbox?.left || 0) + (pbox?.width || 0) + pl + ml;
|
|
581
|
+
} else {
|
|
582
|
+
return (pbox?.left || 0) + pl + ml;
|
|
583
|
+
}
|
|
584
|
+
} else {
|
|
585
|
+
const { layoutBox: lbox, computedStyle: ls } = siblings[index - 1];
|
|
586
|
+
return lbox.left + lbox.width + pl + ml + (ls?.padding?.paddingRight || 0) + (ls?.margin?.marginRight || 0);
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
// 获取宽度
|
|
591
|
+
const getNodeWidth = () => {
|
|
592
|
+
if (typeof cstyle.width === 'number') {
|
|
593
|
+
return cstyle.width - pl - pr;
|
|
594
|
+
}
|
|
595
|
+
if (!isText || (isText && cstyle.textAlign && cstyle.textAlign !== 'left')) {
|
|
596
|
+
return pbox?.width - pl - pr;
|
|
597
|
+
}
|
|
598
|
+
if (isText) {
|
|
599
|
+
let { fontSize = 14, lineHeight = '1.4em', fontWeight, fontFamily = 'sans-serif', textStyle } = cstyle || {};
|
|
600
|
+
this.setFont({ fontFamily, fontSize, fontWeight, textStyle });
|
|
601
|
+
let width = this.measureText(attributes.text, fontSize);
|
|
602
|
+
if (!isParentText) {
|
|
603
|
+
if (width < (pbox?.width || 0)) {
|
|
604
|
+
return width;
|
|
605
|
+
} else {
|
|
606
|
+
return pbox?.width || 0;
|
|
607
|
+
}
|
|
608
|
+
} else {
|
|
609
|
+
const { layoutBox: pb } = this.getParent(parent, 'view');
|
|
610
|
+
const maxWidth = pb.width + pb.left - box.left;
|
|
611
|
+
return maxWidth > width ? width : maxWidth;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
// 获取高度
|
|
616
|
+
const getNodeHeight = () => {
|
|
617
|
+
const { height } = cstyle;
|
|
618
|
+
if (cstyle.height) {
|
|
619
|
+
return cstyle.height;
|
|
620
|
+
}
|
|
621
|
+
if (!isText) {
|
|
622
|
+
return 0;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// 如果父级有高度
|
|
626
|
+
if (pbox.height == pstyle.height && pstyle.height != 0 && va != 'bottom' && va != 'middle') {
|
|
627
|
+
return pbox.height;
|
|
628
|
+
}
|
|
629
|
+
// 如果父级没有高度
|
|
630
|
+
else {
|
|
631
|
+
let { fontSize = 14, lineHeight = '1.4em' } = cstyle || {};
|
|
632
|
+
if (typeof lineHeight === 'string') {
|
|
633
|
+
// 1.4em
|
|
634
|
+
lineHeight = Math.ceil(parseFloat(lineHeight.replace('em')) * fontSize);
|
|
635
|
+
}
|
|
636
|
+
let width = this.measureText(attributes.text, fontSize);
|
|
637
|
+
if (pbox.width < width) {
|
|
638
|
+
lineHeight = Math.ceil(width / pbox.width) * lineHeight;
|
|
639
|
+
}
|
|
640
|
+
pbox.height = pbox.height > lineHeight ? pbox.height : lineHeight;
|
|
641
|
+
return lineHeight;
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
// 获取top
|
|
646
|
+
const getNodeTop = () => {
|
|
647
|
+
if (cstyle.top) {
|
|
648
|
+
return cstyle.top + pt + mt;
|
|
649
|
+
}
|
|
650
|
+
if (va === 'bottom') {
|
|
651
|
+
return pbox?.top + (pbox?.height - box.height || 0) + pt + mt;
|
|
652
|
+
}
|
|
653
|
+
if (va === 'middle') {
|
|
654
|
+
return pbox?.top + (pbox?.height - box.height || 0) / 2 + pt + mt;
|
|
655
|
+
}
|
|
656
|
+
return (pbox?.top || 0) + pt + mt;
|
|
657
|
+
};
|
|
658
|
+
box.left = getNodeLeft();
|
|
659
|
+
|
|
660
|
+
ctx.save();
|
|
661
|
+
box.width = getNodeWidth();
|
|
662
|
+
box.height = getNodeHeight();
|
|
663
|
+
// 获取top
|
|
664
|
+
box.top = getNodeTop();
|
|
665
|
+
|
|
666
|
+
ctx.restore();
|
|
667
|
+
return box;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
getParent(element, name) {
|
|
671
|
+
if (element.name === name) {
|
|
672
|
+
return element;
|
|
673
|
+
} else if (element.parent) {
|
|
674
|
+
return this.getParent(element.parent, name);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
getAttributes(element) {
|
|
678
|
+
let arr = {};
|
|
679
|
+
if (element?.url || element?.src) {
|
|
680
|
+
arr.src = element.url || element?.src;
|
|
681
|
+
}
|
|
682
|
+
if (element?.text) {
|
|
683
|
+
arr.text = element.text;
|
|
684
|
+
}
|
|
685
|
+
return arr;
|
|
686
|
+
}
|
|
687
|
+
async drawBoard(element) {
|
|
688
|
+
const node = this.findNode(element);
|
|
689
|
+
return this.drawNode(node);
|
|
690
|
+
}
|
|
691
|
+
async drawNode(element) {
|
|
692
|
+
const { layoutBox, computedStyle, name } = element;
|
|
693
|
+
const { src, text } = element.attributes;
|
|
694
|
+
if (name === 'view') {
|
|
695
|
+
this.drawView(layoutBox, computedStyle);
|
|
696
|
+
} else if (name === 'image') {
|
|
697
|
+
await this.drawImage(src, layoutBox, computedStyle);
|
|
698
|
+
} else if (name === 'text') {
|
|
699
|
+
this.drawText(text, layoutBox, computedStyle);
|
|
700
|
+
}
|
|
701
|
+
if (!element.children) return;
|
|
702
|
+
const childs = Object.values
|
|
703
|
+
? Object.values(element.children)
|
|
704
|
+
: Object.keys(element.children).map((key) => element.children[key]);
|
|
705
|
+
for (const child of childs) {
|
|
706
|
+
await this.drawNode(child);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|