@ecan-bi/datav 1.0.5 → 1.0.6

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.
package/README.md ADDED
File without changes
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 过滤不是 style 属性的组件属性
3
+ * @param props 组件属性
4
+ * @param excludeStyleList 剔除组件的属性
5
+ * @returns style属性
6
+ */
7
+ export declare const usePickComponentStyle: <T>(props: Readonly<Partial<T>>, excludeStyleList?: string[]) => {
8
+ style: import("vue").ComputedRef<any>;
9
+ };
@@ -1,17 +1,17 @@
1
- export interface CommonProps {
1
+ export interface Props {
2
2
  id: string;
3
3
  name: string;
4
4
  type: string;
5
5
  width: string;
6
6
  height: string;
7
- x: string;
8
- y: string;
7
+ position: string;
8
+ top: string;
9
+ left: string;
9
10
  zIndex: number;
10
11
  rotate: string;
11
12
  isShow: boolean;
12
13
  isRender: boolean;
13
14
  imgUrl: string;
14
15
  }
15
- export declare const transformToComponentProps: <T extends {
16
- [key: string]: any;
17
- }>(props: T) => any;
16
+ export declare const props: Props;
17
+ export declare const transformToComponentProps: <T extends {}>(props: T) => any;
@@ -0,0 +1,311 @@
1
+ import { PropType } from 'vue';
2
+ import { Option, Theme, UpdateOptions } from './types';
3
+ import './style.css';
4
+ export declare const THEME_KEY = "ecTheme";
5
+ export declare const INIT_OPTIONS_KEY = "ecInitOptions";
6
+ export declare const UPDATE_OPTIONS_KEY = "ecUpdateOptions";
7
+ export { LOADING_OPTIONS_KEY } from './composables';
8
+ declare const _default: import("vue").DefineComponent<{
9
+ loading: BooleanConstructor;
10
+ loadingOptions: ObjectConstructor;
11
+ autoresize: BooleanConstructor;
12
+ option: PropType<import("echarts/types/dist/shared").ECBasicOption>;
13
+ theme: {
14
+ type: PropType<Theme>;
15
+ };
16
+ initOptions: PropType<{
17
+ locale?: string | {
18
+ time: {
19
+ month: string[];
20
+ monthAbbr: string[];
21
+ dayOfWeek: string[];
22
+ dayOfWeekAbbr: string[];
23
+ };
24
+ legend: {
25
+ selector: {
26
+ all: string;
27
+ inverse: string;
28
+ };
29
+ };
30
+ toolbox: {
31
+ brush: {
32
+ title: {
33
+ rect: string;
34
+ polygon: string;
35
+ lineX: string;
36
+ lineY: string;
37
+ keep: string;
38
+ clear: string;
39
+ };
40
+ };
41
+ dataView: {
42
+ title: string;
43
+ lang: string[];
44
+ };
45
+ dataZoom: {
46
+ title: {
47
+ zoom: string;
48
+ back: string;
49
+ };
50
+ };
51
+ magicType: {
52
+ title: {
53
+ line: string;
54
+ bar: string;
55
+ stack: string;
56
+ tiled: string;
57
+ };
58
+ };
59
+ restore: {
60
+ title: string;
61
+ };
62
+ saveAsImage: {
63
+ title: string;
64
+ lang: string[];
65
+ };
66
+ };
67
+ series: {
68
+ typeNames: {
69
+ pie: string;
70
+ bar: string;
71
+ line: string;
72
+ scatter: string;
73
+ effectScatter: string;
74
+ radar: string;
75
+ tree: string;
76
+ treemap: string;
77
+ boxplot: string;
78
+ candlestick: string;
79
+ k: string;
80
+ heatmap: string;
81
+ map: string;
82
+ parallel: string;
83
+ lines: string;
84
+ graph: string;
85
+ sankey: string;
86
+ funnel: string;
87
+ gauge: string;
88
+ pictorialBar: string;
89
+ themeRiver: string;
90
+ sunburst: string;
91
+ };
92
+ };
93
+ aria: {
94
+ general: {
95
+ withTitle: string;
96
+ withoutTitle: string;
97
+ };
98
+ series: {
99
+ single: {
100
+ prefix: string;
101
+ withName: string;
102
+ withoutName: string;
103
+ };
104
+ multiple: {
105
+ prefix: string;
106
+ withName: string;
107
+ withoutName: string;
108
+ separator: {
109
+ middle: string;
110
+ end: string;
111
+ };
112
+ };
113
+ };
114
+ data: {
115
+ allData: string;
116
+ partialData: string;
117
+ withName: string;
118
+ withoutName: string;
119
+ separator: {
120
+ middle: string;
121
+ end: string;
122
+ };
123
+ };
124
+ };
125
+ };
126
+ renderer?: "canvas" | "svg";
127
+ devicePixelRatio?: number;
128
+ useDirtyRect?: boolean;
129
+ width?: number;
130
+ height?: number;
131
+ }>;
132
+ updateOptions: PropType<UpdateOptions>;
133
+ group: StringConstructor;
134
+ manualUpdate: BooleanConstructor;
135
+ }, {
136
+ getWidth: () => number;
137
+ getHeight: () => number;
138
+ getDom: () => HTMLElement;
139
+ getOption: () => import("echarts/types/dist/shared").ECBasicOption;
140
+ resize: (opts?: import("echarts/types/dist/shared").ResizeOpts) => void;
141
+ dispatchAction: (payload: import("echarts/types/dist/shared").Payload, opt?: boolean | {
142
+ silent?: boolean;
143
+ flush?: boolean;
144
+ }) => void;
145
+ convertToPixel: {
146
+ (finder: string | {
147
+ seriesIndex?: number | false | number[] | "all" | "none";
148
+ seriesId?: (string | number) | (string | number)[];
149
+ seriesName?: (string | number) | (string | number)[];
150
+ geoIndex?: number | false | number[] | "all" | "none";
151
+ geoId?: (string | number) | (string | number)[];
152
+ geoName?: (string | number) | (string | number)[];
153
+ bmapIndex?: number | false | number[] | "all" | "none";
154
+ bmapId?: (string | number) | (string | number)[];
155
+ bmapName?: (string | number) | (string | number)[];
156
+ xAxisIndex?: number | false | number[] | "all" | "none";
157
+ xAxisId?: (string | number) | (string | number)[];
158
+ xAxisName?: (string | number) | (string | number)[];
159
+ yAxisIndex?: number | false | number[] | "all" | "none";
160
+ yAxisId?: (string | number) | (string | number)[];
161
+ yAxisName?: (string | number) | (string | number)[];
162
+ gridIndex?: number | false | number[] | "all" | "none";
163
+ gridId?: (string | number) | (string | number)[];
164
+ gridName?: (string | number) | (string | number)[];
165
+ dataIndex?: number;
166
+ dataIndexInside?: number;
167
+ }, value: Date | (string | number)): number;
168
+ (finder: string | {
169
+ seriesIndex?: number | false | number[] | "all" | "none";
170
+ seriesId?: (string | number) | (string | number)[];
171
+ seriesName?: (string | number) | (string | number)[];
172
+ geoIndex?: number | false | number[] | "all" | "none";
173
+ geoId?: (string | number) | (string | number)[];
174
+ geoName?: (string | number) | (string | number)[];
175
+ bmapIndex?: number | false | number[] | "all" | "none";
176
+ bmapId?: (string | number) | (string | number)[];
177
+ bmapName?: (string | number) | (string | number)[];
178
+ xAxisIndex?: number | false | number[] | "all" | "none";
179
+ xAxisId?: (string | number) | (string | number)[];
180
+ xAxisName?: (string | number) | (string | number)[];
181
+ yAxisIndex?: number | false | number[] | "all" | "none";
182
+ yAxisId?: (string | number) | (string | number)[];
183
+ yAxisName?: (string | number) | (string | number)[];
184
+ gridIndex?: number | false | number[] | "all" | "none";
185
+ gridId?: (string | number) | (string | number)[];
186
+ gridName?: (string | number) | (string | number)[];
187
+ dataIndex?: number;
188
+ dataIndexInside?: number;
189
+ }, value: (Date | (string | number))[]): number[];
190
+ };
191
+ convertFromPixel: {
192
+ (finder: string | {
193
+ seriesIndex?: number | false | number[] | "all" | "none";
194
+ seriesId?: (string | number) | (string | number)[];
195
+ seriesName?: (string | number) | (string | number)[];
196
+ geoIndex?: number | false | number[] | "all" | "none";
197
+ geoId?: (string | number) | (string | number)[];
198
+ geoName?: (string | number) | (string | number)[];
199
+ bmapIndex?: number | false | number[] | "all" | "none";
200
+ bmapId?: (string | number) | (string | number)[];
201
+ bmapName?: (string | number) | (string | number)[];
202
+ xAxisIndex?: number | false | number[] | "all" | "none";
203
+ xAxisId?: (string | number) | (string | number)[];
204
+ xAxisName?: (string | number) | (string | number)[];
205
+ yAxisIndex?: number | false | number[] | "all" | "none";
206
+ yAxisId?: (string | number) | (string | number)[];
207
+ yAxisName?: (string | number) | (string | number)[];
208
+ gridIndex?: number | false | number[] | "all" | "none";
209
+ gridId?: (string | number) | (string | number)[];
210
+ gridName?: (string | number) | (string | number)[];
211
+ dataIndex?: number;
212
+ dataIndexInside?: number;
213
+ }, value: number): number;
214
+ (finder: string | {
215
+ seriesIndex?: number | false | number[] | "all" | "none";
216
+ seriesId?: (string | number) | (string | number)[];
217
+ seriesName?: (string | number) | (string | number)[];
218
+ geoIndex?: number | false | number[] | "all" | "none";
219
+ geoId?: (string | number) | (string | number)[];
220
+ geoName?: (string | number) | (string | number)[];
221
+ bmapIndex?: number | false | number[] | "all" | "none";
222
+ bmapId?: (string | number) | (string | number)[];
223
+ bmapName?: (string | number) | (string | number)[];
224
+ xAxisIndex?: number | false | number[] | "all" | "none";
225
+ xAxisId?: (string | number) | (string | number)[];
226
+ xAxisName?: (string | number) | (string | number)[];
227
+ yAxisIndex?: number | false | number[] | "all" | "none";
228
+ yAxisId?: (string | number) | (string | number)[];
229
+ yAxisName?: (string | number) | (string | number)[];
230
+ gridIndex?: number | false | number[] | "all" | "none";
231
+ gridId?: (string | number) | (string | number)[];
232
+ gridName?: (string | number) | (string | number)[];
233
+ dataIndex?: number;
234
+ dataIndexInside?: number;
235
+ }, value: number[]): number[];
236
+ };
237
+ containPixel: (finder: string | {
238
+ seriesIndex?: number | false | number[] | "all" | "none";
239
+ seriesId?: (string | number) | (string | number)[];
240
+ seriesName?: (string | number) | (string | number)[];
241
+ geoIndex?: number | false | number[] | "all" | "none";
242
+ geoId?: (string | number) | (string | number)[];
243
+ geoName?: (string | number) | (string | number)[];
244
+ bmapIndex?: number | false | number[] | "all" | "none";
245
+ bmapId?: (string | number) | (string | number)[];
246
+ bmapName?: (string | number) | (string | number)[];
247
+ xAxisIndex?: number | false | number[] | "all" | "none";
248
+ xAxisId?: (string | number) | (string | number)[];
249
+ xAxisName?: (string | number) | (string | number)[];
250
+ yAxisIndex?: number | false | number[] | "all" | "none";
251
+ yAxisId?: (string | number) | (string | number)[];
252
+ yAxisName?: (string | number) | (string | number)[];
253
+ gridIndex?: number | false | number[] | "all" | "none";
254
+ gridId?: (string | number) | (string | number)[];
255
+ gridName?: (string | number) | (string | number)[];
256
+ dataIndex?: number;
257
+ dataIndexInside?: number;
258
+ }, value: number[]) => boolean;
259
+ getDataURL: (opts?: {
260
+ type?: "svg" | "png" | "jpg";
261
+ pixelRatio?: number;
262
+ backgroundColor?: import("echarts/types/dist/shared").ZRColor;
263
+ excludeComponents?: string[];
264
+ }) => string;
265
+ getConnectedDataURL: (opts?: {
266
+ type?: "svg" | "png" | "jpg";
267
+ pixelRatio?: number;
268
+ backgroundColor?: import("echarts/types/dist/shared").ZRColor;
269
+ connectedBackgroundColor?: import("echarts/types/dist/shared").ZRColor;
270
+ excludeComponents?: string[];
271
+ }) => string;
272
+ appendData: (params: {
273
+ seriesIndex: number;
274
+ data: any;
275
+ }) => void;
276
+ clear: () => void;
277
+ isDisposed: () => boolean;
278
+ dispose: () => void;
279
+ chart: import("vue").ShallowRef<import("echarts/types/dist/shared").EChartsType>;
280
+ root: import("vue").ShallowRef<HTMLElement>;
281
+ setOption: (option: Option, updateOptions?: UpdateOptions) => void;
282
+ nonEventAttrs: import("vue").ComputedRef<{
283
+ [key: string]: any;
284
+ }>;
285
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
286
+ loading?: unknown;
287
+ loadingOptions?: unknown;
288
+ autoresize?: unknown;
289
+ option?: unknown;
290
+ theme?: unknown;
291
+ initOptions?: unknown;
292
+ updateOptions?: unknown;
293
+ group?: unknown;
294
+ manualUpdate?: unknown;
295
+ } & {
296
+ manualUpdate: boolean;
297
+ loading: boolean;
298
+ autoresize: boolean;
299
+ } & {
300
+ theme?: Theme;
301
+ group?: string;
302
+ loadingOptions?: Record<string, any>;
303
+ option?: import("echarts/types/dist/shared").ECBasicOption;
304
+ initOptions?: unknown;
305
+ updateOptions?: unknown;
306
+ }>, {
307
+ manualUpdate: boolean;
308
+ loading: boolean;
309
+ autoresize: boolean;
310
+ }>;
311
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ import { EChartsType, Option } from '../types';
3
+ declare const METHOD_NAMES: readonly ["getWidth", "getHeight", "getDom", "getOption", "resize", "dispatchAction", "convertToPixel", "convertFromPixel", "containPixel", "getDataURL", "getConnectedDataURL", "appendData", "clear", "isDisposed", "dispose"];
4
+ declare type MethodName = typeof METHOD_NAMES[number];
5
+ declare type PublicMethods = Pick<EChartsType, MethodName>;
6
+ export declare function usePublicAPI(chart: Ref<EChartsType | undefined>, init: (option?: Option) => void): PublicMethods;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Ref } from 'vue';
2
+ import { EChartsType } from '../types';
3
+ export declare function useAutoresize(chart: Ref<EChartsType | undefined>, autoresize: Ref<boolean>, root: Ref<HTMLElement | undefined>): void;
4
+ export declare const autoresizeProps: {
5
+ autoresize: BooleanConstructor;
6
+ };
@@ -0,0 +1,3 @@
1
+ export * from './api';
2
+ export * from './autoresize';
3
+ export * from './loading';
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'vue';
2
+ import { EChartsType } from '../types';
3
+ export declare const LOADING_OPTIONS_KEY = "ecLoadingOptions";
4
+ declare type UnknownRecord = Record<string, unknown>;
5
+ export declare function useLoading(chart: Ref<EChartsType | undefined>, loading: Ref<boolean>, loadingOptions: Ref<UnknownRecord | undefined>): void;
6
+ export declare const loadingProps: {
7
+ loading: BooleanConstructor;
8
+ loadingOptions: ObjectConstructor;
9
+ };
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import VueEcharts from './VueEcharts';
2
+ export default VueEcharts;
@@ -0,0 +1,20 @@
1
+ import { init } from 'echarts/core';
2
+ import { Ref } from 'vue';
3
+ declare type InitType = typeof init;
4
+ export declare type InitParameters = Parameters<InitType>;
5
+ export declare type Theme = NonNullable<InitParameters[1]>;
6
+ export declare type ThemeInjection = Theme | null | Ref<Theme | null>;
7
+ export declare type InitOptions = NonNullable<InitParameters[2]>;
8
+ export declare type InitOptionsInjection = InitOptions | null | Ref<InitOptions | null>;
9
+ export declare type EChartsType = ReturnType<InitType>;
10
+ declare type SetOptionType = EChartsType['setOption'];
11
+ export declare type Option = Parameters<SetOptionType>[0];
12
+ export interface UpdateOptions {
13
+ notMerge?: boolean;
14
+ lazyUpdate?: boolean;
15
+ silent?: boolean;
16
+ replaceMerge?: any;
17
+ transition?: any;
18
+ }
19
+ export declare type UpdateOptionsInjection = UpdateOptions | null | Ref<UpdateOptions | null>;
20
+ export {};
@@ -0,0 +1,6 @@
1
+ declare type Attrs = {
2
+ [key: string]: any;
3
+ };
4
+ export declare const isOn: (key: string) => boolean;
5
+ export declare function omitOn(attrs: Attrs): Attrs;
6
+ export {};
@@ -1,2 +1,4 @@
1
+ export * from './setting';
1
2
  export * from './text';
