nuxt-echarts 0.2.3 → 0.2.5
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/LICENSE +21 -21
- package/dist/module.json +2 -2
- package/dist/module.mjs +5 -0
- package/dist/runtime/components/VChart.d.ts +12 -12
- package/dist/runtime/components/VChartIsland.server.vue +32 -31
- package/dist/runtime/components/VChartLight.vue +12 -12
- package/dist/runtime/components/VChartLight.vue.d.ts +597 -47
- package/dist/runtime/components/VChartServer.vue +48 -48
- package/dist/runtime/utils/injection.d.ts +1 -1
- package/package.json +25 -19
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 - present, Yue JIN
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 - present, Yue JIN
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -18,6 +18,11 @@ const module = defineNuxtModule({
|
|
|
18
18
|
nuxt.options.experimental.componentIslands = true;
|
|
19
19
|
}
|
|
20
20
|
const { resolve } = createResolver(import.meta.url);
|
|
21
|
+
nuxt.options.vite.optimizeDeps ??= {};
|
|
22
|
+
nuxt.options.vite.optimizeDeps.exclude ??= [];
|
|
23
|
+
if (!nuxt.options.vite.optimizeDeps.exclude.includes("echarts")) {
|
|
24
|
+
nuxt.options.vite.optimizeDeps.exclude.push("echarts");
|
|
25
|
+
}
|
|
21
26
|
addPlugin(resolve("./runtime/plugin"));
|
|
22
27
|
addComponentsDir({
|
|
23
28
|
path: resolve("./runtime/components"),
|
|
@@ -2,7 +2,7 @@ import { type PropType } from 'vue';
|
|
|
2
2
|
import type { Option, Theme, InitOptions, UpdateOptions } from '../types.js';
|
|
3
3
|
import { type EChartsElement } from '../utils/wc.js';
|
|
4
4
|
import '#build/echarts.mjs';
|
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
loading: BooleanConstructor;
|
|
7
7
|
loadingOptions: PropType<import("../types").LoadingOptions>;
|
|
8
8
|
autoresize: PropType<boolean | {
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
updateOptions: PropType<UpdateOptions>;
|
|
18
18
|
group: StringConstructor;
|
|
19
19
|
manualUpdate: BooleanConstructor;
|
|
20
|
-
}
|
|
20
|
+
}>, {
|
|
21
21
|
getWidth: () => number;
|
|
22
22
|
getHeight: () => number;
|
|
23
23
|
getDom: () => HTMLElement;
|
|
@@ -161,14 +161,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
161
|
clear: () => void;
|
|
162
162
|
isDisposed: () => boolean;
|
|
163
163
|
dispose: () => void;
|
|
164
|
-
chart: import("vue").ShallowRef<import("echarts/core").ECharts | undefined>;
|
|
165
|
-
root: import("vue").ShallowRef<EChartsElement | undefined>;
|
|
164
|
+
chart: import("vue").ShallowRef<import("echarts/core").ECharts | undefined, import("echarts/core").ECharts | undefined>;
|
|
165
|
+
root: import("vue").ShallowRef<EChartsElement | undefined, EChartsElement | undefined>;
|
|
166
166
|
setOption: (option: Option, updateOptions?: UpdateOptions) => void;
|
|
167
167
|
realAttrs: import("vue").ComputedRef<{
|
|
168
168
|
[x: string]: any;
|
|
169
169
|
}>;
|
|
170
|
-
nativeListeners: import("vue").ShallowRef<Record<string, unknown>>;
|
|
171
|
-
},
|
|
170
|
+
nativeListeners: import("vue").ShallowRef<Record<string, unknown>, Record<string, unknown>>;
|
|
171
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
172
172
|
click: (params: import("echarts/core").ECElementEvent) => void;
|
|
173
173
|
dblclick: (params: import("echarts/core").ECElementEvent) => void;
|
|
174
174
|
mouseout: (params: import("echarts/core").ECElementEvent) => void;
|
|
@@ -244,15 +244,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
244
244
|
updateOptions: PropType<UpdateOptions>;
|
|
245
245
|
group: StringConstructor;
|
|
246
246
|
manualUpdate: BooleanConstructor;
|
|
247
|
-
}>> & {
|
|
247
|
+
}>> & Readonly<{
|
|
248
248
|
onClick?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
249
|
-
onContextmenu?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
250
249
|
onDblclick?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
251
|
-
onMousedown?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
252
|
-
onMousemove?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
253
250
|
onMouseout?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
254
251
|
onMouseover?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
255
252
|
onMouseup?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
253
|
+
onMousedown?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
254
|
+
onMousemove?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
255
|
+
onContextmenu?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
256
256
|
onGlobalout?: ((params: import("echarts/core").ECElementEvent) => any) | undefined;
|
|
257
257
|
"onZr:mousewheel"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
258
258
|
"onZr:drag"?: ((params: import("echarts/core").ElementEvent) => any) | undefined;
|
|
@@ -302,8 +302,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
302
|
elapsedTime: number;
|
|
303
303
|
}) => any) | undefined;
|
|
304
304
|
onFinished?: (() => any) | undefined;
|
|
305
|
-
}
|
|
305
|
+
}>, {
|
|
306
306
|
manualUpdate: boolean;
|
|
307
307
|
loading: boolean;
|
|
308
|
-
}, {}>;
|
|
308
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
309
309
|
export default _default;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import * as echarts from 'echarts'
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
chart.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import * as echarts from 'echarts'
|
|
3
|
+
import '#build/echarts.mjs'
|
|
4
|
+
import { ref } from 'vue'
|
|
5
|
+
import type { Option, InitOptions, Theme } from '../types'
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
option?: Option
|
|
9
|
+
initOptions?: InitOptions
|
|
10
|
+
theme?: Theme
|
|
11
|
+
}>()
|
|
12
|
+
|
|
13
|
+
const svgStr = ref('')
|
|
14
|
+
const initOptions: InitOptions = echarts.util.merge(
|
|
15
|
+
{ renderer: 'svg', ssr: true } satisfies InitOptions,
|
|
16
|
+
props.initOptions || {},
|
|
17
|
+
)
|
|
18
|
+
const chart = echarts.init(null, props.theme, initOptions)
|
|
19
|
+
chart.setOption(props.option || {})
|
|
20
|
+
svgStr.value = chart.renderToSVGString()
|
|
21
|
+
|
|
22
|
+
chart.dispose()
|
|
23
|
+
|
|
24
|
+
defineSlots<{ fallback: any }>()
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<div class="vue-echarts-container">
|
|
29
|
+
<!--eslint-disable-next-line vue/no-v-html-->
|
|
30
|
+
<div class="vue-echarts-inner" v-html="svgStr" />
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
@@ -24,8 +24,8 @@ export default defineComponent({
|
|
|
24
24
|
const attrs = useAttrs();
|
|
25
25
|
let container;
|
|
26
26
|
function hydrateChart() {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
if (root.value?.$el) {
|
|
28
|
+
container = root.value?.$el;
|
|
29
29
|
hydrate(container, {
|
|
30
30
|
on: {
|
|
31
31
|
click: attrs.onClick,
|
|
@@ -51,13 +51,13 @@ export default defineComponent({
|
|
|
51
51
|
return { root };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<template>
|
|
57
|
-
<VChartServer
|
|
58
|
-
ref="root"
|
|
59
|
-
:option="option"
|
|
60
|
-
:init-options="initOptions"
|
|
61
|
-
:theme="theme"
|
|
62
|
-
/>
|
|
63
|
-
</template>
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<template>
|
|
57
|
+
<VChartServer
|
|
58
|
+
ref="root"
|
|
59
|
+
:option="option"
|
|
60
|
+
:init-options="initOptions"
|
|
61
|
+
:theme="theme"
|
|
62
|
+
/>
|
|
63
|
+
</template>
|
|
@@ -2,62 +2,149 @@ import { type ECSSRClientEventParams, type ECSSREvent } from 'echarts/ssr/client
|
|
|
2
2
|
import type { InitOptions, Option, Theme } from '../types.js';
|
|
3
3
|
import { nextTick, type PropType } from 'vue';
|
|
4
4
|
type ECSSRHandler = (params: ECSSRClientEventParams) => string | undefined;
|
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
option: PropType<Option>;
|
|
7
7
|
theme: {
|
|
8
8
|
type: PropType<Theme>;
|
|
9
9
|
};
|
|
10
10
|
initOptions: PropType<InitOptions>;
|
|
11
|
-
}
|
|
11
|
+
}>, {
|
|
12
12
|
root: import("vue").Ref<({
|
|
13
13
|
$: import("vue").ComponentInternalInstance;
|
|
14
14
|
$data: {};
|
|
15
|
-
$props:
|
|
15
|
+
$props: {
|
|
16
16
|
readonly option?: Option | undefined;
|
|
17
|
-
readonly initOptions?: InitOptions | undefined;
|
|
18
17
|
readonly theme?: Theme | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type: PropType<import("echarts/core").EChartsCoreOption>;
|
|
23
|
-
};
|
|
24
|
-
theme: {
|
|
25
|
-
type: PropType<Theme>;
|
|
26
|
-
};
|
|
27
|
-
initOptions: {
|
|
28
|
-
type: PropType<import("echarts/core").EChartsInitOpts>;
|
|
29
|
-
};
|
|
30
|
-
}>> & {
|
|
31
|
-
onError?: ((error: unknown) => any) | undefined;
|
|
32
|
-
}, never>;
|
|
18
|
+
readonly initOptions?: InitOptions | undefined;
|
|
19
|
+
readonly onError?: ((error: unknown) => any) | undefined;
|
|
20
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
33
21
|
$attrs: {
|
|
34
22
|
[x: string]: unknown;
|
|
35
23
|
};
|
|
36
24
|
$refs: {
|
|
37
25
|
[x: string]: unknown;
|
|
26
|
+
} & {
|
|
27
|
+
root: ({
|
|
28
|
+
$: import("vue").ComponentInternalInstance;
|
|
29
|
+
$data: {};
|
|
30
|
+
$props: {
|
|
31
|
+
readonly option?: Option | undefined;
|
|
32
|
+
readonly initOptions?: InitOptions | undefined;
|
|
33
|
+
readonly theme?: Theme | undefined;
|
|
34
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
35
|
+
$attrs: {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
$refs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
$slots: Readonly<{
|
|
42
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
45
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
46
|
+
$host: Element | null;
|
|
47
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
48
|
+
$el: HTMLDivElement;
|
|
49
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
50
|
+
option?: Option;
|
|
51
|
+
initOptions?: InitOptions;
|
|
52
|
+
theme?: Theme;
|
|
53
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
54
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
55
|
+
created?: (() => void) | (() => void)[];
|
|
56
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
57
|
+
mounted?: (() => void) | (() => void)[];
|
|
58
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
59
|
+
updated?: (() => void) | (() => void)[];
|
|
60
|
+
activated?: (() => void) | (() => void)[];
|
|
61
|
+
deactivated?: (() => void) | (() => void)[];
|
|
62
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
63
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
64
|
+
destroyed?: (() => void) | (() => void)[];
|
|
65
|
+
unmounted?: (() => void) | (() => void)[];
|
|
66
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
67
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
68
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
69
|
+
};
|
|
70
|
+
$forceUpdate: () => void;
|
|
71
|
+
$nextTick: typeof nextTick;
|
|
72
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
73
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
74
|
+
option?: Option;
|
|
75
|
+
initOptions?: InitOptions;
|
|
76
|
+
theme?: Theme;
|
|
77
|
+
}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
78
|
+
$slots: {
|
|
79
|
+
fallback: any;
|
|
80
|
+
};
|
|
81
|
+
} & {
|
|
82
|
+
$: import("vue").ComponentInternalInstance;
|
|
83
|
+
$data: {};
|
|
84
|
+
$props: Partial<{}> & Omit<{}, never>;
|
|
85
|
+
$attrs: {
|
|
86
|
+
[x: string]: unknown;
|
|
87
|
+
};
|
|
88
|
+
$refs: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
$slots: Readonly<{
|
|
92
|
+
fallback: import("vue").Slot<{
|
|
93
|
+
error: unknown;
|
|
94
|
+
}>;
|
|
95
|
+
}>;
|
|
96
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
97
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
98
|
+
$host: Element | null;
|
|
99
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
100
|
+
$el: any;
|
|
101
|
+
$options: import("vue").ComponentOptionsBase<{}, {
|
|
102
|
+
refresh: () => Promise<void>;
|
|
103
|
+
}, {}, {}, {}, {}, {}, {}, string, {}, {}, string, import("vue").SlotsType<{
|
|
104
|
+
fallback: {
|
|
105
|
+
error: unknown;
|
|
106
|
+
};
|
|
107
|
+
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
108
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
109
|
+
created?: (() => void) | (() => void)[];
|
|
110
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
111
|
+
mounted?: (() => void) | (() => void)[];
|
|
112
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
113
|
+
updated?: (() => void) | (() => void)[];
|
|
114
|
+
activated?: (() => void) | (() => void)[];
|
|
115
|
+
deactivated?: (() => void) | (() => void)[];
|
|
116
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
117
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
118
|
+
destroyed?: (() => void) | (() => void)[];
|
|
119
|
+
unmounted?: (() => void) | (() => void)[];
|
|
120
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
121
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
122
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
123
|
+
};
|
|
124
|
+
$forceUpdate: () => void;
|
|
125
|
+
$nextTick: typeof nextTick;
|
|
126
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
127
|
+
} & Readonly<{}> & Omit<{}, "refresh"> & import("vue").ShallowUnwrapRef<{
|
|
128
|
+
refresh: () => Promise<void>;
|
|
129
|
+
}>) | null;
|
|
38
130
|
};
|
|
39
131
|
$slots: Readonly<{
|
|
40
132
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
41
133
|
}>;
|
|
42
134
|
$root: import("vue").ComponentPublicInstance | null;
|
|
43
135
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
136
|
+
$host: Element | null;
|
|
44
137
|
$emit: (event: "error", error: unknown) => void;
|
|
45
|
-
$el:
|
|
46
|
-
$options: import("vue").ComponentOptionsBase<Readonly<
|
|
47
|
-
option
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
type: PropType<Theme>;
|
|
52
|
-
};
|
|
53
|
-
initOptions: {
|
|
54
|
-
type: PropType<import("echarts/core").EChartsInitOpts>;
|
|
55
|
-
};
|
|
56
|
-
}>> & {
|
|
138
|
+
$el: HTMLDivElement;
|
|
139
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
140
|
+
option?: Option;
|
|
141
|
+
theme?: Theme;
|
|
142
|
+
initOptions?: InitOptions;
|
|
143
|
+
}> & Readonly<{
|
|
57
144
|
onError?: ((error: unknown) => any) | undefined;
|
|
58
|
-
}
|
|
59
|
-
error: (error: unknown) =>
|
|
60
|
-
}, string, {}, {}, string, {}> & {
|
|
145
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
146
|
+
error: (error: unknown) => any;
|
|
147
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
61
148
|
beforeCreate?: (() => void) | (() => void)[];
|
|
62
149
|
created?: (() => void) | (() => void)[];
|
|
63
150
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -76,33 +163,496 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
163
|
};
|
|
77
164
|
$forceUpdate: () => void;
|
|
78
165
|
$nextTick: typeof nextTick;
|
|
79
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (
|
|
80
|
-
} & Omit<Readonly<
|
|
81
|
-
option
|
|
82
|
-
|
|
166
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
167
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
168
|
+
option?: Option;
|
|
169
|
+
theme?: Theme;
|
|
170
|
+
initOptions?: InitOptions;
|
|
171
|
+
}> & Readonly<{
|
|
172
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
173
|
+
}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
174
|
+
$slots: {
|
|
175
|
+
fallback?: ((props: {}) => any) | undefined;
|
|
83
176
|
};
|
|
84
|
-
|
|
85
|
-
|
|
177
|
+
}) | null, ({
|
|
178
|
+
$: import("vue").ComponentInternalInstance;
|
|
179
|
+
$data: {};
|
|
180
|
+
$props: {
|
|
181
|
+
readonly option?: Option | undefined;
|
|
182
|
+
readonly theme?: Theme | undefined;
|
|
183
|
+
readonly initOptions?: InitOptions | undefined;
|
|
184
|
+
readonly onError?: ((error: unknown) => any) | undefined;
|
|
185
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
186
|
+
$attrs: {
|
|
187
|
+
[x: string]: unknown;
|
|
86
188
|
};
|
|
87
|
-
|
|
88
|
-
|
|
189
|
+
$refs: {
|
|
190
|
+
[x: string]: unknown;
|
|
191
|
+
} & {
|
|
192
|
+
root: ({
|
|
193
|
+
$: import("vue").ComponentInternalInstance;
|
|
194
|
+
$data: {};
|
|
195
|
+
$props: {
|
|
196
|
+
readonly option?: Option | undefined;
|
|
197
|
+
readonly initOptions?: InitOptions | undefined;
|
|
198
|
+
readonly theme?: Theme | undefined;
|
|
199
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
200
|
+
$attrs: {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
};
|
|
203
|
+
$refs: {
|
|
204
|
+
[x: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
$slots: Readonly<{
|
|
207
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
210
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
211
|
+
$host: Element | null;
|
|
212
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
213
|
+
$el: HTMLDivElement;
|
|
214
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
215
|
+
option?: Option;
|
|
216
|
+
initOptions?: InitOptions;
|
|
217
|
+
theme?: Theme;
|
|
218
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
219
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
220
|
+
created?: (() => void) | (() => void)[];
|
|
221
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
222
|
+
mounted?: (() => void) | (() => void)[];
|
|
223
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
224
|
+
updated?: (() => void) | (() => void)[];
|
|
225
|
+
activated?: (() => void) | (() => void)[];
|
|
226
|
+
deactivated?: (() => void) | (() => void)[];
|
|
227
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
228
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
229
|
+
destroyed?: (() => void) | (() => void)[];
|
|
230
|
+
unmounted?: (() => void) | (() => void)[];
|
|
231
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
232
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
233
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
234
|
+
};
|
|
235
|
+
$forceUpdate: () => void;
|
|
236
|
+
$nextTick: typeof nextTick;
|
|
237
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
238
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
239
|
+
option?: Option;
|
|
240
|
+
initOptions?: InitOptions;
|
|
241
|
+
theme?: Theme;
|
|
242
|
+
}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
243
|
+
$slots: {
|
|
244
|
+
fallback: any;
|
|
245
|
+
};
|
|
246
|
+
} & {
|
|
247
|
+
$: import("vue").ComponentInternalInstance;
|
|
248
|
+
$data: {};
|
|
249
|
+
$props: Partial<{}> & Omit<{}, never>;
|
|
250
|
+
$attrs: {
|
|
251
|
+
[x: string]: unknown;
|
|
252
|
+
};
|
|
253
|
+
$refs: {
|
|
254
|
+
[x: string]: unknown;
|
|
255
|
+
};
|
|
256
|
+
$slots: Readonly<{
|
|
257
|
+
fallback: import("vue").Slot<{
|
|
258
|
+
error: unknown;
|
|
259
|
+
}>;
|
|
260
|
+
}>;
|
|
261
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
262
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
263
|
+
$host: Element | null;
|
|
264
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
265
|
+
$el: any;
|
|
266
|
+
$options: import("vue").ComponentOptionsBase<{}, {
|
|
267
|
+
refresh: () => Promise<void>;
|
|
268
|
+
}, {}, {}, {}, {}, {}, {}, string, {}, {}, string, import("vue").SlotsType<{
|
|
269
|
+
fallback: {
|
|
270
|
+
error: unknown;
|
|
271
|
+
};
|
|
272
|
+
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
273
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
274
|
+
created?: (() => void) | (() => void)[];
|
|
275
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
276
|
+
mounted?: (() => void) | (() => void)[];
|
|
277
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
278
|
+
updated?: (() => void) | (() => void)[];
|
|
279
|
+
activated?: (() => void) | (() => void)[];
|
|
280
|
+
deactivated?: (() => void) | (() => void)[];
|
|
281
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
282
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
283
|
+
destroyed?: (() => void) | (() => void)[];
|
|
284
|
+
unmounted?: (() => void) | (() => void)[];
|
|
285
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
286
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
287
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
288
|
+
};
|
|
289
|
+
$forceUpdate: () => void;
|
|
290
|
+
$nextTick: typeof nextTick;
|
|
291
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
292
|
+
} & Readonly<{}> & Omit<{}, "refresh"> & import("vue").ShallowUnwrapRef<{
|
|
293
|
+
refresh: () => Promise<void>;
|
|
294
|
+
}>) | null;
|
|
89
295
|
};
|
|
90
|
-
|
|
296
|
+
$slots: Readonly<{
|
|
297
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
300
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
301
|
+
$host: Element | null;
|
|
302
|
+
$emit: (event: "error", error: unknown) => void;
|
|
303
|
+
$el: HTMLDivElement;
|
|
304
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
305
|
+
option?: Option;
|
|
306
|
+
theme?: Theme;
|
|
307
|
+
initOptions?: InitOptions;
|
|
308
|
+
}> & Readonly<{
|
|
309
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
310
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
311
|
+
error: (error: unknown) => any;
|
|
312
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
313
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
314
|
+
created?: (() => void) | (() => void)[];
|
|
315
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
316
|
+
mounted?: (() => void) | (() => void)[];
|
|
317
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
318
|
+
updated?: (() => void) | (() => void)[];
|
|
319
|
+
activated?: (() => void) | (() => void)[];
|
|
320
|
+
deactivated?: (() => void) | (() => void)[];
|
|
321
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
322
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
323
|
+
destroyed?: (() => void) | (() => void)[];
|
|
324
|
+
unmounted?: (() => void) | (() => void)[];
|
|
325
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
326
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
327
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
328
|
+
};
|
|
329
|
+
$forceUpdate: () => void;
|
|
330
|
+
$nextTick: typeof nextTick;
|
|
331
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
332
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
333
|
+
option?: Option;
|
|
334
|
+
theme?: Theme;
|
|
335
|
+
initOptions?: InitOptions;
|
|
336
|
+
}> & Readonly<{
|
|
91
337
|
onError?: ((error: unknown) => any) | undefined;
|
|
92
|
-
}
|
|
338
|
+
}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
93
339
|
$slots: {
|
|
94
|
-
fallback
|
|
340
|
+
fallback?: ((props: {}) => any) | undefined;
|
|
95
341
|
};
|
|
96
342
|
}) | null>;
|
|
97
|
-
},
|
|
343
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<ECSSREvent, ECSSRHandler>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
344
|
option: PropType<Option>;
|
|
99
345
|
theme: {
|
|
100
346
|
type: PropType<Theme>;
|
|
101
347
|
};
|
|
102
348
|
initOptions: PropType<InitOptions>;
|
|
103
|
-
}>> & {
|
|
349
|
+
}>> & Readonly<{
|
|
104
350
|
onClick?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
105
351
|
onMouseout?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
106
352
|
onMouseover?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
107
|
-
}, {}, {}>;
|
|
353
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
108
354
|
export default _default;
|
|
355
|
+
declare global {
|
|
356
|
+
const __VLS_intrinsicElements: __VLS_IntrinsicElements;
|
|
357
|
+
const __VLS_directiveBindingRestFields: {
|
|
358
|
+
instance: null;
|
|
359
|
+
oldValue: null;
|
|
360
|
+
modifiers: any;
|
|
361
|
+
dir: any;
|
|
362
|
+
};
|
|
363
|
+
const __VLS_unref: typeof import('vue').unref;
|
|
364
|
+
const __VLS_placeholder: any;
|
|
365
|
+
const __VLS_nativeElements: {
|
|
366
|
+
a: HTMLAnchorElement;
|
|
367
|
+
abbr: HTMLElement;
|
|
368
|
+
address: HTMLElement;
|
|
369
|
+
area: HTMLAreaElement;
|
|
370
|
+
article: HTMLElement;
|
|
371
|
+
aside: HTMLElement;
|
|
372
|
+
audio: HTMLAudioElement;
|
|
373
|
+
b: HTMLElement;
|
|
374
|
+
base: HTMLBaseElement;
|
|
375
|
+
bdi: HTMLElement;
|
|
376
|
+
bdo: HTMLElement;
|
|
377
|
+
blockquote: HTMLQuoteElement;
|
|
378
|
+
body: HTMLBodyElement;
|
|
379
|
+
br: HTMLBRElement;
|
|
380
|
+
button: HTMLButtonElement;
|
|
381
|
+
canvas: HTMLCanvasElement;
|
|
382
|
+
caption: HTMLTableCaptionElement;
|
|
383
|
+
cite: HTMLElement;
|
|
384
|
+
code: HTMLElement;
|
|
385
|
+
col: HTMLTableColElement;
|
|
386
|
+
colgroup: HTMLTableColElement;
|
|
387
|
+
data: HTMLDataElement;
|
|
388
|
+
datalist: HTMLDataListElement;
|
|
389
|
+
dd: HTMLElement;
|
|
390
|
+
del: HTMLModElement;
|
|
391
|
+
details: HTMLDetailsElement;
|
|
392
|
+
dfn: HTMLElement;
|
|
393
|
+
dialog: HTMLDialogElement;
|
|
394
|
+
div: HTMLDivElement;
|
|
395
|
+
dl: HTMLDListElement;
|
|
396
|
+
dt: HTMLElement;
|
|
397
|
+
em: HTMLElement;
|
|
398
|
+
embed: HTMLEmbedElement;
|
|
399
|
+
fieldset: HTMLFieldSetElement;
|
|
400
|
+
figcaption: HTMLElement;
|
|
401
|
+
figure: HTMLElement;
|
|
402
|
+
footer: HTMLElement;
|
|
403
|
+
form: HTMLFormElement;
|
|
404
|
+
h1: HTMLHeadingElement;
|
|
405
|
+
h2: HTMLHeadingElement;
|
|
406
|
+
h3: HTMLHeadingElement;
|
|
407
|
+
h4: HTMLHeadingElement;
|
|
408
|
+
h5: HTMLHeadingElement;
|
|
409
|
+
h6: HTMLHeadingElement;
|
|
410
|
+
head: HTMLHeadElement;
|
|
411
|
+
header: HTMLElement;
|
|
412
|
+
hgroup: HTMLElement;
|
|
413
|
+
hr: HTMLHRElement;
|
|
414
|
+
html: HTMLHtmlElement;
|
|
415
|
+
i: HTMLElement;
|
|
416
|
+
iframe: HTMLIFrameElement;
|
|
417
|
+
img: HTMLImageElement;
|
|
418
|
+
input: HTMLInputElement;
|
|
419
|
+
ins: HTMLModElement;
|
|
420
|
+
kbd: HTMLElement;
|
|
421
|
+
label: HTMLLabelElement;
|
|
422
|
+
legend: HTMLLegendElement;
|
|
423
|
+
li: HTMLLIElement;
|
|
424
|
+
link: HTMLLinkElement;
|
|
425
|
+
main: HTMLElement;
|
|
426
|
+
map: HTMLMapElement;
|
|
427
|
+
mark: HTMLElement;
|
|
428
|
+
menu: HTMLMenuElement;
|
|
429
|
+
meta: HTMLMetaElement;
|
|
430
|
+
meter: HTMLMeterElement;
|
|
431
|
+
nav: HTMLElement;
|
|
432
|
+
noscript: HTMLElement;
|
|
433
|
+
object: HTMLObjectElement;
|
|
434
|
+
ol: HTMLOListElement;
|
|
435
|
+
optgroup: HTMLOptGroupElement;
|
|
436
|
+
option: HTMLOptionElement;
|
|
437
|
+
output: HTMLOutputElement;
|
|
438
|
+
p: HTMLParagraphElement;
|
|
439
|
+
picture: HTMLPictureElement;
|
|
440
|
+
pre: HTMLPreElement;
|
|
441
|
+
progress: HTMLProgressElement;
|
|
442
|
+
q: HTMLQuoteElement;
|
|
443
|
+
rp: HTMLElement;
|
|
444
|
+
rt: HTMLElement;
|
|
445
|
+
ruby: HTMLElement;
|
|
446
|
+
s: HTMLElement;
|
|
447
|
+
samp: HTMLElement;
|
|
448
|
+
script: HTMLScriptElement;
|
|
449
|
+
search: HTMLElement;
|
|
450
|
+
section: HTMLElement;
|
|
451
|
+
select: HTMLSelectElement;
|
|
452
|
+
slot: HTMLSlotElement;
|
|
453
|
+
small: HTMLElement;
|
|
454
|
+
source: HTMLSourceElement;
|
|
455
|
+
span: HTMLSpanElement;
|
|
456
|
+
strong: HTMLElement;
|
|
457
|
+
style: HTMLStyleElement;
|
|
458
|
+
sub: HTMLElement;
|
|
459
|
+
summary: HTMLElement;
|
|
460
|
+
sup: HTMLElement;
|
|
461
|
+
table: HTMLTableElement;
|
|
462
|
+
tbody: HTMLTableSectionElement;
|
|
463
|
+
td: HTMLTableCellElement;
|
|
464
|
+
template: HTMLTemplateElement;
|
|
465
|
+
textarea: HTMLTextAreaElement;
|
|
466
|
+
tfoot: HTMLTableSectionElement;
|
|
467
|
+
th: HTMLTableCellElement;
|
|
468
|
+
thead: HTMLTableSectionElement;
|
|
469
|
+
time: HTMLTimeElement;
|
|
470
|
+
title: HTMLTitleElement;
|
|
471
|
+
tr: HTMLTableRowElement;
|
|
472
|
+
track: HTMLTrackElement;
|
|
473
|
+
u: HTMLElement;
|
|
474
|
+
ul: HTMLUListElement;
|
|
475
|
+
var: HTMLElement;
|
|
476
|
+
video: HTMLVideoElement;
|
|
477
|
+
wbr: HTMLElement;
|
|
478
|
+
animate: SVGAnimateElement;
|
|
479
|
+
animateMotion: SVGAnimateMotionElement;
|
|
480
|
+
animateTransform: SVGAnimateTransformElement;
|
|
481
|
+
circle: SVGCircleElement;
|
|
482
|
+
clipPath: SVGClipPathElement;
|
|
483
|
+
defs: SVGDefsElement;
|
|
484
|
+
desc: SVGDescElement;
|
|
485
|
+
ellipse: SVGEllipseElement;
|
|
486
|
+
feBlend: SVGFEBlendElement;
|
|
487
|
+
feColorMatrix: SVGFEColorMatrixElement;
|
|
488
|
+
feComponentTransfer: SVGFEComponentTransferElement;
|
|
489
|
+
feComposite: SVGFECompositeElement;
|
|
490
|
+
feConvolveMatrix: SVGFEConvolveMatrixElement;
|
|
491
|
+
feDiffuseLighting: SVGFEDiffuseLightingElement;
|
|
492
|
+
feDisplacementMap: SVGFEDisplacementMapElement;
|
|
493
|
+
feDistantLight: SVGFEDistantLightElement;
|
|
494
|
+
feDropShadow: SVGFEDropShadowElement;
|
|
495
|
+
feFlood: SVGFEFloodElement;
|
|
496
|
+
feFuncA: SVGFEFuncAElement;
|
|
497
|
+
feFuncB: SVGFEFuncBElement;
|
|
498
|
+
feFuncG: SVGFEFuncGElement;
|
|
499
|
+
feFuncR: SVGFEFuncRElement;
|
|
500
|
+
feGaussianBlur: SVGFEGaussianBlurElement;
|
|
501
|
+
feImage: SVGFEImageElement;
|
|
502
|
+
feMerge: SVGFEMergeElement;
|
|
503
|
+
feMergeNode: SVGFEMergeNodeElement;
|
|
504
|
+
feMorphology: SVGFEMorphologyElement;
|
|
505
|
+
feOffset: SVGFEOffsetElement;
|
|
506
|
+
fePointLight: SVGFEPointLightElement;
|
|
507
|
+
feSpecularLighting: SVGFESpecularLightingElement;
|
|
508
|
+
feSpotLight: SVGFESpotLightElement;
|
|
509
|
+
feTile: SVGFETileElement;
|
|
510
|
+
feTurbulence: SVGFETurbulenceElement;
|
|
511
|
+
filter: SVGFilterElement;
|
|
512
|
+
foreignObject: SVGForeignObjectElement;
|
|
513
|
+
g: SVGGElement;
|
|
514
|
+
image: SVGImageElement;
|
|
515
|
+
line: SVGLineElement;
|
|
516
|
+
linearGradient: SVGLinearGradientElement;
|
|
517
|
+
marker: SVGMarkerElement;
|
|
518
|
+
mask: SVGMaskElement;
|
|
519
|
+
metadata: SVGMetadataElement;
|
|
520
|
+
mpath: SVGMPathElement;
|
|
521
|
+
path: SVGPathElement;
|
|
522
|
+
pattern: SVGPatternElement;
|
|
523
|
+
polygon: SVGPolygonElement;
|
|
524
|
+
polyline: SVGPolylineElement;
|
|
525
|
+
radialGradient: SVGRadialGradientElement;
|
|
526
|
+
rect: SVGRectElement;
|
|
527
|
+
set: SVGSetElement;
|
|
528
|
+
stop: SVGStopElement;
|
|
529
|
+
svg: SVGSVGElement;
|
|
530
|
+
switch: SVGSwitchElement;
|
|
531
|
+
symbol: SVGSymbolElement;
|
|
532
|
+
text: SVGTextElement;
|
|
533
|
+
textPath: SVGTextPathElement;
|
|
534
|
+
tspan: SVGTSpanElement;
|
|
535
|
+
use: SVGUseElement;
|
|
536
|
+
view: SVGViewElement;
|
|
537
|
+
};
|
|
538
|
+
type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements;
|
|
539
|
+
type __VLS_Element = import('vue/jsx-runtime').JSX.Element;
|
|
540
|
+
type __VLS_GlobalComponents = import('vue').GlobalComponents;
|
|
541
|
+
type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
|
|
542
|
+
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
|
|
543
|
+
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
|
|
544
|
+
type __VLS_unknownDirective = (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
|
|
545
|
+
type __VLS_WithComponent<N0 extends string, LocalComponents, Self, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
546
|
+
[K in N0]: LocalComponents[N1];
|
|
547
|
+
} : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
548
|
+
[K in N0]: LocalComponents[N2];
|
|
549
|
+
} : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
550
|
+
[K in N0]: LocalComponents[N3];
|
|
551
|
+
} : Self extends object ? {
|
|
552
|
+
[K in N0]: Self;
|
|
553
|
+
} : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
554
|
+
[K in N0]: __VLS_GlobalComponents[N1];
|
|
555
|
+
} : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
556
|
+
[K in N0]: __VLS_GlobalComponents[N2];
|
|
557
|
+
} : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
558
|
+
[K in N0]: __VLS_GlobalComponents[N3];
|
|
559
|
+
} : {
|
|
560
|
+
[K in N0]: unknown;
|
|
561
|
+
};
|
|
562
|
+
type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
563
|
+
__ctx?: {
|
|
564
|
+
props?: infer P;
|
|
565
|
+
};
|
|
566
|
+
} ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
|
|
567
|
+
type __VLS_IsFunction<T, K> = K extends keyof T ? __VLS_IsAny<T[K]> extends false ? unknown extends T[K] ? false : true : false : false;
|
|
568
|
+
type __VLS_NormalizeComponentEvent<Props, Events, onEvent extends keyof Props, Event extends keyof Events, CamelizedEvent extends keyof Events> = (__VLS_IsFunction<Props, onEvent> extends true ? Props : __VLS_IsFunction<Events, Event> extends true ? {
|
|
569
|
+
[K in onEvent]?: Events[Event];
|
|
570
|
+
} : __VLS_IsFunction<Events, CamelizedEvent> extends true ? {
|
|
571
|
+
[K in onEvent]?: Events[CamelizedEvent];
|
|
572
|
+
} : Props) & Record<string, unknown>;
|
|
573
|
+
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
|
|
574
|
+
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
|
|
575
|
+
type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
|
|
576
|
+
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
|
|
577
|
+
[K in E & string]: (...args: A) => void;
|
|
578
|
+
} : never : never;
|
|
579
|
+
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
|
|
580
|
+
[K in keyof T]: T[K] extends any[] ? {
|
|
581
|
+
(...args: T[K]): void;
|
|
582
|
+
} : never;
|
|
583
|
+
}>>;
|
|
584
|
+
type __VLS_PrettifyGlobal<T> = {
|
|
585
|
+
[K in keyof T]: T[K];
|
|
586
|
+
} & {};
|
|
587
|
+
type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
588
|
+
__ctx?: infer Ctx;
|
|
589
|
+
} ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
|
|
590
|
+
type __VLS_OmitStringIndex<T> = {
|
|
591
|
+
[K in keyof T as string extends K ? never : K]: T[K];
|
|
592
|
+
};
|
|
593
|
+
type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
|
|
594
|
+
function __VLS_getVForSourceType(source: number): [number, number][];
|
|
595
|
+
function __VLS_getVForSourceType(source: string): [string, number][];
|
|
596
|
+
function __VLS_getVForSourceType<T extends any[]>(source: T): [
|
|
597
|
+
item: T[number],
|
|
598
|
+
index: number
|
|
599
|
+
][];
|
|
600
|
+
function __VLS_getVForSourceType<T extends {
|
|
601
|
+
[Symbol.iterator](): Iterator<any>;
|
|
602
|
+
}>(source: T): [
|
|
603
|
+
item: T extends {
|
|
604
|
+
[Symbol.iterator](): Iterator<infer T1>;
|
|
605
|
+
} ? T1 : never,
|
|
606
|
+
index: number
|
|
607
|
+
][];
|
|
608
|
+
function __VLS_getVForSourceType<T extends number | {
|
|
609
|
+
[Symbol.iterator](): Iterator<any>;
|
|
610
|
+
}>(source: T): [
|
|
611
|
+
item: number | (Exclude<T, number> extends {
|
|
612
|
+
[Symbol.iterator](): Iterator<infer T1>;
|
|
613
|
+
} ? T1 : never),
|
|
614
|
+
index: number
|
|
615
|
+
][];
|
|
616
|
+
function __VLS_getVForSourceType<T>(source: T): [
|
|
617
|
+
item: T[keyof T],
|
|
618
|
+
key: keyof T,
|
|
619
|
+
index: number
|
|
620
|
+
][];
|
|
621
|
+
function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
|
|
622
|
+
function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
|
|
623
|
+
function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective ? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> : T extends (...args: any) => any ? T : __VLS_unknownDirective;
|
|
624
|
+
function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
|
|
625
|
+
function __VLS_makeOptional<T>(t: T): {
|
|
626
|
+
[K in keyof T]?: T[K];
|
|
627
|
+
};
|
|
628
|
+
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
|
|
629
|
+
$props: infer Props;
|
|
630
|
+
} ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
|
|
631
|
+
__ctx?: {
|
|
632
|
+
attrs?: any;
|
|
633
|
+
slots?: K extends {
|
|
634
|
+
$slots: infer Slots;
|
|
635
|
+
} ? Slots : any;
|
|
636
|
+
emit?: K extends {
|
|
637
|
+
$emit: infer Emit;
|
|
638
|
+
} ? Emit : any;
|
|
639
|
+
} & {
|
|
640
|
+
props?: (K extends {
|
|
641
|
+
$props: infer Props;
|
|
642
|
+
} ? Props : any) & Record<string, unknown>;
|
|
643
|
+
expose?(exposed: K): void;
|
|
644
|
+
};
|
|
645
|
+
} : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
|
|
646
|
+
__ctx?: {
|
|
647
|
+
attrs?: any;
|
|
648
|
+
expose?: any;
|
|
649
|
+
slots?: any;
|
|
650
|
+
emit?: any;
|
|
651
|
+
props?: {} & Record<string, unknown>;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
function __VLS_asFunctionalElement<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
|
|
655
|
+
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
|
|
656
|
+
function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
|
|
657
|
+
function __VLS_tryAsConstant<const T>(t: T): T;
|
|
658
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, unref, inject, ref } from 'vue'
|
|
3
|
-
import type { InitOptions, Option, Theme } from '../types'
|
|
4
|
-
import { THEME_KEY, INIT_OPTIONS_KEY } from '../utils/injection'
|
|
5
|
-
import type { VChartIsland } from '#components'
|
|
6
|
-
|
|
7
|
-
const defaultTheme = inject(THEME_KEY, null)
|
|
8
|
-
const defaultInitOptions = inject(INIT_OPTIONS_KEY, null)
|
|
9
|
-
|
|
10
|
-
const props = defineProps<{
|
|
11
|
-
option?: Option
|
|
12
|
-
theme?: Theme
|
|
13
|
-
initOptions?: InitOptions
|
|
14
|
-
}>()
|
|
15
|
-
const emits = defineEmits<{ (event: 'error', error: unknown): void }>()
|
|
16
|
-
|
|
17
|
-
const realTheme = computed(() => props.theme || unref(defaultTheme) || {})
|
|
18
|
-
const realInitOptions = computed(
|
|
19
|
-
() => props.initOptions || unref(defaultInitOptions) || {},
|
|
20
|
-
)
|
|
21
|
-
function onError(e: unknown) {
|
|
22
|
-
// https://github.com/nuxt/nuxt/issues/27491
|
|
23
|
-
if (
|
|
24
|
-
e instanceof TypeError &&
|
|
25
|
-
e.message === "Cannot read properties of undefined (reading 'link')"
|
|
26
|
-
) {
|
|
27
|
-
root.value?.refresh()
|
|
28
|
-
}
|
|
29
|
-
emits('error', e)
|
|
30
|
-
}
|
|
31
|
-
const root = ref<InstanceType<typeof VChartIsland> | null>(null)
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<template>
|
|
35
|
-
<div class="vue-echarts-server">
|
|
36
|
-
<VChartIsland
|
|
37
|
-
ref="root"
|
|
38
|
-
:theme="realTheme"
|
|
39
|
-
:option="option"
|
|
40
|
-
:init-options="realInitOptions"
|
|
41
|
-
@error="onError"
|
|
42
|
-
>
|
|
43
|
-
<template #fallback>
|
|
44
|
-
<slot name="fallback" />
|
|
45
|
-
</template>
|
|
46
|
-
</VChartIsland>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, unref, inject, ref } from 'vue'
|
|
3
|
+
import type { InitOptions, Option, Theme } from '../types'
|
|
4
|
+
import { THEME_KEY, INIT_OPTIONS_KEY } from '../utils/injection'
|
|
5
|
+
import type { VChartIsland } from '#components'
|
|
6
|
+
|
|
7
|
+
const defaultTheme = inject(THEME_KEY, null)
|
|
8
|
+
const defaultInitOptions = inject(INIT_OPTIONS_KEY, null)
|
|
9
|
+
|
|
10
|
+
const props = defineProps<{
|
|
11
|
+
option?: Option
|
|
12
|
+
theme?: Theme
|
|
13
|
+
initOptions?: InitOptions
|
|
14
|
+
}>()
|
|
15
|
+
const emits = defineEmits<{ (event: 'error', error: unknown): void }>()
|
|
16
|
+
|
|
17
|
+
const realTheme = computed(() => props.theme || unref(defaultTheme) || {})
|
|
18
|
+
const realInitOptions = computed(
|
|
19
|
+
() => props.initOptions || unref(defaultInitOptions) || {},
|
|
20
|
+
)
|
|
21
|
+
function onError(e: unknown) {
|
|
22
|
+
// https://github.com/nuxt/nuxt/issues/27491
|
|
23
|
+
if (
|
|
24
|
+
e instanceof TypeError &&
|
|
25
|
+
e.message === "Cannot read properties of undefined (reading 'link')"
|
|
26
|
+
) {
|
|
27
|
+
root.value?.refresh()
|
|
28
|
+
}
|
|
29
|
+
emits('error', e)
|
|
30
|
+
}
|
|
31
|
+
const root = ref<InstanceType<typeof VChartIsland> | null>(null)
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div class="vue-echarts-server">
|
|
36
|
+
<VChartIsland
|
|
37
|
+
ref="root"
|
|
38
|
+
:theme="realTheme"
|
|
39
|
+
:option="option"
|
|
40
|
+
:init-options="realInitOptions"
|
|
41
|
+
@error="onError"
|
|
42
|
+
>
|
|
43
|
+
<template #fallback>
|
|
44
|
+
<slot name="fallback" />
|
|
45
|
+
</template>
|
|
46
|
+
</VChartIsland>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
@@ -3,4 +3,4 @@ import type { ThemeInjection, InitOptionsInjection, UpdateOptionsInjection } fro
|
|
|
3
3
|
export declare const THEME_KEY: InjectionKey<ThemeInjection>;
|
|
4
4
|
export declare const INIT_OPTIONS_KEY: InjectionKey<InitOptionsInjection>;
|
|
5
5
|
export declare const UPDATE_OPTIONS_KEY: InjectionKey<UpdateOptionsInjection>;
|
|
6
|
-
export { LOADING_OPTIONS_KEY } from '../composables.js';
|
|
6
|
+
export { LOADING_OPTIONS_KEY } from '../composables/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-echarts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Nuxt Module for Apache ECharts™",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"repository": "kingyue737/nuxt-echarts",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"type": "module",
|
|
17
|
-
"packageManager": "pnpm@
|
|
17
|
+
"packageManager": "pnpm@10.4.1",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./dist/types.d.ts",
|
|
@@ -45,29 +45,35 @@
|
|
|
45
45
|
"test:types": "vue-tsc --noEmit && nuxi typecheck playground"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@nuxt/kit": "^3.
|
|
49
|
-
"echarts": "^5.
|
|
48
|
+
"@nuxt/kit": "^3.15.4",
|
|
49
|
+
"echarts": "^5.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@nuxt/
|
|
53
|
-
"@nuxt/
|
|
54
|
-
"@nuxt/
|
|
55
|
-
"@nuxt/
|
|
56
|
-
"@
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"prettier": "^
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"vue-tsc": "^2.0.29"
|
|
52
|
+
"@nuxt/eslint-config": "^1.1.0",
|
|
53
|
+
"@nuxt/module-builder": "^0.8.4",
|
|
54
|
+
"@nuxt/schema": "^3.15.4",
|
|
55
|
+
"@nuxt/test-utils": "^3.17.0",
|
|
56
|
+
"@types/node": "^22.13.5",
|
|
57
|
+
"changelogen": "^0.5.7",
|
|
58
|
+
"eslint": "^9.21.0",
|
|
59
|
+
"nuxt": "^3.15.4",
|
|
60
|
+
"prettier": "^3.5.2",
|
|
61
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
62
|
+
"typescript": "~5.6",
|
|
63
|
+
"vite": "^6.1.1",
|
|
64
|
+
"vitest": "^3.0.6",
|
|
65
|
+
"vue-tsc": "^2.2.2"
|
|
67
66
|
},
|
|
68
67
|
"peerDependencies": {
|
|
69
68
|
"echarts": "^5.5.1"
|
|
70
69
|
},
|
|
70
|
+
"pnpm": {
|
|
71
|
+
"overrides": {
|
|
72
|
+
"vite-plugin-checker": "^0.9.0",
|
|
73
|
+
"@vercel/nft": "^0.29.2",
|
|
74
|
+
"@tailwindcss/vite": "4.0.7"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
71
77
|
"stackblitz": {
|
|
72
78
|
"startCommand": "pnpm run dev:prepare && pnpm run dev"
|
|
73
79
|
}
|