@10yun/cv-mobile-ui 0.5.56 → 0.5.57

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 (349) hide show
  1. package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +605 -605
  2. package/{ui-sdks → other}/qiun-data-charts/package.json +2 -1
  3. package/other/qiun-data-charts_2.5.0-20230101_example/App.vue +20 -0
  4. package/other/qiun-data-charts_2.5.0-20230101_example/common/uni-icons.css +542 -0
  5. package/other/qiun-data-charts_2.5.0-20230101_example/common/uni.css +246 -0
  6. package/other/qiun-data-charts_2.5.0-20230101_example/components/qiun-title-bar/qiun-title-bar.vue +51 -0
  7. package/other/qiun-data-charts_2.5.0-20230101_example/components/test-charts/test-charts.vue +48 -0
  8. package/other/qiun-data-charts_2.5.0-20230101_example/main.js +13 -0
  9. package/other/qiun-data-charts_2.5.0-20230101_example/manifest.json +75 -0
  10. package/other/qiun-data-charts_2.5.0-20230101_example/mockdata/demodata.json +448 -0
  11. package/other/qiun-data-charts_2.5.0-20230101_example/mockdata/mapdata.json +1 -0
  12. package/other/qiun-data-charts_2.5.0-20230101_example/pages/canvas/canvas.vue +142 -0
  13. package/other/qiun-data-charts_2.5.0-20230101_example/pages/echarts/echarts.vue +228 -0
  14. package/other/qiun-data-charts_2.5.0-20230101_example/pages/format-e/format-e.vue +113 -0
  15. package/other/qiun-data-charts_2.5.0-20230101_example/pages/format-u/format-u.vue +110 -0
  16. package/other/qiun-data-charts_2.5.0-20230101_example/pages/index/index.vue +58 -0
  17. package/other/qiun-data-charts_2.5.0-20230101_example/pages/layout/layout.vue +174 -0
  18. package/other/qiun-data-charts_2.5.0-20230101_example/pages/other/other.vue +233 -0
  19. package/other/qiun-data-charts_2.5.0-20230101_example/pages/tab/tab.vue +115 -0
  20. package/other/qiun-data-charts_2.5.0-20230101_example/pages/ucharts/ucharts.vue +339 -0
  21. package/other/qiun-data-charts_2.5.0-20230101_example/pages/unicloud/unicloud.vue +117 -0
  22. package/other/qiun-data-charts_2.5.0-20230101_example/pages/updata/updata.vue +212 -0
  23. package/other/qiun-data-charts_2.5.0-20230101_example/pages.json +79 -0
  24. package/other/qiun-data-charts_2.5.0-20230101_example/static/logo.png +0 -0
  25. package/other/qiun-data-charts_2.5.0-20230101_example/uni.scss +76 -0
  26. package/other/qiun-data-charts_2.5.0-20230101_example/uniCloud-aliyun/database/db_init.json +455 -0
  27. package/other/qiun-data-charts_2.5.0-20230101_example/uniCloud-aliyun/database/qiun-charts-demo.schema.json +76 -0
  28. package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate0.vue +2 -1
  29. package/other/{u-parse-2019 → u-parse}/libs/html2json.js +2 -2
  30. package/other/{uParse → u-parse}/libs/wxDiscode.js +1 -1
  31. package/other/u-parse/readme.md +102 -0
  32. package/other/{u-parse-2019 → u-parse}/u-parse.vue +1 -6
  33. package/other/u-parse2026/libs/html2json.js +2 -2
  34. package/other/u-parse2026/libs/wxDiscode.js +1 -1
  35. package/other/u-parse2026/u-parse.css +1 -0
  36. package/other/u-parse2026/u-parse.vue +1 -3
  37. package/other/uParse2/components/wxParseAudio.vue +1 -0
  38. package/other/{uParse → uParse2}/components/wxParseImg.vue +4 -4
  39. package/other/{uParse → uParse2}/components/wxParseTable.vue +15 -6
  40. package/other/{uParse → uParse2}/components/wxParseTemplate0.vue +7 -6
  41. package/other/{uParse → uParse2}/components/wxParseTemplate1.vue +10 -0
  42. package/other/{uParse → uParse2}/libs/html2json.js +2 -2
  43. package/other/{u-parse-2019 → uParse2}/libs/wxDiscode.js +1 -1
  44. package/other/{uParse/wxParse.css → uParse2/u-parse.css} +4 -4
  45. package/other/{uParse/wxParse.vue → uParse2/u-parse.vue} +18 -11
  46. package/other/uParse2/u-parse2.css +264 -0
  47. package/package.json +1 -1
  48. package/ui-cv/components/cv-dialog-share/cv-dialog-share.vue +7 -7
  49. package/ui-cv/components/cv-geo-local/cv-geo-local.vue +1 -1
  50. package/ui-cv/components/cv-icons/cv-icons.vue +18 -62
  51. package/ui-cv/components/cv-icons/iconfont/font-default-icons.js +127 -131
  52. package/ui-cv/components/cv-input-password/cv-input-password.vue +1 -1
  53. package/ui-cv/components/cv-mask-svg/cv-mask-svg.vue +1 -1
  54. package/ui-cv/components/cv-mask-svg/mixins.js +16 -12
  55. package/ui-cv/components/cv-upload-image/cv-upload-image.vue +4 -4
  56. package/ui-fireui/components/u-share-model/u-share-model.vue +1 -1
  57. package/ui-fireui/components/u-uploadsamll/u-uploadsamll.vue +1 -1
  58. package/uview-plus/components/u-form/form.js +13 -12
  59. package/uview-plus/components/u-parse/README.md +192 -0
  60. package/uview-plus/components/u-parse/changelog.md +163 -0
  61. package/uview-plus/components/u-parse/node/node.vue +37 -3
  62. package/{uni-ui/lib/uni-breadcrumb → uview-plus/components/u-parse}/package.json +24 -29
  63. package/uview-plus/components/u-parse/parser.js +8 -3
  64. package/uview-plus/components/u-parse/static/app-plus/up-parse/js/handler.js +1 -0
  65. package/uview-plus/components/u-parse/static/app-plus/up-parse/local-2.5.2.html +29 -0
  66. package/uview-plus/components/u-parse/u-parse.vue +29 -1
  67. package/other/lime-painter2/README2.md +0 -576
  68. package/other/lime-painter2/changelog.md +0 -225
  69. package/other/lime-painter2/package.json +0 -93
  70. package/other/lime-painter2/readme.md +0 -758
  71. package/other/lime-painter2/test.md +0 -45
  72. package/other/qiun-data-charts/qiun-data-charts.vue +0 -1618
  73. package/other/u-parse-2019/readme.md +0 -99
  74. package/other/uParse/components/style.css +0 -1
  75. package/other/uParse/components/wxParseAudio.vue +0 -1
  76. package/other/xt-parse/changelog.md +0 -41
  77. package/other/xt-parse/node/node.vue +0 -752
  78. package/other/xt-parse/package.json +0 -129
  79. package/other/xt-parse/parser.js +0 -1461
  80. package/other/xt-parse/props.js +0 -49
  81. package/other/xt-parse/readme.md +0 -145
  82. package/other/xt-parse/static/app-plus/u-parse/js/handler.js +0 -1
  83. package/other/xt-parse/u-parse.vue +0 -510
  84. package/plugins/luch-request/adapters/index.js +0 -131
  85. package/plugins/luch-request/core/InterceptorManager.js +0 -50
  86. package/plugins/luch-request/core/Request.js +0 -199
  87. package/plugins/luch-request/core/buildFullPath.js +0 -20
  88. package/plugins/luch-request/core/defaults.js +0 -32
  89. package/plugins/luch-request/core/dispatchRequest.js +0 -5
  90. package/plugins/luch-request/core/mergeConfig.js +0 -125
  91. package/plugins/luch-request/core/settle.js +0 -16
  92. package/plugins/luch-request/helpers/buildURL.js +0 -71
  93. package/plugins/luch-request/helpers/combineURLs.js +0 -12
  94. package/plugins/luch-request/helpers/isAbsoluteURL.js +0 -14
  95. package/plugins/luch-request/index.d.ts +0 -197
  96. package/plugins/luch-request/index.js +0 -2
  97. package/plugins/luch-request/readme.md +0 -3
  98. package/plugins/luch-request/utils/clone.js +0 -260
  99. package/plugins/luch-request/utils.js +0 -131
  100. package/ui-cv/components/cv-cell-row/cv-cell-row.vue +0 -220
  101. package/ui-cv/components/cv-icons/iconfont/font-action-icons.js +0 -73
  102. package/ui-cv/components/cv-icons/iconfont/font-action.css +0 -7
  103. package/ui-cv/components/cv-icons/iconfont/font-action.js +0 -5
  104. package/ui-cv/components/cv-icons/iconfont/font-arrow-icons.js +0 -47
  105. package/ui-cv/components/cv-icons/iconfont/font-arrow.css +0 -6
  106. package/ui-cv/components/cv-icons/iconfont/font-arrow.js +0 -5
  107. package/ui-cv/components/cv-icons/iconfont/font-base-icons.js +0 -92
  108. package/ui-cv/components/cv-icons/iconfont/font-base.css +0 -6
  109. package/ui-cv/components/cv-icons/iconfont/font-base.js +0 -5
  110. package/ui-cv/components/cv-icons/iconfont/font-mall-icons.js +0 -35
  111. package/ui-cv/components/cv-icons/iconfont/font-mall.css +0 -7
  112. package/ui-cv/components/cv-icons/iconfont/font-mall.js +0 -5
  113. package/ui-cv/components/cv-icons/iconfont/font-media-icons.js +0 -45
  114. package/ui-cv/components/cv-icons/iconfont/font-media.css +0 -7
  115. package/ui-cv/components/cv-icons/iconfont/font-media.js +0 -5
  116. package/ui-cv/components/cv-icons/iconfont/font-order-icons.js +0 -34
  117. package/ui-cv/components/cv-icons/iconfont/font-order.css +0 -6
  118. package/ui-cv/components/cv-icons/iconfont/font-order.js +0 -5
  119. package/ui-cv/components/cv-icons/iconfont/font-people-icons.js +0 -49
  120. package/ui-cv/components/cv-icons/iconfont/font-people.css +0 -7
  121. package/ui-cv/components/cv-icons/iconfont/font-people.js +0 -5
  122. package/ui-cv/components/cv-icons/iconfont/font-status-icons.js +0 -34
  123. package/ui-cv/components/cv-icons/iconfont/font-status.css +0 -6
  124. package/ui-cv/components/cv-icons/iconfont/font-status.js +0 -5
  125. package/ui-cv/components/cv-icons/iconfont/font-wallet-icons.js +0 -17
  126. package/ui-cv/components/cv-icons/iconfont/font-wallet.css +0 -6
  127. package/ui-cv/components/cv-icons/iconfont/font-wallet.js +0 -5
  128. package/ui-cv/components/cv-icons/icons/default-icons.js +0 -132
  129. package/ui-cv/components/cv-icons/icons/icons-action.js +0 -72
  130. package/ui-cv/components/cv-icons/icons/icons-arrow.js +0 -46
  131. package/ui-cv/components/cv-icons/icons/icons-base.js +0 -89
  132. package/ui-cv/components/cv-icons/icons/icons-mall.js +0 -34
  133. package/ui-cv/components/cv-icons/icons/icons-media.js +0 -44
  134. package/ui-cv/components/cv-icons/icons/icons-order.js +0 -33
  135. package/ui-cv/components/cv-icons/icons/icons-people.js +0 -46
  136. package/ui-cv/components/cv-icons/icons/icons-status.js +0 -32
  137. package/ui-cv/components/cv-icons/icons/icons-wallet.js +0 -15
  138. package/ui-sdks/sdk-app-update/img/logo.png +0 -0
  139. package/ui-sdks/sdk-app-update/img/update_bg.png +0 -0
  140. package/ui-sdks/sdk-app-update/img/update_bg_top.png +0 -0
  141. package/ui-sdks/sdk-app-update/sdk-app-update.vue +0 -396
  142. package/ui-sdks/sdk-app-update/xxxx +0 -62
  143. package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +0 -113
  144. package/ui-sdks/sdk-u-charts/config-echarts.js +0 -420
  145. package/ui-sdks/sdk-u-charts/config-ucharts.js +0 -630
  146. package/ui-sdks/sdk-u-charts/u-charts.js +0 -7398
  147. package/ui-sdks/sdk-u-charts/u-charts.min.js +0 -1
  148. package/ui-sdks/sdk-webview-main/WebViewMain.vue +0 -1
  149. package/ui-sdks/sdk-webview-main/main.js +0 -0
  150. package/ui-sdks/sdk-webview-main/mixin.js +0 -0
  151. package/uni-ui/lib/uni-badge/changelog.md +0 -33
  152. package/uni-ui/lib/uni-badge/package.json +0 -107
  153. package/uni-ui/lib/uni-badge/readme.md +0 -8
  154. package/uni-ui/lib/uni-breadcrumb/changelog.md +0 -6
  155. package/uni-ui/lib/uni-breadcrumb/readme.md +0 -66
  156. package/uni-ui/lib/uni-calendar/changelog.md +0 -30
  157. package/uni-ui/lib/uni-calendar/package.json +0 -105
  158. package/uni-ui/lib/uni-calendar/readme.md +0 -103
  159. package/uni-ui/lib/uni-card/changelog.md +0 -26
  160. package/uni-ui/lib/uni-card/package.json +0 -107
  161. package/uni-ui/lib/uni-card/readme.md +0 -10
  162. package/uni-ui/lib/uni-collapse/changelog.md +0 -48
  163. package/uni-ui/lib/uni-collapse/package.json +0 -106
  164. package/uni-ui/lib/uni-collapse/readme.md +0 -11
  165. package/uni-ui/lib/uni-combox/changelog.md +0 -17
  166. package/uni-ui/lib/uni-combox/package.json +0 -107
  167. package/uni-ui/lib/uni-combox/readme.md +0 -10
  168. package/uni-ui/lib/uni-countdown/changelog.md +0 -30
  169. package/uni-ui/lib/uni-countdown/package.json +0 -105
  170. package/uni-ui/lib/uni-countdown/readme.md +0 -9
  171. package/uni-ui/lib/uni-data-checkbox/changelog.md +0 -51
  172. package/uni-ui/lib/uni-data-checkbox/package.json +0 -107
  173. package/uni-ui/lib/uni-data-checkbox/readme.md +0 -17
  174. package/uni-ui/lib/uni-data-picker/changelog.md +0 -81
  175. package/uni-ui/lib/uni-data-picker/package.json +0 -109
  176. package/uni-ui/lib/uni-data-picker/readme.md +0 -21
  177. package/uni-ui/lib/uni-data-select/changelog.md +0 -51
  178. package/uni-ui/lib/uni-data-select/package.json +0 -106
  179. package/uni-ui/lib/uni-data-select/readme.md +0 -7
  180. package/uni-ui/lib/uni-dateformat/changelog.md +0 -10
  181. package/uni-ui/lib/uni-dateformat/package.json +0 -107
  182. package/uni-ui/lib/uni-dateformat/readme.md +0 -10
  183. package/uni-ui/lib/uni-datetime-picker/changelog.md +0 -177
  184. package/uni-ui/lib/uni-datetime-picker/package.json +0 -107
  185. package/uni-ui/lib/uni-datetime-picker/readme.md +0 -20
  186. package/uni-ui/lib/uni-drawer/changelog.md +0 -13
  187. package/uni-ui/lib/uni-drawer/package.json +0 -106
  188. package/uni-ui/lib/uni-drawer/readme.md +0 -9
  189. package/uni-ui/lib/uni-easyinput/changelog.md +0 -121
  190. package/uni-ui/lib/uni-easyinput/package.json +0 -107
  191. package/uni-ui/lib/uni-easyinput/readme.md +0 -10
  192. package/uni-ui/lib/uni-fab/changelog.md +0 -25
  193. package/uni-ui/lib/uni-fab/package.json +0 -107
  194. package/uni-ui/lib/uni-fab/readme.md +0 -8
  195. package/uni-ui/lib/uni-fav/changelog.md +0 -19
  196. package/uni-ui/lib/uni-fav/package.json +0 -106
  197. package/uni-ui/lib/uni-fav/readme.md +0 -9
  198. package/uni-ui/lib/uni-file-picker/changelog.md +0 -91
  199. package/uni-ui/lib/uni-file-picker/package.json +0 -105
  200. package/uni-ui/lib/uni-file-picker/readme.md +0 -10
  201. package/uni-ui/lib/uni-forms/changelog.md +0 -100
  202. package/uni-ui/lib/uni-forms/package.json +0 -107
  203. package/uni-ui/lib/uni-forms/readme.md +0 -22
  204. package/uni-ui/lib/uni-goods-nav/changelog.md +0 -18
  205. package/uni-ui/lib/uni-goods-nav/package.json +0 -105
  206. package/uni-ui/lib/uni-goods-nav/readme.md +0 -9
  207. package/uni-ui/lib/uni-grid/changelog.md +0 -13
  208. package/uni-ui/lib/uni-grid/package.json +0 -106
  209. package/uni-ui/lib/uni-grid/readme.md +0 -10
  210. package/uni-ui/lib/uni-group/changelog.md +0 -16
  211. package/uni-ui/lib/uni-group/package.json +0 -106
  212. package/uni-ui/lib/uni-group/readme.md +0 -8
  213. package/uni-ui/lib/uni-icons/changelog.md +0 -44
  214. package/uni-ui/lib/uni-icons/package.json +0 -111
  215. package/uni-ui/lib/uni-icons/readme.md +0 -7
  216. package/uni-ui/lib/uni-indexed-list/changelog.md +0 -19
  217. package/uni-ui/lib/uni-indexed-list/package.json +0 -107
  218. package/uni-ui/lib/uni-indexed-list/readme.md +0 -10
  219. package/uni-ui/lib/uni-link/changelog.md +0 -17
  220. package/uni-ui/lib/uni-link/package.json +0 -106
  221. package/uni-ui/lib/uni-link/readme.md +0 -10
  222. package/uni-ui/lib/uni-list/changelog.md +0 -52
  223. package/uni-ui/lib/uni-list/package.json +0 -108
  224. package/uni-ui/lib/uni-list/readme.md +0 -44
  225. package/uni-ui/lib/uni-load-more/changelog.md +0 -27
  226. package/uni-ui/lib/uni-load-more/package.json +0 -105
  227. package/uni-ui/lib/uni-load-more/readme.md +0 -12
  228. package/uni-ui/lib/uni-nav-bar/changelog.md +0 -64
  229. package/uni-ui/lib/uni-nav-bar/package.json +0 -106
  230. package/uni-ui/lib/uni-nav-bar/readme.md +0 -13
  231. package/uni-ui/lib/uni-notice-bar/changelog.md +0 -22
  232. package/uni-ui/lib/uni-notice-bar/package.json +0 -107
  233. package/uni-ui/lib/uni-notice-bar/readme.md +0 -11
  234. package/uni-ui/lib/uni-number-box/changelog.md +0 -39
  235. package/uni-ui/lib/uni-number-box/package.json +0 -104
  236. package/uni-ui/lib/uni-number-box/readme.md +0 -11
  237. package/uni-ui/lib/uni-pagination/changelog.md +0 -27
  238. package/uni-ui/lib/uni-pagination/package.json +0 -106
  239. package/uni-ui/lib/uni-pagination/readme.md +0 -10
  240. package/uni-ui/lib/uni-popup/changelog.md +0 -102
  241. package/uni-ui/lib/uni-popup/package.json +0 -107
  242. package/uni-ui/lib/uni-popup/readme.md +0 -15
  243. package/uni-ui/lib/uni-rate/changelog.md +0 -27
  244. package/uni-ui/lib/uni-rate/package.json +0 -106
  245. package/uni-ui/lib/uni-rate/readme.md +0 -11
  246. package/uni-ui/lib/uni-row/changelog.md +0 -10
  247. package/uni-ui/lib/uni-row/package.json +0 -106
  248. package/uni-ui/lib/uni-row/readme.md +0 -9
  249. package/uni-ui/lib/uni-scss/changelog.md +0 -8
  250. package/uni-ui/lib/uni-scss/package.json +0 -99
  251. package/uni-ui/lib/uni-scss/readme.md +0 -3
  252. package/uni-ui/lib/uni-search-bar/changelog.md +0 -47
  253. package/uni-ui/lib/uni-search-bar/package.json +0 -106
  254. package/uni-ui/lib/uni-search-bar/readme.md +0 -12
  255. package/uni-ui/lib/uni-section/changelog.md +0 -2
  256. package/uni-ui/lib/uni-section/package.json +0 -104
  257. package/uni-ui/lib/uni-section/readme.md +0 -7
  258. package/uni-ui/lib/uni-segmented-control/changelog.md +0 -15
  259. package/uni-ui/lib/uni-segmented-control/package.json +0 -106
  260. package/uni-ui/lib/uni-segmented-control/readme.md +0 -11
  261. package/uni-ui/lib/uni-steps/changelog.md +0 -18
  262. package/uni-ui/lib/uni-steps/package.json +0 -106
  263. package/uni-ui/lib/uni-steps/readme.md +0 -11
  264. package/uni-ui/lib/uni-swipe-action/changelog.md +0 -60
  265. package/uni-ui/lib/uni-swipe-action/package.json +0 -113
  266. package/uni-ui/lib/uni-swipe-action/readme.md +0 -10
  267. package/uni-ui/lib/uni-swiper-dot/changelog.md +0 -12
  268. package/uni-ui/lib/uni-swiper-dot/package.json +0 -106
  269. package/uni-ui/lib/uni-swiper-dot/readme.md +0 -10
  270. package/uni-ui/lib/uni-table/changelog.md +0 -35
  271. package/uni-ui/lib/uni-table/package.json +0 -106
  272. package/uni-ui/lib/uni-table/readme.md +0 -11
  273. package/uni-ui/lib/uni-tag/changelog.md +0 -25
  274. package/uni-ui/lib/uni-tag/package.json +0 -106
  275. package/uni-ui/lib/uni-tag/readme.md +0 -11
  276. package/uni-ui/lib/uni-title/changelog.md +0 -10
  277. package/uni-ui/lib/uni-title/package.json +0 -107
  278. package/uni-ui/lib/uni-title/readme.md +0 -12
  279. package/uni-ui/lib/uni-tooltip/changelog.md +0 -16
  280. package/uni-ui/lib/uni-tooltip/package.json +0 -104
  281. package/uni-ui/lib/uni-tooltip/readme.md +0 -7
  282. package/uni-ui/lib/uni-transition/changelog.md +0 -31
  283. package/uni-ui/lib/uni-transition/package.json +0 -112
  284. package/uni-ui/lib/uni-transition/readme.md +0 -10
  285. package/uni-ui/lib/uni-ui/changelog.md +0 -639
  286. package/uni-ui/lib/uni-ui/package.json +0 -148
  287. package/uni-ui/lib/uni-ui/readme.md +0 -247
  288. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/canvas.js +0 -0
  289. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/draw.js +0 -0
  290. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/draw2.js +0 -0
  291. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/gradient.js +0 -0
  292. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/index.vue +0 -0
  293. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/index2.vue +0 -0
  294. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/layout.js +0 -0
  295. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/qrcode.js +0 -0
  296. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/utils.js +0 -0
  297. /package/{ui-sdks → other}/qiun-data-charts/changelog.md +0 -0
  298. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue +0 -0
  299. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-error/qiun-error.vue +0 -0
  300. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading1.vue +0 -0
  301. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading2.vue +0 -0
  302. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading3.vue +0 -0
  303. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading4.vue +0 -0
  304. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading5.vue +0 -0
  305. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/qiun-loading.vue +0 -0
  306. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/config-echarts.js +0 -0
  307. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/readme.md +0 -0
  308. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/u-charts.js +0 -0
  309. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/u-charts.min.js +0 -0
  310. /package/{ui-sdks/sdk-u-charts → other/qiun-data-charts/js_sdk2}/app-echarts.min.js +0 -0
  311. /package/{ui-sdks/sdk-u-charts → other/qiun-data-charts/js_sdk2}/h5-echarts.min.js +0 -0
  312. /package/{ui-sdks → other}/qiun-data-charts/license.md +0 -0
  313. /package/{ui-sdks → other}/qiun-data-charts/readme.md +0 -0
  314. /package/{ui-sdks → other}/qiun-data-charts/static/app-plus/echarts.min.js +0 -0
  315. /package/{ui-sdks → other}/qiun-data-charts/static/h5/echarts.min.js +0 -0
  316. /package/{ui-sdks → other}/tui-clipboard/tui-clipboard.js +0 -0
  317. /package/other/{u-parse-2019 → u-parse}/components/wxParseAudio.vue +0 -0
  318. /package/other/{u-parse-2019 → u-parse}/components/wxParseImg.vue +0 -0
  319. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate1.vue +0 -0
  320. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate10.vue +0 -0
  321. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate11.vue +0 -0
  322. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate2.vue +0 -0
  323. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate3.vue +0 -0
  324. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate4.vue +0 -0
  325. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate5.vue +0 -0
  326. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate6.vue +0 -0
  327. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate7.vue +0 -0
  328. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate8.vue +0 -0
  329. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate9.vue +0 -0
  330. /package/other/{u-parse-2019 → u-parse}/components/wxParseVideo.vue +0 -0
  331. /package/other/{u-parse-2019 → u-parse}/libs/htmlparser.js +0 -0
  332. /package/other/{u-parse-2019 → u-parse}/u-parse.css +0 -0
  333. /package/other/{uParse → uParse2}/components/wxParseTemplate10.vue +0 -0
  334. /package/other/{uParse → uParse2}/components/wxParseTemplate11.vue +0 -0
  335. /package/other/{uParse → uParse2}/components/wxParseTemplate2.vue +0 -0
  336. /package/other/{uParse → uParse2}/components/wxParseTemplate3.vue +0 -0
  337. /package/other/{uParse → uParse2}/components/wxParseTemplate4.vue +0 -0
  338. /package/other/{uParse → uParse2}/components/wxParseTemplate5.vue +0 -0
  339. /package/other/{uParse → uParse2}/components/wxParseTemplate6.vue +0 -0
  340. /package/other/{uParse → uParse2}/components/wxParseTemplate7.vue +0 -0
  341. /package/other/{uParse → uParse2}/components/wxParseTemplate8.vue +0 -0
  342. /package/other/{uParse → uParse2}/components/wxParseTemplate9.vue +0 -0
  343. /package/other/{uParse → uParse2}/components/wxParseVideo.vue +0 -0
  344. /package/other/{uParse → uParse2}/editor.css +0 -0
  345. /package/other/{uParse → uParse2}/libs/htmlparser.js +0 -0
  346. /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/handler2.js +0 -0
  347. /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/uni.webview.min.js +0 -0
  348. /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/uni.webview.min2.js +0 -0
  349. /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/local.html +0 -0
