mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-02 04:28:36 +00:00
refactor: vue3.3 defineOptions
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</template>
|
||||
</Form>
|
||||
</template>
|
||||
<script lang="ts" name="RegisterForm" setup>
|
||||
<script lang="ts" setup>
|
||||
import type { FormRules } from 'element-plus'
|
||||
|
||||
import { useForm } from '@/hooks/web/useForm'
|
||||
@@ -44,6 +44,8 @@ import LoginFormTitle from './LoginFormTitle.vue'
|
||||
import { LoginStateEnum, useLoginState } from './useLogin'
|
||||
import { FormSchema } from '@/types/form'
|
||||
|
||||
defineOptions({ name: 'RegisterForm' })
|
||||
|
||||
const { t } = useI18n()
|
||||
const { required } = useValidator()
|
||||
const { register, elFormRef } = useForm()
|
||||
|
||||
Reference in New Issue
Block a user