import { IControlBaseProps } from '../base'; import { IIframeConfig } from '../iframe/typings'; import Store, { IState, IInitialStateParams } from '@mjcloud/redux'; import { IControlSetConfig, ControlDisplayModeEnum } from '@mjcloud/types'; import { ContainerControlActionType, ContainerControlEventType } from '@mjcloud/instance/dist/containerInstanceBase'; interface IStepsConfigItem { id: string; index: number; title?: string; code?: string; displayMode?: ControlDisplayModeEnum; } export interface IStepsConfig extends IControlSetConfig { activeKey?: number; items: IStepsConfigItem[]; } export interface IStepsItem extends IControlBaseProps { title: string; subTitle?: string; disabled?: boolean; display: boolean; } export interface IStepsInitialStateParams extends IInitialStateParams { controls: Store[]; items: IStepsItem[]; activeKey: number; } export interface IStepsState extends IState { activeKey: number; controls: Store[]; items: IStepsItem[]; } export interface IAddTabPane2IframeItem { title: string; tabPaneId: string; config: Omit; } export declare type StepsActionType = ContainerControlActionType | 'updateActiveKey' | 'setStep2Display' | 'setStep2Disabled' | 'stepClick'; export interface IStepsSetStep2DisplayItem { activeKey: number; display: boolean; } export interface IStepsSetStep2DisplayParams { steps: IStepsSetStep2DisplayItem[]; } export interface IStepsSetStep2DisabledItem { activeKey: number; disabled: boolean; } export interface IStepsSetStep2DisabledParams { steps: IStepsSetStep2DisabledItem[]; } export interface IStepsUpdateActiveKeyParams { activeKey: number; } export interface IStepsStepClickParams { activeKey: number; valid: boolean; } export interface IStepsBatchAddTabPane2IframeParams { tabPanes: IAddTabPane2IframeItem[]; parentId: string; pageKey: string; } export declare type StepsEventType = ContainerControlEventType | 'stepClick' | 'stepClickBefore'; export {};