@ucloud-fe/react-components 1.12.1 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -716,11 +716,15 @@ interface Step {
716
716
  step?: ReactNode;
717
717
  title?: ReactNode;
718
718
  remark?: ReactNode;
719
+ status?: 'disabled' | 'error' | 'success' | 'normal';
719
720
  }
720
721
  export interface StepsProps extends HTMLAttributes<HTMLDivElement> {
721
722
  steps: Step[];
722
723
  current?: string | number;
723
724
  status?: 'current' | 'loading' | 'error';
725
+ direction?: 'horizontal' | 'vertical';
726
+ nowrap?:boolean;
727
+ onChange?: (current: string | number) => void;
724
728
  }
725
729
  export declare class Steps extends Component<StepsProps> {}
726
730
 
@@ -62,10 +62,12 @@ var Step = /*#__PURE__*/function (_PureComponent) {
62
62
  isLast = _this$props.isLast,
63
63
  showTitle = _this$props.showTitle,
64
64
  rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
65
+ var showRemark = remark ? true : false;
65
66
  return /*#__PURE__*/_react.default.createElement(_style.StepWrapper, (0, _extends2.default)({
66
67
  status: status,
67
68
  isLast: isLast,
68
- showTitle: showTitle
69
+ showTitle: showTitle,
70
+ showRemark: showRemark
69
71
  }, rest, {
70
72
  className: "".concat(_style.stepWrapperCls, " ").concat(rest.className ? rest.className : '')
71
73
  }), /*#__PURE__*/_react.default.createElement("div", {