@aliretail/react-materials-components
Version:
49 lines (48 loc) • 1.42 kB
TypeScript
import React from 'react';
import { Field } from '@alifd/next';
import { IPropsType, IStateType } from './config/type';
declare type TProps = typeof StockTableEdit.defaultProps & IPropsType;
declare type TState = IStateType;
declare class StockTableEdit extends React.Component<TProps, TState> {
static propTypes: {
title: any;
columns: any;
topRight: any;
buttonProps: any;
className: any;
isPreview: any;
filterDialogProps: any;
needDelete: any;
onChange: any;
tableProps: any;
value: any;
buttonText: any;
paginationClassName: any;
pageSizeList: any;
status: any;
};
static defaultProps: {
title: string;
needDelete: boolean;
isPreview: boolean;
onChange: () => void;
tableProps: {};
buttonText: string;
pageSizeList: number[];
onNumberChange: () => void;
onNumberInputBlur: () => void;
onNumberInputFoucs: () => void;
numberStep: number;
};
fileds: Field;
constructor(props: any);
componentDidCatch(e: any): void;
validate(callBack: any): void;
setErrors(errs: any): void;
deleteData(id: any): void;
changeData: (rows: any) => void;
onFieldChange: (name: any, val: any) => void;
getButtonDom(): any;
render(): JSX.Element;
}
export default StockTableEdit;