gtht-miniapp-sdk
Version:
gtht-miniapp-sdk 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
49 lines (48 loc) • 1.28 kB
TypeScript
import { InjectionKey, type StyleValue } from 'vue';
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';
status?: StepsStatus;
iconFamily?: string;
iconSize?: string;
finishIcon?: string;
processIcon?: string;
waitIcon?: string;
errorIcon?: string;
}
export declare const defaultStepsProps: {
current: number;
center: boolean;
itemList: () => never[];
direction: StepsProps["direction"];
finishIcon: string;
processIcon: string;
waitIcon: string;
errorIcon: string;
};
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;
}
export declare const stepsContextSymbol: InjectionKey<StepsContext>;