2
3
  export * from './control';
4
+ export * from './graph';
@@ -0,0 +1 @@
1
+ export * from './pie';
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ option: import("vue").Ref<{
3
+ title: {
4
+ text: string;
5
+ left: string;
6
+ };
7
+ tooltip: {
8
+ trigger: string;
9
+ formatter: string;
10
+ };
11
+ legend: {
12
+ orient: string;
13
+ left: string;
14
+ data: string[];
15
+ };
16
+ series: {
17
+ name: string;
18
+ type: string;
19
+ radius: string;
20
+ center: string[];
21
+ data: {
22
+ value: number;
23
+ name: string;
24
+ }[];
25
+ emphasis: {
26
+ itemStyle: {
27
+ shadowBlur: number;
28
+ shadowOffsetX: number;
29
+ shadowColor: string;
30
+ };
31
+ };
32
+ }[];
33
+ }>;
34
+ style: import("vue").ComputedRef<any>;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
36
+ [x: string]: any;
37
+ }>;
38
+ export default _default;
@@ -0,0 +1,307 @@
1
+ export * from './props';
2
+ export declare const EcanPie: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & {
3
+ VueEcharts: import("vue").DefineComponent<{
4
+ loading: BooleanConstructor;
5
+ loadingOptions: ObjectConstructor;
6
+ autoresize: BooleanConstructor;
7
+ option: import("vue").PropType<import("echarts/types/dist/shared").ECBasicOption>;
8
+ theme: {
9
+ type: import("vue").PropType<import("../../common/vue-echarts/types").Theme>;
10
+ };
11
+ initOptions: import("vue").PropType<{
12
+ locale?: string | {
13
+ time: {
14
+ month: string[];
15
+ monthAbbr: string[];
16
+ dayOfWeek: string[];
17
+ dayOfWeekAbbr: string[];
18
+ };
19
+ legend: {
20
+ selector: {
21
+ all: string;
22
+ inverse: string;
23
+ };
24
+ };
25
+ toolbox: {
26
+ brush: {
27
+ title: {
28
+ rect: string;
29
+ polygon: string;
30
+ lineX: string;
31
+ lineY: string;
32
+ keep: string;
33
+ clear: string;
34
+ };
35
+ };
36
+ dataView: {
37
+ title: string;
38
+ lang: string[];
39
+ };
40
+ dataZoom: {
41
+ title: {
42
+ zoom: string;
43
+ back: string;
44
+ };
45
+ };
46
+ magicType: {
47
+ title: {
48
+ line: string;
49
+ bar: string;
50
+ stack: string;
51
+ tiled: string;
52
+ };
53
+ };
54
+ restore: {
55
+ title: string;
56
+ };
57
+ saveAsImage: {
58
+ title: string;
59
+ lang: string[];
60
+ };
61
+ };
62
+ series: {
63
+ typeNames: {
64
+ pie: string;
65
+ bar: string;
66
+ line: string;
67
+ scatter: string;
68
+ effectScatter: string;
69
+ radar: string;
70
+ tree: string;
71
+ treemap: string;
72
+ boxplot: string;
73
+ candlestick: string;
74
+ k: string;
75
+ heatmap: string;
76
+ map: string;
77
+ parallel: string;
78
+ lines: string;
79
+ graph: string;
80
+ sankey: string;
81
+ funnel: string;
82
+ gauge: string;
83
+ pictorialBar: string;
84
+ themeRiver: string;
85
+ sunburst: string;
86
+ };
87
+ };
88
+ aria: {
89
+ general: {
90
+ withTitle: string;
91
+ withoutTitle: string;
92
+ };
93
+ series: {
94
+ single: {
95
+ prefix: string;
96
+ withName: string;
97
+ withoutName: string;
98
+ };
99
+ multiple: {
100
+ prefix: string;
101
+ withName: string;
102
+ withoutName: string;
103
+ separator: {
104
+ middle: string;
105
+ end: string;
106
+ };
107
+ };
108
+ };
109
+ data: {
110
+ allData: string;
111
+ partialData: string;
112
+ withName: string;
113
+ withoutName: string;
114
+ separator: {
115
+ middle: string;
116
+ end: string;
117
+ };
118
+ };
119
+ };
120
+ };
121
+ renderer?: "canvas" | "svg";
122
+ devicePixelRatio?: number;
123
+ useDirtyRect?: boolean;
124
+ width?: number;
125
+ height?: number;
126
+ }>;
127
+ updateOptions: import("vue").PropType<import("../../common/vue-echarts/types").UpdateOptions>;
128
+ group: StringConstructor;
129
+ manualUpdate: BooleanConstructor;
130
+ }, {
131
+ getWidth: () => number;
132
+ getHeight: () => number;
133
+ getDom: () => HTMLElement;
134
+ getOption: () => import("echarts/types/dist/shared").ECBasicOption;
135
+ resize: (opts?: import("echarts/types/dist/shared").ResizeOpts) => void;
136
+ dispatchAction: (payload: import("echarts/types/dist/shared").Payload, opt?: boolean | {
137
+ silent?: boolean;
138
+ flush?: boolean;
139
+ }) => void;
140
+ convertToPixel: {
141
+ (finder: string | {
142
+ seriesIndex?: number | false | number[] | "all" | "none";
143
+ seriesId?: (string | number) | (string | number)[];
144
+ seriesName?: (string | number) | (string | number)[];
145
+ geoIndex?: number | false | number[] | "all" | "none";
146
+ geoId?: (string | number) | (string | number)[];
147
+ geoName?: (string | number) | (string | number)[];
148
+ bmapIndex?: number | false | number[] | "all" | "none";
149
+ bmapId?: (string | number) | (string | number)[];
150
+ bmapName?: (string | number) | (string | number)[];
151
+ xAxisIndex?: number | false | number[] | "all" | "none";
152
+ xAxisId?: (string | number) | (string | number)[];
153
+ xAxisName?: (string | number) | (string | number)[];
154
+ yAxisIndex?: number | false | number[] | "all" | "none";
155
+ yAxisId?: (string | number) | (string | number)[];
156
+ yAxisName?: (string | number) | (string | number)[];
157
+ gridIndex?: number | false | number[] | "all" | "none";
158
+ gridId?: (string | number) | (string | number)[];
159
+ gridName?: (string | number) | (string | number)[];
160
+ dataIndex?: number;
161
+ dataIndexInside?: number;
162
+ }, value: Date | (string | number)): number;
163
+ (finder: string | {
164
+ seriesIndex?: number | false | number[] | "all" | "none";
165
+ seriesId?: (string | number) | (string | number)[];
166
+ seriesName?: (string | number) | (string | number)[];
167
+ geoIndex?: number | false | number[] | "all" | "none";
168
+ geoId?: (string | number) | (string | number)[];
169
+ geoName?: (string | number) | (string | number)[];
170
+ bmapIndex?: number | false | number[] | "all" | "none";
171
+ bmapId?: (string | number) | (string | number)[];
172
+ bmapName?: (string | number) | (string | number)[];
173
+ xAxisIndex?: number | false | number[] | "all" | "none";
174
+ xAxisId?: (string | number) | (string | number)[];
175
+ xAxisName?: (string | number) | (string | number)[];
176
+ yAxisIndex?: number | false | number[] | "all" | "none";
177
+ yAxisId?: (string | number) | (string | number)[];
178
+ yAxisName?: (string | number) | (string | number)[];
179
+ gridIndex?: number | false | number[] | "all" | "none";
180
+ gridId?: (string | number) | (string | number)[];
181
+ gridName?: (string | number) | (string | number)[];
182
+ dataIndex?: number;
183
+ dataIndexInside?: number;
184
+ }, value: (Date | (string | number))[]): number[];
185
+ };
186
+ convertFromPixel: {
187
+ (finder: string | {
188
+ seriesIndex?: number | false | number[] | "all" | "none";
189
+ seriesId?: (string | number) | (string | number)[];
190
+ seriesName?: (string | number) | (string | number)[];
191
+ geoIndex?: number | false | number[] | "all" | "none";
192
+ geoId?: (string | number) | (string | number)[];
193
+ geoName?: (string | number) | (string | number)[];
194
+ bmapIndex?: number | false | number[] | "all" | "none";
195
+ bmapId?: (string | number) | (string | number)[];
196
+ bmapName?: (string | number) | (string | number)[];
197
+ xAxisIndex?: number | false | number[] | "all" | "none";
198
+ xAxisId?: (string | number) | (string | number)[];
199
+ xAxisName?: (string | number) | (string | number)[];
200
+ yAxisIndex?: number | false | number[] | "all" | "none";
201
+ yAxisId?: (string | number) | (string | number)[];
202
+ yAxisName?: (string | number) | (string | number)[];
203
+ gridIndex?: number | false | number[] | "all" | "none";
204
+ gridId?: (string | number) | (string | number)[];
205
+ gridName?: (string | number) | (string | number)[];
206
+ dataIndex?: number;
207
+ dataIndexInside?: number;
208
+ }, value: number): number;
209
+ (finder: string | {
210
+ seriesIndex?: number | false | number[] | "all" | "none";
211
+ seriesId?: (string | number) | (string | number)[];
212
+ seriesName?: (string | number) | (string | number)[];
213
+ geoIndex?: number | false | number[] | "all" | "none";
214
+ geoId?: (string | number) | (string | number)[];
215
+ geoName?: (string | number) | (string | number)[];
216
+ bmapIndex?: number | false | number[] | "all" | "none";
217
+ bmapId?: (string | number) | (string | number)[];
218
+ bmapName?: (string | number) | (string | number)[];
219
+ xAxisIndex?: number | false | number[] | "all" | "none";
220
+ xAxisId?: (string | number) | (string | number)[];
221
+ xAxisName?: (string | number) | (string | number)[];
222
+ yAxisIndex?: number | false | number[] | "all" | "none";
223
+ yAxisId?: (string | number) | (string | number)[];
224
+ yAxisName?: (string | number) | (string | number)[];
225
+ gridIndex?: number | false | number[] | "all" | "none";
226
+ gridId?: (string | number) | (string | number)[];
227
+ gridName?: (string | number) | (string | number)[];
228
+ dataIndex?: number;
229
+ dataIndexInside?: number;
230
+ }, value: number[]): number[];
231
+ };
232
+ containPixel: (finder: string | {
233
+ seriesIndex?: number | false | number[] | "all" | "none";
234
+ seriesId?: (string | number) | (string | number)[];
235
+ seriesName?: (string | number) | (string | number)[];
236
+ geoIndex?: number | false | number[] | "all" | "none";
237
+ geoId?: (string | number) | (string | number)[];
238
+ geoName?: (string | number) | (string | number)[];
239
+ bmapIndex?: number | false | number[] | "all" | "none";
240
+ bmapId?: (string | number) | (string | number)[];
241
+ bmapName?: (string | number) | (string | number)[];
242
+ xAxisIndex?: number | false | number[] | "all" | "none";
243
+ xAxisId?: (string | number) | (string | number)[];
244
+ xAxisName?: (string | number) | (string | number)[];
245
+ yAxisIndex?: number | false | number[] | "all" | "none";
246
+ yAxisId?: (string | number) | (string | number)[];
247
+ yAxisName?: (string | number) | (string | number)[];
248
+ gridIndex?: number | false | number[] | "all" | "none";
249
+ gridId?: (string | number) | (string | number)[];
250
+ gridName?: (string | number) | (string | number)[];
251
+ dataIndex?: number;
252
+ dataIndexInside?: number;
253
+ }, value: number[]) => boolean;
254
+ getDataURL: (opts?: {
255
+ type?: "svg" | "png" | "jpg";
256
+ pixelRatio?: number;
257
+ backgroundColor?: import("echarts/types/dist/shared").ZRColor;
258
+ excludeComponents?: string[];
259
+ }) => string;
260
+ getConnectedDataURL: (opts?: {
261
+ type?: "svg" | "png" | "jpg";
262
+ pixelRatio?: number;
263
+ backgroundColor?: import("echarts/types/dist/shared").ZRColor;
264
+ connectedBackgroundColor?: import("echarts/types/dist/shared").ZRColor;
265
+ excludeComponents?: string[];
266
+ }) => string;
267
+ appendData: (params: {
268
+ seriesIndex: number;
269
+ data: any;
270
+ }) => void;
271
+ clear: () => void;
272
+ isDisposed: () => boolean;
273
+ dispose: () => void;
274
+ chart: import("vue").ShallowRef<import("echarts/types/dist/shared").EChartsType>;
275
+ root: import("vue").ShallowRef<HTMLElement>;
276
+ setOption: (option: import("echarts/types/dist/shared").ECBasicOption, updateOptions?: import("../../common/vue-echarts/types").UpdateOptions) => void;
277
+ nonEventAttrs: import("vue").ComputedRef<{
278
+ [key: string]: any;
279
+ }>;
280
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
281
+ loading?: unknown;
282
+ loadingOptions?: unknown;
283
+ autoresize?: unknown;
284
+ option?: unknown;
285
+ theme?: unknown;
286
+ initOptions?: unknown;
287
+ updateOptions?: unknown;
288
+ group?: unknown;
289
+ manualUpdate?: unknown;
290
+ } & {
291
+ manualUpdate: boolean;
292
+ loading: boolean;
293
+ autoresize: boolean;
294
+ } & {
295
+ theme?: import("../../common/vue-echarts/types").Theme;
296
+ group?: string;
297
+ loadingOptions?: Record<string, any>;
298
+ option?: import("echarts/types/dist/shared").ECBasicOption;
299
+ initOptions?: unknown;
300
+ updateOptions?: unknown;
301
+ }>, {
302
+ manualUpdate: boolean;
303
+ loading: boolean;
304
+ autoresize: boolean;
305
+ }>;
306
+ };
307
+ export default EcanPie;
@@ -0,0 +1,11 @@
1
+ import { Props } from '../../_utils/props';
2
+ export interface PieProps extends Props {
3
+ data: any[];
4
+ titleText: string;
5
+ titleLeft: string;
6
+ legendShow: string;
7
+ legendTop: string;
8
+ legendLeft: string;
9
+ }
10
+ export declare const pieProps: PieProps;
11
+ export declare const pieComponentProps: any;
package/dist/index.esm.js CHANGED
@@ -1 +1,15 @@
1
- import{defineComponent as t,openBlock as e,createElementBlock as n,toDisplayString as r,ref as o,createBlock as a,withCtx as i,createTextVNode as u}from"vue";import{mapValues as l}from"lodash-es";import{Button as c}from"ant-design-vue/es";import"ant-design-vue/es/button/style/css";function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var m=function(t,e){if(t.install=function(n){for(var r=0,o=[t].concat(p(Object.values(null!=e?e:{})));r<o.length;r++){var a=o[r];n.component(a.name,a)}},e)for(var n=0,r=Object.entries(e);n<r.length;n++){var o=d(r[n],2),a=o[0],i=o[1];t[a]=i}return t},y={color:"#333333",fontFamily:"",fontSize:"14px",fontWeight:400,height:"40px",id:"",isRender:!0,isShow:!0,name:"基础文本",rotate:"0deg",text:"文字",type:"ecan-text",width:"100px",x:"0px",y:"0px",zIndex:0,imgUrl:""},v=l(y,(function(t){return{type:t.constructor,default:t}})),h=t({name:"EcanText",props:v,setup:function(t){console.log(t)}});h.render=function(t,o,a,i,u,l){return e(),n("div",null,r(t.text),1)},h.__file="src/text/text/Text.vue";var x=m(h),b=t({name:"EcanScrollText",setup:function(){return{text:o("基础文本")}}}),g={class:"red"};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".red[data-v-0cbdffb5]{color:red}"),b.render=function(t,o,a,i,u,l){return e(),n("div",g,r(t.text),1)},b.__scopeId="data-v-0cbdffb5",b.__file="src/text/scroll-text/ScrollText.vue";var E=m(b),S=t({name:"EcanInput",setup:function(){return{valueRef:o("")}}}),_=u("测试");S.render=function(t,n,r,o,u,l){var f=c;return e(),a(f,null,{default:i((function(){return[_]})),_:1})},S.__file="src/control/input/Input.vue";var T=m(S),j=Object.freeze({__proto__:null,textProps:y,textComponentProps:v,EcanText:x,EcanScrollText:E,EcanInput:T}),A={install:function(t){Object.keys(j).forEach((function(e){var n=j[e];n.install&&t.use(n)}))}};export{T as EcanInput,E as EcanScrollText,x as EcanText,A as default,v as textComponentProps,y as textProps};
1
+ import{defineComponent as e,computed as t,ref as r,onMounted as n,onUnmounted as o,nextTick as i,openBlock as a,createElementBlock as c,normalizeStyle as s,renderSlot as u,createCommentVNode as l,toDisplayString as f,createBlock as d,withCtx as h,createTextVNode as p,watch as v,inject as _,unref as g,watchEffect as m,shallowRef as y,toRefs as w,h as b,resolveComponent as x,createVNode as z}from"vue";import{mapValues as E,debounce as O,without as L,pick as j}from"lodash-es";import{Button as C}from"ant-design-vue/es";import"ant-design-vue/es/button/style/css";import{throttle as S,init as k,use as T}from"echarts/core";import{CanvasRenderer as A}from"echarts/renderers";import{PieChart as P}from"echarts/charts";import{TitleComponent as N,TooltipComponent as I,LegendComponent as F}from"echarts/components";function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){if(e){if("string"==typeof e)return W(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var B=function(e,t){if(e.install=function(r){for(var n=0,o=[e].concat(R(Object.values(null!=t?t:{})));n<o.length;n++){var i=o[n];r.component(i.name,i)}},t)for(var r=0,n=Object.entries(t);r<n.length;r++){var o=H(n[r],2),i=o[0],a=o[1];e[i]=a}return e},U={exports:{}};!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(e,t,r);if("normal"===s.type){if(n=r.done?p:d,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function _(){}function g(){}function m(){}var y={};s(y,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(S([])));b&&b!==r&&n.call(b,i)&&(y=b);var x=m.prototype=_.prototype=Object.create(y);function z(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,c){var s=l(e[o],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function S(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return g.prototype=m,s(x,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},z(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},z(x),s(x,c,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(U);var G=U.exports;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function M(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}s((n=n.apply(e,t||[])).next())}))}var V=function(e){return E(e,(function(e){return{type:e.constructor,default:e}}))},q={pageWidth:"1920px",pageHeight:"1080px",pageBackgroundColor:"#ffffff",pageBackgroundImage:""},Y=V(q),$=e({name:"EcanPageConfig",props:Y,setup:function(e){var a,c=this,s=t((function(){return{width:e.pageWidth,height:e.pageHeight,backgroundColor:e.pageBackgroundColor,backgroundImage:e.pageBackgroundImage}})),u=r(0),l=r(0),f=r(0),d=r(0),h=r(!1),p=r(),v=function(){return new Promise((function(t){i((function(){e.pageWidth&&e.pageHeight?(u.value=parseFloat(e.pageWidth),l.value=parseFloat(e.pageHeight)):(u.value=p.value.clientWidth,l.value=p.value.clientHeight),f.value&&d.value||(f.value=window.screen.width,d.value=window.screen.height),t()}))}))},_=function(){var e=document.body.clientWidth,t=document.body.clientHeight,r=e/(u.value||f.value),n=t/(l.value||d.value);p.value&&(p.value.style.transform="scale(".concat(r,", ").concat(n,")"))},g=function(){return M(c,void 0,void 0,G.mark((function e(){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:_();case 3:case"end":return e.stop()}}),e)})))},m=function(){var e=window.MutationObserver;(a=new e(g)).observe(p.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})};return n((function(){return M(c,void 0,void 0,G.mark((function e(){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h.value=!1,e.next=3,v();case 3:u.value&&l.value?(p.value.style.width="".concat(u.value,"px"),p.value.style.height="".concat(l.value,"px")):(p.value.style.width="".concat(f.value,"px"),p.value.style.height="".concat(d.value,"px")),_(),window.addEventListener("resize",O(g,100)),m(),h.value=!0;case 8:case"end":return e.stop()}}),e)})))})),o((function(){window.removeEventListener("resize",g),a&&(a.disconnect(),a.takeRecords(),a=null)})),{style:s,container:p,ready:h}}}),X={id:"container",ref:"container"};function Z(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Z("#container[data-v-49f464c4]{left:0;overflow:hidden;position:fixed;top:0;transform-origin:left top;z-index:999}.page-config[data-v-49f464c4]{background-size:cover;overflow:hidden;position:relative}"),$.render=function(e,t,r,n,o,i){return a(),c("div",X,[e.ready?(a(),c("div",{key:0,class:"page-config",style:s(e.style)},[u(e.$slots,"default")],4)):l("v-if",!0)],512)},$.__scopeId="data-v-49f464c4",$.__file="src/setting/page-cofig/PageConfig.vue";var J=B($),K={id:"",name:"基础文本",type:"ecanText",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:0,rotate:"0deg",isShow:!0,isRender:!0,imgUrl:"",text:"文字",color:"#333333",fontSize:"14px",fontFamily:"",fontWeight:0,textAlign:"center",overflow:"hidden"},Q=V(K),ee=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","overflow","backgroundColor","backgroundImage"],te=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=L(ee,r),o=t((function(){return j(e,n)}));return{style:o}},re=e({name:"EcanText",props:Q,setup:function(e){return{style:te(e).style}}});re.render=function(e,t,r,n,o,i){return a(),c("div",{style:s(e.style)},f(e.text),5)},re.__file="src/text/text/Text.vue";var ne=B(re),oe=e({name:"EcanScrollText",setup:function(){return{text:r("基础文本")}}}),ie={class:"red"};Z(".red[data-v-0cbdffb5]{color:red}"),oe.render=function(e,t,r,n,o,i){return a(),c("div",ie,f(e.text),1)},oe.__scopeId="data-v-0cbdffb5",oe.__file="src/text/scroll-text/ScrollText.vue";var ae=B(oe),ce=e({name:"EcanInput",setup:function(){return{valueRef:r("")}}}),se=p("测试");ce.render=function(e,t,r,n,o,i){var c=C;return a(),d(c,null,{default:h((function(){return[se]})),_:1})},ce.__file="src/control/input/Input.vue";var ue=B(ce),le=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function fe(e,t){return r=Object.create(null),le.forEach((function(n){r[n]=function(r){return function(){if(e.value||t(),!e.value)throw new Error("ECharts is not initialized yet.");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.value[r].apply(e.value,o)}}(n)})),r;var r}var de=null;var he=null;function pe(e,t){void 0===t&&(t={});var r=document.createElement(e);return Object.keys(t).forEach((function(e){r[e]=t[e]})),r}function ve(e,t,r){return(window.getComputedStyle(e,r||null)||{display:"none"})[t]}function _e(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if("none"===ve(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var ge=0,me=null;function ye(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=we.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,n=e.offsetHeight,o=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==r||e.offsetHeight!==n))&&xe(e)})),i=_e(e),a=i.detached,c=i.rendered;e.__resize_observer_triggered__=!1===a&&!1===c,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){xe(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(ge||(me=function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){var t=ve(e,"position");t&&"static"!==t||(e.style.position="relative");e.__resize_old_position__=t,e.__resize_last__={};var r=pe("div",{className:"resize-triggers"}),n=pe("div",{className:"resize-expand-trigger"}),o=pe("div"),i=pe("div",{className:"resize-contract-trigger"});n.appendChild(o),r.appendChild(n),r.appendChild(i),e.appendChild(r),e.__resize_triggers__={triggers:r,expand:n,expandChild:o,contract:i},ze(e),e.addEventListener("scroll",be,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=_e(e).rendered,window.MutationObserver){var s=new MutationObserver(e.__resize_mutation_handler__);s.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=s}e.__resize_listeners__.push(t),ge++}function we(){var e=_e(this),t=e.rendered,r=e.detached;t!==this.__resize_rendered__&&(!r&&this.__resize_triggers__&&(ze(this),this.addEventListener("scroll",be,!0)),this.__resize_rendered__=t,xe(this))}function be(){var e,t,r=this;ze(this),this.__resize_raf__&&(e=this.__resize_raf__,he||(he=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),he(e)),this.__resize_raf__=(t=function(){var e=function(e){var t=e.__resize_last__,r=t.width,n=t.height,o=e.offsetWidth,i=e.offsetHeight;return o!==r||i!==n?{width:o,height:i}:null}(r);e&&(r.__resize_last__=e,xe(r))},de||(de=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),de(t))}function xe(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function ze(e){var t=e.__resize_triggers__,r=t.expand,n=t.expandChild,o=t.contract,i=o.scrollWidth,a=o.scrollHeight,c=r.offsetWidth,s=r.offsetHeight,u=r.scrollWidth,l=r.scrollHeight;o.scrollLeft=i,o.scrollTop=a,n.style.width=c+1+"px",n.style.height=s+1+"px",r.scrollLeft=u,r.scrollTop=l}function Ee(e,t,r){var n=null;v([r,e,t],(function(e,t,r){var o=H(e,3),i=o[0],a=o[1],c=o[2];i&&a&&c&&(n=S((function(){a.resize()}),100),ye(i,n)),r((function(){n&&i&&function(e,t){var r=e.__resize_listeners__;if(r){if(t&&r.splice(r.indexOf(t),1),!r.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",be),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--ge&&me&&me.parentNode.removeChild(me)}}(i,n)}))}))}var Oe={autoresize:Boolean};var Le={loading:Boolean,loadingOptions:Object};Z("x-vue-echarts{display:block;height:100%;width:100%}");var je=/^on[^a-z]/,Ce=function(e){return je.test(e)};var Se=e({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},Oe),Le),inheritAttrs:!1,setup:function(e,r){var a=r.attrs,c=r.listeners,s=y(),u=y(),l=y(),f=_("ecTheme",null),d=_("ecInitOptions",null),h=_("ecUpdateOptions",null),p=w(e),b=p.autoresize,x=p.manualUpdate,z=p.loading,E=p.loadingOptions,O=t((function(){return l.value||e.option||Object.create(null)})),L=t((function(){return e.theme||g(f)||{}})),j=t((function(){return e.initOptions||g(d)||{}})),C=t((function(){return e.updateOptions||g(h)||{}})),S=t((function(){return function(e){var t={};for(var r in e)Ce(r)||(t[r]=e[r]);return t}(a)}));function T(t){if(!u.value&&s.value){var r=u.value=k(s.value,L.value,j.value);e.group&&(r.group=e.group);var n=c;n||(n={},Object.keys(a).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);n[t]=a[e]}))),Object.keys(n).forEach((function(e){var t=n[e];t&&(0===e.indexOf("zr:")?r.getZr().on(e.slice(3).toLowerCase(),t):r.on(e.toLowerCase(),t))})),b.value?i((function(){!function(){if(r&&!r.isDisposed())try{r.resize()}catch(e){if("Cannot read property 'get' of undefined"===e.message)return;throw e}}(),o()})):o()}function o(){r.setOption(t||O.value,C.value)}}function A(){u.value&&(u.value.dispose(),u.value=void 0)}var P=null;v(x,(function(t){"function"==typeof P&&(P(),P=null),t||(P=v((function(){return e.option}),(function(e){e&&(u.value?u.value.setOption(e,C.value):T())}),{deep:!0}))}),{immediate:!0}),v([L,j],(function(){A(),T()}),{deep:!0}),m((function(){e.group&&u.value&&(u.value.group=e.group)}));var N=fe(u,T);return function(e,r,n){var o=_("ecLoadingOptions",{}),i=t((function(){return Object.assign(Object.assign({},g(o)),null==n?void 0:n.value)}));m((function(){var t=e.value;t&&(r.value?t.showLoading(i.value):t.hideLoading())}))}(u,z,E),Ee(u,b,s),n((function(){e.option&&T()})),o(A),Object.assign({chart:u,root:s,setOption:function(t,r){e.manualUpdate&&(l.value=t),u.value?u.value.setOption(t,r||{}):T(t)},nonEventAttrs:S},N)},render:function(){var e=Object.assign({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",b("x-vue-echarts",e)}}),ke={id:"",name:"饼图",type:"ecanPie",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:0,rotate:"",isShow:!0,isRender:!0,imgUrl:"",data:[],titleText:"",titleLeft:"",legendShow:"",legendTop:"",legendLeft:""},Te=V(ke);T([A,P,N,I,F]);var Ae=e({name:"EcanPie",props:Te,components:{VueEcharts:Se},setup:function(e){var t=te(e).style;return{option:r({title:{text:"Traffic Sources",left:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["Direct","Email","Ad Networks","Video Ads","Search Engines"]},series:[{name:"Traffic Sources",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"Direct"},{value:310,name:"Email"},{value:234,name:"Ad Networks"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engines"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),style:t}}});Ae.render=function(e,t,r,n,o,i){var u=x("vue-echarts");return a(),c("div",{style:s(e.style)},[z(u,{option:e.option,autoresize:""},null,8,["option"])],4)},Ae.__file="src/graph/pie/Pie.vue";var Pe=B(Ae,{VueEcharts:Se}),Ne=Object.freeze({__proto__:null,pageConfig:q,pageConfigComponentProps:Y,EcanPagePageConfig:J,textProps:K,textComponentProps:Q,EcanText:ne,EcanScrollText:ae,EcanInput:ue,pieProps:ke,pieComponentProps:Te,EcanPie:Pe}),Ie={install:function(e){Object.keys(Ne).forEach((function(t){var r=Ne[t];r.install&&e.use(r)}))}};export{ue as EcanInput,J as EcanPagePageConfig,Pe as EcanPie,ae as EcanScrollText,ne as EcanText,Ie as default,q as pageConfig,Y as pageConfigComponentProps,Te as pieComponentProps,ke as pieProps,Q as textComponentProps,K as textProps};
package/dist/index.umd.js CHANGED
@@ -1 +1,15 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("lodash-es"),require("ant-design-vue/es"),require("ant-design-vue/es/button/style/css")):"function"==typeof define&&define.amd?define(["exports","vue","lodash-es","ant-design-vue/es","ant-design-vue/es/button/style/css"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue,e["lodash-es"],e["ant-design-vue/es"])}(this,(function(e,t,n,r){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var u,c=function(e,t){if(e.install=function(n){for(var r=0,o=[e].concat(l(Object.values(null!=t?t:{})));r<o.length;r++){var i=o[r];n.component(i.name,i)}},t)for(var n=0,r=Object.entries(t);n<r.length;n++){var o=a(r[n],2),i=o[0],u=o[1];e[i]=u}return e},s={color:"#333333",fontFamily:"",fontSize:"14px",fontWeight:400,height:"40px",id:"",isRender:!0,isShow:!0,name:"基础文本",rotate:"0deg",text:"文字",type:"ecan-text",width:"100px",x:"0px",y:"0px",zIndex:0,imgUrl:""},f=(u=s,n.mapValues(u,(function(e){return{type:e.constructor,default:e}}))),d=t.defineComponent({name:"EcanText",props:f,setup:function(e){console.log(e)}});d.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,t.toDisplayString(e.text),1)},d.__file="src/text/text/Text.vue";var p=c(d),y=t.defineComponent({name:"EcanScrollText",setup:function(){return{text:t.ref("基础文本")}}}),m={class:"red"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".red[data-v-0cbdffb5]{color:red}"),y.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",m,t.toDisplayString(e.text),1)},y.__scopeId="data-v-0cbdffb5",y.__file="src/text/scroll-text/ScrollText.vue";var v=c(y),x=t.defineComponent({name:"EcanInput",setup:function(){return{valueRef:t.ref("")}}}),h=t.createTextVNode("测试");x.render=function(e,n,o,i,a,l){var u=r.Button;return t.openBlock(),t.createBlock(u,null,{default:t.withCtx((function(){return[h]})),_:1})},x.__file="src/control/input/Input.vue";var b=c(x),g=Object.freeze({__proto__:null,textProps:s,textComponentProps:f,EcanText:p,EcanScrollText:v,EcanInput:b}),E={install:function(e){Object.keys(g).forEach((function(t){var n=g[t];n.install&&e.use(n)}))}};e.EcanInput=b,e.EcanScrollText=v,e.EcanText=p,e.default=E,e.textComponentProps=f,e.textProps=s,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("lodash-es"),require("ant-design-vue/es"),require("ant-design-vue/es/button/style/css"),require("echarts/core"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components")):"function"==typeof define&&define.amd?define(["exports","vue","lodash-es","ant-design-vue/es","ant-design-vue/es/button/style/css","echarts/core","echarts/renderers","echarts/charts","echarts/components"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue,e["lodash-es"],e["ant-design-vue/es"],null,e["echarts/core"],e["echarts/renderers"],e["echarts/charts"],e["echarts/components"])}(this,(function(e,t,n,r,o,i,a,c,s){"use strict";function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var h=function(e,t){if(e.install=function(n){for(var r=0,o=[e].concat(d(Object.values(null!=t?t:{})));r<o.length;r++){var i=o[r];n.component(i.name,i)}},t)for(var n=0,r=Object.entries(t);n<r.length;n++){var o=f(r[n],2),i=o[0],a=o[1];e[i]=a}return e},p={exports:{}};!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?p:d,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function _(){}function g(){}function m(){}var y={};s(y,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(y=b);var x=m.prototype=_.prototype=Object.create(y);function z(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,c){var s=l(e[o],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:S}}function S(){return{value:t,done:!0}}return g.prototype=m,s(x,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},z(E.prototype),s(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},z(x),s(x,c,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(p);var v=p.exports;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function _(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}var g=function(e){return n.mapValues(e,(function(e){return{type:e.constructor,default:e}}))},m={pageWidth:"1920px",pageHeight:"1080px",pageBackgroundColor:"#ffffff",pageBackgroundImage:""},y=g(m),w=t.defineComponent({name:"EcanPageConfig",props:y,setup:function(e){var r,o=this,i=t.computed((function(){return{width:e.pageWidth,height:e.pageHeight,backgroundColor:e.pageBackgroundColor,backgroundImage:e.pageBackgroundImage}})),a=t.ref(0),c=t.ref(0),s=t.ref(0),u=t.ref(0),l=t.ref(!1),f=t.ref(),d=function(){return new Promise((function(n){t.nextTick((function(){e.pageWidth&&e.pageHeight?(a.value=parseFloat(e.pageWidth),c.value=parseFloat(e.pageHeight)):(a.value=f.value.clientWidth,c.value=f.value.clientHeight),s.value&&u.value||(s.value=window.screen.width,u.value=window.screen.height),n()}))}))},h=function(){var e=document.body.clientWidth,t=document.body.clientHeight,n=e/(a.value||s.value),r=t/(c.value||u.value);f.value&&(f.value.style.transform="scale(".concat(n,", ").concat(r,")"))},p=function(){return _(o,void 0,void 0,v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:h();case 3:case"end":return e.stop()}}),e)})))},g=function(){var e=window.MutationObserver;(r=new e(p)).observe(f.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})};return t.onMounted((function(){return _(o,void 0,void 0,v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l.value=!1,e.next=3,d();case 3:a.value&&c.value?(f.value.style.width="".concat(a.value,"px"),f.value.style.height="".concat(c.value,"px")):(f.value.style.width="".concat(s.value,"px"),f.value.style.height="".concat(u.value,"px")),h(),window.addEventListener("resize",n.debounce(p,100)),g(),l.value=!0;case 8:case"end":return e.stop()}}),e)})))})),t.onUnmounted((function(){window.removeEventListener("resize",p),r&&(r.disconnect(),r.takeRecords(),r=null)})),{style:i,container:f,ready:l}}}),b={id:"container",ref:"container"};function x(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}x("#container[data-v-49f464c4]{left:0;overflow:hidden;position:fixed;top:0;transform-origin:left top;z-index:999}.page-config[data-v-49f464c4]{background-size:cover;overflow:hidden;position:relative}"),w.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",b,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("v-if",!0)],512)},w.__scopeId="data-v-49f464c4",w.__file="src/setting/page-cofig/PageConfig.vue";var z=h(w),E={id:"",name:"基础文本",type:"ecanText",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:0,rotate:"0deg",isShow:!0,isRender:!0,imgUrl:"",text:"文字",color:"#333333",fontSize:"14px",fontFamily:"",fontWeight:0,textAlign:"center",overflow:"hidden"},O=g(E),C=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","overflow","backgroundColor","backgroundImage"],L=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=n.without(C,r),i=t.computed((function(){return n.pick(e,o)}));return{style:i}},k=t.defineComponent({name:"EcanText",props:O,setup:function(e){return{style:L(e).style}}});k.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},t.toDisplayString(e.text),5)},k.__file="src/text/text/Text.vue";var j=h(k),S=t.defineComponent({name:"EcanScrollText",setup:function(){return{text:t.ref("基础文本")}}}),T={class:"red"};x(".red[data-v-0cbdffb5]{color:red}"),S.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",T,t.toDisplayString(e.text),1)},S.__scopeId="data-v-0cbdffb5",S.__file="src/text/scroll-text/ScrollText.vue";var P=h(S),A=t.defineComponent({name:"EcanInput",setup:function(){return{valueRef:t.ref("")}}}),N=t.createTextVNode("测试");A.render=function(e,n,o,i,a,c){var s=r.Button;return t.openBlock(),t.createBlock(s,null,{default:t.withCtx((function(){return[N]})),_:1})},A.__file="src/control/input/Input.vue";var B=h(A),I=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function F(e,t){return n=Object.create(null),I.forEach((function(r){n[r]=function(n){return function(){if(e.value||t(),!e.value)throw new Error("ECharts is not initialized yet.");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.value[n].apply(e.value,o)}}(r)})),n;var n}var R=null;var D=null;function W(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function H(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function q(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if("none"===H(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var M=0,U=null;function V(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=G.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,r=e.offsetHeight,o=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==n||e.offsetHeight!==r))&&$(e)})),i=q(e),a=i.detached,c=i.rendered;e.__resize_observer_triggered__=!1===a&&!1===c,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){$(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(M||(U=function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){var t=H(e,"position");t&&"static"!==t||(e.style.position="relative");e.__resize_old_position__=t,e.__resize_last__={};var n=W("div",{className:"resize-triggers"}),r=W("div",{className:"resize-expand-trigger"}),o=W("div"),i=W("div",{className:"resize-contract-trigger"});r.appendChild(o),n.appendChild(r),n.appendChild(i),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:o,contract:i},X(e),e.addEventListener("scroll",Y,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=q(e).rendered,window.MutationObserver){var s=new MutationObserver(e.__resize_mutation_handler__);s.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=s}e.__resize_listeners__.push(t),M++}function G(){var e=q(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(X(this),this.addEventListener("scroll",Y,!0)),this.__resize_rendered__=t,$(this))}function Y(){var e,t,n=this;X(this),this.__resize_raf__&&(e=this.__resize_raf__,D||(D=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),D(e)),this.__resize_raf__=(t=function(){var e,t,r,o,i,a,c=(t=(e=n).__resize_last__,r=t.width,o=t.height,i=e.offsetWidth,a=e.offsetHeight,i!==r||a!==o?{width:i,height:a}:null);c&&(n.__resize_last__=c,$(n))},R||(R=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),R(t))}function $(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function X(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,o=t.contract,i=o.scrollWidth,a=o.scrollHeight,c=n.offsetWidth,s=n.offsetHeight,u=n.scrollWidth,l=n.scrollHeight;o.scrollLeft=i,o.scrollTop=a,r.style.width=c+1+"px",r.style.height=s+1+"px",n.scrollLeft=u,n.scrollTop=l}function Z(e,n,r){var o=null;t.watch([r,e,n],(function(e,t,n){var r=f(e,3),a=r[0],c=r[1],s=r[2];a&&c&&s&&(o=i.throttle((function(){c.resize()}),100),V(a,o)),n((function(){o&&a&&function(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",Y),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--M&&U&&U.parentNode.removeChild(U)}}(a,o)}))}))}var J={autoresize:Boolean};var K={loading:Boolean,loadingOptions:Object};x("x-vue-echarts{display:block;height:100%;width:100%}");var Q=/^on[^a-z]/,ee=function(e){return Q.test(e)};var te=t.defineComponent({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},J),K),inheritAttrs:!1,setup:function(e,n){var r=n.attrs,o=n.listeners,a=t.shallowRef(),c=t.shallowRef(),s=t.shallowRef(),u=t.inject("ecTheme",null),l=t.inject("ecInitOptions",null),f=t.inject("ecUpdateOptions",null),d=t.toRefs(e),h=d.autoresize,p=d.manualUpdate,v=d.loading,_=d.loadingOptions,g=t.computed((function(){return s.value||e.option||Object.create(null)})),m=t.computed((function(){return e.theme||t.unref(u)||{}})),y=t.computed((function(){return e.initOptions||t.unref(l)||{}})),w=t.computed((function(){return e.updateOptions||t.unref(f)||{}})),b=t.computed((function(){return function(e){var t={};for(var n in e)ee(n)||(t[n]=e[n]);return t}(r)}));function x(n){if(!c.value&&a.value){var s=c.value=i.init(a.value,m.value,y.value);e.group&&(s.group=e.group);var u=o;u||(u={},Object.keys(r).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);u[t]=r[e]}))),Object.keys(u).forEach((function(e){var t=u[e];t&&(0===e.indexOf("zr:")?s.getZr().on(e.slice(3).toLowerCase(),t):s.on(e.toLowerCase(),t))})),h.value?t.nextTick((function(){!function(){if(s&&!s.isDisposed())try{s.resize()}catch(e){if("Cannot read property 'get' of undefined"===e.message)return;throw e}}(),l()})):l()}function l(){s.setOption(n||g.value,w.value)}}function z(){c.value&&(c.value.dispose(),c.value=void 0)}var E=null;t.watch(p,(function(n){"function"==typeof E&&(E(),E=null),n||(E=t.watch((function(){return e.option}),(function(e){e&&(c.value?c.value.setOption(e,w.value):x())}),{deep:!0}))}),{immediate:!0}),t.watch([m,y],(function(){z(),x()}),{deep:!0}),t.watchEffect((function(){e.group&&c.value&&(c.value.group=e.group)}));var O=F(c,x);return function(e,n,r){var o=t.inject("ecLoadingOptions",{}),i=t.computed((function(){return Object.assign(Object.assign({},t.unref(o)),null==r?void 0:r.value)}));t.watchEffect((function(){var t=e.value;t&&(n.value?t.showLoading(i.value):t.hideLoading())}))}(c,v,_),Z(c,h,a),t.onMounted((function(){e.option&&x()})),t.onUnmounted(z),Object.assign({chart:c,root:a,setOption:function(t,n){e.manualUpdate&&(s.value=t),c.value?c.value.setOption(t,n||{}):x(t)},nonEventAttrs:b},O)},render:function(){var e=Object.assign({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h("x-vue-echarts",e)}}),ne={id:"",name:"饼图",type:"ecanPie",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:0,rotate:"",isShow:!0,isRender:!0,imgUrl:"",data:[],titleText:"",titleLeft:"",legendShow:"",legendTop:"",legendLeft:""},re=g(ne);i.use([a.CanvasRenderer,c.PieChart,s.TitleComponent,s.TooltipComponent,s.LegendComponent]);var oe=t.defineComponent({name:"EcanPie",props:re,components:{VueEcharts:te},setup:function(e){var n=L(e).style;return{option:t.ref({title:{text:"Traffic Sources",left:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["Direct","Email","Ad Networks","Video Ads","Search Engines"]},series:[{name:"Traffic Sources",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"Direct"},{value:310,name:"Email"},{value:234,name:"Ad Networks"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engines"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),style:n}}});oe.render=function(e,n,r,o,i,a){var c=t.resolveComponent("vue-echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{option:e.option,autoresize:""},null,8,["option"])],4)},oe.__file="src/graph/pie/Pie.vue";var ie=h(oe,{VueEcharts:te}),ae=Object.freeze({__proto__:null,pageConfig:m,pageConfigComponentProps:y,EcanPagePageConfig:z,textProps:E,textComponentProps:O,EcanText:j,EcanScrollText:P,EcanInput:B,pieProps:ne,pieComponentProps:re,EcanPie:ie}),ce={install:function(e){Object.keys(ae).forEach((function(t){var n=ae[t];n.install&&e.use(n)}))}};e.EcanInput=B,e.EcanPagePageConfig=z,e.EcanPie=ie,e.EcanScrollText=P,e.EcanText=j,e.default=ce,e.pageConfig=m,e.pageConfigComponentProps=y,e.pieComponentProps=re,e.pieProps=ne,e.textComponentProps=O,e.textProps=E,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1 @@
1
+ export * from './page-cofig';
@@ -0,0 +1,13 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ style: import("vue").ComputedRef<{
3
+ width: any;
4
+ height: any;
5
+ backgroundColor: any;
6
+ backgroundImage: any;
7
+ }>;
8
+ container: import("vue").Ref<any>;
9
+ ready: import("vue").Ref<boolean>;
10
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
11
+ [x: string]: any;
12
+ }>;
13
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export * from './props';
2
+ export declare const EcanPagePageConfig: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
3
+ export default EcanPagePageConfig;
@@ -0,0 +1,8 @@
1
+ export interface PageConfig {
2
+ pageWidth: string;
3
+ pageHeight: string;
4
+ pageBackgroundColor: string;
5
+ pageBackgroundImage: string;
6
+ }
7
+ export declare const pageConfig: PageConfig;
8
+ export declare const pageConfigComponentProps: any;
@@ -1,4 +1,6 @@
1
- declare const _default: import("vue").DefineComponent<any, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ style: import("vue").ComputedRef<any>;
3
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
2
4
  [x: string]: any;
