import React from "react"; import classNames from "classnames"; import { StyledProps } from "../_type"; import { useConfig } from "../_util/config-context"; export interface BlankStepsProps extends StyledProps { /** * 步骤内容 */ steps: React.ReactNode[]; } export const BlankSteps = React.forwardRef(function BlankSteps( { steps = [], className, ...props }: BlankStepsProps, ref: React.Ref ) { const { classPrefix } = useConfig(); return (
{steps.map((step, index) => (
{index + 1} {step}
))}
); }); BlankSteps.displayName = "BlankSteps";