wip(Login): Login developing

This commit is contained in:
陈凯龙
2022-01-04 16:53:13 +08:00
parent 4d52f7bf58
commit 77097c8d92
11 changed files with 1542 additions and 1493 deletions

View File

@@ -1,18 +1,42 @@
<script setup lang="ts">
import { Form } from '@/components/Form'
import { useI18n } from '@/hooks/web/useI18n'
import { ElButton } from 'element-plus'
const { t } = useI18n()
const schema: FormSchema[] = [
{
field: 'username',
component: 'Input'
label: t('login.username'),
component: 'Input',
colProps: {
span: 24
}
},
{
field: 'password',
component: 'InputPassword'
label: t('login.password'),
component: 'InputPassword',
colProps: {
span: 24
},
componentProps: {
style: {
width: '100%'
}
}
},
{
field: 'login'
}
]
</script>
<template>
<Form :schema="schema" :label-width="0" />
<Form :schema="schema" label-position="top">
<template #login>
<ElButton type="primary" class="w-[100%]">{{ t('login.login') }}</ElButton>
</template>
</Form>
</template>