@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,294 @@
1
+ import { RadarIndicator, RadarSeriesDatum, RadarShape, RadarAxisLineConfig, RadarSplitLineConfig, RadarSplitAreaConfig, RadarNameConfig, RadarLabelConfig, RadarTooltipConfig, RadarLegendConfig } from './echarts-radar';
2
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+
4
+ declare const _default: DefineComponent<ExtractPropTypes<{
5
+ indicator: {
6
+ type: PropType<RadarIndicator[]>;
7
+ default: () => any[];
8
+ };
9
+ data: {
10
+ type: PropType<RadarSeriesDatum[]>;
11
+ default: () => any[];
12
+ };
13
+ color: {
14
+ type: PropType<string | string[]>;
15
+ default: () => string[];
16
+ };
17
+ shape: {
18
+ type: PropType<RadarShape>;
19
+ default: string;
20
+ };
21
+ radius: {
22
+ type: (NumberConstructor | StringConstructor)[];
23
+ default: string;
24
+ };
25
+ center: {
26
+ type: ArrayConstructor;
27
+ default: () => string[];
28
+ };
29
+ splitNumber: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ axisLine: {
34
+ type: PropType<RadarAxisLineConfig>;
35
+ default: () => {
36
+ show: boolean;
37
+ color: string;
38
+ width: number;
39
+ };
40
+ };
41
+ splitLine: {
42
+ type: PropType<RadarSplitLineConfig>;
43
+ default: () => {
44
+ show: boolean;
45
+ type: string;
46
+ color: string;
47
+ width: number;
48
+ };
49
+ };
50
+ splitArea: {
51
+ type: PropType<RadarSplitAreaConfig>;
52
+ default: () => {
53
+ show: boolean;
54
+ color: string[];
55
+ opacity: number;
56
+ };
57
+ };
58
+ name: {
59
+ type: PropType<RadarNameConfig>;
60
+ default: () => {
61
+ show: boolean;
62
+ color: string;
63
+ fontSize: number;
64
+ gap: number;
65
+ };
66
+ };
67
+ label: {
68
+ type: PropType<RadarLabelConfig>;
69
+ default: () => {
70
+ show: boolean;
71
+ color: string;
72
+ fontSize: number;
73
+ };
74
+ };
75
+ showSymbol: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ symbolSize: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ areaOpacity: {
84
+ type: NumberConstructor;
85
+ default: number;
86
+ };
87
+ lineWidth: {
88
+ type: NumberConstructor;
89
+ default: number;
90
+ };
91
+ showTooltip: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ tooltip: {
96
+ type: PropType<RadarTooltipConfig>;
97
+ default: () => {
98
+ show: boolean;
99
+ showDefaultTooltip: boolean;
100
+ textColor: string;
101
+ bgColor: string;
102
+ borderColor: string;
103
+ fontSize: number;
104
+ };
105
+ };
106
+ legend: {
107
+ type: PropType<RadarLegendConfig>;
108
+ default: () => {
109
+ show: boolean;
110
+ position: string;
111
+ orient: string;
112
+ };
113
+ };
114
+ width: {
115
+ type: (NumberConstructor | StringConstructor)[];
116
+ default: string;
117
+ };
118
+ height: {
119
+ type: (NumberConstructor | StringConstructor)[];
120
+ default: number;
121
+ };
122
+ fontSize: {
123
+ type: (NumberConstructor | StringConstructor)[];
124
+ default: number;
125
+ };
126
+ mode: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ option: {
131
+ type: PropType<Record<string, any>>;
132
+ default: () => {};
133
+ };
134
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
135
+ "item-click": (_: any) => void;
136
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
137
+ indicator: {
138
+ type: PropType<RadarIndicator[]>;
139
+ default: () => any[];
140
+ };
141
+ data: {
142
+ type: PropType<RadarSeriesDatum[]>;
143
+ default: () => any[];
144
+ };
145
+ color: {
146
+ type: PropType<string | string[]>;
147
+ default: () => string[];
148
+ };
149
+ shape: {
150
+ type: PropType<RadarShape>;
151
+ default: string;
152
+ };
153
+ radius: {
154
+ type: (NumberConstructor | StringConstructor)[];
155
+ default: string;
156
+ };
157
+ center: {
158
+ type: ArrayConstructor;
159
+ default: () => string[];
160
+ };
161
+ splitNumber: {
162
+ type: NumberConstructor;
163
+ default: number;
164
+ };
165
+ axisLine: {
166
+ type: PropType<RadarAxisLineConfig>;
167
+ default: () => {
168
+ show: boolean;
169
+ color: string;
170
+ width: number;
171
+ };
172
+ };
173
+ splitLine: {
174
+ type: PropType<RadarSplitLineConfig>;
175
+ default: () => {
176
+ show: boolean;
177
+ type: string;
178
+ color: string;
179
+ width: number;
180
+ };
181
+ };
182
+ splitArea: {
183
+ type: PropType<RadarSplitAreaConfig>;
184
+ default: () => {
185
+ show: boolean;
186
+ color: string[];
187
+ opacity: number;
188
+ };
189
+ };
190
+ name: {
191
+ type: PropType<RadarNameConfig>;
192
+ default: () => {
193
+ show: boolean;
194
+ color: string;
195
+ fontSize: number;
196
+ gap: number;
197
+ };
198
+ };
199
+ label: {
200
+ type: PropType<RadarLabelConfig>;
201
+ default: () => {
202
+ show: boolean;
203
+ color: string;
204
+ fontSize: number;
205
+ };
206
+ };
207
+ showSymbol: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ symbolSize: {
212
+ type: NumberConstructor;
213
+ default: number;
214
+ };
215
+ areaOpacity: {
216
+ type: NumberConstructor;
217
+ default: number;
218
+ };
219
+ lineWidth: {
220
+ type: NumberConstructor;
221
+ default: number;
222
+ };
223
+ showTooltip: {
224
+ type: BooleanConstructor;
225
+ default: boolean;
226
+ };
227
+ tooltip: {
228
+ type: PropType<RadarTooltipConfig>;
229
+ default: () => {
230
+ show: boolean;
231
+ showDefaultTooltip: boolean;
232
+ textColor: string;
233
+ bgColor: string;
234
+ borderColor: string;
235
+ fontSize: number;
236
+ };
237
+ };
238
+ legend: {
239
+ type: PropType<RadarLegendConfig>;
240
+ default: () => {
241
+ show: boolean;
242
+ position: string;
243
+ orient: string;
244
+ };
245
+ };
246
+ width: {
247
+ type: (NumberConstructor | StringConstructor)[];
248
+ default: string;
249
+ };
250
+ height: {
251
+ type: (NumberConstructor | StringConstructor)[];
252
+ default: number;
253
+ };
254
+ fontSize: {
255
+ type: (NumberConstructor | StringConstructor)[];
256
+ default: number;
257
+ };
258
+ mode: {
259
+ type: StringConstructor;
260
+ default: string;
261
+ };
262
+ option: {
263
+ type: PropType<Record<string, any>>;
264
+ default: () => {};
265
+ };
266
+ }>> & Readonly<{
267
+ "onItem-click"?: (_: any) => any;
268
+ }>, {
269
+ name: RadarNameConfig;
270
+ data: RadarSeriesDatum[];
271
+ mode: string;
272
+ color: string | string[];
273
+ width: string | number;
274
+ label: RadarLabelConfig;
275
+ legend: RadarLegendConfig;
276
+ option: Record<string, any>;
277
+ height: string | number;
278
+ center: unknown[];
279
+ tooltip: RadarTooltipConfig;
280
+ fontSize: string | number;
281
+ radius: string | number;
282
+ showTooltip: boolean;
283
+ indicator: RadarIndicator[];
284
+ shape: RadarShape;
285
+ splitNumber: number;
286
+ axisLine: RadarAxisLineConfig;
287
+ splitLine: RadarSplitLineConfig;
288
+ splitArea: RadarSplitAreaConfig;
289
+ showSymbol: boolean;
290
+ symbolSize: number;
291
+ areaOpacity: number;
292
+ lineWidth: number;
293
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
294
+ export default _default;
@@ -0,0 +1 @@
1
+ export type EchartsRadarInstance = any;
@@ -0,0 +1,8 @@
1
+ import { default as Editor } from './src/editor.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToEditor: SFCWithInstall<typeof Editor>;
5
+ export default ToEditor;
6
+ export * from './src/instance';
7
+ export * from './src/editor';
8
+ export type { EditorInstance } from './src/instance';
@@ -0,0 +1,99 @@
1
+ import { PropType } from 'vue';
2
+
3
+ export interface IconObject {
4
+ value?: string;
5
+ [key: string]: any;
6
+ }
7
+ export interface EditorDefaultStyle {
8
+ fontFamily?: string;
9
+ fontSize?: string;
10
+ }
11
+ export interface EditorProps {
12
+ desc?: string;
13
+ imgUploadUrl?: string;
14
+ fontFamilies?: string;
15
+ fontSizes?: string;
16
+ required?: boolean;
17
+ id?: string;
18
+ modelValue?: string;
19
+ default?: EditorDefaultStyle;
20
+ toolbar?: string[];
21
+ imgUpload?: (blobInfo: any, success: (url: string) => void, failure: (err: string) => void) => void;
22
+ mediaUpload?: (blobInfo: any, success: (url: string) => void, failure: (err: string) => void) => void;
23
+ menubar?: string;
24
+ height?: number | string;
25
+ width?: number | string;
26
+ language?: 'en' | 'zh';
27
+ maxLength?: number | string;
28
+ }
29
+ export declare const editorProps: {
30
+ desc: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ imgUploadUrl: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ fontFamilies: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ fontSizes: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ required: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ id: {
51
+ type: StringConstructor;
52
+ default: () => string;
53
+ };
54
+ modelValue: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ default: {
59
+ type: PropType<EditorDefaultStyle>;
60
+ default: () => {};
61
+ };
62
+ toolbar: {
63
+ type: PropType<string[]>;
64
+ default: () => any[];
65
+ };
66
+ imgUpload: {
67
+ type: FunctionConstructor;
68
+ default: any;
69
+ };
70
+ mediaUpload: {
71
+ type: FunctionConstructor;
72
+ default: any;
73
+ };
74
+ menubar: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ height: {
79
+ type: (NumberConstructor | StringConstructor)[];
80
+ default: number;
81
+ };
82
+ width: {
83
+ type: (NumberConstructor | StringConstructor)[];
84
+ default: string;
85
+ };
86
+ language: {
87
+ type: PropType<"en" | "zh">;
88
+ default: string;
89
+ validator: (val: string) => boolean;
90
+ };
91
+ maxLength: {
92
+ type: (NumberConstructor | StringConstructor)[];
93
+ default: number;
94
+ };
95
+ };
96
+ export declare const editorEmits: {
97
+ 'update:modelValue': (value: string) => boolean;
98
+ change: (value: string) => boolean;
99
+ };
@@ -0,0 +1,163 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { EditorDefaultStyle } from 'index';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ desc: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ imgUploadUrl: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ fontFamilies: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ fontSizes: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ required: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ id: {
25
+ type: StringConstructor;
26
+ default: () => string;
27
+ };
28
+ modelValue: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ default: {
33
+ type: PropType<EditorDefaultStyle>;
34
+ default: () => {};
35
+ };
36
+ toolbar: {
37
+ type: PropType<string[]>;
38
+ default: () => any[];
39
+ };
40
+ imgUpload: {
41
+ type: FunctionConstructor;
42
+ default: any;
43
+ };
44
+ mediaUpload: {
45
+ type: FunctionConstructor;
46
+ default: any;
47
+ };
48
+ menubar: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ height: {
53
+ type: (NumberConstructor | StringConstructor)[];
54
+ default: number;
55
+ };
56
+ width: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: string;
59
+ };
60
+ language: {
61
+ type: PropType<"en" | "zh">;
62
+ default: string;
63
+ validator: (val: string) => boolean;
64
+ };
65
+ maxLength: {
66
+ type: (NumberConstructor | StringConstructor)[];
67
+ default: number;
68
+ };
69
+ }>, {
70
+ setContent: (val: string) => void;
71
+ getContent: () => any;
72
+ imageSuccessCBK: (arr: any[]) => void;
73
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
74
+ change: (value: string) => void;
75
+ "update:modelValue": (value: string) => void;
76
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
77
+ desc: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ imgUploadUrl: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ fontFamilies: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ fontSizes: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ required: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ id: {
98
+ type: StringConstructor;
99
+ default: () => string;
100
+ };
101
+ modelValue: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ default: {
106
+ type: PropType<EditorDefaultStyle>;
107
+ default: () => {};
108
+ };
109
+ toolbar: {
110
+ type: PropType<string[]>;
111
+ default: () => any[];
112
+ };
113
+ imgUpload: {
114
+ type: FunctionConstructor;
115
+ default: any;
116
+ };
117
+ mediaUpload: {
118
+ type: FunctionConstructor;
119
+ default: any;
120
+ };
121
+ menubar: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ height: {
126
+ type: (NumberConstructor | StringConstructor)[];
127
+ default: number;
128
+ };
129
+ width: {
130
+ type: (NumberConstructor | StringConstructor)[];
131
+ default: string;
132
+ };
133
+ language: {
134
+ type: PropType<"en" | "zh">;
135
+ default: string;
136
+ validator: (val: string) => boolean;
137
+ };
138
+ maxLength: {
139
+ type: (NumberConstructor | StringConstructor)[];
140
+ default: number;
141
+ };
142
+ }>> & Readonly<{
143
+ onChange?: (value: string) => any;
144
+ "onUpdate:modelValue"?: (value: string) => any;
145
+ }>, {
146
+ width: string | number;
147
+ desc: string;
148
+ default: EditorDefaultStyle;
149
+ required: boolean;
150
+ height: string | number;
151
+ id: string;
152
+ modelValue: string;
153
+ maxLength: string | number;
154
+ imgUploadUrl: string;
155
+ fontFamilies: string;
156
+ fontSizes: string;
157
+ toolbar: string[];
158
+ imgUpload: Function;
159
+ mediaUpload: Function;
160
+ menubar: string;
161
+ language: "en" | "zh";
162
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
163
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as Editor } from './editor.vue';
2
+
3
+ export type EditorInstance = InstanceType<typeof Editor>;
@@ -0,0 +1,2 @@
1
+ declare const plugins: string[];
2
+ export default plugins;
@@ -0,0 +1,2 @@
1
+ declare const toolbar: string[];
2
+ export default toolbar;
@@ -0,0 +1,8 @@
1
+ import { default as StepTree } from './src/step-tree.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToStepTree: SFCWithInstall<typeof StepTree>;
5
+ export default ToStepTree;
6
+ export * from './src/instance';
7
+ export * from './src/step-tree';
8
+ export type { StepTreeInstance } from './src/instance';
@@ -0,0 +1,3 @@
1
+ import { default as StepTree } from './step-tree.vue';
2
+
3
+ export type StepTreeInstance = InstanceType<typeof StepTree>;
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { StepTreeData } from 'index';
3
+ declare function __VLS_template(): {
4
+ default?(_: {
5
+ item: any;
6
+ current: any;
7
+ index: any;
8
+ }): any;
9
+ arrow?(_: {
10
+ item: any;
11
+ }): any;
12
+ arrowTop?(_: {
13
+ item: any;
14
+ }): any;
15
+ arrowBottom?(_: {
16
+ item: any;
17
+ }): any;
18
+ };
19
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
20
+ current: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ index: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ data: {
29
+ type: PropType<StepTreeData>;
30
+ default: () => {};
31
+ };
32
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
33
+ current: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ index: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ data: {
42
+ type: PropType<StepTreeData>;
43
+ default: () => {};
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ data: StepTreeData;
47
+ index: number;
48
+ current: number;
49
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
50
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
51
+ export default _default;
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };