diff --git a/src/forge/Team/GroupNew.jsx b/src/forge/Team/GroupNew.jsx new file mode 100644 index 000000000..649e2dce6 --- /dev/null +++ b/src/forge/Team/GroupNew.jsx @@ -0,0 +1,123 @@ +import React , { forwardRef , useCallback } from 'react'; +import { Form , Input , Radio , Checkbox , Switch , Button } from 'antd'; +import { Banner , WhiteBack , AlignCenter , Cancel } from '../Component/layout'; +import styled from 'styled-components'; + +const TextArea = Input.TextArea; +const Div = styled.div`{ + padding:20px 30px; +}` +const OptionStyle = { + lineHeight:"25px", + height:'25px', + display:'block' +} +const addStyle = { + ...OptionStyle, + marginBottom:"7px" +} + +export default Form.create()( + forwardRef(({ form })=>{ + const { getFieldDecorator, validateFields, setFieldsValue } = form; + + const helper = useCallback( + (label, name, rules, widget, isRequired , mbValue ) => ( + + {label} + + {getFieldDecorator(name, { rules, validateFirst: true })(widget)} + + + ), + [] + ); + return( + + 新建团队 +
+
+ {helper( + '团队名称:', + "name", + [{ required: true, message: "请输入团队名称" }], + ,true + )} + {helper( + 团队描述:(描述团队的目的或作用), + "desc", + [], +