import React from "react"; import { WeaDialog, WeaError, WeaFormItem, WeaInput } from "ecCom"; import "./index.less"; export default class CopySchemaModal extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value || "" }; } render() { return ( this.props.onCancel()} visible={this.props.visible}>
{ if (v === "") this.refs.weaError.showError(); this.setState({ value: v }); this.props.onChange(v); }}/>
); } }