feat: user

This commit is contained in:
dap
2024-10-05 22:08:32 +08:00
parent 1947f5c3b6
commit bd340e63b7
4 changed files with 148 additions and 86 deletions

View File

@@ -46,7 +46,7 @@ const [BasicForm, formApi] = useVbenForm({
rules: 'required',
},
{
component: 'StrengthMeter',
component: 'InputPassword',
componentProps: {
placeholder: '请输入新的密码, 密码长度为5 - 20',
},
@@ -58,6 +58,10 @@ const [BasicForm, formApi] = useVbenForm({
.max(20, { message: '密码长度为5 - 20' }),
},
],
showDefaultActions: false,
commonConfig: {
labelWidth: 80,
},
});
async function handleOpenChange(open: boolean) {
@@ -94,8 +98,14 @@ async function handleCancel() {
</script>
<template>
<BasicModal :close-on-click-modal="false" title="重置密码">
<Description @register="registerDescription" />
<BasicForm />
<BasicModal
:close-on-click-modal="false"
:fullscreen-button="false"
title="重置密码"
>
<div class="flex flex-col gap-[12px]">
<Description @register="registerDescription" />
<BasicForm />
</div>
</BasicModal>
</template>