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