@cainiaofe/cn-ui-m
Version:
30 lines (29 loc) • 687 B
TypeScript
import * as React from 'react';
import type { CnStepItemProps } from './cn-step-item-props';
export interface CnStepProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
/**
* 形状
*/
shape?: 'circle' | 'dot';
/**
* 方向
*/
direction?: 'hoz' | 'ver';
/**
* 当前步骤
*/
current?: number;
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 值改变时触发的回调函数
*/
onChange?: (index: number) => void;
/**
* 节点内容自定义渲染 `v0.9.34+`
* @since 0.9.34
*/
contentRender?: (item: CnStepItemProps, index: number) => React.ReactNode;
}