mirror of
https://github.com/PlayEdu/backend
synced 2025-12-26 12:31:15 +08:00
input 都增加清空按钮
This commit is contained in:
@@ -470,6 +470,7 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
<Input
|
||||
style={{ width: 424 }}
|
||||
placeholder="请在此处输入课程名称"
|
||||
allowClear
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
@@ -683,6 +684,7 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
onChange={(e) => {
|
||||
setChapterName(index, e.target.value);
|
||||
}}
|
||||
allowClear
|
||||
placeholder="请在此处输入章节名称"
|
||||
/>
|
||||
<Button
|
||||
|
||||
@@ -451,6 +451,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
saveChapterName(index, e.target.value);
|
||||
}}
|
||||
placeholder="请在此处输入章节名称"
|
||||
allowClear
|
||||
/>
|
||||
<Button
|
||||
className="mr-16"
|
||||
|
||||
@@ -224,6 +224,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
rules={[{ required: true, message: "请在此处输入课程名称!" }]}
|
||||
>
|
||||
<Input
|
||||
allowClear
|
||||
style={{ width: 424 }}
|
||||
placeholder="请在此处输入课程名称"
|
||||
/>
|
||||
|
||||
@@ -376,6 +376,7 @@ const CoursePage = () => {
|
||||
onChange={(e) => {
|
||||
setTitle(e.target.value);
|
||||
}}
|
||||
allowClear
|
||||
style={{ width: 160 }}
|
||||
placeholder="请输入名称关键字"
|
||||
/>
|
||||
|
||||
@@ -206,6 +206,7 @@ const CourseUserPage = () => {
|
||||
onChange={(e) => {
|
||||
setName(e.target.value);
|
||||
}}
|
||||
allowClear
|
||||
style={{ width: 160 }}
|
||||
placeholder="请输入姓名关键字"
|
||||
/>
|
||||
@@ -217,6 +218,7 @@ const CourseUserPage = () => {
|
||||
onChange={(e) => {
|
||||
setEmail(e.target.value);
|
||||
}}
|
||||
allowClear
|
||||
style={{ width: 160 }}
|
||||
placeholder="请输入学员邮箱"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user