mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-11-06 04:46:53 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb95ece9c6 | |||
| 2a0db561b4 |
@ -1,3 +1,7 @@
|
|||||||
|
## 6.6.5
|
||||||
|
|
||||||
|
* Fixed type for `option` regressed in v6.6.2.
|
||||||
|
|
||||||
## 6.6.4
|
## 6.6.4
|
||||||
|
|
||||||
* Fixed style regression introduced by v6.6.3.
|
* Fixed style regression introduced by v6.6.3.
|
||||||
|
|||||||
@ -237,7 +237,7 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
|
|||||||
```html
|
```html
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.7"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.7"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.4"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
|
||||||
```
|
```
|
||||||
<!-- vue3Scripts:end -->
|
<!-- vue3Scripts:end -->
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ app.component('v-chart', VueECharts)
|
|||||||
```html
|
```html
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.15"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.15"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.4"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
|
||||||
```
|
```
|
||||||
<!-- vue2Scripts:end -->
|
<!-- vue2Scripts:end -->
|
||||||
|
|
||||||
|
|||||||
@ -237,7 +237,7 @@ import "echarts";
|
|||||||
```html
|
```html
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.7"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.7"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.4"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
|
||||||
```
|
```
|
||||||
<!-- vue3Scripts:end -->
|
<!-- vue3Scripts:end -->
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ app.component('v-chart', VueECharts)
|
|||||||
```html
|
```html
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.15"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.15"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.4"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
|
||||||
```
|
```
|
||||||
<!-- vue2Scripts:end -->
|
<!-- vue2Scripts:end -->
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-echarts",
|
"name": "vue-echarts",
|
||||||
"version": "6.6.4",
|
"version": "6.6.5",
|
||||||
"description": "Vue.js component for Apache ECharts.",
|
"description": "Vue.js component for Apache ECharts.",
|
||||||
"author": "GU Yiling <justice360@gmail.com>",
|
"author": "GU Yiling <justice360@gmail.com>",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
11
src/types.ts
11
src/types.ts
@ -1,10 +1,5 @@
|
|||||||
import { init } from "echarts/core";
|
import { init } from "echarts/core";
|
||||||
import type {
|
import type { SetOptionOpts, ECElementEvent, ElementEvent } from "echarts";
|
||||||
SetOptionOpts,
|
|
||||||
ECElementEvent,
|
|
||||||
ElementEvent,
|
|
||||||
EChartsOption
|
|
||||||
} from "echarts";
|
|
||||||
import type { Ref } from "vue";
|
import type { Ref } from "vue";
|
||||||
|
|
||||||
export type Injection<T> = T | null | Ref<T | null> | { value: T | null };
|
export type Injection<T> = T | null | Ref<T | null> | { value: T | null };
|
||||||
@ -23,7 +18,9 @@ export type UpdateOptionsInjection = Injection<UpdateOptions>;
|
|||||||
export type EChartsType = ReturnType<InitType>;
|
export type EChartsType = ReturnType<InitType>;
|
||||||
type ZRenderType = ReturnType<EChartsType["getZr"]>;
|
type ZRenderType = ReturnType<EChartsType["getZr"]>;
|
||||||
export type EventTarget = EChartsType | ZRenderType;
|
export type EventTarget = EChartsType | ZRenderType;
|
||||||
export type Option = EChartsOption;
|
|
||||||
|
type SetOptionType = EChartsType["setOption"];
|
||||||
|
export type Option = Parameters<SetOptionType>[0];
|
||||||
|
|
||||||
export type LoadingOptions = {
|
export type LoadingOptions = {
|
||||||
text?: string;
|
text?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user