Steps
Steps 步骤条
代码示例
import { BfSteps } from '@bud-fe/react-taro-ui';import { IBfStep } from '@bud-fe/react-taro-ui/es/components/bf-steps';import React from 'react';const data: IBfStep[] = [{ label: 'step 1', value: 1 },{ label: 'step 2', value: 2 },{ label: 'step 3', value: 3, remark: 'T+1' },{ label: 'step 4', value: 4 },{ label: 'step 5', value: 5 },];export default () => {return (<><BfSteps steps={data} curValue={2} /></>);};
API
属性名 | 描述 | 类型 | 默认值 |
---|---|---|---|
steps | steps数组 | IBfStep[] | (必选) |
curValue | 当前步骤的值 | any | -- |