import type { SliderProps } from '@element-plus/components' import type { ComputedRef, InjectionKey, Ref, ToRefs } from 'vue' export interface SliderContext extends ToRefs { precision: ComputedRef sliderSize: Ref emitChange: () => void resetSize: () => void updateDragging: (val: boolean) => void } export const sliderContextKey: InjectionKey = Symbol('sliderContextKey')