update 允许手机号/邮箱

This commit is contained in:
2021-07-02 20:17:41 +08:00
parent 36a9964899
commit 63374ac2c8
9 changed files with 55 additions and 13 deletions

View File

@@ -36,3 +36,6 @@
width: 26px;
height: 26px;
}
.ant-modal-mask {
backdrop-filter: blur(3px);
}

View File

@@ -46,7 +46,7 @@
padding: @padding-lg;
border-radius: @border-radius-base + 2px;
background: linear-gradient(45deg, @white, fade(@white, 80%));
background: linear-gradient(45deg, @component-background, fade(@component-background, 80%));
}
.ant-form-item {
margin-bottom: 0;
@@ -59,7 +59,7 @@
>label {
font-weight: normal !important;
color: fade(@black, 40%);
color: fade(@white, 40%);
}
}
&--label {
@@ -69,9 +69,9 @@
}
.ant-input,
.ant-input-affix-wrapper {
color: fade(@black, 85%);
color: fade(@white, 85%);
border-width: 0 0 @border-width-base 0 !important;
border-color: fade(@black, 10%);
border-color: fade(@white, 10%);
background-color: transparent;
}
.ant-input:hover,
@@ -83,4 +83,7 @@
border-color: @primary-color;
box-shadow: none !important;
}
.ant-input::placeholder {
font-size: @font-size-base;
}
}

View File

@@ -36,3 +36,6 @@
width: 26px;
height: 26px;
}
.ant-modal-mask {
backdrop-filter: blur(3px);
}

View File

@@ -46,7 +46,7 @@
padding: @padding-lg;
border-radius: @border-radius-base + 2px;
background: linear-gradient(45deg, @white, fade(@white, 80%));
background: linear-gradient(45deg, @component-background, fade(@component-background, 80%));
}
.ant-form-item {
margin-bottom: 0;
@@ -83,4 +83,7 @@
border-color: @primary-color;
box-shadow: none !important;
}
.ant-input::placeholder {
font-size: @font-size-base;
}
}

View File

@@ -183,10 +183,10 @@ export default class index extends Component {
/**
* 删除
* @param {*} record
* @param {*} id
*/
onDelete(record) {
this.onAction(apiAction.delete(record), '删除成功')
onDelete(id) {
this.onAction(apiAction.delete({ id }), '删除成功')
}
//#region 自定义方法

View File

@@ -142,6 +142,7 @@ export default class index extends Component {
}}
size="large"
autoComplete="off"
placeholder={focusUser && '请输入用户名/手机号/邮箱'}
/>
</Form.Item>
<Form.Item
@@ -162,6 +163,7 @@ export default class index extends Component {
}}
size="large"
autoComplete="off"
placeholder={focusPassword && '请输入密码'}
/>
</Form.Item>
<Form.Item className="mt-lg">

View File

@@ -122,7 +122,7 @@ export default class notice extends Component {
>
<span className="header-action">
<Badge count={count}>
<AntIcon type="bell" />
<AntIcon type="message" />
</Badge>
</span>