标签长度

This commit is contained in:
caishi 2021-02-06 10:18:05 +08:00
parent 98d40482f3
commit 10466ac4a2
2 changed files with 10 additions and 4 deletions

View File

@ -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}

View File

@ -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">