style(Login): update login styles

This commit is contained in:
陈凯龙
2022-01-07 09:12:32 +08:00
parent 1436543a5c
commit eb68f1d919
11 changed files with 40 additions and 36 deletions

View File

@@ -13,6 +13,12 @@ const rules = {
}
const schema = reactive<FormSchema[]>([
{
field: 'title',
colProps: {
span: 24
}
},
{
field: 'username',
label: t('login.username'),
@@ -69,6 +75,10 @@ const remember = ref(false)
<template>
<Form :schema="schema" :rules="rules" label-position="top" hide-required-asterisk size="large">
<template #title>
<h2 class="text-2xl font-bold text-center w-[100%]">{{ t('login.login') }}</h2>
</template>
<template #tool>
<div class="flex justify-between items-center w-[100%]">
<ElCheckbox v-model="remember" :label="t('login.remember')" size="small" />