plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
33 lines (32 loc) • 1.16 kB
TypeScript
export default InputJson;
declare class InputJson extends React.Component<any, any, any> {
static propTypes: {
defaultValue: PropTypes.Requireable<string>;
value: PropTypes.Requireable<string>;
width: PropTypes.Requireable<NonNullable<string | number>>;
height: PropTypes.Requireable<NonNullable<string | number>>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
onValidate: PropTypes.Requireable<(...args: any[]) => any>;
disabled: PropTypes.Requireable<boolean>;
};
static defaultProps: {
width: string;
height: string;
disabled: boolean;
};
constructor(props: any);
constructor(props: any, context: any);
state: {
text: any;
};
componentDidMount(): void;
debouncedValidate: import("lodash").DebouncedFunc<(errors: any) => void>;
UNSAFE_componentWillReceiveProps(nextProps: any): void;
onChange: (value: any) => void;
onValidate: (annotations: any) => void;
render(): JSX.Element;
aceRef: ReactAce;
}
import React from 'react';
import ReactAce from 'react-ace';
import PropTypes from 'prop-types';