import { RenderFunction, SetupContext, Ref } from 'vue' import { DefineVxeComponentApp, DefineVxeComponentOptions, ValueOf, DefineVxeComponentInstance, VxeComponentSizeType, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core' import { VxeStepItemPropTypes } from './step-item' /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */ export declare const VxeSteps: DefineVxeComponentApp export type VxeStepsComponent = DefineVxeComponentOptions export type VxeStepsInstance = DefineVxeComponentInstance export interface VxeStepsConstructor extends VxeComponentBaseOptions, VxeStepsMethods { props: VxeStepsProps context: SetupContext reactData: StepsReactData internalData: StepsInternalData getRefMaps(): StepsPrivateRef getComputeMaps(): StepsPrivateComputed renderVN: RenderFunction } export interface StepsPrivateRef { refElem: Ref } export interface VxeStepsPrivateRef extends StepsPrivateRef {} export namespace VxeStepsPropTypes { export type Size = VxeComponentSizeType export type ModelValue = string | number | null export type Type = '' | 'simple' | string export type Vertical = boolean export interface OptionProps { title?: string content?: string status?: string } type Option = Record export type Options = Option[] export type Separator = string | number export type ShowNumber = boolean export type ShowIcon = boolean } export interface VxeStepsProps { size?: VxeStepsPropTypes.Size modelValue?: VxeStepsPropTypes.ModelValue options?: VxeStepsPropTypes.Options type?: VxeStepsPropTypes.Type vertical?: VxeStepsPropTypes.Vertical optionProps?: VxeStepsPropTypes.OptionProps /** * 步骤条分割符 */ separator?: VxeStepsPropTypes.Separator showNumber?: VxeStepsPropTypes.ShowNumber showIcon?: VxeStepsPropTypes.ShowIcon } export interface StepsPrivateComputed {} export interface VxeStepsPrivateComputed extends StepsPrivateComputed {} export interface StepsReactData { itemList: any[] staticItems: VxeStepsDefines.ItemInfo[] isOptConf: boolean } export interface StepsInternalData { fullData: any[] } export interface StepsMethods { dispatchEvent(type: ValueOf, params: Record, evnt: Event | null): void } export interface VxeStepsMethods extends StepsMethods {} export interface StepsPrivateMethods {} export interface VxeStepsPrivateMethods extends StepsPrivateMethods {} export type VxeStepsEmits = [ 'update:modelValue' ] export namespace VxeStepsDefines { export interface ItemInfo { id: string title?: string | number content?: string | number status?: VxeStepItemPropTypes.Status [key: string]: any } export interface StepsEventParams extends VxeComponentEventParams { $steps: VxeStepsConstructor } } export type VxeStepsEventProps = {} export interface VxeStepsListeners {} export namespace VxeStepsEvents {} export namespace VxeStepsSlotTypes { export interface TitleSlotParams { item: any } export interface ContentSlotParams { item: any } export interface SeparatorSlotParams {} } export interface VxeStepsSlots { default?: (params: Record) => any title?: (params: VxeStepsSlotTypes.TitleSlotParams) => any content?: (params: VxeStepsSlotTypes.ContentSlotParams) => any separator?: (params: VxeStepsSlotTypes.SeparatorSlotParams) => any } export const Steps: typeof VxeSteps export default VxeSteps