import * as React from 'react'; import { Button, Drawer, Input, Form } from 'kts-xui'; import { FormInstance } from 'kts-components-antd-x4/lib/form'; /** Props接口 */ interface IProps { onClose: () => void; onSuccess: (values) => void; list: string[]; } export default class UIComponents extends React.Component { formRef:any = React.createRef(); constructor(props) { super(props); this.state = { list: props.list } } onClose = () => { this.props.onClose(); } onSubmit = () => { this.formRef.current?.submit(); } onFinish = values => { this.props.onSuccess(values); } render() { return (
} >
); } }