import type { InjectionKey } from 'vue' import type { StepsProps } from '../components/steps' export type StepContext = { uid: number } export type StepsContext = StepsProps & { items: StepContext[] activeUidList: number[] addItem: (item: StepContext) => void removeItem: (uid: number) => void setActiveItem: (uid: number) => void } export const stepsContextKey: InjectionKey = Symbol('stepsContextKey')