EASYAIuniappNewUI/node_modules/@tuniao/tnui-vue3-uniapp/tokens/steps.ts
2025-02-08 18:50:38 +08:00

18 lines
435 B
TypeScript

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<StepsContext> =
Symbol('stepsContextKey')