UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

43 lines (42 loc) 1.2 kB
import { InjectionKey, type StyleValue } from 'vue'; import { type DefaultProps } from '../config'; export type StepsStatus = 'wait' | 'process' | 'error' | 'finish'; export interface StepsItem { status?: StepsStatus; name?: string; description?: string; } export interface StepsProps { rootStyle?: StyleValue; rootClass?: string; current?: number; itemList?: StepsItem[]; center?: boolean; direction?: 'vertical' | 'horizontal'; reverse?: boolean; status?: StepsStatus; iconFamily?: string; iconSize?: string; finishIcon?: string; processIcon?: string; waitIcon?: string; errorIcon?: string; } export declare const defaultStepsProps: () => DefaultProps<StepsProps>; export interface StepsSlots { default?(props: Record<string, never>): any; } export interface StepsContext { current: number; center?: boolean; direction?: StepsProps['direction']; iconFamily?: string; iconSize?: string; finishIcon?: string; processIcon?: string; waitIcon?: string; errorIcon?: string; status?: StepsStatus; reverse?: boolean; } export declare const stepsContextSymbol: InjectionKey<StepsContext>;