plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
45 lines (44 loc) • 1.23 kB
TypeScript
export default EditTable;
declare class EditTable extends React.Component<any, any, any> {
static propTypes: {
userProperty: PropTypes.Requireable<object>;
form: PropTypes.Requireable<any>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {
userProperty: {};
};
constructor(props: any);
constructor(props: any, context: any);
state: {
userProperty: any;
tempKey: string;
originKey: string;
tempValue: string;
visible: boolean;
current: string;
validateStatus: string;
help: string;
};
UNSAFE_componentWillReceiveProps(nextProps: any): void;
getDataSource: (userProperty: any) => {
key: string;
value: any;
}[];
handlers: {
onOk: () => void;
onCancel: () => void;
onChangeKey: (value: any) => void;
};
modalHandlers: {
onShow: () => void;
onHide: () => void;
};
handleAdd: () => void;
handleEdit: (key: any) => void;
handleDelete: (key: any) => void;
handleClear: () => void;
render(): JSX.Element;
}
import React from 'react';
import PropTypes from 'prop-types';