Browse Source

chore: 调整页面样式

master
wangxiang 2 years ago
parent
commit
78b77a8b47
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 15
      src/views/system/user/sso/SsoModal.vue
  2. 39
      src/views/system/user/sso/sso.data.ts

15
src/views/system/user/sso/SsoModal.vue

@ -1,7 +1,8 @@
<template> <template>
<BasicModal <BasicModal
v-bind="$attrs" v-bind="$attrs"
width="720px" width="988px"
class="user-modal"
@ok="handleSubmit" @ok="handleSubmit"
@register="registerModal" @register="registerModal"
> >
@ -10,13 +11,13 @@
<BasicForm @register="registerForm"/> <BasicForm @register="registerForm"/>
</ACol> </ACol>
<ACol :span="10"> <ACol :span="10">
<div class="change-avatar"> <div class="user-modal-avatar">
<CropperAvatar <CropperAvatar
:uploadApi="commonUpload" :uploadApi="commonUpload"
:value="state.avatar" :value="state.avatar"
btnText="更换头像" btnText="更换头像"
:btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }" :btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }"
:width="150" :width="250"
@change="handleAvatarChange" @change="handleAvatarChange"
/> />
</div> </div>
@ -164,8 +165,10 @@
}); });
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.change-avatar { .user-modal {
margin-top: 35px; &-avatar {
text-align: center; margin-top: 45px;
text-align: center;
}
} }
</style> </style>

39
src/views/system/user/sso/sso.data.ts

@ -87,6 +87,12 @@ export const userFormSchema: FormSchema[] = [
component: 'Input', component: 'Input',
show: false show: false
}, },
{
field: 'nickName',
label: '昵称',
component: 'Input',
required: true
},
{ {
field: 'userName', field: 'userName',
label: '用户名', label: '用户名',
@ -97,10 +103,16 @@ export const userFormSchema: FormSchema[] = [
} }
}, },
{ {
field: 'nickName', field: 'sex',
label: '用户昵称', label: '性别',
component: 'Input', component: 'Select',
required: true, required: true,
componentProps: {
options: [
{ label: '男', value: '0' },
{ label: '女', value: '1' }
]
},
colProps: { colProps: {
span: 12 span: 12
} }
@ -109,9 +121,6 @@ export const userFormSchema: FormSchema[] = [
field: 'password', field: 'password',
label: '密码', label: '密码',
component: 'InputPassword', component: 'InputPassword',
colProps: {
span: 12
},
rules: [ rules: [
{ {
required: true, required: true,
@ -162,30 +171,12 @@ export const userFormSchema: FormSchema[] = [
} }
] ]
}, },
{
field: 'sex',
label: '性别',
component: 'Select',
required: true,
componentProps: {
options: [
{ label: '男', value: '0' },
{ label: '女', value: '1' }
]
},
colProps: {
span: 12
}
},
{ {
field: 'remarks', field: 'remarks',
label: '备注', label: '备注',
component: 'InputTextArea', component: 'InputTextArea',
componentProps: { componentProps: {
rows: 6 rows: 6
},
colProps: {
span: 24
} }
} }
]; ];

Loading…
Cancel
Save