Commit 91b116ce46bce351184054c86962cf9526087d56
1 parent
e989a152
fix:DEFECT-429 修复个人资料头像样式问题和表单验证只能输入中文问题
Showing
2 changed files
with
4 additions
and
4 deletions
1 | import { FormSchema } from '/@/components/Table'; | 1 | import { FormSchema } from '/@/components/Table'; |
2 | -import { phoneRule, emailRule, ChineseRegVerify } from '/@/utils/rules'; | 2 | +import { phoneRule, emailRule } from '/@/utils/rules'; |
3 | 3 | ||
4 | export const formSchema: FormSchema[] = [ | 4 | export const formSchema: FormSchema[] = [ |
5 | { | 5 | { |
@@ -12,7 +12,6 @@ export const formSchema: FormSchema[] = [ | @@ -12,7 +12,6 @@ export const formSchema: FormSchema[] = [ | ||
12 | maxLength: 10, | 12 | maxLength: 10, |
13 | placeholder: '请输入用户昵称', | 13 | placeholder: '请输入用户昵称', |
14 | }, | 14 | }, |
15 | - rules: ChineseRegVerify, | ||
16 | }, | 15 | }, |
17 | { | 16 | { |
18 | field: 'phoneNumber', | 17 | field: 'phoneNumber', |
@@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
41 | alt="avatar" | 41 | alt="avatar" |
42 | /> | 42 | /> |
43 | <div v-else> | 43 | <div v-else> |
44 | - <div style="margin-top: 5.2vh; margin-left: 3.21vw"> | 44 | + <div style=""> |
45 | <PlusOutlined style="font-size: 30px" /> | 45 | <PlusOutlined style="font-size: 30px" /> |
46 | </div> | 46 | </div> |
47 | </div> | 47 | </div> |
@@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
67 | box-shadow: 0 0 5px -5px; | 67 | box-shadow: 0 0 5px -5px; |
68 | " | 68 | " |
69 | > | 69 | > |
70 | - <div style="width: 90vw; height: 4vh; border: 1px solid #e9edf6" | 70 | + <div style="height: 4vh; border: 1px solid #e9edf6" |
71 | ><p style="font-size: 17px; margin-top: 7px; margin-left: 20px">基本资料</p></div | 71 | ><p style="font-size: 17px; margin-top: 7px; margin-left: 20px">基本资料</p></div |
72 | > | 72 | > |
73 | <div style="margin-left: 20px"> | 73 | <div style="margin-left: 20px"> |
@@ -248,6 +248,7 @@ | @@ -248,6 +248,7 @@ | ||
248 | :deep .ant-upload-select-picture-card { | 248 | :deep .ant-upload-select-picture-card { |
249 | border-radius: 50%; | 249 | border-radius: 50%; |
250 | width: 10rem; | 250 | width: 10rem; |
251 | + height: 10rem; | ||
251 | overflow: hidden; | 252 | overflow: hidden; |
252 | cursor: pointer; | 253 | cursor: pointer; |
253 | transition: border-color 0.3s ease; | 254 | transition: border-color 0.3s ease; |