@10yun/cv-mobile-ui 0.5.55 → 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 (351) 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-dropdown-list/u-dropdown-list.vue +1 -2
  59. package/uview-plus/components/u-form/form.js +13 -12
  60. package/uview-plus/components/u-image/u-image-wu.vue +25 -1
  61. package/uview-plus/components/u-parse/README.md +192 -0
  62. package/uview-plus/components/u-parse/changelog.md +163 -0
  63. package/uview-plus/components/u-parse/node/node.vue +37 -3
  64. package/{uni-ui/lib/uni-breadcrumb → uview-plus/components/u-parse}/package.json +24 -29
  65. package/uview-plus/components/u-parse/parser.js +8 -3
  66. package/uview-plus/components/u-parse/static/app-plus/up-parse/js/handler.js +1 -0
  67. package/uview-plus/components/u-parse/static/app-plus/up-parse/local-2.5.2.html +29 -0
  68. package/uview-plus/components/u-parse/u-parse.vue +29 -1
  69. package/other/lime-painter2/README2.md +0 -576
  70. package/other/lime-painter2/changelog.md +0 -225
  71. package/other/lime-painter2/package.json +0 -93
  72. package/other/lime-painter2/readme.md +0 -758
  73. package/other/lime-painter2/test.md +0 -45
  74. package/other/qiun-data-charts/qiun-data-charts.vue +0 -1618
  75. package/other/u-parse-2019/readme.md +0 -99
  76. package/other/uParse/components/style.css +0 -1
  77. package/other/uParse/components/wxParseAudio.vue +0 -1
  78. package/other/xt-parse/changelog.md +0 -41
  79. package/other/xt-parse/node/node.vue +0 -752
  80. package/other/xt-parse/package.json +0 -129
  81. package/other/xt-parse/parser.js +0 -1461
  82. package/other/xt-parse/props.js +0 -49
  83. package/other/xt-parse/readme.md +0 -145
  84. package/other/xt-parse/static/app-plus/u-parse/js/handler.js +0 -1
  85. package/other/xt-parse/u-parse.vue +0 -510
  86. package/plugins/luch-request/adapters/index.js +0 -131
  87. package/plugins/luch-request/core/InterceptorManager.js +0 -50
  88. package/plugins/luch-request/core/Request.js +0 -199
  89. package/plugins/luch-request/core/buildFullPath.js +0 -20
  90. package/plugins/luch-request/core/defaults.js +0 -32
  91. package/plugins/luch-request/core/dispatchRequest.js +0 -5
  92. package/plugins/luch-request/core/mergeConfig.js +0 -125
  93. package/plugins/luch-request/core/settle.js +0 -16
  94. package/plugins/luch-request/helpers/buildURL.js +0 -71
  95. package/plugins/luch-request/helpers/combineURLs.js +0 -12
  96. package/plugins/luch-request/helpers/isAbsoluteURL.js +0 -14
  97. package/plugins/luch-request/index.d.ts +0 -197
  98. package/plugins/luch-request/index.js +0 -2
  99. package/plugins/luch-request/readme.md +0 -3
  100. package/plugins/luch-request/utils/clone.js +0 -260
  101. package/plugins/luch-request/utils.js +0 -131
  102. package/ui-cv/components/cv-cell-row/cv-cell-row.vue +0 -220
  103. package/ui-cv/components/cv-icons/iconfont/font-action-icons.js +0 -73
  104. package/ui-cv/components/cv-icons/iconfont/font-action.css +0 -7
  105. package/ui-cv/components/cv-icons/iconfont/font-action.js +0 -5
  106. package/ui-cv/components/cv-icons/iconfont/font-arrow-icons.js +0 -47
  107. package/ui-cv/components/cv-icons/iconfont/font-arrow.css +0 -6
  108. package/ui-cv/components/cv-icons/iconfont/font-arrow.js +0 -5
  109. package/ui-cv/components/cv-icons/iconfont/font-base-icons.js +0 -92
  110. package/ui-cv/components/cv-icons/iconfont/font-base.css +0 -6
  111. package/ui-cv/components/cv-icons/iconfont/font-base.js +0 -5
  112. package/ui-cv/components/cv-icons/iconfont/font-mall-icons.js +0 -35
  113. package/ui-cv/components/cv-icons/iconfont/font-mall.css +0 -7
  114. package/ui-cv/components/cv-icons/iconfont/font-mall.js +0 -5
  115. package/ui-cv/components/cv-icons/iconfont/font-media-icons.js +0 -45
  116. package/ui-cv/components/cv-icons/iconfont/font-media.css +0 -7
  117. package/ui-cv/components/cv-icons/iconfont/font-media.js +0 -5
  118. package/ui-cv/components/cv-icons/iconfont/font-order-icons.js +0 -34
  119. package/ui-cv/components/cv-icons/iconfont/font-order.css +0 -6
  120. package/ui-cv/components/cv-icons/iconfont/font-order.js +0 -5
  121. package/ui-cv/components/cv-icons/iconfont/font-people-icons.js +0 -49
  122. package/ui-cv/components/cv-icons/iconfont/font-people.css +0 -7
  123. package/ui-cv/components/cv-icons/iconfont/font-people.js +0 -5
  124. package/ui-cv/components/cv-icons/iconfont/font-status-icons.js +0 -34
  125. package/ui-cv/components/cv-icons/iconfont/font-status.css +0 -6
  126. package/ui-cv/components/cv-icons/iconfont/font-status.js +0 -5
  127. package/ui-cv/components/cv-icons/iconfont/font-wallet-icons.js +0 -17
  128. package/ui-cv/components/cv-icons/iconfont/font-wallet.css +0 -6
  129. package/ui-cv/components/cv-icons/iconfont/font-wallet.js +0 -5
  130. package/ui-cv/components/cv-icons/icons/default-icons.js +0 -132
  131. package/ui-cv/components/cv-icons/icons/icons-action.js +0 -72
  132. package/ui-cv/components/cv-icons/icons/icons-arrow.js +0 -46
  133. package/ui-cv/components/cv-icons/icons/icons-base.js +0 -89
  134. package/ui-cv/components/cv-icons/icons/icons-mall.js +0 -34
  135. package/ui-cv/components/cv-icons/icons/icons-media.js +0 -44
  136. package/ui-cv/components/cv-icons/icons/icons-order.js +0 -33
  137. package/ui-cv/components/cv-icons/icons/icons-people.js +0 -46
  138. package/ui-cv/components/cv-icons/icons/icons-status.js +0 -32
  139. package/ui-cv/components/cv-icons/icons/icons-wallet.js +0 -15
  140. package/ui-sdks/sdk-app-update/img/logo.png +0 -0
  141. package/ui-sdks/sdk-app-update/img/update_bg.png +0 -0
  142. package/ui-sdks/sdk-app-update/img/update_bg_top.png +0 -0
  143. package/ui-sdks/sdk-app-update/sdk-app-update.vue +0 -396
  144. package/ui-sdks/sdk-app-update/xxxx +0 -62
  145. package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +0 -113
  146. package/ui-sdks/sdk-u-charts/config-echarts.js +0 -420
  147. package/ui-sdks/sdk-u-charts/config-ucharts.js +0 -630
  148. package/ui-sdks/sdk-u-charts/u-charts.js +0 -7398
  149. package/ui-sdks/sdk-u-charts/u-charts.min.js +0 -1
  150. package/ui-sdks/sdk-webview-main/WebViewMain.vue +0 -1
  151. package/ui-sdks/sdk-webview-main/main.js +0 -0
  152. package/ui-sdks/sdk-webview-main/mixin.js +0 -0
  153. package/uni-ui/lib/uni-badge/changelog.md +0 -33
  154. package/uni-ui/lib/uni-badge/package.json +0 -107
  155. package/uni-ui/lib/uni-badge/readme.md +0 -8
  156. package/uni-ui/lib/uni-breadcrumb/changelog.md +0 -6
  157. package/uni-ui/lib/uni-breadcrumb/readme.md +0 -66
  158. package/uni-ui/lib/uni-calendar/changelog.md +0 -30
  159. package/uni-ui/lib/uni-calendar/package.json +0 -105
  160. package/uni-ui/lib/uni-calendar/readme.md +0 -103
  161. package/uni-ui/lib/uni-card/changelog.md +0 -26
  162. package/uni-ui/lib/uni-card/package.json +0 -107
  163. package/uni-ui/lib/uni-card/readme.md +0 -10
  164. package/uni-ui/lib/uni-collapse/changelog.md +0 -48
  165. package/uni-ui/lib/uni-collapse/package.json +0 -106
  166. package/uni-ui/lib/uni-collapse/readme.md +0 -11
  167. package/uni-ui/lib/uni-combox/changelog.md +0 -17
  168. package/uni-ui/lib/uni-combox/package.json +0 -107
  169. package/uni-ui/lib/uni-combox/readme.md +0 -10
  170. package/uni-ui/lib/uni-countdown/changelog.md +0 -30
  171. package/uni-ui/lib/uni-countdown/package.json +0 -105
  172. package/uni-ui/lib/uni-countdown/readme.md +0 -9
  173. package/uni-ui/lib/uni-data-checkbox/changelog.md +0 -51
  174. package/uni-ui/lib/uni-data-checkbox/package.json +0 -107
  175. package/uni-ui/lib/uni-data-checkbox/readme.md +0 -17
  176. package/uni-ui/lib/uni-data-picker/changelog.md +0 -81
  177. package/uni-ui/lib/uni-data-picker/package.json +0 -109
  178. package/uni-ui/lib/uni-data-picker/readme.md +0 -21
  179. package/uni-ui/lib/uni-data-select/changelog.md +0 -51
  180. package/uni-ui/lib/uni-data-select/package.json +0 -106
  181. package/uni-ui/lib/uni-data-select/readme.md +0 -7
  182. package/uni-ui/lib/uni-dateformat/changelog.md +0 -10
  183. package/uni-ui/lib/uni-dateformat/package.json +0 -107
  184. package/uni-ui/lib/uni-dateformat/readme.md +0 -10
  185. package/uni-ui/lib/uni-datetime-picker/changelog.md +0 -177
  186. package/uni-ui/lib/uni-datetime-picker/package.json +0 -107
  187. package/uni-ui/lib/uni-datetime-picker/readme.md +0 -20
  188. package/uni-ui/lib/uni-drawer/changelog.md +0 -13
  189. package/uni-ui/lib/uni-drawer/package.json +0 -106
  190. package/uni-ui/lib/uni-drawer/readme.md +0 -9
  191. package/uni-ui/lib/uni-easyinput/changelog.md +0 -121
  192. package/uni-ui/lib/uni-easyinput/package.json +0 -107
  193. package/uni-ui/lib/uni-easyinput/readme.md +0 -10
  194. package/uni-ui/lib/uni-fab/changelog.md +0 -25
  195. package/uni-ui/lib/uni-fab/package.json +0 -107
  196. package/uni-ui/lib/uni-fab/readme.md +0 -8
  197. package/uni-ui/lib/uni-fav/changelog.md +0 -19
  198. package/uni-ui/lib/uni-fav/package.json +0 -106
  199. package/uni-ui/lib/uni-fav/readme.md +0 -9
  200. package/uni-ui/lib/uni-file-picker/changelog.md +0 -91
  201. package/uni-ui/lib/uni-file-picker/package.json +0 -105
  202. package/uni-ui/lib/uni-file-picker/readme.md +0 -10
  203. package/uni-ui/lib/uni-forms/changelog.md +0 -100
  204. package/uni-ui/lib/uni-forms/package.json +0 -107
  205. package/uni-ui/lib/uni-forms/readme.md +0 -22
  206. package/uni-ui/lib/uni-goods-nav/changelog.md +0 -18
  207. package/uni-ui/lib/uni-goods-nav/package.json +0 -105
  208. package/uni-ui/lib/uni-goods-nav/readme.md +0 -9
  209. package/uni-ui/lib/uni-grid/changelog.md +0 -13
  210. package/uni-ui/lib/uni-grid/package.json +0 -106
  211. package/uni-ui/lib/uni-grid/readme.md +0 -10
  212. package/uni-ui/lib/uni-group/changelog.md +0 -16
  213. package/uni-ui/lib/uni-group/package.json +0 -106
  214. package/uni-ui/lib/uni-group/readme.md +0 -8
  215. package/uni-ui/lib/uni-icons/changelog.md +0 -44
  216. package/uni-ui/lib/uni-icons/package.json +0 -111
  217. package/uni-ui/lib/uni-icons/readme.md +0 -7
  218. package/uni-ui/lib/uni-indexed-list/changelog.md +0 -19
  219. package/uni-ui/lib/uni-indexed-list/package.json +0 -107
  220. package/uni-ui/lib/uni-indexed-list/readme.md +0 -10
  221. package/uni-ui/lib/uni-link/changelog.md +0 -17
  222. package/uni-ui/lib/uni-link/package.json +0 -106
  223. package/uni-ui/lib/uni-link/readme.md +0 -10
  224. package/uni-ui/lib/uni-list/changelog.md +0 -52
  225. package/uni-ui/lib/uni-list/package.json +0 -108
  226. package/uni-ui/lib/uni-list/readme.md +0 -44
  227. package/uni-ui/lib/uni-load-more/changelog.md +0 -27
  228. package/uni-ui/lib/uni-load-more/package.json +0 -105
  229. package/uni-ui/lib/uni-load-more/readme.md +0 -12
  230. package/uni-ui/lib/uni-nav-bar/changelog.md +0 -64
  231. package/uni-ui/lib/uni-nav-bar/package.json +0 -106
  232. package/uni-ui/lib/uni-nav-bar/readme.md +0 -13
  233. package/uni-ui/lib/uni-notice-bar/changelog.md +0 -22
  234. package/uni-ui/lib/uni-notice-bar/package.json +0 -107
  235. package/uni-ui/lib/uni-notice-bar/readme.md +0 -11
  236. package/uni-ui/lib/uni-number-box/changelog.md +0 -39
  237. package/uni-ui/lib/uni-number-box/package.json +0 -104
  238. package/uni-ui/lib/uni-number-box/readme.md +0 -11
  239. package/uni-ui/lib/uni-pagination/changelog.md +0 -27
  240. package/uni-ui/lib/uni-pagination/package.json +0 -106
  241. package/uni-ui/lib/uni-pagination/readme.md +0 -10
  242. package/uni-ui/lib/uni-popup/changelog.md +0 -102
  243. package/uni-ui/lib/uni-popup/package.json +0 -107
  244. package/uni-ui/lib/uni-popup/readme.md +0 -15
  245. package/uni-ui/lib/uni-rate/changelog.md +0 -27
  246. package/uni-ui/lib/uni-rate/package.json +0 -106
  247. package/uni-ui/lib/uni-rate/readme.md +0 -11
  248. package/uni-ui/lib/uni-row/changelog.md +0 -10
  249. package/uni-ui/lib/uni-row/package.json +0 -106
  250. package/uni-ui/lib/uni-row/readme.md +0 -9
  251. package/uni-ui/lib/uni-scss/changelog.md +0 -8
  252. package/uni-ui/lib/uni-scss/package.json +0 -99
  253. package/uni-ui/lib/uni-scss/readme.md +0 -3
  254. package/uni-ui/lib/uni-search-bar/changelog.md +0 -47
  255. package/uni-ui/lib/uni-search-bar/package.json +0 -106
  256. package/uni-ui/lib/uni-search-bar/readme.md +0 -12
  257. package/uni-ui/lib/uni-section/changelog.md +0 -2
  258. package/uni-ui/lib/uni-section/package.json +0 -104
  259. package/uni-ui/lib/uni-section/readme.md +0 -7
  260. package/uni-ui/lib/uni-segmented-control/changelog.md +0 -15
  261. package/uni-ui/lib/uni-segmented-control/package.json +0 -106
  262. package/uni-ui/lib/uni-segmented-control/readme.md +0 -11
  263. package/uni-ui/lib/uni-steps/changelog.md +0 -18
  264. package/uni-ui/lib/uni-steps/package.json +0 -106
  265. package/uni-ui/lib/uni-steps/readme.md +0 -11
  266. package/uni-ui/lib/uni-swipe-action/changelog.md +0 -60
  267. package/uni-ui/lib/uni-swipe-action/package.json +0 -113
  268. package/uni-ui/lib/uni-swipe-action/readme.md +0 -10
  269. package/uni-ui/lib/uni-swiper-dot/changelog.md +0 -12
  270. package/uni-ui/lib/uni-swiper-dot/package.json +0 -106
  271. package/uni-ui/lib/uni-swiper-dot/readme.md +0 -10
  272. package/uni-ui/lib/uni-table/changelog.md +0 -35
  273. package/uni-ui/lib/uni-table/package.json +0 -106
  274. package/uni-ui/lib/uni-table/readme.md +0 -11
  275. package/uni-ui/lib/uni-tag/changelog.md +0 -25
  276. package/uni-ui/lib/uni-tag/package.json +0 -106
  277. package/uni-ui/lib/uni-tag/readme.md +0 -11
  278. package/uni-ui/lib/uni-title/changelog.md +0 -10
  279. package/uni-ui/lib/uni-title/package.json +0 -107
  280. package/uni-ui/lib/uni-title/readme.md +0 -12
  281. package/uni-ui/lib/uni-tooltip/changelog.md +0 -16
  282. package/uni-ui/lib/uni-tooltip/package.json +0 -104
  283. package/uni-ui/lib/uni-tooltip/readme.md +0 -7
  284. package/uni-ui/lib/uni-transition/changelog.md +0 -31
  285. package/uni-ui/lib/uni-transition/package.json +0 -112
  286. package/uni-ui/lib/uni-transition/readme.md +0 -10
  287. package/uni-ui/lib/uni-ui/changelog.md +0 -639
  288. package/uni-ui/lib/uni-ui/package.json +0 -148
  289. package/uni-ui/lib/uni-ui/readme.md +0 -247
  290. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/canvas.js +0 -0
  291. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/draw.js +0 -0
  292. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/draw2.js +0 -0
  293. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/gradient.js +0 -0
  294. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/index.vue +0 -0
  295. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/index2.vue +0 -0
  296. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/layout.js +0 -0
  297. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/qrcode.js +0 -0
  298. /package/other/{lime-painter2/components/lime-painter → lime-painter/components/lime-painter2}/utils.js +0 -0
  299. /package/{ui-sdks → other}/qiun-data-charts/changelog.md +0 -0
  300. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue +0 -0
  301. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-error/qiun-error.vue +0 -0
  302. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading1.vue +0 -0
  303. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading2.vue +0 -0
  304. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading3.vue +0 -0
  305. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading4.vue +0 -0
  306. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/loading5.vue +0 -0
  307. /package/{ui-sdks → other}/qiun-data-charts/components/qiun-loading/qiun-loading.vue +0 -0
  308. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/config-echarts.js +0 -0
  309. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/readme.md +0 -0
  310. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/u-charts.js +0 -0
  311. /package/{ui-sdks → other}/qiun-data-charts/js_sdk/u-charts/u-charts.min.js +0 -0
  312. /package/{ui-sdks/sdk-u-charts → other/qiun-data-charts/js_sdk2}/app-echarts.min.js +0 -0
  313. /package/{ui-sdks/sdk-u-charts → other/qiun-data-charts/js_sdk2}/h5-echarts.min.js +0 -0
  314. /package/{ui-sdks → other}/qiun-data-charts/license.md +0 -0
  315. /package/{ui-sdks → other}/qiun-data-charts/readme.md +0 -0
  316. /package/{ui-sdks → other}/qiun-data-charts/static/app-plus/echarts.min.js +0 -0
  317. /package/{ui-sdks → other}/qiun-data-charts/static/h5/echarts.min.js +0 -0
  318. /package/{ui-sdks → other}/tui-clipboard/tui-clipboard.js +0 -0
  319. /package/other/{u-parse-2019 → u-parse}/components/wxParseAudio.vue +0 -0
  320. /package/other/{u-parse-2019 → u-parse}/components/wxParseImg.vue +0 -0
  321. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate1.vue +0 -0
  322. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate10.vue +0 -0
  323. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate11.vue +0 -0
  324. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate2.vue +0 -0
  325. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate3.vue +0 -0
  326. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate4.vue +0 -0
  327. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate5.vue +0 -0
  328. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate6.vue +0 -0
  329. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate7.vue +0 -0
  330. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate8.vue +0 -0
  331. /package/other/{u-parse-2019 → u-parse}/components/wxParseTemplate9.vue +0 -0
  332. /package/other/{u-parse-2019 → u-parse}/components/wxParseVideo.vue +0 -0
  333. /package/other/{u-parse-2019 → u-parse}/libs/htmlparser.js +0 -0
  334. /package/other/{u-parse-2019 → u-parse}/u-parse.css +0 -0
  335. /package/other/{uParse → uParse2}/components/wxParseTemplate10.vue +0 -0
  336. /package/other/{uParse → uParse2}/components/wxParseTemplate11.vue +0 -0
  337. /package/other/{uParse → uParse2}/components/wxParseTemplate2.vue +0 -0
  338. /package/other/{uParse → uParse2}/components/wxParseTemplate3.vue +0 -0
  339. /package/other/{uParse → uParse2}/components/wxParseTemplate4.vue +0 -0
  340. /package/other/{uParse → uParse2}/components/wxParseTemplate5.vue +0 -0
  341. /package/other/{uParse → uParse2}/components/wxParseTemplate6.vue +0 -0
  342. /package/other/{uParse → uParse2}/components/wxParseTemplate7.vue +0 -0
  343. /package/other/{uParse → uParse2}/components/wxParseTemplate8.vue +0 -0
  344. /package/other/{uParse → uParse2}/components/wxParseTemplate9.vue +0 -0
  345. /package/other/{uParse → uParse2}/components/wxParseVideo.vue +0 -0
  346. /package/other/{uParse → uParse2}/editor.css +0 -0
  347. /package/other/{uParse → uParse2}/libs/htmlparser.js +0 -0
  348. /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/js/handler2.js +0 -0
  349. /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
  350. /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
  351. /package/{other/xt-parse/static/app-plus/u-parse → uview-plus/components/u-parse/static/app-plus/up-parse}/local.html +0 -0
