mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-17 13:54:06 +08:00
feat: add default style, injectable update-options & loading-options
This commit is contained in:
19
src/types.ts
19
src/types.ts
@ -1,5 +1,20 @@
|
||||
import { init } from "echarts/core";
|
||||
|
||||
export type EChartsType = ReturnType<typeof init>;
|
||||
type InitType = typeof init;
|
||||
export type InitParameters = Parameters<InitType>;
|
||||
export type Theme = NonNullable<InitParameters[1]>;
|
||||
export type InitOptions = NonNullable<InitParameters[2]>;
|
||||
|
||||
export type EChartsType = ReturnType<InitType>;
|
||||
type SetOptionType = EChartsType["setOption"];
|
||||
export type OptionType = Parameters<SetOptionType>[0];
|
||||
export type Option = Parameters<SetOptionType>[0];
|
||||
|
||||
// TODO: Wait for apache/echarts#14289 to ship in v5.1,
|
||||
// so that we can use SetOptionOpts directly
|
||||
export interface UpdateOptions {
|
||||
notMerge?: boolean;
|
||||
lazyUpdate?: boolean;
|
||||
silent?: boolean;
|
||||
replaceMerge?: any;
|
||||
transition?: any;
|
||||
}
|
||||
|
Reference in New Issue
Block a user