plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
31 lines (30 loc) • 832 B
TypeScript
export default CodeModal;
declare class CodeModal extends React.Component<any, any, any> {
static propTypes: {
value: PropTypes.Requireable<any>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
form: PropTypes.Requireable<any>;
};
constructor(props: any);
constructor(props: any, context: any);
handlers: {
onOk: () => void;
onCancel: () => void;
onClick: () => void;
};
modalHandlers: {
onShow: () => void;
onHide: () => void;
};
state: {
code: any;
tempCode: any;
visible: boolean;
};
UNSAFE_componentWillReceiveProps(nextProps: any): void;
render(): JSX.Element;
jsRef: ReactAce;
}
import React from 'react';
import ReactAce from 'react-ace';
import PropTypes from 'prop-types';