plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
27 lines (26 loc) • 987 B
TypeScript
export default InputScript;
declare class InputScript extends React.Component<any, any, any> {
static propTypes: {
defaultValue: PropTypes.Requireable<string>;
value: PropTypes.Requireable<string>;
width: PropTypes.Requireable<string | number>;
height: PropTypes.Requireable<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);
debouncedValidate: import("lodash").DebouncedFunc<(errors: any) => void>;
onChange: (value: any, e: any) => void;
onValidate: (annotations: any) => void;
aceRef: ReactAce;
}
import React from "react";
import ReactAce from "react-ace";
import PropTypes from "prop-types";