@touchvue/plugin 1.0.0-beta.1 → 1.0.0-beta.11

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 (36) hide show
  1. package/components/echarts-bar/index.d.ts +7 -0
  2. package/components/echarts-bar/src/echarts-bar.d.ts +222 -0
  3. package/components/echarts-bar/src/echarts-bar.vue.d.ts +334 -0
  4. package/components/echarts-bar/src/instance.d.ts +3 -0
  5. package/components/echarts-map/index.d.ts +7 -0
  6. package/components/echarts-map/src/echarts-map.d.ts +226 -0
  7. package/components/echarts-map/src/echarts-map.vue.d.ts +471 -0
  8. package/components/echarts-map/src/instance.d.ts +3 -0
  9. package/components/echarts-pie/index.d.ts +7 -0
  10. package/components/echarts-pie/src/echarts-pie.d.ts +99 -0
  11. package/components/echarts-pie/src/echarts-pie.vue.d.ts +194 -0
  12. package/components/echarts-pie/src/instance.d.ts +3 -0
  13. package/components/echarts-radar/index.d.ts +7 -0
  14. package/components/echarts-radar/src/echarts-radar.d.ts +221 -0
  15. package/components/echarts-radar/src/echarts-radar.vue.d.ts +294 -0
  16. package/components/echarts-radar/src/instance.d.ts +1 -0
  17. package/components/editor/index.d.ts +8 -0
  18. package/components/editor/src/editor.d.ts +99 -0
  19. package/components/editor/src/editor.vue.d.ts +163 -0
  20. package/components/editor/src/instance.d.ts +3 -0
  21. package/components/editor/src/plugins.d.ts +2 -0
  22. package/components/editor/src/toolbar.d.ts +2 -0
  23. package/components/step-tree/index.d.ts +8 -0
  24. package/components/step-tree/src/instance.d.ts +3 -0
  25. package/components/step-tree/src/step-tree-item.vue.d.ts +56 -0
  26. package/components/step-tree/src/step-tree.d.ts +78 -0
  27. package/components/step-tree/src/step-tree.vue.d.ts +38 -0
  28. package/components/watermark/index.d.ts +8 -0
  29. package/components/watermark/src/instance.d.ts +3 -0
  30. package/components/watermark/src/watermark.d.ts +34 -0
  31. package/components/watermark/src/watermark.vue.d.ts +69 -0
  32. package/index.cjs +12 -0
  33. package/index.d.ts +19 -0
  34. package/index.mjs +30848 -0
  35. package/package.json +15 -4
  36. package/style/style.css +1 -0
