@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.
Files changed (1020) hide show
  1. package/build/parse-create.js +17 -5
  2. package/build/parse-pages-pkg.js +14 -5
  3. package/js-sdk/Sansnn-uQRCode/uqrcode.js +150 -75
  4. package/js-sdk/clipboard.min.js +9 -0
  5. package/js-sdk/gprint/encoding-indexes.js +47 -0
  6. package/js-sdk/gprint/encoding.js +3312 -0
  7. package/js-sdk/gprint/esc.js +548 -0
  8. package/js-sdk/gprint/tsc.js +222 -0
  9. package/js-sdk/ican-H5Api/ican-H5Api.js +68 -666
  10. package/other/api-set-tabbar.nvue +0 -3
  11. package/other/lime-painter/changelog.md +225 -0
  12. package/other/lime-painter/components/common/relation.js +150 -0
  13. package/other/lime-painter/components/l-painter/l-painter.vue +482 -0
  14. package/other/lime-painter/components/l-painter/nvue.js +203 -0
  15. package/other/lime-painter/components/l-painter/painter.js +1 -0
  16. package/other/lime-painter/components/l-painter/props.js +56 -0
  17. package/other/lime-painter/components/l-painter/single.js +1 -0
  18. package/other/lime-painter/components/l-painter/utils.js +382 -0
  19. package/other/lime-painter/components/l-painter-image/l-painter-image.vue +23 -0
  20. package/other/lime-painter/components/l-painter-qrcode/l-painter-qrcode.vue +22 -0
  21. package/other/lime-painter/components/l-painter-text/l-painter-text.vue +32 -0
  22. package/other/lime-painter/components/l-painter-view/l-painter-view.vue +28 -0
  23. package/other/lime-painter/components/lime-painter/lime-painter.vue +259 -0
  24. package/other/lime-painter/hybrid/html/index.html +117 -0
  25. package/other/lime-painter/hybrid/html/painter.js +1 -0
  26. package/other/lime-painter/hybrid/html/uni.webview.1.5.3.js +1 -0
  27. package/other/lime-painter/package.json +93 -0
  28. package/other/lime-painter/parser.js +388 -0
  29. package/other/lime-painter/readme.md +961 -0
  30. package/other/lime-painter2/README2.md +576 -0
  31. package/other/lime-painter2/changelog.md +225 -0
  32. package/other/lime-painter2/components/lime-painter/canvas.js +57 -0
  33. package/other/lime-painter2/components/lime-painter/draw.js +654 -0
  34. package/other/lime-painter2/components/lime-painter/draw2.js +709 -0
  35. package/other/lime-painter2/components/lime-painter/gradient.js +119 -0
  36. package/other/lime-painter2/components/lime-painter/index.vue +344 -0
  37. package/other/lime-painter2/components/lime-painter/index2.vue +197 -0
  38. package/other/lime-painter2/components/lime-painter/layout.js +374 -0
  39. package/other/lime-painter2/components/lime-painter/utils.js +420 -0
  40. package/other/lime-painter2/package.json +93 -0
  41. package/other/lime-painter2/readme.md +758 -0
  42. package/other/lime-painter2/test.md +45 -0
  43. package/other/mpvue-echarts/src/echarts.vue +116 -103
  44. package/other/mpvue-echarts/src/style.css +0 -6
  45. package/other/product.vue +45 -1
  46. package/other/qiun-data-charts/qiun-data-charts.vue +1618 -0
  47. package/other/u-parse-2019/components/wxParseAudio.vue +29 -0
  48. package/other/u-parse-2019/components/wxParseImg.vue +87 -0
  49. package/other/u-parse-2019/components/wxParseTemplate0.vue +105 -0
  50. package/other/u-parse-2019/components/wxParseTemplate1.vue +96 -0
  51. package/other/u-parse-2019/components/wxParseTemplate10.vue +95 -0
  52. package/other/u-parse-2019/components/wxParseTemplate11.vue +84 -0
  53. package/other/u-parse-2019/components/wxParseTemplate2.vue +95 -0
  54. package/other/u-parse-2019/components/wxParseTemplate3.vue +95 -0
  55. package/other/u-parse-2019/components/wxParseTemplate4.vue +95 -0
  56. package/other/u-parse-2019/components/wxParseTemplate5.vue +95 -0
  57. package/other/u-parse-2019/components/wxParseTemplate6.vue +95 -0
  58. package/other/u-parse-2019/components/wxParseTemplate7.vue +95 -0
  59. package/other/u-parse-2019/components/wxParseTemplate8.vue +95 -0
  60. package/other/u-parse-2019/components/wxParseTemplate9.vue +95 -0
  61. package/other/u-parse-2019/components/wxParseVideo.vue +15 -0
  62. package/other/u-parse-2019/libs/html2json.js +258 -0
  63. package/other/u-parse-2019/libs/htmlparser.js +163 -0
  64. package/other/u-parse-2019/libs/wxDiscode.js +195 -0
  65. package/other/u-parse-2019/readme.md +99 -0
  66. package/other/u-parse-2019/u-parse.css +240 -0
  67. package/other/u-parse-2019/u-parse.vue +114 -0
  68. package/other/u-parse2026/components/wxParseAudio.vue +29 -0
  69. package/other/u-parse2026/components/wxParseImg.vue +90 -0
  70. package/other/u-parse2026/components/wxParseTable.vue +51 -0
  71. package/other/u-parse2026/components/wxParseTemplate0.vue +93 -0
  72. package/other/u-parse2026/components/wxParseTemplate1.vue +92 -0
  73. package/other/u-parse2026/components/wxParseTemplate10.vue +82 -0
  74. package/other/u-parse2026/components/wxParseTemplate11.vue +79 -0
  75. package/other/u-parse2026/components/wxParseTemplate2.vue +92 -0
  76. package/other/u-parse2026/components/wxParseTemplate3.vue +92 -0
  77. package/other/u-parse2026/components/wxParseTemplate4.vue +92 -0
  78. package/other/u-parse2026/components/wxParseTemplate5.vue +92 -0
  79. package/other/u-parse2026/components/wxParseTemplate6.vue +92 -0
  80. package/other/u-parse2026/components/wxParseTemplate7.vue +92 -0
  81. package/other/u-parse2026/components/wxParseTemplate8.vue +92 -0
  82. package/other/u-parse2026/components/wxParseTemplate9.vue +82 -0
  83. package/other/u-parse2026/components/wxParseVideo.vue +15 -0
  84. package/other/u-parse2026/libs/html2json.js +258 -0
  85. package/other/u-parse2026/libs/htmlparser.js +163 -0
  86. package/other/u-parse2026/libs/wxDiscode.js +195 -0
  87. package/other/u-parse2026/readme.md +99 -0
  88. package/other/u-parse2026/u-parse.css +283 -0
  89. package/other/u-parse2026/u-parse.vue +114 -0
  90. package/other/uParse/components/wxParseVideo.vue +2 -1
  91. package/other/xt-parse/changelog.md +41 -0
  92. package/other/xt-parse/node/node.vue +752 -0
  93. package/other/xt-parse/package.json +129 -0
  94. package/other/xt-parse/parser.js +1461 -0
  95. package/other/xt-parse/props.js +49 -0
  96. package/other/xt-parse/readme.md +145 -0
  97. package/other/xt-parse/static/app-plus/u-parse/js/handler.js +1 -0
  98. package/other/xt-parse/static/app-plus/u-parse/js/handler2.js +224 -0
  99. package/other/xt-parse/static/app-plus/u-parse/js/uni.webview.min.js +1 -0
  100. package/other/xt-parse/static/app-plus/u-parse/js/uni.webview.min2.js +186 -0
  101. package/other/xt-parse/static/app-plus/u-parse/local.html +37 -0
  102. package/other/xt-parse/u-parse.vue +510 -0
  103. package/other/z-paging/changelog.md +52 -0
  104. package/other/z-paging/components/z-paging/components/z-paging-load-more.vue +182 -0
  105. package/other/z-paging/components/z-paging/components/z-paging-refresh.vue +214 -0
  106. package/other/z-paging/components/z-paging/config/index.js +3 -0
  107. package/other/z-paging/components/z-paging/css/z-paging-main.css +241 -0
  108. package/other/z-paging/components/z-paging/css/z-paging-static.css +50 -0
  109. package/other/z-paging/components/z-paging/i18n/en.json +23 -0
  110. package/other/z-paging/components/z-paging/i18n/index.js +8 -0
  111. package/other/z-paging/components/z-paging/i18n/zh-Hans.json +23 -0
  112. package/other/z-paging/components/z-paging/i18n/zh-Hant.json +23 -0
  113. package/other/z-paging/components/z-paging/js/hooks/useZPaging.js +25 -0
  114. package/other/z-paging/components/z-paging/js/hooks/useZPagingComp.js +25 -0
  115. package/other/z-paging/components/z-paging/js/modules/back-to-top.js +125 -0
  116. package/other/z-paging/components/z-paging/js/modules/chat-record-mode.js +149 -0
  117. package/other/z-paging/components/z-paging/js/modules/common-layout.js +152 -0
  118. package/other/z-paging/components/z-paging/js/modules/data-handle.js +736 -0
  119. package/other/z-paging/components/z-paging/js/modules/empty.js +144 -0
  120. package/other/z-paging/components/z-paging/js/modules/i18n.js +113 -0
  121. package/other/z-paging/components/z-paging/js/modules/load-more.js +374 -0
  122. package/other/z-paging/components/z-paging/js/modules/loading.js +95 -0
  123. package/other/z-paging/components/z-paging/js/modules/nvue.js +268 -0
  124. package/other/z-paging/components/z-paging/js/modules/refresher.js +831 -0
  125. package/other/z-paging/components/z-paging/js/modules/scroller.js +550 -0
  126. package/other/z-paging/components/z-paging/js/modules/virtual-list.js +555 -0
  127. package/other/z-paging/components/z-paging/js/z-paging-constant.js +19 -0
  128. package/other/z-paging/components/z-paging/js/z-paging-enum.js +45 -0
  129. package/other/z-paging/components/z-paging/js/z-paging-interceptor.js +97 -0
  130. package/other/z-paging/components/z-paging/js/z-paging-main.js +515 -0
  131. package/other/z-paging/components/z-paging/js/z-paging-mixin.js +22 -0
  132. package/other/z-paging/components/z-paging/js/z-paging-static.js +13 -0
  133. package/other/z-paging/components/z-paging/js/z-paging-utils.js +302 -0
  134. package/other/z-paging/components/z-paging/wxs/z-paging-renderjs.js +67 -0
  135. package/other/z-paging/components/z-paging/wxs/z-paging-wxs.wxs +382 -0
  136. package/other/z-paging/components/z-paging/z-paging.vue +538 -0
  137. package/other/z-paging/components/z-paging-cell/z-paging-cell.vue +47 -0
  138. package/other/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue +209 -0
  139. package/other/z-paging/components/z-paging-swiper/z-paging-swiper.vue +176 -0
  140. package/other/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue +171 -0
  141. package/other/z-paging/package.json +89 -0
  142. package/other/z-paging/readme.md +57 -0
  143. package/other/z-paging/types/comps/_common.d.ts +9 -0
  144. package/other/z-paging/types/comps/z-paging-cell.d.ts +29 -0
  145. package/other/z-paging/types/comps/z-paging-empty-view.d.ts +95 -0
  146. package/other/z-paging/types/comps/z-paging-swiper-item.d.ts +95 -0
  147. package/other/z-paging/types/comps/z-paging-swiper.d.ts +89 -0
  148. package/other/z-paging/types/comps/z-paging.d.ts +2083 -0
  149. package/other/z-paging/types/comps.d.ts +11 -0
  150. package/other/z-paging/types/index.d.ts +24 -0
  151. package/package.json +7 -7
  152. package/plugins/tui-validation.js +279 -0
  153. package/plugins/uni-async.js +28 -0
  154. package/ui-cv/components/cv-draw-gesture-lock/cv-draw-gesture-lock.vue +39 -1
  155. package/ui-cv/components/cv-draw-qrcode/cv-draw-qrcode.vue +18 -14
  156. package/ui-cv/components/cv-geo-region/mpvueCityPicker.vue +77 -1
  157. package/ui-cv/components/cv-lists-base/cv-lists-base.vue +2 -2
  158. package/ui-cv/components/cv-tab-lists/cv-tab-lists.vue +2 -2
  159. package/ui-fireui/components/u-icon/u-icon.vue +63 -1
  160. package/ui-sdks/qiun-data-charts/changelog.md +320 -0
  161. package/ui-sdks/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue +1618 -0
  162. package/ui-sdks/qiun-data-charts/components/qiun-error/qiun-error.vue +46 -0
  163. package/ui-sdks/qiun-data-charts/components/qiun-loading/loading1.vue +162 -0
  164. package/ui-sdks/qiun-data-charts/components/qiun-loading/loading2.vue +170 -0
  165. package/ui-sdks/qiun-data-charts/components/qiun-loading/loading3.vue +173 -0
  166. package/ui-sdks/qiun-data-charts/components/qiun-loading/loading4.vue +222 -0
  167. package/ui-sdks/qiun-data-charts/components/qiun-loading/loading5.vue +229 -0
  168. package/ui-sdks/qiun-data-charts/components/qiun-loading/qiun-loading.vue +36 -0
  169. package/ui-sdks/qiun-data-charts/js_sdk/u-charts/config-echarts.js +422 -0
  170. package/ui-sdks/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +606 -0
  171. package/ui-sdks/qiun-data-charts/js_sdk/u-charts/readme.md +5 -0
  172. package/ui-sdks/qiun-data-charts/js_sdk/u-charts/u-charts.js +7706 -0
  173. package/ui-sdks/qiun-data-charts/js_sdk/u-charts/u-charts.min.js +18 -0
  174. package/ui-sdks/qiun-data-charts/license.md +201 -0
  175. package/ui-sdks/qiun-data-charts/package.json +80 -0
  176. package/ui-sdks/qiun-data-charts/readme.md +84 -0
  177. package/ui-sdks/qiun-data-charts/static/app-plus/echarts.min.js +23 -0
  178. package/ui-sdks/qiun-data-charts/static/h5/echarts.min.js +23 -0
  179. package/ui-sdks/tui-clipboard/tui-clipboard.js +53 -0
  180. package/uni-ui/lib/uni-badge/changelog.md +33 -0
  181. package/uni-ui/lib/uni-badge/package.json +107 -0
  182. package/uni-ui/lib/uni-badge/readme.md +8 -0
  183. package/uni-ui/lib/uni-badge/uni-badge.vue +87 -4
  184. package/uni-ui/lib/uni-breadcrumb/changelog.md +6 -0
  185. package/uni-ui/lib/uni-breadcrumb/package.json +104 -0
  186. package/uni-ui/lib/uni-breadcrumb/readme.md +66 -0
  187. package/uni-ui/lib/uni-breadcrumb/uni-breadcrumb.vue +8 -1
  188. package/uni-ui/lib/uni-breadcrumb-item/uni-breadcrumb-item.vue +38 -1
  189. package/uni-ui/lib/uni-calendar/calendar.js +0 -2
  190. package/uni-ui/lib/uni-calendar/changelog.md +30 -0
  191. package/uni-ui/lib/uni-calendar/package.json +105 -0
  192. package/uni-ui/lib/uni-calendar/readme.md +103 -0
  193. package/uni-ui/lib/uni-calendar/uni-calendar-item.vue +83 -1
  194. package/uni-ui/lib/uni-calendar/uni-calendar.vue +206 -8
  195. package/uni-ui/lib/uni-calendar/util.js +1 -1
  196. package/uni-ui/lib/uni-card/changelog.md +26 -0
  197. package/uni-ui/lib/uni-card/package.json +107 -0
  198. package/uni-ui/lib/uni-card/readme.md +10 -0
  199. package/uni-ui/lib/uni-card/uni-card.vue +127 -4
  200. package/uni-ui/lib/uni-col/uni-col.vue +2155 -2
  201. package/uni-ui/lib/uni-collapse/changelog.md +48 -0
  202. package/uni-ui/lib/uni-collapse/package.json +106 -0
  203. package/uni-ui/lib/uni-collapse/readme.md +11 -0
  204. package/uni-ui/lib/uni-collapse/uni-collapse.vue +13 -1
  205. package/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +127 -2
  206. package/uni-ui/lib/uni-combox/changelog.md +17 -0
  207. package/uni-ui/lib/uni-combox/package.json +107 -0
  208. package/uni-ui/lib/uni-combox/readme.md +10 -0
  209. package/uni-ui/lib/uni-combox/uni-combox.vue +145 -19
  210. package/uni-ui/lib/uni-countdown/changelog.md +30 -0
  211. package/uni-ui/lib/uni-countdown/package.json +105 -0
  212. package/uni-ui/lib/uni-countdown/readme.md +9 -0
  213. package/uni-ui/lib/uni-countdown/uni-countdown.vue +43 -16
  214. package/uni-ui/lib/uni-data-checkbox/changelog.md +51 -0
  215. package/uni-ui/lib/uni-data-checkbox/package.json +107 -0
  216. package/uni-ui/lib/uni-data-checkbox/readme.md +17 -0
  217. package/uni-ui/lib/uni-data-checkbox/uni-data-checkbox.vue +326 -5
  218. package/uni-ui/lib/uni-data-picker/changelog.md +81 -0
  219. package/uni-ui/lib/uni-data-picker/package.json +109 -0
  220. package/uni-ui/lib/uni-data-picker/readme.md +21 -0
  221. package/uni-ui/lib/uni-data-picker/uni-data-picker.uvue +380 -0
  222. package/uni-ui/lib/uni-data-picker/uni-data-picker.vue +52 -4
  223. package/uni-ui/lib/uni-data-pickerview/loading.uts +1 -0
  224. package/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +150 -157
  225. package/uni-ui/lib/uni-data-pickerview/uni-data-picker.uts +693 -0
  226. package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +76 -0
  227. package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.uvue +69 -0
  228. package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +163 -1
  229. package/uni-ui/lib/uni-data-select/changelog.md +51 -0
  230. package/uni-ui/lib/uni-data-select/package.json +106 -0
  231. package/uni-ui/lib/uni-data-select/readme.md +7 -0
  232. package/uni-ui/lib/uni-data-select/uni-data-select.vue +555 -45
  233. package/uni-ui/lib/uni-dateformat/changelog.md +10 -0
  234. package/uni-ui/lib/uni-dateformat/package.json +107 -0
  235. package/uni-ui/lib/uni-dateformat/readme.md +10 -0
  236. package/uni-ui/lib/uni-dateformat/uni-dateformat.vue +2 -0
  237. package/uni-ui/lib/uni-datetime-picker/calendar-item.vue +113 -1
  238. package/uni-ui/lib/uni-datetime-picker/calendar.vue +340 -20
  239. package/uni-ui/lib/uni-datetime-picker/changelog.md +177 -0
  240. package/uni-ui/lib/uni-datetime-picker/keypress.js +45 -0
  241. package/uni-ui/lib/uni-datetime-picker/package.json +107 -0
  242. package/uni-ui/lib/uni-datetime-picker/readme.md +20 -0
  243. package/uni-ui/lib/uni-datetime-picker/time-picker.vue +200 -8
  244. package/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +287 -9
  245. package/uni-ui/lib/uni-datetime-picker/util.js +102 -85
  246. package/uni-ui/lib/uni-drawer/changelog.md +13 -0
  247. package/uni-ui/lib/uni-drawer/package.json +106 -0
  248. package/uni-ui/lib/uni-drawer/readme.md +9 -0
  249. package/uni-ui/lib/uni-drawer/uni-drawer.vue +72 -2
  250. package/uni-ui/lib/uni-easyinput/changelog.md +121 -0
  251. package/uni-ui/lib/uni-easyinput/common.js +0 -2
  252. package/uni-ui/lib/uni-easyinput/package.json +107 -0
  253. package/uni-ui/lib/uni-easyinput/readme.md +10 -0
  254. package/uni-ui/lib/uni-easyinput/uni-easyinput.vue +247 -5
  255. package/uni-ui/lib/uni-fab/changelog.md +25 -0
  256. package/uni-ui/lib/uni-fab/package.json +107 -0
  257. package/uni-ui/lib/uni-fab/readme.md +8 -0
  258. package/uni-ui/lib/uni-fab/uni-fab.vue +255 -2
  259. package/uni-ui/lib/uni-fav/changelog.md +19 -0
  260. package/uni-ui/lib/uni-fav/package.json +106 -0
  261. package/uni-ui/lib/uni-fav/readme.md +9 -0
  262. package/uni-ui/lib/uni-fav/uni-fav.vue +45 -1
  263. package/uni-ui/lib/uni-file-picker/changelog.md +91 -0
  264. package/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +67 -4
  265. package/uni-ui/lib/uni-file-picker/package.json +105 -0
  266. package/uni-ui/lib/uni-file-picker/readme.md +10 -0
  267. package/uni-ui/lib/uni-file-picker/uni-file-picker.vue +42 -22
  268. package/uni-ui/lib/uni-file-picker/upload-file.vue +152 -1
  269. package/uni-ui/lib/uni-file-picker/upload-image.vue +107 -5
  270. package/uni-ui/lib/uni-forms/changelog.md +100 -0
  271. package/uni-ui/lib/uni-forms/package.json +107 -0
  272. package/uni-ui/lib/uni-forms/readme.md +22 -0
  273. package/uni-ui/lib/uni-forms/uni-forms.vue +30 -3
  274. package/uni-ui/lib/uni-forms-item/uni-forms-item.vue +181 -6
  275. package/uni-ui/lib/uni-goods-nav/changelog.md +18 -0
  276. package/uni-ui/lib/uni-goods-nav/package.json +105 -0
  277. package/uni-ui/lib/uni-goods-nav/readme.md +9 -0
  278. package/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +124 -1
  279. package/uni-ui/lib/uni-grid/changelog.md +13 -0
  280. package/uni-ui/lib/uni-grid/package.json +106 -0
  281. package/uni-ui/lib/uni-grid/readme.md +10 -0
  282. package/uni-ui/lib/uni-grid/uni-grid.vue +36 -2
  283. package/uni-ui/lib/uni-grid-item/uni-grid-item.vue +57 -2
  284. package/uni-ui/lib/uni-group/changelog.md +16 -0
  285. package/uni-ui/lib/uni-group/package.json +106 -0
  286. package/uni-ui/lib/uni-group/readme.md +8 -0
  287. package/uni-ui/lib/uni-group/uni-group.vue +50 -1
  288. package/uni-ui/lib/uni-icons/changelog.md +22 -0
  289. package/uni-ui/lib/uni-icons/package.json +77 -8
  290. package/uni-ui/lib/uni-icons/readme.md +0 -1
  291. package/uni-ui/lib/uni-icons/uni-icons.uvue +91 -0
  292. package/uni-ui/lib/uni-icons/uni-icons.vue +37 -13
  293. package/uni-ui/lib/uni-icons/uniicons.css +32 -31
  294. package/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
  295. package/uni-ui/lib/uni-icons/uniicons_file.ts +664 -0
  296. package/uni-ui/lib/uni-icons/uniicons_file_vue.js +649 -0
  297. package/uni-ui/lib/uni-indexed-list/changelog.md +19 -0
  298. package/uni-ui/lib/uni-indexed-list/package.json +107 -0
  299. package/uni-ui/lib/uni-indexed-list/readme.md +10 -0
  300. package/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +90 -2
  301. package/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +91 -3
  302. package/uni-ui/lib/uni-link/changelog.md +17 -0
  303. package/uni-ui/lib/uni-link/package.json +106 -0
  304. package/uni-ui/lib/uni-link/readme.md +10 -0
  305. package/uni-ui/lib/uni-link/uni-link.vue +3 -0
  306. package/uni-ui/lib/uni-list/changelog.md +52 -0
  307. package/uni-ui/lib/uni-list/package.json +108 -0
  308. package/uni-ui/lib/uni-list/readme.md +44 -0
  309. package/uni-ui/lib/uni-list/uni-list.vue +44 -1
  310. package/uni-ui/lib/uni-list/uni-refresh.vue +2 -0
  311. package/uni-ui/lib/uni-list/uni-refresh.wxs +1 -1
  312. package/uni-ui/lib/uni-list-ad/uni-list-ad.vue +33 -1
  313. package/uni-ui/lib/uni-list-chat/uni-list-chat.vue +265 -1
  314. package/uni-ui/lib/uni-list-item/uni-list-item.vue +185 -1
  315. package/uni-ui/lib/uni-load-more/changelog.md +27 -0
  316. package/uni-ui/lib/uni-load-more/package.json +105 -0
  317. package/uni-ui/lib/uni-load-more/readme.md +12 -0
  318. package/uni-ui/lib/uni-load-more/uni-load-more.vue +252 -1
  319. package/uni-ui/lib/uni-nav-bar/changelog.md +64 -0
  320. package/uni-ui/lib/uni-nav-bar/package.json +106 -0
  321. package/uni-ui/lib/uni-nav-bar/readme.md +13 -0
  322. package/uni-ui/lib/uni-nav-bar/uni-nav-bar.vue +199 -5
  323. package/uni-ui/lib/uni-nav-bar/uni-status-bar.vue +11 -1
  324. package/uni-ui/lib/uni-notice-bar/changelog.md +22 -0
  325. package/uni-ui/lib/uni-notice-bar/package.json +107 -0
  326. package/uni-ui/lib/uni-notice-bar/readme.md +11 -0
  327. package/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +136 -8
  328. package/uni-ui/lib/uni-number-box/changelog.md +39 -0
  329. package/uni-ui/lib/uni-number-box/package.json +104 -0
  330. package/uni-ui/lib/uni-number-box/readme.md +11 -0
  331. package/uni-ui/lib/uni-number-box/uni-number-box.vue +73 -4
  332. package/uni-ui/lib/uni-pagination/changelog.md +27 -0
  333. package/uni-ui/lib/uni-pagination/package.json +106 -0
  334. package/uni-ui/lib/uni-pagination/readme.md +10 -0
  335. package/uni-ui/lib/uni-pagination/uni-pagination.vue +157 -1
  336. package/uni-ui/lib/uni-popup/changelog.md +102 -0
  337. package/uni-ui/lib/uni-popup/package.json +107 -0
  338. package/uni-ui/lib/uni-popup/readme.md +15 -0
  339. package/uni-ui/lib/uni-popup/uni-popup.uvue +90 -0
  340. package/uni-ui/lib/uni-popup/uni-popup.vue +108 -15
  341. package/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +167 -11
  342. package/uni-ui/lib/uni-popup-message/uni-popup-message.vue +70 -1
  343. package/uni-ui/lib/uni-popup-share/uni-popup-share.vue +87 -6
  344. package/uni-ui/lib/uni-rate/changelog.md +27 -0
  345. package/uni-ui/lib/uni-rate/package.json +106 -0
  346. package/uni-ui/lib/uni-rate/readme.md +11 -0
  347. package/uni-ui/lib/uni-rate/uni-rate.vue +64 -29
  348. package/uni-ui/lib/uni-row/changelog.md +10 -0
  349. package/uni-ui/lib/uni-row/package.json +106 -0
  350. package/uni-ui/lib/uni-row/readme.md +9 -0
  351. package/uni-ui/lib/uni-row/uni-row.vue +66 -1
  352. package/uni-ui/lib/uni-row/uni-row2.vue +144 -0
  353. package/uni-ui/lib/uni-scss/package.json +56 -39
  354. package/uni-ui/lib/uni-scss/readme.md +0 -1
  355. package/uni-ui/lib/uni-search-bar/changelog.md +47 -0
  356. package/uni-ui/lib/uni-search-bar/package.json +106 -0
  357. package/uni-ui/lib/uni-search-bar/readme.md +12 -0
  358. package/uni-ui/lib/uni-search-bar/uni-search-bar.vue +85 -4
  359. package/uni-ui/lib/uni-section/changelog.md +2 -0
  360. package/uni-ui/lib/uni-section/package.json +104 -0
  361. package/uni-ui/lib/uni-section/readme.md +7 -0
  362. package/uni-ui/lib/uni-section/uni-section.vue +61 -1
  363. package/uni-ui/lib/uni-segmented-control/changelog.md +15 -0
  364. package/uni-ui/lib/uni-segmented-control/package.json +106 -0
  365. package/uni-ui/lib/uni-segmented-control/readme.md +11 -0
  366. package/uni-ui/lib/uni-segmented-control/uni-segmented-control.vue +67 -5
  367. package/uni-ui/lib/uni-status-bar/uni-status-bar.vue +3 -1
  368. package/uni-ui/lib/uni-steps/changelog.md +18 -0
  369. package/uni-ui/lib/uni-steps/package.json +106 -0
  370. package/uni-ui/lib/uni-steps/readme.md +11 -0
  371. package/uni-ui/lib/uni-steps/uni-steps.vue +201 -7
  372. package/uni-ui/lib/uni-swipe-action/changelog.md +60 -0
  373. package/uni-ui/lib/uni-swipe-action/package.json +113 -0
  374. package/uni-ui/lib/uni-swipe-action/readme.md +10 -0
  375. package/uni-ui/lib/uni-swipe-action/uni-swipe-action.vue +60 -1
  376. package/uni-ui/lib/uni-swipe-action-item/bindingx.js +286 -282
  377. package/uni-ui/lib/uni-swipe-action-item/mpwxs.js +1 -1
  378. package/uni-ui/lib/uni-swipe-action-item/render.js +21 -14
  379. package/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +139 -18
  380. package/uni-ui/lib/uni-swipe-action-item/wx.wxs +10 -2
  381. package/uni-ui/lib/uni-swiper-dot/changelog.md +12 -0
  382. package/uni-ui/lib/uni-swiper-dot/package.json +106 -0
  383. package/uni-ui/lib/uni-swiper-dot/readme.md +10 -0
  384. package/uni-ui/lib/uni-swiper-dot/uni-swiper-dot.vue +98 -2
  385. package/uni-ui/lib/uni-table/changelog.md +35 -0
  386. package/uni-ui/lib/uni-table/i18n/en.json +9 -0
  387. package/uni-ui/lib/uni-table/i18n/es.json +9 -0
  388. package/uni-ui/lib/uni-table/i18n/fr.json +9 -0
  389. package/uni-ui/lib/uni-table/i18n/index.js +12 -0
  390. package/uni-ui/lib/uni-table/i18n/zh-Hans.json +9 -0
  391. package/uni-ui/lib/uni-table/i18n/zh-Hant.json +9 -0
  392. package/uni-ui/lib/uni-table/package.json +106 -0
  393. package/uni-ui/lib/uni-table/readme.md +11 -0
  394. package/uni-ui/lib/uni-table/uni-table.vue +162 -1
  395. package/uni-ui/lib/uni-tag/changelog.md +25 -0
  396. package/uni-ui/lib/uni-tag/package.json +106 -0
  397. package/uni-ui/lib/uni-tag/readme.md +11 -0
  398. package/uni-ui/lib/uni-tag/uni-tag.vue +111 -3
  399. package/uni-ui/lib/uni-tbody/uni-tbody.vue +1 -1
  400. package/uni-ui/lib/uni-td/uni-td.vue +19 -1
  401. package/uni-ui/lib/uni-th/filter-dropdown.vue +224 -2
  402. package/uni-ui/lib/uni-th/uni-th.vue +82 -1
  403. package/uni-ui/lib/uni-thead/uni-thead.vue +53 -2
  404. package/uni-ui/lib/uni-title/changelog.md +10 -0
  405. package/uni-ui/lib/uni-title/package.json +107 -0
  406. package/uni-ui/lib/uni-title/readme.md +12 -0
  407. package/uni-ui/lib/uni-title/uni-title.vue +1 -1
  408. package/uni-ui/lib/uni-tooltip/changelog.md +16 -0
  409. package/uni-ui/lib/uni-tooltip/package.json +104 -0
  410. package/uni-ui/lib/uni-tooltip/readme.md +7 -0
  411. package/uni-ui/lib/uni-tooltip/uni-tooltip.vue +1 -1
  412. package/uni-ui/lib/uni-tr/table-checkbox.vue +85 -1
  413. package/uni-ui/lib/uni-tr/uni-tr.vue +45 -3
  414. package/uni-ui/lib/uni-transition/changelog.md +31 -0
  415. package/uni-ui/lib/uni-transition/package.json +112 -0
  416. package/uni-ui/lib/uni-transition/readme.md +10 -0
  417. package/uni-ui/lib/uni-transition/uni-transition.vue +36 -32
  418. package/uni-ui/lib/uni-ui/changelog.md +639 -0
  419. package/uni-ui/lib/uni-ui/package.json +148 -0
  420. package/uni-ui/lib/uni-ui/readme.md +247 -0
  421. package/uni-ui/lib/uni-ui/uni-ui.vue +7 -0
  422. package/uni-ui/package.json +1 -1
  423. package/uview-plus/components/u-action-sheet/u-action-sheet.vue +56 -1
  424. package/uview-plus/components/u-action-sheet-data/u-action-sheet-data.vue +10 -1
  425. package/uview-plus/components/u-agreement/u-agreement.vue +14 -3
  426. package/uview-plus/components/u-album/u-album.vue +29 -1
  427. package/uview-plus/components/u-alert/u-alert.vue +96 -1
  428. package/uview-plus/components/u-avatar/u-avatar.vue +21 -1
  429. package/uview-plus/components/u-avatar-group/u-avatar-group.vue +28 -1
  430. package/uview-plus/components/u-back-top/u-back-top.vue +16 -1
  431. package/uview-plus/components/u-badge/u-badge.vue +57 -1
  432. package/uview-plus/components/u-box/u-box.vue +101 -3
  433. package/uview-plus/components/u-button/u-button.vue +196 -3
  434. package/uview-plus/components/u-calendar/header.vue +59 -3
  435. package/uview-plus/components/u-calendar/month.vue +1 -3
  436. package/uview-plus/components/u-calendar/u-calendar.vue +3 -1
  437. package/uview-plus/components/u-calendar-wu/u-calendar-wu.vue +196 -1
  438. package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +70 -1
  439. package/uview-plus/components/u-card/u-card.vue +34 -1
  440. package/uview-plus/components/u-cascader/u-cascader.vue +16 -1
  441. package/uview-plus/components/u-cate-tab/u-cate-tab.vue +387 -3
  442. package/uview-plus/components/u-cell/u-cell.vue +113 -1
  443. package/uview-plus/components/u-cell-group/u-cell-group.vue +14 -1
  444. package/uview-plus/components/u-checkbox/u-checkbox.vue +77 -1
  445. package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +12 -1
  446. package/uview-plus/components/u-choose/u-choose.vue +15 -3
  447. package/uview-plus/components/u-circle-progress/u-circle-progress.vue +69 -1
  448. package/{ui-fireui copy/components/u-circular-progress/u-circular-progress.vue → uview-plus/components/u-circular-progress/u-circular-progress.vue} +1 -1
  449. package/uview-plus/components/u-city-locate/u-city-locate.vue +161 -1
  450. package/uview-plus/components/u-code-input/u-code-input.vue +68 -1
  451. package/uview-plus/components/u-col/u-col.vue +50 -1
  452. package/uview-plus/components/u-collapse-item/u-collapse-item.vue +10 -1
  453. package/uview-plus/components/u-color-picker/u-color-picker.vue +260 -1
  454. package/uview-plus/components/u-column-notice/u-column-notice.vue +37 -1
  455. package/uview-plus/components/u-count-down/u-count-down.vue +5 -1
  456. package/uview-plus/components/u-count-to/u-count-to.vue +6 -1
  457. package/uview-plus/components/u-coupon/u-coupon.vue +214 -1
  458. package/uview-plus/components/u-cropper/u-cropper.vue +1319 -1
  459. package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +26 -1
  460. package/uview-plus/components/u-divider/u-divider.vue +17 -1
  461. package/uview-plus/components/u-dragsort/u-dragsort.vue +40 -1
  462. package/uview-plus/components/u-dropdown/u-dropdown.vue +66 -1
  463. package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +3 -1
  464. package/{ui-fireui → uview-plus}/components/u-dropdown-list/u-dropdown-list.vue +1 -1
  465. package/uview-plus/components/u-empty/u-empty.vue +43 -32
  466. package/{ui-fireui copy/components/u-fab/u-fab.vue → uview-plus/components/u-fab/u-fab.vue} +1 -1
  467. package/uview-plus/components/u-float-button/u-float-button.vue +15 -1
  468. package/{ui-fireui → uview-plus}/components/u-footer/u-footer.vue +1 -1
  469. package/uview-plus/components/u-form-base/form.js +22 -0
  470. package/uview-plus/components/u-form-base/props.js +47 -0
  471. package/uview-plus/components/u-form-base/u-form.vue +243 -0
  472. package/uview-plus/components/u-form-item/u-form-item.vue +82 -1
  473. package/uview-plus/components/u-goods-sku/u-goods-sku.vue +100 -1
  474. package/uview-plus/components/u-grid/u-grid.vue +0 -2
  475. package/uview-plus/components/u-grid-item/u-grid-item.vue +30 -1
  476. package/uview-plus/components/u-icon/u-icon.vue +63 -1
  477. package/uview-plus/components/u-image/u-image.vue +25 -1
  478. package/{ui-fireui → uview-plus}/components/u-image-cropper/u-image-cropper.vue +1 -1
  479. package/{ui-fireui copy/components/u-image-group/u-image-group.vue → uview-plus/components/u-image-group/u-image-group.vue} +1 -1
  480. package/uview-plus/components/u-index-anchor/u-index-anchor.vue +22 -1
  481. package/uview-plus/components/u-index-list/u-index-list.vue +51 -1
  482. package/uview-plus/components/u-input/u-input.vue +65 -1
  483. package/uview-plus/components/u-keyboard/u-keyboard.vue +26 -1
  484. package/uview-plus/components/u-lazy-load/u-lazy-load.vue +12 -1
  485. package/uview-plus/components/u-line/u-line.vue +5 -1
  486. package/uview-plus/components/u-line-progress/u-line-progress.vue +38 -1
  487. package/uview-plus/components/u-link/u-link.vue +11 -1
  488. package/uview-plus/components/u-list/u-list.vue +6 -1
  489. package/uview-plus/components/u-list-item/u-list-item.vue +2 -1
  490. package/uview-plus/components/u-loading-icon/u-loading-icon.vue +138 -1
  491. package/uview-plus/components/u-loading-page/u-loading-page.vue +33 -1
  492. package/uview-plus/components/u-loadmore/u-loadmore.vue +29 -1
  493. package/uview-plus/components/u-markdown/u-markdown.vue +188 -1
  494. package/uview-plus/components/u-message-input/u-message-input.vue +115 -1
  495. package/uview-plus/components/u-modal/u-modal.vue +65 -1
  496. package/uview-plus/components/u-navbar/u-navbar.vue +52 -1
  497. package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +34 -1
  498. package/uview-plus/components/u-no-network/u-no-network.vue +38 -1
  499. package/uview-plus/components/u-notice-bar/u-notice-bar.vue +5 -1
  500. package/uview-plus/components/u-notify/u-notify.vue +28 -1
  501. package/uview-plus/components/u-number-box/u-number-box.vue +60 -2
  502. package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +45 -1
  503. package/uview-plus/components/u-overlay/u-overlay.vue +8 -1
  504. package/uview-plus/components/u-pagination/u-pagination.vue +255 -1
  505. package/uview-plus/components/u-parse/node/node.vue +319 -129
  506. package/uview-plus/components/u-pdf-reader/u-pdf-reader.vue +2 -1
  507. package/uview-plus/components/u-picker/u-picker.vue +58 -1
  508. package/uview-plus/components/u-picker-data/u-picker-data.vue +11 -1
  509. package/uview-plus/components/u-popover/u-popover.vue +8 -1
  510. package/uview-plus/components/u-popup/u-popup.vue +87 -1
  511. package/uview-plus/components/u-popup-wu/u-popup-wu.vue +2 -2
  512. package/uview-plus/components/u-poster/u-poster.vue +22 -1
  513. package/uview-plus/components/u-pull-refresh/u-pull-refresh.vue +51 -1
  514. package/uview-plus/components/u-qrcode/u-qrcode.vue +32 -1
  515. package/uview-plus/components/u-radio/u-radio.vue +77 -1
  516. package/uview-plus/components/u-radio-group/u-radio-group.vue +15 -1
  517. package/uview-plus/components/u-rate/u-rate.vue +32 -1
  518. package/uview-plus/components/u-read-more/u-read-more.vue +23 -1
  519. package/uview-plus/components/u-row/u-row.vue +6 -1
  520. package/uview-plus/components/u-row-notice/u-row-notice.vue +50 -1
  521. package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +5 -1
  522. package/uview-plus/components/u-scroll-list/u-scroll-list.vue +35 -1
  523. package/uview-plus/components/u-search/u-search.vue +87 -1
  524. package/uview-plus/components/u-select/u-select.vue +51 -1
  525. package/uview-plus/components/u-short-video/u-short-video.vue +118 -1
  526. package/uview-plus/components/u-signature/u-signature.vue +71 -1
  527. package/uview-plus/components/u-skeleton/u-skeleton.vue +52 -1
  528. package/uview-plus/components/u-sku-wu/u-sku-wu.vue +271 -1
  529. package/uview-plus/components/u-slider/nvue.js +165 -178
  530. package/uview-plus/components/u-slider/u-slider.vue +69 -1
  531. package/uview-plus/components/u-status-bar/u-status-bar.vue +6 -1
  532. package/uview-plus/components/u-steps/u-steps.vue +20 -1
  533. package/uview-plus/components/u-steps-item/u-steps-item.vue +112 -1
  534. package/uview-plus/components/u-sticky/u-sticky.vue +6 -1
  535. package/uview-plus/components/u-subsection/u-subsection.vue +101 -1
  536. package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +51 -1
  537. package/uview-plus/components/u-swiper/u-swiper.vue +50 -1
  538. package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +26 -1
  539. package/uview-plus/components/u-switch/u-switch.vue +47 -1
  540. package/uview-plus/components/u-tabbar/u-tabbar.vue +29 -1
  541. package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +59 -1
  542. package/uview-plus/components/u-table2/tableRow.vue +361 -1
  543. package/uview-plus/components/u-table2/u-table2.vue +763 -1
  544. package/uview-plus/components/u-tabs/u-tabs.vue +62 -1
  545. package/uview-plus/components/u-tag/u-tag.vue +169 -1
  546. package/uview-plus/components/u-td/u-td.vue +14 -1
  547. package/uview-plus/components/u-text/u-text.vue +50 -1
  548. package/uview-plus/components/u-textarea/u-textarea.vue +35 -1
  549. package/uview-plus/components/u-th/u-th.vue +13 -1
  550. package/uview-plus/components/u-title/u-title.vue +10 -3
  551. package/uview-plus/components/u-toast/u-toast.vue +67 -1
  552. package/uview-plus/components/u-toolbar/u-toolbar.vue +34 -1
  553. package/uview-plus/components/u-tooltip/u-tooltip.vue +65 -1
  554. package/uview-plus/components/u-tr/u-tr.vue +6 -1
  555. package/uview-plus/components/u-transition/u-transition.vue +98 -1
  556. package/uview-plus/components/u-upload/u-upload.vue +176 -1
  557. package/uview-plus/components/u-view/u-view.vue +2 -1
  558. package/uview-plus/components/u-virtual-list/u-virtual-list.vue +16 -1
  559. package/uview-plus/components/u-waterfall/u-waterfall.vue +28 -1
  560. package/uview-plus/libs/css/color2.scss +32 -0
  561. package/uview-plus/libs/css/variable2.scss +111 -0
  562. package/{plugins → uview-plus/libs/ctocode}/MessageTip.js +6 -6
  563. package/uview-plus/libs/ctocode/wait.js +47 -0
  564. package/uview-plus/libs/mixin/openType2.js +60 -0
  565. package/uview-plus/libs/util/route2.js +126 -0
  566. package/other/style.css +0 -46
  567. package/ui-cv/components/cv-draw-gesture-lock/style.css +0 -39
  568. package/ui-cv/components/cv-geo-region/style.css +0 -77
  569. package/ui-fireui/components/u-circular-progress/u-circular-progress.vue +0 -269
  570. package/ui-fireui/components/u-countdown/u-countdown.vue +0 -301
  571. package/ui-fireui/components/u-fab/u-fab.vue +0 -284
  572. package/ui-fireui/components/u-icon/style.css +0 -63
  573. package/ui-fireui/components/u-image-group/u-image-group.vue +0 -149
  574. package/ui-fireui copy/components/u-action-sheet/u-action-sheet.vue +0 -202
  575. package/ui-fireui copy/components/u-alert/u-alert.vue +0 -141
  576. package/ui-fireui copy/components/u-badge/u-badge.vue +0 -158
  577. package/ui-fireui copy/components/u-bottom-navigation/u-bottom-navigation.vue +0 -391
  578. package/ui-fireui copy/components/u-bottom-popup/u-bottom-popup.vue +0 -101
  579. package/ui-fireui copy/components/u-bubble-popup/u-bubble-popup.vue +0 -240
  580. package/ui-fireui copy/components/u-button/u-button.vue +0 -424
  581. package/ui-fireui copy/components/u-button/u-button2.vue +0 -553
  582. package/ui-fireui copy/components/u-calendar/u-calendar.js +0 -915
  583. package/ui-fireui copy/components/u-calendar/u-calendar.vue +0 -868
  584. package/ui-fireui copy/components/u-calendar/u-calendar2.vue +0 -801
  585. package/ui-fireui copy/components/u-card/u-card.vue +0 -231
  586. package/ui-fireui copy/components/u-cascade-selection/u-cascade-selection.vue +0 -538
  587. package/ui-fireui copy/components/u-collapse/u-collapse.vue +0 -179
  588. package/ui-fireui copy/components/u-datetime/u-datetime.vue +0 -570
  589. package/ui-fireui copy/components/u-divider/u-divider.vue +0 -118
  590. package/ui-fireui copy/components/u-drawer/u-drawer.vue +0 -103
  591. package/ui-fireui copy/components/u-dropdown-list/u-dropdown-list.vue +0 -75
  592. package/ui-fireui copy/components/u-footer/u-footer.vue +0 -135
  593. package/ui-fireui copy/components/u-grid/u-grid.vue +0 -50
  594. package/ui-fireui copy/components/u-grid-item/u-grid-item.vue +0 -142
  595. package/ui-fireui copy/components/u-icon/icons.js +0 -214
  596. package/ui-fireui copy/components/u-icon/props.js +0 -92
  597. package/ui-fireui copy/components/u-icon/style.css +0 -63
  598. package/ui-fireui copy/components/u-icon/style.scss +0 -1066
  599. package/ui-fireui copy/components/u-icon/u-icon.vue +0 -117
  600. package/ui-fireui copy/components/u-icon/u-icon2.vue +0 -149
  601. package/ui-fireui copy/components/u-icon/util.js +0 -68
  602. package/ui-fireui copy/components/u-image-cropper/u-image-cropper.vue +0 -1058
  603. package/ui-fireui copy/components/u-keyboard/u-keyboard.vue +0 -251
  604. package/ui-fireui copy/components/u-keyboard-input/u-keyboard-input.vue +0 -78
  605. package/ui-fireui copy/components/u-list-cell/u-list-cell.vue +0 -178
  606. package/ui-fireui copy/components/u-list-view/u-list-view.vue +0 -87
  607. package/ui-fireui copy/components/u-loading/u-loading.vue +0 -78
  608. package/ui-fireui copy/components/u-loadmore/u-loadmore.vue +0 -163
  609. package/ui-fireui copy/components/u-modal/u-modal.vue +0 -392
  610. package/ui-fireui copy/components/u-navigation-bar/u-navigation-bar.vue +0 -181
  611. package/ui-fireui copy/components/u-no-data/u-no-data.vue +0 -116
  612. package/ui-fireui copy/components/u-nomore/u-nomore.vue +0 -116
  613. package/ui-fireui copy/components/u-numberbox/u-numberbox.vue +0 -234
  614. package/ui-fireui copy/components/u-numberbox-border/u-numberbox-border.vue +0 -232
  615. package/ui-fireui copy/components/u-picture-cropper/u-picture-cropper.vue +0 -682
  616. package/ui-fireui copy/components/u-picture-cropper/u-picture-cropper.wxs +0 -582
  617. package/ui-fireui copy/components/u-round-progress/u-round-progress.vue +0 -306
  618. package/ui-fireui copy/components/u-scroll-top/u-scroll-top.vue +0 -189
  619. package/ui-fireui copy/components/u-share-model/u-share-model.vue +0 -181
  620. package/ui-fireui copy/components/u-skeleton/u-skeleton.vue +0 -248
  621. package/ui-fireui copy/components/u-steps/u-steps.vue +0 -214
  622. package/ui-fireui copy/components/u-sticky/u-sticky.vue +0 -155
  623. package/ui-fireui copy/components/u-sticky-wxs/u-sticky-wxs.vue +0 -133
  624. package/ui-fireui copy/components/u-sticky-wxs/u-sticky.wxs +0 -46
  625. package/ui-fireui copy/components/u-swipe-action/u-swipe-action.vue +0 -301
  626. package/ui-fireui copy/components/u-tabbar/u-tabbar.vue +0 -279
  627. package/ui-fireui copy/components/u-tabs/u-tabs.vue +0 -284
  628. package/ui-fireui copy/components/u-tabs2/u-tabs2.vue +0 -284
  629. package/ui-fireui copy/components/u-tag/u-tag.vue +0 -362
  630. package/ui-fireui copy/components/u-time-axis/u-time-axis.vue +0 -36
  631. package/ui-fireui copy/components/u-timeaxis-item/u-timeaxis-item.vue +0 -48
  632. package/ui-fireui copy/components/u-tips/u-tips.vue +0 -161
  633. package/ui-fireui copy/components/u-toast/u-toast.vue +0 -117
  634. package/ui-fireui copy/components/u-top-dropdown/u-top-dropdown.vue +0 -129
  635. package/ui-fireui copy/components/u-upload/u-upload.vue +0 -446
  636. package/ui-fireui copy/components/u-upload2/u-upload.vue +0 -464
  637. package/ui-fireui copy/components/u-uploadsamll/u-uploadsamll.vue +0 -472
  638. package/ui-fireui copy/css/thorui.css +0 -589
  639. package/ui-fireui copy/index.css +0 -1483
  640. package/ui-fireui copy/libs/fui-color-analysis/fui-color-analysis.js +0 -1
  641. package/ui-fireui copy/libs/fui-zh-pinyin/fui-zh-pinyin.js +0 -1
  642. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/bridge/bridge-weex.js +0 -241
  643. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/FillStyleLinearGradient.js +0 -18
  644. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/FillStylePattern.js +0 -8
  645. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/FillStyleRadialGradient.js +0 -17
  646. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-2d/RenderingContext.js +0 -666
  647. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/ActiveInfo.js +0 -11
  648. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Buffer.js +0 -21
  649. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Framebuffer.js +0 -21
  650. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/GLenum.js +0 -298
  651. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/GLmethod.js +0 -142
  652. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/GLtype.js +0 -23
  653. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Program.js +0 -21
  654. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Renderbuffer.js +0 -21
  655. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/RenderingContext.js +0 -1191
  656. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Shader.js +0 -22
  657. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -11
  658. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/Texture.js +0 -22
  659. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/UniformLocation.js +0 -22
  660. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/context-webgl/classUtils.js +0 -3
  661. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/env/canvas.js +0 -74
  662. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/env/image.js +0 -96
  663. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/env/tool.js +0 -24
  664. package/ui-fireui copy/nvue/u-circular-progress/gcanvas/index.js +0 -47
  665. package/ui-fireui copy/nvue/u-circular-progress/u-circular-progress.nvue +0 -203
  666. package/ui-fireui copy/nvue/u-icon/icons.js +0 -188
  667. package/ui-fireui copy/nvue/u-icon/u-icon.vue +0 -78
  668. package/uni-ui/lib/uni-badge/style.css +0 -81
  669. package/uni-ui/lib/uni-badge/style.scss +0 -106
  670. package/uni-ui/lib/uni-breadcrumb/style.css +0 -3
  671. package/uni-ui/lib/uni-breadcrumb/style.scss +0 -4
  672. package/uni-ui/lib/uni-breadcrumb-item/style.css +0 -30
  673. package/uni-ui/lib/uni-breadcrumb-item/style.scss +0 -40
  674. package/uni-ui/lib/uni-calendar/style.css +0 -167
  675. package/uni-ui/lib/uni-calendar/style.scss +0 -200
  676. package/uni-ui/lib/uni-card/style.css +0 -115
  677. package/uni-ui/lib/uni-card/style.scss +0 -161
  678. package/uni-ui/lib/uni-col/style.css +0 -2145
  679. package/uni-ui/lib/uni-col/style.scss +0 -112
  680. package/uni-ui/lib/uni-collapse/style.css +0 -11
  681. package/uni-ui/lib/uni-collapse/style.scss +0 -12
  682. package/uni-ui/lib/uni-collapse-item/style.css +0 -120
  683. package/uni-ui/lib/uni-collapse-item/style.scss +0 -143
  684. package/uni-ui/lib/uni-combox/style.css +0 -114
  685. package/uni-ui/lib/uni-combox/style.scss +0 -133
  686. package/uni-ui/lib/uni-countdown/style.css +0 -16
  687. package/uni-ui/lib/uni-countdown/style.scss +0 -21
  688. package/uni-ui/lib/uni-data-checkbox/style.css +0 -302
  689. package/uni-ui/lib/uni-data-checkbox/style.scss +0 -366
  690. package/uni-ui/lib/uni-data-pickerview/style.css +0 -134
  691. package/uni-ui/lib/uni-data-pickerview/style.scss +0 -154
  692. package/uni-ui/lib/uni-data-select/style.css +0 -181
  693. package/uni-ui/lib/uni-data-select/style.scss +0 -213
  694. package/uni-ui/lib/uni-datetime-picker/style.css +0 -188
  695. package/uni-ui/lib/uni-datetime-picker/style.scss +0 -218
  696. package/uni-ui/lib/uni-drawer/style.css +0 -63
  697. package/uni-ui/lib/uni-drawer/style.scss +0 -77
  698. package/uni-ui/lib/uni-easyinput/style.css +0 -126
  699. package/uni-ui/lib/uni-easyinput/style.scss +0 -155
  700. package/uni-ui/lib/uni-fab/style.css +0 -185
  701. package/uni-ui/lib/uni-fab/style.scss +0 -259
  702. package/uni-ui/lib/uni-fav/style.css +0 -39
  703. package/uni-ui/lib/uni-fav/style.scss +0 -45
  704. package/uni-ui/lib/uni-file-picker/style.css +0 -97
  705. package/uni-ui/lib/uni-file-picker/style.scss +0 -110
  706. package/uni-ui/lib/uni-forms-item/style.css +0 -133
  707. package/uni-ui/lib/uni-goods-nav/style.css +0 -100
  708. package/uni-ui/lib/uni-goods-nav/style.scss +0 -122
  709. package/uni-ui/lib/uni-grid/style.css +0 -29
  710. package/uni-ui/lib/uni-grid/style.scss +0 -33
  711. package/uni-ui/lib/uni-grid-item/style.css +0 -49
  712. package/uni-ui/lib/uni-grid-item/style.scss +0 -55
  713. package/uni-ui/lib/uni-group/style.css +0 -36
  714. package/uni-ui/lib/uni-group/style.scss +0 -50
  715. package/uni-ui/lib/uni-icons/icons.js +0 -1169
  716. package/uni-ui/lib/uni-icons/style.css +0 -12
  717. package/uni-ui/lib/uni-icons/style.scss +0 -14
  718. package/uni-ui/lib/uni-indexed-list/style.css +0 -68
  719. package/uni-ui/lib/uni-indexed-list/style.scss +0 -83
  720. package/uni-ui/lib/uni-list/style.css +0 -43
  721. package/uni-ui/lib/uni-list/style.scss +0 -52
  722. package/uni-ui/lib/uni-list-ad/style.css +0 -30
  723. package/uni-ui/lib/uni-list-ad/style.scss +0 -35
  724. package/uni-ui/lib/uni-list-chat/style.css +0 -257
  725. package/uni-ui/lib/uni-list-chat/style.scss +0 -326
  726. package/uni-ui/lib/uni-list-item/style.css +0 -170
  727. package/uni-ui/lib/uni-list-item/style.scss +0 -213
  728. package/uni-ui/lib/uni-load-more/style.css +0 -194
  729. package/uni-ui/lib/uni-load-more/style.scss +0 -244
  730. package/uni-ui/lib/uni-nav-bar/style.css +0 -3
  731. package/uni-ui/lib/uni-nav-bar/style.scss +0 -6
  732. package/uni-ui/lib/uni-notice-bar/style.css +0 -109
  733. package/uni-ui/lib/uni-notice-bar/style.scss +0 -125
  734. package/uni-ui/lib/uni-number-box/style.css +0 -50
  735. package/uni-ui/lib/uni-number-box/style.scss +0 -64
  736. package/uni-ui/lib/uni-pagination/style.css +0 -125
  737. package/uni-ui/lib/uni-pagination/style.scss +0 -154
  738. package/uni-ui/lib/uni-popup/style.css +0 -41
  739. package/uni-ui/lib/uni-popup/style.scss +0 -51
  740. package/uni-ui/lib/uni-popup-dialog/style.css +0 -82
  741. package/uni-ui/lib/uni-popup-dialog/style.scss +0 -98
  742. package/uni-ui/lib/uni-popup-message/style.css +0 -57
  743. package/uni-ui/lib/uni-popup-message/style.scss +0 -69
  744. package/uni-ui/lib/uni-popup-share/style.css +0 -72
  745. package/uni-ui/lib/uni-popup-share/style.scss +0 -81
  746. package/uni-ui/lib/uni-rate/style.css +0 -29
  747. package/uni-ui/lib/uni-rate/style.scss +0 -33
  748. package/uni-ui/lib/uni-row/style.css +0 -58
  749. package/uni-ui/lib/uni-row/style.scss +0 -104
  750. package/uni-ui/lib/uni-search-bar/style.css +0 -59
  751. package/uni-ui/lib/uni-search-bar/style.scss +0 -70
  752. package/uni-ui/lib/uni-section/style.css +0 -55
  753. package/uni-ui/lib/uni-section/style.scss +0 -65
  754. package/uni-ui/lib/uni-segmented-control/style.css +0 -48
  755. package/uni-ui/lib/uni-segmented-control/style.scss +0 -55
  756. package/uni-ui/lib/uni-status-bar/style.css +0 -4
  757. package/uni-ui/lib/uni-steps/style.css +0 -152
  758. package/uni-ui/lib/uni-steps/style.scss +0 -179
  759. package/uni-ui/lib/uni-swipe-action-item/style.css +0 -90
  760. package/uni-ui/lib/uni-swipe-action-item/style.scss +0 -112
  761. package/uni-ui/lib/uni-swiper-dot/style.css +0 -75
  762. package/uni-ui/lib/uni-swiper-dot/style.scss +0 -95
  763. package/uni-ui/lib/uni-table/style.css +0 -123
  764. package/uni-ui/lib/uni-table/style.scss +0 -152
  765. package/uni-ui/lib/uni-tag/style.css +0 -105
  766. package/uni-ui/lib/uni-tag/style.scss +0 -141
  767. package/uni-ui/lib/uni-td/style.css +0 -13
  768. package/uni-ui/lib/uni-td/style.scss +0 -17
  769. package/uni-ui/lib/uni-th/style.css +0 -63
  770. package/uni-ui/lib/uni-th/style.scss +0 -78
  771. package/uni-ui/lib/uni-thead/style.css +0 -30
  772. package/uni-ui/lib/uni-thead/style.scss +0 -52
  773. package/uni-ui/lib/uni-tr/style.css +0 -25
  774. package/uni-ui/lib/uni-tr/style.scss +0 -46
  775. package/uview-plus/components/u-action-sheet/style.css +0 -56
  776. package/uview-plus/components/u-action-sheet/style.scss +0 -83
  777. package/uview-plus/components/u-action-sheet-data/style.css +0 -10
  778. package/uview-plus/components/u-action-sheet-data/style.scss +0 -12
  779. package/uview-plus/components/u-agreement/style.css +0 -10
  780. package/uview-plus/components/u-agreement/style.scss +0 -12
  781. package/uview-plus/components/u-album/style.css +0 -29
  782. package/uview-plus/components/u-alert/style.css +0 -90
  783. package/uview-plus/components/u-alert/style.scss +0 -111
  784. package/uview-plus/components/u-avatar/style.css +0 -21
  785. package/uview-plus/components/u-avatar/style.scss +0 -24
  786. package/uview-plus/components/u-avatar-group/style.css +0 -28
  787. package/uview-plus/components/u-avatar-group/style.scss +0 -26
  788. package/uview-plus/components/u-back-top/style.css +0 -16
  789. package/uview-plus/components/u-back-top/style.scss +0 -18
  790. package/uview-plus/components/u-badge/style.css +0 -57
  791. package/uview-plus/components/u-badge/style.scss +0 -83
  792. package/uview-plus/components/u-box/style.css +0 -51
  793. package/uview-plus/components/u-box/style.scss +0 -36
  794. package/uview-plus/components/u-button/style.css +0 -192
  795. package/uview-plus/components/u-calendar/style.css +0 -3
  796. package/uview-plus/components/u-calendar/style.scss +0 -5
  797. package/uview-plus/components/u-calendar-wu/style.css +0 -196
  798. package/uview-plus/components/u-car-keyboard/style.css +0 -69
  799. package/uview-plus/components/u-car-keyboard/style.scss +0 -89
  800. package/uview-plus/components/u-card/style.css +0 -34
  801. package/uview-plus/components/u-card/style.scss +0 -45
  802. package/uview-plus/components/u-cascader/style.css +0 -16
  803. package/uview-plus/components/u-cascader/style.scss +0 -25
  804. package/uview-plus/components/u-cate-tab/style.css +0 -98
  805. package/uview-plus/components/u-cate-tab/style.scss +0 -115
  806. package/uview-plus/components/u-cell/style.css +0 -112
  807. package/uview-plus/components/u-cell/style.scss +0 -148
  808. package/uview-plus/components/u-cell-group/style.css +0 -14
  809. package/uview-plus/components/u-cell-group/style.scss +0 -22
  810. package/uview-plus/components/u-checkbox/style.css +0 -77
  811. package/uview-plus/components/u-checkbox/style.scss +0 -102
  812. package/uview-plus/components/u-checkbox-group/style.css +0 -12
  813. package/uview-plus/components/u-checkbox-group/style.scss +0 -12
  814. package/uview-plus/components/u-choose/style.css +0 -13
  815. package/uview-plus/components/u-choose/style.scss +0 -17
  816. package/uview-plus/components/u-circle-progress/style.css +0 -69
  817. package/uview-plus/components/u-circle-progress/style.scss +0 -84
  818. package/uview-plus/components/u-city-locate/style.css +0 -20
  819. package/uview-plus/components/u-city-locate/style.scss +0 -20
  820. package/uview-plus/components/u-code-input/style.css +0 -68
  821. package/uview-plus/components/u-code-input/style.scss +0 -75
  822. package/uview-plus/components/u-col/style.css +0 -50
  823. package/uview-plus/components/u-col/style.scss +0 -65
  824. package/uview-plus/components/u-collapse-item/style.css +0 -10
  825. package/uview-plus/components/u-collapse-item/style.scss +0 -13
  826. package/uview-plus/components/u-color-picker/style.css +0 -246
  827. package/uview-plus/components/u-color-picker/style.scss +0 -299
  828. package/uview-plus/components/u-column-notice/style.css +0 -37
  829. package/uview-plus/components/u-column-notice/style.scss +0 -33
  830. package/uview-plus/components/u-count-down/style.css +0 -5
  831. package/uview-plus/components/u-count-down/style.scss +0 -11
  832. package/uview-plus/components/u-count-to/style.css +0 -6
  833. package/uview-plus/components/u-count-to/style.scss +0 -6
  834. package/uview-plus/components/u-coupon/style.css +0 -214
  835. package/uview-plus/components/u-coupon/style.scss +0 -246
  836. package/uview-plus/components/u-cropper/style.css +0 -91
  837. package/uview-plus/components/u-cropper/style.scss +0 -93
  838. package/uview-plus/components/u-datetime-picker/style.css +0 -26
  839. package/uview-plus/components/u-datetime-picker/style.scss +0 -26
  840. package/uview-plus/components/u-divider/style.css +0 -17
  841. package/uview-plus/components/u-divider/style.scss +0 -22
  842. package/uview-plus/components/u-dragsort/style.css +0 -40
  843. package/uview-plus/components/u-dragsort/style.scss +0 -52
  844. package/uview-plus/components/u-dropdown/style.css +0 -66
  845. package/uview-plus/components/u-dropdown/style.scss +0 -66
  846. package/uview-plus/components/u-dropdown-item/style.css +0 -3
  847. package/uview-plus/components/u-dropdown-item/style.scss +0 -3
  848. package/uview-plus/components/u-empty/style.css +0 -27
  849. package/uview-plus/components/u-empty/style.scss +0 -22
  850. package/uview-plus/components/u-empty/u-empty-new.vue +0 -102
  851. package/uview-plus/components/u-float-button/style.css +0 -15
  852. package/uview-plus/components/u-float-button/style.scss +0 -15
  853. package/uview-plus/components/u-form-item/style.css +0 -82
  854. package/uview-plus/components/u-form-item/style.scss +0 -72
  855. package/uview-plus/components/u-goods-sku/style.css +0 -100
  856. package/uview-plus/components/u-goods-sku/style.scss +0 -120
  857. package/uview-plus/components/u-grid/style.css +0 -21
  858. package/uview-plus/components/u-grid/style.scss +0 -21
  859. package/uview-plus/components/u-grid-item/style.css +0 -30
  860. package/uview-plus/components/u-grid-item/style.scss +0 -43
  861. package/uview-plus/components/u-icon/style.css +0 -63
  862. package/uview-plus/components/u-icon/style.scss +0 -82
  863. package/uview-plus/components/u-image/style.css +0 -24
  864. package/uview-plus/components/u-image/style.scss +0 -32
  865. package/uview-plus/components/u-index-anchor/style.css +0 -22
  866. package/uview-plus/components/u-index-anchor/style.scss +0 -18
  867. package/uview-plus/components/u-index-list/style.css +0 -51
  868. package/uview-plus/components/u-index-list/style.scss +0 -52
  869. package/uview-plus/components/u-input/style.css +0 -64
  870. package/uview-plus/components/u-input/style.scss +0 -62
  871. package/uview-plus/components/u-keyboard/style.css +0 -26
  872. package/uview-plus/components/u-keyboard/style.scss +0 -29
  873. package/uview-plus/components/u-lazy-load/style.css +0 -12
  874. package/uview-plus/components/u-lazy-load/style.scss +0 -15
  875. package/uview-plus/components/u-line/style.css +0 -5
  876. package/uview-plus/components/u-line/style.scss +0 -5
  877. package/uview-plus/components/u-line-progress/style.css +0 -38
  878. package/uview-plus/components/u-line-progress/style.scss +0 -35
  879. package/uview-plus/components/u-link/style.css +0 -11
  880. package/uview-plus/components/u-link/style.scss +0 -10
  881. package/uview-plus/components/u-list/style.css +0 -6
  882. package/uview-plus/components/u-list/style.scss +0 -3
  883. package/uview-plus/components/u-list-item/style.css +0 -2
  884. package/uview-plus/components/u-list-item/style.scss +0 -2
  885. package/uview-plus/components/u-loading-icon/style.css +0 -138
  886. package/uview-plus/components/u-loading-icon/style.scss +0 -152
  887. package/uview-plus/components/u-loading-page/style.css +0 -33
  888. package/uview-plus/components/u-loading-page/style.scss +0 -35
  889. package/uview-plus/components/u-loadmore/style.css +0 -29
  890. package/uview-plus/components/u-loadmore/style.scss +0 -27
  891. package/uview-plus/components/u-markdown/style.css +0 -188
  892. package/uview-plus/components/u-markdown/style.scss +0 -199
  893. package/uview-plus/components/u-message-input/style.css +0 -115
  894. package/uview-plus/components/u-message-input/style.scss +0 -134
  895. package/uview-plus/components/u-modal/style.css +0 -63
  896. package/uview-plus/components/u-modal/style.scss +0 -68
  897. package/uview-plus/components/u-navbar/style.css +0 -51
  898. package/uview-plus/components/u-navbar/style.scss +0 -56
  899. package/uview-plus/components/u-navbar-mini/style.css +0 -34
  900. package/uview-plus/components/u-navbar-mini/style.scss +0 -36
  901. package/uview-plus/components/u-no-network/style.css +0 -38
  902. package/uview-plus/components/u-no-network/style.scss +0 -34
  903. package/uview-plus/components/u-notice-bar/style.css +0 -5
  904. package/uview-plus/components/u-notice-bar/style.scss +0 -5
  905. package/uview-plus/components/u-notice-bar/u-notice-bar2.vue +0 -102
  906. package/uview-plus/components/u-notify/style.css +0 -28
  907. package/uview-plus/components/u-notify/style.scss +0 -38
  908. package/uview-plus/components/u-number-box/style.css +0 -56
  909. package/uview-plus/components/u-number-box/style.scss +0 -68
  910. package/uview-plus/components/u-number-keyboard/style.css +0 -45
  911. package/uview-plus/components/u-number-keyboard/style.scss +0 -61
  912. package/uview-plus/components/u-overlay/style.css +0 -8
  913. package/uview-plus/components/u-overlay/style.scss +0 -13
  914. package/uview-plus/components/u-pagination/style.css +0 -46
  915. package/uview-plus/components/u-pagination/style.scss +0 -51
  916. package/uview-plus/components/u-pdf-reader/style.css +0 -2
  917. package/uview-plus/components/u-pdf-reader/style.scss +0 -2
  918. package/uview-plus/components/u-picker/style.css +0 -58
  919. package/uview-plus/components/u-picker/style.scss +0 -54
  920. package/uview-plus/components/u-picker-data/style.css +0 -11
  921. package/uview-plus/components/u-picker-data/style.scss +0 -13
  922. package/uview-plus/components/u-popover/style.css +0 -8
  923. package/uview-plus/components/u-popover/style.scss +0 -7
  924. package/uview-plus/components/u-popup/style.css +0 -87
  925. package/uview-plus/components/u-popup/style.scss +0 -106
  926. package/uview-plus/components/u-poster/style.css +0 -22
  927. package/uview-plus/components/u-poster/style.scss +0 -26
  928. package/uview-plus/components/u-pull-refresh/style.css +0 -51
  929. package/uview-plus/components/u-pull-refresh/style.scss +0 -58
  930. package/uview-plus/components/u-qrcode/style.css +0 -33
  931. package/uview-plus/components/u-qrcode/style.scss +0 -33
  932. package/uview-plus/components/u-radio/style.css +0 -77
  933. package/uview-plus/components/u-radio/style.scss +0 -101
  934. package/uview-plus/components/u-radio-group/style.css +0 -15
  935. package/uview-plus/components/u-radio-group/style.scss +0 -14
  936. package/uview-plus/components/u-rate/style.css +0 -32
  937. package/uview-plus/components/u-rate/style.scss +0 -37
  938. package/uview-plus/components/u-read-more/style.css +0 -23
  939. package/uview-plus/components/u-read-more/style.scss +0 -21
  940. package/uview-plus/components/u-row/style.css +0 -6
  941. package/uview-plus/components/u-row/style.scss +0 -3
  942. package/uview-plus/components/u-row-notice/style.css +0 -50
  943. package/uview-plus/components/u-row-notice/style.scss +0 -49
  944. package/uview-plus/components/u-safe-bottom/style.css +0 -5
  945. package/uview-plus/components/u-safe-bottom/style.scss +0 -5
  946. package/uview-plus/components/u-scroll-list/style.css +0 -35
  947. package/uview-plus/components/u-scroll-list/style.scss +0 -32
  948. package/uview-plus/components/u-search/style.css +0 -87
  949. package/uview-plus/components/u-search/style.scss +0 -105
  950. package/uview-plus/components/u-select/style.css +0 -51
  951. package/uview-plus/components/u-select/style.scss +0 -47
  952. package/uview-plus/components/u-short-video/style.css +0 -117
  953. package/uview-plus/components/u-short-video/style.scss +0 -138
  954. package/uview-plus/components/u-signature/style.css +0 -70
  955. package/uview-plus/components/u-signature/style.scss +0 -88
  956. package/uview-plus/components/u-skeleton/style.css +0 -51
  957. package/uview-plus/components/u-skeleton/style.scss +0 -57
  958. package/uview-plus/components/u-sku-wu/style.css +0 -271
  959. package/uview-plus/components/u-slider/style.css +0 -69
  960. package/uview-plus/components/u-slider/style.scss +0 -76
  961. package/uview-plus/components/u-status-bar/style.css +0 -5
  962. package/uview-plus/components/u-status-bar/style.scss +0 -6
  963. package/uview-plus/components/u-steps/style.css +0 -20
  964. package/uview-plus/components/u-steps/style.scss +0 -21
  965. package/uview-plus/components/u-steps-item/style.css +0 -112
  966. package/uview-plus/components/u-steps-item/style.scss +0 -116
  967. package/uview-plus/components/u-sticky/style.css +0 -5
  968. package/uview-plus/components/u-sticky/style.scss +0 -6
  969. package/uview-plus/components/u-subsection/style.css +0 -101
  970. package/uview-plus/components/u-subsection/style.scss +0 -121
  971. package/uview-plus/components/u-swipe-action-item/style.css +0 -51
  972. package/uview-plus/components/u-swipe-action-item/style.scss +0 -44
  973. package/uview-plus/components/u-swiper/style.css +0 -50
  974. package/uview-plus/components/u-swiper/style.scss +0 -51
  975. package/uview-plus/components/u-swiper-indicator/style.css +0 -26
  976. package/uview-plus/components/u-swiper-indicator/style.scss +0 -29
  977. package/uview-plus/components/u-switch/style.css +0 -47
  978. package/uview-plus/components/u-switch/style.scss +0 -46
  979. package/uview-plus/components/u-tabbar/style.css +0 -29
  980. package/uview-plus/components/u-tabbar/style.scss +0 -23
  981. package/uview-plus/components/u-tabbar-item/style.css +0 -59
  982. package/uview-plus/components/u-tabbar-item/style.scss +0 -62
  983. package/uview-plus/components/u-table2/style.css +0 -90
  984. package/uview-plus/components/u-table2/style.scss +0 -117
  985. package/uview-plus/components/u-tabs/style.css +0 -62
  986. package/uview-plus/components/u-tabs/style.scss +0 -60
  987. package/uview-plus/components/u-tag/style.css +0 -169
  988. package/uview-plus/components/u-tag/style.scss +0 -204
  989. package/uview-plus/components/u-td/style.css +0 -14
  990. package/uview-plus/components/u-td/style.scss +0 -11
  991. package/uview-plus/components/u-text/style.css +0 -50
  992. package/uview-plus/components/u-text/style.scss +0 -56
  993. package/uview-plus/components/u-text/style2.scss +0 -60
  994. package/uview-plus/components/u-textarea/style.css +0 -35
  995. package/uview-plus/components/u-textarea/style.scss +0 -37
  996. package/uview-plus/components/u-th/style.css +0 -13
  997. package/uview-plus/components/u-th/style.scss +0 -10
  998. package/uview-plus/components/u-title/style.css +0 -8
  999. package/uview-plus/components/u-title/style.scss +0 -10
  1000. package/uview-plus/components/u-toast/style.css +0 -67
  1001. package/uview-plus/components/u-toast/style.scss +0 -106
  1002. package/uview-plus/components/u-toolbar/style.css +0 -33
  1003. package/uview-plus/components/u-toolbar/style.scss +0 -35
  1004. package/uview-plus/components/u-tooltip/style.css +0 -65
  1005. package/uview-plus/components/u-tooltip/style.scss +0 -62
  1006. package/uview-plus/components/u-tr/style.css +0 -6
  1007. package/uview-plus/components/u-tr/style.scss +0 -3
  1008. package/uview-plus/components/u-transition/style.css +0 -98
  1009. package/uview-plus/components/u-transition/style.scss +0 -120
  1010. package/uview-plus/components/u-upload/style.css +0 -174
  1011. package/uview-plus/components/u-upload/style.scss +0 -221
  1012. package/uview-plus/components/u-view/style.css +0 -2
  1013. package/uview-plus/components/u-view/style.scss +0 -2
  1014. package/uview-plus/components/u-virtual-list/style.css +0 -16
  1015. package/uview-plus/components/u-virtual-list/style.scss +0 -16
  1016. package/uview-plus/components/u-waterfall/style.css +0 -28
  1017. package/uview-plus/components/u-waterfall/style.scss +0 -25
  1018. /package/{uni-ui/lib/uni-forms/style.css → other/lime-painter2/components/lime-painter/qrcode.js} +0 -0
  1019. /package/{ui-fireui copy/components/u-countdown/u-countdown.vue → ui-fireui/components/u-count-down/u-count-down.vue} +0 -0
  1020. /package/{plugins → uview-plus/libs/ctocode}/MessageBox.js +0 -0
