@10yun/cv-mobile-ui 0.5.8 → 0.5.10

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 (76) hide show
  1. package/extend/permission.js +1 -2
  2. package/package.json +1 -1
  3. package/plugins/uni-richText.js +1 -1
  4. package/plugins/uni-socket.js +6 -8
  5. package/ui-cv/cv-editor-parse/components/wxParseAudio.vue +14 -5
  6. package/ui-cv/cv-editor-parse/components/wxParseImg.vue +26 -36
  7. package/ui-cv/cv-editor-parse/components/wxParseTable.vue +7 -7
  8. package/ui-cv/cv-editor-parse/components/wxParseTemplate0.vue +105 -88
  9. package/ui-cv/cv-editor-parse/components/wxParseTemplate1.vue +96 -88
  10. package/ui-cv/cv-editor-parse/components/wxParseTemplate10.vue +95 -88
  11. package/ui-cv/cv-editor-parse/components/wxParseTemplate11.vue +84 -82
  12. package/ui-cv/cv-editor-parse/components/wxParseTemplate2.vue +95 -88
  13. package/ui-cv/cv-editor-parse/components/wxParseTemplate3.vue +95 -88
  14. package/ui-cv/cv-editor-parse/components/wxParseTemplate4.vue +95 -88
  15. package/ui-cv/cv-editor-parse/components/wxParseTemplate5.vue +95 -88
  16. package/ui-cv/cv-editor-parse/components/wxParseTemplate6.vue +95 -88
  17. package/ui-cv/cv-editor-parse/components/wxParseTemplate7.vue +95 -88
  18. package/ui-cv/cv-editor-parse/components/wxParseTemplate8.vue +95 -88
  19. package/ui-cv/cv-editor-parse/components/wxParseTemplate9.vue +95 -88
  20. package/ui-cv/cv-editor-parse/components/wxParseVideo.vue +15 -15
  21. package/ui-cv/cv-editor-parse/cv-editor-parse.vue +1 -3
  22. package/ui-cv/cv-editor-parse/libs/html2json.js +15 -18
  23. package/ui-cv/cv-editor-parse/libs/htmlparser.js +12 -5
  24. package/ui-cv/cv-editor-parse/libs/wxDiscode.js +1 -1
  25. package/ui-cv/cv-editor-parse/readme.md +6 -0
  26. package/ui-cv/cv-editor-parse/u-parse.css +52 -95
  27. package/ui-cv/cv-geo-local/cv-geo-local.vue +0 -1
  28. package/ui-cv/cv-layout-topbar/cv-layout-topbar.vue +238 -0
  29. package/ui-cv/cv-markdown-show/cv-markdown-show.vue +109 -0
  30. package/ui-cv/cv-markdown-show/lib/highlight/atom-one-dark.css +1 -0
  31. package/ui-cv/cv-markdown-show/lib/highlight/atom-one-light.css +1 -0
  32. package/ui-cv/cv-markdown-show/lib/highlight/github-dark.min.css +10 -0
  33. package/ui-cv/cv-markdown-show/lib/highlight/uni-highlight.min.js +9122 -0
  34. package/ui-cv/cv-markdown-show/lib/html-parser.js +352 -0
  35. package/ui-cv/cv-markdown-show/lib/markdown-it.min.js +2 -0
  36. package/ui-cv/cv-markdown-show/markdown.css +340 -0
  37. package/ui-cv/cv-markdown-show/package.json +18 -0
  38. package/ui-cv/cv-markdown-show/readme.md +45 -0
  39. package/ui-cv/cv-nav-col/cv-nav-col.vue +2 -1
  40. package/ui-sdks/sdk-app-update/img/logo.png +0 -0
  41. package/ui-sdks/sdk-app-update/img/update_bg.png +0 -0
  42. package/ui-sdks/sdk-app-update/img/update_bg_top.png +0 -0
  43. package/{ui-cv/cv-update-app/cv-update-app.vue → ui-sdks/sdk-app-update/sdk-app-update.vue} +2 -2
  44. package/ui-sdks/sdk-app-update/xxxx +62 -0
  45. package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +113 -0
  46. package/ui-sdks/sdk-u-charts/app-echarts.min.js +23 -0
  47. package/ui-sdks/sdk-u-charts/config-echarts.js +420 -0
  48. package/ui-sdks/sdk-u-charts/config-ucharts.js +630 -0
  49. package/ui-sdks/sdk-u-charts/h5-echarts.min.js +23 -0
  50. package/ui-sdks/sdk-u-charts/u-charts.js +7398 -0
  51. package/ui-sdks/sdk-u-charts/u-charts.min.js +1 -0
  52. package/ui-sdks/sdk-webview-main/WebViewMain.vue +1 -0
  53. package/ui-sdks/sdk-webview-main/main.js +0 -0
  54. package/ui-sdks/sdk-webview-main/mixin.js +0 -0
  55. package/ui-uni/uParse/src/components/wxParseAudio.vue +26 -0
  56. package/ui-uni/uParse/src/components/wxParseImg.vue +94 -0
  57. package/ui-uni/uParse/src/components/wxParseTable.vue +55 -0
  58. package/ui-uni/uParse/src/components/wxParseTemplate0.vue +103 -0
  59. package/ui-uni/uParse/src/components/wxParseTemplate1.vue +88 -0
  60. package/ui-uni/uParse/src/components/wxParseTemplate10.vue +88 -0
  61. package/ui-uni/uParse/src/components/wxParseTemplate11.vue +86 -0
  62. package/ui-uni/uParse/src/components/wxParseTemplate2.vue +88 -0
  63. package/ui-uni/uParse/src/components/wxParseTemplate3.vue +88 -0
  64. package/ui-uni/uParse/src/components/wxParseTemplate4.vue +88 -0
  65. package/ui-uni/uParse/src/components/wxParseTemplate5.vue +88 -0
  66. package/ui-uni/uParse/src/components/wxParseTemplate6.vue +88 -0
  67. package/ui-uni/uParse/src/components/wxParseTemplate7.vue +88 -0
  68. package/ui-uni/uParse/src/components/wxParseTemplate8.vue +88 -0
  69. package/ui-uni/uParse/src/components/wxParseTemplate9.vue +88 -0
  70. package/ui-uni/uParse/src/components/wxParseVideo.vue +15 -0
  71. package/ui-uni/uParse/src/editor.css +495 -0
  72. package/ui-uni/uParse/src/libs/html2json.js +261 -0
  73. package/ui-uni/uParse/src/libs/htmlparser.js +156 -0
  74. package/ui-uni/uParse/src/libs/wxDiscode.js +195 -0
  75. package/ui-uni/uParse/src/wxParse.css +270 -0
  76. package/ui-uni/uParse/src/wxParse.vue +206 -0