3
5
  }>;
4
6
  export default _default;
@@ -1,3 +1,3 @@
1
- export { textProps, textComponentProps } from './props';
1
+ export * from './props';
2
2
  export declare const EcanText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
3
3
  export default EcanText;
@@ -1,10 +1,12 @@
1
- import { CommonProps } from '../../_utils/props';
2
- export interface TextProps extends CommonProps {
1
+ import { Props } from '../../_utils/props';
2
+ export interface TextProps extends Props {
3
3
  text: string;
4
4
  color: string;
5
5
  fontSize: string;
6
6
  fontFamily: string;
7
7
  fontWeight: number;
8
+ textAlign: string;
9
+ overflow: string;
8
10
  }
9
11
  export declare const textProps: TextProps;
10
12
  export declare const textComponentProps: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecan-bi/datav",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "scripts": {
19
19
  "build": "gulp -f ./build/gulpfile.ts",
20
20
  "rollup": "rollup -c ./build/rollup.config.ts",
21
- "rollup:dev": "rollup -wc ./build/rollup.config.ts",
21
+ "dev": "npm run clean && npm run lint && rollup -wc ./build/rollup.config.ts",
22
22
  "lint": "eslint ./src --ext .vue,.js,.ts,.jsx,.tsx",
23
23
  "lint:fix": "eslint --fix ./src --ext .vue,.js,.ts,.jsx,.tsx",
24
24
  "clean": "rimraf ./dist",
@@ -39,28 +39,28 @@
39
39
  "@types/gulp": "^4.0.9",
40
40
  "@types/jest": "^26.0.23",
41
41
  "@types/rollup-plugin-peer-deps-external": "^2.2.1",
42
- "@typescript-eslint/eslint-plugin": "^5.4.0",
43
- "@typescript-eslint/parser": "^5.6.0",
42
+ "@typescript-eslint/eslint-plugin": "4.31.2",
43
+ "@typescript-eslint/parser": "4.31.2",
44
44
  "@vue/compiler-sfc": "^3.2.22",
45
45
  "@vue/eslint-config-standard": "^6.1.0",
46
46
  "@vue/test-utils": "^2.0.0-rc.17",
47
- "ant-design-vue": "^3.0.0-alpha.14",
47
+ "ant-design-vue": "^3.0.0-alpha.15",
48
48
  "autoprefixer": "^10.4.0",
49
49
  "babel-jest": "^26.6.3",
50
50
  "babel-plugin-import": "^1.13.3",
51
51
  "chalk": "^4.1.2",
52
52
  "cssnano": "^5.0.11",
53
+ "echarts": "^5.2.2",
53
54
  "eslint": "^7.32.0",
54
- "eslint-config-standard": "^16.0.3",
55
55
  "eslint-plugin-import": "^2.25.3",
56
56
  "eslint-plugin-node": "^11.1.0",
57
57
  "eslint-plugin-promise": "^5.1.1",
58
- "eslint-plugin-standard": "^5.0.0",
59
58
  "eslint-plugin-vue": "^7.20.0",
60
59
  "gulp": "^4.0.2",
61
60
  "gulp-typescript": "^6.0.0-alpha.1",
62
61
  "jest": "^26.6.3",
63
62
  "less": "^4.1.2",
63
+ "lodash-es": "^4.17.21",
64
64
  "npm": "^8.1.4",
65
65
  "resize-observer-polyfill": "^1.5.1",
66
66
  "rimraf": "^2.7.1",
@@ -75,16 +75,18 @@
75
75
  "rollup-plugin-vue": "^6.0.0",
76
76
  "ts-jest": "^26.5.6",
77
77
  "tslib": "^2.3.1",
78
- "typescript": "^4.3.5",
78
+ "typescript": "4.4.4",
79
79
  "unplugin-vue-components": "^0.17.2",
80
- "vue-eslint-parser": "^8.0.1",
80
+ "vue": "3.2.26",
81
81
  "vue-jest": "^5.0.0-alpha.10"
82
82
  },
83
83
  "peerDependencies": {
84
- "ant-design-vue": "^3.0.0-alpha.14",
84
+ "ant-design-vue": "^3.0.0-alpha.15",
85
+ "echarts": "^5.2.2",
85
86
  "lodash-es": "^4.17.21",
86
- "vue": "^3.2.22"
87
+ "vue": "^3.2.26"
87
88
  },
88
89
  "dependencies": {
90
+ "resize-detector": "^0.3.0"
89
91
  }
90
92
  }