|
@@ -6,7 +6,6 @@ import {
|
|
|
DatePicker,
|
|
|
Form,
|
|
|
FormInstance,
|
|
|
- Input,
|
|
|
InputNumber,
|
|
|
Select,
|
|
|
} from "antd";
|
|
@@ -164,12 +163,10 @@ function A4add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
|
|
|
label="标题"
|
|
|
name="name"
|
|
|
rules={[{ required: true, message: "请输入标题!" }]}
|
|
|
- // getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
|
|
|
- getValueFromEvent={(e) => e.target.value.trim()}
|
|
|
>
|
|
|
- <Input
|
|
|
+ <TextArea
|
|
|
readOnly={editInfo.txt === "查看"}
|
|
|
- maxLength={50}
|
|
|
+ maxLength={100}
|
|
|
showCount
|
|
|
placeholder="请输入内容"
|
|
|
/>
|
|
@@ -211,7 +208,6 @@ function A4add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
|
|
|
label="地点"
|
|
|
name="address"
|
|
|
rules={[{ required: true, message: "请输入标题!" }]}
|
|
|
- getValueFromEvent={(e) => e.target.value.trim()}
|
|
|
>
|
|
|
<TextArea
|
|
|
readOnly={editInfo.txt === "查看"}
|
|
@@ -225,7 +221,6 @@ function A4add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
|
|
|
label="人数限制"
|
|
|
name="remark"
|
|
|
rules={[{ required: true, message: "请输入标题!" }]}
|
|
|
- getValueFromEvent={(e) => e.target.value.trim()}
|
|
|
>
|
|
|
<TextArea
|
|
|
readOnly={editInfo.txt === "查看"}
|