hongluan-ui
Version:
Hongluan Component Library for Vue 3
71 lines (70 loc) • 1.79 kB
TypeScript
import type { ExtractPropTypes } from 'vue';
import type Steps from './steps.vue';
export declare const stepsProps: {
/**
* @description the spacing of each step, will be responsive if omitted. Supports percentage.
*/
gap: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
itemPadding: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* @description current activation step
*/
active: {
type: NumberConstructor;
default: number;
};
/**
* @description display direction
*/
dir: {
type: StringConstructor;
default: string;
validator: (val: string) => boolean;
};
block: {
type: BooleanConstructor;
default: boolean;
};
/**
* @description center title and description
*/
center: {
type: BooleanConstructor;
default: boolean;
};
/**
* @description whether to apply simple theme
*/
simple: {
type: BooleanConstructor;
default: boolean;
};
/**
* @description status of end step
*/
finishStatus: {
type: StringConstructor;
default: string;
validator: (val: string) => boolean;
};
/**
* @description status of current step
*/
processStatus: {
type: StringConstructor;
default: string;
validator: (val: string) => boolean;
};
};
export declare type StepsProps = ExtractPropTypes<typeof stepsProps>;
export declare const stepsEmits: {
change: (newVal: number, oldVal: number) => boolean;
};
export declare type StepsEmits = typeof stepsEmits;
export declare type StepsInstance = InstanceType<typeof Steps>;