@@ -1,758 +0,0 @@
1
- # Painter 画板
2
- > uniapp 海报画板,可根据自身需求配置生成海报
3
- > [查看更多](http://liangei.gitee.io/limeui/#/painter)
4
- > Q群:806744170
5
-
6
- ## 平台兼容
7
-
8
- | H5 | 微信小程序 | 支付宝小程序 | 百度小程序 | 头条小程序 | QQ 小程序 | App |
9
- | --- | ---------- | ------------ | ---------- | ---------- | --------- | --- |
10
- | √ | √ | √ | 未测 | √ | √ | √ |
11
-
12
-
13
-
14
- ## 引入
15
-
16
- ```js
17
- // 非uni_modules引入方式
18
- import lPainter from '@/components/lime-painter/'
19
- // uni_modules引入方式
20
- import lPainter from '@/uni_modules/lime-painter/components/lime-painter/'
21
- export default {
22
- components: {lPainter}
23
- }
24
- ```
25
-
26
-
27
- ## 代码演示
28
- ### 基本用法
29
-
30
- `board` 画板需要传一段样式的JSON对象,画板属性`width`、`height`、及元素数组`views`,
31
- 目前元素类型有`view`、`text`、`image`、`qrcode`
32
- > css 对象里的位置都是相对于画板的绝对定位,支持`rpx`、`px`
33
-
34
- ```html
35
- <l-painter :board="base"/>
36
- ```
37
-
38
- ```js
39
- export default {
40
- data() {
41
- return {
42
- base: {
43
- width: '686rpx',
44
- height: '130rpx',
45
- views: [
46
- {
47
- type: 'view',
48
- css: {
49
- left: '0rpx',
50
- top: '0rpx',
51
- background: '#07c160',
52
- width: '120rpx',
53
- height: '120rpx'
54
- }
55
- },
56
- {
57
- type: 'view',
58
- css: {
59
- left: '180rpx',
60
- top: '18rpx',
61
- background: '#1989fa',
62
- width: '80rpx',
63
- height: '80rpx',
64
- transform: 'transform: rotate(50deg)'
65
- }
66
- }
67
- ]
68
- }
69
- }
70
- }
71
- }
72
-
73
- ```
74
-
75
-
76
- ### 圆角
77
-
78
- 可为元素定一个圆角属性`borderRadius`,支持`rpx`、`px`、`%`
79
-
80
- ```html
81
- <l-painter :board="base"/>
82
- ```
83
-
84
- ```js
85
- export default {
86
- data() {
87
- return {
88
- base: {
89
- width: '686rpx',
90
- height: '130rpx',
91
- views: [
92
- {
93
- type: 'view',
94
- css: {
95
- left: '0rpx',
96
- top: '0rpx',
97
- background: '#07c160',
98
- width: '120rpx',
99
- height: '120rpx',
100
- borderRadius: '16rpx 30rpx 10rpx 80rpx'
101
- }
102
- },
103
- {
104
- type: 'view',
105
- css: {
106
- left: '150rpx',
107
- top: '0rpx',
108
- background: '#1989fa',
109
- width: '120rpx',
110
- height: '120rpx',
111
- borderRadius: '16rpx 60rpx'
112
- }
113
- },
114
- {
115
- type: 'view',
116
- css: {
117
- left: '300rpx',
118
- top: '0rpx',
119
- background: '#ff976a',
120
- width: '120rpx',
121
- height: '120rpx',
122
- borderRadius: '50%'
123
- }
124
- }
125
- ]
126
- }
127
- }
128
- }
129
- }
130
-
131
- ```
132
-
133
-
134
- ### 描边投影
135
-
136
- 可为元素定一个描边`border`属性和投影`boxShadow`属性,支持`rpx`、`px`
137
-
138
- ```html
139
- <l-painter :board="base"/>
140
- ```
141
-
142
- ```js
143
- export default {
144
- data() {
145
- return {
146
- base: {
147
- width: '686rpx',
148
- height: '130rpx',
149
- views: [
150
- {
151
- type: 'view',
152
- css: {
153
- left: '10rpx',
154
- top: '10rpx',
155
- background: 'rgba(7,193,96,.1)',
156
- width: '120rpx',
157
- height: '120rpx',
158
- borderRadius: '50%',
159
- border: '2rpx dashed rgb(7,193,96)'
160
- }
161
- },
162
- {
163
- type: 'view',
164
- css: {
165
- left: '150rpx',
166
- top: '10rpx',
167
- background: 'rgba(25,137,250,.4)',
168
- width: '120rpx',
169
- height: '120rpx',
170
- borderRadius: '50%',
171
- boxShadow: '0 5rpx 10rpx rgba(25,137,250,.8)'
172
- }
173
- },
174
- {
175
- type: 'view',
176
- css: {
177
- left: '300rpx',
178
- top: '10rpx',
179
- background: 'rgba(255, 151, 106, .1)',
180
- width: '120rpx',
181
- height: '120rpx',
182
- borderRadius: '50%',
183
- boxShadow: '2rpx solid #ff976a'
184
- }
185
- }
186
- ]
187
- }
188
- }
189
- }
190
- }
191
-
192
- ```
193
-
194
- ### 图片
195
-
196
- 元素类型为 `image` 时,需要一个图片地址 `src` ,图片地址支持 `相对路径` 和 `网络地址`
197
-
198
- - **当为网络地址时:**
199
- - H5:需要解决跨域问题或使用 `isH5PathToBase64` 可解决部分问题
200
- - 小程序:需要配置 [downloadFile](https://mp.weixin.qq.com/) 域名
201
- - 本插件全端支持 base64 图片
202
- - 🌈 图片模式 `mode`目前支持的有 `aspectFill` 、 `aspectFit` 、 `scaleToFill` ,默认为 `scaleToFill` , `height` 和 `width` 支持 `auto` ,当设置为 `auto`时 `mode` 失效。
203
-
204
-
205
- ```html
206
- <l-painter :board="base"/>
207
- ```
208
-
209
- ```js
210
- export default {
211
- data() {
212
- return {
213
- base: {
214
- width: '686rpx',
215
- height: '130rpx',
216
- views: [
217
- {
218
- type: 'image',
219
- src: '../../static/avatar-1.jpeg',
220
- css: {
221
- left: '0rpx',
222
- top: '0rpx',
223
- width: '120rpx',
224
- height: '120rpx'
225
- }
226
- },
227
- {
228
- type: 'image',
229
- src: '../../static/avatar-2.jpg',
230
- css: {
231
- left: '150rpx',
232
- top: '0rpx',
233
- width: '120rpx',
234
- height: '120rpx',
235
- radius: '16rpx'
236
- }
237
- },
238
- {
239
- type: 'image',
240
- src:'../../static/avatar-3.jpeg',
241
- css: {
242
- left: '300rpx',
243
- top: '0rpx',
244
- background: '#ff976a',
245
- width: '120rpx',
246
- height: '120rpx',
247
- radius: '50%'
248
- }
249
- }
250
- ]
251
- }
252
- }
253
- }
254
- }
255
-
256
- ```
257
-
258
- ### 文字
259
-
260
- 元素类型 `text` 时,内容写在 `text`
261
- - 支持 `\n` 换行符,
262
- - 支持省略号:设置最大行数 `maxLines` 和宽度 `width` 时,当文字内容超过会显示省略号。
263
- - 支持 `textDecoration`、`fontSize`、`lineHeight`、`textAlign`、`textDecoration`、`fontWeight`…
264
-
265
- ```html
266
- <l-painter :board="base"/>
267
- ```
268
-
269
- ```js
270
- export default {
271
- data() {
272
- return {
273
- base: {
274
- width: '686rpx',
275
- height: '500rpx',
276
- views: [
277
- {
278
- type: 'text',
279
- text: '左对齐,下划线\n无风才到地,有风还满空\n缘渠偏似雪,莫近鬓毛生',
280
- // 可以指定关键字颜色
281
- rules: {
282
- word: ['到地'],
283
- color: 'red'
284
- },
285
- css: {
286
- left: '0rpx',
287
- top: '10rpx',
288
- fontSize: '28rpx',
289
- lineHeight: '36rpx',
290
- textDecoration: 'underline'
291
- }
292
- },
293
- {
294
- type: 'text',
295
- text: '居中,上划线\n无风才到地,有风还满空\n缘渠偏似雪,莫近鬓毛生',
296
- css: {
297
- left: '0rpx',
298
- top: '150rpx',
299
- fontSize: '28rpx',
300
- lineHeight: '36rpx',
301
- textAlign: 'center',
302
- textDecoration: 'overline'
303
- }
304
- },
305
- {
306
- type: 'text',
307
- text: '右对齐,中划线\n无风才到地,有风还满空\n缘渠偏似雪,莫近鬓毛生',
308
- css: {
309
- left: '0rpx',
310
- top: '290rpx',
311
- fontSize: '28rpx',
312
- lineHeight: '36rpx',
313
- textAlign: 'right',
314
- textDecoration: 'line-through',
315
- }
316
- },
317
- {
318
- type: 'text',
319
- text: '省略号\n明月几时有?把酒问青天。不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间。',
320
- rules: {
321
- word: ['几时有'],
322
- color: 'red'
323
- },
324
- css: {
325
- left: '0rpx',
326
- top: '420rpx',
327
- fontSize: '28rpx',
328
- maxLines: 2,
329
- width: '686rpx',
330
- lineHeight: '36rpx'
331
- }
332
- }
333
- ]
334
- }
335
- }
336
- }
337
- }
338
-
339
- ```
340
-
341
- ### 二维码
342
- 该方法需要[下载此链接的文件](https://gitee.com/liangei/lime-painter/blob/master/qrcode.js)覆盖插件目录的`qrcode.js`才生效。
343
- 👉 考虑到不是很多人需要,文件又比较大,故出此下策。
344
-
345
- ```html
346
- <l-painter :board="base" />
347
- ```
348
-
349
- ```js
350
- {
351
- type: 'qrcode',
352
- text: 'https://www.baidu.com',
353
- css: {
354
- left: '380rpx',
355
- top: '230rpx',
356
- width: '200rpx',
357
- height: '200rpx',
358
- color: '#1989fa',
359
- backgroundColor: 'rgba(25,137,250,.1)',
360
- border: '20rpx solid rgba(25,137,250,.1)',
361
- }
362
- }
363
-
364
- ```
365
-
366
-
367
- ### 调用内部方法
368
- - 插件也允许通过 `ref` 获取内部方法来实现绘制和生成图片。
369
- - 需要给画板设置默认的 `width` 和 `height`。
370
-
371
- ```html
372
- <l-painter ref="painter" width="686rpx" height="500rpx" />
373
- <image :src="path" />
374
- ```
375
-
376
- ```js
377
- export default {
378
- data() {
379
- return {
380
- base: {
381
- width: '686rpx',
382
- height: '500rpx',
383
- views: [
384
- {
385
- type: 'view',
386
- css: {
387
- fontSize: '28rpx',
388
- lineHeight: '1.4em',
389
- },
390
- views: [
391
- {
392
- type: 'text',
393
- text: '水调歌头',
394
- css: {
395
- display: 'block',
396
- fontSize: '42rpx',
397
- textAlign: 'center'
398
- }
399
- },
400
- {
401
- type: 'text',
402
- text: '丙辰中秋,欢饮达旦,大醉,作此篇,兼怀子由。',
403
- css: {
404
- display: 'block',
405
- textIndent: '2em'
406
- }
407
- },
408
- {
409
- type: 'text',
410
- text: '明月几时有?把酒问青天。不知天上宫阙,今夕是何年?我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间',
411
- css: {
412
- display: 'block',
413
- color: 'red',
414
- textIndent: '2em'
415
- }
416
- },
417
- {
418
- type: 'text',
419
- text: '转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?人有悲欢离合,月有阴晴圆缺,此事古难全。但愿人长久,千里共婵娟',
420
- css: {
421
- textIndent: '2em'
422
- }
423
- }
424
- ]
425
- }
426
- ]
427
- },
428
- path: '',
429
- }
430
- },
431
- methods: {
432
- onRender() {
433
- // 支持通过调用render传入参数
434
- const painter = this.$refs.painter
435
- painter.render(this.base)
436
- },
437
- canvasToTempFilePath() {
438
- const painter = this.$refs.painter
439
- // 支持通过调用canvasToTempFilePath方法传入参数 调取生成图片
440
- painter.canvasToTempFilePath().then(res => this.path = res.tempFilePath)
441
- }
442
- }
443
- }
444
- ```
445
-
446
- ### 自定义
447
- - 有时画板提供的方法无法满足复杂个性的需要,可通过插件 `ref` 获取 `ctx` 来使用原生方法绘制。
448
-
449
- ```html
450
- <l-painter ref="painter" width="686rpx" height="500rpx" />
451
- <image :src="path" />
452
- ```
453
-
454
- ```js
455
- export default {
456
- data() {
457
- return {
458
- path: '',
459
- }
460
- },
461
- methods: {
462
- async onCustom() {
463
- const p = this.$refs.custom
464
- // 自定义,使用原生和内部方法生成更个性的图形
465
- await p.custom(async (ctx, draw) => {
466
- // 原生方法的单位为px,如果想用rpx,请使用uni.upx2px(150)
467
- // 绘制背景颜色
468
- ctx.setFillStyle('#ff976a')
469
- ctx.setShadow(5, 5, 50, '#ff976a')
470
- ctx.beginPath()
471
- ctx.arc(150, 150, 20, Math.PI, Math.PI * 1.5)
472
- ctx.lineTo(150, 20)
473
- ctx.arc(150, 0, 20, Math.PI * 0.5, Math.PI * 1)
474
- ctx.lineTo(5, 0)
475
- ctx.arc(0, 0, 20, Math.PI * 0, Math.PI * 0.5)
476
- ctx.lineTo(0, 130)
477
- ctx.arc(0, 150, 20, Math.PI * 1.5, Math.PI * 2)
478
- ctx.lineTo(130, 150)
479
- ctx.closePath()
480
- ctx.fill()
481
- // 绘制好形状后,调用draw的drawImage方法填充图片,图片会下载完成后绘制。无需自己下载。
482
- await draw.drawImage('../../static/avatar-1.jpeg', {left: 0, top: 0, width:150, height:150})
483
- })
484
- await p.custom((ctx) => {
485
- // 绘制背景颜色
486
- ctx.setFillStyle('#07c160')
487
- ctx.beginPath()
488
- ctx.arc(280, 50, 50, 0, Math.PI * 2)
489
- ctx.closePath()
490
- ctx.fill()
491
- })
492
- // 单独绘制单个或多个元素的内部方法,
493
- // 多个是是数组,单个是为对象
494
- // 绘制二维码,由于二维码JS文件较大,也不是所有人需要。所以需自行下载覆盖。
495
- await p.single({
496
- type: 'qrcode',
497
- text: 'https://www.baidu.com',
498
- css: {
499
- left: '380rpx',
500
- top: '230rpx',
501
- width: '200rpx',
502
- height: '200rpx',
503
- color: '#1989fa',
504
- backgroundColor: 'rgba(25,137,250,.1)',
505
- border: '20rpx solid rgba(25,137,250,.1)',
506
- transform: 'rotate(45deg)'
507
- }
508
- })
509
- await p.single({
510
- type: 'text',
511
- text: '床前明月光,疑是地上霜。\n举头望明月,低头思故乡。',
512
- css: {
513
- left: '0rpx',
514
- top: '330rpx'
515
- }
516
- })
517
- // 使用自定义时,要配合方法绘制,否则无法绘制。
518
- await p.canvasDraw(true)
519
- },
520
- // 支持通过调用canvasToTempFilePath方法传入参数 调取生成图片
521
- onCanvasToTempFilePath() {
522
- const painter = this.$refs.custom
523
- painter.canvasToTempFilePath({dpr:2}).then(res => this.path = res.tempFilePath)
524
-
525
- }
526
- }
527
- }
528
- ```
529
-
530
- ### 海报样式案例
531
-
532
- * 给节点设置 `isRenderImage` 此属性意思为是否绘制完成后生成图片
533
- * 生成图片成功后 `success` 事件收接 **图片临时地址**
534
-
535
- ```html
536
- <l-painter
537
- isRenderImage
538
- custom-style="position: fixed; left: 200%;"
539
- :board="base"
540
- @success="path = $event"
541
- />
542
- ```
543
-
544
- ```js
545
- export default {
546
- data() {
547
- return {
548
- base: {
549
- width: '750rpx',
550
- height: '1114rpx',
551
- background: '#F6F7FB',
552
- views: [
553
- {
554
- type: 'view',
555
- css: {
556
- left: '40rpx',
557
- top: '144rpx',
558
- background: '#fff',
559
- radius: '16rpx',
560
- width: '670rpx',
561
- height: '930rpx',
562
- shadow: '0 20rpx 48rpx rgba(0,0,0,.05)'
563
- }
564
- },
565
- {
566
- type: 'image',
567
- src: '../../static/avatar-2.jpg',
568
- mode: 'widthFix',
569
- css: {
570
- left: '40rpx',
571
- top: '40rpx',
572
- width: '84rpx',
573
- height: '84rpx',
574
- radius: '50%',
575
- color: '#999'
576
- }
577
- },
578
- {
579
- type: 'text',
580
- text: '隔壁老王',
581
- css: {
582
- color: '#333',
583
- left: '144rpx',
584
- top: '40rpx',
585
- fontSize: '32rpx',
586
- fontWeight: 'bold'
587
- }
588
- },
589
- {
590
- type: 'text',
591
- text: '为您挑选了一个好物',
592
- css: {
593
- color: '#666',
594
- left: '144rpx',
595
- top: '90rpx',
596
- fontSize: '24rpx'
597
- }
598
- },
599
- {
600
- type: 'image',
601
- src: '../../static/goods.jpg',
602
- mode: 'widthFix',
603
- css: {
604
- left: '72rpx',
605
- top: '176rpx',
606
- width: '606rpx',
607
- height: '606rpx',
608
- radius: '12rpx'
609
- }
610
- },
611
- {
612
- type: 'text',
613
- text: '¥39.90',
614
- css: {
615
- color: '#FF0000',
616
- left: '66rpx',
617
- top: '812rpx',
618
- fontSize: '56rpx',
619
- fontWeight: 'bold'
620
- }
621
- },
622
- {
623
- type: 'text',
624
- text: '360儿童电话手表9X 智能语音问答定位支付手表 4G全网通20米游泳级防水视频通话拍照手表男女孩星空蓝',
625
- css: {
626
- maxLines: 2,
627
- width: '396rpx',
628
- color: '#333',
629
- left: '72rpx',
630
- top: '948rpx',
631
- fontSize: '36rpx',
632
- lineHeight: '50rpx'
633
- }
634
- },
635
- {
636
- type: 'image',
637
- src: '../../static/qr.png',
638
- mode: 'widthFix',
639
- css: {
640
- left: '500rpx',
641
- top: '864rpx',
642
- width: '178rpx',
643
- height: '178rpx'
644
- }
645
- }
646
- ]
647
- }
648
- }
649
- },
650
- methods: {
651
- saveImage() {
652
- this.isShowPopup = false
653
- uni.saveImageToPhotosAlbum({
654
- filePath: this.path,
655
- success(res) {
656
- uni.showToast({
657
- title: '已保存到相册',
658
- icon: 'success',
659
- duration: 2000
660
- })
661
- }
662
- })
663
- },
664
- }
665
- }
666
- ```
667
-
668
- ## API
669
-
670
- ### Props
671
-
672
- | 参数 | 说明 | 类型 | 默认值 |
673
- | ------------- | ------------ | ---------------- | ------------ |
674
- | board | 画板对象 | <em>object</em> | 参数请向下看 |
675
- | customStyle | 自定义样式 | <em>string</em> | |
676
- | isRenderImage | 是否生成图片,在`@success`事件接收图片地址 | <em>boolean</em> | `false` |
677
- | isH5PathToBase64 | H5端把网络图片转成base64,解决部分跨域问题 | <em>boolean</em> | `false` |
678
- | isBase64ToPath | H5端把base64转成网络图片,应用场景不多考虑删除慎用 | <em>boolean</em> | `false` |
679
- | sleep | 此参数是为解决图片渲染时不按JSON层次前后渲染。若有此情况请增大数值 | <em>number</em> | `33` |
680
- | type | 只对微信小程序可有效 | <em>string</em> | `2d` |
681
- | fileType | 生成图片的后缀类型 | <em>string</em> | `png` |
682
- | pixelRatio | 生成图片的像素密度,默认为对应手机的像素密度 | <em>number</em> | `` |
683
- | width | 画板的宽度,一般只用于通过内部方法时加上 | <em>number</em> | `` |
684
- | height | 画板的高度 ,同上 | <em>number</em> | `` |
685
-
686
-
687
- ### Board
688
-
689
- | 参数 | 说明 | 类型 |
690
- | ---------- | ---------------------------------- | --------------- |
691
- | width | 画板的宽度 | <em>string</em> |
692
- | height | 画板的高度 | <em>string</em> |
693
- | background | 画板的背景色,支持颜色渐变,但要写百分比及方向如:`background: 'linear-gradient(to right, #ff971b 0%, #ff5000 100%)'` | <em>string</em> |
694
- | views | 画板的元素集,请向下看各元素的参数 | <em>object</em> |
695
-
696
-
697
- ### 块 View
698
-
699
- | 参数 | 说明 |
700
- | ---- | --------------------------------------------------------------------------------------------------- |
701
- | type | 元素类型`view` |
702
- | css | 元素的样式,`top`、`left`、`width`、`height`、`background`、`radius`、`border`、`shadow` 、`transform`包含缩放: `scaleX(-1)`、旋转`rotate(50deg)`、倾斜`skewX(50deg)` |
703
-
704
-
705
- ### 文本 text
706
-
707
- | 参数 | 说明 |
708
- | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
709
- | type | 元素类型`text` |
710
- | text | 文本内容 |
711
- | css | 元素的样式,`top`、`left`、`fontSize`、`fontWeight`、`fontFamily`、`width`、`lineHeight`、`color`、`textDecoration`、`textAlign`:center, left, right、最大行数:`maxLines`、`transform` |
712
- | rules | 是一个对象 `Object`指定文字颜色, `word`关键词数组、`color`关键词颜色,目前只能定一种颜色。|
713
-
714
-
715
- ### 图片 image
716
-
717
- | 参数 | 说明 |
718
- | ---- | -------------------------------------------------------------------------- |
719
- | type | 元素类型`image` |
720
- | src | 图片地址 |
721
- | css | 元素的样式,`top`、`left`、`width`、`height`、`radius`、`border`、`shadow`、`transform` |
722
-
723
-
724
- ### 二维码 qrcode
725
-
726
- | 参数 | 说明 |
727
- | ---- | -------------------------------------------------------------------------- |
728
- | type | 元素类型`qrcode`, 二维码。[需要自行下载覆盖](https://gitee.com/liangei/lime-painter/blob/master/qrcode.js)。 |
729
- | text | 二维码文本内容 |
730
- | css | 元素的样式,`top`、`left`、`width`、`height`、`border`、`transform`、`backgroundColor`背景色、`color` 前景色|
731
-
732
-
733
- ### 事件 Events
734
-
735
- | 事件名 | 说明 | 回调 |
736
- | ------- | ------------ | -------------- |
737
- | success | 生成图片成功,若使用了`isRenderImage`可以接收图片地址 | event |
738
- | fail | 生成图片失败 | {error: error} |
739
- | done | 绘制成功 | |
740
- | progress | 绘制进度 | 进度数值 |
741
-
742
- ## 常见问题
743
- - 1、H5端使用网络图片需要解决跨域问题、或者添加`isH5PathToBase64`可解决部分问题。
744
- - 2、小程序使用网络图片需要去公众平台增加下载白名单!二级域名也需要配!
745
- - 3、H5端生成图片是base64,有时显示只有一半可以使用原生标签`<IMG/>`
746
- - 4、发生保存图片倾斜变形或提示native buffer exceed size limit时,使用pixel-ratio="2"参数,降分辨率。
747
- - 5、h5保存图片不需要调接口,提示用户长按图片保存。
748
- - 6、IOS APP 请勿使用HBX2.9.3.20201014的版本!这个版本无法生成图片。
749
- - 7、不生成图片或不绘制时,请查看是否把组件隐藏了!
750
- - 8、APP端无成功反馈、也无失败反馈时,请更新基座和HBX。
751
- - 9、微信小程序2D不支持真机调试,请使用真机预览方式。
752
- - 10、华为手机APP上无法生成图片,请使用HBX2.9.11++
753
- - 11、苹果微信7.0.20存在闪退和图片无法onload为微信bug,请到码云上升级本插件
754
-
755
- ## 打赏
756
- 如果你觉得本插件,解决了你的问题,赠人玫瑰,手留余香。
757
-
758
- ![输入图片说明](https://cdn.jsdelivr.net/gh/liangei/image@latest/222521_bb543f96_518581.jpeg "微信图片编辑_20201122220352.jpg")