nuxt-echarts 0.2.6 → 0.3.0
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 +3 -3
- package/dist/module.mjs +3 -5
- package/dist/runtime/components/VChart.d.ts +4 -4
- package/dist/runtime/components/VChartIsland.server.vue +36 -32
- package/dist/runtime/components/VChartIsland.server.vue.d.ts +18 -0
- package/dist/runtime/components/VChartLight.vue +10 -10
- package/dist/runtime/components/VChartLight.vue.d.ts +2 -514
- package/dist/runtime/components/VChartServer.vue +28 -28
- package/dist/runtime/components/VChartServer.vue.d.ts +241 -0
- package/dist/types.d.mts +2 -2
- package/package.json +19 -28
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -42
- package/dist/types.d.ts +0 -7
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
|
@@ -14,7 +14,7 @@ const module = defineNuxtModule({
|
|
|
14
14
|
renderer: "canvas"
|
|
15
15
|
},
|
|
16
16
|
setup(options, nuxt) {
|
|
17
|
-
if (nuxt.options.ssr === false) {
|
|
17
|
+
if (nuxt.options.ssr === false && nuxt.options.experimental.componentIslands === "auto") {
|
|
18
18
|
nuxt.options.experimental.componentIslands = true;
|
|
19
19
|
}
|
|
20
20
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -58,10 +58,8 @@ const module = defineNuxtModule({
|
|
|
58
58
|
}
|
|
59
59
|
const rendererNames = [];
|
|
60
60
|
renderers.forEach((v) => {
|
|
61
|
-
if (v === "canvas")
|
|
62
|
-
|
|
63
|
-
else if (v === "svg")
|
|
64
|
-
rendererNames.push("SVGRenderer");
|
|
61
|
+
if (v === "canvas") rendererNames.push("CanvasRenderer");
|
|
62
|
+
else if (v === "svg") rendererNames.push("SVGRenderer");
|
|
65
63
|
});
|
|
66
64
|
const joinedRendererNames = join(rendererNames);
|
|
67
65
|
const joinedChartNames = join(options.charts);
|
|
@@ -4,7 +4,7 @@ import { type EChartsElement } from '../utils/wc.js';
|
|
|
4
4
|
import '#build/echarts.mjs';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
loading: BooleanConstructor;
|
|
7
|
-
loadingOptions: PropType<import("../types").LoadingOptions>;
|
|
7
|
+
loadingOptions: PropType<import("../types.js").LoadingOptions>;
|
|
8
8
|
autoresize: PropType<boolean | {
|
|
9
9
|
throttle?: number;
|
|
10
10
|
onResize?: ResizeObserverCallback;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
49
|
gridName?: (string | number) | (string | number)[];
|
|
50
50
|
dataIndex?: number;
|
|
51
51
|
dataIndexInside?: number;
|
|
52
|
-
}, value: (string | number)
|
|
52
|
+
}, value: Date | (string | number)): number;
|
|
53
53
|
(finder: string | {
|
|
54
54
|
seriesIndex?: number | false | number[] | "none" | "all";
|
|
55
55
|
seriesId?: (string | number) | (string | number)[];
|
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
71
|
gridName?: (string | number) | (string | number)[];
|
|
72
72
|
dataIndex?: number;
|
|
73
73
|
dataIndexInside?: number;
|
|
74
|
-
}, value: ((string | number)
|
|
74
|
+
}, value: (Date | (string | number))[]): number[];
|
|
75
75
|
};
|
|
76
76
|
convertFromPixel: {
|
|
77
77
|
(finder: string | {
|
|
@@ -231,7 +231,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
231
231
|
"zr:globalout": (params: import("echarts/core").ElementEvent) => void;
|
|
232
232
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
233
233
|
loading: BooleanConstructor;
|
|
234
|
-
loadingOptions: PropType<import("../types").LoadingOptions>;
|
|
234
|
+
loadingOptions: PropType<import("../types.js").LoadingOptions>;
|
|
235
235
|
autoresize: PropType<boolean | {
|
|
236
236
|
throttle?: number;
|
|
237
237
|
onResize?: ResizeObserverCallback;
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import * as echarts from
|
|
3
|
-
import
|
|
4
|
-
import { ref } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import * as echarts from "echarts";
|
|
3
|
+
import "#build/echarts.mjs";
|
|
4
|
+
import { ref } from "vue";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
option: {
|
|
7
|
+
type: null,
|
|
8
|
+
required: false
|
|
9
|
+
},
|
|
10
|
+
initOptions: {
|
|
11
|
+
type: null,
|
|
12
|
+
required: false
|
|
13
|
+
},
|
|
14
|
+
theme: {
|
|
15
|
+
type: null,
|
|
16
|
+
required: false
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const svgStr = ref("");
|
|
20
|
+
const initOptions = echarts.util.merge(
|
|
21
|
+
{ renderer: "svg", ssr: true },
|
|
22
|
+
props.initOptions || {}
|
|
23
|
+
);
|
|
24
|
+
const chart = echarts.init(null, props.theme, initOptions);
|
|
25
|
+
chart.setOption(props.option || {});
|
|
26
|
+
svgStr.value = chart.renderToSVGString();
|
|
27
|
+
chart.dispose();
|
|
28
|
+
defineSlots();
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<div class="vue-echarts-container">
|
|
33
|
+
<!--eslint-disable-next-line vue/no-v-html-->
|
|
34
|
+
<div class="vue-echarts-inner" v-html="svgStr" />
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '#build/echarts.mjs';
|
|
2
|
+
import type { Option, InitOptions, Theme } from '../types.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
option?: Option;
|
|
5
|
+
initOptions?: InitOptions;
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
fallback: any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -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>
|
|
@@ -23,110 +23,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
23
23
|
};
|
|
24
24
|
$refs: {
|
|
25
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;
|
|
130
26
|
};
|
|
131
27
|
$slots: Readonly<{
|
|
132
28
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -135,7 +31,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
135
31
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
136
32
|
$host: Element | null;
|
|
137
33
|
$emit: (event: "error", error: unknown) => void;
|
|
138
|
-
$el:
|
|
34
|
+
$el: any;
|
|
139
35
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
140
36
|
option?: Option;
|
|
141
37
|
theme?: Theme;
|
|
@@ -188,110 +84,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
188
84
|
};
|
|
189
85
|
$refs: {
|
|
190
86
|
[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;
|
|
295
87
|
};
|
|
296
88
|
$slots: Readonly<{
|
|
297
89
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -300,7 +92,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
300
92
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
301
93
|
$host: Element | null;
|
|
302
94
|
$emit: (event: "error", error: unknown) => void;
|
|
303
|
-
$el:
|
|
95
|
+
$el: any;
|
|
304
96
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
305
97
|
option?: Option;
|
|
306
98
|
theme?: Theme;
|
|
@@ -352,307 +144,3 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
352
144
|
onMouseover?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
353
145
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
354
146
|
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,34 +1,34 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { computed, unref, inject, ref } from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, unref, inject, ref } from "vue";
|
|
3
|
+
import { THEME_KEY, INIT_OPTIONS_KEY } from "../utils/injection";
|
|
4
|
+
const defaultTheme = inject(THEME_KEY, null);
|
|
5
|
+
const defaultInitOptions = inject(INIT_OPTIONS_KEY, null);
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
option: {
|
|
8
|
+
type: null,
|
|
9
|
+
required: false
|
|
10
|
+
},
|
|
11
|
+
theme: {
|
|
12
|
+
type: null,
|
|
13
|
+
required: false
|
|
14
|
+
},
|
|
15
|
+
initOptions: {
|
|
16
|
+
type: null,
|
|
17
|
+
required: false
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const emits = defineEmits(["error"]);
|
|
21
|
+
const realTheme = computed(() => props.theme || unref(defaultTheme) || {});
|
|
18
22
|
const realInitOptions = computed(
|
|
19
|
-
() => props.initOptions || unref(defaultInitOptions) || {}
|
|
20
|
-
)
|
|
21
|
-
function onError(e
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
e instanceof TypeError &&
|
|
25
|
-
e.message === "Cannot read properties of undefined (reading 'link')"
|
|
26
|
-
) {
|
|
27
|
-
root.value?.refresh()
|
|
23
|
+
() => props.initOptions || unref(defaultInitOptions) || {}
|
|
24
|
+
);
|
|
25
|
+
function onError(e) {
|
|
26
|
+
if (e instanceof TypeError && e.message === "Cannot read properties of undefined (reading 'link')") {
|
|
27
|
+
root.value?.refresh();
|
|
28
28
|
}
|
|
29
|
-
emits(
|
|
29
|
+
emits("error", e);
|
|
30
30
|
}
|
|
31
|
-
const root = ref
|
|
31
|
+
const root = ref(null);
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
34
|
<template>
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import type { InitOptions, Option, Theme } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
option?: Option;
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
initOptions?: InitOptions;
|
|
6
|
+
};
|
|
7
|
+
declare const realTheme: import("vue").ComputedRef<Theme>;
|
|
8
|
+
declare const realInitOptions: import("vue").ComputedRef<import("echarts/core").EChartsInitOpts>;
|
|
9
|
+
declare function onError(e: unknown): void;
|
|
10
|
+
declare const root: import("vue").Ref<({
|
|
11
|
+
$: import("vue").ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: {
|
|
14
|
+
readonly option?: Option | undefined;
|
|
15
|
+
readonly initOptions?: InitOptions | undefined;
|
|
16
|
+
readonly theme?: Theme | undefined;
|
|
17
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
18
|
+
$attrs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
$refs: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
$slots: Readonly<{
|
|
25
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
28
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
29
|
+
$host: Element | null;
|
|
30
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
31
|
+
$el: any;
|
|
32
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
33
|
+
option?: Option;
|
|
34
|
+
initOptions?: InitOptions;
|
|
35
|
+
theme?: Theme;
|
|
36
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
37
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
38
|
+
created?: (() => void) | (() => void)[];
|
|
39
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
40
|
+
mounted?: (() => void) | (() => void)[];
|
|
41
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
42
|
+
updated?: (() => void) | (() => void)[];
|
|
43
|
+
activated?: (() => void) | (() => void)[];
|
|
44
|
+
deactivated?: (() => void) | (() => void)[];
|
|
45
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
46
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
47
|
+
destroyed?: (() => void) | (() => void)[];
|
|
48
|
+
unmounted?: (() => void) | (() => void)[];
|
|
49
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
50
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
51
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
52
|
+
};
|
|
53
|
+
$forceUpdate: () => void;
|
|
54
|
+
$nextTick: typeof import("vue").nextTick;
|
|
55
|
+
$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;
|
|
56
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
57
|
+
option?: Option;
|
|
58
|
+
initOptions?: InitOptions;
|
|
59
|
+
theme?: Theme;
|
|
60
|
+
}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
61
|
+
$slots: {
|
|
62
|
+
fallback: any;
|
|
63
|
+
};
|
|
64
|
+
} & {
|
|
65
|
+
$: import("vue").ComponentInternalInstance;
|
|
66
|
+
$data: {};
|
|
67
|
+
$props: Partial<{}> & Omit<{}, never>;
|
|
68
|
+
$attrs: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
$refs: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
$slots: Readonly<{
|
|
75
|
+
fallback: import("vue").Slot<{
|
|
76
|
+
error: unknown;
|
|
77
|
+
}>;
|
|
78
|
+
}>;
|
|
79
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
80
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
81
|
+
$host: Element | null;
|
|
82
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
83
|
+
$el: any;
|
|
84
|
+
$options: import("vue").ComponentOptionsBase<{}, {
|
|
85
|
+
refresh: () => Promise<void>;
|
|
86
|
+
}, {}, {}, {}, {}, {}, {}, string, {}, {}, string, import("vue").SlotsType<{
|
|
87
|
+
fallback: {
|
|
88
|
+
error: unknown;
|
|
89
|
+
};
|
|
90
|
+
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
91
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
92
|
+
created?: (() => void) | (() => void)[];
|
|
93
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
94
|
+
mounted?: (() => void) | (() => void)[];
|
|
95
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
96
|
+
updated?: (() => void) | (() => void)[];
|
|
97
|
+
activated?: (() => void) | (() => void)[];
|
|
98
|
+
deactivated?: (() => void) | (() => void)[];
|
|
99
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
100
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
101
|
+
destroyed?: (() => void) | (() => void)[];
|
|
102
|
+
unmounted?: (() => void) | (() => void)[];
|
|
103
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
104
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
105
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
106
|
+
};
|
|
107
|
+
$forceUpdate: () => void;
|
|
108
|
+
$nextTick: typeof import("vue").nextTick;
|
|
109
|
+
$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;
|
|
110
|
+
} & Readonly<{}> & Omit<{}, "refresh"> & import("vue").ShallowUnwrapRef<{
|
|
111
|
+
refresh: () => Promise<void>;
|
|
112
|
+
}>) | null, ({
|
|
113
|
+
$: import("vue").ComponentInternalInstance;
|
|
114
|
+
$data: {};
|
|
115
|
+
$props: {
|
|
116
|
+
readonly option?: Option | undefined;
|
|
117
|
+
readonly initOptions?: InitOptions | undefined;
|
|
118
|
+
readonly theme?: Theme | undefined;
|
|
119
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
120
|
+
$attrs: {
|
|
121
|
+
[x: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
$refs: {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
};
|
|
126
|
+
$slots: Readonly<{
|
|
127
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
130
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
131
|
+
$host: Element | null;
|
|
132
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
133
|
+
$el: any;
|
|
134
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
135
|
+
option?: Option;
|
|
136
|
+
initOptions?: InitOptions;
|
|
137
|
+
theme?: Theme;
|
|
138
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
139
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
140
|
+
created?: (() => void) | (() => void)[];
|
|
141
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
142
|
+
mounted?: (() => void) | (() => void)[];
|
|
143
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
144
|
+
updated?: (() => void) | (() => void)[];
|
|
145
|
+
activated?: (() => void) | (() => void)[];
|
|
146
|
+
deactivated?: (() => void) | (() => void)[];
|
|
147
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
148
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
149
|
+
destroyed?: (() => void) | (() => void)[];
|
|
150
|
+
unmounted?: (() => void) | (() => void)[];
|
|
151
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
152
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
153
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
154
|
+
};
|
|
155
|
+
$forceUpdate: () => void;
|
|
156
|
+
$nextTick: typeof import("vue").nextTick;
|
|
157
|
+
$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;
|
|
158
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
159
|
+
option?: Option;
|
|
160
|
+
initOptions?: InitOptions;
|
|
161
|
+
theme?: Theme;
|
|
162
|
+
}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
163
|
+
$slots: {
|
|
164
|
+
fallback: any;
|
|
165
|
+
};
|
|
166
|
+
} & {
|
|
167
|
+
$: import("vue").ComponentInternalInstance;
|
|
168
|
+
$data: {};
|
|
169
|
+
$props: Partial<{}> & Omit<{}, never>;
|
|
170
|
+
$attrs: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
};
|
|
173
|
+
$refs: {
|
|
174
|
+
[x: string]: unknown;
|
|
175
|
+
};
|
|
176
|
+
$slots: Readonly<{
|
|
177
|
+
fallback: import("vue").Slot<{
|
|
178
|
+
error: unknown;
|
|
179
|
+
}>;
|
|
180
|
+
}>;
|
|
181
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
182
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
183
|
+
$host: Element | null;
|
|
184
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
185
|
+
$el: any;
|
|
186
|
+
$options: import("vue").ComponentOptionsBase<{}, {
|
|
187
|
+
refresh: () => Promise<void>;
|
|
188
|
+
}, {}, {}, {}, {}, {}, {}, string, {}, {}, string, import("vue").SlotsType<{
|
|
189
|
+
fallback: {
|
|
190
|
+
error: unknown;
|
|
191
|
+
};
|
|
192
|
+
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
193
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
194
|
+
created?: (() => void) | (() => void)[];
|
|
195
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
196
|
+
mounted?: (() => void) | (() => void)[];
|
|
197
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
198
|
+
updated?: (() => void) | (() => void)[];
|
|
199
|
+
activated?: (() => void) | (() => void)[];
|
|
200
|
+
deactivated?: (() => void) | (() => void)[];
|
|
201
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
202
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
203
|
+
destroyed?: (() => void) | (() => void)[];
|
|
204
|
+
unmounted?: (() => void) | (() => void)[];
|
|
205
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
206
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
207
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
208
|
+
};
|
|
209
|
+
$forceUpdate: () => void;
|
|
210
|
+
$nextTick: typeof import("vue").nextTick;
|
|
211
|
+
$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;
|
|
212
|
+
} & Readonly<{}> & Omit<{}, "refresh"> & import("vue").ShallowUnwrapRef<{
|
|
213
|
+
refresh: () => Promise<void>;
|
|
214
|
+
}>) | null>;
|
|
215
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
216
|
+
declare var __VLS_11: {};
|
|
217
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
218
|
+
fallback?: (props: typeof __VLS_11) => any;
|
|
219
|
+
}>;
|
|
220
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
221
|
+
realTheme: typeof realTheme;
|
|
222
|
+
realInitOptions: typeof realInitOptions;
|
|
223
|
+
onError: typeof onError;
|
|
224
|
+
root: typeof root;
|
|
225
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
226
|
+
error: (error: unknown) => any;
|
|
227
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
228
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
229
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
230
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
231
|
+
error: (error: unknown) => any;
|
|
232
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
233
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
234
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
235
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
236
|
+
export default _default;
|
|
237
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
238
|
+
new (): {
|
|
239
|
+
$slots: S;
|
|
240
|
+
};
|
|
241
|
+
};
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NuxtModule } from '@nuxt/schema'
|
|
2
2
|
|
|
3
|
-
import type { default as Module } from './module.
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
4
4
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
|
-
export { default } from './module.
|
|
7
|
+
export { default } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-echarts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Nuxt Module for Apache ECharts™",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -14,17 +14,15 @@
|
|
|
14
14
|
"repository": "kingyue737/nuxt-echarts",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"type": "module",
|
|
17
|
-
"packageManager": "pnpm@10.
|
|
17
|
+
"packageManager": "pnpm@10.7.1",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
-
"types": "./dist/types.d.
|
|
21
|
-
"import": "./dist/module.mjs"
|
|
22
|
-
"require": "./dist/module.cjs"
|
|
20
|
+
"types": "./dist/types.d.mts",
|
|
21
|
+
"import": "./dist/module.mjs"
|
|
23
22
|
},
|
|
24
23
|
"./runtime/types": "./dist/runtime/types.js"
|
|
25
24
|
},
|
|
26
|
-
"main": "./dist/module.
|
|
27
|
-
"types": "./dist/types.d.ts",
|
|
25
|
+
"main": "./dist/module.mjs",
|
|
28
26
|
"files": [
|
|
29
27
|
"dist"
|
|
30
28
|
],
|
|
@@ -45,35 +43,28 @@
|
|
|
45
43
|
"test:types": "vue-tsc --noEmit && nuxi typecheck playground"
|
|
46
44
|
},
|
|
47
45
|
"dependencies": {
|
|
48
|
-
"@nuxt/kit": "^3.
|
|
46
|
+
"@nuxt/kit": "^3.16.2",
|
|
49
47
|
"echarts": "^5.6.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
|
-
"@nuxt/eslint-config": "^1.
|
|
53
|
-
"@nuxt/module-builder": "^0.
|
|
54
|
-
"@nuxt/schema": "^3.
|
|
55
|
-
"@nuxt/test-utils": "^3.17.
|
|
56
|
-
"@types/node": "^22.
|
|
57
|
-
"changelogen": "^0.
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"nuxt": "^3.
|
|
60
|
-
"prettier": "^3.5.
|
|
50
|
+
"@nuxt/eslint-config": "^1.3.0",
|
|
51
|
+
"@nuxt/module-builder": "^1.0.0",
|
|
52
|
+
"@nuxt/schema": "^3.16.2",
|
|
53
|
+
"@nuxt/test-utils": "^3.17.2",
|
|
54
|
+
"@types/node": "^22.14.0",
|
|
55
|
+
"changelogen": "^0.6.1",
|
|
56
|
+
"eslint": "^9.24.0",
|
|
57
|
+
"nuxt": "^3.16.2",
|
|
58
|
+
"prettier": "^3.5.3",
|
|
61
59
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
62
|
-
"typescript": "
|
|
63
|
-
"vite": "^6.
|
|
64
|
-
"vitest": "^3.
|
|
65
|
-
"vue-tsc": "^2.2.
|
|
60
|
+
"typescript": "^5.8.3",
|
|
61
|
+
"vite": "^6.2.5",
|
|
62
|
+
"vitest": "^3.1.1",
|
|
63
|
+
"vue-tsc": "^2.2.8"
|
|
66
64
|
},
|
|
67
65
|
"peerDependencies": {
|
|
68
66
|
"echarts": "^5.5.1"
|
|
69
67
|
},
|
|
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
|
-
},
|
|
77
68
|
"stackblitz": {
|
|
78
69
|
"startCommand": "pnpm run dev:prepare && pnpm run dev"
|
|
79
70
|
}
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import * as echartsComponents from 'echarts/components';
|
|
3
|
-
import * as echartsCharts from 'echarts/charts';
|
|
4
|
-
import * as echartsFeatures from 'echarts/features';
|
|
5
|
-
|
|
6
|
-
type ComponentName = keyof typeof echartsComponents;
|
|
7
|
-
type ChartName = keyof typeof echartsCharts;
|
|
8
|
-
type FeaturesName = keyof typeof echartsFeatures;
|
|
9
|
-
type RendererName = 'canvas' | 'svg';
|
|
10
|
-
interface ModuleOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Register the renderer used by `<VChart>`
|
|
13
|
-
* @default 'canvas'
|
|
14
|
-
*/
|
|
15
|
-
renderer?: RendererName | RendererName[];
|
|
16
|
-
/**
|
|
17
|
-
* Register the charts used by `<VChart>`
|
|
18
|
-
* (imported only if `<VChart>` is used)
|
|
19
|
-
*/
|
|
20
|
-
charts?: ChartName[];
|
|
21
|
-
/**
|
|
22
|
-
* Register the components used by `<VChart>`
|
|
23
|
-
* (imported only if `<VChart>` is used)
|
|
24
|
-
*/
|
|
25
|
-
components?: ComponentName[];
|
|
26
|
-
/**
|
|
27
|
-
* Register the features used by `<VChart>`
|
|
28
|
-
* (imported only if `<VChart>` is used)
|
|
29
|
-
*/
|
|
30
|
-
features?: FeaturesName[];
|
|
31
|
-
/**
|
|
32
|
-
* This option indicates if `<VChart>` should also render on server.
|
|
33
|
-
* By default, it only render on client.
|
|
34
|
-
*
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
ssr?: boolean;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
41
|
-
|
|
42
|
-
export { _default as default };
|
package/dist/types.d.ts
DELETED