@@ -1,752 +0,0 @@
1
- <template>
2
- <view :id="attrs.id" :class="'_block _' + name + ' ' + attrs.class" :style="attrs.style">
3
- <block v-for="(n, i) in childs" v-bind:key="i">
4
- <!-- 图片 -->
5
- <!-- 占位图 -->
6
- <image
7
- v-if="n.name === 'img' && !n.t && ((opts[1] && !ctrl[i]) || ctrl[i] < 0)"
8
- class="_img"
9
- :style="n.attrs.style"
10
- :src="ctrl[i] < 0 ? opts[2] : opts[1]"
11
- mode="widthFix"
12
- />
13
- <!-- 显示图片 -->
14
- <!-- #ifdef H5 || (APP-PLUS && VUE2) -->
15
- <img
16
- v-if="n.name === 'img'"
17
- :id="n.attrs.id"
18
- :class="'_img ' + n.attrs.class"
19
- :style="(ctrl[i] === -1 ? 'display:none;' : '') + n.attrs.style"
20
- :src="n.attrs.src || (ctrl.load ? n.attrs['data-src'] : '')"
21
- :data-i="i"
22
- @load="imgLoad"
23
- @error="mediaError"
24
- @tap.stop="imgTap"
25
- @longpress="imgLongTap"
26
- />
27
- <!-- #endif -->
28
- <!-- #ifndef H5 || (APP-PLUS && VUE2) -->
29
- <!-- 表格中的图片,使用 rich-text 防止大小不正确 -->
30
- <rich-text
31
- v-if="n.name === 'img' && n.t"
32
- :style="'display:' + n.t"
33
- :nodes="[{ attrs: { style: n.attrs.style || '', src: n.attrs.src }, name: 'img' }]"
34
- :data-i="i"
35
- @tap.stop="imgTap"
36
- />
37
- <!-- #endif -->
38
- <!-- #ifdef APP-HARMONY -->
39
- <image
40
- v-else-if="n.name === 'img'"
41
- :id="n.attrs.id"
42
- :class="'_img ' + n.attrs.class"
43
- :style="(ctrl[i] === -1 ? 'display:none;' : '') + 'width:' + ctrl[i] + 'px;' + n.attrs.style"
44
- :src="n.attrs.src || (ctrl.load ? n.attrs['data-src'] : '')"
45
- :mode="!n.h ? 'widthFix' : !n.w ? 'heightFix' : n.m || 'scaleToFill'"
46
- :data-i="i"
47
- @load="imgLoad"
48
- @error="mediaError"
49
- @tap.stop="imgTap"
50
- @longpress="imgLongTap"
51
- />
52
- <!-- #endif -->
53
- <!-- #ifndef H5 || APP-PLUS || MP-KUAISHOU -->
54
- <image
55
- v-else-if="n.name === 'img'"
56
- :id="n.attrs.id"
57
- :class="'_img ' + n.attrs.class"
58
- :style="(ctrl[i] === -1 ? 'display:none;' : '') + 'width:' + (ctrl[i] || 1) + 'px;height:1px;' + n.attrs.style"
59
- :src="n.attrs.src"
60
- :mode="!n.h ? 'widthFix' : !n.w ? 'heightFix' : n.m || 'scaleToFill'"
61
- :lazy-load="opts[0]"
62
- :webp="n.webp"
63
- :show-menu-by-longpress="opts[3] && !n.attrs.ignore"
64
- :image-menu-prevent="!opts[3] || n.attrs.ignore"
65
- :data-i="i"
66
- @load="imgLoad"
67
- @error="mediaError"
68
- @tap.stop="imgTap"
69
- @longpress="imgLongTap"
70
- />
71
- <!-- #endif -->
72
- <!-- #ifdef MP-KUAISHOU -->
73
- <image
74
- v-else-if="n.name === 'img'"
75
- :id="n.attrs.id"
76
- :class="'_img ' + n.attrs.class"
77
- :style="(ctrl[i] === -1 ? 'display:none;' : '') + n.attrs.style"
78
- :src="n.attrs.src"
79
- :lazy-load="opts[0]"
80
- :data-i="i"
81
- @load="imgLoad"
82
- @error="mediaError"
83
- @tap.stop="imgTap"
84
- ></image>
85
- <!-- #endif -->
86
- <!-- #ifdef APP-PLUS && VUE3 -->
87
- <image
88
- v-else-if="n.name === 'img'"
89
- :id="n.attrs.id"
90
- :class="'_img ' + n.attrs.class"
91
- :style="(ctrl[i] === -1 ? 'display:none;' : '') + 'width:' + (ctrl[i] || 1) + 'px;' + n.attrs.style"
92
- :src="n.attrs.src || (ctrl.load ? n.attrs['data-src'] : '')"
93
- :mode="!n.h ? 'widthFix' : !n.w ? 'heightFix' : n.m || ''"
94
- :data-i="i"
95
- @load="imgLoad"
96
- @error="mediaError"
97
- @tap.stop="imgTap"
98
- @longpress="imgLongTap"
99
- />
100
- <!-- #endif -->
101
- <!-- 文本 -->
102
- <!-- #ifdef MP-WEIXIN -->
103
- <text v-else-if="n.text" :user-select="opts[4] == 'force' && isiOS" decode>{{ n.text }}</text>
104
- <!-- #endif -->
105
- <!-- #ifndef MP-WEIXIN || MP-BAIDU || MP-ALIPAY || MP-TOUTIAO -->
106
- <text v-else-if="n.text" decode>{{ n.text }}</text>
107
- <!-- #endif -->
108
- <text v-else-if="n.name === 'br'">{{ '\n' }}</text>
109
- <!-- 链接 -->
110
- <view
111
- v-else-if="n.name === 'a'"
112
- :id="n.attrs.id"
113
- :class="(n.attrs.href ? '_a ' : '') + n.attrs.class"
114
- hover-class="_hover"
115
- :style="'display:inline;' + n.attrs.style"
116
- :data-i="i"
117
- @tap.stop="linkTap"
118
- >
119
- <node name="span" :childs="n.children" :opts="opts" style="display: inherit" />
120
- </view>
121
- <!-- 视频 -->
122
- <!-- #ifdef APP-PLUS -->
123
- <view
124
- v-else-if="n.html"
125
- :id="n.attrs.id"
126
- :class="'_video ' + n.attrs.class"
127
- :style="n.attrs.style"
128
- v-html="n.html"
129
- :data-i="i"
130
- @vplay.stop="play"
131
- />
132
- <!-- #endif -->
133
- <!-- #ifndef APP-PLUS -->
134
- <video
135
- v-else-if="n.name === 'video'"
136
- :id="n.attrs.id"
137
- :class="n.attrs.class"
138
- :style="n.attrs.style"
139
- :autoplay="n.attrs.autoplay"
140
- :controls="n.attrs.controls"
141
- :loop="n.attrs.loop"
142
- :muted="n.attrs.muted"
143
- :object-fit="n.attrs['object-fit']"
144
- :poster="n.attrs.poster"
145
- :src="n.src[ctrl[i] || 0]"
146
- :data-i="i"
147
- @play="play"
148
- @error="mediaError"
149
- />
150
- <!-- #endif -->
151
- <!-- #ifdef H5 || APP-PLUS -->
152
- <iframe
153
- v-else-if="n.name === 'iframe'"
154
- :style="n.attrs.style"
155
- :allowfullscreen="n.attrs.allowfullscreen"
156
- :frameborder="n.attrs.frameborder"
157
- :src="n.attrs.src"
158
- />
159
- <embed v-else-if="n.name === 'embed'" :style="n.attrs.style" :src="n.attrs.src" />
160
- <!-- #endif -->
161
- <!-- #ifndef MP-TOUTIAO || ((H5 || APP-PLUS) && VUE3) -->
162
- <!-- 音频 -->
163
- <audio
164
- v-else-if="n.name === 'audio'"
165
- :id="n.attrs.id"
166
- :class="n.attrs.class"
167
- :style="n.attrs.style"
168
- :author="n.attrs.author"
169
- :controls="n.attrs.controls"
170
- :loop="n.attrs.loop"
171
- :name="n.attrs.name"
172
- :poster="n.attrs.poster"
173
- :src="n.src[ctrl[i] || 0]"
174
- :data-i="i"
175
- @play="play"
176
- @error="mediaError"
177
- />
178
- <!-- #endif -->
179
- <view
180
- v-else-if="(n.name === 'table' && n.c) || n.name === 'li'"
181
- :id="n.attrs.id"
182
- :class="'_' + n.name + ' ' + n.attrs.class"
183
- :style="n.attrs.style"
184
- >
185
- <node v-if="n.name === 'li'" :childs="n.children" :opts="opts" />
186
- <view
187
- v-else
188
- v-for="(tbody, x) in n.children"
189
- v-bind:key="x"
190
- :class="'_' + tbody.name + ' ' + tbody.attrs.class"
191
- :style="tbody.attrs.style"
192
- >
193
- <node v-if="tbody.name === 'td' || tbody.name === 'th'" :childs="tbody.children" :opts="opts" />
194
- <block v-else v-for="(tr, y) in tbody.children" v-bind:key="y">
195
- <view
196
- v-if="tr.name === 'td' || tr.name === 'th'"
197
- :class="'_' + tr.name + ' ' + tr.attrs.class"
198
- :style="tr.attrs.style"
199
- >
200
- <node :childs="tr.children" :opts="opts" />
201
- </view>
202
- <view v-else :class="'_' + tr.name + ' ' + tr.attrs.class" :style="tr.attrs.style">
203
- <view
204
- v-for="(td, z) in tr.children"
205
- v-bind:key="z"
206
- :class="'_' + td.name + ' ' + td.attrs.class"
207
- :style="td.attrs.style"
208
- >
209
- <node :childs="td.children" :opts="opts" />
210
- </view>
211
- </view>
212
- </block>
213
- </view>
214
- </view>
215
- <!-- insert -->
216
- <!-- 富文本 -->
217
- <!-- #ifdef H5 || ((MP-WEIXIN || MP-QQ || APP-PLUS || MP-360) && VUE2) -->
218
- <rich-text
219
- v-else-if="!n.c && !handler.isInline(n.name, n.attrs.style)"
220
- :id="n.attrs.id"
221
- :style="n.f"
222
- :user-select="opts[4]"
223
- :nodes="[n]"
224
- />
225
- <!-- #endif -->
226
- <!-- #ifndef H5 || ((MP-WEIXIN || MP-QQ || APP-PLUS || MP-360) && VUE2) -->
227
- <rich-text
228
- v-else-if="!n.c"
229
- :id="n.attrs.id"
230
- :style="'display:inline;' + n.f"
231
- :preview="false"
232
- :selectable="opts[4]"
233
- :user-select="opts[4]"
234
- :nodes="[n]"
235
- />
236
- <!-- #endif -->
237
- <!-- 继续递归 -->
238
- <view
239
- v-else-if="n.c === 2"
240
- :id="n.attrs.id"
241
- :class="'_block _' + n.name + ' ' + n.attrs.class"
242
- :style="n.f + ';' + n.attrs.style"
243
- >
244
- <node
245
- v-for="(n2, j) in n.children"
246
- v-bind:key="j"
247
- :style="n2.f"
248
- :name="n2.name"
249
- :attrs="n2.attrs"
250
- :childs="n2.children"
251
- :opts="opts"
252
- />
253
- </view>
254
- <node v-else :style="n.f" :name="n.name" :attrs="n.attrs" :childs="n.children" :opts="opts" />
255
- </block>
256
- </view>
257
- </template>
258
- <script module="handler" lang="wxs">
259
- // 行内标签列表
260
- var inlineTags = {
261
- abbr: true,
262
- b: true,
263
- big: true,
264
- code: true,
265
- del: true,
266
- em: true,
267
- i: true,
268
- ins: true,
269
- label: true,
270
- q: true,
271
- small: true,
272
- span: true,
273
- strong: true,
274
- sub: true,
275
- sup: true
276
- };
277
- /**
278
- * @description 判断是否为行内标签
279
- */
280
- module.exports = {
281
- isInline: function (tagName, style) {
282
- return inlineTags[tagName] || (style || '').indexOf('display:inline') !== -1;
283
- }
284
- };
285
- </script>
286
- <script>
287
- import node from './node';
288
- export default {
289
- name: 'node',
290
- options: {
291
- // #ifdef MP-WEIXIN
292
- virtualHost: true,
293
- // #endif
294
- // #ifdef MP-TOUTIAO
295
- addGlobalClass: false
296
- // #endif
297
- },
298
- data() {
299
- return {
300
- ctrl: {},
301
- // #ifdef MP-WEIXIN
302
- isiOS: uni.getSystemInfoSync().system.includes('iOS')
303
- // #endif
304
- };
305
- },
306
- props: {
307
- name: String,
308
- attrs: {
309
- type: Object,
310
- default() {
311
- return {};
312
- }
313
- },
314
- childs: Array,
315
- opts: Array
316
- },
317
- components: {
318
- // #ifndef ((H5 || APP-PLUS) && VUE3) || APP-HARMONY
319
- node
320
- // #endif
321
- },
322
- mounted() {
323
- this.$nextTick(() => {
324
- // 修复可能导致死循环的问题
325
- for (this.root = this?.$parent; this.root && this.root?.$options.name !== 'up-parse'; this.root = this.root?.$parent);
326
- });
327
- // #ifdef H5 || APP-PLUS
328
- if (this.opts[0]) {
329
- let i;
330
- for (i = this.childs.length; i--; ) {
331
- if (this.childs[i].name === 'img') break;
332
- }
333
- if (i !== -1) {
334
- this.observer = uni.createIntersectionObserver(this).relativeToViewport({
335
- top: 500,
336
- bottom: 500
337
- });
338
- this.observer.observe('._img', (res) => {
339
- if (res.intersectionRatio) {
340
- this.$set(this.ctrl, 'load', 1);
341
- this.observer.disconnect();
342
- }
343
- });
344
- }
345
- }
346
- // #endif
347
- },
348
- beforeDestroy() {
349
- // #ifdef H5 || APP-PLUS
350
- if (this.observer) {
351
- this.observer.disconnect();
352
- }
353
- // #endif
354
- },
355
- emits: ['linktap', 'imgtap', 'play', 'ready', 'error'],
356
- methods: {
357
- // #ifdef MP-WEIXIN
358
- toJSON() {
359
- return this;
360
- },
361
- // #endif
362
- /**
363
- * @description 播放视频事件
364
- * @param {Event} e
365
- */
366
- play(e) {
367
- const i = e.currentTarget.dataset.i;
368
- const node = this.childs[i];
369
- this.root.$emit('play', {
370
- source: node.name,
371
- attrs: {
372
- ...node.attrs,
373
- src: node.src[this.ctrl[i] || 0]
374
- }
375
- });
376
- // #ifndef APP-PLUS
377
- if (this.root.pauseVideo) {
378
- let flag = false;
379
- const id = e.target.id;
380
- for (let i = this.root._videos.length; i--; ) {
381
- if (this.root._videos[i].id === id) {
382
- flag = true;
383
- } else {
384
- this.root._videos[i].pause(); // 自动暂停其他视频
385
- }
386
- }
387
- // 将自己加入列表
388
- if (!flag) {
389
- const ctx = uni.createVideoContext(
390
- id,
391
- // #ifndef MP-BAIDU
392
- this
393
- // #endif
394
- );
395
- ctx.id = id;
396
- if (this.root.playbackRate) {
397
- ctx.playbackRate(this.root.playbackRate);
398
- }
399
- this.root._videos.push(ctx);
400
- }
401
- }
402
- // #endif
403
- },
404
- /**
405
- * @description 图片点击事件
406
- * @param {Event} e
407
- */
408
- imgTap(e) {
409
- const node = this.childs[e.currentTarget.dataset.i];
410
- if (node.a) {
411
- this.linkTap(node.a);
412
- return;
413
- }
414
- if (node.attrs.ignore) return;
415
- // #ifdef H5 || APP-PLUS
416
- node.attrs.src = node.attrs.src || node.attrs['data-src'];
417
- // #endif
418
- // #ifndef APP-HARMONY
419
- this.root.$emit('imgtap', node.attrs);
420
- // #endif
421
- // #ifdef APP-HARMONY
422
- this.root.$emit('imgtap', {
423
- ...node.attrs
424
- });
425
- // #endif
426
- // 自动预览图片
427
- if (this.root.previewImg) {
428
- uni.previewImage({
429
- // #ifdef MP-WEIXIN
430
- showmenu: this.root.showImgMenu,
431
- // #endif
432
- // #ifdef MP-ALIPAY
433
- enablesavephoto: this.root.showImgMenu,
434
- enableShowPhotoDownload: this.root.showImgMenu,
435
- // #endif
436
- current: parseInt(node.attrs.i),
437
- urls: this.root.imgList
438
- });
439
- }
440
- },
441
- /**
442
- * @description 图片长按
443
- */
444
- imgLongTap(e) {
445
- // #ifdef APP-PLUS
446
- const attrs = this.childs[e.currentTarget.dataset.i].attrs;
447
- if (this.opts[3] && !attrs.ignore) {
448
- uni.showActionSheet({
449
- itemList: ['保存图片'],
450
- success: () => {
451
- const save = (path) => {
452
- uni.saveImageToPhotosAlbum({
453
- filePath: path,
454
- success() {
455
- uni.showToast({
456
- title: '保存成功'
457
- });
458
- }
459
- });
460
- };
461
- if (this.root.imgList[attrs.i].startsWith('http')) {
462
- uni.downloadFile({
463
- url: this.root.imgList[attrs.i],
464
- success: (res) => save(res.tempFilePath)
465
- });
466
- } else {
467
- save(this.root.imgList[attrs.i]);
468
- }
469
- }
470
- });
471
- }
472
- // #endif
473
- },
474
- /**
475
- * @description 图片加载完成事件
476
- * @param {Event} e
477
- */
478
- imgLoad(e) {
479
- const i = e.currentTarget.dataset.i;
480
- const a = true;
481
- /* #ifndef H5 || (APP-PLUS && VUE2) */
482
- if (!this.childs[i].w) {
483
- // 设置原宽度
484
- this.$set(this.ctrl, i, e.detail.width);
485
- a = false;
486
- }
487
- /* #endif */
488
- if (a) {
489
- if ((this.opts[1] && !this.ctrl[i]) || this.ctrl[i] === -1) {
490
- // 加载完毕,取消加载中占位图
491
- this.$set(this.ctrl, i, 1);
492
- }
493
- }
494
- this.checkReady();
495
- },
496
- /**
497
- * @description 检查是否所有图片加载完毕
498
- */
499
- checkReady() {
500
- if (this.root && !this.root.lazyLoad) {
501
- this.root._unloadimgs -= 1;
502
- if (!this.root._unloadimgs) {
503
- setTimeout(() => {
504
- this.root
505
- .getRect()
506
- .then((rect) => {
507
- this.root.$emit('ready', rect);
508
- })
509
- .catch(() => {
510
- this.root.$emit('ready', {});
511
- });
512
- }, 350);
513
- }
514
- }
515
- },
516
- /**
517
- * @description 链接点击事件
518
- * @param {Event} e
519
- */
520
- linkTap(e) {
521
- const node = e.currentTarget ? this.childs[e.currentTarget.dataset.i] : {};
522
- const attrs = node.attrs || e;
523
- const href = attrs.href;
524
- this.root.$emit(
525
- 'linktap',
526
- Object.assign(
527
- {
528
- innerText: this.root.getText(node.children || []) // 链接内的文本内容
529
- },
530
- attrs
531
- )
532
- );
533
- if (href) {
534
- if (href[0] === '#') {
535
- // 跳转锚点
536
- this.root.navigateTo(href.substring(1)).catch(() => {});
537
- } else if (href.split('?')[0].includes('://')) {
538
- // 复制外部链接
539
- if (this.root.copyLink) {
540
- // #ifdef H5
541
- window.open(href);
542
- // #endif
543
- // #ifdef MP
544
- uni.setClipboardData({
545
- data: href,
546
- success: () =>
547
- uni.showToast({
548
- title: '链接已复制'
549
- })
550
- });
551
- // #endif
552
- // #ifdef APP-PLUS
553
- plus.runtime.openWeb(href);
554
- // #endif
555
- // #ifdef APP-HARMONY
556
- plus.runtime.openURL(href);
557
- // #endif
558
- }
559
- } else {
560
- // 跳转页面
561
- uni.navigateTo({
562
- url: href,
563
- fail() {
564
- uni.switchTab({
565
- url: href,
566
- fail() {}
567
- });
568
- }
569
- });
570
- }
571
- }
572
- },
573
- /**
574
- * @description 错误事件
575
- * @param {Event} e
576
- */
577
- mediaError(e) {
578
- const i = e.currentTarget.dataset.i;
579
- const node = this.childs[i];
580
- // 加载其他源
581
- if (node.name === 'video' || node.name === 'audio') {
582
- let index = (this.ctrl[i] || 0) + 1;
583
- if (index > node.src.length) {
584
- index = 0;
585
- }
586
- if (index < node.src.length) {
587
- this.$set(this.ctrl, i, index);
588
- return;
589
- }
590
- } else if (node.name === 'img') {
591
- // #ifdef H5 && VUE3
592
- if (this.opts[0] && !this.ctrl.load) return;
593
- // #endif
594
- // 显示错误占位图
595
- if (this.opts[2]) {
596
- this.$set(this.ctrl, i, -1);
597
- }
598
- this.checkReady();
599
- }
600
- if (this.root) {
601
- this.root.$emit('error', {
602
- source: node.name,
603
- attrs: node.attrs,
604
- // #ifndef H5 && VUE3
605
- errMsg: e.detail.errMsg
606
- // #endif
607
- });
608
- }
609
- }
610
- }
611
- };
612
- </script>
613
- <style>
614
- /* a 标签默认效果 */
615
- ._a {
616
- padding: 1.5px 0 1.5px 0;
617
- color: #366092;
618
- word-break: break-all;
619
- }
620
- /* a 标签点击态效果 */
621
- ._hover {
622
- text-decoration: underline;
623
- opacity: 0.7;
624
- }
625
- /* 图片默认效果 */
626
- ._img {
627
- max-width: 100%;
628
- -webkit-touch-callout: none;
629
- }
630
- /* 内部样式 */
631
- ._block {
632
- display: block;
633
- }
634
- ._b,
635
- ._strong {
636
- font-weight: bold;
637
- }
638
- ._code {
639
- font-family: monospace;
640
- }
641
- ._del {
642
- text-decoration: line-through;
643
- }
644
- ._em,
645
- ._i {
646
- font-style: italic;
647
- }
648
- ._h1 {
649
- font-size: 2em;
650
- }
651
- ._h2 {
652
- font-size: 1.5em;
653
- }
654
- ._h3 {
655
- font-size: 1.17em;
656
- }
657
- ._h5 {
658
- font-size: 0.83em;
659
- }
660
- ._h6 {
661
- font-size: 0.67em;
662
- }
663
- ._h1,
664
- ._h2,
665
- ._h3,
666
- ._h4,
667
- ._h5,
668
- ._h6 {
669
- display: block;
670
- font-weight: bold;
671
- }
672
- ._image {
673
- height: 1px;
674
- }
675
- ._ins {
676
- text-decoration: underline;
677
- }
678
- ._li {
679
- display: list-item;
680
- }
681
- ._ol {
682
- list-style-type: decimal;
683
- }
684
- ._ol,
685
- ._ul {
686
- display: block;
687
- padding-left: 40px;
688
- margin: 1em 0;
689
- }
690
- ._q::before {
691
- content: '"';
692
- }
693
- ._q::after {
694
- content: '"';
695
- }
696
- ._sub {
697
- font-size: smaller;
698
- vertical-align: sub;
699
- }
700
- ._sup {
701
- font-size: smaller;
702
- vertical-align: super;
703
- }
704
- ._thead,
705
- ._tbody,
706
- ._tfoot {
707
- display: table-row-group;
708
- }
709
- ._tr {
710
- display: table-row;
711
- }
712
- ._td,
713
- ._th {
714
- display: table-cell;
715
- vertical-align: middle;
716
- }
717
- ._th {
718
- font-weight: bold;
719
- text-align: center;
720
- }
721
- ._ul {
722
- list-style-type: disc;
723
- }
724
- ._ul ._ul {
725
- margin: 0;
726
- list-style-type: circle;
727
- }
728
- ._ul ._ul ._ul {
729
- list-style-type: square;
730
- }
731
- ._abbr,
732
- ._b,
733
- ._code,
734
- ._del,
735
- ._em,
736
- ._i,
737
- ._ins,
738
- ._label,
739
- ._q,
740
- ._span,
741
- ._strong,
742
- ._sub,
743
- ._sup {
744
- display: inline;
745
- }
746
- /* #ifdef APP-PLUS */
747
- ._video {
748
- width: 300px;
749
- height: 225px;
750
- }
751
- /* #endif */
752
- </style>