File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed
Expand file tree Collapse file tree 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+
15## 7.0.0
26
37> Other prerelease changes:
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-echarts" ,
3- "version" : " 7.0.0 " ,
3+ "version" : " 7.0.1 " ,
44 "description" : " Vue.js component for Apache ECharts™." ,
55 "license" : " MIT" ,
66 "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";
22import { throttle } from "echarts/core" ;
33
44import 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" ;
136
147export function useAutoresize (
158 chart : Ref < EChartsType | undefined > ,
16- autoresize : Ref < AutoresizeProp | undefined > ,
9+ autoresize : Ref < AutoResize | undefined > ,
1710 root : Ref < HTMLElement | undefined >
1811) : void {
1912 watch (
@@ -63,5 +56,5 @@ export function useAutoresize(
6356}
6457
6558export const autoresizeProps = {
66- autoresize : [ Boolean , Object ] as PropType < AutoresizeProp >
59+ autoresize : [ Boolean , Object ] as PropType < AutoResize >
6760} ;
Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ export type EventTarget = EChartsType | ZRenderType;
2323type SetOptionType = EChartsType [ "setOption" ] ;
2424export type Option = Parameters < SetOptionType > [ 0 ] ;
2525
26+ export type AutoResize =
27+ | boolean
28+ | {
29+ throttle ?: number ;
30+ onResize ?: ( ) => void ;
31+ } ;
32+
2633export type LoadingOptions = {
2734 text ?: string ;
2835 textColor ?: string ;
You can’t perform that action at this time.
0 commit comments