input 都增加清空按钮

This commit is contained in:
禺狨
2023-04-25 10:15:07 +08:00
parent 391af1a488
commit 86a16c9722
21 changed files with 99 additions and 18 deletions

View File

@@ -125,14 +125,22 @@ export const SystemAdministratorCreate: React.FC<PropInterface> = ({
name="name"
rules={[{ required: true, message: "请输入管理员姓名!" }]}
>
<Input style={{ width: 200 }} placeholder="请输入管理员姓名" />
<Input
allowClear
style={{ width: 200 }}
placeholder="请输入管理员姓名"
/>
</Form.Item>
<Form.Item
label="邮箱"
name="email"
rules={[{ required: true, message: "请输入学员邮箱!" }]}
>
<Input style={{ width: 200 }} placeholder="请输入学员邮箱" />
<Input
allowClear
style={{ width: 200 }}
placeholder="请输入学员邮箱"
/>
</Form.Item>
<Form.Item
label="密码"
@@ -140,6 +148,7 @@ export const SystemAdministratorCreate: React.FC<PropInterface> = ({
rules={[{ required: true, message: "请输入登录密码!" }]}
>
<Input.Password
allowClear
style={{ width: 200 }}
placeholder="请输入登录密码"
/>

View File

@@ -133,18 +133,27 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
name="name"
rules={[{ required: true, message: "请输入管理员姓名!" }]}
>
<Input style={{ width: 200 }} placeholder="请输入管理员姓名" />
<Input
allowClear
style={{ width: 200 }}
placeholder="请输入管理员姓名"
/>
</Form.Item>
<Form.Item
label="邮箱"
name="email"
rules={[{ required: true, message: "请输入学员邮箱!" }]}
>
<Input style={{ width: 200 }} placeholder="请输入学员邮箱" />
<Input
allowClear
style={{ width: 200 }}
placeholder="请输入学员邮箱"
/>
</Form.Item>
<Form.Item label="密码" name="password">
<Input.Password
style={{ width: 200 }}
allowClear
placeholder="请输入登录密码"
/>
</Form.Item>

View File

@@ -283,6 +283,7 @@ const SystemAdministratorPage = () => {
onChange={(e) => {
setName(e.target.value);
}}
allowClear
style={{ width: 160 }}
placeholder="请输入管理员姓名"
/>

View File

@@ -180,6 +180,7 @@ export const SystemAdminrolesCreate: React.FC<PropInterface> = ({
<Input
style={{ width: 424 }}
placeholder="请在此处输入角色名称"
allowClear
/>
</Form.Item>
<Form.Item label="操作权限" name="action_ids">

View File

@@ -191,7 +191,11 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
name="name"
rules={[{ required: true, message: "请输入角色名!" }]}
>
<Input style={{ width: 424 }} placeholder="请输入角色名" />
<Input
style={{ width: 424 }}
allowClear
placeholder="请输入角色名"
/>
</Form.Item>
<Form.Item label="操作权限" name="action_ids">
<TreeSelect

View File

@@ -251,7 +251,11 @@ const SystemConfigPage = () => {
label="网站页脚"
name="system.pc_index_footer_msg"
>
<Input style={{ width: 274 }} placeholder="请填写网站页脚" />
<Input
style={{ width: 274 }}
allowClear
placeholder="请填写网站页脚"
/>
</Form.Item>
{/* <Form.Item
style={{ marginBottom: 30 }}
@@ -315,7 +319,11 @@ const SystemConfigPage = () => {
<Form.Item style={{ marginBottom: 30 }} label="跑马灯内容">
<Space align="baseline" style={{ height: 32 }}>
<Form.Item name="player.bullet_secret_text">
<Input style={{ width: 274 }} placeholder="自定义跑马灯内容" />
<Input
style={{ width: 274 }}
allowClear
placeholder="自定义跑马灯内容"
/>
</Form.Item>
<Checkbox
checked={nameChecked}
@@ -345,7 +353,7 @@ const SystemConfigPage = () => {
label="跑马灯文字颜色"
name="player.bullet_secret_color"
>
<Input type="color" style={{ width: 32, padding: 0 }} />
<Input type="color" allowClear style={{ width: 32, padding: 0 }} />
</Form.Item>
<Form.Item
style={{ marginBottom: 30 }}