@@ -0,0 +1,1618 @@
1
+ <!--
2
+ * qiun-data-charts 秋云高性能跨全端图表组件 v2.3.3-20210706
3
+ * Copyright (c) 2021 QIUN® 秋云 https://www.ucharts.cn All rights reserved.
4
+ * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
5
+ * 复制使用请保留本段注释,感谢支持开源!
6
+ * 为方便更多开发者使用,如有更好的建议请提交码云 Pull Requests !
7
+ *
8
+ * uCharts®官方网站
9
+ * https://www.uCharts.cn
10
+ *
11
+ * 开源地址:
12
+ * https://gitee.com/uCharts/uCharts
13
+ *
14
+ * uni-app插件市场地址:
15
+ * http://ext.dcloud.net.cn/plugin?id=271
16
+ *
17
+ -->
18
+ <template>
19
+ <view class="chartsview" :id="'ChartBoxId' + cid">
20
+ <view v-if="mixinDatacomLoading">
21
+ <!-- 自定义加载状态,请改这里 -->
22
+ <qiun-loading :loadingType="loadingType" />
23
+ </view>
24
+ <view v-if="mixinDatacomErrorMessage && errorShow" @tap="reloading">
25
+ <!-- 自定义错误提示,请改这里 -->
26
+ <qiun-error :errorMessage="errorMessage" />
27
+ </view>
28
+ <!-- APP和H5采用renderjs渲染图表 -->
29
+ <!-- #ifdef APP-VUE || H5 -->
30
+ <template v-if="echarts">
31
+ <view
32
+ :style="{ background: background }"
33
+ style="width: 100%; height: 100%"
34
+ :data-directory="directory"
35
+ :id="'EC' + cid"
36
+ :prop="echartsOpts"
37
+ :change:prop="rdcharts.ecinit"
38
+ :resize="echartsResize"
39
+ :change:resize="rdcharts.ecresize"
40
+ v-show="showchart"
41
+ />
42
+ </template>
43
+ <template v-else>
44
+ <view
45
+ @tap="rdcharts.tap"
46
+ @mousemove="rdcharts.mouseMove"
47
+ @mousedown="rdcharts.mouseDown"
48
+ @mouseup="rdcharts.mouseUp"
49
+ @touchstart="rdcharts.touchStart"
50
+ @touchmove="rdcharts.touchMove"
51
+ @touchend="rdcharts.touchEnd"
52
+ :id="'UC' + cid"
53
+ :prop="uchartsOpts"
54
+ :change:prop="rdcharts.ucinit"
55
+ >
56
+ <canvas
57
+ :id="cid"
58
+ :canvasId="cid"
59
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
60
+ :disable-scroll="disableScroll"
61
+ @error="_error"
62
+ v-show="showchart"
63
+ />
64
+ </view>
65
+ </template>
66
+ <!-- #endif -->
67
+ <!-- 支付宝小程序 -->
68
+ <!-- #ifdef MP-ALIPAY -->
69
+ <template v-if="ontouch">
70
+ <canvas
71
+ :id="cid"
72
+ :canvasId="cid"
73
+ :width="cWidth * pixel"
74
+ :height="cHeight * pixel"
75
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
76
+ :disable-scroll="disScroll"
77
+ @tap="_tap"
78
+ @touchstart="_touchStart"
79
+ @touchmove="_touchMove"
80
+ @touchend="_touchEnd"
81
+ @error="_error"
82
+ v-show="showchart"
83
+ />
84
+ </template>
85
+ <template v-if="!ontouch">
86
+ <canvas
87
+ :id="cid"
88
+ :canvasId="cid"
89
+ :width="cWidth * pixel"
90
+ :height="cHeight * pixel"
91
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
92
+ :disable-scroll="disScroll"
93
+ @tap="_tap"
94
+ @error="_error"
95
+ v-show="showchart"
96
+ />
97
+ </template>
98
+ <!-- #endif -->
99
+ <!-- 其他小程序通过vue渲染图表 -->
100
+ <!-- #ifdef MP-360 || MP-BAIDU || MP-QQ || MP-TOUTIAO || MP-WEIXIN -->
101
+ <template v-if="type2d">
102
+ <view v-if="ontouch" @tap="_tap">
103
+ <canvas
104
+ :id="cid"
105
+ :canvasId="cid"
106
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
107
+ type="2d"
108
+ :disable-scroll="disScroll"
109
+ @touchstart="_touchStart"
110
+ @touchmove="_touchMove"
111
+ @touchend="_touchEnd"
112
+ @error="_error"
113
+ v-show="showchart"
114
+ />
115
+ </view>
116
+ <view v-if="!ontouch" @tap="_tap">
117
+ <canvas
118
+ :id="cid"
119
+ :canvasId="cid"
120
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
121
+ type="2d"
122
+ :disable-scroll="disScroll"
123
+ @error="_error"
124
+ v-show="showchart"
125
+ />
126
+ </view>
127
+ </template>
128
+ <template v-if="!type2d">
129
+ <view v-if="ontouch" @tap="_tap">
130
+ <canvas
131
+ :id="cid"
132
+ :canvasId="cid"
133
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
134
+ @touchstart="_touchStart"
135
+ @touchmove="_touchMove"
136
+ @touchend="_touchEnd"
137
+ :disable-scroll="disScroll"
138
+ @error="_error"
139
+ v-if="showchart"
140
+ />
141
+ </view>
142
+ <view v-if="!ontouch">
143
+ <canvas
144
+ :id="cid"
145
+ :canvasId="cid"
146
+ :style="{ width: cWidth + 'px', height: cHeight + 'px', background: background }"
147
+ :disable-scroll="disScroll"
148
+ @tap="_tap"
149
+ @error="_error"
150
+ v-if="showchart"
151
+ />
152
+ </view>
153
+ </template>
154
+ <!-- #endif -->
155
+ </view>
156
+ </template>
157
+ <script>
158
+ import uCharts from '@10yun/cv-mobile-ui/ui-sdks/u-charts/u-charts.js';
159
+ import cfu from '@10yun/cv-mobile-ui/ui-sdks/u-charts/config-ucharts.js';
160
+ // #ifdef APP-VUE || H5
161
+ import cfe from '@10yun/cv-mobile-ui/ui-sdks/u-charts/config-echarts.js';
162
+ // #endif
163
+
164
+ function deepCloneAssign(origin = {}, ...args) {
165
+ for (let i in args) {
166
+ for (let key in args[i]) {
167
+ if (args[i].hasOwnProperty(key)) {
168
+ origin[key] =
169
+ args[i][key] && typeof args[i][key] === 'object'
170
+ ? deepCloneAssign(Array.isArray(args[i][key]) ? [] : {}, origin[key], args[i][key])
171
+ : args[i][key];
172
+ }
173
+ }
174
+ }
175
+ return origin;
176
+ }
177
+
178
+ function formatterAssign(args, formatter) {
179
+ for (let key in args) {
180
+ if (args[key] !== null && typeof args[key] === 'object') {
181
+ formatterAssign(args[key], formatter);
182
+ } else if (key === 'format' && typeof args[key] === 'string') {
183
+ args['formatter'] = formatter[args[key]] ? formatter[args[key]] : undefined;
184
+ }
185
+ }
186
+ return args;
187
+ }
188
+
189
+ // 时间转换函数,为了匹配uniClinetDB读取出的时间与categories不同
190
+ function getFormatDate(date) {
191
+ var seperator = '-';
192
+ var year = date.getFullYear();
193
+ var month = date.getMonth() + 1;
194
+ var strDate = date.getDate();
195
+ if (month >= 1 && month <= 9) {
196
+ month = '0' + month;
197
+ }
198
+ if (strDate >= 0 && strDate <= 9) {
199
+ strDate = '0' + strDate;
200
+ }
201
+ var currentdate = year + seperator + month + seperator + strDate;
202
+ return currentdate;
203
+ }
204
+
205
+ var lastMoveTime = null;
206
+ /**
207
+ * 防抖
208
+ *
209
+ * @param { Function } fn 要执行的方法
210
+ * @param { Number } wait 防抖多少毫秒
211
+ *
212
+ * 在 vue 中使用(注意:不能使用箭头函数,否则this指向不对,并且不能再次封装如:
213
+ * move(){ // 错误调用方式
214
+ * debounce(function () {
215
+ * console.log(this.title);
216
+ * }, 1000)});
217
+ * 应该直接使用:// 正确调用方式
218
+ * move: debounce(function () {
219
+ * console.log(this.title);
220
+ * }, 1000)
221
+ */
222
+ function debounce(fn, wait) {
223
+ let timer = false;
224
+ return function () {
225
+ clearTimeout(timer);
226
+ timer && clearTimeout(timer);
227
+ timer = setTimeout(() => {
228
+ timer = false;
229
+ fn.apply(this, arguments); // 把参数传进去
230
+ }, wait);
231
+ };
232
+ }
233
+
234
+ export default {
235
+ name: 'qiun-data-charts',
236
+ mixins: [uniCloud.mixinDatacom],
237
+ props: {
238
+ type: {
239
+ type: String,
240
+ default: null
241
+ },
242
+ canvasId: {
243
+ type: String,
244
+ default: 'uchartsid'
245
+ },
246
+ canvas2d: {
247
+ type: Boolean,
248
+ default: false
249
+ },
250
+ background: {
251
+ type: String,
252
+ default: 'none'
253
+ },
254
+ animation: {
255
+ type: Boolean,
256
+ default: true
257
+ },
258
+ chartData: {
259
+ type: Object,
260
+ default() {
261
+ return {
262
+ categories: [],
263
+ series: []
264
+ };
265
+ }
266
+ },
267
+ opts: {
268
+ type: Object,
269
+ default() {
270
+ return {};
271
+ }
272
+ },
273
+ eopts: {
274
+ type: Object,
275
+ default() {
276
+ return {};
277
+ }
278
+ },
279
+ loadingType: {
280
+ type: Number,
281
+ default: 2
282
+ },
283
+ errorShow: {
284
+ type: Boolean,
285
+ default: true
286
+ },
287
+ errorReload: {
288
+ type: Boolean,
289
+ default: true
290
+ },
291
+ errorMessage: {
292
+ type: String,
293
+ default: null
294
+ },
295
+ inScrollView: {
296
+ type: Boolean,
297
+ default: false
298
+ },
299
+ reshow: {
300
+ type: Boolean,
301
+ default: false
302
+ },
303
+ reload: {
304
+ type: Boolean,
305
+ default: false
306
+ },
307
+ disableScroll: {
308
+ type: Boolean,
309
+ default: false
310
+ },
311
+ ontap: {
312
+ type: Boolean,
313
+ default: true
314
+ },
315
+ ontouch: {
316
+ type: Boolean,
317
+ default: false
318
+ },
319
+ onmouse: {
320
+ type: Boolean,
321
+ default: true
322
+ },
323
+ onmovetip: {
324
+ type: Boolean,
325
+ default: false
326
+ },
327
+ echartsH5: {
328
+ type: Boolean,
329
+ default: false
330
+ },
331
+ echartsApp: {
332
+ type: Boolean,
333
+ default: false
334
+ },
335
+ tooltipShow: {
336
+ type: Boolean,
337
+ default: true
338
+ },
339
+ tooltipFormat: {
340
+ type: String,
341
+ default: undefined
342
+ },
343
+ tooltipCustom: {
344
+ type: Object,
345
+ default: undefined
346
+ },
347
+ startDate: {
348
+ type: String,
349
+ default: undefined
350
+ },
351
+ endDate: {
352
+ type: String,
353
+ default: undefined
354
+ },
355
+ textEnum: {
356
+ type: Array,
357
+ default() {
358
+ return [];
359
+ }
360
+ },
361
+ groupEnum: {
362
+ type: Array,
363
+ default() {
364
+ return [];
365
+ }
366
+ },
367
+ pageScrollTop: {
368
+ type: Number,
369
+ default: 0
370
+ },
371
+ directory: {
372
+ type: String,
373
+ default: '/'
374
+ },
375
+ tapLegend: {
376
+ type: Boolean,
377
+ default: true
378
+ }
379
+ },
380
+ data() {
381
+ return {
382
+ cid: 'uchartsid',
383
+ inWx: false,
384
+ inAli: false,
385
+ inTt: false,
386
+ inBd: false,
387
+ inH5: false,
388
+ inApp: false,
389
+ inWin: false,
390
+ type2d: true,
391
+ disScroll: false,
392
+ openmouse: false,
393
+ pixel: 1,
394
+ cWidth: 375,
395
+ cHeight: 250,
396
+ showchart: false,
397
+ echarts: false,
398
+ echartsResize: false,
399
+ uchartsOpts: {},
400
+ echartsOpts: {},
401
+ drawData: {},
402
+ lastDrawTime: null
403
+ };
404
+ },
405
+ created() {
406
+ this.cid = this.canvasId;
407
+ if (this.canvasId == 'uchartsid' || this.canvasId == '') {
408
+ let t = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
409
+ let len = t.length;
410
+ let id = '';
411
+ for (let i = 0; i < 32; i++) {
412
+ id += t.charAt(Math.floor(Math.random() * len));
413
+ }
414
+ this.cid = id;
415
+ }
416
+ const systemInfo = uni.getSystemInfoSync();
417
+ if (systemInfo.platform === 'windows') {
418
+ this.inWin = true;
419
+ }
420
+ // #ifdef MP-WEIXIN
421
+ this.inWx = true;
422
+ if (this.canvas2d === false || systemInfo.platform === 'windows') {
423
+ this.type2d = false;
424
+ } else {
425
+ this.pixel = systemInfo.pixelRatio;
426
+ if (this.canvasId === 'uchartsid' || this.canvasId == '') {
427
+ console.log('[uCharts]:开启canvas2d模式,必须指定canvasId,否则会出现偶尔获取不到dom节点的问题!');
428
+ }
429
+ }
430
+ // #endif
431
+ //非微信小程序端强制关闭canvas2d模式
432
+ // #ifndef MP-WEIXIN
433
+ this.type2d = false;
434
+ // #endif
435
+ // #ifdef MP-ALIPAY
436
+ this.inAli = true;
437
+ this.pixel = systemInfo.pixelRatio;
438
+ // #endif
439
+ // #ifdef MP-BAIDU
440
+ this.inBd = true;
441
+ // #endif
442
+ // #ifdef MP-TOUTIAO
443
+ this.inTt = true;
444
+ // #endif
445
+ this.disScroll = this.disableScroll;
446
+ },
447
+ mounted() {
448
+ // #ifdef APP-VUE
449
+ this.inApp = true;
450
+ if (this.echartsApp === true) {
451
+ this.echarts = true;
452
+ this.openmouse = false;
453
+ }
454
+ // #endif
455
+ // #ifdef APP-NVUE
456
+ this.inApp = true;
457
+ this.mixinDatacomLoading = false;
458
+ this.mixinDatacomErrorMessage = '暂不支持NVUE';
459
+ // #endif
460
+ // #ifdef H5
461
+ this.inH5 = true;
462
+ if (this.inWin === true) {
463
+ this.openmouse = this.onmouse;
464
+ }
465
+ if (this.echartsH5 === true) {
466
+ this.echarts = true;
467
+ }
468
+ // #endif
469
+ this.$nextTick(() => {
470
+ this.beforeInit();
471
+ });
472
+ // #ifndef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || APP-VUE
473
+ const time = this.inH5 ? 500 : 200;
474
+ const _this = this;
475
+ uni.onWindowResize(
476
+ debounce(function (res) {
477
+ if (_this.mixinDatacomLoading == true) {
478
+ return;
479
+ }
480
+ let errmsg = _this.mixinDatacomErrorMessage;
481
+ if (errmsg !== null && errmsg !== 'null' && errmsg !== '') {
482
+ return;
483
+ }
484
+ if (_this.echarts) {
485
+ _this.echartsResize = !_this.echartsResize;
486
+ } else {
487
+ _this.resizeHandler();
488
+ }
489
+ }, time)
490
+ );
491
+ // #endif
492
+ },
493
+ destroyed() {
494
+ if (this.echarts === true) {
495
+ delete cfe.option[this.cid];
496
+ delete cfe.instance[this.cid];
497
+ } else {
498
+ delete cfu.option[this.cid];
499
+ delete cfu.instance[this.cid];
500
+ }
501
+ // #ifndef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO
502
+ uni.offWindowResize(() => {});
503
+ // #endif
504
+ },
505
+ watch: {
506
+ chartDataProps: {
507
+ handler(val, oldval) {
508
+ if (typeof val === 'object') {
509
+ if (JSON.stringify(val) !== JSON.stringify(oldval)) {
510
+ if (val.series && val.series.length > 0) {
511
+ this.beforeInit();
512
+ } else {
513
+ this.mixinDatacomLoading = true;
514
+ this._clearChart();
515
+ this.showchart = false;
516
+ this.mixinDatacomErrorMessage = null;
517
+ }
518
+ }
519
+ } else {
520
+ this.mixinDatacomLoading = false;
521
+ this._clearChart();
522
+ this.showchart = false;
523
+ this.mixinDatacomErrorMessage = '参数错误:chartData数据类型错误';
524
+ }
525
+ },
526
+ immediate: false,
527
+ deep: true
528
+ },
529
+ localdata: {
530
+ handler(val, oldval) {
531
+ if (JSON.stringify(val) !== JSON.stringify(oldval)) {
532
+ if (val.length > 0) {
533
+ this.beforeInit();
534
+ } else {
535
+ this.mixinDatacomLoading = true;
536
+ this._clearChart();
537
+ this.showchart = false;
538
+ this.mixinDatacomErrorMessage = null;
539
+ }
540
+ }
541
+ },
542
+ immediate: false,
543
+ deep: true
544
+ },
545
+ optsProps: {
546
+ handler(val, oldval) {
547
+ if (typeof val === 'object') {
548
+ if (JSON.stringify(val) !== JSON.stringify(oldval) && this.echarts === false) {
549
+ this.checkData(this.drawData);
550
+ }
551
+ } else {
552
+ this.mixinDatacomLoading = false;
553
+ this._clearChart();
554
+ this.showchart = false;
555
+ this.mixinDatacomErrorMessage = '参数错误:opts数据类型错误';
556
+ }
557
+ },
558
+ immediate: false,
559
+ deep: true
560
+ },
561
+ eoptsProps: {
562
+ handler(val, oldval) {
563
+ if (typeof val === 'object') {
564
+ if (JSON.stringify(val) !== JSON.stringify(oldval) && this.echarts === true) {
565
+ this.checkData(this.drawData);
566
+ }
567
+ } else {
568
+ this.mixinDatacomLoading = false;
569
+ this.showchart = false;
570
+ this.mixinDatacomErrorMessage = '参数错误:eopts数据类型错误';
571
+ }
572
+ },
573
+ immediate: false,
574
+ deep: true
575
+ },
576
+ reshow(val, oldval) {
577
+ if (val === true && this.mixinDatacomLoading === false) {
578
+ setTimeout(() => {
579
+ this.mixinDatacomErrorMessage = null;
580
+ this.echartsResize = !this.echartsResize;
581
+ this.checkData(this.drawData);
582
+ }, 200);
583
+ }
584
+ },
585
+ reload(val, oldval) {
586
+ if (val === true) {
587
+ this.showchart = false;
588
+ this.mixinDatacomErrorMessage = null;
589
+ this.reloading();
590
+ }
591
+ },
592
+ mixinDatacomErrorMessage(val, oldval) {
593
+ if (val) {
594
+ this.emitMsg({
595
+ name: 'error',
596
+ params: {
597
+ type: 'error',
598
+ errorShow: this.errorShow,
599
+ msg: val,
600
+ id: this.cid
601
+ }
602
+ });
603
+ if (this.errorShow) {
604
+ console.log('[秋云图表组件]' + val);
605
+ }
606
+ }
607
+ },
608
+ errorMessage(val, oldval) {
609
+ if (val && this.errorShow && val !== null && val !== 'null' && val !== '') {
610
+ this.showchart = false;
611
+ this.mixinDatacomLoading = false;
612
+ this.mixinDatacomErrorMessage = val;
613
+ } else {
614
+ this.showchart = false;
615
+ this.mixinDatacomErrorMessage = null;
616
+ this.reloading();
617
+ }
618
+ }
619
+ },
620
+ computed: {
621
+ optsProps() {
622
+ return JSON.parse(JSON.stringify(this.opts));
623
+ },
624
+ eoptsProps() {
625
+ return JSON.parse(JSON.stringify(this.eopts));
626
+ },
627
+ chartDataProps() {
628
+ return JSON.parse(JSON.stringify(this.chartData));
629
+ }
630
+ },
631
+ methods: {
632
+ beforeInit() {
633
+ this.mixinDatacomErrorMessage = null;
634
+ if (
635
+ typeof this.chartData === 'object' &&
636
+ this.chartData != null &&
637
+ this.chartData.series !== undefined &&
638
+ this.chartData.series.length > 0
639
+ ) {
640
+ //拷贝一下chartData,为了opts变更后统一数据来源
641
+ this.drawData = deepCloneAssign({}, this.chartData);
642
+ this.mixinDatacomLoading = false;
643
+ this.showchart = true;
644
+ this.checkData(this.chartData);
645
+ } else if (this.localdata.length > 0) {
646
+ this.mixinDatacomLoading = false;
647
+ this.showchart = true;
648
+ this.localdataInit(this.localdata);
649
+ } else if (this.collection !== '') {
650
+ this.mixinDatacomLoading = false;
651
+ this.getCloudData();
652
+ } else {
653
+ this.mixinDatacomLoading = true;
654
+ }
655
+ },
656
+ localdataInit(resdata) {
657
+ //替换enum类型为正确的描述
658
+ if (this.groupEnum.length > 0) {
659
+ for (let i = 0; i < resdata.length; i++) {
660
+ for (let j = 0; j < this.groupEnum.length; j++) {
661
+ if (resdata[i].group === this.groupEnum[j].value) {
662
+ resdata[i].group = this.groupEnum[j].text;
663
+ }
664
+ }
665
+ }
666
+ }
667
+ if (this.textEnum.length > 0) {
668
+ for (let i = 0; i < resdata.length; i++) {
669
+ for (let j = 0; j < this.textEnum.length; j++) {
670
+ if (resdata[i].text === this.textEnum[j].value) {
671
+ resdata[i].text = this.textEnum[j].text;
672
+ }
673
+ }
674
+ }
675
+ }
676
+ let needCategories = false;
677
+ let tmpData = { categories: [], series: [] };
678
+ let tmpcategories = [];
679
+ let tmpseries = [];
680
+ //拼接categories
681
+ if (this.echarts === true) {
682
+ needCategories = cfe.categories.includes(this.type);
683
+ } else {
684
+ needCategories = cfu.categories.includes(this.type);
685
+ }
686
+ if (needCategories === true) {
687
+ //如果props中的chartData带有categories,则优先使用chartData的categories
688
+ if (this.chartData && this.chartData.categories && this.chartData.categories.length > 0) {
689
+ tmpcategories = this.chartData.categories;
690
+ } else {
691
+ //如果是日期类型的数据,不管是本地数据还是云数据,都按起止日期自动拼接categories
692
+ if (this.startDate && this.endDate) {
693
+ let idate = new Date(this.startDate);
694
+ let edate = new Date(this.endDate);
695
+ while (idate <= edate) {
696
+ tmpcategories.push(getFormatDate(idate));
697
+ idate = idate.setDate(idate.getDate() + 1);
698
+ idate = new Date(idate);
699
+ }
700
+ //否则从结果中去重并拼接categories
701
+ } else {
702
+ let tempckey = {};
703
+ resdata.map(function (item, index) {
704
+ if (item.text != undefined && !tempckey[item.text]) {
705
+ tmpcategories.push(item.text);
706
+ tempckey[item.text] = true;
707
+ }
708
+ });
709
+ }
710
+ }
711
+ tmpData.categories = tmpcategories;
712
+ }
713
+ //拼接series
714
+ let tempskey = {};
715
+ resdata.map(function (item, index) {
716
+ if (item.group != undefined && !tempskey[item.group]) {
717
+ tmpseries.push({ name: item.group, data: [] });
718
+ tempskey[item.group] = true;
719
+ }
720
+ });
721
+ //如果没有获取到分组名称(可能是带categories的数据,也可能是不带的饼图类)
722
+ if (tmpseries.length == 0) {
723
+ tmpseries = [{ name: '默认分组', data: [] }];
724
+ //如果是需要categories的图表类型
725
+ if (needCategories === true) {
726
+ for (let j = 0; j < tmpcategories.length; j++) {
727
+ let seriesdata = 0;
728
+ for (let i = 0; i < resdata.length; i++) {
729
+ if (resdata[i].text == tmpcategories[j]) {
730
+ seriesdata = resdata[i].value;
731
+ }
732
+ }
733
+ tmpseries[0].data.push(seriesdata);
734
+ }
735
+ //如果是饼图类的图表类型
736
+ } else {
737
+ for (let i = 0; i < resdata.length; i++) {
738
+ tmpseries[0].data.push({
739
+ name: resdata[i].text,
740
+ value: resdata[i].value
741
+ });
742
+ }
743
+ }
744
+ //如果有分组名
745
+ } else {
746
+ for (let k = 0; k < tmpseries.length; k++) {
747
+ //如果有categories
748
+ if (tmpcategories.length > 0) {
749
+ for (let j = 0; j < tmpcategories.length; j++) {
750
+ let seriesdata = 0;
751
+ for (let i = 0; i < resdata.length; i++) {
752
+ if (tmpseries[k].name == resdata[i].group && resdata[i].text == tmpcategories[j]) {
753
+ seriesdata = resdata[i].value;
754
+ }
755
+ }
756
+ tmpseries[k].data.push(seriesdata);
757
+ }
758
+ //如果传了group而没有传text,即没有categories(正常情况下这种数据是不符合数据要求规范的)
759
+ } else {
760
+ for (let i = 0; i < resdata.length; i++) {
761
+ if (tmpseries[k].name == resdata[i].group) {
762
+ tmpseries[k].data.push(resdata[i].value);
763
+ }
764
+ }
765
+ }
766
+ }
767
+ }
768
+ tmpData.series = tmpseries;
769
+ //拷贝一下chartData,为了opts变更后统一数据来源
770
+ this.drawData = deepCloneAssign({}, tmpData);
771
+ this.checkData(tmpData);
772
+ },
773
+ reloading() {
774
+ if (this.errorReload === false) {
775
+ return;
776
+ }
777
+ this.showchart = false;
778
+ this.mixinDatacomErrorMessage = null;
779
+ if (this.collection !== '') {
780
+ this.mixinDatacomLoading = false;
781
+ this.onMixinDatacomPropsChange(true);
782
+ } else {
783
+ this.beforeInit();
784
+ }
785
+ },
786
+ checkData(anyData) {
787
+ let cid = this.cid;
788
+ //复位opts或eopts
789
+ if (this.echarts === true) {
790
+ cfe.option[cid] = deepCloneAssign({}, this.eopts);
791
+ cfe.option[cid].id = cid;
792
+ cfe.option[cid].type = this.type;
793
+ } else {
794
+ if (this.type && cfu.type.includes(this.type)) {
795
+ cfu.option[cid] = deepCloneAssign({}, cfu[this.type], this.opts);
796
+ cfu.option[cid].canvasId = cid;
797
+ } else {
798
+ this.mixinDatacomLoading = false;
799
+ this.showchart = false;
800
+ this.mixinDatacomErrorMessage = '参数错误:props参数中type类型不正确';
801
+ }
802
+ }
803
+ //挂载categories和series
804
+ let newData = deepCloneAssign({}, anyData);
805
+ if (newData.series !== undefined && newData.series.length > 0) {
806
+ this.mixinDatacomErrorMessage = null;
807
+ if (this.echarts === true) {
808
+ cfe.option[cid].chartData = newData;
809
+ this.$nextTick(() => {
810
+ this.init();
811
+ });
812
+ } else {
813
+ cfu.option[cid].categories = newData.categories;
814
+ cfu.option[cid].series = newData.series;
815
+ this.$nextTick(() => {
816
+ this.init();
817
+ });
818
+ }
819
+ }
820
+ },
821
+ resizeHandler() {
822
+ //渲染防抖
823
+ let currTime = Date.now();
824
+ let lastDrawTime = this.lastDrawTime ? this.lastDrawTime : currTime - 3000;
825
+ let duration = currTime - lastDrawTime;
826
+ if (duration < 1000) return;
827
+ let chartdom = uni
828
+ .createSelectorQuery()
829
+ // #ifndef MP-ALIPAY
830
+ .in(this)
831
+ // #endif
832
+ .select('#ChartBoxId' + this.cid)
833
+ .boundingClientRect((data) => {
834
+ this.showchart = true;
835
+ if (data.width > 0 && data.height > 0) {
836
+ if (data.width !== this.cWidth || data.height !== this.cHeight) {
837
+ this.checkData(this.drawData);
838
+ }
839
+ }
840
+ })
841
+ .exec();
842
+ },
843
+ getCloudData() {
844
+ if (this.mixinDatacomLoading == true) {
845
+ return;
846
+ }
847
+ this.mixinDatacomLoading = true;
848
+ this.mixinDatacomGet()
849
+ .then((res) => {
850
+ this.mixinDatacomResData = res.result.data;
851
+ this.localdataInit(this.mixinDatacomResData);
852
+ })
853
+ .catch((err) => {
854
+ this.mixinDatacomLoading = false;
855
+ this.showchart = false;
856
+ this.mixinDatacomErrorMessage = '请求错误:' + err;
857
+ });
858
+ },
859
+ onMixinDatacomPropsChange(needReset, changed) {
860
+ if (needReset == true && this.collection !== '') {
861
+ this.showchart = false;
862
+ this.mixinDatacomErrorMessage = null;
863
+ this._clearChart();
864
+ this.getCloudData();
865
+ }
866
+ },
867
+ _clearChart() {
868
+ let cid = this.cid;
869
+ if (this.echrts !== true) {
870
+ const ctx = uni.createCanvasContext(cid, this);
871
+ ctx.clearRect(0, 0, this.cWidth, this.cHeight);
872
+ ctx.draw();
873
+ }
874
+ },
875
+ init() {
876
+ let cid = this.cid;
877
+ let chartdom = uni
878
+ .createSelectorQuery()
879
+ // #ifndef MP-ALIPAY
880
+ .in(this)
881
+ // #endif
882
+ .select('#ChartBoxId' + cid)
883
+ .boundingClientRect((data) => {
884
+ if (data.width > 0 && data.height > 0) {
885
+ this.mixinDatacomLoading = false;
886
+ this.showchart = true;
887
+ this.lastDrawTime = Date.now();
888
+ this.cWidth = data.width;
889
+ this.cHeight = data.height;
890
+ if (this.echarts !== true) {
891
+ cfu.option[cid].background = this.background == 'none' ? '#FFFFFF' : this.background;
892
+ cfu.option[cid].canvas2d = this.type2d;
893
+ cfu.option[cid].pixelRatio = this.pixel;
894
+ cfu.option[cid].animation = this.animation;
895
+ cfu.option[cid].width = data.width * this.pixel;
896
+ cfu.option[cid].height = data.height * this.pixel;
897
+ cfu.option[cid].ontap = this.ontap;
898
+ cfu.option[cid].ontouch = this.ontouch;
899
+ cfu.option[cid].onmouse = this.openmouse;
900
+ cfu.option[cid].onmovetip = this.onmovetip;
901
+ cfu.option[cid].tooltipShow = this.tooltipShow;
902
+ cfu.option[cid].tooltipFormat = this.tooltipFormat;
903
+ cfu.option[cid].tooltipCustom = this.tooltipCustom;
904
+ cfu.option[cid].inScrollView = this.inScrollView;
905
+ cfu.option[cid].lastDrawTime = this.lastDrawTime;
906
+ cfu.option[cid].tapLegend = this.tapLegend;
907
+ }
908
+ //如果是H5或者App端,采用renderjs渲染图表
909
+ if (this.inH5 || this.inApp) {
910
+ if (this.echarts == true) {
911
+ cfe.option[cid].ontap = this.ontap;
912
+ cfe.option[cid].onmouse = this.openmouse;
913
+ cfe.option[cid].tooltipShow = this.tooltipShow;
914
+ cfe.option[cid].tooltipFormat = this.tooltipFormat;
915
+ cfe.option[cid].tooltipCustom = this.tooltipCustom;
916
+ cfe.option[cid].lastDrawTime = this.lastDrawTime;
917
+ this.echartsOpts = deepCloneAssign({}, cfe.option[cid]);
918
+ } else {
919
+ cfu.option[cid].rotateLock = cfu.option[cid].rotate;
920
+ this.uchartsOpts = deepCloneAssign({}, cfu.option[cid]);
921
+ }
922
+ //如果是小程序端,采用uCharts渲染
923
+ } else {
924
+ cfu.option[cid] = formatterAssign(cfu.option[cid], cfu.formatter);
925
+ this.mixinDatacomErrorMessage = null;
926
+ this.mixinDatacomLoading = false;
927
+ this.showchart = true;
928
+ this.$nextTick(() => {
929
+ if (this.type2d === true) {
930
+ const query = uni.createSelectorQuery().in(this);
931
+ query
932
+ .select('#' + cid)
933
+ .fields({ node: true, size: true })
934
+ .exec((res) => {
935
+ if (res[0]) {
936
+ const canvas = res[0].node;
937
+ const ctx = canvas.getContext('2d');
938
+ cfu.option[cid].context = ctx;
939
+ canvas.width = data.width * this.pixel;
940
+ canvas.height = data.height * this.pixel;
941
+ canvas._width = data.width * this.pixel;
942
+ canvas._height = data.height * this.pixel;
943
+ cfu.option[cid].rotateLock = cfu.option[cid].rotate;
944
+ if (cfu.instance[cid] && cfu.option[cid] && cfu.option[cid].update === true) {
945
+ this._updataUChart(cid);
946
+ } else {
947
+ setTimeout(() => {
948
+ cfu.option[cid].context.restore();
949
+ cfu.option[cid].context.save();
950
+ this._newChart(cid);
951
+ }, 100);
952
+ }
953
+ } else {
954
+ this.showchart = false;
955
+ this.mixinDatacomErrorMessage = '参数错误:开启2d模式后,未获取到dom节点,canvas-id:' + cid;
956
+ }
957
+ });
958
+ } else {
959
+ if (this.inAli) {
960
+ cfu.option[cid].rotateLock = cfu.option[cid].rotate;
961
+ }
962
+ cfu.option[cid].context = uni.createCanvasContext(cid, this);
963
+ if (cfu.instance[cid] && cfu.option[cid] && cfu.option[cid].update === true) {
964
+ this._updataUChart(cid);
965
+ } else {
966
+ setTimeout(() => {
967
+ cfu.option[cid].context.restore();
968
+ cfu.option[cid].context.save();
969
+ this._newChart(cid);
970
+ }, 100);
971
+ }
972
+ }
973
+ });
974
+ }
975
+ } else {
976
+ this.mixinDatacomLoading = false;
977
+ this.showchart = false;
978
+ if (this.reshow == true) {
979
+ this.mixinDatacomErrorMessage = '布局错误:未获取到父元素宽高尺寸!canvas-id:' + cid;
980
+ }
981
+ }
982
+ })
983
+ .exec();
984
+ },
985
+ saveImage() {
986
+ uni.canvasToTempFilePath(
987
+ {
988
+ canvasId: this.cid,
989
+ success: (res) => {
990
+ //#ifdef H5
991
+ var a = document.createElement('a');
992
+ a.href = res.tempFilePath;
993
+ a.download = this.cid;
994
+ a.target = '_blank';
995
+ a.click();
996
+ //#endif
997
+ //#ifndef H5
998
+ uni.saveImageToPhotosAlbum({
999
+ filePath: res.tempFilePath,
1000
+ success: function () {
1001
+ uni.showToast({
1002
+ title: '保存成功',
1003
+ duration: 2000
1004
+ });
1005
+ }
1006
+ });
1007
+ //#endif
1008
+ }
1009
+ },
1010
+ this
1011
+ );
1012
+ },
1013
+ // #ifndef APP-VUE || H5
1014
+ _newChart(cid) {
1015
+ if (this.mixinDatacomLoading == true) {
1016
+ return;
1017
+ }
1018
+ this.showchart = true;
1019
+ cfu.instance[cid] = new uCharts(cfu.option[cid]);
1020
+ cfu.instance[cid].addEventListener('renderComplete', () => {
1021
+ this.emitMsg({
1022
+ name: 'complete',
1023
+ params: { type: 'complete', complete: true, id: cid }
1024
+ });
1025
+ cfu.instance[cid].delEventListener('renderComplete');
1026
+ });
1027
+ cfu.instance[cid].addEventListener('scrollLeft', () => {
1028
+ this.emitMsg({
1029
+ name: 'scrollLeft',
1030
+ params: { type: 'scrollLeft', scrollLeft: true, id: cid }
1031
+ });
1032
+ });
1033
+ cfu.instance[cid].addEventListener('scrollRight', () => {
1034
+ this.emitMsg({
1035
+ name: 'scrollRight',
1036
+ params: { type: 'scrollRight', scrollRight: true, id: cid }
1037
+ });
1038
+ });
1039
+ },
1040
+ _updataUChart(cid) {
1041
+ cfu.instance[cid].updateData(cfu.option[cid]);
1042
+ },
1043
+ _tooltipDefault(item, category, index, opts) {
1044
+ if (category) {
1045
+ let data = item.data;
1046
+ if (typeof item.data === 'object') {
1047
+ data = item.data.value;
1048
+ }
1049
+ return category + ' ' + item.name + ':' + data;
1050
+ } else {
1051
+ if (item.properties && item.properties.name) {
1052
+ return item.properties.name;
1053
+ } else {
1054
+ return item.name + ':' + item.data;
1055
+ }
1056
+ }
1057
+ },
1058
+ _showTooltip(e) {
1059
+ let cid = this.cid;
1060
+ let tc = cfu.option[cid].tooltipCustom;
1061
+ if (tc && tc !== undefined && tc !== null) {
1062
+ let offset = undefined;
1063
+ if (tc.x >= 0 && tc.y >= 0) {
1064
+ offset = { x: tc.x, y: tc.y + 10 };
1065
+ }
1066
+ cfu.instance[cid].showToolTip(e, {
1067
+ index: tc.index,
1068
+ offset: offset,
1069
+ textList: tc.textList,
1070
+ formatter: (item, category, index, opts) => {
1071
+ if (typeof cfu.option[cid].tooltipFormat === 'string' && cfu.formatter[cfu.option[cid].tooltipFormat]) {
1072
+ return cfu.formatter[cfu.option[cid].tooltipFormat](item, category, index, opts);
1073
+ } else {
1074
+ return this._tooltipDefault(item, category, index, opts);
1075
+ }
1076
+ }
1077
+ });
1078
+ } else {
1079
+ cfu.instance[cid].showToolTip(e, {
1080
+ formatter: (item, category, index, opts) => {
1081
+ if (typeof cfu.option[cid].tooltipFormat === 'string' && cfu.formatter[cfu.option[cid].tooltipFormat]) {
1082
+ return cfu.formatter[cfu.option[cid].tooltipFormat](item, category, index, opts);
1083
+ } else {
1084
+ return this._tooltipDefault(item, category, index, opts);
1085
+ }
1086
+ }
1087
+ });
1088
+ }
1089
+ },
1090
+ _tap(e, move) {
1091
+ let cid = this.cid;
1092
+ let currentIndex = null;
1093
+ let legendIndex = null;
1094
+ if (this.inScrollView === true || this.inAli) {
1095
+ let chartdom = uni
1096
+ .createSelectorQuery()
1097
+ // #ifndef MP-ALIPAY
1098
+ .in(this)
1099
+ .select('#ChartBoxId' + cid)
1100
+ // #endif
1101
+ // #ifdef MP-ALIPAY
1102
+ .select('#' + this.cid)
1103
+ // #endif
1104
+ .boundingClientRect((data) => {
1105
+ e.changedTouches = [];
1106
+ if (this.inAli) {
1107
+ e.changedTouches.unshift({
1108
+ x: e.detail.clientX - data.left,
1109
+ y: e.detail.clientY - data.top
1110
+ });
1111
+ } else {
1112
+ e.changedTouches.unshift({
1113
+ x: e.detail.x - data.left,
1114
+ y: e.detail.y - data.top - this.pageScrollTop
1115
+ });
1116
+ }
1117
+ if (move) {
1118
+ if (this.tooltipShow === true) {
1119
+ this._showTooltip(e);
1120
+ }
1121
+ } else {
1122
+ currentIndex = cfu.instance[cid].getCurrentDataIndex(e);
1123
+ legendIndex = cfu.instance[cid].getLegendDataIndex(e);
1124
+ if (this.tapLegend === true) {
1125
+ cfu.instance[cid].touchLegend(e);
1126
+ }
1127
+ if (this.tooltipShow === true) {
1128
+ this._showTooltip(e);
1129
+ }
1130
+ this.emitMsg({
1131
+ name: 'getIndex',
1132
+ params: {
1133
+ type: 'getIndex',
1134
+ event: {
1135
+ x: e.detail.x - data.left,
1136
+ y: e.detail.y - data.top
1137
+ },
1138
+ currentIndex: currentIndex,
1139
+ legendIndex: legendIndex,
1140
+ id: cid,
1141
+ opts: cfu.instance[cid].opts
1142
+ }
1143
+ });
1144
+ }
1145
+ })
1146
+ .exec();
1147
+ } else {
1148
+ if (move) {
1149
+ if (this.tooltipShow === true) {
1150
+ this._showTooltip(e);
1151
+ }
1152
+ } else {
1153
+ e.changedTouches = [];
1154
+ e.changedTouches.unshift({
1155
+ x: e.detail.x - e.currentTarget.offsetLeft,
1156
+ y: e.detail.y - e.currentTarget.offsetTop
1157
+ });
1158
+ currentIndex = cfu.instance[cid].getCurrentDataIndex(e);
1159
+ legendIndex = cfu.instance[cid].getLegendDataIndex(e);
1160
+ if (this.tapLegend === true) {
1161
+ cfu.instance[cid].touchLegend(e);
1162
+ }
1163
+ if (this.tooltipShow === true) {
1164
+ this._showTooltip(e);
1165
+ }
1166
+ this.emitMsg({
1167
+ name: 'getIndex',
1168
+ params: {
1169
+ type: 'getIndex',
1170
+ event: {
1171
+ x: e.detail.x,
1172
+ y: e.detail.y - e.currentTarget.offsetTop
1173
+ },
1174
+ currentIndex: currentIndex,
1175
+ legendIndex: legendIndex,
1176
+ id: cid,
1177
+ opts: cfu.instance[cid].opts
1178
+ }
1179
+ });
1180
+ }
1181
+ }
1182
+ },
1183
+ _touchStart(e) {
1184
+ let cid = this.cid;
1185
+ lastMoveTime = Date.now();
1186
+ if (cfu.option[cid].enableScroll === true) {
1187
+ cfu.instance[cid].scrollStart(e);
1188
+ }
1189
+ this.emitMsg({
1190
+ name: 'getTouchStart',
1191
+ params: { type: 'touchStart', event: e.changedTouches[0], id: cid }
1192
+ });
1193
+ },
1194
+ _touchMove(e) {
1195
+ let cid = this.cid;
1196
+ let currMoveTime = Date.now();
1197
+ let duration = currMoveTime - lastMoveTime;
1198
+ if (duration < Math.floor(1000 / 60)) return; //每秒60帧
1199
+ lastMoveTime = currMoveTime;
1200
+ if (cfu.option[cid].enableScroll === true) {
1201
+ cfu.instance[cid].scroll(e);
1202
+ }
1203
+ this.emitMsg({
1204
+ name: 'getTouchMove',
1205
+ params: { type: 'touchMove', event: e.changedTouches[0], id: cid }
1206
+ });
1207
+ if (this.ontap === true && cfu.option[cid].enableScroll === false && this.onmovetip === true) {
1208
+ this._tap(e, true);
1209
+ }
1210
+ },
1211
+ _touchEnd(e) {
1212
+ let cid = this.cid;
1213
+ if (cfu.option[cid].enableScroll === true) {
1214
+ cfu.instance[cid].scrollEnd(e);
1215
+ }
1216
+ this.emitMsg({
1217
+ name: 'getTouchEnd',
1218
+ params: { type: 'touchEnd', event: e.changedTouches[0], id: cid }
1219
+ });
1220
+ if (this.ontap === true && cfu.option[cid].enableScroll === false && this.onmovetip === true) {
1221
+ this._tap(e, true);
1222
+ }
1223
+ },
1224
+ // #endif
1225
+ _error(e) {
1226
+ this.mixinDatacomErrorMessage = e.detail.errMsg;
1227
+ },
1228
+ emitMsg(msg) {
1229
+ this.$emit(msg.name, msg.params);
1230
+ },
1231
+ getRenderType() {
1232
+ //防止如果开启echarts且父元素为v-if的情况renderjs监听不到prop变化的问题
1233
+ if (this.echarts === true && this.mixinDatacomLoading === false) {
1234
+ this.beforeInit();
1235
+ }
1236
+ },
1237
+ toJSON() {
1238
+ return this;
1239
+ }
1240
+ }
1241
+ };
1242
+ </script>
1243
+
1244
+ <!-- #ifdef APP-VUE || H5 -->
1245
+ <script module="rdcharts" lang="renderjs">
1246
+
1247
+ import uCharts from '@10yun/cv-mobile-ui/ui-sdks/u-charts/u-charts.js';
1248
+ import cfu from '@10yun/cv-mobile-ui/ui-sdks/u-charts/config-ucharts.js';
1249
+ // #ifdef APP-VUE || H5
1250
+ import cfe from '@10yun/cv-mobile-ui/ui-sdks/u-charts/config-echarts.js';
1251
+ // #endif
1252
+
1253
+ var that = {};
1254
+ var rootdom = null;
1255
+
1256
+ function rddeepCloneAssign(origin = {}, ...args) {
1257
+ for (let i in args) {
1258
+ for (let key in args[i]) {
1259
+ if (args[i].hasOwnProperty(key)) {
1260
+ origin[key] = args[i][key] && typeof args[i][key] === 'object' ? rddeepCloneAssign(Array.isArray(args[i][key]) ? [] : {}, origin[key], args[i][key]) : args[i][key];
1261
+ }
1262
+ }
1263
+ }
1264
+ return origin;
1265
+ }
1266
+
1267
+ function rdformatterAssign(args,formatter) {
1268
+ for (let key in args) {
1269
+ if(args[key] !== null && typeof args[key] === 'object'){
1270
+ rdformatterAssign(args[key],formatter)
1271
+ }else if(key === 'format' && typeof args[key] === 'string'){
1272
+ args['formatter'] = formatter[args[key]] ? formatter[args[key]] : undefined;
1273
+ }
1274
+ }
1275
+ return args;
1276
+ }
1277
+
1278
+ export default {
1279
+ data() {
1280
+ return {
1281
+ rid:null
1282
+ }
1283
+ },
1284
+ mounted() {
1285
+ rootdom = {top:0,left:0}
1286
+ // #ifdef H5
1287
+ let dm = document.querySelectorAll('uni-main')[0]
1288
+ if(dm === undefined){
1289
+ dm = document.querySelectorAll('uni-page-wrapper')[0]
1290
+ }
1291
+ rootdom = {top:dm.offsetTop,left:dm.offsetLeft}
1292
+ // #endif
1293
+ setTimeout(()=>{
1294
+ if(this.rid === null){
1295
+ this.$ownerInstance.callMethod('getRenderType')
1296
+ }
1297
+ },200)
1298
+ },
1299
+ destroyed(){
1300
+ delete cfu.option[this.rid]
1301
+ delete cfu.instance[this.rid]
1302
+ delete cfe.option[this.rid]
1303
+ delete cfe.instance[this.rid]
1304
+ },
1305
+ methods: {
1306
+ //==============以下是ECharts的方法====================
1307
+ ecinit(newVal, oldVal, owner, instance){
1308
+ let cid = JSON.stringify(newVal.id)
1309
+ this.rid = cid
1310
+ that[cid] = this.$ownerInstance
1311
+ let eopts = JSON.parse(JSON.stringify(newVal))
1312
+ let type = eopts.type;
1313
+ //载入并覆盖默认配置
1314
+ if (type && cfe.type.includes(type)) {
1315
+ cfe.option[cid] = rddeepCloneAssign({}, cfe[type], eopts);
1316
+ }else{
1317
+ cfe.option[cid] = rddeepCloneAssign({}, eopts);
1318
+ }
1319
+ let newData = eopts.chartData;
1320
+ //挂载categories和series
1321
+ if(cfe.option[cid].xAxis && cfe.option[cid].xAxis.type && cfe.option[cid].xAxis.type === 'category'){
1322
+ cfe.option[cid].xAxis.data = newData.categories
1323
+ }
1324
+ if(cfe.option[cid].yAxis && cfe.option[cid].yAxis.type && cfe.option[cid].yAxis.type === 'category'){
1325
+ cfe.option[cid].yAxis.data = newData.categories
1326
+ }
1327
+ cfe.option[cid].series = []
1328
+ for (var i = 0; i < newData.series.length; i++) {
1329
+ cfe.option[cid].seriesTemplate = cfe.option[cid].seriesTemplate ? cfe.option[cid].seriesTemplate : {}
1330
+ let Template = rddeepCloneAssign({},cfe.option[cid].seriesTemplate,newData.series[i])
1331
+ cfe.option[cid].series.push(Template)
1332
+ }
1333
+ if (typeof window.echarts === 'object') {
1334
+ this.newEChart()
1335
+ }else{
1336
+ const script = document.createElement('script')
1337
+ // #ifdef APP-VUE
1338
+ script.src = './uni_modules/qiun-data-charts/static/app-plus/echarts.min.js'
1339
+ // #endif
1340
+ // #ifdef H5
1341
+ const rooturl = window.location.origin
1342
+ const directory = instance.getDataset().directory
1343
+ script.src = rooturl + directory + 'uni_modules/qiun-data-charts/static/h5/echarts.min.js'
1344
+ // #endif
1345
+ script.onload = this.newEChart
1346
+ document.head.appendChild(script)
1347
+ }
1348
+ },
1349
+ ecresize(newVal, oldVal, owner, instance){
1350
+ if(cfe.instance[this.rid]){
1351
+ cfe.instance[this.rid].resize()
1352
+ }
1353
+ },
1354
+ newEChart(){
1355
+ let cid = this.rid
1356
+ if(cfe.instance[cid] === undefined){
1357
+ cfe.instance[cid] = echarts.init(that[cid].$el.children[0])
1358
+ //ontap开启后才触发click事件
1359
+ if(cfe.option[cid].ontap === true){
1360
+ cfe.instance[cid].on('click', resdata => {
1361
+ let event = JSON.parse(JSON.stringify({
1362
+ x:resdata.event.offsetX,y:resdata.event.offsetY
1363
+ }))
1364
+ that[cid].callMethod('emitMsg',{name:"getIndex", params:{type:"getIndex", event:event, currentIndex:resdata.dataIndex, value:resdata.data, seriesName: resdata.seriesName,id:cid}})
1365
+ })
1366
+ }
1367
+ this.updataEChart(cid,cfe.option[cid])
1368
+ }else{
1369
+ this.updataEChart(cid,cfe.option[cid])
1370
+ }
1371
+ },
1372
+ updataEChart(cid,option){
1373
+ //替换option内format属性为formatter的预定义方法
1374
+ option = rdformatterAssign(option,cfe.formatter)
1375
+ if(option.tooltip){
1376
+ option.tooltip.show = option.tooltipShow?true:false;
1377
+ option.tooltip.position = this.tooltipPosition()
1378
+ //tooltipFormat方法,替换组件的tooltipFormat为config-echarts.js内对应的方法
1379
+ if (typeof option.tooltipFormat === 'string' && cfe.formatter[option.tooltipFormat]) {
1380
+ option.tooltip.formatter = option.tooltip.formatter ? option.tooltip.formatter : cfe.formatter[option.tooltipFormat]
1381
+ }
1382
+ }
1383
+ // 颜色渐变添加的方法
1384
+ if (option.series) {
1385
+ for (let i in option.series) {
1386
+ let linearGradient = option.series[i].linearGradient
1387
+ if (linearGradient) {
1388
+ option.series[i].color = new echarts.graphic.LinearGradient(linearGradient[0],linearGradient[1],linearGradient[2],linearGradient[3],linearGradient[4])
1389
+ }
1390
+ }
1391
+ }
1392
+ cfe.instance[cid].setOption(option, option.notMerge)
1393
+ cfe.instance[cid].on('finished', function(){
1394
+ that[cid].callMethod('emitMsg',{name:"complete",params:{type:"complete",complete:true,id:cid}})
1395
+ if(cfe.instance[cid]){
1396
+ cfe.instance[cid].off('finished')
1397
+ }
1398
+ })
1399
+ },
1400
+ tooltipPosition(){
1401
+ return (point, params, dom, rect, size) => {
1402
+ let x = point[0]
1403
+ let y = point[1]
1404
+ let viewWidth = size.viewSize[0]
1405
+ let viewHeight = size.viewSize[1]
1406
+ let boxWidth = size.contentSize[0]
1407
+ let boxHeight = size.contentSize[1]
1408
+ let posX = x + 30
1409
+ let posY = y + 30
1410
+ if (posX + boxWidth > viewWidth) {
1411
+ posX = x - boxWidth - 30
1412
+ }
1413
+ if (posY + boxHeight > viewHeight) {
1414
+ posY = y - boxHeight - 30
1415
+ }
1416
+ return [posX, posY]
1417
+ }
1418
+ },
1419
+ //==============以下是uCharts的方法====================
1420
+ ucinit(newVal, oldVal, owner, instance){
1421
+ if(JSON.stringify(newVal) == JSON.stringify(oldVal)){
1422
+ return;
1423
+ }
1424
+ let cid = JSON.parse(JSON.stringify(newVal.canvasId))
1425
+ this.rid = cid
1426
+ that[cid] = this.$ownerInstance
1427
+ cfu.option[cid] = JSON.parse(JSON.stringify(newVal))
1428
+ cfu.option[cid] = rdformatterAssign(cfu.option[cid],cfu.formatter)
1429
+ let canvasdom = document.getElementById(cid)
1430
+ if(canvasdom && canvasdom.children[0]){
1431
+ cfu.option[cid].context = canvasdom.children[0].getContext("2d")
1432
+ if(cfu.instance[cid] && cfu.option[cid] && cfu.option[cid].update === true){
1433
+ this.updataUChart()
1434
+ }else{
1435
+ setTimeout(()=>{
1436
+ cfu.option[cid].context.restore();
1437
+ cfu.option[cid].context.save();
1438
+ this.newUChart()
1439
+ },100)
1440
+ }
1441
+ }
1442
+ },
1443
+ newUChart() {
1444
+ let cid = this.rid
1445
+ cfu.instance[cid] = new uChartsRD(cfu.option[cid])
1446
+ cfu.instance[cid].addEventListener('renderComplete', () => {
1447
+ that[cid].callMethod('emitMsg',{name:"complete",params:{type:"complete",complete:true,id:cid}})
1448
+ cfu.instance[cid].delEventListener('renderComplete')
1449
+ });
1450
+ cfu.instance[cid].addEventListener('scrollLeft', () => {
1451
+ that[cid].callMethod('emitMsg',{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:true,id:cid}})
1452
+ });
1453
+ cfu.instance[cid].addEventListener('scrollRight', () => {
1454
+ that[cid].callMethod('emitMsg',{name:"scrollRight",params:{type:"scrollRight",scrollRight:true,id:cid}})
1455
+ });
1456
+ },
1457
+ updataUChart() {
1458
+ let cid = this.rid
1459
+ cfu.instance[cid].updateData(cfu.option[cid])
1460
+ },
1461
+ tooltipDefault(item, category, index, opts) {
1462
+ if (category) {
1463
+ let data = item.data
1464
+ if(typeof item.data === "object"){
1465
+ data = item.data.value
1466
+ }
1467
+ return category + ' ' + item.name + ':' + data;
1468
+ } else {
1469
+ if (item.properties && item.properties.name) {
1470
+ return item.properties.name ;
1471
+ } else {
1472
+ return item.name + ':' + item.data;
1473
+ }
1474
+ }
1475
+ },
1476
+ showTooltip(e,cid) {
1477
+ let tc = cfu.option[cid].tooltipCustom
1478
+ if (tc && tc !== undefined && tc !== null) {
1479
+ let offset = undefined;
1480
+ if (tc.x >= 0 && tc.y >= 0) {
1481
+ offset = { x: tc.x, y: tc.y + 10 };
1482
+ }
1483
+ cfu.instance[cid].showToolTip(e, {
1484
+ index: tc.index,
1485
+ offset: offset,
1486
+ textList: tc.textList,
1487
+ formatter: (item, category, index, opts) => {
1488
+ if (typeof cfu.option[cid].tooltipFormat === 'string' && cfu.formatter[cfu.option[cid].tooltipFormat]) {
1489
+ return cfu.formatter[cfu.option[cid].tooltipFormat](item, category, index, opts);
1490
+ } else {
1491
+ return this.tooltipDefault(item, category, index, opts);
1492
+ }
1493
+ }
1494
+ });
1495
+ } else {
1496
+ cfu.instance[cid].showToolTip(e, {
1497
+ formatter: (item, category, index, opts) => {
1498
+ if (typeof cfu.option[cid].tooltipFormat === 'string' && cfu.formatter[cfu.option[cid].tooltipFormat]) {
1499
+ return cfu.formatter[cfu.option[cid].tooltipFormat](item, category, index, opts);
1500
+ } else {
1501
+ return this.tooltipDefault(item, category, index, opts);
1502
+ }
1503
+ }
1504
+ });
1505
+ }
1506
+ },
1507
+ tap(e) {
1508
+ let cid = this.rid
1509
+ let ontap = cfu.option[cid].ontap
1510
+ let tooltipShow = cfu.option[cid].tooltipShow
1511
+ let tapLegend = cfu.option[cid].tapLegend
1512
+ if(ontap == false) return;
1513
+ let currentIndex=null
1514
+ let legendIndex=null
1515
+ let rchartdom = document.getElementById('UC'+cid).getBoundingClientRect()
1516
+ let tmpe = {}
1517
+ if(e.detail.x){//tap或者click的事件
1518
+ tmpe = { x: e.detail.x - rchartdom.left, y:e.detail.y - rchartdom.top + rootdom.top}
1519
+ }else{//mouse的事件
1520
+ tmpe = { x: e.clientX - rchartdom.left, y:e.clientY - rchartdom.top + rootdom.top}
1521
+ }
1522
+ e.changedTouches.unshift(tmpe)
1523
+ currentIndex=cfu.instance[cid].getCurrentDataIndex(e)
1524
+ legendIndex=cfu.instance[cid].getLegendDataIndex(e)
1525
+ if(tapLegend === true){
1526
+ cfu.instance[cid].touchLegend(e);
1527
+ }
1528
+ if(tooltipShow==true){
1529
+ this.showTooltip(e,cid)
1530
+ }
1531
+ that[cid].callMethod('emitMsg',{name:"getIndex",params:{type:"getIndex",event:tmpe,currentIndex:currentIndex,legendIndex:legendIndex,id:cid, opts: cfu.instance[cid].opts}})
1532
+ },
1533
+ touchStart(e) {
1534
+ let cid = this.rid
1535
+ let ontouch = cfu.option[cid].ontouch
1536
+ if(ontouch == false) return;
1537
+ cfu.instance[cid].scrollStart(e)
1538
+ that[cid].callMethod('emitMsg',{name:"getTouchStart",params:{type:"touchStart",event:e.changedTouches[0],id:cid}})
1539
+ },
1540
+ touchMove(e) {
1541
+ let cid = this.rid
1542
+ let ontouch = cfu.option[cid].ontouch
1543
+ if(ontouch == false) return;
1544
+ cfu.instance[cid].scroll(e)
1545
+ that[cid].callMethod('emitMsg',{name:"getTouchMove",params:{type:"touchMove",event:e.changedTouches[0],id:cid}})
1546
+ if(cfu.option[cid].ontap === true && cfu.option[cid].enableScroll === false && cfu.option[cid].onmovetip === true){
1547
+ let rchartdom = document.getElementById('UC'+cid).getBoundingClientRect()
1548
+ let tmpe = { x: e.changedTouches[0].clientX - rchartdom.left, y:e.changedTouches[0].clientY - rchartdom.top + rootdom.top}
1549
+ e.changedTouches.unshift(tmpe)
1550
+ if(cfu.option[cid].tooltipShow === true){
1551
+ this.showTooltip(e,cid)
1552
+ }
1553
+ }
1554
+ },
1555
+ touchEnd(e) {
1556
+ let cid = this.rid
1557
+ let ontouch = cfu.option[cid].ontouch
1558
+ if(ontouch == false) return;
1559
+ cfu.instance[cid].scrollEnd(e)
1560
+ that[cid].callMethod('emitMsg',{name:"getTouchEnd",params:{type:"touchEnd",event:e.changedTouches[0],id:cid}})
1561
+ },
1562
+ mouseDown(e) {
1563
+ let cid = this.rid
1564
+ let onmouse = cfu.option[cid].onmouse
1565
+ if(onmouse == false) return;
1566
+ let rchartdom = document.getElementById('UC'+cid).getBoundingClientRect()
1567
+ let tmpe = {}
1568
+ tmpe = { x: e.clientX - rchartdom.left, y:e.clientY - rchartdom.top + rootdom.top}
1569
+ e.changedTouches.unshift(tmpe)
1570
+ cfu.instance[cid].scrollStart(e)
1571
+ cfu.option[cid].mousedown=true;
1572
+ that[cid].callMethod('emitMsg',{name:"getTouchStart",params:{type:"mouseDown",event:tmpe,id:cid}})
1573
+ },
1574
+ mouseMove(e) {
1575
+ let cid = this.rid
1576
+ let onmouse = cfu.option[cid].onmouse
1577
+ let tooltipShow = cfu.option[cid].tooltipShow
1578
+ if(onmouse == false) return;
1579
+ let rchartdom = document.getElementById('UC'+cid).getBoundingClientRect()
1580
+ let tmpe = {}
1581
+ tmpe = { x: e.clientX - rchartdom.left, y:e.clientY - rchartdom.top + rootdom.top}
1582
+ e.changedTouches.unshift(tmpe)
1583
+ if(cfu.option[cid].mousedown){
1584
+ cfu.instance[cid].scroll(e)
1585
+ that[cid].callMethod('emitMsg',{name:"getTouchMove",params:{type:"mouseMove",event:tmpe,id:cid}})
1586
+ }else if(cfu.instance[cid]){
1587
+ if(tooltipShow==true){
1588
+ this.showTooltip(e,cid)
1589
+ }
1590
+ }
1591
+ },
1592
+ mouseUp(e) {
1593
+ let cid = this.rid
1594
+ let onmouse = cfu.option[cid].onmouse
1595
+ if(onmouse == false) return;
1596
+ let rchartdom = document.getElementById('UC'+cid).getBoundingClientRect()
1597
+ let tmpe = {}
1598
+ tmpe = { x: e.clientX - rchartdom.left, y:e.clientY - rchartdom.top + rootdom.top}
1599
+ e.changedTouches.unshift(tmpe)
1600
+ cfu.instance[cid].scrollEnd(e)
1601
+ cfu.option[cid].mousedown=false;
1602
+ that[cid].callMethod('emitMsg',{name:"getTouchEnd",params:{type:"mouseUp",event:tmpe,id:cid}})
1603
+ },
1604
+ }
1605
+ }
1606
+ </script>
1607
+ <!-- #endif -->
1608
+
1609
+ <style scoped>
1610
+ .chartsview {
1611
+ width: 100%;
1612
+ height: 100%;
1613
+ display: flex;
1614
+ flex: 1;
1615
+ justify-content: center;
1616
+ align-items: center;
1617
+ }
1618
+ </style>