UNPKG

@echarts-component/vue

Version:
12 lines (11 loc) 484 B
import { Ref } from 'vue'; import { TextType, TextContext, UpdateOption } from '../types'; import { TextOptions } from '../components/common/type'; export declare const ECHARTS_TEXT_KEY: unique symbol; interface UseTextOptions<O, E> { options: Ref<O>; update: (data: O) => void; defaultTextOptions: (name?: E) => TextOptions; } export declare function useText<O extends UpdateOption, E extends TextType>(config?: Partial<UseTextOptions<O, E>>): TextContext<E>; export {};