import { Form, Row, Col, Input, Button } from 'antd'; import React from 'react'; import { canvas } from '../../../index'; const formLayout = { labelCol: { span: 8 }, wrapperCol: { span: 15 } }; const MQTTForm = () => { const [form]=Form.useForm() /** * 连接mqtt */ const onHandleConnectMQTT = () => { // validateFields((err, value) => { // if(err) return; // const { mqtt, clientId, username, password } = value; // canvas.openMqtt(mqtt, { // clientId, // username, // password // }); // }); } return (
); }; export default MQTTForm;