标签长度

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: "请填写标签名字", 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}

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 './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">