mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
14 lines
430 B
TypeScript
14 lines
430 B
TypeScript
|
import type { SliderProps } from '@element-plus/components'
|
||
|
import type { ComputedRef, InjectionKey, Ref, ToRefs } from 'vue'
|
||
|
|
||
|
export interface SliderContext extends ToRefs<SliderProps> {
|
||
|
precision: ComputedRef<number>
|
||
|
sliderSize: Ref<number>
|
||
|
emitChange: () => void
|
||
|
resetSize: () => void
|
||
|
updateDragging: (val: boolean) => void
|
||
|
}
|
||
|
|
||
|
export const sliderContextKey: InjectionKey<SliderContext> =
|
||
|
Symbol('sliderContextKey')
|