File tree 4 files changed +15
-11
lines changed
4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change
1
+ ## 7.0.1
2
+
3
+ * Fixed type for ` autoresize ` .
4
+
1
5
## 7.0.0
2
6
3
7
> Other prerelease changes:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-echarts" ,
3
- "version" : " 7.0.0 " ,
3
+ "version" : " 7.0.1 " ,
4
4
"description" : " Vue.js component for Apache ECharts™." ,
5
5
"license" : " MIT" ,
6
6
"repository" : " https://github.com/ecomfe/vue-echarts.git" ,
Original file line number Diff line number Diff line change @@ -2,18 +2,11 @@ import { watch } from "vue-demi";
2
2
import { throttle } from "echarts/core" ;
3
3
4
4
import type { Ref , PropType } from "vue-demi" ;
5
- import type { EChartsType } from "../types" ;
6
-
7
- type AutoresizeProp =
8
- | boolean
9
- | {
10
- throttle ?: number ;
11
- onResize ?: ( ) => void ;
12
- } ;
5
+ import type { EChartsType , AutoResize } from "../types" ;
13
6
14
7
export function useAutoresize (
15
8
chart : Ref < EChartsType | undefined > ,
16
- autoresize : Ref < AutoresizeProp | undefined > ,
9
+ autoresize : Ref < AutoResize | undefined > ,
17
10
root : Ref < HTMLElement | undefined >
18
11
) : void {
19
12
watch (
@@ -63,5 +56,5 @@ export function useAutoresize(
63
56
}
64
57
65
58
export const autoresizeProps = {
66
- autoresize : [ Boolean , Object ] as PropType < AutoresizeProp >
59
+ autoresize : [ Boolean , Object ] as PropType < AutoResize >
67
60
} ;
Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ export type EventTarget = EChartsType | ZRenderType;
23
23
type SetOptionType = EChartsType [ "setOption" ] ;
24
24
export type Option = Parameters < SetOptionType > [ 0 ] ;
25
25
26
+ export type AutoResize =
27
+ | boolean
28
+ | {
29
+ throttle ?: number ;
30
+ onResize ?: ( ) => void ;
31
+ } ;
32
+
26
33
export type LoadingOptions = {
27
34
text ?: string ;
28
35
textColor ?: string ;
You can’t perform that action at this time.
0 commit comments