@@ -0,0 +1,420 @@
1
+ /*
2
+ * uCharts®
3
+ * 高性能跨平台图表库,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360)、Vue、Taro等支持canvas的框架平台
4
+ * Copyright (c) 2021 QIUN®秋云 https://www.ucharts.cn All rights reserved.
5
+ * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
6
+ * 复制使用请保留本段注释,感谢支持开源!
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
+
19
+ // 通用配置项
20
+
21
+ // 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
22
+ const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
23
+
24
+ export default {
25
+ //demotype为自定义图表类型
26
+ type: ['pie', 'ring', 'rose', 'funnel', 'line', 'column', 'area', 'radar', 'gauge', 'candle', 'demotype'],
27
+ //增加自定义图表类型,如果需要categories,请在这里加入您的图表类型例如最后的"demotype"
28
+ categories: ['line', 'column', 'area', 'radar', 'gauge', 'candle', 'demotype'],
29
+ //instance为实例变量承载属性,option为eopts承载属性,不要删除
30
+ instance: {},
31
+ option: {},
32
+ //下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
33
+ formatter: {
34
+ tooltipDemo1: function (res) {
35
+ let result = '';
36
+ for (let i in res) {
37
+ if (i == 0) {
38
+ result += res[i].axisValueLabel + '年销售额';
39
+ }
40
+ let value = '--';
41
+ if (res[i].data !== null) {
42
+ value = res[i].data;
43
+ }
44
+ // #ifdef H5
45
+ result += '\n' + res[i].seriesName + ':' + value + ' 万元';
46
+ // #endif
47
+
48
+ // #ifdef APP-PLUS
49
+ result += '<br/>' + res[i].marker + res[i].seriesName + ':' + value + ' 万元';
50
+ // #endif
51
+ }
52
+ return result;
53
+ },
54
+ legendFormat: function (name) {
55
+ return '自定义图例+' + name;
56
+ },
57
+ yAxisFormatDemo: function (value, index) {
58
+ return value + '元';
59
+ },
60
+ seriesFormatDemo: function (res) {
61
+ return res.name + '年' + res.value + '元';
62
+ }
63
+ },
64
+ //这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在eopts参数,会将demotype与eopts中option合并后渲染图表。
65
+ demotype: {
66
+ color: color
67
+ //在这里填写echarts的option即可
68
+ },
69
+ //下面是自定义配置,请添加项目所需的通用配置
70
+ column: {
71
+ color: color,
72
+ title: {
73
+ text: ''
74
+ },
75
+ tooltip: {
76
+ trigger: 'axis'
77
+ },
78
+ grid: {
79
+ top: 30,
80
+ bottom: 50,
81
+ right: 15,
82
+ left: 40
83
+ },
84
+ legend: {
85
+ bottom: 'left'
86
+ },
87
+ toolbox: {
88
+ show: false
89
+ },
90
+ xAxis: {
91
+ type: 'category',
92
+ axisLabel: {
93
+ color: '#666666'
94
+ },
95
+ axisLine: {
96
+ lineStyle: {
97
+ color: '#CCCCCC'
98
+ }
99
+ },
100
+ boundaryGap: true,
101
+ data: []
102
+ },
103
+ yAxis: {
104
+ type: 'value',
105
+ axisTick: {
106
+ show: false
107
+ },
108
+ axisLabel: {
109
+ color: '#666666'
110
+ },
111
+ axisLine: {
112
+ lineStyle: {
113
+ color: '#CCCCCC'
114
+ }
115
+ }
116
+ },
117
+ seriesTemplate: {
118
+ name: '',
119
+ type: 'bar',
120
+ data: [],
121
+ barwidth: 20,
122
+ label: {
123
+ show: true,
124
+ color: '#666666',
125
+ position: 'top'
126
+ }
127
+ }
128
+ },
129
+ line: {
130
+ color: color,
131
+ title: {
132
+ text: ''
133
+ },
134
+ tooltip: {
135
+ trigger: 'axis'
136
+ },
137
+ grid: {
138
+ top: 30,
139
+ bottom: 50,
140
+ right: 15,
141
+ left: 40
142
+ },
143
+ legend: {
144
+ bottom: 'left'
145
+ },
146
+ toolbox: {
147
+ show: false
148
+ },
149
+ xAxis: {
150
+ type: 'category',
151
+ axisLabel: {
152
+ color: '#666666'
153
+ },
154
+ axisLine: {
155
+ lineStyle: {
156
+ color: '#CCCCCC'
157
+ }
158
+ },
159
+ boundaryGap: true,
160
+ data: []
161
+ },
162
+ yAxis: {
163
+ type: 'value',
164
+ axisTick: {
165
+ show: false
166
+ },
167
+ axisLabel: {
168
+ color: '#666666'
169
+ },
170
+ axisLine: {
171
+ lineStyle: {
172
+ color: '#CCCCCC'
173
+ }
174
+ }
175
+ },
176
+ seriesTemplate: {
177
+ name: '',
178
+ type: 'line',
179
+ data: [],
180
+ barwidth: 20,
181
+ label: {
182
+ show: true,
183
+ color: '#666666',
184
+ position: 'top'
185
+ }
186
+ }
187
+ },
188
+ area: {
189
+ color: color,
190
+ title: {
191
+ text: ''
192
+ },
193
+ tooltip: {
194
+ trigger: 'axis'
195
+ },
196
+ grid: {
197
+ top: 30,
198
+ bottom: 50,
199
+ right: 15,
200
+ left: 40
201
+ },
202
+ legend: {
203
+ bottom: 'left'
204
+ },
205
+ toolbox: {
206
+ show: false
207
+ },
208
+ xAxis: {
209
+ type: 'category',
210
+ axisLabel: {
211
+ color: '#666666'
212
+ },
213
+ axisLine: {
214
+ lineStyle: {
215
+ color: '#CCCCCC'
216
+ }
217
+ },
218
+ boundaryGap: true,
219
+ data: []
220
+ },
221
+ yAxis: {
222
+ type: 'value',
223
+ axisTick: {
224
+ show: false
225
+ },
226
+ axisLabel: {
227
+ color: '#666666'
228
+ },
229
+ axisLine: {
230
+ lineStyle: {
231
+ color: '#CCCCCC'
232
+ }
233
+ }
234
+ },
235
+ seriesTemplate: {
236
+ name: '',
237
+ type: 'line',
238
+ data: [],
239
+ areaStyle: {},
240
+ label: {
241
+ show: true,
242
+ color: '#666666',
243
+ position: 'top'
244
+ }
245
+ }
246
+ },
247
+ pie: {
248
+ color: color,
249
+ title: {
250
+ text: ''
251
+ },
252
+ tooltip: {
253
+ trigger: 'item'
254
+ },
255
+ grid: {
256
+ top: 40,
257
+ bottom: 30,
258
+ right: 15,
259
+ left: 15
260
+ },
261
+ legend: {
262
+ bottom: 'left'
263
+ },
264
+ seriesTemplate: {
265
+ name: '',
266
+ type: 'pie',
267
+ data: [],
268
+ radius: '50%',
269
+ label: {
270
+ show: true,
271
+ color: '#666666',
272
+ position: 'top'
273
+ }
274
+ }
275
+ },
276
+ ring: {
277
+ color: color,
278
+ title: {
279
+ text: ''
280
+ },
281
+ tooltip: {
282
+ trigger: 'item'
283
+ },
284
+ grid: {
285
+ top: 40,
286
+ bottom: 30,
287
+ right: 15,
288
+ left: 15
289
+ },
290
+ legend: {
291
+ bottom: 'left'
292
+ },
293
+ seriesTemplate: {
294
+ name: '',
295
+ type: 'pie',
296
+ data: [],
297
+ radius: ['40%', '70%'],
298
+ avoidLabelOverlap: false,
299
+ label: {
300
+ show: true,
301
+ color: '#666666',
302
+ position: 'top'
303
+ },
304
+ labelLine: {
305
+ show: true
306
+ }
307
+ }
308
+ },
309
+ rose: {
310
+ color: color,
311
+ title: {
312
+ text: ''
313
+ },
314
+ tooltip: {
315
+ trigger: 'item'
316
+ },
317
+ legend: {
318
+ top: 'bottom'
319
+ },
320
+ seriesTemplate: {
321
+ name: '',
322
+ type: 'pie',
323
+ data: [],
324
+ radius: '55%',
325
+ center: ['50%', '50%'],
326
+ rosetype: 'area'
327
+ }
328
+ },
329
+ funnel: {
330
+ color: color,
331
+ title: {
332
+ text: ''
333
+ },
334
+ tooltip: {
335
+ trigger: 'item',
336
+ formatter: '{b} : {c}%'
337
+ },
338
+ legend: {
339
+ top: 'bottom'
340
+ },
341
+ seriesTemplate: {
342
+ name: '',
343
+ type: 'funnel',
344
+ left: '10%',
345
+ top: 60,
346
+ bottom: 60,
347
+ width: '80%',
348
+ min: 0,
349
+ max: 100,
350
+ minSize: '0%',
351
+ maxSize: '100%',
352
+ sort: 'descending',
353
+ gap: 2,
354
+ label: {
355
+ show: true,
356
+ position: 'inside'
357
+ },
358
+ labelLine: {
359
+ length: 10,
360
+ lineStyle: {
361
+ width: 1,
362
+ type: 'solid'
363
+ }
364
+ },
365
+ itemStyle: {
366
+ bordercolor: '#fff',
367
+ borderwidth: 1
368
+ },
369
+ emphasis: {
370
+ label: {
371
+ fontSize: 20
372
+ }
373
+ },
374
+ data: []
375
+ }
376
+ },
377
+ gauge: {
378
+ color: color,
379
+ tooltip: {
380
+ formatter: '{a} <br/>{b} : {c}%'
381
+ },
382
+ seriesTemplate: {
383
+ name: '业务指标',
384
+ type: 'gauge',
385
+ detail: { formatter: '{value}%' },
386
+ data: [{ value: 50, name: '完成率' }]
387
+ }
388
+ },
389
+ candle: {
390
+ xAxis: {
391
+ data: []
392
+ },
393
+ yAxis: {},
394
+ color: color,
395
+ title: {
396
+ text: ''
397
+ },
398
+ dataZoom: [
399
+ {
400
+ type: 'inside',
401
+ xAxisIndex: [0, 1],
402
+ start: 10,
403
+ end: 100
404
+ },
405
+ {
406
+ show: true,
407
+ xAxisIndex: [0, 1],
408
+ type: 'slider',
409
+ bottom: 10,
410
+ start: 10,
411
+ end: 100
412
+ }
413
+ ],
414
+ seriesTemplate: {
415
+ name: '',
416
+ type: 'k',
417
+ data: []
418
+ }
419
+ }
420
+ };