@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
|
@@ -1 +1,763 @@
|
|
|
1
|
-
<template>
|
|
2
1
|
<view class="u-table2" :class="{ 'u-table-border': border }">
|
|
3
2
|
<scroll-view
|
|
4
3
|
scroll-x
|
|
5
4
|
scroll-y
|
|
6
5
|
class="u-table2-content"
|
|
7
6
|
:style="{ height: height ? addUnit(height) : 'auto' }"
|
|
8
7
|
@scroll="onScroll"
|
|
9
8
|
>
|
|
10
9
|
<!-- 表头 -->
|
|
11
10
|
<view
|
|
12
11
|
v-if="showHeader"
|
|
13
12
|
class="u-table-header"
|
|
14
13
|
:class="{ 'u-table-sticky': fixedHeader }"
|
|
15
14
|
:style="{ minWidth: scrollWidth }"
|
|
16
15
|
>
|
|
17
16
|
<view class="u-table-row">
|
|
18
17
|
<view
|
|
19
18
|
v-for="(col, colIndex) in columns"
|
|
20
19
|
:key="col.key"
|
|
21
20
|
class="u-table-cell"
|
|
22
21
|
:class="[
|
|
23
22
|
col.headerAlign ? 'u-text-' + col.headerAlign : col.align ? 'u-text-' + col.align : '',
|
|
24
23
|
headerCellClassName ? headerCellClassName(col) : '',
|
|
25
24
|
getFixedClass(col)
|
|
26
25
|
]"
|
|
27
26
|
:style="headerColStyle(col)"
|
|
28
27
|
@click="handleHeaderClick(col)"
|
|
29
28
|
>
|
|
30
29
|
<slot name="header" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
31
30
|
<text v-if="!$slots['header']">{{ col.title }}</text>
|
|
32
31
|
<template v-if="col.sortable">
|
|
33
32
|
<slot name="headerSort" :sortStatus="getSortValue(col.key)" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
34
33
|
<view v-if="!$slots['headerSort']">
|
|
35
34
|
{{ getSortIcon(col.key) }}
|
|
36
35
|
</view>
|
|
37
36
|
</template>
|
|
38
37
|
</view>
|
|
39
38
|
</view>
|
|
40
39
|
</view>
|
|
41
40
|
<!-- 表体 -->
|
|
42
41
|
<view class="u-table-body" :style="{ minWidth: scrollWidth, maxHeight: maxHeight ? maxHeight + 'px' : 'none' }">
|
|
43
42
|
<template v-if="data && data.length > 0">
|
|
44
43
|
<table-row
|
|
45
44
|
v-for="(row, rowIndex) in sortedData"
|
|
46
45
|
:key="row[rowKey] || rowIndex"
|
|
47
46
|
:row="row"
|
|
48
47
|
:rowIndex="rowIndex"
|
|
49
48
|
:parent-row="null"
|
|
50
49
|
:columns="columns"
|
|
51
50
|
:tree-props="treeProps"
|
|
52
51
|
:row-key="rowKey"
|
|
53
52
|
:expanded-keys="expandedKeys"
|
|
54
53
|
:cell-style-inner="cellStyleInner"
|
|
55
54
|
:is-expanded="isExpanded"
|
|
56
55
|
:row-class-name="rowClassName"
|
|
57
56
|
:stripe="stripe"
|
|
58
57
|
:cell-class-name="cellClassName"
|
|
59
58
|
:get-fixed-class="getFixedClass"
|
|
60
59
|
:highlight-current-row="highlightCurrentRow"
|
|
61
60
|
:current-row="currentRow"
|
|
62
61
|
:handle-row-click="handleRowClick"
|
|
63
62
|
:toggle-expand="toggleExpand"
|
|
64
63
|
:level="1"
|
|
65
64
|
:rowHeight="rowHeight"
|
|
66
65
|
:hasTree="hasTree"
|
|
67
66
|
:selectedRows="selectedRows"
|
|
68
67
|
:expandWidth="expandWidth"
|
|
69
68
|
:computedMainCol="computedMainCol"
|
|
70
69
|
:span-method="spanMethod"
|
|
71
70
|
@toggle-select="toggleSelect"
|
|
72
71
|
@row-click="handleRowClick"
|
|
73
72
|
@toggle-expand="toggleExpand"
|
|
74
73
|
>
|
|
75
74
|
<template v-slot:cellChild="scope">
|
|
76
75
|
<slot
|
|
77
76
|
name="cell"
|
|
78
77
|
:row="scope.row"
|
|
79
78
|
:column="scope.column"
|
|
80
79
|
:prow="scope.prow"
|
|
81
80
|
:rowIndex="scope.rowIndex"
|
|
82
81
|
:columnIndex="scope.columnIndex"
|
|
83
82
|
:level="scope.level"
|
|
84
83
|
></slot>
|
|
85
84
|
</template>
|
|
86
85
|
</table-row>
|
|
87
86
|
</template>
|
|
88
87
|
<template v-else>
|
|
89
88
|
<slot name="empty"></slot>
|
|
90
89
|
<view v-if="!$slots['empty']" class="u-table-empty">{{ emptyText }}</view>
|
|
91
90
|
</template>
|
|
92
91
|
</view>
|
|
93
92
|
</scroll-view>
|
|
94
93
|
<!-- 固定列浮动视图 -->
|
|
95
94
|
<view v-if="showFixedColumnShadow" class="u-table-fixed-shadow" :style="{ height: tableHeight }">
|
|
96
95
|
<!-- 表头 -->
|
|
97
96
|
<view
|
|
98
97
|
v-if="showHeader"
|
|
99
98
|
class="u-table-header"
|
|
100
99
|
:class="{ 'u-table-sticky': fixedHeader }"
|
|
101
100
|
:style="{ minWidth: scrollWidth }"
|
|
102
101
|
>
|
|
103
102
|
<view class="u-table-row" :style="{ height: headerHeight }">
|
|
104
103
|
<view
|
|
105
104
|
v-for="(col, colIndex) in visibleFixedLeftColumns"
|
|
106
105
|
:key="col.key"
|
|
107
106
|
class="u-table-cell"
|
|
108
107
|
:style="headerColStyle(col)"
|
|
109
108
|
:class="[
|
|
110
109
|
col.align ? 'u-text-' + col.align : '',
|
|
111
110
|
headerCellClassName ? headerCellClassName(col) : '',
|
|
112
111
|
getFixedClass(col)
|
|
113
112
|
]"
|
|
114
113
|
@click="handleHeaderClick(col)"
|
|
115
114
|
>
|
|
116
115
|
<slot name="header" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
117
116
|
<text v-if="!$slots['header']">{{ col.title }}</text>
|
|
118
117
|
<template v-if="col.sortable">
|
|
119
118
|
<slot name="headerSort" :sortStatus="getSortValue(col.key)" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
120
119
|
<view v-if="!$slots['headerSort']">
|
|
121
120
|
{{ getSortIcon(col.key) }}
|
|
122
121
|
</view>
|
|
123
122
|
</template>
|
|
124
123
|
</view>
|
|
125
124
|
</view>
|
|
126
125
|
</view>
|
|
127
126
|
<!-- 表体 -->
|
|
128
127
|
<view class="u-table-body" :style="{ minWidth: scrollWidth, maxHeight: maxHeight ? maxHeight + 'px' : 'none' }">
|
|
129
128
|
<template v-if="data && data.length > 0">
|
|
130
129
|
<template v-for="(row, rowIndex) in sortedData" :key="row[rowKey] || rowIndex">
|
|
131
130
|
<!-- 子级渲染 (递归组件) -->
|
|
132
131
|
<table-row
|
|
133
132
|
:row="row"
|
|
134
133
|
:rowIndex="rowIndex"
|
|
135
134
|
:parent-row="null"
|
|
136
135
|
:columns="visibleFixedLeftColumns"
|
|
137
136
|
:tree-props="treeProps"
|
|
138
137
|
:row-key="rowKey"
|
|
139
138
|
:expanded-keys="expandedKeys"
|
|
140
139
|
:cell-style-inner="cellStyleInner"
|
|
141
140
|
:is-expanded="isExpanded"
|
|
142
141
|
:row-class-name="rowClassName"
|
|
143
142
|
:stripe="stripe"
|
|
144
143
|
:cell-class-name="cellClassName"
|
|
145
144
|
:get-fixed-class="getFixedClass"
|
|
146
145
|
:highlight-current-row="highlightCurrentRow"
|
|
147
146
|
:current-row="currentRow"
|
|
148
147
|
:handle-row-click="handleRowClick"
|
|
149
148
|
:toggle-expand="toggleExpand"
|
|
150
149
|
:level="1"
|
|
151
150
|
:rowHeight="rowHeight"
|
|
152
151
|
:hasTree="hasTree"
|
|
153
152
|
:selectedRows="selectedRows"
|
|
154
153
|
:expandWidth="expandWidth"
|
|
155
154
|
:computedMainCol="computedMainCol"
|
|
156
155
|
:span-method="spanMethod"
|
|
157
156
|
@toggle-select="toggleSelect"
|
|
158
157
|
@row-click="handleRowClick"
|
|
159
158
|
@toggle-expand="toggleExpand"
|
|
160
159
|
>
|
|
161
160
|
<template v-slot:cellChild="scope">
|
|
162
161
|
<slot
|
|
163
162
|
name="cell"
|
|
164
163
|
:row="scope.row"
|
|
165
164
|
:column="scope.column"
|
|
166
165
|
:prow="scope.prow"
|
|
167
166
|
:rowIndex="scope.rowIndex"
|
|
168
167
|
:columnIndex="scope.columnIndex"
|
|
169
168
|
:level="scope.level"
|
|
170
169
|
></slot>
|
|
171
170
|
</template>
|
|
172
171
|
</table-row>
|
|
173
172
|
</template>
|
|
174
173
|
</template>
|
|
175
174
|
</view>
|
|
176
175
|
</view>
|
|
177
176
|
</view>
|
|
178
177
|
name: 'u-table2',
|
|
179
178
|
components: {
|
|
180
179
|
tableRow // 注册递归组件
|
|
181
180
|
},
|
|
182
181
|
props: {
|
|
183
182
|
data: {
|
|
184
183
|
type: Array,
|
|
185
184
|
required: true,
|
|
186
185
|
default: () => {
|
|
187
186
|
return [];
|
|
188
187
|
}
|
|
189
188
|
},
|
|
190
189
|
columns: {
|
|
191
190
|
type: Array,
|
|
192
191
|
required: true,
|
|
193
192
|
default: () => {
|
|
194
193
|
return [];
|
|
195
194
|
},
|
|
196
195
|
validator: (cols) => cols.every((col) => ['default', 'selection', 'expand'].includes(col.type || 'default'))
|
|
197
196
|
},
|
|
198
197
|
stripe: {
|
|
199
198
|
type: Boolean,
|
|
200
199
|
default: false
|
|
201
200
|
},
|
|
202
201
|
border: {
|
|
203
202
|
type: Boolean,
|
|
204
203
|
default: false
|
|
205
204
|
},
|
|
206
205
|
height: {
|
|
207
206
|
type: [String, Number],
|
|
208
207
|
default: null
|
|
209
208
|
},
|
|
210
209
|
maxHeight: {
|
|
211
210
|
type: [String, Number],
|
|
212
211
|
default: null
|
|
213
212
|
},
|
|
214
213
|
showHeader: {
|
|
215
214
|
type: Boolean,
|
|
216
215
|
default: true
|
|
217
216
|
},
|
|
218
217
|
highlightCurrentRow: {
|
|
219
218
|
type: Boolean,
|
|
220
219
|
default: false
|
|
221
220
|
},
|
|
222
221
|
rowKey: {
|
|
223
222
|
type: String,
|
|
224
223
|
default: 'id'
|
|
225
224
|
},
|
|
226
225
|
currentRowKey: {
|
|
227
226
|
type: [String, Number],
|
|
228
227
|
default: null
|
|
229
228
|
},
|
|
230
229
|
rowStyle: {
|
|
231
230
|
type: Object,
|
|
232
231
|
default: () => ({})
|
|
233
232
|
},
|
|
234
233
|
cellClassName: {
|
|
235
234
|
type: Function,
|
|
236
235
|
default: null
|
|
237
236
|
},
|
|
238
237
|
cellStyle: {
|
|
239
238
|
type: Function,
|
|
240
239
|
default: null
|
|
241
240
|
},
|
|
242
241
|
headerCellClassName: {
|
|
243
242
|
type: Function,
|
|
244
243
|
default: null
|
|
245
244
|
},
|
|
246
245
|
rowClassName: {
|
|
247
246
|
type: Function,
|
|
248
247
|
default: null
|
|
249
248
|
},
|
|
250
249
|
context: {
|
|
251
250
|
type: Object,
|
|
252
251
|
default: null
|
|
253
252
|
},
|
|
254
253
|
showOverflowTooltip: {
|
|
255
254
|
type: Boolean,
|
|
256
255
|
default: false
|
|
257
256
|
},
|
|
258
257
|
lazy: {
|
|
259
258
|
type: Boolean,
|
|
260
259
|
default: false
|
|
261
260
|
},
|
|
262
261
|
load: {
|
|
263
262
|
type: Function,
|
|
264
263
|
default: null
|
|
265
264
|
},
|
|
266
265
|
treeProps: {
|
|
267
266
|
type: Object,
|
|
268
267
|
default: () => ({
|
|
269
268
|
children: 'children',
|
|
270
269
|
hasChildren: 'hasChildren'
|
|
271
270
|
})
|
|
272
271
|
},
|
|
273
272
|
defaultExpandAll: {
|
|
274
273
|
type: Boolean,
|
|
275
274
|
default: false
|
|
276
275
|
},
|
|
277
276
|
expandRowKeys: {
|
|
278
277
|
type: Array,
|
|
279
278
|
default: () => []
|
|
280
279
|
},
|
|
281
280
|
sortOrders: {
|
|
282
281
|
type: Array,
|
|
283
282
|
default: () => ['ascending', 'descending']
|
|
284
283
|
},
|
|
285
284
|
sortable: {
|
|
286
285
|
type: [Boolean, String],
|
|
287
286
|
default: false
|
|
288
287
|
},
|
|
289
288
|
multiSort: {
|
|
290
289
|
type: Boolean,
|
|
291
290
|
default: false
|
|
292
291
|
},
|
|
293
292
|
sortBy: {
|
|
294
293
|
type: String,
|
|
295
294
|
default: null
|
|
296
295
|
},
|
|
297
296
|
sortMethod: {
|
|
298
297
|
type: Function,
|
|
299
298
|
default: null
|
|
300
299
|
},
|
|
301
300
|
filters: {
|
|
302
301
|
type: Object,
|
|
303
302
|
default: () => ({})
|
|
304
303
|
},
|
|
305
304
|
fixedHeader: {
|
|
306
305
|
type: Boolean,
|
|
307
306
|
default: true
|
|
308
307
|
},
|
|
309
308
|
emptyText: {
|
|
310
309
|
type: String,
|
|
311
310
|
default: '暂无数据'
|
|
312
311
|
},
|
|
313
312
|
// 添加mainCol属性,用于指定树形结构展开控制图标所在的列
|
|
314
313
|
mainCol: {
|
|
315
314
|
type: String,
|
|
316
315
|
default: ''
|
|
317
316
|
},
|
|
318
317
|
expandWidth: {
|
|
319
318
|
type: String,
|
|
320
319
|
default: '25px'
|
|
321
320
|
},
|
|
322
321
|
rowHeight: {
|
|
323
322
|
type: String,
|
|
324
323
|
default: '36px'
|
|
325
324
|
},
|
|
326
325
|
// 添加spanMethod属性,用于合并单元格
|
|
327
326
|
spanMethod: {
|
|
328
327
|
type: Function,
|
|
329
328
|
default: null
|
|
330
329
|
}
|
|
331
330
|
},
|
|
332
331
|
emits: [
|
|
333
332
|
'select',
|
|
334
333
|
'select-all',
|
|
335
334
|
'selection-change',
|
|
336
335
|
'cell-click',
|
|
337
336
|
'row-click',
|
|
338
337
|
'row-dblclick',
|
|
339
338
|
'header-click',
|
|
340
339
|
'sort-change',
|
|
341
340
|
'filter-change',
|
|
342
341
|
'current-change',
|
|
343
342
|
'expand-change'
|
|
344
343
|
],
|
|
345
344
|
data() {
|
|
346
345
|
return {
|
|
347
346
|
scrollWidth: 'auto',
|
|
348
347
|
// 将setup中的ref转换为data属性
|
|
349
348
|
expandedKeys: [...this.expandRowKeys],
|
|
350
349
|
selectedRows: [],
|
|
351
350
|
sortConditions: [],
|
|
352
351
|
currentRow: null,
|
|
353
352
|
scrollLeft: 0, // 新增滚动位置数据
|
|
354
353
|
showFixedColumnShadow: false, // 是否显示固定列阴影
|
|
355
354
|
fixedLeftColumns: [], // 左侧固定列
|
|
356
355
|
tableHeight: 'auto', // 表格高度
|
|
357
356
|
headerHeight: 'auto', // 新增表头高度属性
|
|
358
357
|
hasTree: false // 新增属性,用于判断是否存在树形结构
|
|
359
358
|
};
|
|
360
359
|
},
|
|
361
360
|
mounted() {
|
|
362
361
|
this.getComponentWidth();
|
|
363
362
|
// 处理currentRowKey初始化
|
|
364
363
|
if (this.currentRowKey !== null) {
|
|
365
364
|
const found = this.data.find((item) => item[this.rowKey] === this.currentRowKey);
|
|
366
365
|
if (found) {
|
|
367
366
|
this.currentRow = found;
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
369
|
// 获取固定列
|
|
371
370
|
this.fixedLeftColumns = this.columns.filter((col) => col.fixed === 'left');
|
|
372
371
|
},
|
|
373
372
|
computed: {
|
|
374
373
|
// 将setup中的computed转换为computed属性
|
|
375
374
|
filteredData() {
|
|
376
375
|
return this.data.filter((row) => {
|
|
377
376
|
return Object.keys(this.filters).every((key) => {
|
|
378
377
|
const filter = this.filters[key];
|
|
379
378
|
if (!filter) return true;
|
|
380
379
|
return row[key]?.toString().includes(filter.toString());
|
|
381
380
|
});
|
|
382
381
|
});
|
|
383
382
|
},
|
|
384
383
|
sortedData() {
|
|
385
384
|
if (!this.sortConditions.length) return this.filteredData;
|
|
386
385
|
const data = [...this.filteredData];
|
|
387
386
|
return data.sort((a, b) => {
|
|
388
387
|
for (const condition of this.sortConditions) {
|
|
389
388
|
const { field, order } = condition;
|
|
390
389
|
let valA = a[field];
|
|
391
390
|
let valB = b[field];
|
|
392
391
|
if (this.sortMethod) {
|
|
393
392
|
const result = this.sortMethod(a, b, field);
|
|
394
393
|
if (result !== 0) return result * (order === 'ascending' ? 1 : -1);
|
|
395
394
|
}
|
|
396
395
|
if (valA < valB) return order === 'ascending' ? -1 : 1;
|
|
397
396
|
if (valA > valB) return order === 'ascending' ? 1 : -1;
|
|
398
397
|
}
|
|
399
398
|
return 0;
|
|
400
399
|
});
|
|
401
400
|
},
|
|
402
401
|
// 计算当前应该显示的固定左侧列
|
|
403
402
|
visibleFixedLeftColumns() {
|
|
404
403
|
if (this.scrollLeft <= 0) {
|
|
405
404
|
return [];
|
|
406
405
|
}
|
|
407
406
|
let totalWidth = 0;
|
|
408
407
|
let fixedWidth = 0;
|
|
409
408
|
const visibleColumns = [];
|
|
410
409
|
// 遍历所有列,不仅仅是固定列
|
|
411
410
|
for (let i = 0; i < this.columns.length; i++) {
|
|
412
411
|
const col = this.columns[i];
|
|
413
412
|
const colWidth = col.width ? parseInt(col.width) : 100; // 默认宽度100px
|
|
414
413
|
// 如果是固定列且滚动位置足够显示该列
|
|
415
414
|
if (col.fixed === 'left' && this.scrollLeft > totalWidth - fixedWidth) {
|
|
416
415
|
visibleColumns.push(col);
|
|
417
416
|
fixedWidth += colWidth;
|
|
418
417
|
}
|
|
419
418
|
totalWidth += colWidth;
|
|
420
419
|
}
|
|
421
420
|
return visibleColumns;
|
|
422
421
|
},
|
|
423
422
|
// 获取mainCol的值,如果未设置则默认为第一列的key
|
|
424
423
|
computedMainCol() {
|
|
425
424
|
if (this.mainCol) {
|
|
426
425
|
return this.mainCol;
|
|
427
426
|
}
|
|
428
427
|
// 修改为排除有type值的列
|
|
429
428
|
const validColumns = this.columns.filter((col) => !col.type);
|
|
430
429
|
let mainCol = validColumns && validColumns.length > 0 ? validColumns[0].key : '';
|
|
431
430
|
// console.log('mainCol', mainCol)
|
|
432
431
|
return mainCol;
|
|
433
432
|
}
|
|
434
433
|
},
|
|
435
434
|
watch: {
|
|
436
435
|
// 将setup中的watch转换为watch属性
|
|
437
436
|
expandRowKeys: {
|
|
438
437
|
handler(newVal) {
|
|
439
438
|
this.expandedKeys = [...newVal];
|
|
440
439
|
},
|
|
441
440
|
immediate: true
|
|
442
441
|
},
|
|
443
442
|
currentRowKey: {
|
|
444
443
|
handler(newVal) {
|
|
445
444
|
const found = this.data.find((item) => item[this.rowKey] === newVal);
|
|
446
445
|
if (found) {
|
|
447
446
|
this.currentRow = found;
|
|
448
447
|
}
|
|
449
448
|
},
|
|
450
449
|
immediate: true
|
|
451
450
|
},
|
|
452
451
|
columns: {
|
|
453
452
|
handler() {
|
|
454
453
|
// this.fixedLeftColumns = this.columns.filter(col => col.fixed === 'left');
|
|
455
454
|
},
|
|
456
455
|
deep: true,
|
|
457
456
|
immediate: false
|
|
458
457
|
}
|
|
459
458
|
},
|
|
460
459
|
methods: {
|
|
461
460
|
addUnit,
|
|
462
461
|
onScroll(e) {
|
|
463
462
|
this.scrollLeft = e.detail.scrollLeft;
|
|
464
463
|
// 获取所有左侧固定列
|
|
465
464
|
this.fixedLeftColumns = this.columns.filter((col) => col.fixed === 'left');
|
|
466
465
|
// 计算是否需要显示固定列阴影
|
|
467
466
|
if (this.fixedLeftColumns.length > 0) {
|
|
468
467
|
this.showFixedColumnShadow = this.scrollLeft > 0;
|
|
469
468
|
}
|
|
470
469
|
},
|
|
471
470
|
getFixedShadowStyle(col, index) {
|
|
472
471
|
let style = {
|
|
473
472
|
width: col.width ? addUnit(col.width) : 'auto'
|
|
474
473
|
};
|
|
475
474
|
if (col?.style) {
|
|
476
475
|
style = { ...style, ...col?.style };
|
|
477
476
|
}
|
|
478
477
|
return style;
|
|
479
478
|
},
|
|
480
479
|
getFixedClass(col) {
|
|
481
480
|
return ''; // 不再使用原来的固定列样式类
|
|
482
481
|
},
|
|
483
482
|
headerColStyle(col) {
|
|
484
483
|
let style = {
|
|
485
484
|
width: col.width ? addUnit(col.width) : 'auto',
|
|
486
485
|
flex: col.width ? 'none' : 1
|
|
487
486
|
};
|
|
488
487
|
if (col?.style) {
|
|
489
488
|
style = { ...style, ...col?.style };
|
|
490
489
|
}
|
|
491
490
|
return style;
|
|
492
491
|
},
|
|
493
492
|
setCellStyle(e) {
|
|
494
493
|
this.cellStyle = e;
|
|
495
494
|
},
|
|
496
495
|
cellStyleInner(scope) {
|
|
497
496
|
let style = {
|
|
498
497
|
width: scope.column?.width ? addUnit(scope.column.width) : 'auto',
|
|
499
498
|
flex: scope.column?.width ? 'none' : 1
|
|
500
499
|
};
|
|
501
500
|
// 只有展开列设置padding
|
|
502
501
|
if (scope.column.key == this.computedMainCol) {
|
|
503
502
|
style.paddingLeft = 16 * (scope.level - 1) + 2 + 'px';
|
|
504
503
|
}
|
|
505
504
|
if (this.cellStyle != null) {
|
|
506
505
|
let styleCalc = this.cellStyle(scope);
|
|
507
506
|
if (styleCalc != null) {
|
|
508
507
|
style = { ...style, ...styleCalc };
|
|
509
508
|
}
|
|
510
509
|
}
|
|
511
510
|
return style;
|
|
512
511
|
},
|
|
513
512
|
// 获取组件的宽度
|
|
514
513
|
async getComponentWidth() {
|
|
515
514
|
// 延时一定时间,以获取dom尺寸
|
|
516
515
|
await sleep(30);
|
|
517
516
|
this.$uGetRect('.u-table-row').then((size) => {
|
|
518
517
|
this.scrollWidth = size.width + 'px';
|
|
519
518
|
});
|
|
520
519
|
// 获取表头高度并设置
|
|
521
520
|
this.$uGetRect('.u-table-header').then((size) => {
|
|
522
521
|
if (size.height) {
|
|
523
522
|
this.headerHeight = size.height + 'px';
|
|
524
523
|
}
|
|
525
524
|
});
|
|
526
525
|
// 遍历数据列表第一层判断是否存在树形结构
|
|
527
526
|
this.hasTree = this.sortedData.some((item) => {
|
|
528
527
|
return item[this.treeProps.children] && item[this.treeProps.children].length > 0;
|
|
529
528
|
});
|
|
530
529
|
},
|
|
531
530
|
// 将setup中的函数转换为methods
|
|
532
531
|
handleRowClick(row) {
|
|
533
532
|
if (this.highlightCurrentRow) {
|
|
534
533
|
const oldRow = this.currentRow;
|
|
535
534
|
this.currentRow = row;
|
|
536
535
|
this.$emit('current-change', row, oldRow);
|
|
537
536
|
}
|
|
538
537
|
this.$emit('row-click', row);
|
|
539
538
|
},
|
|
540
539
|
handleHeaderClick(column) {
|
|
541
540
|
if (!column.sortable) return;
|
|
542
541
|
const index = this.sortConditions.findIndex((c) => c.field === column.key);
|
|
543
542
|
let newOrder = 'ascending';
|
|
544
543
|
if (index >= 0) {
|
|
545
544
|
if (this.sortConditions[index].order === 'ascending') {
|
|
546
545
|
newOrder = 'descending';
|
|
547
546
|
} else {
|
|
548
547
|
this.sortConditions.splice(index, 1);
|
|
549
548
|
this.$emit('sort-change', this.sortConditions);
|
|
550
549
|
return;
|
|
551
550
|
}
|
|
552
551
|
}
|
|
553
552
|
if (!this.multiSort) {
|
|
554
553
|
this.sortConditions = [{ field: column.key, order: newOrder }];
|
|
555
554
|
} else {
|
|
556
555
|
if (index >= 0) {
|
|
557
556
|
this.sortConditions[index].order = newOrder;
|
|
558
557
|
} else {
|
|
559
558
|
this.sortConditions.push({ field: column.key, order: newOrder });
|
|
560
559
|
}
|
|
561
560
|
}
|
|
562
561
|
this.$emit('sort-change', this.sortConditions);
|
|
563
562
|
},
|
|
564
563
|
getSortIcon(field) {
|
|
565
564
|
const cond = this.sortConditions.find((c) => c.field === field);
|
|
566
565
|
if (!cond) return '';
|
|
567
566
|
return cond.order === 'ascending' ? '↑' : '↓';
|
|
568
567
|
},
|
|
569
568
|
getSortValue(field) {
|
|
570
569
|
const cond = this.sortConditions.find((c) => c.field === field);
|
|
571
570
|
if (!cond) return '';
|
|
572
571
|
return cond.order === 'ascending';
|
|
573
572
|
},
|
|
574
573
|
toggleSelect(row) {
|
|
575
574
|
const index = this.selectedRows.findIndex((r) => r[this.rowKey] === row[this.rowKey]);
|
|
576
575
|
if (index >= 0) {
|
|
577
576
|
// 取消选中当前行及其所有子节点
|
|
578
577
|
this.selectedRows.splice(index, 1);
|
|
579
578
|
// 递归取消所有子节点
|
|
580
579
|
this.unselectChildren(row);
|
|
581
580
|
} else {
|
|
582
581
|
// 选中当前行及其所有子节点
|
|
583
582
|
this.selectedRows.push(row);
|
|
584
583
|
// 递归选中所有子节点
|
|
585
584
|
this.selectChildren(row);
|
|
586
585
|
}
|
|
587
586
|
console.log(this.selectedRows);
|
|
588
587
|
this.$emit('selection-change', this.selectedRows);
|
|
589
588
|
this.$emit('select', row);
|
|
590
589
|
},
|
|
591
590
|
toggleExpand(row) {
|
|
592
591
|
// console.log(row)
|
|
593
592
|
const key = row[this.rowKey];
|
|
594
593
|
const index = this.expandedKeys.indexOf(key);
|
|
595
594
|
if (index === -1) {
|
|
596
595
|
this.expandedKeys.push(key);
|
|
597
596
|
} else {
|
|
598
597
|
this.expandedKeys.splice(index, 1);
|
|
599
598
|
}
|
|
600
599
|
this.$emit('expand-change', this.expandedKeys);
|
|
601
600
|
},
|
|
602
601
|
isExpanded(row) {
|
|
603
602
|
if (!row) {
|
|
604
603
|
return false;
|
|
605
604
|
}
|
|
606
605
|
return this.expandedKeys.includes(row[this.rowKey]);
|
|
607
606
|
},
|
|
608
607
|
// 新增方法:递归选中所有子节点
|
|
609
608
|
selectChildren(row) {
|
|
610
609
|
const children = row[this.treeProps.children];
|
|
611
610
|
if (children && children.length > 0) {
|
|
612
611
|
children.forEach((child) => {
|
|
613
612
|
// 检查是否已选中,避免重复添加
|
|
614
613
|
const childIndex = this.selectedRows.findIndex((r) => r[this.rowKey] === child[this.rowKey]);
|
|
615
614
|
if (childIndex === -1) {
|
|
616
615
|
this.selectedRows.push(child);
|
|
617
616
|
}
|
|
618
617
|
// 递归处理子节点的子节点
|
|
619
618
|
this.selectChildren(child);
|
|
620
619
|
});
|
|
621
620
|
}
|
|
622
621
|
},
|
|
623
622
|
// 新增方法:递归取消选中所有子节点
|
|
624
623
|
unselectChildren(row) {
|
|
625
624
|
const children = row[this.treeProps.children];
|
|
626
625
|
if (children && children.length > 0) {
|
|
627
626
|
children.forEach((child) => {
|
|
628
627
|
const childIndex = this.selectedRows.findIndex((r) => r[this.rowKey] === child[this.rowKey]);
|
|
629
628
|
if (childIndex >= 0) {
|
|
630
629
|
this.selectedRows.splice(childIndex, 1);
|
|
631
630
|
}
|
|
632
631
|
// 递归处理子节点的子节点
|
|
633
632
|
this.unselectChildren(child);
|
|
634
633
|
});
|
|
635
634
|
}
|
|
636
635
|
}
|
|
637
636
|
}
|
|
637
|
+
<template>
|
|
638
|
+
<view class="u-table2" :class="{ 'u-table-border': border }">
|
|
639
|
+
<scroll-view
|
|
640
|
+
scroll-x
|
|
641
|
+
scroll-y
|
|
642
|
+
class="u-table2-content"
|
|
643
|
+
:style="{ height: height ? addUnit(height) : 'auto' }"
|
|
644
|
+
@scroll="onScroll"
|
|
645
|
+
>
|
|
646
|
+
<!-- 表头 -->
|
|
647
|
+
<view
|
|
648
|
+
v-if="showHeader"
|
|
649
|
+
class="u-table-header"
|
|
650
|
+
:class="{ 'u-table-sticky': fixedHeader }"
|
|
651
|
+
:style="{ minWidth: scrollWidth }"
|
|
652
|
+
>
|
|
653
|
+
<view class="u-table-row">
|
|
654
|
+
<view
|
|
655
|
+
v-for="(col, colIndex) in columns"
|
|
656
|
+
:key="col.key"
|
|
657
|
+
class="u-table-cell"
|
|
658
|
+
:class="[
|
|
659
|
+
col.headerAlign ? 'u-text-' + col.headerAlign : col.align ? 'u-text-' + col.align : '',
|
|
660
|
+
headerCellClassName ? headerCellClassName(col) : '',
|
|
661
|
+
getFixedClass(col)
|
|
662
|
+
]"
|
|
663
|
+
:style="headerColStyle(col)"
|
|
664
|
+
@click="handleHeaderClick(col)"
|
|
665
|
+
>
|
|
666
|
+
<slot name="header" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
667
|
+
<text v-if="!$slots['header']">{{ col.title }}</text>
|
|
668
|
+
<template v-if="col.sortable">
|
|
669
|
+
<slot name="headerSort" :sortStatus="getSortValue(col.key)" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
670
|
+
<view v-if="!$slots['headerSort']">
|
|
671
|
+
{{ getSortIcon(col.key) }}
|
|
672
|
+
</view>
|
|
673
|
+
</template>
|
|
674
|
+
</view>
|
|
675
|
+
</view>
|
|
676
|
+
</view>
|
|
677
|
+
<!-- 表体 -->
|
|
678
|
+
<view class="u-table-body" :style="{ minWidth: scrollWidth, maxHeight: maxHeight ? maxHeight + 'px' : 'none' }">
|
|
679
|
+
<template v-if="data && data.length > 0">
|
|
680
|
+
<table-row
|
|
681
|
+
v-for="(row, rowIndex) in sortedData"
|
|
682
|
+
:key="row[rowKey] || rowIndex"
|
|
683
|
+
:row="row"
|
|
684
|
+
:rowIndex="rowIndex"
|
|
685
|
+
:parent-row="null"
|
|
686
|
+
:columns="columns"
|
|
687
|
+
:tree-props="treeProps"
|
|
688
|
+
:row-key="rowKey"
|
|
689
|
+
:expanded-keys="expandedKeys"
|
|
690
|
+
:cell-style-inner="cellStyleInner"
|
|
691
|
+
:is-expanded="isExpanded"
|
|
692
|
+
:row-class-name="rowClassName"
|
|
693
|
+
:stripe="stripe"
|
|
694
|
+
:cell-class-name="cellClassName"
|
|
695
|
+
:get-fixed-class="getFixedClass"
|
|
696
|
+
:highlight-current-row="highlightCurrentRow"
|
|
697
|
+
:current-row="currentRow"
|
|
698
|
+
:handle-row-click="handleRowClick"
|
|
699
|
+
:toggle-expand="toggleExpand"
|
|
700
|
+
:level="1"
|
|
701
|
+
:rowHeight="rowHeight"
|
|
702
|
+
:hasTree="hasTree"
|
|
703
|
+
:selectedRows="selectedRows"
|
|
704
|
+
:expandWidth="expandWidth"
|
|
705
|
+
:computedMainCol="computedMainCol"
|
|
706
|
+
:span-method="spanMethod"
|
|
707
|
+
@toggle-select="toggleSelect"
|
|
708
|
+
@row-click="handleRowClick"
|
|
709
|
+
@toggle-expand="toggleExpand"
|
|
710
|
+
>
|
|
711
|
+
<template v-slot:cellChild="scope">
|
|
712
|
+
<slot
|
|
713
|
+
name="cell"
|
|
714
|
+
:row="scope.row"
|
|
715
|
+
:column="scope.column"
|
|
716
|
+
:prow="scope.prow"
|
|
717
|
+
:rowIndex="scope.rowIndex"
|
|
718
|
+
:columnIndex="scope.columnIndex"
|
|
719
|
+
:level="scope.level"
|
|
720
|
+
></slot>
|
|
721
|
+
</template>
|
|
722
|
+
</table-row>
|
|
723
|
+
</template>
|
|
724
|
+
<template v-else>
|
|
725
|
+
<slot name="empty"></slot>
|
|
726
|
+
<view v-if="!$slots['empty']" class="u-table-empty">{{ emptyText }}</view>
|
|
727
|
+
</template>
|
|
728
|
+
</view>
|
|
729
|
+
</scroll-view>
|
|
730
|
+
<!-- 固定列浮动视图 -->
|
|
731
|
+
<view v-if="showFixedColumnShadow" class="u-table-fixed-shadow" :style="{ height: tableHeight }">
|
|
732
|
+
<!-- 表头 -->
|
|
733
|
+
<view
|
|
734
|
+
v-if="showHeader"
|
|
735
|
+
class="u-table-header"
|
|
736
|
+
:class="{ 'u-table-sticky': fixedHeader }"
|
|
737
|
+
:style="{ minWidth: scrollWidth }"
|
|
738
|
+
>
|
|
739
|
+
<view class="u-table-row" :style="{ height: headerHeight }">
|
|
740
|
+
<view
|
|
741
|
+
v-for="(col, colIndex) in visibleFixedLeftColumns"
|
|
742
|
+
:key="col.key"
|
|
743
|
+
class="u-table-cell"
|
|
744
|
+
:style="headerColStyle(col)"
|
|
745
|
+
:class="[
|
|
746
|
+
col.align ? 'u-text-' + col.align : '',
|
|
747
|
+
headerCellClassName ? headerCellClassName(col) : '',
|
|
748
|
+
getFixedClass(col)
|
|
749
|
+
]"
|
|
750
|
+
@click="handleHeaderClick(col)"
|
|
751
|
+
>
|
|
752
|
+
<slot name="header" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
753
|
+
<text v-if="!$slots['header']">{{ col.title }}</text>
|
|
754
|
+
<template v-if="col.sortable">
|
|
755
|
+
<slot name="headerSort" :sortStatus="getSortValue(col.key)" :column="col" :columnIndex="colIndex" :level="1"></slot>
|
|
756
|
+
<view v-if="!$slots['headerSort']">
|
|
757
|
+
{{ getSortIcon(col.key) }}
|
|
758
|
+
</view>
|
|
759
|
+
</template>
|
|
760
|
+
</view>
|
|
761
|
+
</view>
|
|
762
|
+
</view>
|
|
763
|
+
<!-- 表体 -->
|
|
764
|
+
<view class="u-table-body" :style="{ minWidth: scrollWidth, maxHeight: maxHeight ? maxHeight + 'px' : 'none' }">
|
|
765
|
+
<template v-if="data && data.length > 0">
|
|
766
|
+
<template v-for="(row, rowIndex) in sortedData" :key="row[rowKey] || rowIndex">
|
|
767
|
+
<!-- 子级渲染 (递归组件) -->
|
|
768
|
+
<table-row
|
|
769
|
+
:row="row"
|
|
770
|
+
:rowIndex="rowIndex"
|
|
771
|
+
:parent-row="null"
|
|
772
|
+
:columns="visibleFixedLeftColumns"
|
|
773
|
+
:tree-props="treeProps"
|
|
774
|
+
:row-key="rowKey"
|
|
775
|
+
:expanded-keys="expandedKeys"
|
|
776
|
+
:cell-style-inner="cellStyleInner"
|
|
777
|
+
:is-expanded="isExpanded"
|
|
778
|
+
:row-class-name="rowClassName"
|
|
779
|
+
:stripe="stripe"
|
|
780
|
+
:cell-class-name="cellClassName"
|
|
781
|
+
:get-fixed-class="getFixedClass"
|
|
782
|
+
:highlight-current-row="highlightCurrentRow"
|
|
783
|
+
:current-row="currentRow"
|
|
784
|
+
:handle-row-click="handleRowClick"
|
|
785
|
+
:toggle-expand="toggleExpand"
|
|
786
|
+
:level="1"
|
|
787
|
+
:rowHeight="rowHeight"
|
|
788
|
+
:hasTree="hasTree"
|
|
789
|
+
:selectedRows="selectedRows"
|
|
790
|
+
:expandWidth="expandWidth"
|
|
791
|
+
:computedMainCol="computedMainCol"
|
|
792
|
+
:span-method="spanMethod"
|
|
793
|
+
@toggle-select="toggleSelect"
|
|
794
|
+
@row-click="handleRowClick"
|
|
795
|
+
@toggle-expand="toggleExpand"
|
|
796
|
+
>
|
|
797
|
+
<template v-slot:cellChild="scope">
|
|
798
|
+
<slot
|
|
799
|
+
name="cell"
|
|
800
|
+
:row="scope.row"
|
|
801
|
+
:column="scope.column"
|
|
802
|
+
:prow="scope.prow"
|
|
803
|
+
:rowIndex="scope.rowIndex"
|
|
804
|
+
:columnIndex="scope.columnIndex"
|
|
805
|
+
:level="scope.level"
|
|
806
|
+
></slot>
|
|
807
|
+
</template>
|
|
808
|
+
</table-row>
|
|
809
|
+
</template>
|
|
810
|
+
</template>
|
|
811
|
+
</view>
|
|
812
|
+
</view>
|
|
813
|
+
</view>
|
|
814
|
+
</template>
|
|
815
|
+
<script>
|
|
816
|
+
import { addUnit, sleep } from '../../libs/function/index';
|
|
817
|
+
import tableRow from './tableRow.vue'; // 引入递归组件
|
|
818
|
+
export default {
|
|
819
|
+
name: 'u-table2',
|
|
820
|
+
components: {
|
|
821
|
+
tableRow // 注册递归组件
|
|
822
|
+
},
|
|
823
|
+
props: {
|
|
824
|
+
data: {
|
|
825
|
+
type: Array,
|
|
826
|
+
required: true,
|
|
827
|
+
default: () => {
|
|
828
|
+
return [];
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
columns: {
|
|
832
|
+
type: Array,
|
|
833
|
+
required: true,
|
|
834
|
+
default: () => {
|
|
835
|
+
return [];
|
|
836
|
+
},
|
|
837
|
+
validator: (cols) => cols.every((col) => ['default', 'selection', 'expand'].includes(col.type || 'default'))
|
|
838
|
+
},
|
|
839
|
+
stripe: {
|
|
840
|
+
type: Boolean,
|
|
841
|
+
default: false
|
|
842
|
+
},
|
|
843
|
+
border: {
|
|
844
|
+
type: Boolean,
|
|
845
|
+
default: false
|
|
846
|
+
},
|
|
847
|
+
height: {
|
|
848
|
+
type: [String, Number],
|
|
849
|
+
default: null
|
|
850
|
+
},
|
|
851
|
+
maxHeight: {
|
|
852
|
+
type: [String, Number],
|
|
853
|
+
default: null
|
|
854
|
+
},
|
|
855
|
+
showHeader: {
|
|
856
|
+
type: Boolean,
|
|
857
|
+
default: true
|
|
858
|
+
},
|
|
859
|
+
highlightCurrentRow: {
|
|
860
|
+
type: Boolean,
|
|
861
|
+
default: false
|
|
862
|
+
},
|
|
863
|
+
rowKey: {
|
|
864
|
+
type: String,
|
|
865
|
+
default: 'id'
|
|
866
|
+
},
|
|
867
|
+
currentRowKey: {
|
|
868
|
+
type: [String, Number],
|
|
869
|
+
default: null
|
|
870
|
+
},
|
|
871
|
+
rowStyle: {
|
|
872
|
+
type: Object,
|
|
873
|
+
default: () => ({})
|
|
874
|
+
},
|
|
875
|
+
cellClassName: {
|
|
876
|
+
type: Function,
|
|
877
|
+
default: null
|
|
878
|
+
},
|
|
879
|
+
cellStyle: {
|
|
880
|
+
type: Function,
|
|
881
|
+
default: null
|
|
882
|
+
},
|
|
883
|
+
headerCellClassName: {
|
|
884
|
+
type: Function,
|
|
885
|
+
default: null
|
|
886
|
+
},
|
|
887
|
+
rowClassName: {
|
|
888
|
+
type: Function,
|
|
889
|
+
default: null
|
|
890
|
+
},
|
|
891
|
+
context: {
|
|
892
|
+
type: Object,
|
|
893
|
+
default: null
|
|
894
|
+
},
|
|
895
|
+
showOverflowTooltip: {
|
|
896
|
+
type: Boolean,
|
|
897
|
+
default: false
|
|
898
|
+
},
|
|
899
|
+
lazy: {
|
|
900
|
+
type: Boolean,
|
|
901
|
+
default: false
|
|
902
|
+
},
|
|
903
|
+
load: {
|
|
904
|
+
type: Function,
|
|
905
|
+
default: null
|
|
906
|
+
},
|
|
907
|
+
treeProps: {
|
|
908
|
+
type: Object,
|
|
909
|
+
default: () => ({
|
|
910
|
+
children: 'children',
|
|
911
|
+
hasChildren: 'hasChildren'
|
|
912
|
+
})
|
|
913
|
+
},
|
|
914
|
+
defaultExpandAll: {
|
|
915
|
+
type: Boolean,
|
|
916
|
+
default: false
|
|
917
|
+
},
|
|
918
|
+
expandRowKeys: {
|
|
919
|
+
type: Array,
|
|
920
|
+
default: () => []
|
|
921
|
+
},
|
|
922
|
+
sortOrders: {
|
|
923
|
+
type: Array,
|
|
924
|
+
default: () => ['ascending', 'descending']
|
|
925
|
+
},
|
|
926
|
+
sortable: {
|
|
927
|
+
type: [Boolean, String],
|
|
928
|
+
default: false
|
|
929
|
+
},
|
|
930
|
+
multiSort: {
|
|
931
|
+
type: Boolean,
|
|
932
|
+
default: false
|
|
933
|
+
},
|
|
934
|
+
sortBy: {
|
|
935
|
+
type: String,
|
|
936
|
+
default: null
|
|
937
|
+
},
|
|
938
|
+
sortMethod: {
|
|
939
|
+
type: Function,
|
|
940
|
+
default: null
|
|
941
|
+
},
|
|
942
|
+
filters: {
|
|
943
|
+
type: Object,
|
|
944
|
+
default: () => ({})
|
|
945
|
+
},
|
|
946
|
+
fixedHeader: {
|
|
947
|
+
type: Boolean,
|
|
948
|
+
default: true
|
|
949
|
+
},
|
|
950
|
+
emptyText: {
|
|
951
|
+
type: String,
|
|
952
|
+
default: '暂无数据'
|
|
953
|
+
},
|
|
954
|
+
// 添加mainCol属性,用于指定树形结构展开控制图标所在的列
|
|
955
|
+
mainCol: {
|
|
956
|
+
type: String,
|
|
957
|
+
default: ''
|
|
958
|
+
},
|
|
959
|
+
expandWidth: {
|
|
960
|
+
type: String,
|
|
961
|
+
default: '25px'
|
|
962
|
+
},
|
|
963
|
+
rowHeight: {
|
|
964
|
+
type: String,
|
|
965
|
+
default: '36px'
|
|
966
|
+
},
|
|
967
|
+
// 添加spanMethod属性,用于合并单元格
|
|
968
|
+
spanMethod: {
|
|
969
|
+
type: Function,
|
|
970
|
+
default: null
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
emits: [
|
|
974
|
+
'select',
|
|
975
|
+
'select-all',
|
|
976
|
+
'selection-change',
|
|
977
|
+
'cell-click',
|
|
978
|
+
'row-click',
|
|
979
|
+
'row-dblclick',
|
|
980
|
+
'header-click',
|
|
981
|
+
'sort-change',
|
|
982
|
+
'filter-change',
|
|
983
|
+
'current-change',
|
|
984
|
+
'expand-change'
|
|
985
|
+
],
|
|
986
|
+
data() {
|
|
987
|
+
return {
|
|
988
|
+
scrollWidth: 'auto',
|
|
989
|
+
// 将setup中的ref转换为data属性
|
|
990
|
+
expandedKeys: [...this.expandRowKeys],
|
|
991
|
+
selectedRows: [],
|
|
992
|
+
sortConditions: [],
|
|
993
|
+
currentRow: null,
|
|
994
|
+
scrollLeft: 0, // 新增滚动位置数据
|
|
995
|
+
showFixedColumnShadow: false, // 是否显示固定列阴影
|
|
996
|
+
fixedLeftColumns: [], // 左侧固定列
|
|
997
|
+
tableHeight: 'auto', // 表格高度
|
|
998
|
+
headerHeight: 'auto', // 新增表头高度属性
|
|
999
|
+
hasTree: false // 新增属性,用于判断是否存在树形结构
|
|
1000
|
+
};
|
|
1001
|
+
},
|
|
1002
|
+
mounted() {
|
|
1003
|
+
this.getComponentWidth();
|
|
1004
|
+
// 处理currentRowKey初始化
|
|
1005
|
+
if (this.currentRowKey !== null) {
|
|
1006
|
+
const found = this.data.find((item) => item[this.rowKey] === this.currentRowKey);
|
|
1007
|
+
if (found) {
|
|
1008
|
+
this.currentRow = found;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
// 获取固定列
|
|
1012
|
+
this.fixedLeftColumns = this.columns.filter((col) => col.fixed === 'left');
|
|
1013
|
+
},
|
|
1014
|
+
computed: {
|
|
1015
|
+
// 将setup中的computed转换为computed属性
|
|
1016
|
+
filteredData() {
|
|
1017
|
+
return this.data.filter((row) => {
|
|
1018
|
+
return Object.keys(this.filters).every((key) => {
|
|
1019
|
+
const filter = this.filters[key];
|
|
1020
|
+
if (!filter) return true;
|
|
1021
|
+
return row[key]?.toString().includes(filter.toString());
|
|
1022
|
+
});
|
|
1023
|
+
});
|
|
1024
|
+
},
|
|
1025
|
+
sortedData() {
|
|
1026
|
+
if (!this.sortConditions.length) return this.filteredData;
|
|
1027
|
+
const data = [...this.filteredData];
|
|
1028
|
+
return data.sort((a, b) => {
|
|
1029
|
+
for (const condition of this.sortConditions) {
|
|
1030
|
+
const { field, order } = condition;
|
|
1031
|
+
let valA = a[field];
|
|
1032
|
+
let valB = b[field];
|
|
1033
|
+
if (this.sortMethod) {
|
|
1034
|
+
const result = this.sortMethod(a, b, field);
|
|
1035
|
+
if (result !== 0) return result * (order === 'ascending' ? 1 : -1);
|
|
1036
|
+
}
|
|
1037
|
+
if (valA < valB) return order === 'ascending' ? -1 : 1;
|
|
1038
|
+
if (valA > valB) return order === 'ascending' ? 1 : -1;
|
|
1039
|
+
}
|
|
1040
|
+
return 0;
|
|
1041
|
+
});
|
|
1042
|
+
},
|
|
1043
|
+
// 计算当前应该显示的固定左侧列
|
|
1044
|
+
visibleFixedLeftColumns() {
|
|
1045
|
+
if (this.scrollLeft <= 0) {
|
|
1046
|
+
return [];
|
|
1047
|
+
}
|
|
1048
|
+
let totalWidth = 0;
|
|
1049
|
+
let fixedWidth = 0;
|
|
1050
|
+
const visibleColumns = [];
|
|
1051
|
+
// 遍历所有列,不仅仅是固定列
|
|
1052
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
1053
|
+
const col = this.columns[i];
|
|
1054
|
+
const colWidth = col.width ? parseInt(col.width) : 100; // 默认宽度100px
|
|
1055
|
+
// 如果是固定列且滚动位置足够显示该列
|
|
1056
|
+
if (col.fixed === 'left' && this.scrollLeft > totalWidth - fixedWidth) {
|
|
1057
|
+
visibleColumns.push(col);
|
|
1058
|
+
fixedWidth += colWidth;
|
|
1059
|
+
}
|
|
1060
|
+
totalWidth += colWidth;
|
|
1061
|
+
}
|
|
1062
|
+
return visibleColumns;
|
|
1063
|
+
},
|
|
1064
|
+
// 获取mainCol的值,如果未设置则默认为第一列的key
|
|
1065
|
+
computedMainCol() {
|
|
1066
|
+
if (this.mainCol) {
|
|
1067
|
+
return this.mainCol;
|
|
1068
|
+
}
|
|
1069
|
+
// 修改为排除有type值的列
|
|
1070
|
+
const validColumns = this.columns.filter((col) => !col.type);
|
|
1071
|
+
let mainCol = validColumns && validColumns.length > 0 ? validColumns[0].key : '';
|
|
1072
|
+
// console.log('mainCol', mainCol)
|
|
1073
|
+
return mainCol;
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
watch: {
|
|
1077
|
+
// 将setup中的watch转换为watch属性
|
|
1078
|
+
expandRowKeys: {
|
|
1079
|
+
handler(newVal) {
|
|
1080
|
+
this.expandedKeys = [...newVal];
|
|
1081
|
+
},
|
|
1082
|
+
immediate: true
|
|
1083
|
+
},
|
|
1084
|
+
currentRowKey: {
|
|
1085
|
+
handler(newVal) {
|
|
1086
|
+
const found = this.data.find((item) => item[this.rowKey] === newVal);
|
|
1087
|
+
if (found) {
|
|
1088
|
+
this.currentRow = found;
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
immediate: true
|
|
1092
|
+
},
|
|
1093
|
+
columns: {
|
|
1094
|
+
handler() {
|
|
1095
|
+
// this.fixedLeftColumns = this.columns.filter(col => col.fixed === 'left');
|
|
1096
|
+
},
|
|
1097
|
+
deep: true,
|
|
1098
|
+
immediate: false
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
methods: {
|
|
1102
|
+
addUnit,
|
|
1103
|
+
onScroll(e) {
|
|
1104
|
+
this.scrollLeft = e.detail.scrollLeft;
|
|
1105
|
+
// 获取所有左侧固定列
|
|
1106
|
+
this.fixedLeftColumns = this.columns.filter((col) => col.fixed === 'left');
|
|
1107
|
+
// 计算是否需要显示固定列阴影
|
|
1108
|
+
if (this.fixedLeftColumns.length > 0) {
|
|
1109
|
+
this.showFixedColumnShadow = this.scrollLeft > 0;
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
getFixedShadowStyle(col, index) {
|
|
1113
|
+
let style = {
|
|
1114
|
+
width: col.width ? addUnit(col.width) : 'auto'
|
|
1115
|
+
};
|
|
1116
|
+
if (col?.style) {
|
|
1117
|
+
style = { ...style, ...col?.style };
|
|
1118
|
+
}
|
|
1119
|
+
return style;
|
|
1120
|
+
},
|
|
1121
|
+
getFixedClass(col) {
|
|
1122
|
+
return ''; // 不再使用原来的固定列样式类
|
|
1123
|
+
},
|
|
1124
|
+
headerColStyle(col) {
|
|
1125
|
+
let style = {
|
|
1126
|
+
width: col.width ? addUnit(col.width) : 'auto',
|
|
1127
|
+
flex: col.width ? 'none' : 1
|
|
1128
|
+
};
|
|
1129
|
+
if (col?.style) {
|
|
1130
|
+
style = { ...style, ...col?.style };
|
|
1131
|
+
}
|
|
1132
|
+
return style;
|
|
1133
|
+
},
|
|
1134
|
+
setCellStyle(e) {
|
|
1135
|
+
this.cellStyle = e;
|
|
1136
|
+
},
|
|
1137
|
+
cellStyleInner(scope) {
|
|
1138
|
+
let style = {
|
|
1139
|
+
width: scope.column?.width ? addUnit(scope.column.width) : 'auto',
|
|
1140
|
+
flex: scope.column?.width ? 'none' : 1
|
|
1141
|
+
};
|
|
1142
|
+
// 只有展开列设置padding
|
|
1143
|
+
if (scope.column.key == this.computedMainCol) {
|
|
1144
|
+
style.paddingLeft = 16 * (scope.level - 1) + 2 + 'px';
|
|
1145
|
+
}
|
|
1146
|
+
if (this.cellStyle != null) {
|
|
1147
|
+
let styleCalc = this.cellStyle(scope);
|
|
1148
|
+
if (styleCalc != null) {
|
|
1149
|
+
style = { ...style, ...styleCalc };
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return style;
|
|
1153
|
+
},
|
|
1154
|
+
// 获取组件的宽度
|
|
1155
|
+
async getComponentWidth() {
|
|
1156
|
+
// 延时一定时间,以获取dom尺寸
|
|
1157
|
+
await sleep(30);
|
|
1158
|
+
this.$uGetRect('.u-table-row').then((size) => {
|
|
1159
|
+
this.scrollWidth = size.width + 'px';
|
|
1160
|
+
});
|
|
1161
|
+
// 获取表头高度并设置
|
|
1162
|
+
this.$uGetRect('.u-table-header').then((size) => {
|
|
1163
|
+
if (size.height) {
|
|
1164
|
+
this.headerHeight = size.height + 'px';
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
// 遍历数据列表第一层判断是否存在树形结构
|
|
1168
|
+
this.hasTree = this.sortedData.some((item) => {
|
|
1169
|
+
return item[this.treeProps.children] && item[this.treeProps.children].length > 0;
|
|
1170
|
+
});
|
|
1171
|
+
},
|
|
1172
|
+
// 将setup中的函数转换为methods
|
|
1173
|
+
handleRowClick(row) {
|
|
1174
|
+
if (this.highlightCurrentRow) {
|
|
1175
|
+
const oldRow = this.currentRow;
|
|
1176
|
+
this.currentRow = row;
|
|
1177
|
+
this.$emit('current-change', row, oldRow);
|
|
1178
|
+
}
|
|
1179
|
+
this.$emit('row-click', row);
|
|
1180
|
+
},
|
|
1181
|
+
handleHeaderClick(column) {
|
|
1182
|
+
if (!column.sortable) return;
|
|
1183
|
+
const index = this.sortConditions.findIndex((c) => c.field === column.key);
|
|
1184
|
+
let newOrder = 'ascending';
|
|
1185
|
+
if (index >= 0) {
|
|
1186
|
+
if (this.sortConditions[index].order === 'ascending') {
|
|
1187
|
+
newOrder = 'descending';
|
|
1188
|
+
} else {
|
|
1189
|
+
this.sortConditions.splice(index, 1);
|
|
1190
|
+
this.$emit('sort-change', this.sortConditions);
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (!this.multiSort) {
|
|
1195
|
+
this.sortConditions = [{ field: column.key, order: newOrder }];
|
|
1196
|
+
} else {
|
|
1197
|
+
if (index >= 0) {
|
|
1198
|
+
this.sortConditions[index].order = newOrder;
|
|
1199
|
+
} else {
|
|
1200
|
+
this.sortConditions.push({ field: column.key, order: newOrder });
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
this.$emit('sort-change', this.sortConditions);
|
|
1204
|
+
},
|
|
1205
|
+
getSortIcon(field) {
|
|
1206
|
+
const cond = this.sortConditions.find((c) => c.field === field);
|
|
1207
|
+
if (!cond) return '';
|
|
1208
|
+
return cond.order === 'ascending' ? '↑' : '↓';
|
|
1209
|
+
},
|
|
1210
|
+
getSortValue(field) {
|
|
1211
|
+
const cond = this.sortConditions.find((c) => c.field === field);
|
|
1212
|
+
if (!cond) return '';
|
|
1213
|
+
return cond.order === 'ascending';
|
|
1214
|
+
},
|
|
1215
|
+
toggleSelect(row) {
|
|
1216
|
+
const index = this.selectedRows.findIndex((r) => r[this.rowKey] === row[this.rowKey]);
|
|
1217
|
+
if (index >= 0) {
|
|
1218
|
+
// 取消选中当前行及其所有子节点
|
|
1219
|
+
this.selectedRows.splice(index, 1);
|
|
1220
|
+
// 递归取消所有子节点
|
|
1221
|
+
this.unselectChildren(row);
|
|
1222
|
+
} else {
|
|
1223
|
+
// 选中当前行及其所有子节点
|
|
1224
|
+
this.selectedRows.push(row);
|
|
1225
|
+
// 递归选中所有子节点
|
|
1226
|
+
this.selectChildren(row);
|
|
1227
|
+
}
|
|
1228
|
+
console.log(this.selectedRows);
|
|
1229
|
+
this.$emit('selection-change', this.selectedRows);
|
|
1230
|
+
this.$emit('select', row);
|
|
1231
|
+
},
|
|
1232
|
+
toggleExpand(row) {
|
|
1233
|
+
// console.log(row)
|
|
1234
|
+
const key = row[this.rowKey];
|
|
1235
|
+
const index = this.expandedKeys.indexOf(key);
|
|
1236
|
+
if (index === -1) {
|
|
1237
|
+
this.expandedKeys.push(key);
|
|
1238
|
+
} else {
|
|
1239
|
+
this.expandedKeys.splice(index, 1);
|
|
1240
|
+
}
|
|
1241
|
+
this.$emit('expand-change', this.expandedKeys);
|
|
1242
|
+
},
|
|
1243
|
+
isExpanded(row) {
|
|
1244
|
+
if (!row) {
|
|
1245
|
+
return false;
|
|
1246
|
+
}
|
|
1247
|
+
return this.expandedKeys.includes(row[this.rowKey]);
|
|
1248
|
+
},
|
|
1249
|
+
// 新增方法:递归选中所有子节点
|
|
1250
|
+
selectChildren(row) {
|
|
1251
|
+
const children = row[this.treeProps.children];
|
|
1252
|
+
if (children && children.length > 0) {
|
|
1253
|
+
children.forEach((child) => {
|
|
1254
|
+
// 检查是否已选中,避免重复添加
|
|
1255
|
+
const childIndex = this.selectedRows.findIndex((r) => r[this.rowKey] === child[this.rowKey]);
|
|
1256
|
+
if (childIndex === -1) {
|
|
1257
|
+
this.selectedRows.push(child);
|
|
1258
|
+
}
|
|
1259
|
+
// 递归处理子节点的子节点
|
|
1260
|
+
this.selectChildren(child);
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
// 新增方法:递归取消选中所有子节点
|
|
1265
|
+
unselectChildren(row) {
|
|
1266
|
+
const children = row[this.treeProps.children];
|
|
1267
|
+
if (children && children.length > 0) {
|
|
1268
|
+
children.forEach((child) => {
|
|
1269
|
+
const childIndex = this.selectedRows.findIndex((r) => r[this.rowKey] === child[this.rowKey]);
|
|
1270
|
+
if (childIndex >= 0) {
|
|
1271
|
+
this.selectedRows.splice(childIndex, 1);
|
|
1272
|
+
}
|
|
1273
|
+
// 递归处理子节点的子节点
|
|
1274
|
+
this.unselectChildren(child);
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
</script>
|
|
1281
|
+
<style scoped>
|
|
1282
|
+
.u-table2 {
|
|
1283
|
+
width: auto;
|
|
1284
|
+
overflow: auto;
|
|
1285
|
+
white-space: nowrap;
|
|
1286
|
+
position: relative;
|
|
1287
|
+
|
|
1288
|
+
.u-table-header {
|
|
1289
|
+
min-width: 100% !important;
|
|
1290
|
+
width: fit-content;
|
|
1291
|
+
background-color: #f5f7fa;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.u-table-body {
|
|
1295
|
+
min-width: 100% !important;
|
|
1296
|
+
width: fit-content;
|
|
1297
|
+
position: relative;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.u-table-sticky {
|
|
1301
|
+
position: sticky;
|
|
1302
|
+
top: 0;
|
|
1303
|
+
z-index: 10;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.u-table-row {
|
|
1307
|
+
display: flex;
|
|
1308
|
+
flex-direction: row;
|
|
1309
|
+
overflow: hidden;
|
|
1310
|
+
position: relative;
|
|
1311
|
+
/* // min-height: 40px; */
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
/* // 添加border样式支持 */
|
|
1315
|
+
&.u-table-border {
|
|
1316
|
+
border-top: 1px solid #ebeef5;
|
|
1317
|
+
border-left: 1px solid #ebeef5;
|
|
1318
|
+
border-right: 1px solid #ebeef5;
|
|
1319
|
+
.u-table-cell {
|
|
1320
|
+
border-right: 1px solid #ebeef5;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.u-table-cell:last-child {
|
|
1324
|
+
border-right: none;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.u-table-cell {
|
|
1329
|
+
flex: 1;
|
|
1330
|
+
display: flex;
|
|
1331
|
+
flex-direction: row;
|
|
1332
|
+
align-items: center;
|
|
1333
|
+
padding: 10px 1px;
|
|
1334
|
+
font-size: 14px;
|
|
1335
|
+
white-space: nowrap;
|
|
1336
|
+
overflow: hidden;
|
|
1337
|
+
text-overflow: ellipsis;
|
|
1338
|
+
line-height: 1.1;
|
|
1339
|
+
border-bottom: 1px solid #ebeef5;
|
|
1340
|
+
&.u-text-left {
|
|
1341
|
+
justify-content: flex-start;
|
|
1342
|
+
text-align: left;
|
|
1343
|
+
}
|
|
1344
|
+
&.u-text-center {
|
|
1345
|
+
justify-content: center;
|
|
1346
|
+
text-align: center;
|
|
1347
|
+
}
|
|
1348
|
+
&.u-text-right {
|
|
1349
|
+
justify-content: flex-end;
|
|
1350
|
+
text-align: right;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.u-table-row-zebra {
|
|
1355
|
+
background-color: #fafafa;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.u-table-row-highlight {
|
|
1359
|
+
background-color: #f5f7fa;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.u-table-empty {
|
|
1363
|
+
text-align: center;
|
|
1364
|
+
padding: 20px;
|
|
1365
|
+
color: #999;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/* // 固定列浮动视图 */
|
|
1370
|
+
.u-table-fixed-shadow {
|
|
1371
|
+
position: absolute;
|
|
1372
|
+
top: 0;
|
|
1373
|
+
left: 0;
|
|
1374
|
+
width: auto;
|
|
1375
|
+
z-index: 20;
|
|
1376
|
+
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15);
|
|
1377
|
+
overflow: hidden;
|
|
1378
|
+
background-color: #ffffff;
|
|
1379
|
+
}
|
|
1380
|
+
/*
|
|
1381
|
+
// .u-table-fixed-row {
|
|
1382
|
+
// display: flex;
|
|
1383
|
+
// flex-direction: row;
|
|
1384
|
+
// align-items: center;
|
|
1385
|
+
// border-bottom: 1rpx solid #ebeef5;
|
|
1386
|
+
// position: relative;
|
|
1387
|
+
// } */
|
|
1388
|
+
|
|
1389
|
+
/* // 为固定列也添加border样式支持 */
|
|
1390
|
+
.u-table-fixed-shadow .u-table-border {
|
|
1391
|
+
.u-table-cell {
|
|
1392
|
+
border-right: 1rpx solid #ebeef5;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.u-table-cell:last-child {
|
|
1396
|
+
border-right: none;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
</style>
|