mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-18 14:51:38 +08:00
feat: rendering tooltips and dataView with slots (#838)
* feat: experimental component rendered tooltip * revert slot in VChart * feat: use tooltip composable * feat: try createApp * feat: use pie chart as tooltip * feat: switch to createVNode The limitation is that the tooltip detached from the current component tree, not provide/inject will try teleport next * feat: try component with teleport * wip * add xAxis example * refactor with shallowReactive * Support dynamic slot * fix: fill empty elements with object in array * shallow copy option along the path * ssr friendly * vibe docs * typo * update according to the review * add dataView slot * chore: fix warnings and errors in demo (#839) * chore: suppress warning in demo * chore: prevent multiple intializations of esbuild-wasm in demo HMR * feat: dynamically update the theme (#841) Co-authored-by: GU Yiling <justice360@gmail.com> * feat: add dataView slot * vibe docs --------- Co-authored-by: GU Yiling <justice360@gmail.com> * fix docs typo * update according to the review * small fix * remove wrapper around slotProp * update comments * remove anys * add tooltip slot prop type * target to vue 3.3 * move slot related codes to slot.ts --------- Co-authored-by: GU Yiling <justice360@gmail.com>
This commit is contained in:
11
src/types.ts
11
src/types.ts
@ -1,17 +1,8 @@
|
||||
import { init } from "echarts/core";
|
||||
|
||||
import type { SetOptionOpts, ECElementEvent, ElementEvent } from "echarts/core";
|
||||
import type { Ref, ShallowRef, WritableComputedRef, ComputedRef } from "vue";
|
||||
import type { MaybeRefOrGetter } from "vue";
|
||||
|
||||
export type MaybeRef<T = any> =
|
||||
| T
|
||||
| Ref<T>
|
||||
| ShallowRef<T>
|
||||
| WritableComputedRef<T>;
|
||||
export type MaybeRefOrGetter<T = any> =
|
||||
| MaybeRef<T>
|
||||
| ComputedRef<T>
|
||||
| (() => T);
|
||||
export type Injection<T> = MaybeRefOrGetter<T | null>;
|
||||
|
||||
type InitType = typeof init;
|
||||
|
Reference in New Issue
Block a user