forked from Gitlink/forgeplus-react
标签长度
This commit is contained in:
parent
98d40482f3
commit
10466ac4a2
|
@ -442,7 +442,7 @@ class NewTags extends Component {
|
|||
message: "请填写标签名字",
|
||||
},
|
||||
],
|
||||
})(<Input placeholder="标签名字" maxLength="10" />)}
|
||||
})(<Input placeholder="标签名字" maxLength="20" />)}
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item className="inputcount">
|
||||
|
@ -507,7 +507,7 @@ class NewTags extends Component {
|
|||
<div className="dialogdiv">
|
||||
<Input
|
||||
placeholder="标签名字"
|
||||
maxLength="10"
|
||||
maxLength="20"
|
||||
className="inptwidth"
|
||||
value={this.state.name}
|
||||
onChange={this.changmodelname}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React,{ forwardRef , useCallback , useState } from 'react';
|
||||
import React,{ forwardRef , useCallback , useEffect, useState } from 'react';
|
||||
import './Index.scss';
|
||||
import { Form , Input , Radio , Checkbox , Button, InputNumber } from "antd";
|
||||
import UploadImage from './Component/UploadImage';
|
||||
|
@ -8,7 +8,7 @@ export default Form.create()(
|
|||
forwardRef(({ form , showNotification , history })=>{
|
||||
const [ image , setImage ] = useState(undefined);
|
||||
const [ imageFlag , setImageFlag] = useState(false);
|
||||
const { getFieldDecorator, validateFields } = form;
|
||||
const { getFieldDecorator, validateFields , setFieldsValue } = form;
|
||||
|
||||
const radioStyle = {
|
||||
display: 'block',
|
||||
|
@ -54,6 +54,12 @@ export default Form.create()(
|
|||
})
|
||||
}
|
||||
|
||||
useEffect(()=>{
|
||||
setFieldsValue({
|
||||
visibility:"common"
|
||||
})
|
||||
},[])
|
||||
|
||||
return(
|
||||
<div className="main">
|
||||
<div className="teamBox">
|
||||
|
|
Loading…
Reference in New Issue