Compare commits

..

5 Commits

Author SHA1 Message Date
cb95ece9c6 chore: update changelog and version 2023-12-18 10:28:28 +08:00
2a0db561b4 types: fix option type (#751) 2023-12-18 10:22:08 +08:00
2b30334b82 docs: update readme 2023-12-13 11:01:54 +08:00
dbd6699a4f chore: update changelog and version 2023-12-13 11:00:52 +08:00
2130bd6444 fix: fix selector class 2023-12-13 11:00:04 +08:00
6 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,11 @@
## 6.6.5
* Fixed type for `option` regressed in v6.6.2.
## 6.6.4
* Fixed style regression introduced by v6.6.3.
## 6.6.3
* Fixed inner wrapper styles.

View File

@ -237,7 +237,7 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
```html
<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/vue-echarts@6.6.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
```
<!-- vue3Scripts:end -->
@ -257,7 +257,7 @@ app.component('v-chart', VueECharts)
```html
<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/vue-echarts@6.6.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
```
<!-- vue2Scripts:end -->

View File

@ -237,7 +237,7 @@ import "echarts";
```html
<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/vue-echarts@6.6.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
```
<!-- vue3Scripts:end -->
@ -257,7 +257,7 @@ app.component('v-chart', VueECharts)
```html
<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/vue-echarts@6.6.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
```
<!-- vue2Scripts:end -->

View File

@ -1,6 +1,6 @@
{
"name": "vue-echarts",
"version": "6.6.3",
"version": "6.6.5",
"description": "Vue.js component for Apache ECharts.",
"author": "GU Yiling <justice360@gmail.com>",
"scripts": {

View File

@ -1 +1 @@
x-vue-echart,.echarts-inner{display:block;width:100%;height:100%;min-width:0}
x-vue-echarts,.echarts-inner{display:block;width:100%;height:100%;min-width:0}

View File

@ -1,10 +1,5 @@
import { init } from "echarts/core";
import type {
SetOptionOpts,
ECElementEvent,
ElementEvent,
EChartsOption
} from "echarts";
import type { SetOptionOpts, ECElementEvent, ElementEvent } from "echarts";
import type { Ref } from "vue";
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>;
type ZRenderType = ReturnType<EChartsType["getZr"]>;
export type EventTarget = EChartsType | ZRenderType;
export type Option = EChartsOption;
type SetOptionType = EChartsType["setOption"];
export type Option = Parameters<SetOptionType>[0];
export type LoadingOptions = {
text?: string;