@@ -0,0 +1,226 @@
1
+ import { PropType } from 'vue';
2
+
3
+ export interface MapDatum {
4
+ name: string;
5
+ value?: number | Record<string, any>;
6
+ [key: string]: any;
7
+ }
8
+ export interface ViewControlConfig {
9
+ zoomSensitivity?: number;
10
+ beta?: number;
11
+ alpha?: number;
12
+ distance?: number;
13
+ }
14
+ export type VisualTextInput = string | string[];
15
+ export type MapFlag = Record<string, any>;
16
+ export declare const DEFAULT_VIEW_CONTROL: ViewControlConfig;
17
+ export declare const echartsMapProps: {
18
+ nameMap: {
19
+ type: PropType<Record<string, string>>;
20
+ default: () => {};
21
+ };
22
+ rotate: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: number;
25
+ };
26
+ scaleX: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: number;
29
+ };
30
+ scaleY: {
31
+ type: (NumberConstructor | StringConstructor)[];
32
+ default: number;
33
+ };
34
+ aspectScale: {
35
+ type: (NumberConstructor | StringConstructor)[];
36
+ default: number;
37
+ };
38
+ shadow: {
39
+ type: ArrayConstructor;
40
+ default: () => any[];
41
+ };
42
+ itemShadow: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ height: {
47
+ type: (NumberConstructor | StringConstructor)[];
48
+ default: string;
49
+ };
50
+ width: {
51
+ type: (NumberConstructor | StringConstructor)[];
52
+ default: string;
53
+ };
54
+ data: {
55
+ type: PropType<MapDatum[]>;
56
+ default: () => any[];
57
+ };
58
+ modelValue: {
59
+ type: StringConstructor;
60
+ default: any;
61
+ };
62
+ value: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ borderColor: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ borderColorHover: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ borderWidth: {
75
+ type: (NumberConstructor | StringConstructor)[];
76
+ default: number;
77
+ };
78
+ color: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ colorRange: {
83
+ type: PropType<string[]>;
84
+ default: () => any[];
85
+ };
86
+ colorStart: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ colorEnd: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ fontSize: {
95
+ type: (NumberConstructor | StringConstructor)[];
96
+ default: number;
97
+ };
98
+ fontColor: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ is3d: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ regionHeight: {
107
+ type: (NumberConstructor | StringConstructor)[];
108
+ default: number;
109
+ };
110
+ flag: {
111
+ type: PropType<MapFlag[]>;
112
+ default: () => any[];
113
+ };
114
+ colorHover: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ fontSizeHover: {
119
+ type: (NumberConstructor | StringConstructor)[];
120
+ default: string;
121
+ };
122
+ fontColorHover: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ leaf: {
127
+ type: (BooleanConstructor | StringConstructor)[];
128
+ default: boolean;
129
+ };
130
+ visual: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ visualText: {
135
+ type: PropType<VisualTextInput>;
136
+ default: () => string[];
137
+ };
138
+ viewControl: {
139
+ type: PropType<ViewControlConfig>;
140
+ default: () => {
141
+ zoomSensitivity?: number;
142
+ beta?: number;
143
+ alpha?: number;
144
+ distance?: number;
145
+ };
146
+ };
147
+ api: {
148
+ type: StringConstructor;
149
+ default: string;
150
+ };
151
+ outlineApi: {
152
+ type: StringConstructor;
153
+ default: string;
154
+ };
155
+ forwardEvent: {
156
+ type: StringConstructor;
157
+ default: string;
158
+ };
159
+ abbr: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ selectedMode: {
164
+ type: (BooleanConstructor | StringConstructor)[];
165
+ default: boolean;
166
+ };
167
+ autoplay: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ speed: {
172
+ type: (NumberConstructor | StringConstructor)[];
173
+ default: number;
174
+ };
175
+ showOutline: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ outlineColor: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ outlineWidth: {
184
+ type: (NumberConstructor | StringConstructor)[];
185
+ default: number;
186
+ };
187
+ showLabelIcon: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ labelIcon: {
192
+ type: StringConstructor;
193
+ default: string;
194
+ };
195
+ labelIconType: {
196
+ type: PropType<"text" | "image">;
197
+ default: string;
198
+ };
199
+ labelIconSize: {
200
+ type: PropType<number | [number, number] | undefined>;
201
+ default: any;
202
+ };
203
+ position: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ top: {
208
+ type: (NumberConstructor | StringConstructor)[];
209
+ default: number;
210
+ };
211
+ bottom: {
212
+ type: (NumberConstructor | StringConstructor)[];
213
+ default: number;
214
+ };
215
+ };
216
+ export declare const echartsMapEmits: {
217
+ 'update:modelValue': (_val: string) => boolean;
218
+ 'update:value': (_val: string) => boolean;
219
+ change: (_code: string, _area: {
220
+ name: string;
221
+ code: string;
222
+ }, _hasHistory: boolean) => boolean;
223
+ 'item-click': (_payload: any, _event?: any) => boolean;
224
+ 'node-dblclick': (_payload: any, _event?: any) => boolean;
225
+ };
226
+ export type EchartsMapProps = typeof echartsMapProps;
@@ -0,0 +1,471 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { MapDatum, MapFlag, VisualTextInput, ViewControlConfig } from './echarts-map';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ nameMap: {
5
+ type: PropType<Record<string, string>>;
6
+ default: () => {};
7
+ };
8
+ rotate: {
9
+ type: (NumberConstructor | StringConstructor)[];
10
+ default: number;
11
+ };
12
+ scaleX: {
13
+ type: (NumberConstructor | StringConstructor)[];
14
+ default: number;
15
+ };
16
+ scaleY: {
17
+ type: (NumberConstructor | StringConstructor)[];
18
+ default: number;
19
+ };
20
+ aspectScale: {
21
+ type: (NumberConstructor | StringConstructor)[];
22
+ default: number;
23
+ };
24
+ shadow: {
25
+ type: ArrayConstructor;
26
+ default: () => any[];
27
+ };
28
+ itemShadow: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ height: {
33
+ type: (NumberConstructor | StringConstructor)[];
34
+ default: string;
35
+ };
36
+ width: {
37
+ type: (NumberConstructor | StringConstructor)[];
38
+ default: string;
39
+ };
40
+ data: {
41
+ type: PropType< MapDatum[]>;
42
+ default: () => any[];
43
+ };
44
+ modelValue: {
45
+ type: StringConstructor;
46
+ default: any;
47
+ };
48
+ value: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ borderColor: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ borderColorHover: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ borderWidth: {
61
+ type: (NumberConstructor | StringConstructor)[];
62
+ default: number;
63
+ };
64
+ color: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ colorRange: {
69
+ type: PropType<string[]>;
70
+ default: () => any[];
71
+ };
72
+ colorStart: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ colorEnd: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ fontSize: {
81
+ type: (NumberConstructor | StringConstructor)[];
82
+ default: number;
83
+ };
84
+ fontColor: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ is3d: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ regionHeight: {
93
+ type: (NumberConstructor | StringConstructor)[];
94
+ default: number;
95
+ };
96
+ flag: {
97
+ type: PropType< MapFlag[]>;
98
+ default: () => any[];
99
+ };
100
+ colorHover: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ fontSizeHover: {
105
+ type: (NumberConstructor | StringConstructor)[];
106
+ default: string;
107
+ };
108
+ fontColorHover: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ leaf: {
113
+ type: (BooleanConstructor | StringConstructor)[];
114
+ default: boolean;
115
+ };
116
+ visual: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ visualText: {
121
+ type: PropType<VisualTextInput>;
122
+ default: () => string[];
123
+ };
124
+ viewControl: {
125
+ type: PropType<ViewControlConfig>;
126
+ default: () => {
127
+ zoomSensitivity?: number;
128
+ beta?: number;
129
+ alpha?: number;
130
+ distance?: number;
131
+ };
132
+ };
133
+ api: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ outlineApi: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ forwardEvent: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ abbr: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ selectedMode: {
150
+ type: (BooleanConstructor | StringConstructor)[];
151
+ default: boolean;
152
+ };
153
+ autoplay: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ speed: {
158
+ type: (NumberConstructor | StringConstructor)[];
159
+ default: number;
160
+ };
161
+ showOutline: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ outlineColor: {
166
+ type: StringConstructor;
167
+ default: string;
168
+ };
169
+ outlineWidth: {
170
+ type: (NumberConstructor | StringConstructor)[];
171
+ default: number;
172
+ };
173
+ showLabelIcon: {
174
+ type: BooleanConstructor;
175
+ default: boolean;
176
+ };
177
+ labelIcon: {
178
+ type: StringConstructor;
179
+ default: string;
180
+ };
181
+ labelIconType: {
182
+ type: PropType<"text" | "image">;
183
+ default: string;
184
+ };
185
+ labelIconSize: {
186
+ type: PropType<number | [number, number] | undefined>;
187
+ default: any;
188
+ };
189
+ position: {
190
+ type: StringConstructor;
191
+ default: string;
192
+ };
193
+ top: {
194
+ type: (NumberConstructor | StringConstructor)[];
195
+ default: number;
196
+ };
197
+ bottom: {
198
+ type: (NumberConstructor | StringConstructor)[];
199
+ default: number;
200
+ };
201
+ }>, {
202
+ back: () => void;
203
+ forward: (name: string, leaf: any) => void;
204
+ refresh: () => Promise<void>;
205
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
206
+ change: (_code: string, _area: {
207
+ name: string;
208
+ code: string;
209
+ }, _hasHistory: boolean) => void;
210
+ "update:modelValue": (_val: string) => void;
211
+ "update:value": (_val: string) => void;
212
+ "item-click": (_payload: any, _event?: any) => void;
213
+ "node-dblclick": (_payload: any, _event?: any) => void;
214
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
215
+ nameMap: {
216
+ type: PropType<Record<string, string>>;
217
+ default: () => {};
218
+ };
219
+ rotate: {
220
+ type: (NumberConstructor | StringConstructor)[];
221
+ default: number;
222
+ };
223
+ scaleX: {
224
+ type: (NumberConstructor | StringConstructor)[];
225
+ default: number;
226
+ };
227
+ scaleY: {
228
+ type: (NumberConstructor | StringConstructor)[];
229
+ default: number;
230
+ };
231
+ aspectScale: {
232
+ type: (NumberConstructor | StringConstructor)[];
233
+ default: number;
234
+ };
235
+ shadow: {
236
+ type: ArrayConstructor;
237
+ default: () => any[];
238
+ };
239
+ itemShadow: {
240
+ type: StringConstructor;
241
+ default: string;
242
+ };
243
+ height: {
244
+ type: (NumberConstructor | StringConstructor)[];
245
+ default: string;
246
+ };
247
+ width: {
248
+ type: (NumberConstructor | StringConstructor)[];
249
+ default: string;
250
+ };
251
+ data: {
252
+ type: PropType< MapDatum[]>;
253
+ default: () => any[];
254
+ };
255
+ modelValue: {
256
+ type: StringConstructor;
257
+ default: any;
258
+ };
259
+ value: {
260
+ type: StringConstructor;
261
+ default: string;
262
+ };
263
+ borderColor: {
264
+ type: StringConstructor;
265
+ default: string;
266
+ };
267
+ borderColorHover: {
268
+ type: StringConstructor;
269
+ default: string;
270
+ };
271
+ borderWidth: {
272
+ type: (NumberConstructor | StringConstructor)[];
273
+ default: number;
274
+ };
275
+ color: {
276
+ type: StringConstructor;
277
+ default: string;
278
+ };
279
+ colorRange: {
280
+ type: PropType<string[]>;
281
+ default: () => any[];
282
+ };
283
+ colorStart: {
284
+ type: StringConstructor;
285
+ default: string;
286
+ };
287
+ colorEnd: {
288
+ type: StringConstructor;
289
+ default: string;
290
+ };
291
+ fontSize: {
292
+ type: (NumberConstructor | StringConstructor)[];
293
+ default: number;
294
+ };
295
+ fontColor: {
296
+ type: StringConstructor;
297
+ default: string;
298
+ };
299
+ is3d: {
300
+ type: BooleanConstructor;
301
+ default: boolean;
302
+ };
303
+ regionHeight: {
304
+ type: (NumberConstructor | StringConstructor)[];
305
+ default: number;
306
+ };
307
+ flag: {
308
+ type: PropType< MapFlag[]>;
309
+ default: () => any[];
310
+ };
311
+ colorHover: {
312
+ type: StringConstructor;
313
+ default: string;
314
+ };
315
+ fontSizeHover: {
316
+ type: (NumberConstructor | StringConstructor)[];
317
+ default: string;
318
+ };
319
+ fontColorHover: {
320
+ type: StringConstructor;
321
+ default: string;
322
+ };
323
+ leaf: {
324
+ type: (BooleanConstructor | StringConstructor)[];
325
+ default: boolean;
326
+ };
327
+ visual: {
328
+ type: BooleanConstructor;
329
+ default: boolean;
330
+ };
331
+ visualText: {
332
+ type: PropType<VisualTextInput>;
333
+ default: () => string[];
334
+ };
335
+ viewControl: {
336
+ type: PropType<ViewControlConfig>;
337
+ default: () => {
338
+ zoomSensitivity?: number;
339
+ beta?: number;
340
+ alpha?: number;
341
+ distance?: number;
342
+ };
343
+ };
344
+ api: {
345
+ type: StringConstructor;
346
+ default: string;
347
+ };
348
+ outlineApi: {
349
+ type: StringConstructor;
350
+ default: string;
351
+ };
352
+ forwardEvent: {
353
+ type: StringConstructor;
354
+ default: string;
355
+ };
356
+ abbr: {
357
+ type: BooleanConstructor;
358
+ default: boolean;
359
+ };
360
+ selectedMode: {
361
+ type: (BooleanConstructor | StringConstructor)[];
362
+ default: boolean;
363
+ };
364
+ autoplay: {
365
+ type: BooleanConstructor;
366
+ default: boolean;
367
+ };
368
+ speed: {
369
+ type: (NumberConstructor | StringConstructor)[];
370
+ default: number;
371
+ };
372
+ showOutline: {
373
+ type: BooleanConstructor;
374
+ default: boolean;
375
+ };
376
+ outlineColor: {
377
+ type: StringConstructor;
378
+ default: string;
379
+ };
380
+ outlineWidth: {
381
+ type: (NumberConstructor | StringConstructor)[];
382
+ default: number;
383
+ };
384
+ showLabelIcon: {
385
+ type: BooleanConstructor;
386
+ default: boolean;
387
+ };
388
+ labelIcon: {
389
+ type: StringConstructor;
390
+ default: string;
391
+ };
392
+ labelIconType: {
393
+ type: PropType<"text" | "image">;
394
+ default: string;
395
+ };
396
+ labelIconSize: {
397
+ type: PropType<number | [number, number] | undefined>;
398
+ default: any;
399
+ };
400
+ position: {
401
+ type: StringConstructor;
402
+ default: string;
403
+ };
404
+ top: {
405
+ type: (NumberConstructor | StringConstructor)[];
406
+ default: number;
407
+ };
408
+ bottom: {
409
+ type: (NumberConstructor | StringConstructor)[];
410
+ default: number;
411
+ };
412
+ }>> & Readonly<{
413
+ onChange?: (_code: string, _area: {
414
+ name: string;
415
+ code: string;
416
+ }, _hasHistory: boolean) => any;
417
+ "onUpdate:modelValue"?: (_val: string) => any;
418
+ "onUpdate:value"?: (_val: string) => any;
419
+ "onItem-click"?: (_payload: any, _event?: any) => any;
420
+ "onNode-dblclick"?: (_payload: any, _event?: any) => any;
421
+ }>, {
422
+ value: string;
423
+ data: MapDatum[];
424
+ color: string;
425
+ width: string | number;
426
+ abbr: boolean;
427
+ top: string | number;
428
+ bottom: string | number;
429
+ height: string | number;
430
+ shadow: unknown[];
431
+ modelValue: string;
432
+ api: string;
433
+ position: string;
434
+ speed: string | number;
435
+ fontSize: string | number;
436
+ autoplay: boolean;
437
+ borderColor: string;
438
+ is3d: boolean;
439
+ rotate: string | number;
440
+ nameMap: Record<string, string>;
441
+ scaleX: string | number;
442
+ scaleY: string | number;
443
+ aspectScale: string | number;
444
+ itemShadow: string;
445
+ borderColorHover: string;
446
+ borderWidth: string | number;
447
+ colorRange: string[];
448
+ colorStart: string;
449
+ colorEnd: string;
450
+ fontColor: string;
451
+ regionHeight: string | number;
452
+ flag: MapFlag[];
453
+ colorHover: string;
454
+ fontSizeHover: string | number;
455
+ fontColorHover: string;
456
+ leaf: string | boolean;
457
+ visual: boolean;
458
+ visualText: VisualTextInput;
459
+ viewControl: ViewControlConfig;
460
+ outlineApi: string;
461
+ forwardEvent: string;
462
+ selectedMode: string | boolean;
463
+ showOutline: boolean;
464
+ outlineColor: string;
465
+ outlineWidth: string | number;
466
+ showLabelIcon: boolean;
467
+ labelIcon: string;
468
+ labelIconType: "image" | "text";
469
+ labelIconSize: number | [number, number];
470
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
471
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as EchartsMap } from './echarts-map.vue';
2
+
3
+ export type EchartsMapInstance = InstanceType<typeof EchartsMap>;
@@ -0,0 +1,7 @@
1
+ import { default as EchartsPie } from './src/echarts-pie.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToEchartsPie: SFCWithInstall<typeof EchartsPie>;
5
+ export default ToEchartsPie;
6
+ export * from './src/instance';
7
+ export type { EchartsPieInstance } from './src/instance';