nuxt-echarts 1.0.0 → 1.0.1
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/README.md +93 -92
- package/dist/module.json +2 -2
- package/dist/runtime/components/VChartIsland.server.d.vue.ts +18 -0
- package/dist/runtime/components/VChartIsland.server.vue.d.ts +3 -2
- package/dist/runtime/components/VChartLight.d.vue.ts +147 -0
- package/dist/runtime/components/VChartLight.vue +6 -6
- package/dist/runtime/components/VChartLight.vue.d.ts +4 -3
- package/dist/runtime/components/VChartServer.d.vue.ts +23 -0
- package/dist/runtime/components/VChartServer.vue +13 -13
- package/dist/runtime/components/VChartServer.vue.d.ts +3 -2
- package/package.json +15 -15
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/README.md
CHANGED
|
@@ -1,92 +1,93 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# Nuxt ECharts
|
|
4
|
-
|
|
5
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
6
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
7
|
-
[![License][license-src]][license-href]
|
|
8
|
-
[![Nuxt][nuxt-src]][nuxt-href]
|
|
9
|
-
|
|
10
|
-
Nuxt Module for Apache ECharts™
|
|
11
|
-
|
|
12
|
-
- [📖 Documentation](https://echarts.nuxt.dev)
|
|
13
|
-
|
|
14
|
-
- [✨ Release Notes](/CHANGELOG.md)
|
|
15
|
-
- [🎞️ Online Demo](https://nuxt-echarts.nuxt.dev/)
|
|
16
|
-
- [🏀 Online Playground](https://stackblitz.com/github/kingyue737/nuxt-echarts?file=playground%2Fapp.vue)
|
|
17
|
-
|
|
18
|
-
## Features
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
pnpm run test
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
[npm-version-
|
|
87
|
-
[npm-
|
|
88
|
-
[npm-downloads-
|
|
89
|
-
[
|
|
90
|
-
[license-
|
|
91
|
-
[
|
|
92
|
-
[nuxt-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Nuxt ECharts
|
|
4
|
+
|
|
5
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
6
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
7
|
+
[![License][license-src]][license-href]
|
|
8
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
9
|
+
|
|
10
|
+
Nuxt Module for Apache ECharts™
|
|
11
|
+
|
|
12
|
+
- [📖 Documentation](https://echarts.nuxt.dev)
|
|
13
|
+
|
|
14
|
+
- [✨ Release Notes](/CHANGELOG.md)
|
|
15
|
+
- [🎞️ Online Demo](https://nuxt-echarts.nuxt.dev/)
|
|
16
|
+
- [🏀 Online Playground](https://stackblitz.com/github/kingyue737/nuxt-echarts?file=playground%2Fapp%2Fapp.vue)
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- ✌️ **[Vue ECharts](https://github.com/ecomfe/vue-echarts)**: effortless integration with the top Vue component for ECharts
|
|
21
|
+
|
|
22
|
+
- ⛰ **SSR**: Server-side SVG Rendering with [Nuxt server components](https://nuxt.com/docs/guide/directory-structure/components#server-components)
|
|
23
|
+
- ♾️ **Client Hydration**: lazy-loading full ECharts or [lightweight client runtime](https://echarts.apache.org/handbook/en/how-to/cross-platform/server#using-lightweight-runtime)
|
|
24
|
+
- 🛠️ **Configurable**: import only [necessary functionality](https://echarts.apache.org/handbook/en/basics/import#shrinking-bundle-size) for shrinking bundle size
|
|
25
|
+
- 🦾 **Type Strong**: auto-import [ECharts option type](https://echarts.apache.org/handbook/en/basics/import#creating-an-option-type-in-typescript) based on your config
|
|
26
|
+
- 🌲 **Tree-shaking**: Components and ECharts are only included if you use them
|
|
27
|
+
|
|
28
|
+
## Quick Setup
|
|
29
|
+
|
|
30
|
+
Install the module to your Nuxt application with one command:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx nuxi module add echarts
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
That's it! You can now use Nuxt ECharts in your Nuxt app ✨
|
|
37
|
+
|
|
38
|
+
## Contribution
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary>Local development</summary>
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Install dependencies
|
|
45
|
+
pnpm install
|
|
46
|
+
|
|
47
|
+
# Generate type stubs
|
|
48
|
+
pnpm run dev:prepare
|
|
49
|
+
|
|
50
|
+
# Develop with the playground
|
|
51
|
+
pnpm run dev
|
|
52
|
+
|
|
53
|
+
# Build the playground
|
|
54
|
+
pnpm run dev:build
|
|
55
|
+
|
|
56
|
+
# Run ESLint
|
|
57
|
+
pnpm run lint
|
|
58
|
+
|
|
59
|
+
# Format with Prettier
|
|
60
|
+
pnpm run format
|
|
61
|
+
|
|
62
|
+
# Run Vitest
|
|
63
|
+
pnpm run test
|
|
64
|
+
pnpm run test:watch
|
|
65
|
+
|
|
66
|
+
# Release new version
|
|
67
|
+
pnpm run release
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
</details>
|
|
71
|
+
|
|
72
|
+
## Credits
|
|
73
|
+
|
|
74
|
+
The Nuxt ECharts module depends on [vue-echarts](https://github.com/ecomfe/vue-echarts), created by [@Justineo](https://github.com/Justineo).
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
This project is licensed under the [MIT License](./LICENSE).
|
|
79
|
+
|
|
80
|
+
## Notice
|
|
81
|
+
|
|
82
|
+
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).
|
|
83
|
+
|
|
84
|
+
<!-- Badges -->
|
|
85
|
+
|
|
86
|
+
[npm-version-src]: https://img.shields.io/npm/v/nuxt-echarts/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
87
|
+
[npm-version-href]: https://npmjs.com/package/nuxt-echarts
|
|
88
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-echarts.svg?style=flat&colorA=020420&colorB=00DC82
|
|
89
|
+
[npm-downloads-href]: https://npm.chart.dev/nuxt-echarts
|
|
90
|
+
[license-src]: https://img.shields.io/npm/l/nuxt-echarts.svg?style=flat&colorA=020420&colorB=00DC82
|
|
91
|
+
[license-href]: https://npmjs.com/package/nuxt-echarts
|
|
92
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
93
|
+
[nuxt-href]: https://nuxt.com
|
package/dist/module.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Option, InitOptions, Theme } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
option?: Option;
|
|
4
|
+
initOptions?: InitOptions;
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
fallback: any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: 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>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -7,8 +7,9 @@ type __VLS_Props = {
|
|
|
7
7
|
type __VLS_Slots = {
|
|
8
8
|
fallback: any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: 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>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { type ECSSRClientEventParams, type ECSSREvent } from 'echarts/ssr/client/index';
|
|
2
|
+
import type { InitOptions, Option, Theme } from '../types.js';
|
|
3
|
+
import { nextTick, type PropType } from 'vue';
|
|
4
|
+
type ECSSRHandler = (params: ECSSRClientEventParams) => string | undefined;
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
option: PropType<Option>;
|
|
7
|
+
theme: {
|
|
8
|
+
type: PropType<Theme>;
|
|
9
|
+
};
|
|
10
|
+
initOptions: PropType<InitOptions>;
|
|
11
|
+
}>, {
|
|
12
|
+
root: import("vue").Ref<({
|
|
13
|
+
$: import("vue").ComponentInternalInstance;
|
|
14
|
+
$data: {};
|
|
15
|
+
$props: {
|
|
16
|
+
readonly option?: Option | undefined;
|
|
17
|
+
readonly theme?: Theme | undefined;
|
|
18
|
+
readonly initOptions?: InitOptions | undefined;
|
|
19
|
+
readonly onError?: ((error: unknown) => any) | undefined;
|
|
20
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
21
|
+
$attrs: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
$refs: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
$slots: Readonly<{
|
|
28
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
31
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
32
|
+
$host: Element | null;
|
|
33
|
+
$emit: (event: "error", error: unknown) => void;
|
|
34
|
+
$el: any;
|
|
35
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
36
|
+
option?: Option;
|
|
37
|
+
theme?: Theme;
|
|
38
|
+
initOptions?: InitOptions;
|
|
39
|
+
}> & Readonly<{
|
|
40
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
42
|
+
error: (error: unknown) => any;
|
|
43
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
44
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
45
|
+
created?: (() => void) | (() => void)[];
|
|
46
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
47
|
+
mounted?: (() => void) | (() => void)[];
|
|
48
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
49
|
+
updated?: (() => void) | (() => void)[];
|
|
50
|
+
activated?: (() => void) | (() => void)[];
|
|
51
|
+
deactivated?: (() => void) | (() => void)[];
|
|
52
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
53
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
54
|
+
destroyed?: (() => void) | (() => void)[];
|
|
55
|
+
unmounted?: (() => void) | (() => void)[];
|
|
56
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
57
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
58
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
59
|
+
};
|
|
60
|
+
$forceUpdate: () => void;
|
|
61
|
+
$nextTick: typeof nextTick;
|
|
62
|
+
$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;
|
|
63
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
64
|
+
option?: Option;
|
|
65
|
+
theme?: Theme;
|
|
66
|
+
initOptions?: InitOptions;
|
|
67
|
+
}> & Readonly<{
|
|
68
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
69
|
+
}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
70
|
+
$slots: {
|
|
71
|
+
fallback?: (props: {}) => any;
|
|
72
|
+
};
|
|
73
|
+
}) | null, ({
|
|
74
|
+
$: import("vue").ComponentInternalInstance;
|
|
75
|
+
$data: {};
|
|
76
|
+
$props: {
|
|
77
|
+
readonly option?: Option | undefined;
|
|
78
|
+
readonly theme?: Theme | undefined;
|
|
79
|
+
readonly initOptions?: InitOptions | undefined;
|
|
80
|
+
readonly onError?: ((error: unknown) => any) | undefined;
|
|
81
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
82
|
+
$attrs: {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
};
|
|
85
|
+
$refs: {
|
|
86
|
+
[x: string]: unknown;
|
|
87
|
+
};
|
|
88
|
+
$slots: Readonly<{
|
|
89
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
92
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
93
|
+
$host: Element | null;
|
|
94
|
+
$emit: (event: "error", error: unknown) => void;
|
|
95
|
+
$el: any;
|
|
96
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
97
|
+
option?: Option;
|
|
98
|
+
theme?: Theme;
|
|
99
|
+
initOptions?: InitOptions;
|
|
100
|
+
}> & Readonly<{
|
|
101
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
102
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
103
|
+
error: (error: unknown) => any;
|
|
104
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
105
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
106
|
+
created?: (() => void) | (() => void)[];
|
|
107
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
108
|
+
mounted?: (() => void) | (() => void)[];
|
|
109
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
110
|
+
updated?: (() => void) | (() => void)[];
|
|
111
|
+
activated?: (() => void) | (() => void)[];
|
|
112
|
+
deactivated?: (() => void) | (() => void)[];
|
|
113
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
114
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
115
|
+
destroyed?: (() => void) | (() => void)[];
|
|
116
|
+
unmounted?: (() => void) | (() => void)[];
|
|
117
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
118
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
119
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
120
|
+
};
|
|
121
|
+
$forceUpdate: () => void;
|
|
122
|
+
$nextTick: typeof nextTick;
|
|
123
|
+
$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;
|
|
124
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
125
|
+
option?: Option;
|
|
126
|
+
theme?: Theme;
|
|
127
|
+
initOptions?: InitOptions;
|
|
128
|
+
}> & Readonly<{
|
|
129
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
130
|
+
}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
131
|
+
$slots: {
|
|
132
|
+
fallback?: (props: {}) => any;
|
|
133
|
+
};
|
|
134
|
+
}) | null>;
|
|
135
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<ECSSREvent, ECSSRHandler>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
136
|
+
option: PropType<Option>;
|
|
137
|
+
theme: {
|
|
138
|
+
type: PropType<Theme>;
|
|
139
|
+
};
|
|
140
|
+
initOptions: PropType<InitOptions>;
|
|
141
|
+
}>> & Readonly<{
|
|
142
|
+
onClick?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
143
|
+
onMouseout?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
144
|
+
onMouseover?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
145
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
146
|
+
declare const _default: typeof __VLS_export;
|
|
147
|
+
export default _default;
|
|
@@ -54,10 +54,10 @@ export default defineComponent({
|
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<template>
|
|
57
|
-
<VChartServer
|
|
58
|
-
ref="root"
|
|
59
|
-
:option="option"
|
|
60
|
-
:init-options="initOptions"
|
|
61
|
-
:theme="theme"
|
|
62
|
-
/>
|
|
57
|
+
<VChartServer
|
|
58
|
+
ref="root"
|
|
59
|
+
:option="option"
|
|
60
|
+
:init-options="initOptions"
|
|
61
|
+
:theme="theme"
|
|
62
|
+
/>
|
|
63
63
|
</template>
|
|
@@ -2,7 +2,7 @@ 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
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
option: PropType<Option>;
|
|
7
7
|
theme: {
|
|
8
8
|
type: PropType<Theme>;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
initOptions?: InitOptions;
|
|
39
39
|
}> & Readonly<{
|
|
40
40
|
onError?: ((error: unknown) => any) | undefined;
|
|
41
|
-
}>,
|
|
41
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
42
42
|
error: (error: unknown) => any;
|
|
43
43
|
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
44
44
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
99
|
initOptions?: InitOptions;
|
|
100
100
|
}> & Readonly<{
|
|
101
101
|
onError?: ((error: unknown) => any) | undefined;
|
|
102
|
-
}>,
|
|
102
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
103
103
|
error: (error: unknown) => any;
|
|
104
104
|
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
105
105
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -143,4 +143,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
143
143
|
onMouseout?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
144
144
|
onMouseover?: ((params: ECSSRClientEventParams) => any) | undefined;
|
|
145
145
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
146
|
+
declare const _default: typeof __VLS_export;
|
|
146
147
|
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 var __VLS_12: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
fallback?: (props: typeof __VLS_12) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
error: (error: unknown) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -23,17 +23,17 @@ const root = ref(null);
|
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
<template>
|
|
26
|
-
<div class="vue-echarts-server">
|
|
27
|
-
<VChartIsland
|
|
28
|
-
ref="root"
|
|
29
|
-
:theme="realTheme"
|
|
30
|
-
:option="option"
|
|
31
|
-
:init-options="realInitOptions"
|
|
32
|
-
@error="onError"
|
|
33
|
-
>
|
|
34
|
-
<template #fallback>
|
|
35
|
-
<slot name="fallback" />
|
|
36
|
-
</template>
|
|
37
|
-
</VChartIsland>
|
|
38
|
-
</div>
|
|
26
|
+
<div class="vue-echarts-server">
|
|
27
|
+
<VChartIsland
|
|
28
|
+
ref="root"
|
|
29
|
+
:theme="realTheme"
|
|
30
|
+
:option="option"
|
|
31
|
+
:init-options="realInitOptions"
|
|
32
|
+
@error="onError"
|
|
33
|
+
>
|
|
34
|
+
<template #fallback>
|
|
35
|
+
<slot name="fallback" />
|
|
36
|
+
</template>
|
|
37
|
+
</VChartIsland>
|
|
38
|
+
</div>
|
|
39
39
|
</template>
|
|
@@ -8,12 +8,13 @@ declare var __VLS_12: {};
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
fallback?: (props: typeof __VLS_12) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
12
|
error: (error: unknown) => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
14
|
onError?: ((error: unknown) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
17
18
|
export default _default;
|
|
18
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
20
|
new (): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-echarts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Nuxt Module for Apache ECharts™",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"repository": "kingyue737/nuxt-echarts",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"type": "module",
|
|
17
|
+
"types": "dist/types.d.mts",
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
20
|
"types": "./dist/types.d.mts",
|
|
@@ -26,32 +27,32 @@
|
|
|
26
27
|
"dist"
|
|
27
28
|
],
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@nuxt/kit": "^4.
|
|
30
|
+
"@nuxt/kit": "^4.1.3"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@nuxt/eslint-config": "^1.
|
|
33
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
33
34
|
"@nuxt/module-builder": "^1.0.2",
|
|
34
|
-
"@nuxt/schema": "^4.
|
|
35
|
+
"@nuxt/schema": "^4.1.3",
|
|
35
36
|
"@nuxt/test-utils": "^3.19.2",
|
|
36
37
|
"@nuxthub/core": "^0.9.0",
|
|
37
|
-
"@types/node": "^22.
|
|
38
|
+
"@types/node": "^22.18.8",
|
|
38
39
|
"changelogen": "^0.6.2",
|
|
39
40
|
"echarts": "^6.0.0",
|
|
40
41
|
"embla-carousel": "^8.6.0",
|
|
41
|
-
"eslint": "^9.
|
|
42
|
-
"nuxt": "^4.
|
|
42
|
+
"eslint": "^9.37.0",
|
|
43
|
+
"nuxt": "^4.1.3",
|
|
43
44
|
"prettier": "^3.6.2",
|
|
44
45
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
45
|
-
"typescript": "^5.9.
|
|
46
|
-
"vite": "^7.1.
|
|
46
|
+
"typescript": "^5.9.3",
|
|
47
|
+
"vite": "^7.1.9",
|
|
47
48
|
"vitest": "^3.2.4",
|
|
48
|
-
"vue-echarts": "^8.0.0
|
|
49
|
-
"vue-tsc": "^3.
|
|
50
|
-
"wrangler": "^4.
|
|
49
|
+
"vue-echarts": "^8.0.0",
|
|
50
|
+
"vue-tsc": "^3.1.1",
|
|
51
|
+
"wrangler": "^4.42.1"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
54
|
"echarts": "^6.0.0",
|
|
54
|
-
"vue-echarts": "^8.0.0
|
|
55
|
+
"vue-echarts": "^8.0.0"
|
|
55
56
|
},
|
|
56
57
|
"stackblitz": {
|
|
57
58
|
"startCommand": "pnpm run dev:prepare && pnpm run dev"
|
|
@@ -60,8 +61,7 @@
|
|
|
60
61
|
"dev": "nuxi dev playground",
|
|
61
62
|
"dev:build": "nuxi build playground",
|
|
62
63
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
63
|
-
"release": "
|
|
64
|
-
"release:nightly": "pnpm changelogen --canary --publish --publishTag nightly",
|
|
64
|
+
"release": "changelogen --release --push",
|
|
65
65
|
"docs:dev": "nuxi dev docs",
|
|
66
66
|
"docs:build": "nuxi build docs",
|
|
67
67
|
"docs:types": "nuxi typecheck docs",
|