fastlion-amis
Version:
一种MIS页面生成工具
86 lines (85 loc) • 13.4 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import { ClassNamesFn, ThemeProps } from '../theme';
import { SchemaClassName } from '../Schema';
interface ProgressProps extends ThemeProps {
type: 'line' | 'circle' | 'dashboard';
showLabel: boolean;
value: number;
stripe?: boolean;
animate?: boolean;
map?: Array<string>;
placeholder?: string;
format?: (value?: number) => JSX.Element;
gapDegree?: number;
gapPosition?: 'top' | 'bottom' | 'left' | 'right';
strokeWidth?: number;
classNames?: string;
progressClassName?: SchemaClassName;
progressBarClassName?: SchemaClassName;
classnames: ClassNamesFn;
}
export declare class Progress extends React.Component<ProgressProps, Object> {
static defaultProps: Partial<ProgressProps>;
autoClassName(value: number): string;
getLabel(prefixCls: string): JSX.Element | null;
render(): JSX.Element;
}
declare const _default: {
new (props: (Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps) | Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>): {
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
new (props: Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps, context: any): {
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "strokeWidth" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context<string>;
ComposedComponent: React.ComponentType<typeof Progress>;
} & import("hoist-non-react-statics").NonReactStatics<typeof Progress, {}> & {
ComposedComponent: typeof Progress;
};
export default _default;