plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
39 lines (38 loc) • 1.07 kB
TypeScript
export default Styles;
declare class Styles extends React.Component<any, any, any> {
static propTypes: {
styles: PropTypes.Requireable<any[]>;
onChangeStyles: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {
styles: any[];
};
constructor(props: any);
constructor(props: any, context: any);
state: {
style: {};
visible: boolean;
validateTitle: {
validateStatus: string;
help: string;
};
current: string;
};
handlers: {
onOk: () => void;
onCancel: () => void;
onAdd: () => void;
onEdit: (style: any, index: any) => void;
onDelete: (index: any) => void;
onClear: () => void;
onChange: (props: any, changedValues: any, allValues: any) => void;
onValid: (value: any) => {
validateStatus: string;
help: string;
};
};
render(): JSX.Element;
modalRef: any;
}
import React from 'react';
import PropTypes from 'prop-types';