You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

58 lines
1.3 KiB

import * as React from "react";
import { Input, Select } from "antd";
const { Option } = Select;
class StateSetting extends React.Component<
StateSetting.Props,
StateSetting.State
> {
render() {
return (
<div>
<label>
<div></div>
<Input
defaultValue={this.props.data.title}
type="text"
allowClear={true}
onBlur={this.props.onTitleChange}
/>
</label>
<label>
<div></div>
<Select
defaultValue={this.props.data.serviceType}
style={{ width: 120 }}
onChange={this.props.onSerTypeChange}
>
<Option value="none">none</Option>
<Option value="invoke">invoke</Option>
</Select>
</label>
<label>
<div>api</div>
<Input
defaultValue={this.props.data.api}
type="text"
allowClear={true}
onBlur={this.props.onApiChange}
/>
</label>
</div>
);
}
}
export default StateSetting;
export namespace StateSetting {
export interface Props {
data: any;
onTitleChange: (e: any) => void;
onApiChange: (e: any) => void;
onSerTypeChange: (serviceType: string) => void;
}
export interface State {}
}