@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,7 @@
1
+ import { default as EchartsBar } from './src/echarts-bar.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToEchartsBar: SFCWithInstall<typeof EchartsBar>;
5
+ export default ToEchartsBar;
6
+ export * from './src/instance';
7
+ export type { EchartsBarInstance } from './src/instance';
@@ -0,0 +1,222 @@
1
+ import { PropType } from 'vue';
2
+
3
+ /**
4
+ * 柱状图数据项
5
+ */
6
+ export interface BarDatum {
7
+ name: string;
8
+ value: number | number[];
9
+ seriesNames?: string[];
10
+ type?: string;
11
+ [key: string]: any;
12
+ }
13
+ /**
14
+ * 渐变色配置
15
+ */
16
+ export interface ColorGradient {
17
+ start: string;
18
+ end: string;
19
+ }
20
+ export interface LegendConfig {
21
+ show?: boolean;
22
+ position?: string;
23
+ icon?: string;
24
+ orient?: string;
25
+ [key: string]: any;
26
+ }
27
+ export interface SplitConfig {
28
+ type?: string;
29
+ color?: string;
30
+ show?: boolean;
31
+ }
32
+ export interface AxisStyleConfig {
33
+ type?: string;
34
+ color?: string;
35
+ textColor?: string;
36
+ show?: boolean;
37
+ }
38
+ export type EchartsBar3dShape = 'cube' | 'cylinder';
39
+ export interface EchartsBarProps {
40
+ data?: BarDatum[];
41
+ chartsType?: string;
42
+ color?: string | ColorGradient | ColorGradient[];
43
+ barSize?: string | number;
44
+ borderColor?: string;
45
+ borderRadius?: string | number;
46
+ is3d?: boolean;
47
+ /** 3D 形状:cube(立方体) / cylinder(圆柱体) */
48
+ d3dShape?: EchartsBar3dShape;
49
+ isHorizontal?: boolean;
50
+ fontSize?: string | number;
51
+ width?: string | number;
52
+ height?: string | number;
53
+ rotate?: number;
54
+ legend?: LegendConfig;
55
+ split?: SplitConfig;
56
+ xAxisStyle?: AxisStyleConfig;
57
+ yAxisStyle?: AxisStyleConfig;
58
+ xAxisData?: string[];
59
+ isUnit?: string;
60
+ showValue?: boolean;
61
+ showShadow?: boolean;
62
+ showTooltip?: boolean;
63
+ tipFontSize?: string | number;
64
+ smooth?: boolean | number;
65
+ interval?: number;
66
+ tooltipType?: string;
67
+ tooltipTextColor?: string;
68
+ tooltipBgColor?: string;
69
+ tooltipBorderColor?: string;
70
+ showDefaultTooltip?: boolean;
71
+ showMaxMarkPoint?: boolean;
72
+ }
73
+ export declare const echartsBarProps: {
74
+ data: {
75
+ type: PropType<BarDatum[]>;
76
+ default: () => any[];
77
+ };
78
+ chartsType: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ xAxisData: {
83
+ type: PropType<string[]>;
84
+ default: () => any[];
85
+ };
86
+ color: {
87
+ type: PropType<string | ColorGradient | ColorGradient[]>;
88
+ default: string;
89
+ };
90
+ barSize: {
91
+ type: (NumberConstructor | StringConstructor)[];
92
+ default: number;
93
+ };
94
+ borderColor: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ borderRadius: {
99
+ type: (NumberConstructor | StringConstructor)[];
100
+ default: number;
101
+ };
102
+ is3d: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ d3dShape: {
107
+ type: PropType<EchartsBar3dShape>;
108
+ default: string;
109
+ };
110
+ isHorizontal: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ fontSize: {
115
+ type: (NumberConstructor | StringConstructor)[];
116
+ default: number;
117
+ };
118
+ width: {
119
+ type: (NumberConstructor | StringConstructor)[];
120
+ default: string;
121
+ };
122
+ height: {
123
+ type: (NumberConstructor | StringConstructor)[];
124
+ default: string;
125
+ };
126
+ rotate: {
127
+ type: NumberConstructor;
128
+ default: number;
129
+ };
130
+ legend: {
131
+ type: PropType<LegendConfig>;
132
+ default: () => {
133
+ show: boolean;
134
+ position: string;
135
+ };
136
+ };
137
+ split: {
138
+ type: PropType<SplitConfig>;
139
+ default: () => {
140
+ type: string;
141
+ color: string;
142
+ show: boolean;
143
+ };
144
+ };
145
+ xAxisStyle: {
146
+ type: PropType<AxisStyleConfig>;
147
+ default: () => {
148
+ type: string;
149
+ color: string;
150
+ textColor: string;
151
+ show: boolean;
152
+ };
153
+ };
154
+ yAxisStyle: {
155
+ type: PropType<AxisStyleConfig>;
156
+ default: () => {
157
+ type: string;
158
+ color: string;
159
+ textColor: string;
160
+ show: boolean;
161
+ };
162
+ };
163
+ isUnit: {
164
+ type: StringConstructor;
165
+ default: string;
166
+ };
167
+ showValue: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ showShadow: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ showTooltip: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ tipFontSize: {
180
+ type: (NumberConstructor | StringConstructor)[];
181
+ default: number;
182
+ };
183
+ smooth: {
184
+ type: (BooleanConstructor | NumberConstructor)[];
185
+ default: boolean;
186
+ };
187
+ interval: {
188
+ type: NumberConstructor;
189
+ default: number;
190
+ };
191
+ tooltipType: {
192
+ type: StringConstructor;
193
+ default: string;
194
+ };
195
+ tooltipTextColor: {
196
+ type: StringConstructor;
197
+ default: string;
198
+ };
199
+ tooltipBgColor: {
200
+ type: StringConstructor;
201
+ default: string;
202
+ };
203
+ tooltipBorderColor: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ showDefaultTooltip: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ mode: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ showMaxMarkPoint: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ };
220
+ export declare const echartsBarEmits: {
221
+ 'item-click': (_: any) => boolean;
222
+ };
@@ -0,0 +1,334 @@
1
+ import { BarDatum, ColorGradient, EchartsBar3dShape, LegendConfig, SplitConfig, AxisStyleConfig } from './echarts-bar';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+
4
+ declare const _default: DefineComponent<ExtractPropTypes<{
5
+ data: {
6
+ type: PropType<BarDatum[]>;
7
+ default: () => any[];
8
+ };
9
+ chartsType: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ xAxisData: {
14
+ type: PropType<string[]>;
15
+ default: () => any[];
16
+ };
17
+ color: {
18
+ type: PropType<string | ColorGradient | ColorGradient[]>;
19
+ default: string;
20
+ };
21
+ barSize: {
22
+ type: (NumberConstructor | StringConstructor)[];
23
+ default: number;
24
+ };
25
+ borderColor: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ borderRadius: {
30
+ type: (NumberConstructor | StringConstructor)[];
31
+ default: number;
32
+ };
33
+ is3d: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ d3dShape: {
38
+ type: PropType<EchartsBar3dShape>;
39
+ default: string;
40
+ };
41
+ isHorizontal: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ fontSize: {
46
+ type: (NumberConstructor | StringConstructor)[];
47
+ default: number;
48
+ };
49
+ width: {
50
+ type: (NumberConstructor | StringConstructor)[];
51
+ default: string;
52
+ };
53
+ height: {
54
+ type: (NumberConstructor | StringConstructor)[];
55
+ default: string;
56
+ };
57
+ rotate: {
58
+ type: NumberConstructor;
59
+ default: number;
60
+ };
61
+ legend: {
62
+ type: PropType<LegendConfig>;
63
+ default: () => {
64
+ show: boolean;
65
+ position: string;
66
+ };
67
+ };
68
+ split: {
69
+ type: PropType<SplitConfig>;
70
+ default: () => {
71
+ type: string;
72
+ color: string;
73
+ show: boolean;
74
+ };
75
+ };
76
+ xAxisStyle: {
77
+ type: PropType<AxisStyleConfig>;
78
+ default: () => {
79
+ type: string;
80
+ color: string;
81
+ textColor: string;
82
+ show: boolean;
83
+ };
84
+ };
85
+ yAxisStyle: {
86
+ type: PropType<AxisStyleConfig>;
87
+ default: () => {
88
+ type: string;
89
+ color: string;
90
+ textColor: string;
91
+ show: boolean;
92
+ };
93
+ };
94
+ isUnit: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ showValue: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ showShadow: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ showTooltip: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ tipFontSize: {
111
+ type: (NumberConstructor | StringConstructor)[];
112
+ default: number;
113
+ };
114
+ smooth: {
115
+ type: (BooleanConstructor | NumberConstructor)[];
116
+ default: boolean;
117
+ };
118
+ interval: {
119
+ type: NumberConstructor;
120
+ default: number;
121
+ };
122
+ tooltipType: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ tooltipTextColor: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ tooltipBgColor: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ tooltipBorderColor: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ showDefaultTooltip: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ mode: {
143
+ type: StringConstructor;
144
+ default: string;
145
+ };
146
+ showMaxMarkPoint: {
147
+ type: BooleanConstructor;
148
+ default: boolean;
149
+ };
150
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
151
+ "item-click": (_: any) => void;
152
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
153
+ data: {
154
+ type: PropType<BarDatum[]>;
155
+ default: () => any[];
156
+ };
157
+ chartsType: {
158
+ type: StringConstructor;
159
+ default: string;
160
+ };
161
+ xAxisData: {
162
+ type: PropType<string[]>;
163
+ default: () => any[];
164
+ };
165
+ color: {
166
+ type: PropType<string | ColorGradient | ColorGradient[]>;
167
+ default: string;
168
+ };
169
+ barSize: {
170
+ type: (NumberConstructor | StringConstructor)[];
171
+ default: number;
172
+ };
173
+ borderColor: {
174
+ type: StringConstructor;
175
+ default: string;
176
+ };
177
+ borderRadius: {
178
+ type: (NumberConstructor | StringConstructor)[];
179
+ default: number;
180
+ };
181
+ is3d: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ d3dShape: {
186
+ type: PropType<EchartsBar3dShape>;
187
+ default: string;
188
+ };
189
+ isHorizontal: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ fontSize: {
194
+ type: (NumberConstructor | StringConstructor)[];
195
+ default: number;
196
+ };
197
+ width: {
198
+ type: (NumberConstructor | StringConstructor)[];
199
+ default: string;
200
+ };
201
+ height: {
202
+ type: (NumberConstructor | StringConstructor)[];
203
+ default: string;
204
+ };
205
+ rotate: {
206
+ type: NumberConstructor;
207
+ default: number;
208
+ };
209
+ legend: {
210
+ type: PropType<LegendConfig>;
211
+ default: () => {
212
+ show: boolean;
213
+ position: string;
214
+ };
215
+ };
216
+ split: {
217
+ type: PropType<SplitConfig>;
218
+ default: () => {
219
+ type: string;
220
+ color: string;
221
+ show: boolean;
222
+ };
223
+ };
224
+ xAxisStyle: {
225
+ type: PropType<AxisStyleConfig>;
226
+ default: () => {
227
+ type: string;
228
+ color: string;
229
+ textColor: string;
230
+ show: boolean;
231
+ };
232
+ };
233
+ yAxisStyle: {
234
+ type: PropType<AxisStyleConfig>;
235
+ default: () => {
236
+ type: string;
237
+ color: string;
238
+ textColor: string;
239
+ show: boolean;
240
+ };
241
+ };
242
+ isUnit: {
243
+ type: StringConstructor;
244
+ default: string;
245
+ };
246
+ showValue: {
247
+ type: BooleanConstructor;
248
+ default: boolean;
249
+ };
250
+ showShadow: {
251
+ type: BooleanConstructor;
252
+ default: boolean;
253
+ };
254
+ showTooltip: {
255
+ type: BooleanConstructor;
256
+ default: boolean;
257
+ };
258
+ tipFontSize: {
259
+ type: (NumberConstructor | StringConstructor)[];
260
+ default: number;
261
+ };
262
+ smooth: {
263
+ type: (BooleanConstructor | NumberConstructor)[];
264
+ default: boolean;
265
+ };
266
+ interval: {
267
+ type: NumberConstructor;
268
+ default: number;
269
+ };
270
+ tooltipType: {
271
+ type: StringConstructor;
272
+ default: string;
273
+ };
274
+ tooltipTextColor: {
275
+ type: StringConstructor;
276
+ default: string;
277
+ };
278
+ tooltipBgColor: {
279
+ type: StringConstructor;
280
+ default: string;
281
+ };
282
+ tooltipBorderColor: {
283
+ type: StringConstructor;
284
+ default: string;
285
+ };
286
+ showDefaultTooltip: {
287
+ type: BooleanConstructor;
288
+ default: boolean;
289
+ };
290
+ mode: {
291
+ type: StringConstructor;
292
+ default: string;
293
+ };
294
+ showMaxMarkPoint: {
295
+ type: BooleanConstructor;
296
+ default: boolean;
297
+ };
298
+ }>> & Readonly<{
299
+ "onItem-click"?: (_: any) => any;
300
+ }>, {
301
+ split: SplitConfig;
302
+ data: BarDatum[];
303
+ mode: string;
304
+ color: string | ColorGradient | ColorGradient[];
305
+ width: string | number;
306
+ legend: LegendConfig;
307
+ height: string | number;
308
+ smooth: number | boolean;
309
+ fontSize: string | number;
310
+ barSize: string | number;
311
+ showValue: boolean;
312
+ chartsType: string;
313
+ xAxisData: string[];
314
+ borderColor: string;
315
+ borderRadius: string | number;
316
+ is3d: boolean;
317
+ d3dShape: EchartsBar3dShape;
318
+ isHorizontal: boolean;
319
+ rotate: number;
320
+ xAxisStyle: AxisStyleConfig;
321
+ yAxisStyle: AxisStyleConfig;
322
+ isUnit: string;
323
+ showShadow: boolean;
324
+ showTooltip: boolean;
325
+ tipFontSize: string | number;
326
+ interval: number;
327
+ tooltipType: string;
328
+ tooltipTextColor: string;
329
+ tooltipBgColor: string;
330
+ tooltipBorderColor: string;
331
+ showDefaultTooltip: boolean;
332
+ showMaxMarkPoint: boolean;
333
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
334
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as EchartsBar } from './echarts-bar.vue';
2
+
3
+ export type EchartsBarInstance = InstanceType<typeof EchartsBar>;
@@ -0,0 +1,7 @@
1
+ import { default as EchartsMap } from './src/echarts-map.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToEchartsMap: SFCWithInstall<typeof EchartsMap>;
5
+ export default ToEchartsMap;
6
+ export * from './src/instance';
7
+ export type { EchartsMapInstance } from './src/instance';